@eqproject/eqp-dynamic-module 2.11.2 → 2.11.4

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.
@@ -4878,11 +4878,14 @@ var ListPresentationEnum;
4878
4878
  ListPresentationEnum[ListPresentationEnum["Pulsante con testo"] = 3] = "Pulsante con testo";
4879
4879
  })(ListPresentationEnum || (ListPresentationEnum = {}));
4880
4880
 
4881
+ // tmw-select non usa più Angular Material (ricostruita in tmw-suite): i selettori puntano
4882
+ // alle classi native del componente (.tmw-select-field/-label/-value/-clear), non più a
4883
+ // mat-form-field/.mdc-floating-label/.mat-mdc-form-field-infix/button[aria-label="Clear"].
4881
4884
  const ELEMENT_SELECTORS_COMBO = {
4882
- Container: ' tmw-select mat-form-field',
4883
- Label: ' tmw-select .mdc-floating-label',
4884
- CasellaTrigger: ' tmw-select .mat-mdc-form-field-infix',
4885
- BottoneCancella: ' tmw-select button[aria-label="Clear"]',
4885
+ Container: ' tmw-select .tmw-select-field',
4886
+ Label: ' tmw-select .tmw-select-label',
4887
+ CasellaTrigger: ' tmw-select .tmw-select-value',
4888
+ BottoneCancella: ' tmw-select .tmw-select-clear',
4886
4889
  };
4887
4890
  const ELEMENT_SELECTORS_RADIO = {
4888
4891
  Container: ' .list-value-radio-container',
@@ -5003,17 +5006,15 @@ class ListValueFieldTemplateComponent {
5003
5006
  const needsImportant = FORCE_IMPORTANT_ELEMENTS.has(el) || (el === 'Bottone' && state === 'Selezionato');
5004
5007
  const finalVal = needsImportant ? this.forceImportant(userVal) : userVal;
5005
5008
  lines.push(`${selector} { ${finalVal} }`);
5006
- // CasellaTrigger: inietta anche sul testo selezionato per proprietà di testo (color, font-*)
5007
- if (el === 'CasellaTrigger') {
5008
- const textSel = this.getSelector(uid, state, el, ' tmw-select .mat-mdc-select-value');
5009
- if (textSel)
5010
- lines.push(`${textSel} { ${finalVal} }`);
5011
- }
5012
- // BottoneCancella: inietta anche sull'icona interna per color/font (override di .mat-icon.mat-icon)
5009
+ // BottoneCancella: l'icona è un <svg> con fill legato a --tmw-select-clear-color (non currentColor),
5010
+ // quindi "color" non la raggiunge: si estrae il color dichiarato e si inietta come fill sull'svg.
5013
5011
  if (el === 'BottoneCancella') {
5014
- const iconSel = this.getSelector(uid, state, el, ' tmw-select button[aria-label="Clear"] mat-icon');
5015
- if (iconSel)
5016
- lines.push(`${iconSel} { ${finalVal} }`);
5012
+ const colorVal = this.extractCssPropValue(finalVal, 'color');
5013
+ if (colorVal) {
5014
+ const iconSel = this.getSelector(uid, state, el, ' tmw-select .tmw-select-clear svg');
5015
+ if (iconSel)
5016
+ lines.push(`${iconSel} { fill: ${colorVal} !important; }`);
5017
+ }
5017
5018
  }
5018
5019
  // Opzione (radio): il color va su mat-radio-button label per raggiungere il testo (Material sovrascrive il colore sul contenitore)
5019
5020
  if (el === 'Opzione' && s === ' mat-radio-button') {