@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.umd.js
CHANGED
|
@@ -966,11 +966,6 @@
|
|
|
966
966
|
this._errorMessage = '';
|
|
967
967
|
this._boundArrowClick = null;
|
|
968
968
|
console.log('[EnhancedSelect] Constructor called');
|
|
969
|
-
// WORKAROUND: Force display style on host element for Angular compatibility
|
|
970
|
-
// Angular's rendering seems to not apply :host styles correctly in some cases
|
|
971
|
-
this.style.display = 'block';
|
|
972
|
-
this.style.width = '100%';
|
|
973
|
-
console.log('[EnhancedSelect] Forced host display styles');
|
|
974
969
|
this._shadow = this.attachShadow({ mode: 'open' });
|
|
975
970
|
console.log('[EnhancedSelect] Shadow root attached:', this._shadow);
|
|
976
971
|
this._uniqueId = `enhanced-select-${Math.random().toString(36).substr(2, 9)}`;
|
|
@@ -1012,10 +1007,11 @@
|
|
|
1012
1007
|
console.log('[EnhancedSelect] Options container created');
|
|
1013
1008
|
this._liveRegion = this._createLiveRegion();
|
|
1014
1009
|
console.log('[EnhancedSelect] Live region created');
|
|
1015
|
-
|
|
1016
|
-
console.log('[EnhancedSelect] DOM assembled');
|
|
1010
|
+
// Initialize styles BEFORE assembling DOM (order matters in shadow DOM)
|
|
1017
1011
|
this._initializeStyles();
|
|
1018
1012
|
console.log('[EnhancedSelect] Styles initialized');
|
|
1013
|
+
this._assembleDOM();
|
|
1014
|
+
console.log('[EnhancedSelect] DOM assembled');
|
|
1019
1015
|
this._attachEventListeners();
|
|
1020
1016
|
console.log('[EnhancedSelect] Event listeners attached');
|
|
1021
1017
|
this._initializeObservers();
|
|
@@ -1024,6 +1020,12 @@
|
|
|
1024
1020
|
}
|
|
1025
1021
|
connectedCallback() {
|
|
1026
1022
|
console.log('[EnhancedSelect] connectedCallback called');
|
|
1023
|
+
// WORKAROUND: Force display style on host element for Angular compatibility
|
|
1024
|
+
// Angular's rendering seems to not apply :host styles correctly in some cases
|
|
1025
|
+
// Must be done in connectedCallback when element is attached to DOM
|
|
1026
|
+
this.style.display = 'block';
|
|
1027
|
+
this.style.width = '100%';
|
|
1028
|
+
console.log('[EnhancedSelect] Forced host display styles');
|
|
1027
1029
|
// Load initial data if server-side is enabled
|
|
1028
1030
|
if (this._config.serverSide.enabled && this._config.serverSide.initialSelectedValues) {
|
|
1029
1031
|
this._loadInitialSelectedItems();
|