@eqproject/eqp-dynamic-module 2.10.69 → 2.10.71
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 +113 -0
- package/esm2020/lib/components/exported/eqp-dynamic-module-configurator/eqp-dynamic-module-configurator.component.mjs +6 -4
- package/fesm2015/eqproject-eqp-dynamic-module.mjs +5 -3
- package/fesm2015/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/fesm2020/eqproject-eqp-dynamic-module.mjs +5 -3
- package/fesm2020/eqproject-eqp-dynamic-module.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,6 +12,15 @@
|
|
|
12
12
|
|
|
13
13
|
## Changelog
|
|
14
14
|
|
|
15
|
+
### v2.10.70
|
|
16
|
+
- **Theming configurator — nuovi input:** aggiunto `[configuratorThemeCss]` che accetta direttamente il testo di un file CSS con le dichiarazioni delle variabili `--conf-*`. Permette di portare il tema dall'esterno come file statico senza hardcodare valori TypeScript. Se entrambi gli input sono presenti, `configuratorTheme` sovrascrive `configuratorThemeCss` per le chiavi in conflitto.
|
|
17
|
+
- **Theming configurator — nuove variabili CSS:** `--conf-stepper-header-bg` (sfondo zona step superiore), `--conf-stepper-content-bg` (sfondo zona inferiore), `--conf-step-icon-edit-bg` (sfondo pallini step completati), `--conf-hint-btn-bg` / `--conf-hint-btn-hover-bg` (bottone suggerimento rapido), `--conf-btn-color` (colore testo bottoni con sfondo gradiente).
|
|
18
|
+
- **Theming configurator — forzatura `!important`:** tutti i valori iniettati tramite tema esterno sono ora applicati con `!important`, rendendo il sistema di theming l'unico canale valido per sovrascrivere i colori.
|
|
19
|
+
- **Theming configurator — `--conf-btn-color`:** il colore del testo dei bottoni attivi (sfondo gradiente) è ora templatizzabile e forzato con `!important` per resistere a override CSS provenienti dall'applicazione ospitante.
|
|
20
|
+
- **New theming input:** added `[configuratorThemeCss]` accepting a CSS text string with `--conf-*` variable declarations. Enables external theme files without TypeScript hardcoding. When both inputs are present, `configuratorTheme` overrides `configuratorThemeCss` for conflicting keys.
|
|
21
|
+
- **New CSS variables:** `--conf-stepper-header-bg`, `--conf-stepper-content-bg`, `--conf-step-icon-edit-bg`, `--conf-hint-btn-bg`, `--conf-hint-btn-hover-bg`, `--conf-btn-color`.
|
|
22
|
+
- **`!important` enforcement:** all externally-injected theme values are now set with `!important`, making the theming system the sole valid override channel.
|
|
23
|
+
|
|
15
24
|
### v2.10.65
|
|
16
25
|
- **TextField — icona opzionale:** aggiunta la possibilità di associare un'icona Material Icons al campo di testo. Le nuove proprietà `IconName` (stringa) e `IconPosition` (enum: `1`=Sinistra/prefix, `2`=Destra/suffix) sono opzionali e retrocompatibili (null sui form esistenti). Configurabili nel builder tramite il toggle "Icona" nella sezione Specifiche del campo.
|
|
17
26
|
- **TextField — optional icon:** added support for a Material Icons icon on text fields. New properties `IconName` (string) and `IconPosition` (enum: `1`=Left/prefix, `2`=Right/suffix) are optional and backward-compatible (null on existing forms). Configurable in the builder via the "Icona" toggle in the field's Specifiche section.
|
|
@@ -257,6 +266,8 @@ this.config = new DynamicModuleConfiguratorConfig(general, specific);
|
|
|
257
266
|
| `formulaObject` | `any` | — | Contesto per l'anteprima delle formule. |
|
|
258
267
|
| `QueryEditorComponent` | `DynamicLoaderDirectiveData` | — | Componente query editor custom. |
|
|
259
268
|
| `debugMode` | `boolean` | `false` | Abilita log dettagliati. |
|
|
269
|
+
| `configuratorTheme` | `Record<string, string> \| null` | `null` | Override delle variabili CSS del tema tramite oggetto TypeScript. |
|
|
270
|
+
| `configuratorThemeCss` | `string \| null` | `null` | Override delle variabili CSS del tema tramite stringa CSS (es. contenuto di un file `.css`). |
|
|
260
271
|
|
|
261
272
|
**Output**
|
|
262
273
|
|
|
@@ -267,6 +278,56 @@ this.config = new DynamicModuleConfiguratorConfig(general, specific);
|
|
|
267
278
|
| `(out)` | `eventOut` | Output generico per comunicazione esterna. |
|
|
268
279
|
| `(fireTrigger)` | `FireTrigger` | Emesso quando scatta un trigger. |
|
|
269
280
|
|
|
281
|
+
**Theming**
|
|
282
|
+
|
|
283
|
+
Il configurator espone un sistema di temi basato su CSS custom properties. Tutti i valori iniettati tramite tema sono applicati con `!important` e non possono essere sovrascritti dall'esterno se non attraverso questi input.
|
|
284
|
+
|
|
285
|
+
```html
|
|
286
|
+
<!-- Opzione A: oggetto TypeScript -->
|
|
287
|
+
<eqp-dynamic-module-configurator
|
|
288
|
+
[configurations]="config"
|
|
289
|
+
[configuratorTheme]="{ '--conf-gradient': 'linear-gradient(to right, #1565c0, #0288d1)', '--conf-bg-page': '#f0f6fb' }">
|
|
290
|
+
</eqp-dynamic-module-configurator>
|
|
291
|
+
|
|
292
|
+
<!-- Opzione B: file CSS caricato come stringa -->
|
|
293
|
+
<eqp-dynamic-module-configurator
|
|
294
|
+
[configurations]="config"
|
|
295
|
+
[configuratorThemeCss]="themeCssString">
|
|
296
|
+
</eqp-dynamic-module-configurator>
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
Formato del file CSS per `configuratorThemeCss` (nessun selettore richiesto):
|
|
300
|
+
|
|
301
|
+
```css
|
|
302
|
+
--conf-gradient: linear-gradient(to right, #1565c0, #0288d1);
|
|
303
|
+
--conf-bg-page: #f0f6fb;
|
|
304
|
+
--conf-btn-color: #ffffff;
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
Variabili disponibili:
|
|
308
|
+
|
|
309
|
+
| Variabile | Default | Descrizione |
|
|
310
|
+
|-----------|---------|-------------|
|
|
311
|
+
| `--conf-gradient` | gradiente viola-blu | Sfondo bottoni e header |
|
|
312
|
+
| `--conf-bg-page` | `#f5f5f5` | Sfondo generale pagina/stepper |
|
|
313
|
+
| `--conf-radius` | `10px` | Border radius bottoni |
|
|
314
|
+
| `--conf-modal-radius` | `12px` | Border radius modali |
|
|
315
|
+
| `--conf-accent` | `#693DDA` | Colore accento (bordi, focus) |
|
|
316
|
+
| `--conf-primary` | `#1E31EB` | Colore primario |
|
|
317
|
+
| `--conf-step-selected` | `#643cda` | Freccia step selezionato |
|
|
318
|
+
| `--conf-step-edit` | `#3034e7` | Freccia step completato |
|
|
319
|
+
| `--conf-stepper-header-bg` | ereditato da `--conf-bg-page` | Sfondo zona superiore (header stepper) |
|
|
320
|
+
| `--conf-stepper-content-bg` | ereditato da `--conf-bg-page` | Sfondo zona inferiore (form e bottoni) |
|
|
321
|
+
| `--conf-step-icon-edit-bg` | ereditato da `--conf-step-edit` | Sfondo pallini step completati |
|
|
322
|
+
| `--conf-btn-color` | `#ffffff` | Colore testo bottoni attivi (sfondo gradiente) |
|
|
323
|
+
| `--conf-hint-btn-bg` | `#2563eb` | Sfondo bottone suggerimento rapido (lampadina) |
|
|
324
|
+
| `--conf-hint-btn-hover-bg` | `#1d4ed8` | Sfondo lampadina al hover |
|
|
325
|
+
| `--conf-table-header-bg` | variabile SCSS | Sfondo header tabella campi |
|
|
326
|
+
| `--conf-search-bg` | variabile SCSS | Sfondo campo di ricerca |
|
|
327
|
+
| `--conf-table-bg` | `#ffffff` | Sfondo righe tabella |
|
|
328
|
+
| `--conf-card-bg` | `#ffffff` | Sfondo card |
|
|
329
|
+
| `--conf-font-family` | `inherit` | Font dell'intero configurator |
|
|
330
|
+
|
|
270
331
|
---
|
|
271
332
|
|
|
272
333
|
### Modelli di configurazione
|
|
@@ -593,6 +654,8 @@ generalConfig = new DynamicModuleGeneralConfig(
|
|
|
593
654
|
| `formulaObject` | `any` | — | Context for formula preview. |
|
|
594
655
|
| `QueryEditorComponent` | `DynamicLoaderDirectiveData` | — | Custom query editor component. |
|
|
595
656
|
| `debugMode` | `boolean` | `false` | Enable verbose logging. |
|
|
657
|
+
| `configuratorTheme` | `Record<string, string> \| null` | `null` | CSS variable overrides via TypeScript object. |
|
|
658
|
+
| `configuratorThemeCss` | `string \| null` | `null` | CSS variable overrides via CSS text string (e.g. contents of a `.css` file). |
|
|
596
659
|
|
|
597
660
|
**Outputs**
|
|
598
661
|
|
|
@@ -603,6 +666,56 @@ generalConfig = new DynamicModuleGeneralConfig(
|
|
|
603
666
|
| `(out)` | `eventOut` | General-purpose external output. |
|
|
604
667
|
| `(fireTrigger)` | `FireTrigger` | Emitted when a trigger fires. |
|
|
605
668
|
|
|
669
|
+
**Theming**
|
|
670
|
+
|
|
671
|
+
The configurator exposes a theming system based on CSS custom properties. All values injected via the theme inputs are applied with `!important` and cannot be overridden externally except through these inputs.
|
|
672
|
+
|
|
673
|
+
```html
|
|
674
|
+
<!-- Option A: TypeScript object -->
|
|
675
|
+
<eqp-dynamic-module-configurator
|
|
676
|
+
[configurations]="config"
|
|
677
|
+
[configuratorTheme]="{ '--conf-gradient': 'linear-gradient(to right, #1565c0, #0288d1)' }">
|
|
678
|
+
</eqp-dynamic-module-configurator>
|
|
679
|
+
|
|
680
|
+
<!-- Option B: CSS file loaded as string -->
|
|
681
|
+
<eqp-dynamic-module-configurator
|
|
682
|
+
[configurations]="config"
|
|
683
|
+
[configuratorThemeCss]="themeCssString">
|
|
684
|
+
</eqp-dynamic-module-configurator>
|
|
685
|
+
```
|
|
686
|
+
|
|
687
|
+
CSS file format for `configuratorThemeCss` (no selector required):
|
|
688
|
+
|
|
689
|
+
```css
|
|
690
|
+
--conf-gradient: linear-gradient(to right, #1565c0, #0288d1);
|
|
691
|
+
--conf-bg-page: #f0f6fb;
|
|
692
|
+
--conf-btn-color: #ffffff;
|
|
693
|
+
```
|
|
694
|
+
|
|
695
|
+
Available variables:
|
|
696
|
+
|
|
697
|
+
| Variable | Default | Description |
|
|
698
|
+
|----------|---------|-------------|
|
|
699
|
+
| `--conf-gradient` | purple-blue gradient | Button and header background |
|
|
700
|
+
| `--conf-bg-page` | `#f5f5f5` | General page/stepper background |
|
|
701
|
+
| `--conf-radius` | `10px` | Button border radius |
|
|
702
|
+
| `--conf-modal-radius` | `12px` | Modal border radius |
|
|
703
|
+
| `--conf-accent` | `#693DDA` | Accent colour (borders, focus) |
|
|
704
|
+
| `--conf-primary` | `#1E31EB` | Primary colour |
|
|
705
|
+
| `--conf-step-selected` | `#643cda` | Selected step arrow |
|
|
706
|
+
| `--conf-step-edit` | `#3034e7` | Completed step arrow |
|
|
707
|
+
| `--conf-stepper-header-bg` | inherited from `--conf-bg-page` | Upper zone background (stepper header) |
|
|
708
|
+
| `--conf-stepper-content-bg` | inherited from `--conf-bg-page` | Lower zone background (form and buttons) |
|
|
709
|
+
| `--conf-step-icon-edit-bg` | inherited from `--conf-step-edit` | Completed step icon background |
|
|
710
|
+
| `--conf-btn-color` | `#ffffff` | Active button text colour (gradient background) |
|
|
711
|
+
| `--conf-hint-btn-bg` | `#2563eb` | Quick-suggestion button (lightbulb) background |
|
|
712
|
+
| `--conf-hint-btn-hover-bg` | `#1d4ed8` | Lightbulb button hover background |
|
|
713
|
+
| `--conf-table-header-bg` | SCSS variable | Field table header background |
|
|
714
|
+
| `--conf-search-bg` | SCSS variable | Search field background |
|
|
715
|
+
| `--conf-table-bg` | `#ffffff` | Table row background |
|
|
716
|
+
| `--conf-card-bg` | `#ffffff` | Card background |
|
|
717
|
+
| `--conf-font-family` | `inherit` | Configurator-wide font family |
|
|
718
|
+
|
|
606
719
|
---
|
|
607
720
|
|
|
608
721
|
### Configuration Models
|