@eqproject/eqp-dynamic-module 2.11.4 → 2.11.6
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/README.md +4 -0
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +143 -13
- package/esm2020/lib/components/private/add-form-field/add-form-field.component.mjs +76 -3
- package/esm2020/lib/components/private/add-formula-field/add-formula-field.component.mjs +74 -13
- package/esm2020/lib/components/private/dynamic-module-field-extra-fix/dynamic-module-field-extra-fix.component.mjs +16 -4
- package/esm2020/lib/components/private/field-graphics-editor/field-graphics-editor.component.mjs +735 -0
- package/esm2020/lib/components/private/field-templates/text-field-template/text-field-template.component.mjs +4 -4
- package/esm2020/lib/components/private/field-templates/textarea-field-template/textarea-field-template.component.mjs +3 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/text-filter-template/text-filter-template.component.mjs +3 -3
- package/esm2020/lib/components/private/form-statistics/filter-templates/textarea-filter-template/textarea-filter-template.component.mjs +3 -3
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/text-trigger-template/text-trigger-template.component.mjs +3 -3
- package/esm2020/lib/components/private/trigger-creator/trigger-templates/textarea-trigger-template/textarea-trigger-template.component.mjs +3 -3
- package/esm2020/lib/directives/speech-to-text/speech-to-text.directive.mjs +7 -2
- package/esm2020/lib/eqp-dynamic-module.module.mjs +4 -1
- package/esm2020/lib/utils/css-color.mjs +101 -0
- package/esm2020/lib/utils/css-declarations.mjs +119 -0
- package/esm2020/lib/utils/css-property-catalog.mjs +134 -0
- package/esm2020/lib/utils/field-style-catalog.mjs +491 -0
- package/esm2020/public-api.mjs +6 -1
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +1947 -75
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +1912 -82
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.d.ts +39 -0
- package/lib/components/private/add-form-field/add-form-field.component.d.ts +19 -0
- package/lib/components/private/add-formula-field/add-formula-field.component.d.ts +5 -1
- package/lib/components/private/field-graphics-editor/field-graphics-editor.component.d.ts +192 -0
- package/lib/directives/speech-to-text/speech-to-text.directive.d.ts +3 -1
- package/lib/eqp-dynamic-module.module.d.ts +66 -65
- package/lib/utils/css-color.d.ts +15 -0
- package/lib/utils/css-declarations.d.ts +23 -0
- package/lib/utils/css-property-catalog.d.ts +36 -0
- package/lib/utils/field-style-catalog.d.ts +130 -0
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
package/README.md
CHANGED
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
|
|
13
13
|
## Changelog
|
|
14
14
|
|
|
15
|
+
### v2.11.6
|
|
16
|
+
- **Bugfix — icona microfono non cambiava mai aspetto durante l'ascolto:** `SpeechToTextDirective` cambiava solo due classi CSS (`keyboard_speaking`/`keyboard_paused`, colore del tratto) sul `nativeElement` dell'icona, ma da quando le icone sono `tmw-icon` (SVG) lo stato "piena"/"outline" è governato dall'`@Input variant` del componente, mai legato da nessun template della libreria: il click avviava/fermava correttamente il riconoscimento vocale, ma l'icona restava visivamente invariata. Aggiunto `exportAs: 'speechToText'` e un getter pubblico `isListening` alla direttiva; tutte le 8 occorrenze dell'icona microfono (`text-field-template`, `textarea-field-template`, `text-trigger-template`, `textarea-trigger-template`, `text-filter-template`, `textarea-filter-template`, `dynamic-module-field-extra-fix`, il prompt AI del configuratore) ora legano `[variant]="mic.isListening ? 'filled' : 'outline'"` tramite una variabile di riferimento sul template. Nessun cambio di comportamento per chi usa `SpeechToTextDirective` senza leggerne `isListening`.
|
|
17
|
+
- **Bugfix — microphone icon never changed appearance while listening:** `SpeechToTextDirective` only toggled two CSS classes (`keyboard_speaking`/`keyboard_paused`, stroke color) on the icon's `nativeElement`, but since the icons became `tmw-icon` (SVG) the "filled"/"outline" look is driven by the component's `@Input variant`, never bound by any template in the library: clicking correctly started/stopped speech recognition, but the icon stayed visually unchanged. Added `exportAs: 'speechToText'` and a public `isListening` getter to the directive; all 8 occurrences of the microphone icon (`text-field-template`, `textarea-field-template`, `text-trigger-template`, `textarea-trigger-template`, `text-filter-template`, `textarea-filter-template`, `dynamic-module-field-extra-fix`, the configurator's AI prompt) now bind `[variant]="mic.isListening ? 'filled' : 'outline'"` via a template reference variable. No behavior change for consumers using `SpeechToTextDirective` without reading `isListening`.
|
|
18
|
+
|
|
15
19
|
### v2.11.0
|
|
16
20
|
- **Bugfix critico — pagina Trigger che si rompeva completamente:** `trigger-creator.component.ts` andava in eccezione in `ngOnInit()` quando il tipo di trigger salvato in precedenza (`trigger.execution`) non era più presente nel catalogo formule corrente (es. rimosso o rinominato dopo il salvataggio): l'intera pagina di modifica dei trigger diventava inutilizzabile. Ora il caso viene gestito esplicitamente — si resetta `selectedFormula` e si continua a popolare normalmente la select "Tipo Trigger", senza bloccare il resto del componente.
|
|
17
21
|
- **Bugfix — condizioni dei trigger rotte per i campi Modulo Dinamico (DMMODULE):** in `trigger-creator` e `action-button-creator`, l'elenco dei form (usato per popolare i campi di tipo `DMMODULE`) veniva ricaricato dal server ad ogni cambio di "Tipo Trigger"/"Tipo Action Button", sovrascrivendo temporaneamente `res.object` prima che la risposta arrivasse. Aggiunto `ensureModulesLoaded()`: la chiamata al server avviene solo la prima volta per apertura di modale, le volte successive si riusa `this.forms` già scaricato. Aggiunta anche una validazione minima (`isValid()`) che impedisce il salvataggio di un trigger senza descrizione o senza tipo selezionato.
|