@smilodon/core 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.js +9 -7
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -960,11 +960,6 @@ class EnhancedSelect extends HTMLElement {
|
|
|
960
960
|
this._errorMessage = '';
|
|
961
961
|
this._boundArrowClick = null;
|
|
962
962
|
console.log('[EnhancedSelect] Constructor called');
|
|
963
|
-
// WORKAROUND: Force display style on host element for Angular compatibility
|
|
964
|
-
// Angular's rendering seems to not apply :host styles correctly in some cases
|
|
965
|
-
this.style.display = 'block';
|
|
966
|
-
this.style.width = '100%';
|
|
967
|
-
console.log('[EnhancedSelect] Forced host display styles');
|
|
968
963
|
this._shadow = this.attachShadow({ mode: 'open' });
|
|
969
964
|
console.log('[EnhancedSelect] Shadow root attached:', this._shadow);
|
|
970
965
|
this._uniqueId = `enhanced-select-${Math.random().toString(36).substr(2, 9)}`;
|
|
@@ -1006,10 +1001,11 @@ class EnhancedSelect extends HTMLElement {
|
|
|
1006
1001
|
console.log('[EnhancedSelect] Options container created');
|
|
1007
1002
|
this._liveRegion = this._createLiveRegion();
|
|
1008
1003
|
console.log('[EnhancedSelect] Live region created');
|
|
1009
|
-
|
|
1010
|
-
console.log('[EnhancedSelect] DOM assembled');
|
|
1004
|
+
// Initialize styles BEFORE assembling DOM (order matters in shadow DOM)
|
|
1011
1005
|
this._initializeStyles();
|
|
1012
1006
|
console.log('[EnhancedSelect] Styles initialized');
|
|
1007
|
+
this._assembleDOM();
|
|
1008
|
+
console.log('[EnhancedSelect] DOM assembled');
|
|
1013
1009
|
this._attachEventListeners();
|
|
1014
1010
|
console.log('[EnhancedSelect] Event listeners attached');
|
|
1015
1011
|
this._initializeObservers();
|
|
@@ -1018,6 +1014,12 @@ class EnhancedSelect extends HTMLElement {
|
|
|
1018
1014
|
}
|
|
1019
1015
|
connectedCallback() {
|
|
1020
1016
|
console.log('[EnhancedSelect] connectedCallback called');
|
|
1017
|
+
// WORKAROUND: Force display style on host element for Angular compatibility
|
|
1018
|
+
// Angular's rendering seems to not apply :host styles correctly in some cases
|
|
1019
|
+
// Must be done in connectedCallback when element is attached to DOM
|
|
1020
|
+
this.style.display = 'block';
|
|
1021
|
+
this.style.width = '100%';
|
|
1022
|
+
console.log('[EnhancedSelect] Forced host display styles');
|
|
1021
1023
|
// Load initial data if server-side is enabled
|
|
1022
1024
|
if (this._config.serverSide.enabled && this._config.serverSide.initialSelectedValues) {
|
|
1023
1025
|
this._loadInitialSelectedItems();
|