@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
package/form-builder-editor/lib/components/form-builder/directives/currency-input.directive.d.ts
ADDED
|
@@ -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
|
+
}
|
package/form-builder-editor/lib/components/form-builder/services/form-error-state.matcher.d.ts
ADDED
|
@@ -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
|
+
}
|
package/form-builder-editor/lib/components/form-builder/services/form-field-error.service.d.ts
ADDED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { AbstractControl, ValidatorFn } from '@angular/forms';
|
|
2
|
+
import { UiValidationRule } from '../types/validation.types';
|
|
3
|
+
import { UiFormConditionService } from './form-condition.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Servizio per la creazione e gestione dei validatori Angular
|
|
7
|
+
* basati sulle regole dichiarative dello schema del form.
|
|
8
|
+
*
|
|
9
|
+
* Supporta validazioni standard, cross-field, date con offset,
|
|
10
|
+
* file e validatori condizionali.
|
|
11
|
+
*
|
|
12
|
+
* @providedIn 'root'
|
|
13
|
+
*/
|
|
14
|
+
export declare class UiFormValidationService {
|
|
15
|
+
private conditionService;
|
|
16
|
+
constructor(conditionService: UiFormConditionService);
|
|
17
|
+
/** Crea un array di validatori Angular dalle regole di validazione. */
|
|
18
|
+
createValidators(rules: UiValidationRule[]): ValidatorFn[];
|
|
19
|
+
/**
|
|
20
|
+
* Crea validatori con supporto condizionale.
|
|
21
|
+
* Le regole con `conditions` vengono applicate solo se le condizioni sono soddisfatte.
|
|
22
|
+
*/
|
|
23
|
+
createConditionalValidators(rules: UiValidationRule[], formData: Record<string, any>): ValidatorFn[];
|
|
24
|
+
/**
|
|
25
|
+
* Aggiorna i validatori di un campo in base allo stato corrente del form.
|
|
26
|
+
* Usato per ricalcolare validazioni condizionali quando i dati cambiano.
|
|
27
|
+
*/
|
|
28
|
+
updateFieldValidators(control: AbstractControl, rules: UiValidationRule[] | undefined, formData: Record<string, any>): void;
|
|
29
|
+
/** Verifica se un campo dovrebbe mostrare gli errori. */
|
|
30
|
+
shouldShowFieldErrors(control: AbstractControl): boolean;
|
|
31
|
+
/** Restituisce i campi correlati da cross-field validation. */
|
|
32
|
+
getCrossFieldRelatedFields(fieldKey: string, allRules: Record<string, UiValidationRule[]>): string[];
|
|
33
|
+
/** Verifica se un campo ha validazioni cross-field che lo referenziano. */
|
|
34
|
+
hasCrossFieldValidations(fieldKey: string, allRules: Record<string, UiValidationRule[]>): boolean;
|
|
35
|
+
/** Formatta la dimensione del file in una stringa leggibile. */
|
|
36
|
+
formatFileSize(bytes: number): string;
|
|
37
|
+
private createValidator;
|
|
38
|
+
private createCrossFieldValidator;
|
|
39
|
+
/** Confronto date con date-fns. */
|
|
40
|
+
private validateDateComparison;
|
|
41
|
+
/** Confronto numerico. */
|
|
42
|
+
private validateNumberComparison;
|
|
43
|
+
private createDateMinValidator;
|
|
44
|
+
private createDateMaxValidator;
|
|
45
|
+
/**
|
|
46
|
+
* Parsa una data di riferimento da keyword o stringa DD/MM/YYYY
|
|
47
|
+
* e applica un eventuale offset temporale.
|
|
48
|
+
*/
|
|
49
|
+
private parseReferenceDate;
|
|
50
|
+
/**
|
|
51
|
+
* Applica un offset temporale a una data.
|
|
52
|
+
*
|
|
53
|
+
* Formato: `numero + unita`
|
|
54
|
+
* - `y`/`a` = anni, `m` = mesi, `g`/`d` = giorni, `s`/`w` = settimane
|
|
55
|
+
*/
|
|
56
|
+
private applyDateOffset;
|
|
57
|
+
private formatRefDate;
|
|
58
|
+
private createFileSizeValidator;
|
|
59
|
+
private createFileTypeValidator;
|
|
60
|
+
private createFileCountValidator;
|
|
61
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiFormValidationService, never>;
|
|
62
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiFormValidationService>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/** Voce nazione nel JSON ottimizzato. */
|
|
3
|
+
export interface MinifiedNazioneOption {
|
|
4
|
+
/** Codice nazione (es. `'ITA'`). */
|
|
5
|
+
x: string;
|
|
6
|
+
/** Descrizione (es. `'Italia'`). */
|
|
7
|
+
d: string;
|
|
8
|
+
}
|
|
9
|
+
/** Voce provincia/comune nel JSON ottimizzato. */
|
|
10
|
+
export interface MinifiedSelectOption {
|
|
11
|
+
/** Codice (provincia o comune). */
|
|
12
|
+
x: string;
|
|
13
|
+
/** Descrizione. */
|
|
14
|
+
d: string;
|
|
15
|
+
/** CAP singolo o multipli. */
|
|
16
|
+
c?: string | string[];
|
|
17
|
+
}
|
|
18
|
+
/** Nazione. */
|
|
19
|
+
export interface UiNazione {
|
|
20
|
+
codStatoPk: string;
|
|
21
|
+
codiceCatastale: string;
|
|
22
|
+
descrizione: string;
|
|
23
|
+
}
|
|
24
|
+
/** Provincia. */
|
|
25
|
+
export interface UiProvincia {
|
|
26
|
+
codiceProvinciaPk: string;
|
|
27
|
+
nomeProvincia: string;
|
|
28
|
+
siglaProvincia: string;
|
|
29
|
+
visibile: boolean;
|
|
30
|
+
}
|
|
31
|
+
/** Comune. */
|
|
32
|
+
export interface UiComune {
|
|
33
|
+
codiceCatastale: string;
|
|
34
|
+
codiceComunePk: string;
|
|
35
|
+
comuneSoppresso: boolean;
|
|
36
|
+
nomeComune: string;
|
|
37
|
+
prov: UiProvincia;
|
|
38
|
+
visibile: boolean;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Servizio per la gestione dei dati geografici italiani
|
|
42
|
+
* da file JSON statici ottimizzati.
|
|
43
|
+
*
|
|
44
|
+
* Elimina la necessita di chiamate backend per nazioni,
|
|
45
|
+
* province, comuni e CAP. I dati vengono caricati in memoria
|
|
46
|
+
* al primo accesso e poi serviti dalla cache.
|
|
47
|
+
*
|
|
48
|
+
* @providedIn 'root'
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* const nazioni = await this.locationService.getNazioni();
|
|
53
|
+
* const province = await this.locationService.getProvince();
|
|
54
|
+
* const comuni = await this.locationService.getComuniByProvincia('015');
|
|
55
|
+
* const caps = await this.locationService.getCapList('015146');
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare class UiLocationService {
|
|
59
|
+
private readonly nazioniMap;
|
|
60
|
+
private readonly locationMap;
|
|
61
|
+
private readonly nazioniCache;
|
|
62
|
+
private readonly provinceCache;
|
|
63
|
+
private readonly comuniCache;
|
|
64
|
+
constructor();
|
|
65
|
+
/** Elenco completo delle nazioni (Italia prima). */
|
|
66
|
+
getNazioni(): Promise<{
|
|
67
|
+
data: UiNazione[];
|
|
68
|
+
}>;
|
|
69
|
+
/** Elenco completo delle province, ordinate alfabeticamente. */
|
|
70
|
+
getProvince(): Promise<{
|
|
71
|
+
content: UiProvincia[];
|
|
72
|
+
}>;
|
|
73
|
+
/** Elenco dei comuni per una specifica provincia. */
|
|
74
|
+
getComuniByProvincia(provinciaId: string): Promise<UiComune[]>;
|
|
75
|
+
/** Elenco dei CAP per un comune. */
|
|
76
|
+
getCapList(comuneId: string): Promise<string[]>;
|
|
77
|
+
/** Dati completi di una location (nazione, provincia o comune). */
|
|
78
|
+
getLocationFullData(type: 'nazione' | 'provincia' | 'comune', id: string, provinciaId?: string): Promise<UiNazione | UiProvincia | UiComune | null>;
|
|
79
|
+
private initializeCaches;
|
|
80
|
+
private sortNazioniItaliaFirst;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiLocationService, never>;
|
|
82
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiLocationService>;
|
|
83
|
+
}
|
package/form-builder-editor/lib/components/form-builder/services/nominatim-geocoding.service.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import type { UiGeocodedLocationType, UiLocationGeocodedFieldConfig } from '../types/geocoded-location.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Risposta elementare dell'API search di Nominatim (format=json). */
|
|
5
|
+
interface NominatimSearchItem {
|
|
6
|
+
place_id: number;
|
|
7
|
+
lat: string;
|
|
8
|
+
lon: string;
|
|
9
|
+
display_name: string;
|
|
10
|
+
importance?: number;
|
|
11
|
+
boundingbox?: [string, string, string, string];
|
|
12
|
+
address?: Record<string, string>;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Integrazione con l'API pubblica Nominatim (OpenStreetMap) per la ricerca indirizzi.
|
|
16
|
+
* Mappa i risultati sul tipo {@link UiGeocodedLocationType}.
|
|
17
|
+
*
|
|
18
|
+
* In browser è consigliato usare un proxy same-origin per CORS e User-Agent;
|
|
19
|
+
* vedi {@link UiLocationGeocodedFieldConfig.nominatimBaseUrl}.
|
|
20
|
+
*
|
|
21
|
+
* @providedIn root
|
|
22
|
+
*/
|
|
23
|
+
export declare class UiNominatimGeocodingService {
|
|
24
|
+
private readonly http;
|
|
25
|
+
/**
|
|
26
|
+
* Cerca indirizzi in base alla query testuale.
|
|
27
|
+
*
|
|
28
|
+
* @param query - Testo libero inserito dall'utente
|
|
29
|
+
* @param config - Opzioni di ricerca e base URL
|
|
30
|
+
*/
|
|
31
|
+
search(query: string, config?: UiLocationGeocodedFieldConfig): Observable<UiGeocodedLocationType[]>;
|
|
32
|
+
/** Converte un risultato Nominatim in {@link UiGeocodedLocationType}. */
|
|
33
|
+
mapItem(item: NominatimSearchItem): UiGeocodedLocationType;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiNominatimGeocodingService, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiNominatimGeocodingService>;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { UiFormErrorDetail } from '../../types/validation.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Riepilogo stato validazione del form.
|
|
6
|
+
*
|
|
7
|
+
* Con errori: indicatore + dropdown hover/click per il dettaglio e navigazione ai campi.
|
|
8
|
+
* Senza errori: messaggio di stato positivo fisso (no dropdown), UI prevedibile.
|
|
9
|
+
*
|
|
10
|
+
* @selector ui-form-error-summary
|
|
11
|
+
*/
|
|
12
|
+
export declare class UiFormErrorSummaryComponent {
|
|
13
|
+
/** Lista di errori dettagliati per campo. */
|
|
14
|
+
errors: UiFormErrorDetail[];
|
|
15
|
+
/** Conteggio totale degli errori (somma di tutti i messaggi). */
|
|
16
|
+
totalErrorCount: number;
|
|
17
|
+
/** Testo mostrato quando non ci sono errori. */
|
|
18
|
+
validMessage: string;
|
|
19
|
+
/** Emesso quando l'utente clicca su un errore per navigare al campo. */
|
|
20
|
+
fieldClick: EventEmitter<string>;
|
|
21
|
+
/** @internal Stato del dropdown (solo con errori). */
|
|
22
|
+
showDropdown: boolean;
|
|
23
|
+
/** True se il form ha almeno un errore da mostrare nel summary. */
|
|
24
|
+
get hasErrors(): boolean;
|
|
25
|
+
/** Conteggio da visualizzare: usa totalErrorCount se fornito, altrimenti conta dai dettagli. */
|
|
26
|
+
get displayCount(): number;
|
|
27
|
+
/** @internal Gestione click su errore. */
|
|
28
|
+
onFieldClick(fieldKey: string): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiFormErrorSummaryComponent, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UiFormErrorSummaryComponent, "ui-form-error-summary", never, { "errors": { "alias": "errors"; "required": false; }; "totalErrorCount": { "alias": "totalErrorCount"; "required": false; }; "validMessage": { "alias": "validMessage"; "required": false; }; }, { "fieldClick": "fieldClick"; }, never, never, true, never>;
|
|
31
|
+
}
|