@gnggln/ng-ui-system 1.0.0-alpha.20 → 1.0.0-alpha.21
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/crud-table/lib/components/form-builder/form-builder.component.d.ts +6 -2
- package/crud-table/lib/components/form-builder/types/field.types.d.ts +5 -0
- package/crud-table/lib/components/form-builder/types/validation.types.d.ts +5 -0
- package/esm2022/crud-table/lib/components/form-builder/form-builder.component.mjs +42 -9
- package/esm2022/crud-table/lib/components/form-builder/types/field.types.mjs +1 -1
- package/esm2022/crud-table/lib/components/form-builder/types/validation.types.mjs +6 -2
- package/esm2022/form-builder/lib/components/form-builder/form-builder.component.mjs +42 -9
- package/esm2022/form-builder/lib/components/form-builder/types/field.types.mjs +1 -1
- package/esm2022/form-builder/lib/components/form-builder/types/index.mjs +3 -2
- package/esm2022/form-builder/lib/components/form-builder/types/validation.types.mjs +6 -2
- package/esm2022/form-builder-editor/lib/components/form-builder/form-builder.component.mjs +42 -9
- package/esm2022/form-builder-editor/lib/components/form-builder/types/field.types.mjs +1 -1
- package/esm2022/form-builder-editor/lib/components/form-builder/types/index.mjs +3 -2
- package/esm2022/form-builder-editor/lib/components/form-builder/types/validation.types.mjs +6 -2
- package/esm2022/lib/components/form-builder/form-builder.component.mjs +42 -9
- package/esm2022/lib/components/form-builder/types/field.types.mjs +1 -1
- package/esm2022/lib/components/form-builder/types/index.mjs +3 -2
- package/esm2022/lib/components/form-builder/types/validation.types.mjs +6 -2
- package/esm2022/lib/version/ng-ui-system-version.mjs +2 -2
- package/fesm2022/gnggln-ng-ui-system-crud-table.mjs +50 -8
- package/fesm2022/gnggln-ng-ui-system-crud-table.mjs.map +1 -1
- package/fesm2022/gnggln-ng-ui-system-form-builder-editor.mjs +50 -8
- package/fesm2022/gnggln-ng-ui-system-form-builder-editor.mjs.map +1 -1
- package/fesm2022/gnggln-ng-ui-system-form-builder.mjs +53 -9
- package/fesm2022/gnggln-ng-ui-system-form-builder.mjs.map +1 -1
- package/fesm2022/gnggln-ng-ui-system.mjs +54 -10
- package/fesm2022/gnggln-ng-ui-system.mjs.map +1 -1
- package/form-builder/lib/components/form-builder/form-builder.component.d.ts +6 -2
- package/form-builder/lib/components/form-builder/types/field.types.d.ts +5 -0
- package/form-builder/lib/components/form-builder/types/index.d.ts +1 -1
- package/form-builder/lib/components/form-builder/types/validation.types.d.ts +5 -0
- package/form-builder-editor/lib/components/form-builder/form-builder.component.d.ts +6 -2
- package/form-builder-editor/lib/components/form-builder/types/field.types.d.ts +5 -0
- package/form-builder-editor/lib/components/form-builder/types/index.d.ts +1 -1
- package/form-builder-editor/lib/components/form-builder/types/validation.types.d.ts +5 -0
- package/lib/components/form-builder/form-builder.component.d.ts +6 -2
- package/lib/components/form-builder/types/field.types.d.ts +5 -0
- package/lib/components/form-builder/types/index.d.ts +1 -1
- package/lib/components/form-builder/types/validation.types.d.ts +5 -0
- package/lib/version/ng-ui-system-version.d.ts +1 -1
- package/package.json +7 -7
|
@@ -184,14 +184,18 @@ export declare class UiFormBuilderComponent implements OnInit, OnChanges, OnDest
|
|
|
184
184
|
/**
|
|
185
185
|
* Contesto passato a `ngTemplateOutlet` per il campo custom (CVA sul `control`).
|
|
186
186
|
*/
|
|
187
|
-
getCustomFieldOutletContext(field: UiFormFieldDescriptor, fg: FormGroup): UiCustomFieldTemplateContext;
|
|
187
|
+
getCustomFieldOutletContext(field: UiFormFieldDescriptor, fg: FormGroup, nestedErrorKeyPrefix?: string): UiCustomFieldTemplateContext;
|
|
188
188
|
/**
|
|
189
189
|
* Template e contesto in un solo oggetto (evita doppie valutazioni nel template).
|
|
190
190
|
*/
|
|
191
|
-
getCustomFieldOutlet(field: UiFormFieldDescriptor, fg: FormGroup): {
|
|
191
|
+
getCustomFieldOutlet(field: UiFormFieldDescriptor, fg: FormGroup, nestedErrorKeyPrefix?: string): {
|
|
192
192
|
template: TemplateRef<unknown>;
|
|
193
193
|
context: UiCustomFieldTemplateContext;
|
|
194
194
|
} | null;
|
|
195
|
+
/** Prefisso chiavi errore per campi custom annidati (flat o repeatable). */
|
|
196
|
+
buildNestedErrorKeyPrefix(fieldKey: string, instanceKeyPrefix?: string): string;
|
|
197
|
+
/** Merge errori nested da CVA custom nel dettaglio error-summary. */
|
|
198
|
+
private appendCustomNestedFieldErrors;
|
|
195
199
|
private isFormGroupValidExcluding;
|
|
196
200
|
/** Stato di validazione completo. */
|
|
197
201
|
getValidationState(): UiFormValidationState;
|
|
@@ -200,6 +200,11 @@ export interface UiCustomFieldTemplateContext {
|
|
|
200
200
|
control: FormControl;
|
|
201
201
|
/** Configurazione da `customConfig.config`. */
|
|
202
202
|
config: Record<string, any>;
|
|
203
|
+
/**
|
|
204
|
+
* Prefisso per chiavi errore/scroll dei campi interni al CVA
|
|
205
|
+
* (es. `step9[0].sezioneRepertorioRegionale__`).
|
|
206
|
+
*/
|
|
207
|
+
nestedErrorKeyPrefix?: string;
|
|
203
208
|
/** Notifica eventi applicativi (inoltrati come `customEvent` dal form builder). */
|
|
204
209
|
emitCustomEvent: (event: string, data?: any) => void;
|
|
205
210
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UiFieldType, UiFieldOption, UiDynamicOptionsConfig, UiDependentOptionsConfig, UiIconTooltip, UiFileData, UiFileInputConfig, UiCustomComponentConfig, UiCustomFieldTemplateContext, UiCustomFormComponent, UiFormFieldDescriptor, } from './field.types';
|
|
2
|
-
export { UiCrossFieldOperator, UiCrossFieldConfig, UiDateKeyword, UiDateValidationConfig, UiValidationType, UiValidationRule, UiFormValidationState, UiFormErrorDetail, } from './validation.types';
|
|
2
|
+
export { UiCrossFieldOperator, UiCrossFieldConfig, UiDateKeyword, UiDateValidationConfig, UiValidationType, UiValidationRule, UiFormValidationState, UiFormErrorDetail, UI_FORM_NESTED_FIELD_ERRORS_KEY, } from './validation.types';
|
|
3
3
|
export { UiConditionalOperator, UiFieldCondition, } from './condition.types';
|
|
4
4
|
export { UiLocationFieldConfig, UiLocationConfig, UiLocationLabels, UiLocationValue, UiLocationTableConfig, UiLocationRow, } from './territoriale.types';
|
|
5
5
|
export { UiGeocodedLocationType, UiGeocodedLocationInput, UiGeocodedItalianDetails, UiGeocodedForeignDetails, UiLocationGeocodedFieldConfig, } from './geocoded-location.types';
|
|
@@ -161,6 +161,11 @@ export interface UiFormValidationState {
|
|
|
161
161
|
/** Chiavi dei campi toccati. */
|
|
162
162
|
touched: string[];
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Chiave `ValidationErrors` usata dai CVA custom per esporre errori granulari
|
|
166
|
+
* sui campi interni (atomici) verso l'error-summary del form-builder.
|
|
167
|
+
*/
|
|
168
|
+
export declare const UI_FORM_NESTED_FIELD_ERRORS_KEY = "uiNestedFieldErrors";
|
|
164
169
|
/**
|
|
165
170
|
* Dettaglio di un errore per l'error summary.
|
|
166
171
|
*/
|
|
@@ -184,14 +184,18 @@ export declare class UiFormBuilderComponent implements OnInit, OnChanges, OnDest
|
|
|
184
184
|
/**
|
|
185
185
|
* Contesto passato a `ngTemplateOutlet` per il campo custom (CVA sul `control`).
|
|
186
186
|
*/
|
|
187
|
-
getCustomFieldOutletContext(field: UiFormFieldDescriptor, fg: FormGroup): UiCustomFieldTemplateContext;
|
|
187
|
+
getCustomFieldOutletContext(field: UiFormFieldDescriptor, fg: FormGroup, nestedErrorKeyPrefix?: string): UiCustomFieldTemplateContext;
|
|
188
188
|
/**
|
|
189
189
|
* Template e contesto in un solo oggetto (evita doppie valutazioni nel template).
|
|
190
190
|
*/
|
|
191
|
-
getCustomFieldOutlet(field: UiFormFieldDescriptor, fg: FormGroup): {
|
|
191
|
+
getCustomFieldOutlet(field: UiFormFieldDescriptor, fg: FormGroup, nestedErrorKeyPrefix?: string): {
|
|
192
192
|
template: TemplateRef<unknown>;
|
|
193
193
|
context: UiCustomFieldTemplateContext;
|
|
194
194
|
} | null;
|
|
195
|
+
/** Prefisso chiavi errore per campi custom annidati (flat o repeatable). */
|
|
196
|
+
buildNestedErrorKeyPrefix(fieldKey: string, instanceKeyPrefix?: string): string;
|
|
197
|
+
/** Merge errori nested da CVA custom nel dettaglio error-summary. */
|
|
198
|
+
private appendCustomNestedFieldErrors;
|
|
195
199
|
private isFormGroupValidExcluding;
|
|
196
200
|
/** Stato di validazione completo. */
|
|
197
201
|
getValidationState(): UiFormValidationState;
|
|
@@ -200,6 +200,11 @@ export interface UiCustomFieldTemplateContext {
|
|
|
200
200
|
control: FormControl;
|
|
201
201
|
/** Configurazione da `customConfig.config`. */
|
|
202
202
|
config: Record<string, any>;
|
|
203
|
+
/**
|
|
204
|
+
* Prefisso per chiavi errore/scroll dei campi interni al CVA
|
|
205
|
+
* (es. `step9[0].sezioneRepertorioRegionale__`).
|
|
206
|
+
*/
|
|
207
|
+
nestedErrorKeyPrefix?: string;
|
|
203
208
|
/** Notifica eventi applicativi (inoltrati come `customEvent` dal form builder). */
|
|
204
209
|
emitCustomEvent: (event: string, data?: any) => void;
|
|
205
210
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UiFieldType, UiFieldOption, UiDynamicOptionsConfig, UiDependentOptionsConfig, UiIconTooltip, UiFileData, UiFileInputConfig, UiCustomComponentConfig, UiCustomFieldTemplateContext, UiCustomFormComponent, UiFormFieldDescriptor, } from './field.types';
|
|
2
|
-
export { UiCrossFieldOperator, UiCrossFieldConfig, UiDateKeyword, UiDateValidationConfig, UiValidationType, UiValidationRule, UiFormValidationState, UiFormErrorDetail, } from './validation.types';
|
|
2
|
+
export { UiCrossFieldOperator, UiCrossFieldConfig, UiDateKeyword, UiDateValidationConfig, UiValidationType, UiValidationRule, UiFormValidationState, UiFormErrorDetail, UI_FORM_NESTED_FIELD_ERRORS_KEY, } from './validation.types';
|
|
3
3
|
export { UiConditionalOperator, UiFieldCondition, } from './condition.types';
|
|
4
4
|
export { UiLocationFieldConfig, UiLocationConfig, UiLocationLabels, UiLocationValue, UiLocationTableConfig, UiLocationRow, } from './territoriale.types';
|
|
5
5
|
export { UiGeocodedLocationType, UiGeocodedLocationInput, UiGeocodedItalianDetails, UiGeocodedForeignDetails, UiLocationGeocodedFieldConfig, } from './geocoded-location.types';
|
|
@@ -161,6 +161,11 @@ export interface UiFormValidationState {
|
|
|
161
161
|
/** Chiavi dei campi toccati. */
|
|
162
162
|
touched: string[];
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Chiave `ValidationErrors` usata dai CVA custom per esporre errori granulari
|
|
166
|
+
* sui campi interni (atomici) verso l'error-summary del form-builder.
|
|
167
|
+
*/
|
|
168
|
+
export declare const UI_FORM_NESTED_FIELD_ERRORS_KEY = "uiNestedFieldErrors";
|
|
164
169
|
/**
|
|
165
170
|
* Dettaglio di un errore per l'error summary.
|
|
166
171
|
*/
|
|
@@ -184,14 +184,18 @@ export declare class UiFormBuilderComponent implements OnInit, OnChanges, OnDest
|
|
|
184
184
|
/**
|
|
185
185
|
* Contesto passato a `ngTemplateOutlet` per il campo custom (CVA sul `control`).
|
|
186
186
|
*/
|
|
187
|
-
getCustomFieldOutletContext(field: UiFormFieldDescriptor, fg: FormGroup): UiCustomFieldTemplateContext;
|
|
187
|
+
getCustomFieldOutletContext(field: UiFormFieldDescriptor, fg: FormGroup, nestedErrorKeyPrefix?: string): UiCustomFieldTemplateContext;
|
|
188
188
|
/**
|
|
189
189
|
* Template e contesto in un solo oggetto (evita doppie valutazioni nel template).
|
|
190
190
|
*/
|
|
191
|
-
getCustomFieldOutlet(field: UiFormFieldDescriptor, fg: FormGroup): {
|
|
191
|
+
getCustomFieldOutlet(field: UiFormFieldDescriptor, fg: FormGroup, nestedErrorKeyPrefix?: string): {
|
|
192
192
|
template: TemplateRef<unknown>;
|
|
193
193
|
context: UiCustomFieldTemplateContext;
|
|
194
194
|
} | null;
|
|
195
|
+
/** Prefisso chiavi errore per campi custom annidati (flat o repeatable). */
|
|
196
|
+
buildNestedErrorKeyPrefix(fieldKey: string, instanceKeyPrefix?: string): string;
|
|
197
|
+
/** Merge errori nested da CVA custom nel dettaglio error-summary. */
|
|
198
|
+
private appendCustomNestedFieldErrors;
|
|
195
199
|
private isFormGroupValidExcluding;
|
|
196
200
|
/** Stato di validazione completo. */
|
|
197
201
|
getValidationState(): UiFormValidationState;
|
|
@@ -200,6 +200,11 @@ export interface UiCustomFieldTemplateContext {
|
|
|
200
200
|
control: FormControl;
|
|
201
201
|
/** Configurazione da `customConfig.config`. */
|
|
202
202
|
config: Record<string, any>;
|
|
203
|
+
/**
|
|
204
|
+
* Prefisso per chiavi errore/scroll dei campi interni al CVA
|
|
205
|
+
* (es. `step9[0].sezioneRepertorioRegionale__`).
|
|
206
|
+
*/
|
|
207
|
+
nestedErrorKeyPrefix?: string;
|
|
203
208
|
/** Notifica eventi applicativi (inoltrati come `customEvent` dal form builder). */
|
|
204
209
|
emitCustomEvent: (event: string, data?: any) => void;
|
|
205
210
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { UiFieldType, UiFieldOption, UiDynamicOptionsConfig, UiDependentOptionsConfig, UiIconTooltip, UiFileData, UiFileInputConfig, UiCustomComponentConfig, UiCustomFieldTemplateContext, UiCustomFormComponent, UiFormFieldDescriptor, } from './field.types';
|
|
2
|
-
export { UiCrossFieldOperator, UiCrossFieldConfig, UiDateKeyword, UiDateValidationConfig, UiValidationType, UiValidationRule, UiFormValidationState, UiFormErrorDetail, } from './validation.types';
|
|
2
|
+
export { UiCrossFieldOperator, UiCrossFieldConfig, UiDateKeyword, UiDateValidationConfig, UiValidationType, UiValidationRule, UiFormValidationState, UiFormErrorDetail, UI_FORM_NESTED_FIELD_ERRORS_KEY, } from './validation.types';
|
|
3
3
|
export { UiConditionalOperator, UiFieldCondition, } from './condition.types';
|
|
4
4
|
export { UiLocationFieldConfig, UiLocationConfig, UiLocationLabels, UiLocationValue, UiLocationTableConfig, UiLocationRow, } from './territoriale.types';
|
|
5
5
|
export { UiGeocodedLocationType, UiGeocodedLocationInput, UiGeocodedItalianDetails, UiGeocodedForeignDetails, UiLocationGeocodedFieldConfig, } from './geocoded-location.types';
|
|
@@ -161,6 +161,11 @@ export interface UiFormValidationState {
|
|
|
161
161
|
/** Chiavi dei campi toccati. */
|
|
162
162
|
touched: string[];
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Chiave `ValidationErrors` usata dai CVA custom per esporre errori granulari
|
|
166
|
+
* sui campi interni (atomici) verso l'error-summary del form-builder.
|
|
167
|
+
*/
|
|
168
|
+
export declare const UI_FORM_NESTED_FIELD_ERRORS_KEY = "uiNestedFieldErrors";
|
|
164
169
|
/**
|
|
165
170
|
* Dettaglio di un errore per l'error summary.
|
|
166
171
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Versione del pacchetto `@gnggln/ng-ui-system` (allineata a `packages/ng-ui-system/package.json`).
|
|
3
3
|
* Non modificare manualmente: eseguire `npm run version:sync` dalla root del workspace.
|
|
4
4
|
*/
|
|
5
|
-
export declare const NG_UI_SYSTEM_VERSION: "1.0.0-alpha.
|
|
5
|
+
export declare const NG_UI_SYSTEM_VERSION: "1.0.0-alpha.20";
|
|
6
6
|
/**
|
|
7
7
|
* Etichetta da mostrare in UI (prefisso `v` + SemVer npm).
|
|
8
8
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gnggln/ng-ui-system",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.21",
|
|
4
4
|
"description": "Enterprise-grade Angular standalone component library with design tokens, a11y, and full TypeScript support.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -89,18 +89,18 @@
|
|
|
89
89
|
"esm": "./esm2022/form-builder-editor/gnggln-ng-ui-system-form-builder-editor.mjs",
|
|
90
90
|
"default": "./fesm2022/gnggln-ng-ui-system-form-builder-editor.mjs"
|
|
91
91
|
},
|
|
92
|
-
"./layout-builder": {
|
|
93
|
-
"types": "./layout-builder/index.d.ts",
|
|
94
|
-
"esm2022": "./esm2022/layout-builder/gnggln-ng-ui-system-layout-builder.mjs",
|
|
95
|
-
"esm": "./esm2022/layout-builder/gnggln-ng-ui-system-layout-builder.mjs",
|
|
96
|
-
"default": "./fesm2022/gnggln-ng-ui-system-layout-builder.mjs"
|
|
97
|
-
},
|
|
98
92
|
"./http": {
|
|
99
93
|
"types": "./http/index.d.ts",
|
|
100
94
|
"esm2022": "./esm2022/http/gnggln-ng-ui-system-http.mjs",
|
|
101
95
|
"esm": "./esm2022/http/gnggln-ng-ui-system-http.mjs",
|
|
102
96
|
"default": "./fesm2022/gnggln-ng-ui-system-http.mjs"
|
|
103
97
|
},
|
|
98
|
+
"./layout-builder": {
|
|
99
|
+
"types": "./layout-builder/index.d.ts",
|
|
100
|
+
"esm2022": "./esm2022/layout-builder/gnggln-ng-ui-system-layout-builder.mjs",
|
|
101
|
+
"esm": "./esm2022/layout-builder/gnggln-ng-ui-system-layout-builder.mjs",
|
|
102
|
+
"default": "./fesm2022/gnggln-ng-ui-system-layout-builder.mjs"
|
|
103
|
+
},
|
|
104
104
|
"./modal": {
|
|
105
105
|
"types": "./modal/index.d.ts",
|
|
106
106
|
"esm2022": "./esm2022/modal/gnggln-ng-ui-system-modal.mjs",
|