@gnggln/ng-ui-system 1.0.0-alpha.2 → 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/accordion/entry-accordion.d.ts +4 -0
- package/accordion/index.d.ts +5 -0
- package/accordion/lib/components/accordion/accordion.component.d.ts +125 -0
- package/accordion/lib/components/accordion/accordion.types.d.ts +64 -0
- package/accordion/lib/components/accordion/index.d.ts +2 -0
- package/accordion/lib/core/types/index.d.ts +133 -0
- package/base-layout/entry-base-layout.d.ts +4 -0
- package/base-layout/index.d.ts +5 -0
- package/base-layout/lib/components/base-layout/base-layout.component.d.ts +108 -0
- package/base-layout/lib/components/base-layout/base-layout.types.d.ts +40 -0
- package/base-layout/lib/components/base-layout/index.d.ts +13 -0
- package/base-layout/lib/components/blackbox/blackbox-fingerprint.service.d.ts +36 -0
- package/base-layout/lib/components/blackbox/blackbox-storage.service.d.ts +55 -0
- package/base-layout/lib/components/blackbox/blackbox.service.d.ts +144 -0
- package/base-layout/lib/components/blackbox/blackbox.types.d.ts +238 -0
- package/base-layout/lib/components/button/button-area.component.d.ts +93 -0
- package/base-layout/lib/components/button/button.component.d.ts +61 -0
- package/base-layout/lib/components/button/button.types.d.ts +75 -0
- package/base-layout/lib/components/page-header/breadcrumb.service.d.ts +96 -0
- package/base-layout/lib/components/page-header/page-header.component.d.ts +59 -0
- package/base-layout/lib/components/page-header/page-header.types.d.ts +96 -0
- package/base-layout/lib/core/types/index.d.ts +133 -0
- package/blackbox/entry-blackbox.d.ts +4 -0
- package/blackbox/index.d.ts +5 -0
- package/blackbox/lib/components/blackbox/blackbox-debugger.component.d.ts +80 -0
- package/blackbox/lib/components/blackbox/blackbox-debugger.service.d.ts +34 -0
- package/blackbox/lib/components/blackbox/blackbox-fingerprint.service.d.ts +36 -0
- package/blackbox/lib/components/blackbox/blackbox-json-viewer.component.d.ts +18 -0
- package/blackbox/lib/components/blackbox/blackbox-storage.service.d.ts +55 -0
- package/blackbox/lib/components/blackbox/blackbox.interceptor.d.ts +38 -0
- package/blackbox/lib/components/blackbox/blackbox.service.d.ts +144 -0
- package/blackbox/lib/components/blackbox/blackbox.types.d.ts +238 -0
- package/blackbox/lib/components/blackbox/index.d.ts +23 -0
- package/blackbox/lib/components/blackbox/ui-track.directive.d.ts +20 -0
- package/blackbox/lib/components/button/button-area.component.d.ts +93 -0
- package/blackbox/lib/components/button/button.component.d.ts +61 -0
- package/blackbox/lib/components/button/button.types.d.ts +75 -0
- package/blackbox/lib/components/button/index.d.ts +15 -0
- package/blackbox/lib/components/modal/confirm-dialog.component.d.ts +46 -0
- package/blackbox/lib/components/modal/index.d.ts +4 -0
- package/blackbox/lib/components/modal/modal.component.d.ts +44 -0
- package/blackbox/lib/components/modal/modal.service.d.ts +93 -0
- package/blackbox/lib/components/modal/modal.types.d.ts +110 -0
- package/blackbox/lib/core/types/index.d.ts +133 -0
- package/button/entry-button.d.ts +4 -0
- package/button/index.d.ts +5 -0
- package/button/lib/components/blackbox/blackbox-fingerprint.service.d.ts +36 -0
- package/button/lib/components/blackbox/blackbox-storage.service.d.ts +55 -0
- package/button/lib/components/blackbox/blackbox.service.d.ts +144 -0
- package/button/lib/components/blackbox/blackbox.types.d.ts +238 -0
- package/button/lib/components/button/button-area.component.d.ts +93 -0
- package/button/lib/components/button/button.component.d.ts +61 -0
- package/button/lib/components/button/button.types.d.ts +75 -0
- package/button/lib/components/button/index.d.ts +15 -0
- package/button/lib/core/types/index.d.ts +133 -0
- package/core/entry-core.d.ts +5 -0
- package/core/index.d.ts +5 -0
- package/core/lib/core/types/index.d.ts +133 -0
- package/core/lib/core/utils/index.d.ts +60 -0
- package/crud-table/entry-crud-table.d.ts +4 -0
- package/crud-table/index.d.ts +5 -0
- package/crud-table/lib/components/accordion/accordion.component.d.ts +125 -0
- package/crud-table/lib/components/accordion/accordion.types.d.ts +64 -0
- package/crud-table/lib/components/accordion/index.d.ts +2 -0
- package/crud-table/lib/components/blackbox/blackbox-fingerprint.service.d.ts +36 -0
- package/crud-table/lib/components/blackbox/blackbox-storage.service.d.ts +55 -0
- package/crud-table/lib/components/blackbox/blackbox.service.d.ts +144 -0
- package/crud-table/lib/components/blackbox/blackbox.types.d.ts +238 -0
- package/crud-table/lib/components/button/button-area.component.d.ts +93 -0
- package/crud-table/lib/components/button/button.component.d.ts +61 -0
- package/crud-table/lib/components/button/button.types.d.ts +75 -0
- package/crud-table/lib/components/button/index.d.ts +15 -0
- package/crud-table/lib/components/crud-table/crud-table.component.d.ts +143 -0
- package/crud-table/lib/components/crud-table/crud-table.types.d.ts +207 -0
- package/crud-table/lib/components/crud-table/index.d.ts +15 -0
- package/crud-table/lib/components/form-builder/adapters/it-date-adapter.d.ts +32 -0
- package/crud-table/lib/components/form-builder/directives/currency-input.directive.d.ts +48 -0
- package/crud-table/lib/components/form-builder/form-builder.component.d.ts +279 -0
- package/crud-table/lib/components/form-builder/services/form-condition.service.d.ts +46 -0
- package/crud-table/lib/components/form-builder/services/form-error-state.matcher.d.ts +9 -0
- package/crud-table/lib/components/form-builder/services/form-field-error.service.d.ts +38 -0
- package/crud-table/lib/components/form-builder/services/form-validation.service.d.ts +63 -0
- package/crud-table/lib/components/form-builder/services/location.service.d.ts +83 -0
- package/crud-table/lib/components/form-builder/services/nominatim-geocoding.service.d.ts +37 -0
- package/crud-table/lib/components/form-builder/sub-components/error-summary/form-error-summary.component.d.ts +31 -0
- package/crud-table/lib/components/form-builder/sub-components/file-input/file-input.component.d.ts +41 -0
- package/crud-table/lib/components/form-builder/sub-components/form-fields/form-number-field.component.d.ts +42 -0
- package/crud-table/lib/components/form-builder/sub-components/form-fields/form-radio-field.component.d.ts +45 -0
- package/crud-table/lib/components/form-builder/sub-components/form-fields/form-select-field.component.d.ts +44 -0
- package/crud-table/lib/components/form-builder/sub-components/form-fields/form-text-field.component.d.ts +62 -0
- package/crud-table/lib/components/form-builder/sub-components/form-fields/form-textarea-field.component.d.ts +39 -0
- package/crud-table/lib/components/form-builder/sub-components/form-fields/index.d.ts +5 -0
- package/crud-table/lib/components/form-builder/sub-components/location-geocoded/location-geocoded.component.d.ts +84 -0
- package/crud-table/lib/components/form-builder/sub-components/specifica-territoriale/specifica-territoriale.component.d.ts +145 -0
- package/crud-table/lib/components/form-builder/sub-components/table-territoriale/table-territoriale.component.d.ts +108 -0
- package/crud-table/lib/components/form-builder/types/condition.types.d.ts +51 -0
- package/crud-table/lib/components/form-builder/types/field.types.d.ts +330 -0
- package/crud-table/lib/components/form-builder/types/geocoded-location.types.d.ts +116 -0
- package/crud-table/lib/components/form-builder/types/schema.types.d.ts +304 -0
- package/crud-table/lib/components/form-builder/types/territoriale.types.d.ts +170 -0
- package/crud-table/lib/components/form-builder/types/validation.types.d.ts +179 -0
- package/crud-table/lib/components/modal/confirm-dialog.component.d.ts +46 -0
- package/crud-table/lib/components/modal/modal.service.d.ts +93 -0
- package/crud-table/lib/components/modal/modal.types.d.ts +110 -0
- package/crud-table/lib/core/logging/logger.config.d.ts +18 -0
- package/crud-table/lib/core/logging/logger.service.d.ts +75 -0
- package/crud-table/lib/core/logging/logger.types.d.ts +70 -0
- package/crud-table/lib/core/types/index.d.ts +133 -0
- package/esm2022/accordion/entry-accordion.mjs +5 -0
- package/esm2022/accordion/gnggln-ng-ui-system-accordion.mjs +5 -0
- package/esm2022/accordion/lib/components/accordion/accordion.component.mjs +398 -0
- package/esm2022/accordion/lib/components/accordion/accordion.types.mjs +6 -0
- package/esm2022/accordion/lib/components/accordion/index.mjs +2 -0
- package/esm2022/accordion/lib/core/types/index.mjs +6 -0
- package/esm2022/base-layout/entry-base-layout.mjs +5 -0
- package/esm2022/base-layout/gnggln-ng-ui-system-base-layout.mjs +5 -0
- package/esm2022/base-layout/lib/components/base-layout/base-layout.component.mjs +272 -0
- package/esm2022/base-layout/lib/components/base-layout/base-layout.types.mjs +6 -0
- package/esm2022/base-layout/lib/components/base-layout/index.mjs +14 -0
- package/esm2022/base-layout/lib/components/blackbox/blackbox-fingerprint.service.mjs +116 -0
- package/esm2022/base-layout/lib/components/blackbox/blackbox-storage.service.mjs +286 -0
- package/esm2022/base-layout/lib/components/blackbox/blackbox.service.mjs +323 -0
- package/esm2022/base-layout/lib/components/blackbox/blackbox.types.mjs +25 -0
- package/esm2022/base-layout/lib/components/button/button-area.component.mjs +210 -0
- package/esm2022/base-layout/lib/components/button/button.component.mjs +180 -0
- package/esm2022/base-layout/lib/components/button/button.types.mjs +6 -0
- package/esm2022/base-layout/lib/components/page-header/breadcrumb.service.mjs +243 -0
- package/esm2022/base-layout/lib/components/page-header/page-header.component.mjs +243 -0
- package/esm2022/base-layout/lib/components/page-header/page-header.types.mjs +21 -0
- package/esm2022/base-layout/lib/core/types/index.mjs +6 -0
- package/esm2022/blackbox/entry-blackbox.mjs +5 -0
- package/esm2022/blackbox/gnggln-ng-ui-system-blackbox.mjs +5 -0
- package/esm2022/blackbox/lib/components/blackbox/blackbox-debugger.component.mjs +904 -0
- package/esm2022/blackbox/lib/components/blackbox/blackbox-debugger.service.mjs +51 -0
- package/esm2022/blackbox/lib/components/blackbox/blackbox-fingerprint.service.mjs +116 -0
- package/esm2022/blackbox/lib/components/blackbox/blackbox-json-viewer.component.mjs +66 -0
- package/esm2022/blackbox/lib/components/blackbox/blackbox-storage.service.mjs +286 -0
- package/esm2022/blackbox/lib/components/blackbox/blackbox.interceptor.mjs +135 -0
- package/esm2022/blackbox/lib/components/blackbox/blackbox.service.mjs +323 -0
- package/esm2022/blackbox/lib/components/blackbox/blackbox.types.mjs +25 -0
- package/esm2022/blackbox/lib/components/blackbox/index.mjs +27 -0
- package/esm2022/blackbox/lib/components/blackbox/ui-track.directive.mjs +69 -0
- package/esm2022/blackbox/lib/components/button/button-area.component.mjs +210 -0
- package/esm2022/blackbox/lib/components/button/button.component.mjs +180 -0
- package/esm2022/blackbox/lib/components/button/button.types.mjs +6 -0
- package/esm2022/blackbox/lib/components/button/index.mjs +16 -0
- package/esm2022/blackbox/lib/components/modal/confirm-dialog.component.mjs +151 -0
- package/esm2022/blackbox/lib/components/modal/index.mjs +4 -0
- package/esm2022/blackbox/lib/components/modal/modal.component.mjs +139 -0
- package/esm2022/blackbox/lib/components/modal/modal.service.mjs +197 -0
- package/esm2022/blackbox/lib/components/modal/modal.types.mjs +6 -0
- package/esm2022/blackbox/lib/core/types/index.mjs +6 -0
- package/esm2022/button/entry-button.mjs +5 -0
- package/esm2022/button/gnggln-ng-ui-system-button.mjs +5 -0
- package/esm2022/button/lib/components/blackbox/blackbox-fingerprint.service.mjs +116 -0
- package/esm2022/button/lib/components/blackbox/blackbox-storage.service.mjs +286 -0
- package/esm2022/button/lib/components/blackbox/blackbox.service.mjs +323 -0
- package/esm2022/button/lib/components/blackbox/blackbox.types.mjs +25 -0
- package/esm2022/button/lib/components/button/button-area.component.mjs +210 -0
- package/esm2022/button/lib/components/button/button.component.mjs +180 -0
- package/esm2022/button/lib/components/button/button.types.mjs +6 -0
- package/esm2022/button/lib/components/button/index.mjs +16 -0
- package/esm2022/button/lib/core/types/index.mjs +6 -0
- package/esm2022/core/entry-core.mjs +6 -0
- package/esm2022/core/gnggln-ng-ui-system-core.mjs +5 -0
- package/esm2022/core/lib/core/types/index.mjs +6 -0
- package/esm2022/core/lib/core/utils/index.mjs +102 -0
- package/esm2022/crud-table/entry-crud-table.mjs +5 -0
- package/esm2022/crud-table/gnggln-ng-ui-system-crud-table.mjs +5 -0
- package/esm2022/crud-table/lib/components/accordion/accordion.component.mjs +398 -0
- package/esm2022/crud-table/lib/components/accordion/accordion.types.mjs +6 -0
- package/esm2022/crud-table/lib/components/accordion/index.mjs +2 -0
- package/esm2022/crud-table/lib/components/blackbox/blackbox-fingerprint.service.mjs +116 -0
- package/esm2022/crud-table/lib/components/blackbox/blackbox-storage.service.mjs +286 -0
- package/esm2022/crud-table/lib/components/blackbox/blackbox.service.mjs +323 -0
- package/esm2022/crud-table/lib/components/blackbox/blackbox.types.mjs +25 -0
- package/esm2022/crud-table/lib/components/button/button-area.component.mjs +210 -0
- package/esm2022/crud-table/lib/components/button/button.component.mjs +180 -0
- package/esm2022/crud-table/lib/components/button/button.types.mjs +6 -0
- package/esm2022/crud-table/lib/components/button/index.mjs +16 -0
- package/esm2022/crud-table/lib/components/crud-table/crud-table.component.mjs +789 -0
- package/esm2022/crud-table/lib/components/crud-table/crud-table.types.mjs +6 -0
- package/esm2022/crud-table/lib/components/crud-table/index.mjs +16 -0
- package/esm2022/crud-table/lib/components/form-builder/adapters/it-date-adapter.mjs +82 -0
- package/esm2022/crud-table/lib/components/form-builder/directives/currency-input.directive.mjs +184 -0
- package/esm2022/crud-table/lib/components/form-builder/form-builder.component.mjs +1351 -0
- package/esm2022/crud-table/lib/components/form-builder/services/form-condition.service.mjs +132 -0
- package/esm2022/crud-table/lib/components/form-builder/services/form-error-state.matcher.mjs +10 -0
- package/esm2022/crud-table/lib/components/form-builder/services/form-field-error.service.mjs +103 -0
- package/esm2022/crud-table/lib/components/form-builder/services/form-validation.service.mjs +381 -0
- package/esm2022/crud-table/lib/components/form-builder/services/location.service.mjs +141 -0
- package/esm2022/crud-table/lib/components/form-builder/services/nominatim-geocoding.service.mjs +120 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/error-summary/form-error-summary.component.mjs +190 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/file-input/file-input.component.mjs +310 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/form-fields/form-number-field.component.mjs +113 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/form-fields/form-radio-field.component.mjs +105 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/form-fields/form-select-field.component.mjs +126 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/form-fields/form-text-field.component.mjs +147 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/form-fields/form-textarea-field.component.mjs +99 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/form-fields/index.mjs +6 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/location-geocoded/location-geocoded.component.mjs +322 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/specifica-territoriale/specifica-territoriale.component.mjs +648 -0
- package/esm2022/crud-table/lib/components/form-builder/sub-components/table-territoriale/table-territoriale.component.mjs +432 -0
- package/esm2022/crud-table/lib/components/form-builder/types/condition.types.mjs +6 -0
- package/esm2022/crud-table/lib/components/form-builder/types/field.types.mjs +6 -0
- package/esm2022/crud-table/lib/components/form-builder/types/geocoded-location.types.mjs +6 -0
- package/esm2022/crud-table/lib/components/form-builder/types/schema.types.mjs +6 -0
- package/esm2022/crud-table/lib/components/form-builder/types/territoriale.types.mjs +6 -0
- package/esm2022/crud-table/lib/components/form-builder/types/validation.types.mjs +10 -0
- package/esm2022/crud-table/lib/components/modal/confirm-dialog.component.mjs +151 -0
- package/esm2022/crud-table/lib/components/modal/modal.service.mjs +197 -0
- package/esm2022/crud-table/lib/components/modal/modal.types.mjs +6 -0
- package/esm2022/crud-table/lib/core/logging/logger.config.mjs +18 -0
- package/esm2022/crud-table/lib/core/logging/logger.service.mjs +295 -0
- package/esm2022/crud-table/lib/core/logging/logger.types.mjs +7 -0
- package/esm2022/crud-table/lib/core/types/index.mjs +6 -0
- package/esm2022/crud-table/lib/sources/location-data.opt.json +8942 -0
- package/esm2022/crud-table/lib/sources/nazioni.opt.json +215 -0
- package/esm2022/form-builder/entry-form-builder.mjs +5 -0
- package/esm2022/form-builder/gnggln-ng-ui-system-form-builder.mjs +5 -0
- package/esm2022/form-builder/lib/components/accordion/accordion.component.mjs +398 -0
- package/esm2022/form-builder/lib/components/accordion/accordion.types.mjs +6 -0
- package/esm2022/form-builder/lib/components/accordion/index.mjs +2 -0
- package/esm2022/form-builder/lib/components/blackbox/blackbox-fingerprint.service.mjs +116 -0
- package/esm2022/form-builder/lib/components/blackbox/blackbox-storage.service.mjs +286 -0
- package/esm2022/form-builder/lib/components/blackbox/blackbox.service.mjs +323 -0
- package/esm2022/form-builder/lib/components/blackbox/blackbox.types.mjs +25 -0
- package/esm2022/form-builder/lib/components/button/button-area.component.mjs +210 -0
- package/esm2022/form-builder/lib/components/button/button.component.mjs +180 -0
- package/esm2022/form-builder/lib/components/button/button.types.mjs +6 -0
- package/esm2022/form-builder/lib/components/button/index.mjs +16 -0
- package/esm2022/form-builder/lib/components/form-builder/adapters/it-date-adapter.mjs +82 -0
- package/esm2022/form-builder/lib/components/form-builder/directives/currency-input.directive.mjs +184 -0
- package/esm2022/form-builder/lib/components/form-builder/form-builder.component.mjs +1351 -0
- package/esm2022/form-builder/lib/components/form-builder/form-wizard.component.mjs +1064 -0
- package/esm2022/form-builder/lib/components/form-builder/index.mjs +24 -0
- package/esm2022/form-builder/lib/components/form-builder/services/form-condition.service.mjs +132 -0
- package/esm2022/form-builder/lib/components/form-builder/services/form-error-state.matcher.mjs +10 -0
- package/esm2022/form-builder/lib/components/form-builder/services/form-field-error.service.mjs +103 -0
- package/esm2022/form-builder/lib/components/form-builder/services/form-validation.service.mjs +381 -0
- package/esm2022/form-builder/lib/components/form-builder/services/location.service.mjs +141 -0
- package/esm2022/form-builder/lib/components/form-builder/services/nominatim-geocoding.service.mjs +120 -0
- package/esm2022/form-builder/lib/components/form-builder/services/wizard-sync.service.mjs +84 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/error-summary/form-error-summary.component.mjs +190 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/file-input/file-input.component.mjs +310 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/form-fields/form-number-field.component.mjs +113 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/form-fields/form-radio-field.component.mjs +105 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/form-fields/form-select-field.component.mjs +126 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/form-fields/form-text-field.component.mjs +147 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/form-fields/form-textarea-field.component.mjs +99 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/form-fields/index.mjs +6 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/location-geocoded/location-geocoded.component.mjs +322 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/specifica-territoriale/specifica-territoriale.component.mjs +648 -0
- package/esm2022/form-builder/lib/components/form-builder/sub-components/table-territoriale/table-territoriale.component.mjs +432 -0
- package/esm2022/form-builder/lib/components/form-builder/types/condition.types.mjs +6 -0
- package/esm2022/form-builder/lib/components/form-builder/types/field.types.mjs +6 -0
- package/esm2022/form-builder/lib/components/form-builder/types/geocoded-location.types.mjs +6 -0
- package/esm2022/form-builder/lib/components/form-builder/types/index.mjs +3 -0
- package/esm2022/form-builder/lib/components/form-builder/types/schema.types.mjs +6 -0
- package/esm2022/form-builder/lib/components/form-builder/types/territoriale.types.mjs +6 -0
- package/esm2022/form-builder/lib/components/form-builder/types/validation.types.mjs +10 -0
- package/esm2022/form-builder/lib/core/logging/logger.config.mjs +18 -0
- package/esm2022/form-builder/lib/core/logging/logger.service.mjs +295 -0
- package/esm2022/form-builder/lib/core/logging/logger.types.mjs +7 -0
- package/esm2022/form-builder/lib/core/types/index.mjs +6 -0
- package/esm2022/form-builder/lib/sources/location-data.opt.json +8942 -0
- package/esm2022/form-builder/lib/sources/nazioni.opt.json +215 -0
- package/esm2022/form-builder-editor/entry-form-builder-editor.mjs +5 -0
- package/esm2022/form-builder-editor/gnggln-ng-ui-system-form-builder-editor.mjs +5 -0
- package/esm2022/form-builder-editor/lib/components/accordion/accordion.component.mjs +398 -0
- package/esm2022/form-builder-editor/lib/components/accordion/accordion.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/accordion/index.mjs +2 -0
- package/esm2022/form-builder-editor/lib/components/blackbox/blackbox-fingerprint.service.mjs +116 -0
- package/esm2022/form-builder-editor/lib/components/blackbox/blackbox-storage.service.mjs +286 -0
- package/esm2022/form-builder-editor/lib/components/blackbox/blackbox.service.mjs +323 -0
- package/esm2022/form-builder-editor/lib/components/blackbox/blackbox.types.mjs +25 -0
- package/esm2022/form-builder-editor/lib/components/button/button-area.component.mjs +210 -0
- package/esm2022/form-builder-editor/lib/components/button/button.component.mjs +180 -0
- package/esm2022/form-builder-editor/lib/components/button/button.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/button/index.mjs +16 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/adapters/it-date-adapter.mjs +82 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/directives/currency-input.directive.mjs +184 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/form-builder.component.mjs +1351 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/services/form-condition.service.mjs +132 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/services/form-error-state.matcher.mjs +10 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/services/form-field-error.service.mjs +103 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/services/form-validation.service.mjs +381 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/services/location.service.mjs +141 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/services/nominatim-geocoding.service.mjs +120 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/error-summary/form-error-summary.component.mjs +190 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/file-input/file-input.component.mjs +310 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-number-field.component.mjs +113 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-radio-field.component.mjs +105 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-select-field.component.mjs +126 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-text-field.component.mjs +147 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-textarea-field.component.mjs +99 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/form-fields/index.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/location-geocoded/location-geocoded.component.mjs +322 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/specifica-territoriale/specifica-territoriale.component.mjs +648 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/sub-components/table-territoriale/table-territoriale.component.mjs +432 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/types/condition.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/types/field.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/types/geocoded-location.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/types/index.mjs +3 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/types/schema.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/types/territoriale.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/form-builder/types/validation.types.mjs +10 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/form-builder-editor.component.mjs +730 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/form-builder-editor.service.mjs +56 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/index.mjs +23 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/presets/editor-presets.mjs +395 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/services/editor-persistence.service.mjs +190 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/services/editor-state.service.mjs +324 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/services/field-factory.service.mjs +188 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/condition-editor/condition-editor.component.mjs +667 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/editor-toolbar/editor-toolbar.component.mjs +317 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/field-config-panel/field-config-panel.component.mjs +611 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/field-palette/field-palette.component.mjs +267 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/form-values-panel/form-values-panel.component.mjs +276 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/options-editor/options-editor.component.mjs +323 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/preview-container/preview-container.component.mjs +238 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/section-editor/section-editor.component.mjs +473 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/sub-components/validation-editor/validation-editor.component.mjs +473 -0
- package/esm2022/form-builder-editor/lib/components/form-builder-editor/types/editor.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/components/modal/confirm-dialog.component.mjs +151 -0
- package/esm2022/form-builder-editor/lib/components/modal/index.mjs +4 -0
- package/esm2022/form-builder-editor/lib/components/modal/modal.component.mjs +139 -0
- package/esm2022/form-builder-editor/lib/components/modal/modal.service.mjs +197 -0
- package/esm2022/form-builder-editor/lib/components/modal/modal.types.mjs +6 -0
- package/esm2022/form-builder-editor/lib/core/logging/logger.config.mjs +18 -0
- package/esm2022/form-builder-editor/lib/core/logging/logger.service.mjs +295 -0
- package/esm2022/form-builder-editor/lib/core/logging/logger.types.mjs +7 -0
- package/esm2022/form-builder-editor/lib/core/types/index.mjs +6 -0
- package/esm2022/form-builder-editor/lib/sources/location-data.opt.json +8942 -0
- package/esm2022/form-builder-editor/lib/sources/nazioni.opt.json +215 -0
- package/esm2022/http/entry-http.mjs +5 -0
- package/esm2022/http/gnggln-ng-ui-system-http.mjs +5 -0
- package/esm2022/http/lib/components/blackbox/blackbox-fingerprint.service.mjs +116 -0
- package/esm2022/http/lib/components/blackbox/blackbox-storage.service.mjs +286 -0
- package/esm2022/http/lib/components/blackbox/blackbox.service.mjs +323 -0
- package/esm2022/http/lib/components/blackbox/blackbox.types.mjs +25 -0
- package/esm2022/http/lib/components/http/http-message.handler.mjs +143 -0
- package/esm2022/http/lib/components/http/http.service.mjs +228 -0
- package/esm2022/http/lib/components/http/http.tokens.mjs +29 -0
- package/esm2022/http/lib/components/http/http.types.mjs +6 -0
- package/esm2022/http/lib/components/http/index.mjs +19 -0
- package/esm2022/http/lib/components/layout-builder/layout-builder.types.mjs +9 -0
- package/esm2022/http/lib/components/layout-builder/layout.service.mjs +239 -0
- package/esm2022/http/lib/components/toast/toast-container.component.mjs +80 -0
- package/esm2022/http/lib/components/toast/toast.component.mjs +151 -0
- package/esm2022/http/lib/components/toast/toast.service.mjs +156 -0
- package/esm2022/http/lib/components/toast/toast.types.mjs +12 -0
- package/esm2022/http/lib/core/types/index.mjs +6 -0
- package/esm2022/http/lib/core/utils/index.mjs +102 -0
- package/esm2022/layout-builder/entry-layout-builder.mjs +5 -0
- package/esm2022/layout-builder/gnggln-ng-ui-system-layout-builder.mjs +5 -0
- package/esm2022/layout-builder/lib/components/layout-builder/index.mjs +18 -0
- package/esm2022/layout-builder/lib/components/layout-builder/layout-builder.component.mjs +1804 -0
- package/esm2022/layout-builder/lib/components/layout-builder/layout-builder.types.mjs +9 -0
- package/esm2022/layout-builder/lib/components/layout-builder/layout.service.mjs +239 -0
- package/esm2022/layout-builder/lib/core/types/index.mjs +6 -0
- package/esm2022/lib/components/accordion/accordion.component.mjs +106 -61
- package/esm2022/lib/components/accordion/accordion.types.mjs +1 -1
- package/esm2022/lib/components/base-layout/base-layout.component.mjs +88 -34
- package/esm2022/lib/components/base-layout/base-layout.types.mjs +1 -1
- package/esm2022/lib/components/base-layout/index.mjs +1 -1
- package/esm2022/lib/components/blackbox/blackbox-debugger.component.mjs +904 -0
- package/esm2022/lib/components/blackbox/blackbox-debugger.service.mjs +51 -0
- package/esm2022/lib/components/blackbox/blackbox-fingerprint.service.mjs +116 -0
- package/esm2022/lib/components/blackbox/blackbox-json-viewer.component.mjs +66 -0
- package/esm2022/lib/components/blackbox/blackbox-storage.service.mjs +286 -0
- package/esm2022/lib/components/blackbox/blackbox.interceptor.mjs +135 -0
- package/esm2022/lib/components/blackbox/blackbox.service.mjs +323 -0
- package/esm2022/lib/components/blackbox/blackbox.types.mjs +25 -0
- package/esm2022/lib/components/blackbox/index.mjs +27 -0
- package/esm2022/lib/components/blackbox/ui-track.directive.mjs +69 -0
- package/esm2022/lib/components/button/button-area.component.mjs +16 -2
- package/esm2022/lib/components/button/button.component.mjs +23 -7
- package/esm2022/lib/components/button/button.types.mjs +1 -1
- package/esm2022/lib/components/crud-table/crud-table.component.mjs +14 -14
- package/esm2022/lib/components/form-builder/form-builder.component.mjs +710 -183
- package/esm2022/lib/components/form-builder/form-wizard.component.mjs +789 -235
- package/esm2022/lib/components/form-builder/index.mjs +7 -2
- package/esm2022/lib/components/form-builder/services/form-error-state.matcher.mjs +10 -0
- package/esm2022/lib/components/form-builder/services/form-field-error.service.mjs +103 -0
- package/esm2022/lib/components/form-builder/services/location.service.mjs +4 -3
- package/esm2022/lib/components/form-builder/services/nominatim-geocoding.service.mjs +120 -0
- package/esm2022/lib/components/form-builder/sub-components/error-summary/form-error-summary.component.mjs +142 -113
- package/esm2022/lib/components/form-builder/sub-components/form-fields/form-number-field.component.mjs +113 -0
- package/esm2022/lib/components/form-builder/sub-components/form-fields/form-radio-field.component.mjs +105 -0
- package/esm2022/lib/components/form-builder/sub-components/form-fields/form-select-field.component.mjs +126 -0
- package/esm2022/lib/components/form-builder/sub-components/form-fields/form-text-field.component.mjs +147 -0
- package/esm2022/lib/components/form-builder/sub-components/form-fields/form-textarea-field.component.mjs +99 -0
- package/esm2022/lib/components/form-builder/sub-components/form-fields/index.mjs +6 -0
- package/esm2022/lib/components/form-builder/sub-components/location-geocoded/location-geocoded.component.mjs +322 -0
- package/esm2022/lib/components/form-builder/sub-components/table-territoriale/table-territoriale.component.mjs +3 -3
- package/esm2022/lib/components/form-builder/types/field.types.mjs +1 -1
- package/esm2022/lib/components/form-builder/types/geocoded-location.types.mjs +6 -0
- package/esm2022/lib/components/form-builder/types/index.mjs +3 -2
- package/esm2022/lib/components/form-builder/types/schema.types.mjs +1 -1
- package/esm2022/lib/components/form-builder/types/validation.types.mjs +6 -2
- package/esm2022/lib/components/form-builder-editor/form-builder-editor.component.mjs +3 -3
- package/esm2022/lib/components/form-builder-editor/index.mjs +3 -1
- package/esm2022/lib/components/form-builder-editor/presets/editor-presets.mjs +395 -0
- package/esm2022/lib/components/form-builder-editor/sub-components/preview-container/preview-container.component.mjs +2 -2
- package/esm2022/lib/components/form-builder-editor/sub-components/section-editor/section-editor.component.mjs +2 -1
- package/esm2022/lib/components/http/http-message.handler.mjs +143 -0
- package/esm2022/lib/components/http/http.service.mjs +228 -0
- package/esm2022/lib/components/http/http.tokens.mjs +29 -0
- package/esm2022/lib/components/http/http.types.mjs +6 -0
- package/esm2022/lib/components/http/index.mjs +19 -0
- package/esm2022/lib/components/layout-builder/layout-builder.component.mjs +27 -15
- package/esm2022/lib/components/modal/confirm-dialog.component.mjs +3 -3
- package/esm2022/lib/components/modal/modal.service.mjs +5 -2
- package/esm2022/lib/components/page-header/breadcrumb.service.mjs +5 -4
- package/esm2022/lib/components/table/paginated-table.component.mjs +17 -3
- package/esm2022/lib/components/table/table.types.mjs +1 -1
- package/esm2022/lib/components/toast/index.mjs +18 -0
- package/esm2022/lib/components/toast/toast-container.component.mjs +80 -0
- package/esm2022/lib/components/toast/toast.component.mjs +151 -0
- package/esm2022/lib/components/toast/toast.service.mjs +156 -0
- package/esm2022/lib/components/toast/toast.types.mjs +12 -0
- package/esm2022/lib/core/logging/index.mjs +10 -0
- package/esm2022/lib/core/logging/logger.config.mjs +18 -0
- package/esm2022/lib/core/logging/logger.service.mjs +295 -0
- package/esm2022/lib/core/logging/logger.types.mjs +7 -0
- package/esm2022/lib/core/types/index.mjs +1 -1
- package/esm2022/lib/core/utils/index.mjs +50 -1
- package/esm2022/lib/version/ng-ui-system-version.mjs +12 -0
- package/esm2022/modal/entry-modal.mjs +5 -0
- package/esm2022/modal/gnggln-ng-ui-system-modal.mjs +5 -0
- package/esm2022/modal/lib/components/button/button.component.mjs +180 -0
- package/esm2022/modal/lib/components/button/button.types.mjs +6 -0
- package/esm2022/modal/lib/components/modal/confirm-dialog.component.mjs +151 -0
- package/esm2022/modal/lib/components/modal/index.mjs +4 -0
- package/esm2022/modal/lib/components/modal/modal.component.mjs +139 -0
- package/esm2022/modal/lib/components/modal/modal.service.mjs +197 -0
- package/esm2022/modal/lib/components/modal/modal.types.mjs +6 -0
- package/esm2022/modal/lib/core/types/index.mjs +6 -0
- package/esm2022/page-header/entry-page-header.mjs +5 -0
- package/esm2022/page-header/gnggln-ng-ui-system-page-header.mjs +5 -0
- package/esm2022/page-header/lib/components/page-header/breadcrumb.service.mjs +243 -0
- package/esm2022/page-header/lib/components/page-header/index.mjs +20 -0
- package/esm2022/page-header/lib/components/page-header/page-header.component.mjs +243 -0
- package/esm2022/page-header/lib/components/page-header/page-header.types.mjs +21 -0
- package/esm2022/public-api.mjs +17 -8
- package/esm2022/table/entry-table.mjs +5 -0
- package/esm2022/table/gnggln-ng-ui-system-table.mjs +5 -0
- package/esm2022/table/lib/components/table/index.mjs +2 -0
- package/esm2022/table/lib/components/table/paginated-table.component.mjs +421 -0
- package/esm2022/table/lib/components/table/table.types.mjs +6 -0
- package/esm2022/table/lib/core/utils/index.mjs +102 -0
- package/esm2022/toast/entry-toast.mjs +5 -0
- package/esm2022/toast/gnggln-ng-ui-system-toast.mjs +5 -0
- package/esm2022/toast/lib/components/toast/index.mjs +18 -0
- package/esm2022/toast/lib/components/toast/toast-container.component.mjs +80 -0
- package/esm2022/toast/lib/components/toast/toast.component.mjs +151 -0
- package/esm2022/toast/lib/components/toast/toast.service.mjs +156 -0
- package/esm2022/toast/lib/components/toast/toast.types.mjs +12 -0
- package/esm2022/toast/lib/core/types/index.mjs +6 -0
- package/esm2022/toast/lib/core/utils/index.mjs +102 -0
- package/fesm2022/gnggln-ng-ui-system-accordion.mjs +409 -0
- package/fesm2022/gnggln-ng-ui-system-accordion.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-base-layout.mjs +1905 -0
- package/fesm2022/gnggln-ng-ui-system-base-layout.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-blackbox.mjs +2829 -0
- package/fesm2022/gnggln-ng-ui-system-blackbox.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-button.mjs +1148 -0
- package/fesm2022/gnggln-ng-ui-system-button.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-core.mjs +117 -0
- package/fesm2022/gnggln-ng-ui-system-core.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-crud-table.mjs +49600 -0
- package/fesm2022/gnggln-ng-ui-system-crud-table.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-form-builder-editor.mjs +54332 -0
- package/fesm2022/gnggln-ng-ui-system-form-builder-editor.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-form-builder.mjs +49609 -0
- package/fesm2022/gnggln-ng-ui-system-form-builder.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-http.mjs +1878 -0
- package/fesm2022/gnggln-ng-ui-system-http.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-layout-builder.mjs +2064 -0
- package/fesm2022/gnggln-ng-ui-system-layout-builder.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-modal.mjs +664 -0
- package/fesm2022/gnggln-ng-ui-system-modal.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-page-header.mjs +526 -0
- package/fesm2022/gnggln-ng-ui-system-page-header.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-table.mjs +533 -0
- package/fesm2022/gnggln-ng-ui-system-table.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system-toast.mjs +516 -0
- package/fesm2022/gnggln-ng-ui-system-toast.mjs.map +1 -0
- package/fesm2022/gnggln-ng-ui-system.mjs +10068 -4234
- package/fesm2022/gnggln-ng-ui-system.mjs.map +1 -1
- package/form-builder/entry-form-builder.d.ts +4 -0
- package/form-builder/index.d.ts +5 -0
- package/form-builder/lib/components/accordion/accordion.component.d.ts +125 -0
- package/form-builder/lib/components/accordion/accordion.types.d.ts +64 -0
- package/form-builder/lib/components/accordion/index.d.ts +2 -0
- package/form-builder/lib/components/blackbox/blackbox-fingerprint.service.d.ts +36 -0
- package/form-builder/lib/components/blackbox/blackbox-storage.service.d.ts +55 -0
- package/form-builder/lib/components/blackbox/blackbox.service.d.ts +144 -0
- package/form-builder/lib/components/blackbox/blackbox.types.d.ts +238 -0
- package/form-builder/lib/components/button/button-area.component.d.ts +93 -0
- package/form-builder/lib/components/button/button.component.d.ts +61 -0
- package/form-builder/lib/components/button/button.types.d.ts +75 -0
- package/form-builder/lib/components/button/index.d.ts +15 -0
- package/form-builder/lib/components/form-builder/adapters/it-date-adapter.d.ts +32 -0
- package/form-builder/lib/components/form-builder/directives/currency-input.directive.d.ts +48 -0
- package/form-builder/lib/components/form-builder/form-builder.component.d.ts +279 -0
- package/form-builder/lib/components/form-builder/form-wizard.component.d.ts +172 -0
- package/form-builder/lib/components/form-builder/index.d.ts +19 -0
- package/form-builder/lib/components/form-builder/services/form-condition.service.d.ts +46 -0
- package/form-builder/lib/components/form-builder/services/form-error-state.matcher.d.ts +9 -0
- package/form-builder/lib/components/form-builder/services/form-field-error.service.d.ts +38 -0
- package/form-builder/lib/components/form-builder/services/form-validation.service.d.ts +63 -0
- package/form-builder/lib/components/form-builder/services/location.service.d.ts +83 -0
- package/form-builder/lib/components/form-builder/services/nominatim-geocoding.service.d.ts +37 -0
- package/form-builder/lib/components/form-builder/services/wizard-sync.service.d.ts +63 -0
- package/form-builder/lib/components/form-builder/sub-components/error-summary/form-error-summary.component.d.ts +31 -0
- package/form-builder/lib/components/form-builder/sub-components/file-input/file-input.component.d.ts +41 -0
- package/form-builder/lib/components/form-builder/sub-components/form-fields/form-number-field.component.d.ts +42 -0
- package/form-builder/lib/components/form-builder/sub-components/form-fields/form-radio-field.component.d.ts +45 -0
- package/form-builder/lib/components/form-builder/sub-components/form-fields/form-select-field.component.d.ts +44 -0
- package/form-builder/lib/components/form-builder/sub-components/form-fields/form-text-field.component.d.ts +62 -0
- package/form-builder/lib/components/form-builder/sub-components/form-fields/form-textarea-field.component.d.ts +39 -0
- package/form-builder/lib/components/form-builder/sub-components/form-fields/index.d.ts +5 -0
- package/form-builder/lib/components/form-builder/sub-components/location-geocoded/location-geocoded.component.d.ts +84 -0
- package/form-builder/lib/components/form-builder/sub-components/specifica-territoriale/specifica-territoriale.component.d.ts +145 -0
- package/form-builder/lib/components/form-builder/sub-components/table-territoriale/table-territoriale.component.d.ts +108 -0
- package/form-builder/lib/components/form-builder/types/condition.types.d.ts +51 -0
- package/form-builder/lib/components/form-builder/types/field.types.d.ts +330 -0
- package/form-builder/lib/components/form-builder/types/geocoded-location.types.d.ts +116 -0
- package/form-builder/lib/components/form-builder/types/index.d.ts +6 -0
- package/form-builder/lib/components/form-builder/types/schema.types.d.ts +304 -0
- package/form-builder/lib/components/form-builder/types/territoriale.types.d.ts +170 -0
- package/form-builder/lib/components/form-builder/types/validation.types.d.ts +179 -0
- package/form-builder/lib/core/logging/logger.config.d.ts +18 -0
- package/form-builder/lib/core/logging/logger.service.d.ts +75 -0
- package/form-builder/lib/core/logging/logger.types.d.ts +70 -0
- package/form-builder/lib/core/types/index.d.ts +133 -0
- package/form-builder-editor/entry-form-builder-editor.d.ts +4 -0
- package/form-builder-editor/index.d.ts +5 -0
- package/form-builder-editor/lib/components/accordion/accordion.component.d.ts +125 -0
- package/form-builder-editor/lib/components/accordion/accordion.types.d.ts +64 -0
- package/form-builder-editor/lib/components/accordion/index.d.ts +2 -0
- package/form-builder-editor/lib/components/blackbox/blackbox-fingerprint.service.d.ts +36 -0
- package/form-builder-editor/lib/components/blackbox/blackbox-storage.service.d.ts +55 -0
- package/form-builder-editor/lib/components/blackbox/blackbox.service.d.ts +144 -0
- package/form-builder-editor/lib/components/blackbox/blackbox.types.d.ts +238 -0
- package/form-builder-editor/lib/components/button/button-area.component.d.ts +93 -0
- package/form-builder-editor/lib/components/button/button.component.d.ts +61 -0
- package/form-builder-editor/lib/components/button/button.types.d.ts +75 -0
- package/form-builder-editor/lib/components/button/index.d.ts +15 -0
- package/form-builder-editor/lib/components/form-builder/adapters/it-date-adapter.d.ts +32 -0
- package/form-builder-editor/lib/components/form-builder/directives/currency-input.directive.d.ts +48 -0
- package/form-builder-editor/lib/components/form-builder/form-builder.component.d.ts +279 -0
- package/form-builder-editor/lib/components/form-builder/services/form-condition.service.d.ts +46 -0
- package/form-builder-editor/lib/components/form-builder/services/form-error-state.matcher.d.ts +9 -0
- package/form-builder-editor/lib/components/form-builder/services/form-field-error.service.d.ts +38 -0
- package/form-builder-editor/lib/components/form-builder/services/form-validation.service.d.ts +63 -0
- package/form-builder-editor/lib/components/form-builder/services/location.service.d.ts +83 -0
- package/form-builder-editor/lib/components/form-builder/services/nominatim-geocoding.service.d.ts +37 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/error-summary/form-error-summary.component.d.ts +31 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/file-input/file-input.component.d.ts +41 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-number-field.component.d.ts +42 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-radio-field.component.d.ts +45 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-select-field.component.d.ts +44 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-text-field.component.d.ts +62 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/form-fields/form-textarea-field.component.d.ts +39 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/form-fields/index.d.ts +5 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/location-geocoded/location-geocoded.component.d.ts +84 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/specifica-territoriale/specifica-territoriale.component.d.ts +145 -0
- package/form-builder-editor/lib/components/form-builder/sub-components/table-territoriale/table-territoriale.component.d.ts +108 -0
- package/form-builder-editor/lib/components/form-builder/types/condition.types.d.ts +51 -0
- package/form-builder-editor/lib/components/form-builder/types/field.types.d.ts +330 -0
- package/form-builder-editor/lib/components/form-builder/types/geocoded-location.types.d.ts +116 -0
- package/form-builder-editor/lib/components/form-builder/types/index.d.ts +6 -0
- package/form-builder-editor/lib/components/form-builder/types/schema.types.d.ts +304 -0
- package/form-builder-editor/lib/components/form-builder/types/territoriale.types.d.ts +170 -0
- package/form-builder-editor/lib/components/form-builder/types/validation.types.d.ts +179 -0
- package/form-builder-editor/lib/components/form-builder-editor/form-builder-editor.component.d.ts +117 -0
- package/form-builder-editor/lib/components/form-builder-editor/form-builder-editor.service.d.ts +38 -0
- package/form-builder-editor/lib/components/form-builder-editor/index.d.ts +17 -0
- package/form-builder-editor/lib/components/form-builder-editor/presets/editor-presets.d.ts +25 -0
- package/form-builder-editor/lib/components/form-builder-editor/services/editor-persistence.service.d.ts +42 -0
- package/form-builder-editor/lib/components/form-builder-editor/services/editor-state.service.d.ts +66 -0
- package/form-builder-editor/lib/components/form-builder-editor/services/field-factory.service.d.ts +28 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/condition-editor/condition-editor.component.d.ts +139 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/editor-toolbar/editor-toolbar.component.d.ts +43 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/field-config-panel/field-config-panel.component.d.ts +83 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/field-palette/field-palette.component.d.ts +40 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/form-values-panel/form-values-panel.component.d.ts +51 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/options-editor/options-editor.component.d.ts +63 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/preview-container/preview-container.component.d.ts +68 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/section-editor/section-editor.component.d.ts +82 -0
- package/form-builder-editor/lib/components/form-builder-editor/sub-components/validation-editor/validation-editor.component.d.ts +112 -0
- package/form-builder-editor/lib/components/form-builder-editor/types/editor.types.d.ts +124 -0
- package/form-builder-editor/lib/components/modal/confirm-dialog.component.d.ts +46 -0
- package/form-builder-editor/lib/components/modal/index.d.ts +4 -0
- package/form-builder-editor/lib/components/modal/modal.component.d.ts +44 -0
- package/form-builder-editor/lib/components/modal/modal.service.d.ts +93 -0
- package/form-builder-editor/lib/components/modal/modal.types.d.ts +110 -0
- package/form-builder-editor/lib/core/logging/logger.config.d.ts +18 -0
- package/form-builder-editor/lib/core/logging/logger.service.d.ts +75 -0
- package/form-builder-editor/lib/core/logging/logger.types.d.ts +70 -0
- package/form-builder-editor/lib/core/types/index.d.ts +133 -0
- package/http/entry-http.d.ts +4 -0
- package/http/index.d.ts +5 -0
- package/http/lib/components/blackbox/blackbox-fingerprint.service.d.ts +36 -0
- package/http/lib/components/blackbox/blackbox-storage.service.d.ts +55 -0
- package/http/lib/components/blackbox/blackbox.service.d.ts +144 -0
- package/http/lib/components/blackbox/blackbox.types.d.ts +238 -0
- package/http/lib/components/http/http-message.handler.d.ts +59 -0
- package/http/lib/components/http/http.service.d.ts +98 -0
- package/http/lib/components/http/http.tokens.d.ts +29 -0
- package/http/lib/components/http/http.types.d.ts +50 -0
- package/http/lib/components/http/index.d.ts +17 -0
- package/http/lib/components/layout-builder/layout-builder.types.d.ts +436 -0
- package/http/lib/components/layout-builder/layout.service.d.ts +100 -0
- package/http/lib/components/toast/toast-container.component.d.ts +27 -0
- package/http/lib/components/toast/toast.component.d.ts +37 -0
- package/http/lib/components/toast/toast.service.d.ts +39 -0
- package/http/lib/components/toast/toast.types.d.ts +52 -0
- package/http/lib/core/types/index.d.ts +133 -0
- package/http/lib/core/utils/index.d.ts +60 -0
- package/layout-builder/entry-layout-builder.d.ts +4 -0
- package/layout-builder/index.d.ts +5 -0
- package/layout-builder/lib/components/layout-builder/index.d.ts +16 -0
- package/layout-builder/lib/components/layout-builder/layout-builder.component.d.ts +85 -0
- package/layout-builder/lib/components/layout-builder/layout-builder.types.d.ts +436 -0
- package/layout-builder/lib/components/layout-builder/layout.service.d.ts +100 -0
- package/layout-builder/lib/core/types/index.d.ts +133 -0
- package/lib/components/accordion/accordion.component.d.ts +10 -3
- package/lib/components/accordion/accordion.types.d.ts +2 -0
- package/lib/components/base-layout/base-layout.component.d.ts +36 -11
- package/lib/components/base-layout/base-layout.types.d.ts +14 -0
- package/lib/components/base-layout/index.d.ts +1 -1
- package/lib/components/blackbox/blackbox-debugger.component.d.ts +80 -0
- package/lib/components/blackbox/blackbox-debugger.service.d.ts +34 -0
- package/lib/components/blackbox/blackbox-fingerprint.service.d.ts +36 -0
- package/lib/components/blackbox/blackbox-json-viewer.component.d.ts +18 -0
- package/lib/components/blackbox/blackbox-storage.service.d.ts +55 -0
- package/lib/components/blackbox/blackbox.interceptor.d.ts +38 -0
- package/lib/components/blackbox/blackbox.service.d.ts +144 -0
- package/lib/components/blackbox/blackbox.types.d.ts +238 -0
- package/lib/components/blackbox/index.d.ts +23 -0
- package/lib/components/blackbox/ui-track.directive.d.ts +20 -0
- package/lib/components/button/button-area.component.d.ts +6 -1
- package/lib/components/button/button.component.d.ts +8 -2
- package/lib/components/button/button.types.d.ts +5 -0
- package/lib/components/form-builder/form-builder.component.d.ts +125 -29
- package/lib/components/form-builder/form-wizard.component.d.ts +89 -4
- package/lib/components/form-builder/index.d.ts +7 -1
- package/lib/components/form-builder/services/form-error-state.matcher.d.ts +9 -0
- package/lib/components/form-builder/services/form-field-error.service.d.ts +38 -0
- package/lib/components/form-builder/services/nominatim-geocoding.service.d.ts +37 -0
- package/lib/components/form-builder/sub-components/error-summary/form-error-summary.component.d.ts +9 -6
- package/lib/components/form-builder/sub-components/form-fields/form-number-field.component.d.ts +42 -0
- package/lib/components/form-builder/sub-components/form-fields/form-radio-field.component.d.ts +45 -0
- package/lib/components/form-builder/sub-components/form-fields/form-select-field.component.d.ts +44 -0
- package/lib/components/form-builder/sub-components/form-fields/form-text-field.component.d.ts +62 -0
- package/lib/components/form-builder/sub-components/form-fields/form-textarea-field.component.d.ts +39 -0
- package/lib/components/form-builder/sub-components/form-fields/index.d.ts +5 -0
- package/lib/components/form-builder/sub-components/location-geocoded/location-geocoded.component.d.ts +84 -0
- package/lib/components/form-builder/types/field.types.d.ts +48 -6
- package/lib/components/form-builder/types/geocoded-location.types.d.ts +116 -0
- package/lib/components/form-builder/types/index.d.ts +4 -3
- package/lib/components/form-builder/types/schema.types.d.ts +83 -6
- package/lib/components/form-builder/types/validation.types.d.ts +5 -0
- package/lib/components/form-builder-editor/index.d.ts +2 -0
- package/lib/components/form-builder-editor/presets/editor-presets.d.ts +25 -0
- package/lib/components/http/http-message.handler.d.ts +59 -0
- package/lib/components/http/http.service.d.ts +98 -0
- package/lib/components/http/http.tokens.d.ts +29 -0
- package/lib/components/http/http.types.d.ts +50 -0
- package/lib/components/http/index.d.ts +17 -0
- package/lib/components/page-header/breadcrumb.service.d.ts +2 -2
- package/lib/components/table/table.types.d.ts +5 -0
- package/lib/components/toast/index.d.ts +17 -0
- package/lib/components/toast/toast-container.component.d.ts +27 -0
- package/lib/components/toast/toast.component.d.ts +37 -0
- package/lib/components/toast/toast.service.d.ts +39 -0
- package/lib/components/toast/toast.types.d.ts +52 -0
- package/lib/core/logging/index.d.ts +8 -0
- package/lib/core/logging/logger.config.d.ts +18 -0
- package/lib/core/logging/logger.service.d.ts +75 -0
- package/lib/core/logging/logger.types.d.ts +70 -0
- package/lib/core/types/index.d.ts +76 -0
- package/lib/core/utils/index.d.ts +31 -0
- package/lib/version/ng-ui-system-version.d.ts +9 -0
- package/modal/entry-modal.d.ts +4 -0
- package/modal/index.d.ts +5 -0
- package/modal/lib/components/button/button.component.d.ts +61 -0
- package/modal/lib/components/button/button.types.d.ts +75 -0
- package/modal/lib/components/modal/confirm-dialog.component.d.ts +46 -0
- package/modal/lib/components/modal/index.d.ts +4 -0
- package/modal/lib/components/modal/modal.component.d.ts +44 -0
- package/modal/lib/components/modal/modal.service.d.ts +93 -0
- package/modal/lib/components/modal/modal.types.d.ts +110 -0
- package/modal/lib/core/types/index.d.ts +133 -0
- package/package.json +93 -8
- package/page-header/entry-page-header.d.ts +4 -0
- package/page-header/index.d.ts +5 -0
- package/page-header/lib/components/page-header/breadcrumb.service.d.ts +96 -0
- package/page-header/lib/components/page-header/index.d.ts +16 -0
- package/page-header/lib/components/page-header/page-header.component.d.ts +59 -0
- package/page-header/lib/components/page-header/page-header.types.d.ts +96 -0
- package/public-api.d.ts +11 -6
- package/table/entry-table.d.ts +4 -0
- package/table/index.d.ts +5 -0
- package/table/lib/components/table/index.d.ts +2 -0
- package/table/lib/components/table/paginated-table.component.d.ts +85 -0
- package/table/lib/components/table/table.types.d.ts +86 -0
- package/table/lib/core/utils/index.d.ts +60 -0
- package/toast/entry-toast.d.ts +4 -0
- package/toast/index.d.ts +5 -0
- package/toast/lib/components/toast/index.d.ts +17 -0
- package/toast/lib/components/toast/toast-container.component.d.ts +27 -0
- package/toast/lib/components/toast/toast.component.d.ts +37 -0
- package/toast/lib/components/toast/toast.service.d.ts +39 -0
- package/toast/lib/components/toast/toast.types.d.ts +52 -0
- package/toast/lib/core/types/index.d.ts +133 -0
- package/toast/lib/core/utils/index.d.ts +60 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ng-ui-system/crud-table
|
|
3
|
+
* Tipi e interfacce per UiCrudTable.
|
|
4
|
+
*/
|
|
5
|
+
import { TemplateRef } from '@angular/core';
|
|
6
|
+
import { UiIconName } from '../../core/types';
|
|
7
|
+
import { UiFormSchema } from '../form-builder/types/schema.types';
|
|
8
|
+
export { UiIconName };
|
|
9
|
+
/**
|
|
10
|
+
* Modalita operative della CRUD table.
|
|
11
|
+
*
|
|
12
|
+
* | Modalita | Descrizione |
|
|
13
|
+
* |-------------|----------------------------------------------|
|
|
14
|
+
* | `view` | Visualizzazione tabella (stato iniziale) |
|
|
15
|
+
* | `insert` | Inserimento nuovo elemento tramite form |
|
|
16
|
+
* | `edit` | Modifica elemento esistente |
|
|
17
|
+
* | `duplicate` | Duplicazione di un elemento |
|
|
18
|
+
* | `readonly` | Visualizzazione dettaglio in sola lettura |
|
|
19
|
+
*/
|
|
20
|
+
export type UiCrudMode = 'view' | 'insert' | 'edit' | 'duplicate' | 'readonly';
|
|
21
|
+
/**
|
|
22
|
+
* Definizione di una colonna della CRUD table.
|
|
23
|
+
*
|
|
24
|
+
* @usageNotes
|
|
25
|
+
* ### Colonna testuale semplice
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const col: UiCrudTableColumn = {
|
|
28
|
+
* key: 'name',
|
|
29
|
+
* header: 'Nome',
|
|
30
|
+
* width: '200px',
|
|
31
|
+
* };
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* ### Colonna con template personalizzato
|
|
35
|
+
* ```typescript
|
|
36
|
+
* const col: UiCrudTableColumn = {
|
|
37
|
+
* key: 'status',
|
|
38
|
+
* header: 'Stato',
|
|
39
|
+
* template: myStatusTemplate,
|
|
40
|
+
* };
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
export interface UiCrudTableColumn {
|
|
44
|
+
/** Chiave della proprieta nell'oggetto riga (usata per accedere al valore). */
|
|
45
|
+
key: string;
|
|
46
|
+
/** Testo dell'intestazione della colonna. */
|
|
47
|
+
header: string;
|
|
48
|
+
/**
|
|
49
|
+
* Template personalizzato per la cella.
|
|
50
|
+
* Il contesto fornisce: `$implicit` (riga), `column` (definizione), `index` (indice riga), `value` (valore cella).
|
|
51
|
+
*/
|
|
52
|
+
template?: TemplateRef<any>;
|
|
53
|
+
/**
|
|
54
|
+
* Template personalizzato per l'intestazione.
|
|
55
|
+
* Il contesto fornisce: `$implicit` (colonna), `column` (definizione).
|
|
56
|
+
*/
|
|
57
|
+
headerTemplate?: TemplateRef<any>;
|
|
58
|
+
/** Larghezza CSS della colonna (es. '120px', '20%'). */
|
|
59
|
+
width?: string;
|
|
60
|
+
/** Allineamento del testo nella colonna. @default 'left' */
|
|
61
|
+
align?: 'left' | 'center' | 'right';
|
|
62
|
+
/**
|
|
63
|
+
* Tronca il testo oltre maxLength caratteri con ellipsis e tooltip automatico.
|
|
64
|
+
* @default false
|
|
65
|
+
*/
|
|
66
|
+
ellipsis?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Numero massimo di caratteri prima del troncamento.
|
|
69
|
+
* Attivo solo quando `ellipsis` e `true`.
|
|
70
|
+
* @default 50
|
|
71
|
+
*/
|
|
72
|
+
maxLength?: number;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Configurazione completa della CRUD table.
|
|
76
|
+
*
|
|
77
|
+
* Controlla lo schema del form, le label dei pulsanti, i permessi
|
|
78
|
+
* per azione (globali e per-riga) e i callback pre-apertura form.
|
|
79
|
+
*
|
|
80
|
+
* @usageNotes
|
|
81
|
+
* ### Configurazione base
|
|
82
|
+
* ```typescript
|
|
83
|
+
* const config: UiCrudTableConfig = {
|
|
84
|
+
* formSchema: myFormSchema,
|
|
85
|
+
* tableLabel: 'Utenti',
|
|
86
|
+
* emptyMessage: 'Nessun utente presente',
|
|
87
|
+
* };
|
|
88
|
+
* ```
|
|
89
|
+
*
|
|
90
|
+
* ### Tabella con permessi granulari
|
|
91
|
+
* ```typescript
|
|
92
|
+
* const config: UiCrudTableConfig = {
|
|
93
|
+
* formSchema: mySchema,
|
|
94
|
+
* allowEdit: true,
|
|
95
|
+
* allowDelete: true,
|
|
96
|
+
* allowDuplicate: true,
|
|
97
|
+
* canEdit: (item) => item.status !== 'locked',
|
|
98
|
+
* canDelete: (item) => item.role !== 'admin',
|
|
99
|
+
* };
|
|
100
|
+
* ```
|
|
101
|
+
*/
|
|
102
|
+
export interface UiCrudTableConfig {
|
|
103
|
+
/** Schema per il form builder (inserimento/modifica). */
|
|
104
|
+
formSchema: UiFormSchema;
|
|
105
|
+
/** Etichetta della tabella (per accessibilita). */
|
|
106
|
+
tableLabel?: string;
|
|
107
|
+
/** Messaggio visualizzato quando non ci sono dati. @default 'Nessun elemento presente' */
|
|
108
|
+
emptyMessage?: string;
|
|
109
|
+
/** Label del pulsante "Aggiungi". @default 'Aggiungi' */
|
|
110
|
+
addButtonLabel?: string;
|
|
111
|
+
/** Label del pulsante "Salva" (insert). @default 'Salva' */
|
|
112
|
+
saveButtonLabel?: string;
|
|
113
|
+
/** Label del pulsante "Annulla". @default 'Annulla' */
|
|
114
|
+
cancelButtonLabel?: string;
|
|
115
|
+
/** Label del pulsante "Aggiorna" (edit). @default 'Aggiorna' */
|
|
116
|
+
updateButtonLabel?: string;
|
|
117
|
+
/** Label del pulsante "Duplica" (duplicate). @default 'Duplica' */
|
|
118
|
+
duplicateButtonLabel?: string;
|
|
119
|
+
/** Messaggio per il dialogo di conferma eliminazione. */
|
|
120
|
+
deleteConfirmMessage?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Abilita il pulsante "Aggiungi" in modalita view.
|
|
123
|
+
* @default true
|
|
124
|
+
*/
|
|
125
|
+
allowAdd?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Abilita la modifica degli elementi.
|
|
128
|
+
* @default true
|
|
129
|
+
*/
|
|
130
|
+
allowEdit?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Abilita l'eliminazione degli elementi.
|
|
133
|
+
* @default true
|
|
134
|
+
*/
|
|
135
|
+
allowDelete?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Abilita la duplicazione degli elementi.
|
|
138
|
+
* @default false
|
|
139
|
+
*/
|
|
140
|
+
allowDuplicate?: boolean;
|
|
141
|
+
/**
|
|
142
|
+
* Abilita la visualizzazione in sola lettura.
|
|
143
|
+
* @default false
|
|
144
|
+
*/
|
|
145
|
+
allowView?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* Determina se una specifica riga puo essere modificata.
|
|
148
|
+
* Se non specificata, usa `allowEdit` globale.
|
|
149
|
+
*/
|
|
150
|
+
canEdit?: (item: any, readonly: boolean) => boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Determina se una specifica riga puo essere eliminata.
|
|
153
|
+
* Se non specificata, usa `allowDelete` globale.
|
|
154
|
+
*/
|
|
155
|
+
canDelete?: (item: any, readonly: boolean) => boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Determina se una specifica riga puo essere duplicata.
|
|
158
|
+
* Se non specificata, usa `allowDuplicate` globale.
|
|
159
|
+
*/
|
|
160
|
+
canDuplicate?: (item: any, readonly: boolean) => boolean;
|
|
161
|
+
/**
|
|
162
|
+
* Determina se una specifica riga puo essere visualizzata in readonly.
|
|
163
|
+
* Se non specificata, usa `allowView` globale.
|
|
164
|
+
*/
|
|
165
|
+
canView?: (item: any) => boolean;
|
|
166
|
+
/**
|
|
167
|
+
* Restituisce classi CSS aggiuntive per una specifica riga.
|
|
168
|
+
* Utile per evidenziare righe in base allo stato.
|
|
169
|
+
*/
|
|
170
|
+
getRowClass?: (item: any, index: number) => string | string[];
|
|
171
|
+
/** Tooltip personalizzato per l'azione Edit. */
|
|
172
|
+
getEditTooltip?: (item: any) => string;
|
|
173
|
+
/** Tooltip personalizzato per l'azione Delete. */
|
|
174
|
+
getDeleteTooltip?: (item: any) => string;
|
|
175
|
+
/** Tooltip personalizzato per l'azione Duplicate. */
|
|
176
|
+
getDuplicateTooltip?: (item: any) => string;
|
|
177
|
+
/** Tooltip personalizzato per l'azione View. */
|
|
178
|
+
getViewTooltip?: (item: any) => string;
|
|
179
|
+
/** Proprieta usata come chiave di tracking per le righe. @default 'id' */
|
|
180
|
+
trackByProperty?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Callback invocato prima dell'apertura del form.
|
|
183
|
+
* Permette al componente genitore di modificare lo schema
|
|
184
|
+
* (es. disabilitare opzioni gia utilizzate).
|
|
185
|
+
*/
|
|
186
|
+
onBeforeFormOpen?: (mode: UiCrudMode, editingItem: any, allData: any[]) => void;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* Evento emesso alla modifica di un elemento.
|
|
190
|
+
*/
|
|
191
|
+
export interface UiCrudEditEvent<T = any> {
|
|
192
|
+
/** Elemento modificato. */
|
|
193
|
+
item: T;
|
|
194
|
+
/** Indice dell'elemento nella lista. */
|
|
195
|
+
index: number;
|
|
196
|
+
/** Dati originali prima della modifica. */
|
|
197
|
+
originalData: any;
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Evento emesso all'eliminazione di un elemento.
|
|
201
|
+
*/
|
|
202
|
+
export interface UiCrudDeleteEvent<T = any> {
|
|
203
|
+
/** Elemento eliminato. */
|
|
204
|
+
item: T;
|
|
205
|
+
/** Indice dell'elemento nella lista. */
|
|
206
|
+
index: number;
|
|
207
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ng-ui-system — CRUD Table entry point.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import {
|
|
7
|
+
* UiCrudTableComponent,
|
|
8
|
+
* UiCrudTableColumn,
|
|
9
|
+
* UiCrudTableConfig,
|
|
10
|
+
* UiCrudMode,
|
|
11
|
+
* } from 'ng-ui-system';
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export { UiCrudTableComponent } from './crud-table.component';
|
|
15
|
+
export { UiCrudTableColumn, UiCrudTableConfig, UiCrudMode, UiCrudEditEvent, UiCrudDeleteEvent, } from './crud-table.types';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NativeDateAdapter, MatDateFormats } from '@angular/material/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Adapter personalizzato per il parsing delle date in formato italiano DD/MM/YYYY.
|
|
5
|
+
*
|
|
6
|
+
* Estende il NativeDateAdapter di Angular Material per gestire:
|
|
7
|
+
* - Parsing: converte stringhe DD/MM/YYYY in oggetti Date
|
|
8
|
+
* - Formattazione: visualizza le date nel formato italiano
|
|
9
|
+
* - Primo giorno della settimana: Lunedi (1)
|
|
10
|
+
*/
|
|
11
|
+
export declare class UiItalianDateAdapter extends NativeDateAdapter {
|
|
12
|
+
/**
|
|
13
|
+
* Il primo giorno della settimana e Lunedi (1).
|
|
14
|
+
*/
|
|
15
|
+
getFirstDayOfWeek(): number;
|
|
16
|
+
/**
|
|
17
|
+
* Parsing di una stringa di data in formato DD/MM/YYYY.
|
|
18
|
+
* Supporta sia il formato con separatore `/` che `-`.
|
|
19
|
+
*/
|
|
20
|
+
parse(value: any): Date | null;
|
|
21
|
+
/**
|
|
22
|
+
* Formatta una data in formato DD/MM/YYYY per la visualizzazione.
|
|
23
|
+
*/
|
|
24
|
+
format(date: Date, displayFormat: object): string;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiItalianDateAdapter, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiItalianDateAdapter>;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Formati data italiani per Angular Material.
|
|
30
|
+
* Configura il datepicker per usare DD/MM/YYYY.
|
|
31
|
+
*/
|
|
32
|
+
export declare const UI_IT_DATE_FORMATS: MatDateFormats;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ElementRef, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Direttiva per formattazione input valuta.
|
|
6
|
+
*
|
|
7
|
+
* Formatta il valore numerico con separatori italiani (1.234,56)
|
|
8
|
+
* e simbolo valuta opzionale. In fase di focus l'utente modifica
|
|
9
|
+
* il valore raw, al blur viene riformattato.
|
|
10
|
+
*
|
|
11
|
+
* Implementa `ControlValueAccessor` per integrazione con Reactive Forms.
|
|
12
|
+
*
|
|
13
|
+
* @selector [uiCurrencyInput]
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```html
|
|
17
|
+
* <input uiCurrencyInput currencySymbol="EUR" [decimalPlaces]="2" />
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class UiCurrencyInputDirective implements ControlValueAccessor, OnInit {
|
|
21
|
+
private el;
|
|
22
|
+
private renderer;
|
|
23
|
+
/** Simbolo valuta visualizzato. @default 'EUR' */
|
|
24
|
+
currencySymbol: string;
|
|
25
|
+
/** Numero di decimali. @default 2 */
|
|
26
|
+
decimalPlaces: number;
|
|
27
|
+
private rawValue;
|
|
28
|
+
private onChange;
|
|
29
|
+
private onTouched;
|
|
30
|
+
private isFocused;
|
|
31
|
+
constructor(el: ElementRef<HTMLInputElement>, renderer: Renderer2);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
writeValue(value: any): void;
|
|
34
|
+
registerOnChange(fn: any): void;
|
|
35
|
+
registerOnTouched(fn: any): void;
|
|
36
|
+
setDisabledState(isDisabled: boolean): void;
|
|
37
|
+
onFocus(): void;
|
|
38
|
+
onBlur(): void;
|
|
39
|
+
onInput(value: string): void;
|
|
40
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
41
|
+
private parseInput;
|
|
42
|
+
/** Mostra il valore formattato con separatori italiani e simbolo. */
|
|
43
|
+
private displayFormatted;
|
|
44
|
+
/** Formattazione italiana: 1.234,56 */
|
|
45
|
+
private formatItalian;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiCurrencyInputDirective, never>;
|
|
47
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiCurrencyInputDirective, "[uiCurrencyInput]", never, { "currencySymbol": { "alias": "currencySymbol"; "required": false; }; "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, OnDestroy, SimpleChanges, AfterViewInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
3
|
+
import { UiAccordionDescriptor } from '../accordion/index';
|
|
4
|
+
import { UiButtonDescriptor } from '../../components/button/index';
|
|
5
|
+
import { UiFormSchema, UiFormSection, UiFormData, UiFormCustomEvent } from './types/schema.types';
|
|
6
|
+
import { UiFormFieldDescriptor, UiFieldOption, UiCustomFieldTemplateContext } from './types/field.types';
|
|
7
|
+
import { UiFormValidationState, UiFormErrorDetail } from './types/validation.types';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
/**
|
|
10
|
+
* Form builder data-driven e schema-based.
|
|
11
|
+
*
|
|
12
|
+
* Genera un form completo a partire da uno schema dichiarativo (`UiFormSchema`).
|
|
13
|
+
* Supporta i tipi di campo del form builder, validazione condizionale, cross-field validation,
|
|
14
|
+
* date con offset, opzioni dipendenti/dinamiche, sezioni collapsibili,
|
|
15
|
+
* error summary con scroll-to-field e button override.
|
|
16
|
+
*
|
|
17
|
+
* @selector ui-form-builder
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```html
|
|
21
|
+
* <ui-form-builder
|
|
22
|
+
* [schema]="formSchema"
|
|
23
|
+
* [initialData]="userData"
|
|
24
|
+
* (formSubmit)="onSubmit($event)"
|
|
25
|
+
* (valueChange)="onChange($event)"
|
|
26
|
+
* />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare class UiFormBuilderComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
30
|
+
private readonly cdr;
|
|
31
|
+
private readonly elRef;
|
|
32
|
+
private readonly conditionService;
|
|
33
|
+
private readonly validationService;
|
|
34
|
+
private readonly fieldErrorService;
|
|
35
|
+
/** @internal Optional BlackBox service — auto-tracks form events when available. */
|
|
36
|
+
private readonly blackbox;
|
|
37
|
+
/** @internal Router inject for BlackBox route context. */
|
|
38
|
+
private readonly bbRouter;
|
|
39
|
+
/** @internal Optional Logger service — logs form actions when available. */
|
|
40
|
+
private readonly logger;
|
|
41
|
+
private readonly destroy$;
|
|
42
|
+
private valueChangeSub?;
|
|
43
|
+
/** @internal Listener cleanup for BlackBox focus/blur tracking. */
|
|
44
|
+
private bbFocusHandler;
|
|
45
|
+
private bbBlurHandler;
|
|
46
|
+
/** ID schema corrente -- usato per evitare rebuild superflui. */
|
|
47
|
+
private currentSchemaId;
|
|
48
|
+
/** Schema del form. */
|
|
49
|
+
schema: UiFormSchema;
|
|
50
|
+
/** Dati iniziali per la prevalorizzazione. */
|
|
51
|
+
initialData: UiFormData;
|
|
52
|
+
/** Modalita sola lettura globale. */
|
|
53
|
+
readonly: boolean;
|
|
54
|
+
/** Stato disabilitato globale. */
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
/** Override dei pulsanti di default. */
|
|
57
|
+
buttonsOverride?: UiButtonDescriptor[];
|
|
58
|
+
/** Chiave del pulsante in stato di caricamento. */
|
|
59
|
+
loadingFor: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Mappa chiave logica → template per campi `type: 'custom'`.
|
|
62
|
+
* La chiave si risolve con `customConfig.templateKey`, poi `customConfig.component`, poi `field.key`.
|
|
63
|
+
*/
|
|
64
|
+
customFieldTemplates: Record<string, TemplateRef<unknown>>;
|
|
65
|
+
/**
|
|
66
|
+
* Template usato quando non esiste una voce in `customFieldTemplates` per la chiave risolta
|
|
67
|
+
* (es. un unico `ng-template` con `@switch` sul campo).
|
|
68
|
+
*/
|
|
69
|
+
customFieldTemplateFallback?: TemplateRef<unknown>;
|
|
70
|
+
valueChange: EventEmitter<UiFormData>;
|
|
71
|
+
validationChange: EventEmitter<UiFormValidationState>;
|
|
72
|
+
formSubmit: EventEmitter<UiFormData>;
|
|
73
|
+
formReset: EventEmitter<void>;
|
|
74
|
+
customEvent: EventEmitter<UiFormCustomEvent>;
|
|
75
|
+
formGroup: FormGroup;
|
|
76
|
+
/** Mappa campo -> opzioni filtrate (per autocomplete e dependent). */
|
|
77
|
+
filteredOptions: Record<string, UiFieldOption[]>;
|
|
78
|
+
/** Campi prevalorizzati (mostrano errori subito). */
|
|
79
|
+
prevalorizedFields: Set<string>;
|
|
80
|
+
/** Mappa campo -> regole di validazione (per lookup rapido). */
|
|
81
|
+
private validationRulesMap;
|
|
82
|
+
/** Mappa dipendenze: campoTarget -> campi dipendenti. */
|
|
83
|
+
private fieldDependencies;
|
|
84
|
+
/** @internal Accordion descriptors per le sezioni collapsibili. */
|
|
85
|
+
sectionAccordionMap: Map<string, UiAccordionDescriptor[]>;
|
|
86
|
+
/** @internal Accordion descriptors per le istanze repeatable (sectionId -> descriptors). */
|
|
87
|
+
repeatableAccordionMap: Map<string, UiAccordionDescriptor[]>;
|
|
88
|
+
/** Flag per evitare emissioni durante l'inizializzazione. */
|
|
89
|
+
private isInitializing;
|
|
90
|
+
/** Tutti i campi di tutte le sezioni (incluse repeatable). */
|
|
91
|
+
get allFields(): UiFormFieldDescriptor[];
|
|
92
|
+
/** Campi delle sole sezioni non-repeatable (piatti nel root FormGroup). */
|
|
93
|
+
get allFlatFields(): UiFormFieldDescriptor[];
|
|
94
|
+
/** Sezioni con configurazione repeatable. */
|
|
95
|
+
get repeatableSections(): UiFormSection[];
|
|
96
|
+
get formErrors(): UiFormErrorDetail[];
|
|
97
|
+
get formButtons(): UiButtonDescriptor[];
|
|
98
|
+
ngOnInit(): void;
|
|
99
|
+
/**
|
|
100
|
+
* Rileva cambiamenti sugli @Input.
|
|
101
|
+
* Ricostruisce il form quando cambia lo schema (id diverso).
|
|
102
|
+
* Cruciale per il wizard che cambia schema ad ogni step.
|
|
103
|
+
*/
|
|
104
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
105
|
+
ngAfterViewInit(): void;
|
|
106
|
+
ngOnDestroy(): void;
|
|
107
|
+
/**
|
|
108
|
+
* Inizializza il form dallo schema corrente.
|
|
109
|
+
* Estratto per poter essere richiamato sia da ngOnInit che da ngOnChanges.
|
|
110
|
+
*/
|
|
111
|
+
private initFormFromSchema;
|
|
112
|
+
/**
|
|
113
|
+
* Pulisce lo stato del form prima di un rebuild.
|
|
114
|
+
*/
|
|
115
|
+
private destroyForm;
|
|
116
|
+
private buildForm;
|
|
117
|
+
/** Costruisce un FormGroup per una singola istanza di sezione repeatable. */
|
|
118
|
+
private buildInstanceFormGroup;
|
|
119
|
+
/**
|
|
120
|
+
* Sets up BlackBox form event tracking.
|
|
121
|
+
* - Focus/blur: DOM event delegation on the host element
|
|
122
|
+
* - Value changes: per-field subscriptions with debounce
|
|
123
|
+
* - Validation errors: per-field statusChanges subscriptions
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
private setupBlackboxTracking;
|
|
127
|
+
/**
|
|
128
|
+
* Resolve the form field key from a focus/blur DOM event.
|
|
129
|
+
* Walks up from the event target looking for `formControlName` or `data-field-key`.
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
private resolveFieldKeyFromEvent;
|
|
133
|
+
private applyAllValidators;
|
|
134
|
+
private evaluateAllConditions;
|
|
135
|
+
/** Valuta condizioni di visibilita/disabilitazione per un singolo campo nel contesto del FormGroup dato. */
|
|
136
|
+
private evaluateFieldConditions;
|
|
137
|
+
private buildDependencyMap;
|
|
138
|
+
/**
|
|
139
|
+
* Costruisce la mappa dei descriptors accordion per le sezioni collapsibili.
|
|
140
|
+
* Ogni sezione collapsibile viene mappata a un singolo UiAccordionDescriptor.
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
private buildSectionAccordionMap;
|
|
144
|
+
/**
|
|
145
|
+
* Numero di istanze repeatable da creare al build/reset:
|
|
146
|
+
* almeno `repeatable.min` (se `min > 0` o omesso default 1), mai meno delle righe in `initialData[section.id]`.
|
|
147
|
+
* Con `min: 0` non si aggiungono righe oltre a quelle già presenti nei dati iniziali.
|
|
148
|
+
*/
|
|
149
|
+
private getRepeatableInitialInstanceCount;
|
|
150
|
+
/** Ricostruisce i descriptor accordion per le istanze di una sezione repeatable. */
|
|
151
|
+
private rebuildRepeatableAccordion;
|
|
152
|
+
private updateDependentOptions;
|
|
153
|
+
/** Verifica se un campo e visibile (opzionalmente nel contesto di un FormGroup specifico). */
|
|
154
|
+
isFieldVisible(fieldKey: string, fg?: FormGroup): boolean;
|
|
155
|
+
/** Verifica se un campo e obbligatorio (include validazione condizionale). */
|
|
156
|
+
isFieldRequired(fieldKey: string, fg?: FormGroup): boolean;
|
|
157
|
+
/** Verifica se una sezione e visibile. */
|
|
158
|
+
isSectionVisible(sectionId: string): boolean;
|
|
159
|
+
/** Descriptors accordion per una sezione collapsibile. */
|
|
160
|
+
getSectionAccordionItems(sectionId: string): UiAccordionDescriptor[];
|
|
161
|
+
/** Descriptors accordion per le istanze di una sezione repeatable. */
|
|
162
|
+
getRepeatableAccordionItems(sectionId: string): UiAccordionDescriptor[];
|
|
163
|
+
/** Verifica se mostrare errori per un campo. */
|
|
164
|
+
shouldShowFieldErrors(fieldKey: string, fg?: FormGroup): boolean;
|
|
165
|
+
/** Errori di un campo come array di messaggi. */
|
|
166
|
+
getFieldErrors(fieldKey: string, fg?: FormGroup): string[];
|
|
167
|
+
/** Valore completo del form (include campi disabilitati). */
|
|
168
|
+
getFormValue(): UiFormData;
|
|
169
|
+
/** Il form e valido. */
|
|
170
|
+
isFormValid(): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* True se tutti i controlli sono validi, ignorando le chiavi indicate
|
|
173
|
+
* (flat e dentro ogni istanza repeatable).
|
|
174
|
+
*/
|
|
175
|
+
isFormValidExcludingFieldKeys(excludedKeys: ReadonlySet<string>): boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Risolve la chiave per `customFieldTemplates` (`templateKey` → `component` → `field.key`).
|
|
178
|
+
*/
|
|
179
|
+
resolveCustomTemplateKey(field: UiFormFieldDescriptor): string;
|
|
180
|
+
/**
|
|
181
|
+
* Template Angular registrato per il campo custom, o fallback globale.
|
|
182
|
+
*/
|
|
183
|
+
getCustomTemplateRef(field: UiFormFieldDescriptor): TemplateRef<unknown> | null;
|
|
184
|
+
/**
|
|
185
|
+
* Contesto passato a `ngTemplateOutlet` per il campo custom (CVA sul `control`).
|
|
186
|
+
*/
|
|
187
|
+
getCustomFieldOutletContext(field: UiFormFieldDescriptor, fg: FormGroup, nestedErrorKeyPrefix?: string): UiCustomFieldTemplateContext;
|
|
188
|
+
/**
|
|
189
|
+
* Template e contesto in un solo oggetto (evita doppie valutazioni nel template).
|
|
190
|
+
*/
|
|
191
|
+
getCustomFieldOutlet(field: UiFormFieldDescriptor, fg: FormGroup, nestedErrorKeyPrefix?: string): {
|
|
192
|
+
template: TemplateRef<unknown>;
|
|
193
|
+
context: UiCustomFieldTemplateContext;
|
|
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;
|
|
199
|
+
private isFormGroupValidExcluding;
|
|
200
|
+
/** Stato di validazione completo. */
|
|
201
|
+
getValidationState(): UiFormValidationState;
|
|
202
|
+
/** Errori dettagliati per l'error summary. */
|
|
203
|
+
getDetailedFormErrors(): UiFormErrorDetail[];
|
|
204
|
+
/** Conta errori totali. */
|
|
205
|
+
getFormErrorsCount(): number;
|
|
206
|
+
/** Controlla se ci sono errori. */
|
|
207
|
+
hasFormErrors(): boolean;
|
|
208
|
+
/** Controllo per un campo. */
|
|
209
|
+
getFieldControl(key: string): FormControl | null;
|
|
210
|
+
/** Aggiorna il valore di un campo programmaticamente. */
|
|
211
|
+
updateFieldValue(key: string, value: any): void;
|
|
212
|
+
/** Forza la validazione di tutti i campi (incluse istanze repeatable). */
|
|
213
|
+
validateAllFields(): void;
|
|
214
|
+
/** Restituisce il FormArray di una sezione repeatable. */
|
|
215
|
+
getRepeatableArray(sectionId: string): FormArray | null;
|
|
216
|
+
/** Restituisce il FormGroup di una specifica istanza repeatable. */
|
|
217
|
+
getInstanceFormGroup(sectionId: string, index: number): FormGroup | null;
|
|
218
|
+
/** Verifica se e possibile aggiungere nuove istanze. */
|
|
219
|
+
canAddInstance(sectionId: string): boolean;
|
|
220
|
+
/** Verifica se e possibile rimuovere istanze. */
|
|
221
|
+
canRemoveInstance(sectionId: string): boolean;
|
|
222
|
+
/** Aggiunge una nuova istanza vuota a una sezione repeatable. */
|
|
223
|
+
addRepeatableInstance(sectionId: string): void;
|
|
224
|
+
/** Rimuove un'istanza da una sezione repeatable. */
|
|
225
|
+
removeRepeatableInstance(sectionId: string, index: number): void;
|
|
226
|
+
/** Duplica un'istanza esistente con i suoi valori. */
|
|
227
|
+
duplicateRepeatableInstance(sectionId: string, index: number): void;
|
|
228
|
+
/** Titolo di un'istanza repeatable. */
|
|
229
|
+
getInstanceTitle(section: UiFormSection, index: number): string;
|
|
230
|
+
/** Scrolla al campo e lo evidenzia. */
|
|
231
|
+
scrollToField(fieldKey: string): void;
|
|
232
|
+
/** Submit del form. */
|
|
233
|
+
onSubmit(): void;
|
|
234
|
+
/** Reset del form. */
|
|
235
|
+
onReset(): void;
|
|
236
|
+
/** Opzioni per un campo (filtrando per autocomplete query). */
|
|
237
|
+
getFieldOptions(field: UiFormFieldDescriptor): UiFieldOption[];
|
|
238
|
+
/** Filtra opzioni per autocomplete. */
|
|
239
|
+
filterOptions(field: UiFormFieldDescriptor, query: string): void;
|
|
240
|
+
/** Display fn per autocomplete. */
|
|
241
|
+
displayFn(options: UiFieldOption[]): (value: any) => string;
|
|
242
|
+
/** Seleziona tutte le opzioni per multiselect. */
|
|
243
|
+
selectAll(field: UiFormFieldDescriptor): void;
|
|
244
|
+
/** Aggiunge un chip al freemultiselect (da token: Enter o virgola). */
|
|
245
|
+
addFreeChip(field: UiFormFieldDescriptor, event: any): void;
|
|
246
|
+
/** Aggiunge un chip al freemultiselect sull'evento blur dell'input. */
|
|
247
|
+
addFreeChipOnBlur(field: UiFormFieldDescriptor, event: FocusEvent): void;
|
|
248
|
+
/** Rimuove un chip dal freemultiselect. */
|
|
249
|
+
removeFreeChip(field: UiFormFieldDescriptor, chipValue: string): void;
|
|
250
|
+
/** Verifica se un chip e protetto dalla cancellazione. */
|
|
251
|
+
isChipProtected(field: UiFormFieldDescriptor, chipValue: string): boolean;
|
|
252
|
+
/** Rimuove chip da multiselect. */
|
|
253
|
+
removeMultiselectChip(field: UiFormFieldDescriptor, chipValue: any): void;
|
|
254
|
+
/** Trova label di un'opzione dal valore. */
|
|
255
|
+
getOptionLabel(field: UiFormFieldDescriptor, value: any): string;
|
|
256
|
+
/** Tipo di input nativo per il campo. */
|
|
257
|
+
getNativeInputType(field: UiFormFieldDescriptor): string;
|
|
258
|
+
/**
|
|
259
|
+
* Genera le classi CSS per il wrapper di un campo,
|
|
260
|
+
* combinando eventuali cssClasses dallo schema con le classi
|
|
261
|
+
* responsive per il sistema a griglia base-12.
|
|
262
|
+
*
|
|
263
|
+
* Mobile-first: tutti i campi sono span-12 di default (100%).
|
|
264
|
+
* Le classi `ui-col-{breakpoint}-{n}` attivano la larghezza
|
|
265
|
+
* configurata solo dal breakpoint indicato in su.
|
|
266
|
+
*
|
|
267
|
+
* Breakpoint supportati: sm (≥576px), md (≥768px), lg (≥1024px), xl (≥1280px).
|
|
268
|
+
*/
|
|
269
|
+
getFieldWrapperClasses(field: UiFormFieldDescriptor): string;
|
|
270
|
+
/** Character count per textarea/text con maxLength. */
|
|
271
|
+
getCharCount(fieldKey: string, fg?: FormGroup): {
|
|
272
|
+
current: number;
|
|
273
|
+
max: number;
|
|
274
|
+
} | null;
|
|
275
|
+
private isObservable;
|
|
276
|
+
getRepeatableAddButtons(section: UiFormSection): UiButtonDescriptor[];
|
|
277
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiFormBuilderComponent, never>;
|
|
278
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiFormBuilderComponent, "ui-form-builder", never, { "schema": { "alias": "schema"; "required": false; }; "initialData": { "alias": "initialData"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "buttonsOverride": { "alias": "buttonsOverride"; "required": false; }; "loadingFor": { "alias": "loadingFor"; "required": false; }; "customFieldTemplates": { "alias": "customFieldTemplates"; "required": false; }; "customFieldTemplateFallback": { "alias": "customFieldTemplateFallback"; "required": false; }; }, { "valueChange": "valueChange"; "validationChange": "validationChange"; "formSubmit": "formSubmit"; "formReset": "formReset"; "customEvent": "customEvent"; }, never, never, true, never>;
|
|
279
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { UiFieldCondition } from '../types/condition.types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Servizio per la valutazione delle condizioni di visibilita,
|
|
5
|
+
* required e disable dei campi del form.
|
|
6
|
+
*
|
|
7
|
+
* Supporta 12 operatori di confronto, logica AND/OR
|
|
8
|
+
* e accesso a valori annidati tramite dot notation.
|
|
9
|
+
*
|
|
10
|
+
* @providedIn 'root'
|
|
11
|
+
*/
|
|
12
|
+
export declare class UiFormConditionService {
|
|
13
|
+
/**
|
|
14
|
+
* Valuta una singola condizione rispetto ai dati del form.
|
|
15
|
+
*
|
|
16
|
+
* @param condition - Condizione da valutare.
|
|
17
|
+
* @param formData - Stato corrente dei dati del form.
|
|
18
|
+
* @returns `true` se la condizione e soddisfatta.
|
|
19
|
+
*/
|
|
20
|
+
evaluateCondition(condition: UiFieldCondition, formData: Record<string, any>): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Valuta un array di condizioni con logica AND/OR.
|
|
23
|
+
*
|
|
24
|
+
* La prima condizione stabilisce il valore iniziale.
|
|
25
|
+
* Le condizioni successive usano la proprieta `logic` per
|
|
26
|
+
* combinare il risultato (`AND` per default).
|
|
27
|
+
*
|
|
28
|
+
* @param conditions - Array di condizioni.
|
|
29
|
+
* @param formData - Stato corrente dei dati del form.
|
|
30
|
+
* @returns `true` se le condizioni combinate sono soddisfatte.
|
|
31
|
+
*/
|
|
32
|
+
evaluateConditions(conditions: UiFieldCondition[], formData: Record<string, any>): boolean;
|
|
33
|
+
/** Accesso a valori annidati tramite dot notation (es. `'address.city'`). */
|
|
34
|
+
private getNestedValue;
|
|
35
|
+
/** Confronto stringa case-insensitive. */
|
|
36
|
+
private stringContains;
|
|
37
|
+
/** Confronto numerico generico. */
|
|
38
|
+
private numericCompare;
|
|
39
|
+
/**
|
|
40
|
+
* Verifica se un valore e vuoto in modo robusto.
|
|
41
|
+
* Gestisce null, undefined, false, stringhe vuote, array vuoti e oggetti vuoti.
|
|
42
|
+
*/
|
|
43
|
+
private isEmpty;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiFormConditionService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiFormConditionService>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
2
|
+
import { ErrorStateMatcher } from '@angular/material/core';
|
|
3
|
+
/**
|
|
4
|
+
* ErrorStateMatcher condiviso tra form-builder e campi atomici.
|
|
5
|
+
* Mostra errore quando il controllo è invalido e (touched o dirty).
|
|
6
|
+
*/
|
|
7
|
+
export declare class UiFormErrorStateMatcher implements ErrorStateMatcher {
|
|
8
|
+
isErrorState(control: FormControl | null, _form: FormGroupDirective | NgForm | null): boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { AbstractControl } from '@angular/forms';
|
|
2
|
+
import { UiValidationRule } from '../types/validation.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Opzioni per la visibilità degli errori di un campo. */
|
|
5
|
+
export interface UiFieldErrorDisplayOptions {
|
|
6
|
+
/** Tratta il campo come prevalorizzato (mostra errori anche senza touched). */
|
|
7
|
+
treatAsPrevalorized?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Servizio condiviso per messaggi di errore, visibilità errori e conteggio caratteri
|
|
11
|
+
* dei campi form-builder e dei componenti atomici standalone.
|
|
12
|
+
*/
|
|
13
|
+
export declare class UiFormFieldErrorService {
|
|
14
|
+
/**
|
|
15
|
+
* Restituisce i messaggi di errore user-facing per un controllo.
|
|
16
|
+
*
|
|
17
|
+
* @param control Controllo Angular del campo
|
|
18
|
+
* @param rules Regole di validazione dichiarative (messaggi custom dallo schema)
|
|
19
|
+
*/
|
|
20
|
+
getFieldErrors(control: AbstractControl | null, rules?: UiValidationRule[]): string[];
|
|
21
|
+
/**
|
|
22
|
+
* Indica se mostrare gli errori per un controllo (invalid + touched/dirty/prevalorizzato).
|
|
23
|
+
*/
|
|
24
|
+
shouldShowFieldErrors(control: AbstractControl | null, options?: UiFieldErrorDisplayOptions): boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Conteggio caratteri corrente/massimo per campi text/textarea con maxLength.
|
|
27
|
+
*/
|
|
28
|
+
getCharCount(control: AbstractControl | null, maxLength?: number): {
|
|
29
|
+
current: number;
|
|
30
|
+
max: number;
|
|
31
|
+
} | null;
|
|
32
|
+
/** Estrae maxLength dalle regole schema. */
|
|
33
|
+
resolveMaxLength(rules?: UiValidationRule[]): number | undefined;
|
|
34
|
+
private normalizeValidationKey;
|
|
35
|
+
private getDefaultErrorMessage;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiFormFieldErrorService, never>;
|
|
37
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiFormFieldErrorService>;
|
|
38
|
+
}
|