@shoper/phoenix_design_system 1.18.16-13 → 1.18.16-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.
|
@@ -296,13 +296,13 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
296
296
|
super.firstUpdated(changedProperties);
|
|
297
297
|
if (this.isDevSelectPlaceholderTranslationFlagEnabled) {
|
|
298
298
|
let placeholderCandidate = null;
|
|
299
|
-
if (this.hasSlot(
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}
|
|
299
|
+
// if (this.hasSlot(SELECT_INPUT_PLACEHOLDER_SLOT_NAME)) {
|
|
300
|
+
// const slotTpls = this.getSlot(SELECT_INPUT_PLACEHOLDER_SLOT_NAME);
|
|
301
|
+
// if (Array.isArray(slotTpls) && slotTpls.length > 0) {
|
|
302
|
+
// const tpl = slotTpls[0];
|
|
303
|
+
// placeholderCandidate = (tpl && tpl.values && tpl.values[0] ? tpl.values[0] : null) as HTMLElement | null;
|
|
304
|
+
// }
|
|
305
|
+
// }
|
|
306
306
|
// 2) Try toggler slot that may have been assigned into this._slots
|
|
307
307
|
if (!placeholderCandidate && this.hasSlot(select_constants.SELECT_SLOT_NAMES.toggler)) {
|
|
308
308
|
const togglerTpls = this.getSlot(select_constants.SELECT_SLOT_NAMES.toggler);
|
|
@@ -330,7 +330,7 @@ exports.HSelect = class HSelect extends phoenix_light_lit_element.PhoenixLightLi
|
|
|
330
330
|
placeholderCandidate = domEl;
|
|
331
331
|
}
|
|
332
332
|
this.$placeholder = placeholderCandidate !== null && placeholderCandidate !== void 0 ? placeholderCandidate : 'Select';
|
|
333
|
-
|
|
333
|
+
this._applyPlaceholderToExistingOption();
|
|
334
334
|
this._updateOptions();
|
|
335
335
|
}
|
|
336
336
|
if (this.isReactiveSelectionFlagEnabled) {
|
|
@@ -292,13 +292,13 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
292
292
|
super.firstUpdated(changedProperties);
|
|
293
293
|
if (this.isDevSelectPlaceholderTranslationFlagEnabled) {
|
|
294
294
|
let placeholderCandidate = null;
|
|
295
|
-
if (this.hasSlot(SELECT_INPUT_PLACEHOLDER_SLOT_NAME)) {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
}
|
|
295
|
+
// if (this.hasSlot(SELECT_INPUT_PLACEHOLDER_SLOT_NAME)) {
|
|
296
|
+
// const slotTpls = this.getSlot(SELECT_INPUT_PLACEHOLDER_SLOT_NAME);
|
|
297
|
+
// if (Array.isArray(slotTpls) && slotTpls.length > 0) {
|
|
298
|
+
// const tpl = slotTpls[0];
|
|
299
|
+
// placeholderCandidate = (tpl && tpl.values && tpl.values[0] ? tpl.values[0] : null) as HTMLElement | null;
|
|
300
|
+
// }
|
|
301
|
+
// }
|
|
302
302
|
// 2) Try toggler slot that may have been assigned into this._slots
|
|
303
303
|
if (!placeholderCandidate && this.hasSlot(SELECT_SLOT_NAMES.toggler)) {
|
|
304
304
|
const togglerTpls = this.getSlot(SELECT_SLOT_NAMES.toggler);
|
|
@@ -326,7 +326,7 @@ let HSelect = class HSelect extends PhoenixLightLitElement {
|
|
|
326
326
|
placeholderCandidate = domEl;
|
|
327
327
|
}
|
|
328
328
|
this.$placeholder = placeholderCandidate !== null && placeholderCandidate !== void 0 ? placeholderCandidate : 'Select';
|
|
329
|
-
|
|
329
|
+
this._applyPlaceholderToExistingOption();
|
|
330
330
|
this._updateOptions();
|
|
331
331
|
}
|
|
332
332
|
if (this.isReactiveSelectionFlagEnabled) {
|
package/package.json
CHANGED