@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
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* @module ng-ui-system/form-builder
|
|
3
3
|
* Tipi relativi ai campi del form builder.
|
|
4
4
|
*/
|
|
5
|
+
import type { FormControl, FormGroup } from '@angular/forms';
|
|
5
6
|
import { Observable } from 'rxjs';
|
|
6
7
|
import { UiIconName } from '../../../core/types';
|
|
8
|
+
import type { UiLocationGeocodedFieldConfig } from './geocoded-location.types';
|
|
7
9
|
export { UiIconName };
|
|
8
10
|
/**
|
|
9
11
|
* Tipi di campo supportati dal form builder.
|
|
@@ -29,8 +31,9 @@ export { UiIconName };
|
|
|
29
31
|
* | `custom` | Extension point per componenti custom |
|
|
30
32
|
* | `location` | Selezione territorio (nazione/provincia/comune/CAP)|
|
|
31
33
|
* | `location-table` | Tabella CRUD di location multiple |
|
|
34
|
+
* | `location-geocoded` | Indirizzo libero con autocomplete geocodificato |
|
|
32
35
|
*/
|
|
33
|
-
export type UiFieldType = 'text' | 'email' | 'password' | 'number' | 'textarea' | 'select' | 'multiselect' | 'freemultiselect' | 'checkbox' | 'switch' | 'radio' | 'date' | 'datetime' | 'file' | 'divider' | 'flag' | 'custom' | 'location' | 'location-table';
|
|
36
|
+
export type UiFieldType = 'text' | 'email' | 'password' | 'number' | 'textarea' | 'select' | 'multiselect' | 'freemultiselect' | 'checkbox' | 'switch' | 'radio' | 'date' | 'datetime' | 'file' | 'divider' | 'flag' | 'custom' | 'location' | 'location-table' | 'location-geocoded';
|
|
34
37
|
/**
|
|
35
38
|
* Singola opzione per campi select, radio, multiselect.
|
|
36
39
|
*/
|
|
@@ -167,8 +170,13 @@ export interface UiFileInputConfig {
|
|
|
167
170
|
* ```
|
|
168
171
|
*/
|
|
169
172
|
export interface UiCustomComponentConfig {
|
|
170
|
-
/** Selettore del
|
|
173
|
+
/** Selettore logico o nome del widget (documentazione / tooling). */
|
|
171
174
|
component: string;
|
|
175
|
+
/**
|
|
176
|
+
* Chiave per risolvere il template in `customFieldTemplates` sul form builder.
|
|
177
|
+
* Se assente si usa `component`, poi la chiave del campo (`field.key`).
|
|
178
|
+
*/
|
|
179
|
+
templateKey?: string;
|
|
172
180
|
/** Input da passare al componente. */
|
|
173
181
|
inputs?: Record<string, any>;
|
|
174
182
|
/** Output da ascoltare dal componente. */
|
|
@@ -177,8 +185,33 @@ export interface UiCustomComponentConfig {
|
|
|
177
185
|
config?: Record<string, any>;
|
|
178
186
|
}
|
|
179
187
|
/**
|
|
180
|
-
*
|
|
181
|
-
*
|
|
188
|
+
* Contesto passato a `ngTemplateOutlet` per i campi `type: 'custom'`.
|
|
189
|
+
* Il componente proiettato dovrebbe collegare il valore tramite `control`
|
|
190
|
+
* (idealmente implementando `ControlValueAccessor` o `[formControl]`).
|
|
191
|
+
*/
|
|
192
|
+
export interface UiCustomFieldTemplateContext {
|
|
193
|
+
/** Stesso di `field` (valore implicito per `let-field` nel template). */
|
|
194
|
+
$implicit: UiFormFieldDescriptor;
|
|
195
|
+
/** Descrittore del campo. */
|
|
196
|
+
field: UiFormFieldDescriptor;
|
|
197
|
+
/** FormGroup del contesto (root o istanza repeatable). */
|
|
198
|
+
formGroup: FormGroup;
|
|
199
|
+
/** `FormControl` del campo (`formGroup.get(field.key)`). */
|
|
200
|
+
control: FormControl;
|
|
201
|
+
/** Configurazione da `customConfig.config`. */
|
|
202
|
+
config: Record<string, any>;
|
|
203
|
+
/**
|
|
204
|
+
* Prefisso per chiavi errore/scroll dei campi interni al CVA
|
|
205
|
+
* (es. `step9[0].sezioneRepertorioRegionale__`).
|
|
206
|
+
*/
|
|
207
|
+
nestedErrorKeyPrefix?: string;
|
|
208
|
+
/** Notifica eventi applicativi (inoltrati come `customEvent` dal form builder). */
|
|
209
|
+
emitCustomEvent: (event: string, data?: any) => void;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Interfaccia legacy per integrazione imperativa (callback).
|
|
213
|
+
* Preferire `ControlValueAccessor` sul controllo del campo e il contesto
|
|
214
|
+
* `UiCustomFieldTemplateContext` tramite template outlet.
|
|
182
215
|
*/
|
|
183
216
|
export interface UiCustomFormComponent {
|
|
184
217
|
/** Valore corrente del componente. */
|
|
@@ -245,9 +278,16 @@ export interface UiFormFieldDescriptor {
|
|
|
245
278
|
searchable?: boolean;
|
|
246
279
|
/** Mostra pulsante "Seleziona tutto" per multiselect. */
|
|
247
280
|
allowSelectAll?: boolean;
|
|
248
|
-
/**
|
|
281
|
+
/**
|
|
282
|
+
* Con `searchable: true` su `select`/`text`, ogni `input` dell'autocomplete
|
|
283
|
+
* invoca la callback: il risultato sostituisce l'elenco opzioni mostrato.
|
|
284
|
+
*/
|
|
249
285
|
asyncOptions?: (query: string) => Promise<UiFieldOption[]>;
|
|
250
|
-
/**
|
|
286
|
+
/**
|
|
287
|
+
* Contratto per risolvere opzioni da id (es. prefill da API). Il Form Builder
|
|
288
|
+
* Angular attuale non invoca questa callback; l'app può comporre le opzioni
|
|
289
|
+
* in `options` o collegarla a logica custom.
|
|
290
|
+
*/
|
|
251
291
|
recoverAsyncValues?: (ids: any[]) => Promise<UiFieldOption[]>;
|
|
252
292
|
/** Generazione dinamica di opzioni. */
|
|
253
293
|
dynamicOptions?: UiDynamicOptionsConfig;
|
|
@@ -263,6 +303,8 @@ export interface UiFormFieldDescriptor {
|
|
|
263
303
|
customConfig?: UiCustomComponentConfig;
|
|
264
304
|
/** Configurazione per il campo file. */
|
|
265
305
|
fileConfig?: UiFileInputConfig;
|
|
306
|
+
/** Configurazione per il campo `location-geocoded` (Nominatim / proxy). */
|
|
307
|
+
locationGeocodedConfig?: UiLocationGeocodedFieldConfig;
|
|
266
308
|
/** Configurazione aspetto del campo. */
|
|
267
309
|
appearance?: {
|
|
268
310
|
/** Per checkbox: 'switch' rende il campo come mat-slide-toggle. */
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ng-ui-system/form-builder
|
|
3
|
+
* Tipi per il campo `location-geocoded` (indirizzo con geocoding).
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Dettaglio minimo per una sede **italiana** (allineato a comune / provincia / regione).
|
|
7
|
+
* Popolato solo se {@link UiGeocodedLocationType.territory} è `'italian'`.
|
|
8
|
+
*/
|
|
9
|
+
export interface UiGeocodedItalianDetails {
|
|
10
|
+
/** Comune (o equivalente censuario). */
|
|
11
|
+
comune?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Provincia: nome o sigla se restituita dal provider (es. da `county` Nominatim).
|
|
14
|
+
*/
|
|
15
|
+
provincia?: string;
|
|
16
|
+
/** Regione. */
|
|
17
|
+
regione?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Dettaglio minimo per una sede **estera** (struttura generica, indipendente dal paese).
|
|
21
|
+
* Popolato solo se {@link UiGeocodedLocationType.territory} è `'foreign'`.
|
|
22
|
+
*/
|
|
23
|
+
export interface UiGeocodedForeignDetails {
|
|
24
|
+
/** Località principale (città, town, ecc.). */
|
|
25
|
+
locality?: string;
|
|
26
|
+
/** Area amministrativa (stato federato, Land, contea, ecc.). */
|
|
27
|
+
adminArea?: string;
|
|
28
|
+
/** Codice paese ISO 3166-1 alpha-2 (ridondante con il campo radice se già presente). */
|
|
29
|
+
countryCode?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Valore atomico restituito dal campo geocodificato.
|
|
33
|
+
* Struttura indipendente dal provider; la mappatura avviene nel servizio di ricerca.
|
|
34
|
+
*
|
|
35
|
+
* Usa {@link territory} e i blocchi `italian` / `foreign` per logiche diverse (es. validazione,
|
|
36
|
+
* persistenza); i campi piatti (`city`, `province`, …) restano per compatibilità e uso generico.
|
|
37
|
+
*/
|
|
38
|
+
export interface UiGeocodedLocationType {
|
|
39
|
+
/** Etichetta principale mostrata all'utente. */
|
|
40
|
+
label: string;
|
|
41
|
+
/** Latitudine WGS84. */
|
|
42
|
+
latitude: number;
|
|
43
|
+
/** Longitudine WGS84. */
|
|
44
|
+
longitude: number;
|
|
45
|
+
/** Indirizzo formattato completo. */
|
|
46
|
+
formattedAddress: string;
|
|
47
|
+
/**
|
|
48
|
+
* Ambito territoriale dedotto dal paese (ISO): Italia vs resto del mondo.
|
|
49
|
+
* Se il provider non fornisce `country_code`, si assume `'foreign'`.
|
|
50
|
+
*/
|
|
51
|
+
territory: 'italian' | 'foreign';
|
|
52
|
+
/**
|
|
53
|
+
* Dettaglio strutturato per sedi italiane. Assente se `territory === 'foreign'`.
|
|
54
|
+
*/
|
|
55
|
+
italian?: UiGeocodedItalianDetails;
|
|
56
|
+
/**
|
|
57
|
+
* Dettaglio strutturato per sedi non italiane. Assente se `territory === 'italian'`.
|
|
58
|
+
*/
|
|
59
|
+
foreign?: UiGeocodedForeignDetails;
|
|
60
|
+
street?: string;
|
|
61
|
+
streetNumber?: string;
|
|
62
|
+
postalCode?: string;
|
|
63
|
+
city?: string;
|
|
64
|
+
municipality?: string;
|
|
65
|
+
province?: string;
|
|
66
|
+
region?: string;
|
|
67
|
+
country?: string;
|
|
68
|
+
countryCode?: string;
|
|
69
|
+
placeId?: string;
|
|
70
|
+
/** Affidabilità stimata del risultato (0–1), se disponibile dal provider. */
|
|
71
|
+
confidence?: number;
|
|
72
|
+
boundingBox?: {
|
|
73
|
+
north: number;
|
|
74
|
+
south: number;
|
|
75
|
+
east: number;
|
|
76
|
+
west: number;
|
|
77
|
+
};
|
|
78
|
+
source?: 'nominatim' | 'pelias' | 'mapbox' | 'google' | 'custom';
|
|
79
|
+
/** Payload grezzo del provider (debug / integrazioni avanzate). */
|
|
80
|
+
raw?: unknown;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Valore accettato da `ControlValueAccessor.writeValue` quando i dati persistiti
|
|
84
|
+
* possono non includere ancora `territory` (versioni precedenti del modello).
|
|
85
|
+
*/
|
|
86
|
+
export type UiGeocodedLocationInput = Omit<UiGeocodedLocationType, 'territory'> & {
|
|
87
|
+
territory?: 'italian' | 'foreign';
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Configurazione del campo `location-geocoded` nello schema del form.
|
|
91
|
+
*/
|
|
92
|
+
export interface UiLocationGeocodedFieldConfig {
|
|
93
|
+
/**
|
|
94
|
+
* Base URL dell'endpoint di ricerca (senza slash finale).
|
|
95
|
+
* Per Nominatim: `https://nominatim.openstreetmap.org` oppure, in sviluppo,
|
|
96
|
+
* un proxy same-origin (es. `/nominatim`) per rispettare CORS e User-Agent.
|
|
97
|
+
* @default 'https://nominatim.openstreetmap.org'
|
|
98
|
+
*/
|
|
99
|
+
nominatimBaseUrl?: string;
|
|
100
|
+
/** Numero minimo di caratteri prima di avviare la ricerca. @default 3 */
|
|
101
|
+
minChars?: number;
|
|
102
|
+
/** Debounce sulla digitazione in millisecondi. @default 200 */
|
|
103
|
+
debounceMs?: number;
|
|
104
|
+
/** Numero massimo di suggerimenti. @default 5 */
|
|
105
|
+
limit?: number;
|
|
106
|
+
/**
|
|
107
|
+
* Codice ISO paese per **limitare** i risultati (parametro Nominatim `countrycodes`).
|
|
108
|
+
* Se omesso, la ricerca è **mondiale** (nessun filtro paese).
|
|
109
|
+
*/
|
|
110
|
+
biasCountry?: string;
|
|
111
|
+
/** Punto di riferimento per ordinare i risultati (`viewbox` Nominatim). */
|
|
112
|
+
biasProximity?: {
|
|
113
|
+
lat: number;
|
|
114
|
+
lng: number;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { UiFieldType, UiFieldOption, UiDynamicOptionsConfig, UiDependentOptionsConfig, UiIconTooltip, UiFileData, UiFileInputConfig, UiCustomComponentConfig, UiCustomFormComponent, UiFormFieldDescriptor, } from './field.types';
|
|
2
|
-
export { UiCrossFieldOperator, UiCrossFieldConfig, UiDateKeyword, UiDateValidationConfig, UiValidationType, UiValidationRule, UiFormValidationState, UiFormErrorDetail, } from './validation.types';
|
|
1
|
+
export { UiFieldType, UiFieldOption, UiDynamicOptionsConfig, UiDependentOptionsConfig, UiIconTooltip, UiFileData, UiFileInputConfig, UiCustomComponentConfig, UiCustomFieldTemplateContext, UiCustomFormComponent, UiFormFieldDescriptor, } from './field.types';
|
|
2
|
+
export { UiCrossFieldOperator, UiCrossFieldConfig, UiDateKeyword, UiDateValidationConfig, UiValidationType, UiValidationRule, UiFormValidationState, UiFormErrorDetail, UI_FORM_NESTED_FIELD_ERRORS_KEY, } from './validation.types';
|
|
3
3
|
export { UiConditionalOperator, UiFieldCondition, } from './condition.types';
|
|
4
4
|
export { UiLocationFieldConfig, UiLocationConfig, UiLocationLabels, UiLocationValue, UiLocationTableConfig, UiLocationRow, } from './territoriale.types';
|
|
5
|
-
export {
|
|
5
|
+
export { UiGeocodedLocationType, UiGeocodedLocationInput, UiGeocodedItalianDetails, UiGeocodedForeignDetails, UiLocationGeocodedFieldConfig, } from './geocoded-location.types';
|
|
6
|
+
export { UiRepeatableConfig, UiWizardStepValidation, UiWizardValidationFn, UiWizardStepConfig, UiFormSection, UiFormBuilderConfig, UiWizardConfig, UiWizardState, UiFormSchema, UiFormData, UiFormCustomEvent, UiWizardStepChangeEvent, UiWizardStepCompleteEvent, } from './schema.types';
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { UiFormFieldDescriptor } from './field.types';
|
|
6
6
|
import { UiFieldCondition } from './condition.types';
|
|
7
|
+
import { UiIconName } from '../../../core/types';
|
|
7
8
|
/**
|
|
8
9
|
* Configurazione di validazione per un singolo step del wizard.
|
|
9
10
|
*/
|
|
@@ -12,7 +13,11 @@ export interface UiWizardStepValidation {
|
|
|
12
13
|
required?: boolean;
|
|
13
14
|
/** Campi specifici da validare in questo step (se omesso, tutti i campi dello step). */
|
|
14
15
|
validateFields?: string[];
|
|
15
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Se `false`, nella navigazione wizard i campi `type: 'custom'` non concorrono
|
|
18
|
+
* alla validità dello step (e i loro errori non bloccano il passaggio).
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
16
21
|
validateCustomComponents?: boolean;
|
|
17
22
|
}
|
|
18
23
|
/**
|
|
@@ -44,10 +49,52 @@ export interface UiWizardStepConfig {
|
|
|
44
49
|
/** Metadati aggiuntivi per lo step. */
|
|
45
50
|
metadata?: Record<string, any>;
|
|
46
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Configurazione per sezioni ripetibili (dynamic repeater).
|
|
54
|
+
* Permette di aggiungere/rimuovere/duplicare N istanze di un blocco
|
|
55
|
+
* di campi, con il modello reattivo gestito tramite FormArray.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* const section: UiFormSection = {
|
|
60
|
+
* id: 'obiettivi',
|
|
61
|
+
* title: 'Obiettivi formativi',
|
|
62
|
+
* repeatable: {
|
|
63
|
+
* min: 1,
|
|
64
|
+
* max: 10,
|
|
65
|
+
* addLabel: 'Aggiungi obiettivo',
|
|
66
|
+
* addIcon: 'plus',
|
|
67
|
+
* instanceTitle: 'Obiettivo {index}',
|
|
68
|
+
* },
|
|
69
|
+
* fields: [ ... ],
|
|
70
|
+
* };
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export interface UiRepeatableConfig {
|
|
74
|
+
/**
|
|
75
|
+
* Numero minimo di istanze obbligatorie.
|
|
76
|
+
* Se `min > 0`, alla creazione del form vengono pre-create almeno `min` istanze
|
|
77
|
+
* (vuote o da `initialData[sectionId]`). Se omesso, vale `1`.
|
|
78
|
+
* Con `min: 0` non si aggiungono righe oltre a quelle già presenti in `initialData`.
|
|
79
|
+
*/
|
|
80
|
+
min?: number;
|
|
81
|
+
/** Numero massimo di istanze (undefined = illimitato). */
|
|
82
|
+
max?: number;
|
|
83
|
+
/** Label per il pulsante "Aggiungi". @default '+ Aggiungi' */
|
|
84
|
+
addLabel?: string;
|
|
85
|
+
/** Icona Lucide per il pulsante "Aggiungi". @default 'plus' */
|
|
86
|
+
addIcon?: UiIconName;
|
|
87
|
+
/** Template per il titolo di ogni istanza. `{index}` viene sostituito con l'indice 1-based. */
|
|
88
|
+
instanceTitle?: string;
|
|
89
|
+
/** Se richiedere conferma prima della rimozione. @default false */
|
|
90
|
+
confirmRemove?: boolean;
|
|
91
|
+
/** Messaggio di conferma rimozione. @default 'Sei sicuro di voler rimuovere questa sezione?' */
|
|
92
|
+
confirmMessage?: string;
|
|
93
|
+
}
|
|
47
94
|
/**
|
|
48
95
|
* Sezione del form che raggruppa campi correlati.
|
|
49
|
-
* Supporta collapsibilita (accordion), condizioni di visibilita
|
|
50
|
-
*
|
|
96
|
+
* Supporta collapsibilita (accordion), condizioni di visibilita,
|
|
97
|
+
* configurazione wizard opzionale e ripetibilita dinamica.
|
|
51
98
|
*
|
|
52
99
|
* @example
|
|
53
100
|
* ```typescript
|
|
@@ -67,6 +114,8 @@ export interface UiFormSection {
|
|
|
67
114
|
title?: string;
|
|
68
115
|
/** Descrizione della sezione. */
|
|
69
116
|
description?: string;
|
|
117
|
+
/** Icona Lucide opzionale per la sezione (visibile in modalità collapsible). @see https://lucide.dev/icons */
|
|
118
|
+
icon?: UiIconName;
|
|
70
119
|
/** Campi contenuti nella sezione. */
|
|
71
120
|
fields: UiFormFieldDescriptor[];
|
|
72
121
|
/** Condizioni per la visibilita della sezione. */
|
|
@@ -77,8 +126,16 @@ export interface UiFormSection {
|
|
|
77
126
|
collapsed?: boolean;
|
|
78
127
|
/** Classi CSS aggiuntive per la sezione. */
|
|
79
128
|
cssClasses?: string[];
|
|
80
|
-
/**
|
|
129
|
+
/**
|
|
130
|
+
* Configurazione wizard per questa sezione.
|
|
131
|
+
* Più sezioni possono condividere lo stesso `wizardStep.stepNumber`: formano un unico
|
|
132
|
+
* passo del wizard (es. più blocchi `collapsible` nello stesso step). Titolo, descrizione
|
|
133
|
+
* e validazione del passo si intendono dalla **prima** sezione del gruppo in ordine di schema.
|
|
134
|
+
* Le chiavi dei campi devono restare univoche tra tutte le sezioni dello stesso schema wizard.
|
|
135
|
+
*/
|
|
81
136
|
wizardStep?: UiWizardStepConfig;
|
|
137
|
+
/** Configurazione per sezione ripetibile. Se definito, la sezione diventa un dynamic repeater. */
|
|
138
|
+
repeatable?: UiRepeatableConfig;
|
|
82
139
|
}
|
|
83
140
|
/**
|
|
84
141
|
* Configurazione globale del form builder.
|
|
@@ -90,8 +147,15 @@ export interface UiFormBuilderConfig {
|
|
|
90
147
|
columns?: number;
|
|
91
148
|
/** Mostra i pulsanti di azione (submit/reset). @default true */
|
|
92
149
|
showButtons?: boolean;
|
|
93
|
-
/** Nasconde l'
|
|
150
|
+
/** Nasconde solo l'area pulsanti del footer (`ui-button-area`), non il summary errori. */
|
|
94
151
|
hideFooter?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Nasconde del tutto il blocco `ui-form-error-summary`.
|
|
154
|
+
* Se assente/falsy il summary è visibile anche senza errori (stato ok prevedibile).
|
|
155
|
+
*/
|
|
156
|
+
hideErrorSummary?: boolean;
|
|
157
|
+
/** Messaggio nel summary quando il form non ha errori (stato ok). */
|
|
158
|
+
errorSummaryValidMessage?: string;
|
|
95
159
|
/** Label personalizzate per i pulsanti. */
|
|
96
160
|
buttonLabels?: {
|
|
97
161
|
submit?: string;
|
|
@@ -111,7 +175,7 @@ export interface UiFormBuilderConfig {
|
|
|
111
175
|
* showProgress: true,
|
|
112
176
|
* progressStyle: 'steps',
|
|
113
177
|
* allowBackNavigation: true,
|
|
114
|
-
* buttonLabels: {
|
|
178
|
+
* buttonLabels: { submit: 'Salva e prosegui', previous: 'Indietro', finish: 'Completa' },
|
|
115
179
|
* };
|
|
116
180
|
* ```
|
|
117
181
|
*/
|
|
@@ -134,10 +198,23 @@ export interface UiWizardConfig {
|
|
|
134
198
|
onStepSave?: (stepData: Record<string, any>, stepNumber: number) => Promise<void> | void;
|
|
135
199
|
/** Mostra pulsanti di navigazione (precedente/successivo). @default true */
|
|
136
200
|
showNavigationButtons?: boolean;
|
|
201
|
+
/** Posizione dei pulsanti di navigazione. @default 'bottom' */
|
|
202
|
+
navigationPosition?: 'top' | 'bottom' | 'both';
|
|
203
|
+
/**
|
|
204
|
+
* Consente di saltare a uno step già completato cliccando bullet o titolo step
|
|
205
|
+
* quando `progressStyle` è `'steps'`. @default true
|
|
206
|
+
*/
|
|
207
|
+
allowStepIndicatorNavigation?: boolean;
|
|
137
208
|
/** Label personalizzate per i pulsanti del wizard. */
|
|
138
209
|
buttonLabels?: {
|
|
139
210
|
previous?: string;
|
|
211
|
+
/** Label pulsante avanti; se assente si usa `submit`. */
|
|
140
212
|
next?: string;
|
|
213
|
+
/**
|
|
214
|
+
* Alias di convenienza (come `submit` sul form builder) per il pulsante «avanti» / salva e prosegui.
|
|
215
|
+
* Usato solo se `next` non è valorizzato.
|
|
216
|
+
*/
|
|
217
|
+
submit?: string;
|
|
141
218
|
finish?: string;
|
|
142
219
|
save?: string;
|
|
143
220
|
};
|
|
@@ -161,6 +161,11 @@ export interface UiFormValidationState {
|
|
|
161
161
|
/** Chiavi dei campi toccati. */
|
|
162
162
|
touched: string[];
|
|
163
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* Chiave `ValidationErrors` usata dai CVA custom per esporre errori granulari
|
|
166
|
+
* sui campi interni (atomici) verso l'error-summary del form-builder.
|
|
167
|
+
*/
|
|
168
|
+
export declare const UI_FORM_NESTED_FIELD_ERRORS_KEY = "uiNestedFieldErrors";
|
|
164
169
|
/**
|
|
165
170
|
* Dettaglio di un errore per l'error summary.
|
|
166
171
|
*/
|
|
@@ -13,3 +13,5 @@ export { UiConditionEditorComponent } from './sub-components/condition-editor/co
|
|
|
13
13
|
export { UiOptionsEditorComponent } from './sub-components/options-editor/options-editor.component';
|
|
14
14
|
export { UiEditorFormValuesPanelComponent } from './sub-components/form-values-panel/form-values-panel.component';
|
|
15
15
|
export * from './types/editor.types';
|
|
16
|
+
export { PRESET_ANAGRAFICA, PRESET_TICKET, PRESET_SURVEY, EDITOR_PRESETS } from './presets/editor-presets';
|
|
17
|
+
export type { EditorPresetInfo } from './presets/editor-presets';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ng-ui-system/form-builder-editor
|
|
3
|
+
* Preset di schemi per l'editor del form builder.
|
|
4
|
+
*
|
|
5
|
+
* Raccolta di scenari comuni che dimostrano le capacità del descrittore:
|
|
6
|
+
* - Validazione avanzata (required, pattern, cross-field)
|
|
7
|
+
* - Condizioni di visibilità e disabilitazione
|
|
8
|
+
* - Layout multi-colonna con breakpoints
|
|
9
|
+
* - Campi select/radio/multiselect con opzioni
|
|
10
|
+
* - Sezioni multiple organizzate per contesto
|
|
11
|
+
* - File upload, switch, divider, textarea
|
|
12
|
+
*
|
|
13
|
+
* Utilizzabili sia nella variante Material che Bootstrap Italia.
|
|
14
|
+
*/
|
|
15
|
+
import type { UiFormSchema } from '../../form-builder/types/index';
|
|
16
|
+
export declare const PRESET_ANAGRAFICA: UiFormSchema;
|
|
17
|
+
export declare const PRESET_TICKET: UiFormSchema;
|
|
18
|
+
export declare const PRESET_SURVEY: UiFormSchema;
|
|
19
|
+
export interface EditorPresetInfo {
|
|
20
|
+
key: string;
|
|
21
|
+
label: string;
|
|
22
|
+
description: string;
|
|
23
|
+
schema: UiFormSchema;
|
|
24
|
+
}
|
|
25
|
+
export declare const EDITOR_PRESETS: EditorPresetInfo[];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { UiEndpoint } from '../../core/types/index';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Orchestrates toast notifications and loader state for HTTP requests.
|
|
5
|
+
*
|
|
6
|
+
* Features:
|
|
7
|
+
* - Debounce anti-spam (groups identical messages within 300ms)
|
|
8
|
+
* - Inline message resolution with placeholder replacements
|
|
9
|
+
* - `successMessageResolver` / `errorExtractor` for dynamic messages
|
|
10
|
+
* - Loader integration via `UiLayoutService` (optional)
|
|
11
|
+
*/
|
|
12
|
+
export declare class UiHttpMessageHandler {
|
|
13
|
+
private readonly toast;
|
|
14
|
+
private readonly layout;
|
|
15
|
+
/** Debounce time in milliseconds. */
|
|
16
|
+
private readonly DEBOUNCE_TIME;
|
|
17
|
+
/** Active debounce timeouts keyed by message content. */
|
|
18
|
+
private readonly messageTimeouts;
|
|
19
|
+
/** Show the global loader (via UiLayoutService if available). */
|
|
20
|
+
startLoading(): void;
|
|
21
|
+
/** Hide the global loader. */
|
|
22
|
+
stopLoading(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Show a success toast for the given endpoint.
|
|
25
|
+
*
|
|
26
|
+
* Resolution priority:
|
|
27
|
+
* 1. `successMessageResolver()` if provided and returns non-null
|
|
28
|
+
* 2. `messages.success` with placeholder replacements
|
|
29
|
+
* 3. No toast if no message is configured
|
|
30
|
+
*/
|
|
31
|
+
showSuccess(endpoint: UiEndpoint): void;
|
|
32
|
+
/**
|
|
33
|
+
* Show an error toast for the given endpoint.
|
|
34
|
+
*
|
|
35
|
+
* Resolution priority:
|
|
36
|
+
* 1. `errorExtractor(error)` if provided and returns non-null
|
|
37
|
+
* 2. `messages.error` with placeholder replacements
|
|
38
|
+
* 3. `fallbackMessage` if everything else is empty
|
|
39
|
+
*/
|
|
40
|
+
showError(endpoint: UiEndpoint, error?: any, fallbackMessage?: string): void;
|
|
41
|
+
/** Show a custom success toast (not tied to an endpoint). */
|
|
42
|
+
showCustomSuccess(message: string): void;
|
|
43
|
+
/** Show a custom error toast (not tied to an endpoint). */
|
|
44
|
+
showCustomError(message: string): void;
|
|
45
|
+
/** Cancel all pending debounce timeouts. */
|
|
46
|
+
clearAllTimeouts(): void;
|
|
47
|
+
/**
|
|
48
|
+
* Debounce mechanism for toast messages.
|
|
49
|
+
* If the same message is requested within DEBOUNCE_TIME ms,
|
|
50
|
+
* only the last one is shown.
|
|
51
|
+
*/
|
|
52
|
+
private debounceToast;
|
|
53
|
+
/**
|
|
54
|
+
* Replace `${key}` placeholders in a message string.
|
|
55
|
+
*/
|
|
56
|
+
private applyReplacements;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiHttpMessageHandler, never>;
|
|
58
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiHttpMessageHandler>;
|
|
59
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import type { UiEndpoint } from '../../core/types/index';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Central HTTP service with automatic loader, toast, and error handling.
|
|
7
|
+
*
|
|
8
|
+
* All toast flags default to `false` — enable them per-endpoint via
|
|
9
|
+
* `showSuccess: true` and/or `showError: true`.
|
|
10
|
+
*/
|
|
11
|
+
export declare class UiHttpService {
|
|
12
|
+
private readonly http;
|
|
13
|
+
private readonly messageHandler;
|
|
14
|
+
private readonly config;
|
|
15
|
+
private readonly headersProvider;
|
|
16
|
+
private readonly blackbox;
|
|
17
|
+
/** Resolved base URL from config token. */
|
|
18
|
+
private get baseUrl();
|
|
19
|
+
/** Execute a **GET** request. */
|
|
20
|
+
get<T>(endpoint: UiEndpoint, options?: {
|
|
21
|
+
headers?: HttpHeaders;
|
|
22
|
+
params?: any;
|
|
23
|
+
}): Observable<T>;
|
|
24
|
+
/** Execute a **POST** request. */
|
|
25
|
+
post<T>(endpoint: UiEndpoint, body: unknown, options?: {
|
|
26
|
+
headers?: HttpHeaders;
|
|
27
|
+
params?: any;
|
|
28
|
+
}): Observable<T>;
|
|
29
|
+
/** Execute a **PUT** request. */
|
|
30
|
+
put<T>(endpoint: UiEndpoint, body: unknown, options?: {
|
|
31
|
+
headers?: HttpHeaders;
|
|
32
|
+
params?: any;
|
|
33
|
+
}): Observable<T>;
|
|
34
|
+
/** Execute a **PATCH** request. */
|
|
35
|
+
patch<T>(endpoint: UiEndpoint, body: unknown, options?: {
|
|
36
|
+
headers?: HttpHeaders;
|
|
37
|
+
params?: any;
|
|
38
|
+
}): Observable<T>;
|
|
39
|
+
/** Execute a **DELETE** request. */
|
|
40
|
+
delete<T>(endpoint: UiEndpoint, body?: unknown, options?: {
|
|
41
|
+
headers?: HttpHeaders;
|
|
42
|
+
params?: any;
|
|
43
|
+
}): Observable<T>;
|
|
44
|
+
/**
|
|
45
|
+
* Download a **binary file** (Blob).
|
|
46
|
+
*
|
|
47
|
+
* Applies the same loader / toast pipeline as JSON requests.
|
|
48
|
+
*/
|
|
49
|
+
download(endpoint: UiEndpoint, options?: {
|
|
50
|
+
headers?: HttpHeaders;
|
|
51
|
+
params?: any;
|
|
52
|
+
}): Observable<Blob>;
|
|
53
|
+
/** Show a custom success toast (not tied to an endpoint). */
|
|
54
|
+
showCustomSuccess(message: string): void;
|
|
55
|
+
/** Show a custom error toast (not tied to an endpoint). */
|
|
56
|
+
showCustomError(message: string): void;
|
|
57
|
+
/** Manually control the loader state. */
|
|
58
|
+
setLoading(loading: boolean): void;
|
|
59
|
+
/** Show a success toast for a specific endpoint (manual trigger). */
|
|
60
|
+
showEndpointSuccess(endpoint: UiEndpoint): void;
|
|
61
|
+
/** Show an error toast for a specific endpoint (manual trigger). */
|
|
62
|
+
showEndpointError(endpoint: UiEndpoint, error?: any, fallbackMessage?: string): void;
|
|
63
|
+
/** Cancel all pending debounce timeouts. */
|
|
64
|
+
clearAllToastTimeouts(): void;
|
|
65
|
+
/**
|
|
66
|
+
* Generic JSON request handler.
|
|
67
|
+
* Builds headers, serialises body, and pipes through the common pipeline.
|
|
68
|
+
*/
|
|
69
|
+
private _request;
|
|
70
|
+
/**
|
|
71
|
+
* Common pipeline applied to every HTTP request:
|
|
72
|
+
* 1. Start loader
|
|
73
|
+
* 2. On success → show success toast
|
|
74
|
+
* 3. On error → show error toast, log, re-throw
|
|
75
|
+
* 4. Always stop loader
|
|
76
|
+
* 5. Track in BlackBox (if available and endpoint is trackable)
|
|
77
|
+
*/
|
|
78
|
+
private _handleRequest;
|
|
79
|
+
/**
|
|
80
|
+
* Build the final HttpHeaders by merging:
|
|
81
|
+
* 1. Default headers from config
|
|
82
|
+
* 2. Custom headers from UiHeadersProvider
|
|
83
|
+
* 3. Per-request headers
|
|
84
|
+
*/
|
|
85
|
+
private buildHeaders;
|
|
86
|
+
/**
|
|
87
|
+
* Centralised error handling.
|
|
88
|
+
* Logs the error and delegates toast display to the message handler.
|
|
89
|
+
*/
|
|
90
|
+
private handleErrors;
|
|
91
|
+
/**
|
|
92
|
+
* Track the HTTP call in BlackBox if the service is available
|
|
93
|
+
* and the endpoint hasn't opted out.
|
|
94
|
+
*/
|
|
95
|
+
private trackBlackbox;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiHttpService, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UiHttpService>;
|
|
98
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ng-ui-system/http
|
|
3
|
+
* Injection tokens for the HTTP orchestration service.
|
|
4
|
+
*/
|
|
5
|
+
import { InjectionToken } from '@angular/core';
|
|
6
|
+
import type { UiHttpConfig, UiHeadersProvider } from './http.types';
|
|
7
|
+
/**
|
|
8
|
+
* Optional global configuration for `UiHttpService`.
|
|
9
|
+
*
|
|
10
|
+
* @usageNotes
|
|
11
|
+
* ```typescript
|
|
12
|
+
* providers: [
|
|
13
|
+
* { provide: UI_HTTP_CONFIG, useValue: { baseUrl: '/api' } },
|
|
14
|
+
* ]
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare const UI_HTTP_CONFIG: InjectionToken<UiHttpConfig>;
|
|
18
|
+
/**
|
|
19
|
+
* Optional headers provider for injecting custom headers (auth, correlation, etc.)
|
|
20
|
+
* into every HTTP request.
|
|
21
|
+
*
|
|
22
|
+
* @usageNotes
|
|
23
|
+
* ```typescript
|
|
24
|
+
* providers: [
|
|
25
|
+
* { provide: UI_HEADERS_PROVIDER, useClass: MyAuthHeadersProvider },
|
|
26
|
+
* ]
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare const UI_HEADERS_PROVIDER: InjectionToken<UiHeadersProvider>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module ng-ui-system/http
|
|
3
|
+
* Types and interfaces for the HTTP orchestration service.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Provider interface for custom HTTP headers.
|
|
7
|
+
*
|
|
8
|
+
* Implement this interface and register it with the `UI_HEADERS_PROVIDER`
|
|
9
|
+
* injection token to automatically inject custom headers (e.g. auth tokens,
|
|
10
|
+
* correlation IDs) into every request made by `UiHttpService`.
|
|
11
|
+
*
|
|
12
|
+
* @usageNotes
|
|
13
|
+
* ```typescript
|
|
14
|
+
* @Injectable()
|
|
15
|
+
* export class MyAuthHeadersProvider implements UiHeadersProvider {
|
|
16
|
+
* getHeaders(): Record<string, string> {
|
|
17
|
+
* const token = localStorage.getItem('jwt');
|
|
18
|
+
* return token ? { Authorization: `Bearer ${token}` } : {};
|
|
19
|
+
* }
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* // app.config.ts
|
|
23
|
+
* { provide: UI_HEADERS_PROVIDER, useClass: MyAuthHeadersProvider }
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
export interface UiHeadersProvider {
|
|
27
|
+
/** Returns a plain object of header name → header value. */
|
|
28
|
+
getHeaders(): Record<string, string>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Global configuration for `UiHttpService`.
|
|
32
|
+
*
|
|
33
|
+
* @usageNotes
|
|
34
|
+
* ```typescript
|
|
35
|
+
* // app.config.ts
|
|
36
|
+
* { provide: UI_HTTP_CONFIG, useValue: { baseUrl: '/api/v1' } }
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export interface UiHttpConfig {
|
|
40
|
+
/**
|
|
41
|
+
* Base URL prepended to every endpoint URL.
|
|
42
|
+
* Default: `''` (no prefix).
|
|
43
|
+
*/
|
|
44
|
+
baseUrl?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Default headers applied to every request.
|
|
47
|
+
* Can be overridden per-request via options.
|
|
48
|
+
*/
|
|
49
|
+
defaultHeaders?: Record<string, string>;
|
|
50
|
+
}
|