@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
|
@@ -3,11 +3,10 @@ import { LucideAngularModule } from 'lucide-angular';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "lucide-angular";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Riepilogo stato validazione del form.
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* per consentire lo scroll-to-field con highlight nel form builder.
|
|
8
|
+
* Con errori: indicatore + dropdown hover/click per il dettaglio e navigazione ai campi.
|
|
9
|
+
* Senza errori: messaggio di stato positivo fisso (no dropdown), UI prevedibile.
|
|
11
10
|
*
|
|
12
11
|
* @selector ui-form-error-summary
|
|
13
12
|
*/
|
|
@@ -17,11 +16,17 @@ export class UiFormErrorSummaryComponent {
|
|
|
17
16
|
this.errors = [];
|
|
18
17
|
/** Conteggio totale degli errori (somma di tutti i messaggi). */
|
|
19
18
|
this.totalErrorCount = 0;
|
|
19
|
+
/** Testo mostrato quando non ci sono errori. */
|
|
20
|
+
this.validMessage = 'Il form è compilato correttamente';
|
|
20
21
|
/** Emesso quando l'utente clicca su un errore per navigare al campo. */
|
|
21
22
|
this.fieldClick = new EventEmitter();
|
|
22
|
-
/** @internal Stato del dropdown. */
|
|
23
|
+
/** @internal Stato del dropdown (solo con errori). */
|
|
23
24
|
this.showDropdown = false;
|
|
24
25
|
}
|
|
26
|
+
/** True se il form ha almeno un errore da mostrare nel summary. */
|
|
27
|
+
get hasErrors() {
|
|
28
|
+
return this.displayCount > 0;
|
|
29
|
+
}
|
|
25
30
|
/** Conteggio da visualizzare: usa totalErrorCount se fornito, altrimenti conta dai dettagli. */
|
|
26
31
|
get displayCount() {
|
|
27
32
|
return this.totalErrorCount > 0 ? this.totalErrorCount : this.errors.reduce((sum, d) => sum + d.errors.length, 0);
|
|
@@ -32,130 +37,154 @@ export class UiFormErrorSummaryComponent {
|
|
|
32
37
|
this.fieldClick.emit(fieldKey);
|
|
33
38
|
}
|
|
34
39
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UiFormErrorSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
35
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: UiFormErrorSummaryComponent, isStandalone: true, selector: "ui-form-error-summary", inputs: { errors: "errors", totalErrorCount: "totalErrorCount" }, outputs: { fieldClick: "fieldClick" }, ngImport: i0, template: `
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<!-- Indicatore errori con icona e messaggio -->
|
|
43
|
-
<div class="ui-form-error-summary__heading"
|
|
44
|
-
(click)="showDropdown = !showDropdown"
|
|
45
|
-
role="button"
|
|
46
|
-
tabindex="0"
|
|
47
|
-
[attr.aria-label]="displayCount + ' errori nel form'"
|
|
48
|
-
(keydown.enter)="showDropdown = !showDropdown"
|
|
49
|
-
(keydown.space)="showDropdown = !showDropdown; $event.preventDefault()"
|
|
50
|
-
>
|
|
51
|
-
<lucide-icon name="alert-circle" [size]="20" class="ui-form-error-summary__icon" aria-hidden="true" />
|
|
52
|
-
<p class="ui-form-error-summary__text">
|
|
53
|
-
Sono presenti <strong>{{ displayCount }}</strong>
|
|
54
|
-
{{ displayCount === 1 ? 'errore' : 'errori' }} nel form.
|
|
55
|
-
</p>
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<!-- Dropdown dettaglio -->
|
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: UiFormErrorSummaryComponent, isStandalone: true, selector: "ui-form-error-summary", inputs: { errors: "errors", totalErrorCount: "totalErrorCount", validMessage: "validMessage" }, outputs: { fieldClick: "fieldClick" }, ngImport: i0, template: `
|
|
41
|
+
<div
|
|
42
|
+
class="ui-form-error-summary"
|
|
43
|
+
[class.ui-form-error-summary--invalid]="hasErrors"
|
|
44
|
+
[class.ui-form-error-summary--valid]="!hasErrors"
|
|
45
|
+
>
|
|
46
|
+
@if (hasErrors) {
|
|
59
47
|
<div
|
|
60
|
-
class="ui-form-error-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
aria-label="Elenco errori del form"
|
|
48
|
+
class="ui-form-error-summary__panel ui-form-error-summary__panel--invalid"
|
|
49
|
+
(mouseenter)="showDropdown = true"
|
|
50
|
+
(mouseleave)="showDropdown = false"
|
|
64
51
|
>
|
|
65
|
-
<div
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<div class="ui-form-error-summary__messages">
|
|
81
|
-
@for (err of detail.errors; track $index; let last = $last) {
|
|
82
|
-
<span>{{ err }}@if (!last) {, }</span>
|
|
83
|
-
}
|
|
84
|
-
</div>
|
|
85
|
-
</li>
|
|
86
|
-
}
|
|
87
|
-
</ul>
|
|
52
|
+
<div
|
|
53
|
+
class="ui-form-error-summary__heading"
|
|
54
|
+
(click)="showDropdown = !showDropdown"
|
|
55
|
+
role="button"
|
|
56
|
+
tabindex="0"
|
|
57
|
+
[attr.aria-expanded]="showDropdown"
|
|
58
|
+
[attr.aria-label]="displayCount + ' errori nel form'"
|
|
59
|
+
(keydown.enter)="showDropdown = !showDropdown"
|
|
60
|
+
(keydown.space)="showDropdown = !showDropdown; $event.preventDefault()"
|
|
61
|
+
>
|
|
62
|
+
<lucide-icon name="alert-circle" [size]="20" class="ui-form-error-summary__icon" aria-hidden="true" />
|
|
63
|
+
<p class="ui-form-error-summary__text">
|
|
64
|
+
Sono presenti <strong>{{ displayCount }}</strong>
|
|
65
|
+
{{ displayCount === 1 ? 'errore' : 'errori' }} nel form.
|
|
66
|
+
</p>
|
|
88
67
|
</div>
|
|
68
|
+
|
|
69
|
+
<div
|
|
70
|
+
class="ui-form-error-summary__dropdown"
|
|
71
|
+
[class.ui-form-error-summary__dropdown--visible]="showDropdown"
|
|
72
|
+
role="list"
|
|
73
|
+
aria-label="Elenco errori del form"
|
|
74
|
+
>
|
|
75
|
+
<div class="ui-form-error-summary__dropdown-content">
|
|
76
|
+
<h4 class="ui-form-error-summary__dropdown-title">Dettagli errori:</h4>
|
|
77
|
+
<ul class="ui-form-error-summary__list">
|
|
78
|
+
@for (detail of errors; track detail.fieldKey) {
|
|
79
|
+
<li
|
|
80
|
+
class="ui-form-error-summary__item"
|
|
81
|
+
role="listitem"
|
|
82
|
+
(click)="onFieldClick(detail.fieldKey)"
|
|
83
|
+
tabindex="0"
|
|
84
|
+
(keydown.enter)="onFieldClick(detail.fieldKey)"
|
|
85
|
+
>
|
|
86
|
+
<div class="ui-form-error-summary__field-name">
|
|
87
|
+
<lucide-icon name="arrow-right" [size]="14" class="ui-form-error-summary__arrow" aria-hidden="true" />
|
|
88
|
+
{{ detail.fieldLabel }}
|
|
89
|
+
</div>
|
|
90
|
+
<div class="ui-form-error-summary__messages">
|
|
91
|
+
@for (err of detail.errors; track $index; let last = $last) {
|
|
92
|
+
<span>{{ err }}@if (!last) {, }</span>
|
|
93
|
+
}
|
|
94
|
+
</div>
|
|
95
|
+
</li>
|
|
96
|
+
}
|
|
97
|
+
</ul>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
} @else {
|
|
102
|
+
<div class="ui-form-error-summary__panel ui-form-error-summary__panel--valid" role="status" aria-live="polite">
|
|
103
|
+
<lucide-icon name="check-circle" [size]="20" class="ui-form-error-summary__icon-valid" aria-hidden="true" />
|
|
104
|
+
<p class="ui-form-error-summary__text-valid">{{ validMessage }}</p>
|
|
89
105
|
</div>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
`, isInline: true, styles: [".ui-form-error-summary{position:relative
|
|
106
|
+
}
|
|
107
|
+
</div>
|
|
108
|
+
`, isInline: true, styles: [".ui-form-error-summary{position:relative}.ui-form-error-summary--invalid{cursor:pointer}.ui-form-error-summary--valid{cursor:default}.ui-form-error-summary__panel--valid{display:flex;align-items:center;gap:var(--ui-spacing-2, 8px);padding:var(--ui-spacing-2, 8px) 0}.ui-form-error-summary__icon-valid{color:var(--ui-color-success, #16a34a);flex-shrink:0}.ui-form-error-summary__text-valid{margin:0;color:var(--ui-color-success, #15803d);font-size:var(--ui-font-size-sm, 14px);font-family:var(--ui-font-family);line-height:1.4}.ui-form-error-summary__heading{display:flex;align-items:center;gap:var(--ui-spacing-2, 8px);padding:var(--ui-spacing-2, 8px) 0;outline:none}.ui-form-error-summary__heading:focus{outline:none}.ui-form-error-summary__heading:focus-visible{outline:var(--ui-focus-ring-width) solid var(--ui-focus-ring-color);outline-offset:var(--ui-focus-ring-offset)}.ui-form-error-summary__icon{color:var(--ui-color-error, #dc2626);flex-shrink:0}.ui-form-error-summary__text{margin:0;color:var(--ui-color-error, #dc2626);font-size:var(--ui-font-size-sm, 14px);font-family:var(--ui-font-family);line-height:1.4}.ui-form-error-summary__text strong{font-weight:var(--ui-font-weight-semibold, 600)}.ui-form-error-summary__dropdown{position:absolute;bottom:100%;left:0;right:0;min-width:320px;max-height:300px;overflow-y:auto;background:var(--ui-color-surface, #fff);border:1px solid var(--ui-color-border, #e5e7eb);border-radius:var(--ui-radius-lg, 8px);box-shadow:0 -10px 25px -3px #0000001a,0 -4px 6px -2px #0000000d;z-index:1000;margin-bottom:var(--ui-spacing-2, 8px);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s ease-in-out}.ui-form-error-summary__dropdown--visible{opacity:1;visibility:visible;transform:translateY(0)}.ui-form-error-summary__dropdown-content{padding:var(--ui-spacing-4, 16px)}.ui-form-error-summary__dropdown-title{margin:0 0 var(--ui-spacing-3, 12px) 0;color:var(--ui-color-text, #374151);font-size:var(--ui-font-size-sm, 14px);font-weight:var(--ui-font-weight-semibold, 600);font-family:var(--ui-font-family)}.ui-form-error-summary__list{list-style:none;padding:0;margin:0}.ui-form-error-summary__item{padding:var(--ui-spacing-3, 12px);border-radius:var(--ui-radius-md, 6px);cursor:pointer;transition:background-color .15s ease;border:1px solid transparent;margin-bottom:var(--ui-spacing-2, 8px);outline:none}.ui-form-error-summary__item:focus{outline:none}.ui-form-error-summary__item:focus-visible{outline:var(--ui-focus-ring-width) solid var(--ui-focus-ring-color);outline-offset:var(--ui-focus-ring-offset)}.ui-form-error-summary__item:last-child{margin-bottom:0}.ui-form-error-summary__item:hover{background:var(--ui-color-surface-hover, #f9fafb);border-color:var(--ui-color-border, #e5e7eb)}.ui-form-error-summary__field-name{display:flex;align-items:center;gap:var(--ui-spacing-2, 8px);font-weight:var(--ui-font-weight-semibold, 600);color:var(--ui-color-text, #374151);font-size:var(--ui-font-size-sm, 14px);font-family:var(--ui-font-family);margin-bottom:4px}.ui-form-error-summary__arrow{color:var(--ui-color-text-muted, #6b7280);flex-shrink:0;transition:transform .15s ease}.ui-form-error-summary__item:hover .ui-form-error-summary__arrow{transform:translate(4px)}.ui-form-error-summary__messages{color:var(--ui-color-error, #dc2626);font-size:var(--ui-font-size-xs, 13px);font-family:var(--ui-font-family);line-height:1.4;margin-left:22px}@media (max-width: 768px){.ui-form-error-summary__dropdown{position:fixed;inset:50% 16px auto;transform:translateY(-50%);margin-bottom:0}.ui-form-error-summary__dropdown--visible{transform:translateY(-50%)}}\n"], dependencies: [{ kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i1.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
93
109
|
}
|
|
94
110
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UiFormErrorSummaryComponent, decorators: [{
|
|
95
111
|
type: Component,
|
|
96
112
|
args: [{ selector: 'ui-form-error-summary', standalone: true, imports: [LucideAngularModule], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
<!-- Indicatore errori con icona e messaggio -->
|
|
104
|
-
<div class="ui-form-error-summary__heading"
|
|
105
|
-
(click)="showDropdown = !showDropdown"
|
|
106
|
-
role="button"
|
|
107
|
-
tabindex="0"
|
|
108
|
-
[attr.aria-label]="displayCount + ' errori nel form'"
|
|
109
|
-
(keydown.enter)="showDropdown = !showDropdown"
|
|
110
|
-
(keydown.space)="showDropdown = !showDropdown; $event.preventDefault()"
|
|
111
|
-
>
|
|
112
|
-
<lucide-icon name="alert-circle" [size]="20" class="ui-form-error-summary__icon" aria-hidden="true" />
|
|
113
|
-
<p class="ui-form-error-summary__text">
|
|
114
|
-
Sono presenti <strong>{{ displayCount }}</strong>
|
|
115
|
-
{{ displayCount === 1 ? 'errore' : 'errori' }} nel form.
|
|
116
|
-
</p>
|
|
117
|
-
</div>
|
|
118
|
-
|
|
119
|
-
<!-- Dropdown dettaglio -->
|
|
113
|
+
<div
|
|
114
|
+
class="ui-form-error-summary"
|
|
115
|
+
[class.ui-form-error-summary--invalid]="hasErrors"
|
|
116
|
+
[class.ui-form-error-summary--valid]="!hasErrors"
|
|
117
|
+
>
|
|
118
|
+
@if (hasErrors) {
|
|
120
119
|
<div
|
|
121
|
-
class="ui-form-error-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
aria-label="Elenco errori del form"
|
|
120
|
+
class="ui-form-error-summary__panel ui-form-error-summary__panel--invalid"
|
|
121
|
+
(mouseenter)="showDropdown = true"
|
|
122
|
+
(mouseleave)="showDropdown = false"
|
|
125
123
|
>
|
|
126
|
-
<div
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
<div class="ui-form-error-summary__messages">
|
|
142
|
-
@for (err of detail.errors; track $index; let last = $last) {
|
|
143
|
-
<span>{{ err }}@if (!last) {, }</span>
|
|
144
|
-
}
|
|
145
|
-
</div>
|
|
146
|
-
</li>
|
|
147
|
-
}
|
|
148
|
-
</ul>
|
|
124
|
+
<div
|
|
125
|
+
class="ui-form-error-summary__heading"
|
|
126
|
+
(click)="showDropdown = !showDropdown"
|
|
127
|
+
role="button"
|
|
128
|
+
tabindex="0"
|
|
129
|
+
[attr.aria-expanded]="showDropdown"
|
|
130
|
+
[attr.aria-label]="displayCount + ' errori nel form'"
|
|
131
|
+
(keydown.enter)="showDropdown = !showDropdown"
|
|
132
|
+
(keydown.space)="showDropdown = !showDropdown; $event.preventDefault()"
|
|
133
|
+
>
|
|
134
|
+
<lucide-icon name="alert-circle" [size]="20" class="ui-form-error-summary__icon" aria-hidden="true" />
|
|
135
|
+
<p class="ui-form-error-summary__text">
|
|
136
|
+
Sono presenti <strong>{{ displayCount }}</strong>
|
|
137
|
+
{{ displayCount === 1 ? 'errore' : 'errori' }} nel form.
|
|
138
|
+
</p>
|
|
149
139
|
</div>
|
|
140
|
+
|
|
141
|
+
<div
|
|
142
|
+
class="ui-form-error-summary__dropdown"
|
|
143
|
+
[class.ui-form-error-summary__dropdown--visible]="showDropdown"
|
|
144
|
+
role="list"
|
|
145
|
+
aria-label="Elenco errori del form"
|
|
146
|
+
>
|
|
147
|
+
<div class="ui-form-error-summary__dropdown-content">
|
|
148
|
+
<h4 class="ui-form-error-summary__dropdown-title">Dettagli errori:</h4>
|
|
149
|
+
<ul class="ui-form-error-summary__list">
|
|
150
|
+
@for (detail of errors; track detail.fieldKey) {
|
|
151
|
+
<li
|
|
152
|
+
class="ui-form-error-summary__item"
|
|
153
|
+
role="listitem"
|
|
154
|
+
(click)="onFieldClick(detail.fieldKey)"
|
|
155
|
+
tabindex="0"
|
|
156
|
+
(keydown.enter)="onFieldClick(detail.fieldKey)"
|
|
157
|
+
>
|
|
158
|
+
<div class="ui-form-error-summary__field-name">
|
|
159
|
+
<lucide-icon name="arrow-right" [size]="14" class="ui-form-error-summary__arrow" aria-hidden="true" />
|
|
160
|
+
{{ detail.fieldLabel }}
|
|
161
|
+
</div>
|
|
162
|
+
<div class="ui-form-error-summary__messages">
|
|
163
|
+
@for (err of detail.errors; track $index; let last = $last) {
|
|
164
|
+
<span>{{ err }}@if (!last) {, }</span>
|
|
165
|
+
}
|
|
166
|
+
</div>
|
|
167
|
+
</li>
|
|
168
|
+
}
|
|
169
|
+
</ul>
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</div>
|
|
173
|
+
} @else {
|
|
174
|
+
<div class="ui-form-error-summary__panel ui-form-error-summary__panel--valid" role="status" aria-live="polite">
|
|
175
|
+
<lucide-icon name="check-circle" [size]="20" class="ui-form-error-summary__icon-valid" aria-hidden="true" />
|
|
176
|
+
<p class="ui-form-error-summary__text-valid">{{ validMessage }}</p>
|
|
150
177
|
</div>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
`, styles: [".ui-form-error-summary{position:relative
|
|
178
|
+
}
|
|
179
|
+
</div>
|
|
180
|
+
`, styles: [".ui-form-error-summary{position:relative}.ui-form-error-summary--invalid{cursor:pointer}.ui-form-error-summary--valid{cursor:default}.ui-form-error-summary__panel--valid{display:flex;align-items:center;gap:var(--ui-spacing-2, 8px);padding:var(--ui-spacing-2, 8px) 0}.ui-form-error-summary__icon-valid{color:var(--ui-color-success, #16a34a);flex-shrink:0}.ui-form-error-summary__text-valid{margin:0;color:var(--ui-color-success, #15803d);font-size:var(--ui-font-size-sm, 14px);font-family:var(--ui-font-family);line-height:1.4}.ui-form-error-summary__heading{display:flex;align-items:center;gap:var(--ui-spacing-2, 8px);padding:var(--ui-spacing-2, 8px) 0;outline:none}.ui-form-error-summary__heading:focus{outline:none}.ui-form-error-summary__heading:focus-visible{outline:var(--ui-focus-ring-width) solid var(--ui-focus-ring-color);outline-offset:var(--ui-focus-ring-offset)}.ui-form-error-summary__icon{color:var(--ui-color-error, #dc2626);flex-shrink:0}.ui-form-error-summary__text{margin:0;color:var(--ui-color-error, #dc2626);font-size:var(--ui-font-size-sm, 14px);font-family:var(--ui-font-family);line-height:1.4}.ui-form-error-summary__text strong{font-weight:var(--ui-font-weight-semibold, 600)}.ui-form-error-summary__dropdown{position:absolute;bottom:100%;left:0;right:0;min-width:320px;max-height:300px;overflow-y:auto;background:var(--ui-color-surface, #fff);border:1px solid var(--ui-color-border, #e5e7eb);border-radius:var(--ui-radius-lg, 8px);box-shadow:0 -10px 25px -3px #0000001a,0 -4px 6px -2px #0000000d;z-index:1000;margin-bottom:var(--ui-spacing-2, 8px);opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .2s ease-in-out,visibility .2s ease-in-out,transform .2s ease-in-out}.ui-form-error-summary__dropdown--visible{opacity:1;visibility:visible;transform:translateY(0)}.ui-form-error-summary__dropdown-content{padding:var(--ui-spacing-4, 16px)}.ui-form-error-summary__dropdown-title{margin:0 0 var(--ui-spacing-3, 12px) 0;color:var(--ui-color-text, #374151);font-size:var(--ui-font-size-sm, 14px);font-weight:var(--ui-font-weight-semibold, 600);font-family:var(--ui-font-family)}.ui-form-error-summary__list{list-style:none;padding:0;margin:0}.ui-form-error-summary__item{padding:var(--ui-spacing-3, 12px);border-radius:var(--ui-radius-md, 6px);cursor:pointer;transition:background-color .15s ease;border:1px solid transparent;margin-bottom:var(--ui-spacing-2, 8px);outline:none}.ui-form-error-summary__item:focus{outline:none}.ui-form-error-summary__item:focus-visible{outline:var(--ui-focus-ring-width) solid var(--ui-focus-ring-color);outline-offset:var(--ui-focus-ring-offset)}.ui-form-error-summary__item:last-child{margin-bottom:0}.ui-form-error-summary__item:hover{background:var(--ui-color-surface-hover, #f9fafb);border-color:var(--ui-color-border, #e5e7eb)}.ui-form-error-summary__field-name{display:flex;align-items:center;gap:var(--ui-spacing-2, 8px);font-weight:var(--ui-font-weight-semibold, 600);color:var(--ui-color-text, #374151);font-size:var(--ui-font-size-sm, 14px);font-family:var(--ui-font-family);margin-bottom:4px}.ui-form-error-summary__arrow{color:var(--ui-color-text-muted, #6b7280);flex-shrink:0;transition:transform .15s ease}.ui-form-error-summary__item:hover .ui-form-error-summary__arrow{transform:translate(4px)}.ui-form-error-summary__messages{color:var(--ui-color-error, #dc2626);font-size:var(--ui-font-size-xs, 13px);font-family:var(--ui-font-family);line-height:1.4;margin-left:22px}@media (max-width: 768px){.ui-form-error-summary__dropdown{position:fixed;inset:50% 16px auto;transform:translateY(-50%);margin-bottom:0}.ui-form-error-summary__dropdown--visible{transform:translateY(-50%)}}\n"] }]
|
|
154
181
|
}], propDecorators: { errors: [{
|
|
155
182
|
type: Input
|
|
156
183
|
}], totalErrorCount: [{
|
|
157
184
|
type: Input
|
|
185
|
+
}], validMessage: [{
|
|
186
|
+
type: Input
|
|
158
187
|
}], fieldClick: [{
|
|
159
188
|
type: Output
|
|
160
189
|
}] } });
|
|
161
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
190
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1lcnJvci1zdW1tYXJ5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL25nLXVpLXN5c3RlbS9zcmMvbGliL2NvbXBvbmVudHMvZm9ybS1idWlsZGVyL3N1Yi1jb21wb25lbnRzL2Vycm9yLXN1bW1hcnkvZm9ybS1lcnJvci1zdW1tYXJ5LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsWUFBWSxFQUFFLHVCQUF1QixFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ25ILE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDOzs7QUFHckQ7Ozs7Ozs7R0FPRztBQThFSCxNQUFNLE9BQU8sMkJBQTJCO0lBN0V4QztRQThFRSw2Q0FBNkM7UUFDcEMsV0FBTSxHQUF3QixFQUFFLENBQUM7UUFFMUMsaUVBQWlFO1FBQ3hELG9CQUFlLEdBQUcsQ0FBQyxDQUFDO1FBRTdCLGdEQUFnRDtRQUN2QyxpQkFBWSxHQUFHLG1DQUFtQyxDQUFDO1FBRTVELHdFQUF3RTtRQUM5RCxlQUFVLEdBQUcsSUFBSSxZQUFZLEVBQVUsQ0FBQztRQUVsRCxzREFBc0Q7UUFDdEQsaUJBQVksR0FBRyxLQUFLLENBQUM7S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cnJvcmkgbmVsIGZvcm0nXCJcclxuICAgICAgICAgICAgKGtleWRvd24uZW50ZXIpPVwic2hvd0Ryb3Bkb3duID0gIXNob3dEcm9wZG93blwiXHJcbiAgICAgICAgICAgIChrZXlkb3duLnNwYWNlKT1cInNob3dEcm9wZG93biA9ICFzaG93RHJvcGRvd247ICRldmVudC5wcmV2ZW50RGVmYXVsdCgpXCJcclxuICAgICAgICAgID5cclxuICAgICAgICAgICAgPGx1Y2lkZS1pY29uIG5hbWU9XCJhbGVydC1jaXJjbGVcIiBbc2l6ZV09XCIyMFwiIGNsYXNzPVwidWktZm9ybS1lcnJvci1zdW1tYXJ5X19pY29uXCIgYXJpYS1oaWRkZW49XCJ0cnVlXCIgLz5cclxuICAgICAgICAgICAgPHAgY2xhc3M9XCJ1aS1mb3JtLWVycm9yLXN1bW1hcnlfX3RleHRcIj5cclxuICAgICAgICAgICAgICBTb25vIHByZXNlbnRpIDxzdHJvbmc+e3sgZGlzcGxheUNvdW50IH19PC9zdHJvbmc+XHJcbiAgICAgICAgICAgICAge3sgZGlzcGxheUNvdW50ID09PSAxID8gJ2Vycm9yZScgOiAnZXJyb3JpJyB9fSBuZWwgZm9ybS5cclxuICAgICAgICAgICAgPC9wPlxyXG4gICAgICAgICAgPC9kaXY+XHJcblxyXG4gICAgICAgICAgPGRpdlxyXG4gICAgICAgICAgICBjbGFzcz1cInVpLWZvcm0tZXJyb3Itc3VtbWFyeV9fZHJvcGRvd25cIlxyXG4gICAgICAgICAgICBbY2xhc3MudWktZm9ybS1lcnJvci1zdW1tYXJ5X19kcm9wZG93bi0tdmlzaWJsZV09XCJzaG93RHJvcGRvd25cIlxyXG4gICAgICAgICAgICByb2xlPVwibGlzdFwiXHJcbiAgICAgICAgICAgIGFyaWEtbGFiZWw9XCJFbGVuY28gZXJyb3JpIGRlbCBmb3JtXCJcclxuICAgICAgICAgID5cclxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cInVpLWZvcm0tZXJyb3Itc3VtbWFyeV9fZHJvcGRvd24tY29udGVudFwiPlxyXG4gICAgICAgICAgICAgIDxoNCBjbGFzcz1cInVpLWZvcm0tZXJyb3Itc3VtbWFyeV9fZHJvcGRvd24tdGl0bGVcIj5EZXR0YWdsaSBlcnJvcmk6PC9oND5cclxuICAgICAgICAgICAgICA8dWwgY2xhc3M9XCJ1aS1mb3JtLWVycm9yLXN1bW1hcnlfX2xpc3RcIj5cclxuICAgICAgICAgICAgICAgIEBmb3IgKGRldGFpbCBvZiBlcnJvcnM7IHRyYWNrIGRldGFpbC5maWVsZEtleSkge1xyXG4gICAgICAgICAgICAgICAgICA8bGlcclxuICAgICAgICAgICAgICAgICAgICBjbGFzcz1cInVpLWZvcm0tZXJyb3Itc3VtbWFyeV9faXRlbVwiXHJcbiAgICAgICAgICAgICAgICAgICAgcm9sZT1cImxpc3RpdGVtXCJcclxuICAgICAgICAgICAgICAgICAgICAoY2xpY2spPVwib25GaWVsZENsaWNrKGRldGFpbC5maWVsZEtleSlcIlxyXG4gICAgICAgICAgICAgICAgICAgIHRhYmluZGV4PVwiMFwiXHJcbiAgICAgICAgICAgICAgICAgICAgKGtleWRvd24uZW50ZXIpPVwib25GaWVsZENsaWNrKGRldGFpbC5maWVsZEtleSlcIlxyXG4gICAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInVpLWZvcm0tZXJyb3Itc3VtbWFyeV9fZmllbGQtbmFtZVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgPGx1Y2lkZS1pY29uIG5hbWU9XCJhcnJvdy1yaWdodFwiIFtzaXplXT1cIjE0XCIgY2xhc3M9XCJ1aS1mb3JtLWVycm9yLXN1bW1hcnlfX2Fycm93XCIgYXJpYS1oaWRkZW49XCJ0cnVlXCIgLz5cclxuICAgICAgICAgICAgICAgICAgICAgIHt7IGRldGFpbC5maWVsZExhYmVsIH19XHJcbiAgICAgICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cInVpLWZvcm0tZXJyb3Itc3VtbWFyeV9fbWVzc2FnZXNcIj5cclxuICAgICAgICAgICAgICAgICAgICAgIEBmb3IgKGVyciBvZiBkZXRhaWwuZXJyb3JzOyB0cmFjayAkaW5kZXg7IGxldCBsYXN0ID0gJGxhc3QpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4+e3sgZXJyIH19QGlmICghbGFzdCkgeywgfTwvc3Bhbj5cclxuICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgPC9saT5cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICA8L3VsPlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDwvZGl2PlxyXG4gICAgICB9IEBlbHNlIHtcclxuICAgICAgICA8ZGl2IGNsYXNzPVwidWktZm9ybS1lcnJvci1zdW1tYXJ5X19wYW5lbCB1aS1mb3JtLWVycm9yLXN1bW1hcnlfX3BhbmVsLS12YWxpZFwiIHJvbGU9XCJzdGF0dXNcIiBhcmlhLWxpdmU9XCJwb2xpdGVcIj5cclxuICAgICAgICAgIDxsdWNpZGUtaWNvbiBuYW1lPVwiY2hlY2stY2lyY2xlXCIgW3NpemVdPVwiMjBcIiBjbGFzcz1cInVpLWZvcm0tZXJyb3Itc3VtbWFyeV9faWNvbi12YWxpZFwiIGFyaWEtaGlkZGVuPVwidHJ1ZVwiIC8+XHJcbiAgICAgICAgICA8cCBjbGFzcz1cInVpLWZvcm0tZXJyb3Itc3VtbWFyeV9fdGV4dC12YWxpZFwiPnt7IHZhbGlkTWVzc2FnZSB9fTwvcD5cclxuICAgICAgICA8L2Rpdj5cclxuICAgICAgfVxyXG4gICAgPC9kaXY+XHJcbiAgYCxcclxuICBzdHlsZVVybDogJy4vZm9ybS1lcnJvci1zdW1tYX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xpenphcmU6IHVzYSB0b3RhbEVycm9yQ291bnQgc2UgZm9ybml0bywgYWx0cmltZW50aSBjb250YSBkYWkgZGV0dGFnbGkuICovXHJcbiAgZ2V0IGRpc3BsYXlDb3VudCgpOiBudW1iZXIge1xyXG4gICAgcmV0dXJuIHRoaXMudG90YWxFcnJvckNvdW50ID4gMCA/IHRoaXMudG90YWxFcnJvckNvdW50IDogdGhpcy5lcnJvcnMucmVkdWNlKChzdW0sIGQpID0+IHN1bSArIGQuZXJyb3JzLmxlbmd0aCwgMCk7XHJcbiAgfVxyXG5cclxuICAvKiogQGludGVybmFsIEdlc3Rpb25lIGNsaWNrIHN1IGVycm9yZS4gKi9cclxuICBvbkZpZWxkQ2xpY2soZmllbGRLZXk6IHN0cmluZyk6IHZvaWQge1xyXG4gICAgdGhpcy5zaG93RHJvcGRvd24gPSBmYWxzZTtcclxuICAgIHRoaXMuZmllbGRDbGljay5lbWl0KGZpZWxkS2V5KTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, ViewEncapsulation, inject, } from '@angular/core';
|
|
2
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
3
|
+
import { ErrorStateMatcher } from '@angular/material/core';
|
|
4
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
5
|
+
import { MatInputModule } from '@angular/material/input';
|
|
6
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
7
|
+
import { LucideAngularModule } from 'lucide-angular';
|
|
8
|
+
import { UiCurrencyInputDirective } from '../../directives/currency-input.directive';
|
|
9
|
+
import { UiFormErrorStateMatcher } from '../../services/form-error-state.matcher';
|
|
10
|
+
import { UiFormFieldErrorService } from '../../services/form-field-error.service';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
import * as i1 from "@angular/forms";
|
|
13
|
+
import * as i2 from "@angular/material/form-field";
|
|
14
|
+
import * as i3 from "@angular/material/input";
|
|
15
|
+
import * as i4 from "@angular/material/tooltip";
|
|
16
|
+
import * as i5 from "lucide-angular";
|
|
17
|
+
/**
|
|
18
|
+
|
|
19
|
+
* Campo atomico number / currency — stesso rendering del form-builder.
|
|
20
|
+
|
|
21
|
+
*
|
|
22
|
+
|
|
23
|
+
* @selector ui-form-number-field
|
|
24
|
+
|
|
25
|
+
*/
|
|
26
|
+
export class UiFormNumberFieldComponent {
|
|
27
|
+
constructor() {
|
|
28
|
+
this.fieldErrorService = inject(UiFormFieldErrorService);
|
|
29
|
+
this.readonly = false;
|
|
30
|
+
this.errors = null;
|
|
31
|
+
/** Modalità valuta standalone (equivalente a `field.metadata.type === 'currency'`). */
|
|
32
|
+
this.currencyMode = false;
|
|
33
|
+
this.currencySymbol = 'EUR';
|
|
34
|
+
this.decimalPlaces = 2;
|
|
35
|
+
this.blurred = new EventEmitter();
|
|
36
|
+
}
|
|
37
|
+
get effectiveLabel() {
|
|
38
|
+
return this.field?.label ?? this.label ?? '';
|
|
39
|
+
}
|
|
40
|
+
get effectivePlaceholder() {
|
|
41
|
+
return this.field?.placeholder ?? this.placeholder ?? '';
|
|
42
|
+
}
|
|
43
|
+
get isReadonly() {
|
|
44
|
+
return this.readonly || this.field?.readonly === true;
|
|
45
|
+
}
|
|
46
|
+
get isCurrency() {
|
|
47
|
+
if (this.field?.metadata?.['type'] === 'currency')
|
|
48
|
+
return true;
|
|
49
|
+
return this.currencyMode;
|
|
50
|
+
}
|
|
51
|
+
get effectiveCurrencySymbol() {
|
|
52
|
+
return this.field?.metadata?.['currency'] || this.currencySymbol;
|
|
53
|
+
}
|
|
54
|
+
get effectiveDecimalPlaces() {
|
|
55
|
+
const fromField = this.field?.metadata?.['decimals'];
|
|
56
|
+
return fromField != null ? Number(fromField) : this.decimalPlaces;
|
|
57
|
+
}
|
|
58
|
+
get effectiveRules() {
|
|
59
|
+
return this.field?.validation ?? this.validationRules ?? [];
|
|
60
|
+
}
|
|
61
|
+
get fieldControl() {
|
|
62
|
+
if (!this.field || !this.formGroup)
|
|
63
|
+
return null;
|
|
64
|
+
const c = this.formGroup.get(this.field.key);
|
|
65
|
+
return c instanceof FormControl ? c : null;
|
|
66
|
+
}
|
|
67
|
+
resolvedErrors(control) {
|
|
68
|
+
if (this.errors != null)
|
|
69
|
+
return this.errors;
|
|
70
|
+
return this.fieldErrorService.getFieldErrors(control, this.effectiveRules);
|
|
71
|
+
}
|
|
72
|
+
onBlur() {
|
|
73
|
+
this.blurred.emit();
|
|
74
|
+
}
|
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UiFormNumberFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
76
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: UiFormNumberFieldComponent, isStandalone: true, selector: "ui-form-number-field", inputs: { field: "field", formGroup: "formGroup", readonly: "readonly", errors: "errors", control: "control", label: "label", placeholder: "placeholder", validationRules: "validationRules", currencyMode: "currencyMode", currencySymbol: "currencySymbol", decimalPlaces: "decimalPlaces" }, outputs: { blurred: "blurred" }, providers: [{ provide: ErrorStateMatcher, useClass: UiFormErrorStateMatcher }], ngImport: i0, template: "@if (field && formGroup) {\r\n <div [formGroup]=\"formGroup\" class=\"ui-fb-field-ctx\">\r\n <mat-form-field appearance=\"outline\" class=\"ui-form-builder__full-width\" subscriptSizing=\"dynamic\">\r\n <mat-label>{{ effectiveLabel }}</mat-label>\r\n @if (isCurrency) {\r\n <input\r\n matInput\r\n type=\"text\"\r\n [formControlName]=\"field.key\"\r\n [placeholder]=\"effectivePlaceholder\"\r\n [readonly]=\"isReadonly\"\r\n uiCurrencyInput\r\n [currencySymbol]=\"effectiveCurrencySymbol\"\r\n [decimalPlaces]=\"effectiveDecimalPlaces\"\r\n (blur)=\"onBlur()\"\r\n />\r\n } @else {\r\n <input\r\n matInput\r\n type=\"number\"\r\n [formControlName]=\"field.key\"\r\n [placeholder]=\"effectivePlaceholder\"\r\n [readonly]=\"isReadonly\"\r\n (blur)=\"onBlur()\"\r\n />\r\n }\r\n @if (field.iconTooltip) {\r\n <button\r\n matSuffix\r\n mat-icon-button\r\n type=\"button\"\r\n [matTooltip]=\"field.iconTooltip.text\"\r\n [attr.aria-label]=\"field.iconTooltip.text\"\r\n >\r\n <lucide-icon [name]=\"field.iconTooltip.icon || 'info'\" [size]=\"18\" />\r\n </button>\r\n }\r\n <mat-error>\r\n @for (err of resolvedErrors(fieldControl); track $index) {\r\n <div>{{ err }}</div>\r\n }\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n} @else if (control) {\r\n <div class=\"ui-form-field-atom\">\r\n <mat-form-field appearance=\"outline\" class=\"ui-form-builder__full-width\" subscriptSizing=\"dynamic\">\r\n @if (effectiveLabel) {\r\n <mat-label>{{ effectiveLabel }}</mat-label>\r\n }\r\n @if (isCurrency) {\r\n <input\r\n matInput\r\n type=\"text\"\r\n [formControl]=\"control\"\r\n [placeholder]=\"effectivePlaceholder\"\r\n uiCurrencyInput\r\n [currencySymbol]=\"effectiveCurrencySymbol\"\r\n [decimalPlaces]=\"effectiveDecimalPlaces\"\r\n (blur)=\"onBlur()\"\r\n />\r\n } @else {\r\n <input\r\n matInput\r\n type=\"number\"\r\n [formControl]=\"control\"\r\n [placeholder]=\"effectivePlaceholder\"\r\n (blur)=\"onBlur()\"\r\n />\r\n }\r\n <mat-error>\r\n @for (err of resolvedErrors(control); track $index) {\r\n <div>{{ err }}</div>\r\n }\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n}\r\n", styles: ["ui-form-text-field,ui-form-textarea-field,ui-form-number-field,ui-form-select-field,ui-form-radio-field{display:block;width:100%}.ui-form-field-atom{display:block;width:100%}.ui-form-field-atom mat-error,ui-form-text-field mat-error,ui-form-textarea-field mat-error,ui-form-number-field mat-error,ui-form-select-field mat-error{font-size:var(--ui-font-size-xs, 12px);display:flex;flex-direction:column;gap:2px;transform:translateY(-5px)}.ui-form-field-atom .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,.ui-form-field-atom .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,.ui-form-field-atom .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing,ui-form-text-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,ui-form-text-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,ui-form-text-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing,ui-form-textarea-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,ui-form-textarea-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,ui-form-textarea-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing,ui-form-number-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,ui-form-number-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,ui-form-number-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing,ui-form-select-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,ui-form-select-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,ui-form-select-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ui-color-error, #dc2626)!important}.ui-form-field-atom .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label,ui-form-text-field .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label,ui-form-textarea-field .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label,ui-form-number-field .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label,ui-form-select-field .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label{color:var(--ui-color-error, #dc2626)}.ui-form-field-atom mat-hint.ui-form-builder__char-count,ui-form-text-field mat-hint.ui-form-builder__char-count,ui-form-textarea-field mat-hint.ui-form-builder__char-count{font-size:var(--ui-font-size-xs);color:var(--ui-color-text-muted);padding:var(--ui-spacing-2)}.ui-form-field-atom mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--warn,ui-form-text-field mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--warn,ui-form-textarea-field mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--warn{color:var(--ui-color-warn, #d97706)}.ui-form-field-atom mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--error,ui-form-text-field mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--error,ui-form-textarea-field mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--error{color:var(--ui-color-error, #dc2626);font-weight:var(--ui-font-weight-semibold)}.ui-form-field-atom .ui-form-builder__textarea-wrapper,ui-form-textarea-field .ui-form-builder__textarea-wrapper{position:relative}ui-form-radio-field .ui-form-builder__field-label,.ui-form-field-atom.ui-form-builder__radio-wrapper .ui-form-builder__field-label{display:block;font-size:var(--ui-font-size-sm);font-weight:var(--ui-font-weight-medium);color:var(--ui-color-text);margin-bottom:var(--ui-spacing-4)}ui-form-radio-field .ui-form-builder__required,.ui-form-field-atom.ui-form-builder__radio-wrapper .ui-form-builder__required{color:var(--ui-color-error, #dc2626);margin-left:2px}ui-form-radio-field .ui-form-builder__field-error,.ui-form-field-atom.ui-form-builder__radio-wrapper .ui-form-builder__field-error{margin-top:var(--ui-spacing-1);font-size:var(--ui-font-size-xs);color:var(--ui-color-error, #dc2626);display:flex;flex-direction:column;gap:2px}ui-form-radio-field mat-radio-group,.ui-form-field-atom.ui-form-builder__radio-wrapper mat-radio-group{display:flex;flex-wrap:wrap;gap:var(--ui-spacing-3)}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i5.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "directive", type: UiCurrencyInputDirective, selector: "[uiCurrencyInput]", inputs: ["currencySymbol", "decimalPlaces"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
77
|
+
}
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: UiFormNumberFieldComponent, decorators: [{
|
|
79
|
+
type: Component,
|
|
80
|
+
args: [{ selector: 'ui-form-number-field', standalone: true, imports: [
|
|
81
|
+
ReactiveFormsModule,
|
|
82
|
+
MatFormFieldModule,
|
|
83
|
+
MatInputModule,
|
|
84
|
+
MatTooltipModule,
|
|
85
|
+
LucideAngularModule,
|
|
86
|
+
UiCurrencyInputDirective,
|
|
87
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: ErrorStateMatcher, useClass: UiFormErrorStateMatcher }], template: "@if (field && formGroup) {\r\n <div [formGroup]=\"formGroup\" class=\"ui-fb-field-ctx\">\r\n <mat-form-field appearance=\"outline\" class=\"ui-form-builder__full-width\" subscriptSizing=\"dynamic\">\r\n <mat-label>{{ effectiveLabel }}</mat-label>\r\n @if (isCurrency) {\r\n <input\r\n matInput\r\n type=\"text\"\r\n [formControlName]=\"field.key\"\r\n [placeholder]=\"effectivePlaceholder\"\r\n [readonly]=\"isReadonly\"\r\n uiCurrencyInput\r\n [currencySymbol]=\"effectiveCurrencySymbol\"\r\n [decimalPlaces]=\"effectiveDecimalPlaces\"\r\n (blur)=\"onBlur()\"\r\n />\r\n } @else {\r\n <input\r\n matInput\r\n type=\"number\"\r\n [formControlName]=\"field.key\"\r\n [placeholder]=\"effectivePlaceholder\"\r\n [readonly]=\"isReadonly\"\r\n (blur)=\"onBlur()\"\r\n />\r\n }\r\n @if (field.iconTooltip) {\r\n <button\r\n matSuffix\r\n mat-icon-button\r\n type=\"button\"\r\n [matTooltip]=\"field.iconTooltip.text\"\r\n [attr.aria-label]=\"field.iconTooltip.text\"\r\n >\r\n <lucide-icon [name]=\"field.iconTooltip.icon || 'info'\" [size]=\"18\" />\r\n </button>\r\n }\r\n <mat-error>\r\n @for (err of resolvedErrors(fieldControl); track $index) {\r\n <div>{{ err }}</div>\r\n }\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n} @else if (control) {\r\n <div class=\"ui-form-field-atom\">\r\n <mat-form-field appearance=\"outline\" class=\"ui-form-builder__full-width\" subscriptSizing=\"dynamic\">\r\n @if (effectiveLabel) {\r\n <mat-label>{{ effectiveLabel }}</mat-label>\r\n }\r\n @if (isCurrency) {\r\n <input\r\n matInput\r\n type=\"text\"\r\n [formControl]=\"control\"\r\n [placeholder]=\"effectivePlaceholder\"\r\n uiCurrencyInput\r\n [currencySymbol]=\"effectiveCurrencySymbol\"\r\n [decimalPlaces]=\"effectiveDecimalPlaces\"\r\n (blur)=\"onBlur()\"\r\n />\r\n } @else {\r\n <input\r\n matInput\r\n type=\"number\"\r\n [formControl]=\"control\"\r\n [placeholder]=\"effectivePlaceholder\"\r\n (blur)=\"onBlur()\"\r\n />\r\n }\r\n <mat-error>\r\n @for (err of resolvedErrors(control); track $index) {\r\n <div>{{ err }}</div>\r\n }\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n}\r\n", styles: ["ui-form-text-field,ui-form-textarea-field,ui-form-number-field,ui-form-select-field,ui-form-radio-field{display:block;width:100%}.ui-form-field-atom{display:block;width:100%}.ui-form-field-atom mat-error,ui-form-text-field mat-error,ui-form-textarea-field mat-error,ui-form-number-field mat-error,ui-form-select-field mat-error{font-size:var(--ui-font-size-xs, 12px);display:flex;flex-direction:column;gap:2px;transform:translateY(-5px)}.ui-form-field-atom .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,.ui-form-field-atom .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,.ui-form-field-atom .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing,ui-form-text-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,ui-form-text-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,ui-form-text-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing,ui-form-textarea-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,ui-form-textarea-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,ui-form-textarea-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing,ui-form-number-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,ui-form-number-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,ui-form-number-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing,ui-form-select-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__leading,ui-form-select-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__notch,ui-form-select-field .mat-mdc-form-field.mat-form-field-invalid .mdc-notched-outline__trailing{border-color:var(--ui-color-error, #dc2626)!important}.ui-form-field-atom .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label,ui-form-text-field .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label,ui-form-textarea-field .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label,ui-form-number-field .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label,ui-form-select-field .mat-mdc-form-field.mat-form-field-invalid .mat-mdc-floating-label{color:var(--ui-color-error, #dc2626)}.ui-form-field-atom mat-hint.ui-form-builder__char-count,ui-form-text-field mat-hint.ui-form-builder__char-count,ui-form-textarea-field mat-hint.ui-form-builder__char-count{font-size:var(--ui-font-size-xs);color:var(--ui-color-text-muted);padding:var(--ui-spacing-2)}.ui-form-field-atom mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--warn,ui-form-text-field mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--warn,ui-form-textarea-field mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--warn{color:var(--ui-color-warn, #d97706)}.ui-form-field-atom mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--error,ui-form-text-field mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--error,ui-form-textarea-field mat-hint.ui-form-builder__char-count.ui-form-builder__char-count--error{color:var(--ui-color-error, #dc2626);font-weight:var(--ui-font-weight-semibold)}.ui-form-field-atom .ui-form-builder__textarea-wrapper,ui-form-textarea-field .ui-form-builder__textarea-wrapper{position:relative}ui-form-radio-field .ui-form-builder__field-label,.ui-form-field-atom.ui-form-builder__radio-wrapper .ui-form-builder__field-label{display:block;font-size:var(--ui-font-size-sm);font-weight:var(--ui-font-weight-medium);color:var(--ui-color-text);margin-bottom:var(--ui-spacing-4)}ui-form-radio-field .ui-form-builder__required,.ui-form-field-atom.ui-form-builder__radio-wrapper .ui-form-builder__required{color:var(--ui-color-error, #dc2626);margin-left:2px}ui-form-radio-field .ui-form-builder__field-error,.ui-form-field-atom.ui-form-builder__radio-wrapper .ui-form-builder__field-error{margin-top:var(--ui-spacing-1);font-size:var(--ui-font-size-xs);color:var(--ui-color-error, #dc2626);display:flex;flex-direction:column;gap:2px}ui-form-radio-field mat-radio-group,.ui-form-field-atom.ui-form-builder__radio-wrapper mat-radio-group{display:flex;flex-wrap:wrap;gap:var(--ui-spacing-3)}\n"] }]
|
|
88
|
+
}], propDecorators: { field: [{
|
|
89
|
+
type: Input
|
|
90
|
+
}], formGroup: [{
|
|
91
|
+
type: Input
|
|
92
|
+
}], readonly: [{
|
|
93
|
+
type: Input
|
|
94
|
+
}], errors: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], control: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], label: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], placeholder: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], validationRules: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], currencyMode: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], currencySymbol: [{
|
|
107
|
+
type: Input
|
|
108
|
+
}], decimalPlaces: [{
|
|
109
|
+
type: Input
|
|
110
|
+
}], blurred: [{
|
|
111
|
+
type: Output
|
|
112
|
+
}] } });
|
|
113
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1udW1iZXItZmllbGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvbmctdWktc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9mb3JtLWJ1aWxkZXIvc3ViLWNvbXBvbmVudHMvZm9ybS1maWVsZHMvZm9ybS1udW1iZXItZmllbGQuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvbmctdWktc3lzdGVtL3NyYy9saWIvY29tcG9uZW50cy9mb3JtLWJ1aWxkZXIvc3ViLWNvbXBvbmVudHMvZm9ybS1maWVsZHMvZm9ybS1udW1iZXItZmllbGQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLHVCQUF1QixFQUV2QixTQUFTLEVBRVQsWUFBWSxFQUVaLEtBQUssRUFFTCxNQUFNLEVBRU4saUJBQWlCLEVBRWpCLE1BQU0sR0FFUCxNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsV0FBVyxFQUFhLG1CQUFtQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFN0UsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFM0QsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0sOEJBQThCLENBQUM7QUF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XT1cImVmZmVjdGl2ZURlY2ltYWxQbGFjZXNcIlxyXG4gICAgICAgICAgKGJsdXIpPVwib25CbHVyKClcIlxyXG4gICAgICAgIC8+XHJcbiAgICAgIH0gQGVsc2Uge1xyXG4gICAgICAgIDxpbnB1dFxyXG4gICAgICAgICAgbWF0SW5wdXRcclxuICAgICAgICAgIHR5cGU9XCJudW1iZXJcIlxyXG4gICAgICAgICAgW2Zvcm1Db250cm9sTmFtZV09XCJmaWVsZC5rZXlcIlxyXG4gICAgICAgICAgW3BsYWNlaG9sZGVyXT1cImVmZmVjdGl2ZVBsYWNlaG9sZGVyXCJcclxuICAgICAgICAgIFtyZWFkb25seV09XCJpc1JlYWRvbmx5XCJcclxuICAgICAgICAgIChibHVyKT1cIm9uQmx1cigpXCJcclxuICAgICAgICAvPlxyXG4gICAgICB9XHJcbiAgICAgIEBpZiAoZmllbGQuaWNvblRvb2x0aXApIHtcclxuICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICBtYXRTdWZmaXhcclxuICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgdHlwZT1cImJ1dHRvblwiXHJcbiAgICAgICAgICBbbWF0VG9vbHRpcF09XCJmaWVsZC5pY29uVG9vbHRpcC50ZXh0XCJcclxuICAgICAgICAgIFthdHRyLmFyaWEtbGFiZWxdPVwiZmllbGQuaWNvblRvb2x0aXAudGV4dFwiXHJcbiAgICAgICAgPlxyXG4gICAgICAgICAgPGx1Y2lkZS1pY29uIFtuYW1lXT1cImZpZWxkLmljb25Ub29sdGlwLmljb24gfHwgJ2luZm8nXCIgW3NpemVdPVwiMThcIiAvPlxyXG4gICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICB9XHJcbiAgICAgIDxtYXQtZXJyb3I+XHJcbiAgICAgICAgQGZvciAoZXJyIG9mIHJlc29sdmVkRXJyb3JzKGZpZWxkQ29udHJvbCk7IHRyYWNrICRpbmRleCkge1xyXG4gICAgICAgICAgPGRpdj57eyBlcn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tQ29udHJvbF09XCJjb250cm9sXCJcclxuICAgICAgICAgIFtwbGFjZWhvbGRlcl09XCJlZmZlY3RpdmVQbGFjZWhvbGRlclwiXHJcbiAgICAgICAgICAoYmx1cik9XCJvbkJsdXIoKVwiXHJcbiAgICAgICAgLz5cclxuICAgICAgfVxyXG4gICAgICA8bWF0LWVycm9yPlxyXG4gICAgICAgIEBmb3IgKGVyciBvZiByZXNvbHZlZEVycm9ycyhjb250cm9sKTsgdHJhY2sgJGluZGV4KSB7XHJcbiAgICAgICAgICA8ZGl2Pnt7IGVyciB9fTwvZGl2PlxyXG4gICAgICAgIH1cclxuICAgICAgPC9tYXQtZXJyb3I+XHJcbiAgICA8L21hdC1mb3JtLWZpZWxkPlxyXG4gIDwvZGl2PlxyXG59XHJcbiJdfQ==
|