@lucca-front/ng 18.3.3 → 19.0.0
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/core-select/api/api.directive.d.ts +1 -1
- package/core-select/input/select-input.component.d.ts +1 -1
- package/dialog/dialog-routing/dialog-routing.component.d.ts +1 -1
- package/dropdown/item/dropdown-item.directive.d.ts +1 -1
- package/dropdown/item/dropdown-item.module.d.ts +4 -1
- package/dropdown/panel/dropdown-panel.component.d.ts +1 -1
- package/dropdown/panel/dropdown-panel.module.d.ts +4 -2
- package/dropdown/trigger/dropdown-trigger.directive.d.ts +1 -1
- package/dropdown/trigger/dropdown-trigger.module.d.ts +4 -2
- package/fesm2022/lucca-front-ng-a11y.mjs +3 -3
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-animations.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +48 -48
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-button.mjs +3 -3
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +21 -21
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-comment.mjs +9 -9
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs +9 -9
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +9 -9
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +6 -6
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-user.mjs +15 -15
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +36 -36
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +16 -16
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +48 -48
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date2.mjs +14 -14
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +28 -28
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog-testing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +39 -31
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +39 -35
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +6 -6
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +49 -49
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +6 -6
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-formly.mjs +81 -79
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +10 -10
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +45 -62
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-icon.mjs +4 -4
- package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +3 -3
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +21 -21
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +22 -22
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +44 -44
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +3 -3
- package/fesm2022/lucca-front-ng-new-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number-format.mjs +7 -7
- package/fesm2022/lucca-front-ng-number-format.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number.mjs +7 -7
- package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +3 -3
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +154 -154
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +3 -3
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +31 -26
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +9 -9
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popup-employee.mjs +41 -26
- package/fesm2022/lucca-front-ng-popup-employee.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popup.mjs +10 -10
- package/fesm2022/lucca-front-ng-popup.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-qualification.mjs +15 -15
- package/fesm2022/lucca-front-ng-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-safe-content.mjs +13 -12
- package/fesm2022/lucca-front-ng-safe-content.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scroll.mjs +7 -7
- package/fesm2022/lucca-front-ng-scroll.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +14 -14
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-sidepanel.mjs +7 -7
- package/fesm2022/lucca-front-ng-sidepanel.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +14 -14
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +9 -9
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tag.mjs +3 -3
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +18 -17
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-title.mjs +10 -10
- package/fesm2022/lucca-front-ng-title.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-toast.mjs +12 -12
- package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +23 -23
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +94 -85
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/forms/number-input/number-input.component.d.ts +10 -13
- package/modal/modal-panel.component.d.ts +1 -1
- package/option/picker/option-picker-advanced.component.d.ts +1 -1
- package/option/picker/option-picker.component.d.ts +1 -1
- package/option/picker/tree-option-picker-advanced.component.d.ts +1 -1
- package/option/picker/tree-option-picker.component.d.ts +1 -1
- package/package.json +38 -149
- package/popup-employee/popup-employee.translate.d.ts +2 -0
- package/popup-employee/translations.d.ts +16 -0
- package/safe-content/safe-content.module.d.ts +3 -0
- package/safe-content/safe-html.pipe.d.ts +0 -1
- package/schematics/action-icon/index.js +3 -2
- package/schematics/action-icon/migration.js +2 -3
- package/schematics/empty-state-title/index.js +2 -1
- package/schematics/lib/angular-template.js +6 -7
- package/schematics/lib/css-mapper.js +4 -4
- package/schematics/lib/file-update.js +2 -3
- package/schematics/lib/html-ast.js +4 -4
- package/schematics/lib/local-deps/installer.js +1 -2
- package/schematics/lib/local-deps/package-lock.json +30 -30
- package/schematics/lib/local-deps/package.json +2 -2
- package/schematics/lib/local-deps/postcss-selector-parser.js +1 -0
- package/schematics/lib/local-deps/postcss-value-parser.js +1 -0
- package/schematics/lib/migration-test.js +4 -5
- package/schematics/lib/schematics.js +1 -2
- package/schematics/lib/scss-ast.js +10 -11
- package/schematics/lib/typescript-ast.js +1 -2
- package/schematics/new-icons/index.js +4 -3
- package/schematics/new-icons/migration.js +3 -4
- package/schematics/ng-add/index.js +1 -2
- package/schematics/ng-add/tasks.js +4 -5
- package/schematics/palettes/index.js +1 -0
- package/schematics/tokens-spacing/index.js +1 -0
- package/select/input/select-input.component.d.ts +1 -1
- package/src/components/cdk/_overlay.scss +4 -0
- package/time/core/base-picker.component.d.ts +1 -1
- package/time/core/date.utils.d.ts +4 -4
- package/time/core/misc.utils.d.ts +1 -1
- package/user/picture/user-picture.component.d.ts +1 -1
- package/user/picture/user-picture.module.d.ts +4 -3
- package/user/tile/user-tile.component.d.ts +1 -1
- package/user/tile/user-tile.module.d.ts +4 -4
- package/esm2022/a11y/lucca-front-ng-a11y.mjs +0 -5
- package/esm2022/a11y/public-api.mjs +0 -3
- package/esm2022/a11y/skip-links/skip-links.component.mjs +0 -24
- package/esm2022/a11y/skip-links/skip-links.translate.mjs +0 -9
- package/esm2022/a11y/skip-links/translations.mjs +0 -51
- package/esm2022/animations/animation.factory.mjs +0 -15
- package/esm2022/animations/fade.animation.mjs +0 -8
- package/esm2022/animations/lucca-front-ng-animations.mjs +0 -5
- package/esm2022/animations/public-api.mjs +0 -5
- package/esm2022/animations/scale.animation.mjs +0 -126
- package/esm2022/animations/slide.animation.mjs +0 -110
- package/esm2022/api/api.model.mjs +0 -2
- package/esm2022/api/api.module.mjs +0 -16
- package/esm2022/api/lucca-front-ng-api.mjs +0 -5
- package/esm2022/api/public-api.mjs +0 -5
- package/esm2022/api/select/api-select.module.mjs +0 -19
- package/esm2022/api/select/feeder/api-feeder.component.mjs +0 -93
- package/esm2022/api/select/feeder/api-feeder.model.mjs +0 -11
- package/esm2022/api/select/feeder/api-feeder.module.mjs +0 -16
- package/esm2022/api/select/feeder/index.mjs +0 -4
- package/esm2022/api/select/index.mjs +0 -6
- package/esm2022/api/select/input/api-select-input.component.mjs +0 -52
- package/esm2022/api/select/input/api-select-input.module.mjs +0 -16
- package/esm2022/api/select/input/index.mjs +0 -3
- package/esm2022/api/select/pager/api-pager.component.mjs +0 -99
- package/esm2022/api/select/pager/api-pager.model.mjs +0 -56
- package/esm2022/api/select/pager/api-pager.module.mjs +0 -16
- package/esm2022/api/select/pager/index.mjs +0 -4
- package/esm2022/api/select/searcher/api-searcher.component.mjs +0 -235
- package/esm2022/api/select/searcher/api-searcher.model.mjs +0 -67
- package/esm2022/api/select/searcher/api-searcher.module.mjs +0 -16
- package/esm2022/api/select/searcher/index.mjs +0 -4
- package/esm2022/api/service/api-hybrid.service.mjs +0 -65
- package/esm2022/api/service/api-service.model.mjs +0 -3
- package/esm2022/api/service/api-v3.service.mjs +0 -72
- package/esm2022/api/service/api-v4.service.mjs +0 -71
- package/esm2022/api/service/index.mjs +0 -5
- package/esm2022/button/button.component.mjs +0 -90
- package/esm2022/button/lucca-front-ng-button.mjs +0 -5
- package/esm2022/button/public-api.mjs +0 -2
- package/esm2022/callout/callout/callout.component.mjs +0 -88
- package/esm2022/callout/callout-disclosure/callout-disclosure.component.mjs +0 -59
- package/esm2022/callout/callout-feedback-item/callout-feedback-item.component.mjs +0 -25
- package/esm2022/callout/callout-feedback-list/callout-feedback-list.component.mjs +0 -22
- package/esm2022/callout/callout-icon.pipe.mjs +0 -23
- package/esm2022/callout/callout-popover/callout-popover.component.mjs +0 -182
- package/esm2022/callout/callout-state.mjs +0 -16
- package/esm2022/callout/callout.translate.mjs +0 -7
- package/esm2022/callout/callout.utils.mjs +0 -20
- package/esm2022/callout/lucca-front-ng-callout.mjs +0 -5
- package/esm2022/callout/public-api.mjs +0 -7
- package/esm2022/callout/translations.mjs +0 -27
- package/esm2022/comment/comment/comment.component.mjs +0 -54
- package/esm2022/comment/comment-block/comment-block.component.mjs +0 -60
- package/esm2022/comment/comment-chat/comment-chat.component.mjs +0 -22
- package/esm2022/comment/lucca-front-ng-comment.mjs +0 -5
- package/esm2022/comment/public-api.mjs +0 -4
- package/esm2022/comment/token.mjs +0 -4
- package/esm2022/core/date/date-adapter.class.mjs +0 -54
- package/esm2022/core/date/date-adapter.interface.mjs +0 -2
- package/esm2022/core/date/date-granularity.enum.mjs +0 -8
- package/esm2022/core/date/index.mjs +0 -6
- package/esm2022/core/date/native/index.mjs +0 -3
- package/esm2022/core/date/native/native-date.adapter.mjs +0 -235
- package/esm2022/core/date/native/native-date.option.mjs +0 -6
- package/esm2022/core/date/string/index.mjs +0 -2
- package/esm2022/core/date/string/string-date.adapter.mjs +0 -83
- package/esm2022/core/event/index.mjs +0 -4
- package/esm2022/core/event/on-close.subscriber.mjs +0 -3
- package/esm2022/core/event/on-open.subscriber.mjs +0 -3
- package/esm2022/core/event/on-scroll-bottom.subscriber.mjs +0 -3
- package/esm2022/core/group/group.interface.mjs +0 -2
- package/esm2022/core/group/index.mjs +0 -2
- package/esm2022/core/id/id.generator.mjs +0 -9
- package/esm2022/core/id/index.mjs +0 -2
- package/esm2022/core/lucca-front-ng-core.mjs +0 -5
- package/esm2022/core/portal/index.mjs +0 -3
- package/esm2022/core/portal/portal-content.mjs +0 -3
- package/esm2022/core/portal/portal.directive.mjs +0 -107
- package/esm2022/core/public-api.mjs +0 -11
- package/esm2022/core/signal.mjs +0 -22
- package/esm2022/core/tools/class.mjs +0 -75
- package/esm2022/core/translate/index.mjs +0 -4
- package/esm2022/core/translate/intl-params.pipe.mjs +0 -20
- package/esm2022/core/translate/intl.model.mjs +0 -14
- package/esm2022/core/translate/translation.model.mjs +0 -2
- package/esm2022/core/tree/index.mjs +0 -2
- package/esm2022/core/tree/tree.model.mjs +0 -2
- package/esm2022/core/type/enum.mjs +0 -2
- package/esm2022/core/type/index.mjs +0 -3
- package/esm2022/core/type/style.mjs +0 -2
- package/esm2022/core-select/api/api-v3.directive.mjs +0 -81
- package/esm2022/core-select/api/api-v4.directive.mjs +0 -70
- package/esm2022/core-select/api/api.directive.mjs +0 -53
- package/esm2022/core-select/api/lucca-front-ng-core-select-api.mjs +0 -5
- package/esm2022/core-select/api/public-api.mjs +0 -4
- package/esm2022/core-select/displayer/displayer.directive.mjs +0 -26
- package/esm2022/core-select/displayer/index.mjs +0 -2
- package/esm2022/core-select/establishment/establishment-grouping.component.mjs +0 -21
- package/esm2022/core-select/establishment/establishment-grouping.service.mjs +0 -22
- package/esm2022/core-select/establishment/establishments.directive.mjs +0 -96
- package/esm2022/core-select/establishment/lucca-front-ng-core-select-establishment.mjs +0 -5
- package/esm2022/core-select/establishment/models.mjs +0 -2
- package/esm2022/core-select/establishment/public-api.mjs +0 -4
- package/esm2022/core-select/input/index.mjs +0 -4
- package/esm2022/core-select/input/select-input.component.mjs +0 -312
- package/esm2022/core-select/input/select-input.models.mjs +0 -37
- package/esm2022/core-select/input/total-count.directive.mjs +0 -33
- package/esm2022/core-select/job-qualification/job-qualification-grouping.component.mjs +0 -21
- package/esm2022/core-select/job-qualification/job-qualifications.directive.mjs +0 -78
- package/esm2022/core-select/job-qualification/lucca-front-ng-core-select-job-qualification.mjs +0 -5
- package/esm2022/core-select/job-qualification/models.mjs +0 -2
- package/esm2022/core-select/job-qualification/public-api.mjs +0 -3
- package/esm2022/core-select/lucca-front-ng-core-select.mjs +0 -5
- package/esm2022/core-select/option/default-option.component.mjs +0 -22
- package/esm2022/core-select/option/disabled.directive.mjs +0 -26
- package/esm2022/core-select/option/group.directive.mjs +0 -29
- package/esm2022/core-select/option/group.pipe.mjs +0 -43
- package/esm2022/core-select/option/index.mjs +0 -9
- package/esm2022/core-select/option/option-outlet.directive.mjs +0 -73
- package/esm2022/core-select/option/option.component.mjs +0 -89
- package/esm2022/core-select/option/option.directive.mjs +0 -26
- package/esm2022/core-select/option/option.token.mjs +0 -22
- package/esm2022/core-select/panel/index.mjs +0 -5
- package/esm2022/core-select/panel/key-manager.mjs +0 -79
- package/esm2022/core-select/panel/panel-header-template.directive.mjs +0 -25
- package/esm2022/core-select/panel/panel.models.mjs +0 -22
- package/esm2022/core-select/panel/panel.utils.mjs +0 -15
- package/esm2022/core-select/public-api.mjs +0 -8
- package/esm2022/core-select/select.model.mjs +0 -6
- package/esm2022/core-select/select.translate.mjs +0 -7
- package/esm2022/core-select/select.utils.mjs +0 -2
- package/esm2022/core-select/translations.mjs +0 -27
- package/esm2022/core-select/user/former-employees.component.mjs +0 -34
- package/esm2022/core-select/user/lucca-front-ng-core-select-user.mjs +0 -5
- package/esm2022/core-select/user/me.provider.mjs +0 -9
- package/esm2022/core-select/user/public-api.mjs +0 -5
- package/esm2022/core-select/user/translations.mjs +0 -35
- package/esm2022/core-select/user/user-displayer.component.mjs +0 -32
- package/esm2022/core-select/user/user-homonym.service.mjs +0 -63
- package/esm2022/core-select/user/user-option.component.mjs +0 -46
- package/esm2022/core-select/user/user-option.model.mjs +0 -2
- package/esm2022/core-select/user/user.translate.mjs +0 -7
- package/esm2022/core-select/user/users.directive.mjs +0 -149
- package/esm2022/date/adapter/date-adapter.module.mjs +0 -16
- package/esm2022/date/adapter/date-adapter.pipe.mjs +0 -25
- package/esm2022/date/adapter/index.mjs +0 -3
- package/esm2022/date/calendar/calendar-input.component.mjs +0 -332
- package/esm2022/date/calendar/calendar-input.module.mjs +0 -16
- package/esm2022/date/calendar/calendar-item.class.mjs +0 -43
- package/esm2022/date/calendar/calendar-item.factory.mjs +0 -37
- package/esm2022/date/calendar/calendar-item.interface.mjs +0 -2
- package/esm2022/date/calendar/index.mjs +0 -3
- package/esm2022/date/date.module.mjs +0 -20
- package/esm2022/date/humanize/humanize.formatter.mjs +0 -14
- package/esm2022/date/humanize/humanize.model.mjs +0 -2
- package/esm2022/date/humanize/humanize.pipe.mjs +0 -21
- package/esm2022/date/humanize/humanize.utils.mjs +0 -79
- package/esm2022/date/humanize/index.mjs +0 -5
- package/esm2022/date/input/date-input.directive.mjs +0 -137
- package/esm2022/date/input/date-input.module.mjs +0 -16
- package/esm2022/date/input/date-input.translate.mjs +0 -7
- package/esm2022/date/input/index.mjs +0 -4
- package/esm2022/date/input/translations.mjs +0 -43
- package/esm2022/date/lucca-front-ng-date.mjs +0 -5
- package/esm2022/date/picker/date-picker.component.mjs +0 -109
- package/esm2022/date/picker/date-picker.module.mjs +0 -16
- package/esm2022/date/picker/index.mjs +0 -3
- package/esm2022/date/public-api.mjs +0 -8
- package/esm2022/date/select/date-select-input.component.mjs +0 -106
- package/esm2022/date/select/date-select-input.module.mjs +0 -16
- package/esm2022/date/select/date-select-input.translate.mjs +0 -7
- package/esm2022/date/select/index.mjs +0 -4
- package/esm2022/date/select/translations.mjs +0 -43
- package/esm2022/date2/calendar.token.mjs +0 -22
- package/esm2022/date2/calendar2/calendar-cell-info.mjs +0 -2
- package/esm2022/date2/calendar2/calendar-mode.mjs +0 -2
- package/esm2022/date2/calendar2/calendar2-cell.directive.mjs +0 -111
- package/esm2022/date2/calendar2/calendar2.component.mjs +0 -279
- package/esm2022/date2/calendar2/calendar2.tokens.mjs +0 -4
- package/esm2022/date2/calendar2/cell-status.mjs +0 -2
- package/esm2022/date2/calendar2/date-range.mjs +0 -2
- package/esm2022/date2/date-format.mjs +0 -16
- package/esm2022/date2/date-input/date-input.component.mjs +0 -281
- package/esm2022/date2/date2.translate.mjs +0 -7
- package/esm2022/date2/lucca-front-ng-date2.mjs +0 -5
- package/esm2022/date2/public-api.mjs +0 -5
- package/esm2022/date2/repeat-times.directive.mjs +0 -27
- package/esm2022/date2/translations.mjs +0 -17
- package/esm2022/date2/utils.mjs +0 -24
- package/esm2022/department/department.model.mjs +0 -2
- package/esm2022/department/department.module.mjs +0 -16
- package/esm2022/department/lucca-front-ng-department.mjs +0 -5
- package/esm2022/department/public-api.mjs +0 -5
- package/esm2022/department/select/department-select.module.mjs +0 -17
- package/esm2022/department/select/feeder/department-feeder.component.mjs +0 -82
- package/esm2022/department/select/feeder/department-feeder.module.mjs +0 -16
- package/esm2022/department/select/feeder/index.mjs +0 -3
- package/esm2022/department/select/index.mjs +0 -4
- package/esm2022/department/select/input/department-select-input.component.mjs +0 -68
- package/esm2022/department/select/input/department-select-input.module.mjs +0 -16
- package/esm2022/department/select/input/department-select-input.translate.mjs +0 -7
- package/esm2022/department/select/input/index.mjs +0 -4
- package/esm2022/department/select/input/translations.mjs +0 -27
- package/esm2022/department/service/department-service.model.mjs +0 -4
- package/esm2022/department/service/department-v3.service.mjs +0 -46
- package/esm2022/department/service/department-v4.service.mjs +0 -46
- package/esm2022/department/service/index.mjs +0 -4
- package/esm2022/dialog/dialog/dialog.component.mjs +0 -31
- package/esm2022/dialog/dialog-content/dialog-content.component.mjs +0 -20
- package/esm2022/dialog/dialog-footer/dialog-footer.component.mjs +0 -13
- package/esm2022/dialog/dialog-header/dialog-header.component.mjs +0 -45
- package/esm2022/dialog/dialog-header/dialog-header.translate.mjs +0 -7
- package/esm2022/dialog/dialog-header/translations.mjs +0 -27
- package/esm2022/dialog/dialog-routing/dialog-routing.component.mjs +0 -100
- package/esm2022/dialog/dialog-routing/dialog-routing.models.mjs +0 -2
- package/esm2022/dialog/dialog-routing/dialog-routing.utils.mjs +0 -46
- package/esm2022/dialog/dialog-routing/index.mjs +0 -4
- package/esm2022/dialog/dialog.providers.mjs +0 -10
- package/esm2022/dialog/dialog.service.mjs +0 -75
- package/esm2022/dialog/directives/dialog-close.directive.mjs +0 -22
- package/esm2022/dialog/directives/dialog-dismiss.directive.mjs +0 -22
- package/esm2022/dialog/directives/dialog-open.directive.mjs +0 -35
- package/esm2022/dialog/lucca-front-ng-dialog.mjs +0 -5
- package/esm2022/dialog/model/dialog-config.mjs +0 -4
- package/esm2022/dialog/model/dialog-ref.mjs +0 -49
- package/esm2022/dialog/model/index.mjs +0 -4
- package/esm2022/dialog/model/injectors.mjs +0 -10
- package/esm2022/dialog/public-api.mjs +0 -13
- package/esm2022/dialog/testing/lucca-front-ng-dialog-testing.mjs +0 -5
- package/esm2022/dialog/testing/providers.mjs +0 -8
- package/esm2022/dialog/testing/public-api.mjs +0 -2
- package/esm2022/dropdown/dropdown.module.mjs +0 -18
- package/esm2022/dropdown/item/dropdown-item.directive.mjs +0 -55
- package/esm2022/dropdown/item/dropdown-item.model.mjs +0 -3
- package/esm2022/dropdown/item/dropdown-item.module.mjs +0 -17
- package/esm2022/dropdown/item/index.mjs +0 -4
- package/esm2022/dropdown/lucca-front-ng-dropdown.mjs +0 -5
- package/esm2022/dropdown/panel/dropdown-panel.component.mjs +0 -111
- package/esm2022/dropdown/panel/dropdown-panel.model.mjs +0 -2
- package/esm2022/dropdown/panel/dropdown-panel.module.mjs +0 -18
- package/esm2022/dropdown/panel/index.mjs +0 -4
- package/esm2022/dropdown/public-api.mjs +0 -5
- package/esm2022/dropdown/trigger/dropdown-trigger.directive.mjs +0 -121
- package/esm2022/dropdown/trigger/dropdown-trigger.module.mjs +0 -18
- package/esm2022/dropdown/trigger/index.mjs +0 -3
- package/esm2022/empty-state/empty-state-page/empty-state-page.component.mjs +0 -62
- package/esm2022/empty-state/empty-state-section/empty-state-section.component.mjs +0 -43
- package/esm2022/empty-state/lucca-front-ng-empty-state.mjs +0 -5
- package/esm2022/empty-state/public-api.mjs +0 -3
- package/esm2022/establishment/establishment.model.mjs +0 -2
- package/esm2022/establishment/establishment.module.mjs +0 -19
- package/esm2022/establishment/lucca-front-ng-establishment.mjs +0 -5
- package/esm2022/establishment/public-api.mjs +0 -5
- package/esm2022/establishment/select/establishment-select.module.mjs +0 -23
- package/esm2022/establishment/select/establishment-select.token.mjs +0 -4
- package/esm2022/establishment/select/for-legal-units/for-legal-units.directive.mjs +0 -47
- package/esm2022/establishment/select/for-legal-units/for-legal-units.module.mjs +0 -16
- package/esm2022/establishment/select/for-legal-units/index.mjs +0 -3
- package/esm2022/establishment/select/index.mjs +0 -7
- package/esm2022/establishment/select/input/establishment-select-input.component.mjs +0 -126
- package/esm2022/establishment/select/input/establishment-select-input.module.mjs +0 -16
- package/esm2022/establishment/select/input/establishment-select-input.translate.mjs +0 -7
- package/esm2022/establishment/select/input/index.mjs +0 -4
- package/esm2022/establishment/select/input/translations.mjs +0 -27
- package/esm2022/establishment/select/legal-unit-selector/index.mjs +0 -3
- package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.directive.mjs +0 -103
- package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.module.mjs +0 -16
- package/esm2022/establishment/select/searcher/establishment-searcher.component.mjs +0 -146
- package/esm2022/establishment/select/searcher/establishment-searcher.module.mjs +0 -16
- package/esm2022/establishment/select/searcher/index.mjs +0 -3
- package/esm2022/establishment/select/select-all/establishment-select-all.component.mjs +0 -94
- package/esm2022/establishment/select/select-all/establishment-select-all.module.mjs +0 -16
- package/esm2022/establishment/select/select-all/index.mjs +0 -3
- package/esm2022/establishment/service/establishment-service.model.mjs +0 -4
- package/esm2022/establishment/service/establishment.service.mjs +0 -37
- package/esm2022/establishment/service/index.mjs +0 -5
- package/esm2022/establishment/service/legal-unit-service.model.mjs +0 -4
- package/esm2022/establishment/service/legal-unit.service.mjs +0 -37
- package/esm2022/form-field/form-field-size.mjs +0 -2
- package/esm2022/form-field/form-field.component.mjs +0 -248
- package/esm2022/form-field/form-field.token.mjs +0 -3
- package/esm2022/form-field/form-field.translate.mjs +0 -7
- package/esm2022/form-field/input.directive.mjs +0 -36
- package/esm2022/form-field/lucca-front-ng-form-field.mjs +0 -5
- package/esm2022/form-field/public-api.mjs +0 -6
- package/esm2022/form-field/translations.mjs +0 -27
- package/esm2022/formly/formly.config.mjs +0 -79
- package/esm2022/formly/formly.module.mjs +0 -108
- package/esm2022/formly/formly.utils.mjs +0 -10
- package/esm2022/formly/lucca-front-ng-formly.mjs +0 -5
- package/esm2022/formly/public-api.mjs +0 -5
- package/esm2022/formly/types/api.mjs +0 -37
- package/esm2022/formly/types/checkbox.mjs +0 -22
- package/esm2022/formly/types/date.mjs +0 -22
- package/esm2022/formly/types/department.mjs +0 -22
- package/esm2022/formly/types/establishment.mjs +0 -22
- package/esm2022/formly/types/index.mjs +0 -12
- package/esm2022/formly/types/input.mjs +0 -26
- package/esm2022/formly/types/qualification.mjs +0 -22
- package/esm2022/formly/types/radios.mjs +0 -25
- package/esm2022/formly/types/select.mjs +0 -28
- package/esm2022/formly/types/textarea.mjs +0 -22
- package/esm2022/formly/types/user.mjs +0 -22
- package/esm2022/formly/wrappers/checkbox-layout.mjs +0 -30
- package/esm2022/formly/wrappers/error.mjs +0 -57
- package/esm2022/formly/wrappers/helper.mjs +0 -19
- package/esm2022/formly/wrappers/icon.mjs +0 -19
- package/esm2022/formly/wrappers/index.mjs +0 -8
- package/esm2022/formly/wrappers/radiosfield-layout.mjs +0 -30
- package/esm2022/formly/wrappers/suffix.mjs +0 -19
- package/esm2022/formly/wrappers/textfield-layout.mjs +0 -39
- package/esm2022/forms/checkbox-input/checkbox-input.component.mjs +0 -34
- package/esm2022/forms/form-field-id.directive.mjs +0 -52
- package/esm2022/forms/inject-ng-control.mjs +0 -25
- package/esm2022/forms/lucca-front-ng-forms.mjs +0 -5
- package/esm2022/forms/multilanguage-input/model/multilanguage-translation.mjs +0 -2
- package/esm2022/forms/multilanguage-input/multilanguage-input.component.mjs +0 -95
- package/esm2022/forms/multilanguage-input/multilanguage-input.translate.mjs +0 -6
- package/esm2022/forms/multilanguage-input/translations.mjs +0 -13
- package/esm2022/forms/multilanguage-input/validators.mjs +0 -7
- package/esm2022/forms/noop-value-accessor.directive.mjs +0 -35
- package/esm2022/forms/number-format-input/number-format-input.component.mjs +0 -92
- package/esm2022/forms/number-format-input/number-format-input.translate.mjs +0 -7
- package/esm2022/forms/number-format-input/translations.mjs +0 -27
- package/esm2022/forms/number-input/number-input.component.mjs +0 -55
- package/esm2022/forms/number-input/number-input.translate.mjs +0 -7
- package/esm2022/forms/number-input/translations.mjs +0 -27
- package/esm2022/forms/phone-number-input/formatter.mjs +0 -7
- package/esm2022/forms/phone-number-input/lucca-front-ng-forms-phone-number-input.mjs +0 -5
- package/esm2022/forms/phone-number-input/phone-number-format.pipe.mjs +0 -18
- package/esm2022/forms/phone-number-input/phone-number-input.component.mjs +0 -186
- package/esm2022/forms/phone-number-input/public-api.mjs +0 -6
- package/esm2022/forms/phone-number-input/types.mjs +0 -2
- package/esm2022/forms/phone-number-input/validators.mjs +0 -17
- package/esm2022/forms/public-api.mjs +0 -17
- package/esm2022/forms/radio-group-input/radio/radio.component.mjs +0 -54
- package/esm2022/forms/radio-group-input/radio-group-input.component.mjs +0 -45
- package/esm2022/forms/radio-group-input/radio-group-token.mjs +0 -3
- package/esm2022/forms/switch-input/switch-input.component.mjs +0 -26
- package/esm2022/forms/text-input/text-input-addon.mjs +0 -2
- package/esm2022/forms/text-input/text-input.component.mjs +0 -82
- package/esm2022/forms/text-input/text-input.translate.mjs +0 -7
- package/esm2022/forms/text-input/translations.mjs +0 -35
- package/esm2022/forms/textarea-input/textarea-input.component.mjs +0 -53
- package/esm2022/icon/icon.component.mjs +0 -29
- package/esm2022/icon/lucca-front-ng-icon.mjs +0 -5
- package/esm2022/icon/public-api.mjs +0 -2
- package/esm2022/inline-message/inline-message-state.mjs +0 -2
- package/esm2022/inline-message/inline-message.component.mjs +0 -33
- package/esm2022/inline-message/lucca-front-ng-inline-message.mjs +0 -5
- package/esm2022/inline-message/public-api.mjs +0 -3
- package/esm2022/input/clearer/clearer.component.mjs +0 -35
- package/esm2022/input/clearer/clearer.model.mjs +0 -3
- package/esm2022/input/clearer/clearer.module.mjs +0 -16
- package/esm2022/input/clearer/index.mjs +0 -4
- package/esm2022/input/displayer/index.mjs +0 -4
- package/esm2022/input/displayer/input-displayer.directive.mjs +0 -59
- package/esm2022/input/displayer/input-displayer.model.mjs +0 -6
- package/esm2022/input/displayer/input-displayer.module.mjs +0 -16
- package/esm2022/input/input.directive.mjs +0 -42
- package/esm2022/input/input.model.mjs +0 -54
- package/esm2022/input/input.module.mjs +0 -18
- package/esm2022/input/lucca-front-ng-input.mjs +0 -5
- package/esm2022/input/public-api.mjs +0 -6
- package/esm2022/lucca-front-ng.mjs +0 -5
- package/esm2022/modal/dialog-adapter/dialog-content-adapter/dialog-content-adapter.component.mjs +0 -100
- package/esm2022/modal/dialog-adapter/dialog-ref-adapter.mjs +0 -19
- package/esm2022/modal/lucca-front-ng-modal.mjs +0 -5
- package/esm2022/modal/modal-config.default.mjs +0 -17
- package/esm2022/modal/modal-config.model.mjs +0 -5
- package/esm2022/modal/modal-panel.component.mjs +0 -123
- package/esm2022/modal/modal-ref.factory.mjs +0 -60
- package/esm2022/modal/modal-ref.model.mjs +0 -11
- package/esm2022/modal/modal.model.mjs +0 -2
- package/esm2022/modal/modal.module.mjs +0 -28
- package/esm2022/modal/modal.service.mjs +0 -42
- package/esm2022/modal/modal.token.mjs +0 -9
- package/esm2022/modal/modal.translate.mjs +0 -7
- package/esm2022/modal/modal.utils.mjs +0 -9
- package/esm2022/modal/public-api.mjs +0 -12
- package/esm2022/modal/translations.mjs +0 -43
- package/esm2022/multi-select/displayer/counter-displayer/counter-displayer.component.mjs +0 -78
- package/esm2022/multi-select/displayer/default-displayer.component.mjs +0 -95
- package/esm2022/multi-select/displayer/default-displayer.translate.mjs +0 -7
- package/esm2022/multi-select/displayer/displayer-input.directive.mjs +0 -101
- package/esm2022/multi-select/displayer/displayer.directive.mjs +0 -26
- package/esm2022/multi-select/displayer/index.mjs +0 -6
- package/esm2022/multi-select/displayer/translations.mjs +0 -51
- package/esm2022/multi-select/input/index.mjs +0 -3
- package/esm2022/multi-select/input/panel-ref.factory.mjs +0 -119
- package/esm2022/multi-select/input/panel.model.mjs +0 -4
- package/esm2022/multi-select/input/select-all/index.mjs +0 -2
- package/esm2022/multi-select/input/select-all/multi-select-all-displayer.component.mjs +0 -99
- package/esm2022/multi-select/input/select-all/multi-select-all-header.component.mjs +0 -36
- package/esm2022/multi-select/input/select-all/select-all.models.mjs +0 -3
- package/esm2022/multi-select/input/select-all/with-select-all.directive.mjs +0 -160
- package/esm2022/multi-select/input/select-input.component.mjs +0 -111
- package/esm2022/multi-select/lucca-front-ng-multi-select.mjs +0 -5
- package/esm2022/multi-select/panel/index.mjs +0 -2
- package/esm2022/multi-select/panel/option-group-context.pipe.mjs +0 -24
- package/esm2022/multi-select/panel/option-selected.pipe.mjs +0 -19
- package/esm2022/multi-select/panel/panel.component.mjs +0 -109
- package/esm2022/multi-select/panel/selected-chip.directive.mjs +0 -26
- package/esm2022/multi-select/public-api.mjs +0 -5
- package/esm2022/multi-select/select.model.mjs +0 -23
- package/esm2022/multi-select/select.translate.mjs +0 -7
- package/esm2022/multi-select/select.utils.mjs +0 -32
- package/esm2022/multi-select/translations.mjs +0 -107
- package/esm2022/new-badge/lucca-front-ng-new-badge.mjs +0 -5
- package/esm2022/new-badge/new-badge.component.mjs +0 -20
- package/esm2022/new-badge/public-api.mjs +0 -2
- package/esm2022/number/lucca-front-ng-number.mjs +0 -5
- package/esm2022/number/number.module.mjs +0 -16
- package/esm2022/number/number.pipe.mjs +0 -36
- package/esm2022/number/public-api.mjs +0 -3
- package/esm2022/number-format/lucca-front-ng-number-format.mjs +0 -5
- package/esm2022/number-format/number-format.directive.mjs +0 -91
- package/esm2022/number-format/number-format.mjs +0 -175
- package/esm2022/number-format/number-format.models.mjs +0 -7
- package/esm2022/number-format/number-format.pipe.mjs +0 -18
- package/esm2022/number-format/public-api.mjs +0 -5
- package/esm2022/numeric-badge/lucca-front-ng-numeric-badge.mjs +0 -5
- package/esm2022/numeric-badge/numeric-badge.component.mjs +0 -43
- package/esm2022/numeric-badge/public-api.mjs +0 -2
- package/esm2022/option/item/index.mjs +0 -8
- package/esm2022/option/item/option-item.component.mjs +0 -76
- package/esm2022/option/item/option-item.model.mjs +0 -3
- package/esm2022/option/item/option-item.module.mjs +0 -16
- package/esm2022/option/item/translations.mjs +0 -35
- package/esm2022/option/item/tree-option-item.component.mjs +0 -136
- package/esm2022/option/item/tree-option-item.model.mjs +0 -7
- package/esm2022/option/item/tree-option-item.module.mjs +0 -16
- package/esm2022/option/item/tree-option-item.translate.mjs +0 -7
- package/esm2022/option/lucca-front-ng-option.mjs +0 -5
- package/esm2022/option/operator/feeder/index.mjs +0 -5
- package/esm2022/option/operator/feeder/option-feeder.component.mjs +0 -33
- package/esm2022/option/operator/feeder/option-feeder.module.mjs +0 -16
- package/esm2022/option/operator/feeder/tree-option-feeder.component.mjs +0 -33
- package/esm2022/option/operator/feeder/tree-option-feeder.module.mjs +0 -16
- package/esm2022/option/operator/for-groups/for-groups.directive.mjs +0 -89
- package/esm2022/option/operator/for-groups/for-groups.module.mjs +0 -16
- package/esm2022/option/operator/for-groups/index.mjs +0 -3
- package/esm2022/option/operator/for-options/for-options.directive.mjs +0 -50
- package/esm2022/option/operator/for-options/for-options.module.mjs +0 -16
- package/esm2022/option/operator/for-options/for-tree-options.directive.mjs +0 -29
- package/esm2022/option/operator/for-options/for-tree-options.module.mjs +0 -16
- package/esm2022/option/operator/for-options/index.mjs +0 -5
- package/esm2022/option/operator/index.mjs +0 -10
- package/esm2022/option/operator/option-operator.model.mjs +0 -3
- package/esm2022/option/operator/option-operator.module.mjs +0 -20
- package/esm2022/option/operator/pager/index.mjs +0 -5
- package/esm2022/option/operator/pager/option-pager.component.mjs +0 -53
- package/esm2022/option/operator/pager/option-pager.module.mjs +0 -16
- package/esm2022/option/operator/pager/tree-option-pager.component.mjs +0 -71
- package/esm2022/option/operator/pager/tree-option-pager.module.mjs +0 -16
- package/esm2022/option/operator/searcher/index.mjs +0 -5
- package/esm2022/option/operator/searcher/option-searcher.component.mjs +0 -66
- package/esm2022/option/operator/searcher/option-searcher.module.mjs +0 -16
- package/esm2022/option/operator/searcher/tree-option-searcher.component.mjs +0 -83
- package/esm2022/option/operator/searcher/tree-option-searcher.module.mjs +0 -16
- package/esm2022/option/operator/tree-option-operator.model.mjs +0 -4
- package/esm2022/option/operator/tree-option-operator.module.mjs +0 -19
- package/esm2022/option/option.module.mjs +0 -63
- package/esm2022/option/picker/index.mjs +0 -9
- package/esm2022/option/picker/option-picker-advanced.component.mjs +0 -150
- package/esm2022/option/picker/option-picker.component.mjs +0 -319
- package/esm2022/option/picker/option-picker.model.mjs +0 -69
- package/esm2022/option/picker/option-picker.module.mjs +0 -18
- package/esm2022/option/picker/tree-option-picker-advanced.component.mjs +0 -140
- package/esm2022/option/picker/tree-option-picker.component.mjs +0 -173
- package/esm2022/option/picker/tree-option-picker.model.mjs +0 -4
- package/esm2022/option/picker/tree-option-picker.module.mjs +0 -21
- package/esm2022/option/placeholder/index.mjs +0 -4
- package/esm2022/option/placeholder/option-placeholder.component.mjs +0 -23
- package/esm2022/option/placeholder/option-placeholder.module.mjs +0 -16
- package/esm2022/option/placeholder/option-placeholder.translate.mjs +0 -7
- package/esm2022/option/placeholder/translations.mjs +0 -35
- package/esm2022/option/public-api.mjs +0 -8
- package/esm2022/option/selector/all/index.mjs +0 -6
- package/esm2022/option/selector/all/select-all.component.mjs +0 -64
- package/esm2022/option/selector/all/select-all.module.mjs +0 -16
- package/esm2022/option/selector/all/select-all.translate.mjs +0 -7
- package/esm2022/option/selector/all/translations.mjs +0 -35
- package/esm2022/option/selector/all/tree-select-all.component.mjs +0 -67
- package/esm2022/option/selector/all/tree-select-all.module.mjs +0 -16
- package/esm2022/option/selector/index.mjs +0 -6
- package/esm2022/option/selector/option-selector.model.mjs +0 -3
- package/esm2022/option/selector/option-selector.module.mjs +0 -16
- package/esm2022/option/selector/tree-option-selector.model.mjs +0 -4
- package/esm2022/option/selector/tree-option-selector.module.mjs +0 -16
- package/esm2022/option/tree-option.module.mjs +0 -19
- package/esm2022/picker/input-picker.model.mjs +0 -4
- package/esm2022/picker/lucca-front-ng-picker.mjs +0 -5
- package/esm2022/picker/public-api.mjs +0 -2
- package/esm2022/plg-push/lucca-front-ng-plg-push.mjs +0 -5
- package/esm2022/plg-push/plg-push.component.mjs +0 -17
- package/esm2022/plg-push/public-api.mjs +0 -2
- package/esm2022/popover/animation/index.mjs +0 -2
- package/esm2022/popover/animation/popover.animation.mjs +0 -16
- package/esm2022/popover/lucca-front-ng-popover.mjs +0 -5
- package/esm2022/popover/panel/index.mjs +0 -4
- package/esm2022/popover/panel/popover-panel.component.mjs +0 -126
- package/esm2022/popover/panel/popover-panel.model.mjs +0 -120
- package/esm2022/popover/panel/popover-panel.module.mjs +0 -16
- package/esm2022/popover/popover.module.mjs +0 -18
- package/esm2022/popover/public-api.mjs +0 -6
- package/esm2022/popover/target/index.mjs +0 -4
- package/esm2022/popover/target/popover-target.directive.mjs +0 -53
- package/esm2022/popover/target/popover-target.model.mjs +0 -65
- package/esm2022/popover/target/popover-target.module.mjs +0 -16
- package/esm2022/popover/trigger/index.mjs +0 -4
- package/esm2022/popover/trigger/popover-trigger.directive.mjs +0 -186
- package/esm2022/popover/trigger/popover-trigger.model.mjs +0 -470
- package/esm2022/popover/trigger/popover-trigger.module.mjs +0 -17
- package/esm2022/popover2/content/popover-content/popover-content.component.mjs +0 -78
- package/esm2022/popover2/lucca-front-ng-popover2.mjs +0 -5
- package/esm2022/popover2/popover-focus-trap.mjs +0 -24
- package/esm2022/popover2/popover-tokens.mjs +0 -3
- package/esm2022/popover2/popover.directive.mjs +0 -257
- package/esm2022/popover2/popover.providers.mjs +0 -6
- package/esm2022/popover2/popover.translate.mjs +0 -7
- package/esm2022/popover2/popover2.translate.mjs +0 -19
- package/esm2022/popover2/public-api.mjs +0 -4
- package/esm2022/popover2/translations.mjs +0 -27
- package/esm2022/popup/lucca-front-ng-popup.mjs +0 -5
- package/esm2022/popup/popup-config.default.mjs +0 -9
- package/esm2022/popup/popup-config.model.mjs +0 -2
- package/esm2022/popup/popup-ref.factory.mjs +0 -28
- package/esm2022/popup/popup-ref.model.mjs +0 -139
- package/esm2022/popup/popup.module.mjs +0 -21
- package/esm2022/popup/popup.service.mjs +0 -21
- package/esm2022/popup/popup.token.mjs +0 -8
- package/esm2022/popup/public-api.mjs +0 -8
- package/esm2022/popup-employee/card/panel/user-popover-panel.component.mjs +0 -153
- package/esm2022/popup-employee/card/panel/user-popover-panel.model.mjs +0 -2
- package/esm2022/popup-employee/card/pipe/inject-parameter.pipe.mjs +0 -18
- package/esm2022/popup-employee/card/pipe/is-future.pipe.mjs +0 -32
- package/esm2022/popup-employee/card/pipe/leave-ends-display.pipe.mjs +0 -44
- package/esm2022/popup-employee/card/trigger/user-popover-trigger.directive.mjs +0 -178
- package/esm2022/popup-employee/lucca-front-ng-popup-employee.mjs +0 -5
- package/esm2022/popup-employee/popup-employee.translate.mjs +0 -7
- package/esm2022/popup-employee/public-api.mjs +0 -5
- package/esm2022/popup-employee/service/user-popover-service.model.mjs +0 -2
- package/esm2022/popup-employee/service/user-popover.store.mjs +0 -59
- package/esm2022/popup-employee/translations.mjs +0 -107
- package/esm2022/popup-employee/user-popover.model.mjs +0 -2
- package/esm2022/popup-employee/user-popover.providers.mjs +0 -14
- package/esm2022/public_api.mjs +0 -2
- package/esm2022/qualification/lucca-front-ng-qualification.mjs +0 -5
- package/esm2022/qualification/public-api.mjs +0 -4
- package/esm2022/qualification/qualification.model.mjs +0 -2
- package/esm2022/qualification/qualification.module.mjs +0 -19
- package/esm2022/qualification/select/index.mjs +0 -3
- package/esm2022/qualification/select/input/index.mjs +0 -4
- package/esm2022/qualification/select/input/qualification-select-input.component.mjs +0 -60
- package/esm2022/qualification/select/input/qualification-select-input.module.mjs +0 -19
- package/esm2022/qualification/select/input/qualification-select-input.translate.mjs +0 -7
- package/esm2022/qualification/select/input/translations.mjs +0 -27
- package/esm2022/qualification/select/qualification-select.module.mjs +0 -19
- package/esm2022/safe-content/lucca-front-ng-safe-content.mjs +0 -5
- package/esm2022/safe-content/public-api.mjs +0 -4
- package/esm2022/safe-content/safe-content.module.mjs +0 -18
- package/esm2022/safe-content/safe-external-svg.pipe.mjs +0 -42
- package/esm2022/safe-content/safe-html.pipe.mjs +0 -19
- package/esm2022/scroll/lucca-front-ng-scroll.mjs +0 -5
- package/esm2022/scroll/public-api.mjs +0 -4
- package/esm2022/scroll/scroll.directive.mjs +0 -77
- package/esm2022/scroll/scroll.model.mjs +0 -2
- package/esm2022/scroll/scroll.module.mjs +0 -16
- package/esm2022/select/input/index.mjs +0 -4
- package/esm2022/select/input/select-input.component.mjs +0 -249
- package/esm2022/select/input/select-input.model.mjs +0 -179
- package/esm2022/select/input/select-input.module.mjs +0 -19
- package/esm2022/select/lucca-front-ng-select.mjs +0 -5
- package/esm2022/select/public-api.mjs +0 -3
- package/esm2022/select/select.module.mjs +0 -19
- package/esm2022/sidepanel/lucca-front-ng-sidepanel.mjs +0 -5
- package/esm2022/sidepanel/public-api.mjs +0 -4
- package/esm2022/sidepanel/sidepanel.model.mjs +0 -32
- package/esm2022/sidepanel/sidepanel.module.mjs +0 -20
- package/esm2022/sidepanel/sidepanel.service.mjs +0 -25
- package/esm2022/simple-select/api/api-v3.directive.mjs +0 -6
- package/esm2022/simple-select/api/api-v4.directive.mjs +0 -6
- package/esm2022/simple-select/api/api.directive.mjs +0 -6
- package/esm2022/simple-select/api/lucca-front-ng-simple-select-api.mjs +0 -5
- package/esm2022/simple-select/api/public-api.mjs +0 -4
- package/esm2022/simple-select/input/index.mjs +0 -2
- package/esm2022/simple-select/input/panel-ref.factory.mjs +0 -106
- package/esm2022/simple-select/input/select-input.component.mjs +0 -60
- package/esm2022/simple-select/lucca-front-ng-simple-select.mjs +0 -5
- package/esm2022/simple-select/panel/index.mjs +0 -2
- package/esm2022/simple-select/panel/option-selected.pipe.mjs +0 -17
- package/esm2022/simple-select/panel/panel.component.mjs +0 -70
- package/esm2022/simple-select/public-api.mjs +0 -4
- package/esm2022/simple-select/select.model.mjs +0 -3
- package/esm2022/simple-select/select.translate.mjs +0 -7
- package/esm2022/simple-select/translations.mjs +0 -59
- package/esm2022/skeleton/lucca-front-ng-skeleton.mjs +0 -5
- package/esm2022/skeleton/public-api.mjs +0 -4
- package/esm2022/skeleton/skeleton-button/skeleton-button.component.mjs +0 -17
- package/esm2022/skeleton/skeleton-field/skeleton-field.component.mjs +0 -17
- package/esm2022/skeleton/skeleton-header/skeleton-header.component.mjs +0 -17
- package/esm2022/tag/lucca-front-ng-tag.mjs +0 -5
- package/esm2022/tag/public-api.mjs +0 -2
- package/esm2022/tag/tag.component.mjs +0 -61
- package/esm2022/time/core/base-picker.component.mjs +0 -47
- package/esm2022/time/core/date-primitives.mjs +0 -2
- package/esm2022/time/core/date.utils.mjs +0 -54
- package/esm2022/time/core/duration.utils.mjs +0 -55
- package/esm2022/time/core/math.utils.mjs +0 -17
- package/esm2022/time/core/misc.utils.mjs +0 -3
- package/esm2022/time/core/repeat-on-hold.directive.mjs +0 -73
- package/esm2022/time/core/time-picker-part.component.mjs +0 -148
- package/esm2022/time/duration-picker/duration-picker.component.mjs +0 -197
- package/esm2022/time/duration-picker/duration-picker.model.mjs +0 -2
- package/esm2022/time/duration-picker/duration-picker.translate.mjs +0 -7
- package/esm2022/time/duration-picker/translations.mjs +0 -43
- package/esm2022/time/lucca-front-ng-time.mjs +0 -5
- package/esm2022/time/public-api.mjs +0 -5
- package/esm2022/time/time-picker/time-picker.component.mjs +0 -230
- package/esm2022/time/time-picker/time-picker.model.mjs +0 -3
- package/esm2022/time/time-picker/time-picker.translate.mjs +0 -7
- package/esm2022/time/time-picker/translations.mjs +0 -43
- package/esm2022/title/lucca-front-ng-title.mjs +0 -5
- package/esm2022/title/public-api.mjs +0 -6
- package/esm2022/title/title-translate.service.mjs +0 -3
- package/esm2022/title/title.model.mjs +0 -2
- package/esm2022/title/title.module.mjs +0 -20
- package/esm2022/title/title.service.mjs +0 -55
- package/esm2022/title/title.strategy.mjs +0 -60
- package/esm2022/toast/lucca-front-ng-toast.mjs +0 -5
- package/esm2022/toast/public-api.mjs +0 -9
- package/esm2022/toast/toasts.component.mjs +0 -62
- package/esm2022/toast/toasts.model.mjs +0 -2
- package/esm2022/toast/toasts.module.mjs +0 -16
- package/esm2022/toast/toasts.service.mjs +0 -37
- package/esm2022/toast/toasts.translate.mjs +0 -7
- package/esm2022/toast/translations.mjs +0 -27
- package/esm2022/tooltip/animation/index.mjs +0 -2
- package/esm2022/tooltip/animation/tooltip.animation.mjs +0 -16
- package/esm2022/tooltip/lucca-front-ng-tooltip.mjs +0 -5
- package/esm2022/tooltip/panel/index.mjs +0 -3
- package/esm2022/tooltip/panel/tooltip-panel.component.mjs +0 -44
- package/esm2022/tooltip/panel/tooltip-panel.module.mjs +0 -16
- package/esm2022/tooltip/public-api.mjs +0 -5
- package/esm2022/tooltip/tooltip.module.mjs +0 -17
- package/esm2022/tooltip/trigger/ellipsis.ruler.mjs +0 -81
- package/esm2022/tooltip/trigger/index.mjs +0 -3
- package/esm2022/tooltip/trigger/tooltip-trigger.directive.mjs +0 -310
- package/esm2022/tooltip/trigger/tooltip-trigger.module.mjs +0 -17
- package/esm2022/user/display/display-format.model.mjs +0 -25
- package/esm2022/user/display/index.mjs +0 -4
- package/esm2022/user/display/user-display.module.mjs +0 -17
- package/esm2022/user/display/user-display.pipe.mjs +0 -72
- package/esm2022/user/lucca-front-ng-user.mjs +0 -5
- package/esm2022/user/picture/index.mjs +0 -3
- package/esm2022/user/picture/user-picture.component.mjs +0 -85
- package/esm2022/user/picture/user-picture.module.mjs +0 -19
- package/esm2022/user/public-api.mjs +0 -8
- package/esm2022/user/select/homonyms/index.mjs +0 -4
- package/esm2022/user/select/homonyms/user-homonyms.component.mjs +0 -72
- package/esm2022/user/select/homonyms/user-homonyms.module.mjs +0 -16
- package/esm2022/user/select/homonyms/user-homonyms.service.mjs +0 -53
- package/esm2022/user/select/index.mjs +0 -6
- package/esm2022/user/select/input/index.mjs +0 -4
- package/esm2022/user/select/input/translations.mjs +0 -35
- package/esm2022/user/select/input/user-select-input.component.mjs +0 -89
- package/esm2022/user/select/input/user-select-input.module.mjs +0 -19
- package/esm2022/user/select/input/user-select-input.translate.mjs +0 -7
- package/esm2022/user/select/me/index.mjs +0 -3
- package/esm2022/user/select/me/me-option.directive.mjs +0 -123
- package/esm2022/user/select/me/me-option.module.mjs +0 -16
- package/esm2022/user/select/searcher/index.mjs +0 -4
- package/esm2022/user/select/searcher/translations.mjs +0 -27
- package/esm2022/user/select/searcher/user-searcher.component.mjs +0 -187
- package/esm2022/user/select/searcher/user-searcher.module.mjs +0 -16
- package/esm2022/user/select/searcher/user-searcher.translate.mjs +0 -7
- package/esm2022/user/select/user-select.module.mjs +0 -22
- package/esm2022/user/service/index.mjs +0 -3
- package/esm2022/user/service/user-service.model.mjs +0 -4
- package/esm2022/user/service/user-v3.service.mjs +0 -51
- package/esm2022/user/tile/index.mjs +0 -3
- package/esm2022/user/tile/user-tile.component.mjs +0 -63
- package/esm2022/user/tile/user-tile.module.mjs +0 -20
- package/esm2022/user/user.model.mjs +0 -2
- package/esm2022/user/user.module.mjs +0 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-number-format.mjs","sources":["../../../packages/ng/number-format/number-format.models.ts","../../../packages/ng/number-format/number-format.ts","../../../packages/ng/number-format/number-format.pipe.ts","../../../packages/ng/number-format/number-format.directive.ts","../../../packages/ng/number-format/lucca-front-ng-number-format.ts"],"sourcesContent":["export type NumberFormatStyle = 'decimal' | 'currency' | 'percent' | 'unit';\n\nexport type NumberFormatUnit =\n\t| 'acre'\n\t| 'bit'\n\t| 'byte'\n\t| 'celsius'\n\t| 'centimeter'\n\t| 'day'\n\t| 'degree'\n\t| 'fahrenheit'\n\t| 'fluid-ounce'\n\t| 'foot'\n\t| 'gallon'\n\t| 'gigabit'\n\t| 'gigabyte'\n\t| 'gram'\n\t| 'hectare'\n\t| 'hour'\n\t| 'inch'\n\t| 'kilobit'\n\t| 'kilobyte'\n\t| 'kilogram'\n\t| 'kilometer'\n\t| 'liter'\n\t| 'megabit'\n\t| 'megabyte'\n\t| 'meter'\n\t| 'microsecond'\n\t| 'mile'\n\t| 'mile-scandinavian'\n\t| 'milliliter'\n\t| 'millimeter'\n\t| 'millisecond'\n\t| 'minute'\n\t| 'month'\n\t| 'nanosecond'\n\t| 'ounce'\n\t| 'percent'\n\t| 'petabyte'\n\t| 'pound'\n\t| 'second'\n\t| 'stone'\n\t| 'terabit'\n\t| 'terabyte'\n\t| 'week'\n\t| 'yard'\n\t| 'year';\n\nexport type NumberFormatUnitDisplay = 'short' | 'narrow' | 'long';\n\nexport type NumberFormatCurrencyDisplay = 'code' | 'symbol' | 'narrowSymbol' | 'name';\n\nexport interface NumberFormatOptions {\n\tlocale: string;\n\tmin?: number | undefined;\n\tmax?: number | undefined;\n\tstyle: NumberFormatStyle;\n\tcurrency?: string | undefined;\n\tcurrencyDisplay?: NumberFormatCurrencyDisplay | undefined;\n\tunit?: NumberFormatUnit | undefined;\n\tunitDisplay?: NumberFormatUnitDisplay | undefined;\n\tuseGrouping?: boolean | undefined;\n\tminimumIntegerDigits?: number | undefined;\n\tminimumFractionDigits?: number | undefined;\n\tmaximumFractionDigits?: number | undefined;\n\tminimumSignificantDigits?: number | undefined;\n\tmaximumSignificantDigits?: number | undefined;\n}\n\nexport interface NumberFormatSplittedInput {\n\tminusSign: string;\n\tinteger: string;\n\tdelimiter: string;\n\tfraction: string;\n}\n\nexport interface NumberFormatParsedInput {\n\tsplittedInput: NumberFormatSplittedInput;\n\tcleanInput: string;\n\tvalue: number | null;\n}\n\nexport function joinSplittedInput({ minusSign, integer, delimiter, fraction }: NumberFormatSplittedInput): string {\n\treturn `${minusSign}${integer}${delimiter}${fraction}`;\n}\n\nexport function canCastSplittedInputToNumber({ integer, fraction }: NumberFormatSplittedInput): boolean {\n\treturn integer !== '' || fraction !== '';\n}\n","import { canCastSplittedInputToNumber, joinSplittedInput, NumberFormatOptions, NumberFormatParsedInput, NumberFormatSplittedInput } from './number-format.models';\n\nconst VALUE_TYPES: Intl.NumberFormatPartTypes[] = ['integer', 'decimal', 'fraction', 'group', 'minusSign'];\n\nconst DIGIT_TYPES: Intl.NumberFormatPartTypes[] = ['integer', 'decimal', 'fraction'];\n\nconst SUFFIX_PREFIX_TYPES: Intl.NumberFormatPartTypes[] = ['percent', 'percentSign', 'currency', 'code', 'symbol', 'name', 'unit'];\n\nexport class NumberFormat {\n\treadonly locale: string;\n\treadonly min: number | undefined;\n\treadonly max: number | undefined;\n\treadonly options: Intl.NumberFormatOptions;\n\treadonly #focusIntlNumberFormat: Intl.NumberFormat;\n\treadonly #intlNumberFormat: Intl.NumberFormat;\n\n\tconstructor({ locale, min, max, ...options }: NumberFormatOptions) {\n\t\tthis.locale = locale;\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t\tthis.options = this.#applyBoundariesToDigitOptions(options);\n\t\tthis.#intlNumberFormat = new Intl.NumberFormat(this.locale, this.options);\n\t\tthis.#focusIntlNumberFormat = new Intl.NumberFormat(this.locale, {\n\t\t\t...this.options,\n\t\t\tminimumFractionDigits: 0,\n\t\t});\n\t}\n\n\t#applyBoundariesToDigitOptions({\n\t\tstyle,\n\t\tminimumFractionDigits,\n\t\tmaximumFractionDigits,\n\t\tminimumIntegerDigits,\n\t\tminimumSignificantDigits,\n\t\tmaximumSignificantDigits,\n\t\t...options\n\t}: Intl.NumberFormatOptions): Intl.NumberFormatOptions {\n\t\tstyle = style ?? 'decimal';\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits\n\t\tminimumFractionDigits = Math.min(Math.max(minimumFractionDigits ?? 0, 0), 20);\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits\n\t\tmaximumFractionDigits = Math.min(Math.max(maximumFractionDigits ?? 2, minimumFractionDigits), 20);\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits\n\t\tminimumIntegerDigits = Math.min(Math.max(minimumFractionDigits ?? 1, 1), 21);\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumsignificantdigits\n\t\tminimumSignificantDigits = Math.min(Math.max(minimumSignificantDigits ?? 1, 1), 21);\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumsignificantdigits\n\t\tmaximumSignificantDigits = Math.min(Math.max(maximumSignificantDigits ?? 21, minimumSignificantDigits), 21);\n\t\treturn {\n\t\t\t...options,\n\t\t\tstyle,\n\t\t\tminimumFractionDigits,\n\t\t\tmaximumFractionDigits,\n\t\t\tminimumIntegerDigits,\n\t\t\tminimumSignificantDigits,\n\t\t\tmaximumSignificantDigits,\n\t\t};\n\t}\n\n\tgetSuffix(value: number | null): string | null {\n\t\tvalue = value ?? 1;\n\n\t\t// Parts after digits are suffix\n\t\tconst parts = this.#intlNumberFormat.formatToParts(value).reverse();\n\t\tconst indexOfFirstDigit = parts.findIndex((p) => DIGIT_TYPES.includes(p.type));\n\t\tconst indexOfFirstSuffix = parts.findIndex((p) => SUFFIX_PREFIX_TYPES.includes(p.type));\n\t\tif (indexOfFirstSuffix >= 0 && indexOfFirstSuffix < indexOfFirstDigit) {\n\t\t\treturn parts[indexOfFirstSuffix].value;\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetPrefix(value: number | null): string | null {\n\t\tvalue = value ?? 1;\n\n\t\t// Parts before digits are prefix\n\t\tconst parts = this.#intlNumberFormat.formatToParts(value);\n\t\tconst indexOfLastDigit = parts.findIndex((p) => DIGIT_TYPES.includes(p.type));\n\t\tconst indexOfLastSuffix = parts.findIndex((p) => SUFFIX_PREFIX_TYPES.includes(p.type));\n\t\tif (indexOfLastSuffix >= 0 && indexOfLastSuffix < indexOfLastDigit) {\n\t\t\treturn parts[indexOfLastSuffix].value;\n\t\t}\n\t\treturn null;\n\t}\n\n\tapplyRange(value: number | null): number | null {\n\t\tif (value === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.min !== undefined) {\n\t\t\tvalue = Math.max(this.min, value);\n\t\t}\n\t\tif (this.max !== undefined) {\n\t\t\tvalue = Math.min(this.max, value);\n\t\t}\n\t\treturn value;\n\t}\n\n\t#parseAndSplitInput(input: string): NumberFormatSplittedInput {\n\t\tlet minusSign = /^-/g.exec(input)?.[0] ?? '';\n\t\t// if minus sign has been input but range only allows positive values, remove it\n\t\tif (this.min >= 0) {\n\t\t\tminusSign = '';\n\t\t}\n\n\t\t// Add minus sign by default if range only allows negative values\n\t\tif (this.max < 0) {\n\t\t\tminusSign = '-';\n\t\t}\n\n\t\t// Keep only digits and decimal delimiter\n\t\tinput = input.replace(/[^.,0-9]/g, '');\n\n\t\t// Replace decimal delimiter ',' by '.' before casting string to number\n\t\tinput = input.replace(/,/g, '.');\n\n\t\tconst parts = input.split('.');\n\t\tconst integer = parts[0];\n\t\tconst fraction = parts\n\t\t\t.slice(1)\n\t\t\t.join('')\n\t\t\t//ignore digits above maximumFractionDigits\n\t\t\t.slice(0, this.options.maximumFractionDigits ?? 2);\n\t\tconst delimiter = parts.length > 1 ? '.' : '';\n\n\t\tconst splittedInput: NumberFormatSplittedInput = {\n\t\t\tminusSign,\n\t\t\tinteger,\n\t\t\tdelimiter,\n\t\t\tfraction,\n\t\t};\n\n\t\t// cast input in number only if it has integer or fraction\n\t\tif (canCastSplittedInputToNumber(splittedInput)) {\n\t\t\tlet value = +joinSplittedInput(splittedInput);\n\t\t\tif (this.options.style === 'percent') {\n\t\t\t\tvalue /= 100;\n\t\t\t\tvalue = +value.toFixed(this.options.maximumFractionDigits + 2);\n\t\t\t}\n\n\t\t\t// if value is not in range, fix it and split again !\n\t\t\tconst valueInRange = this.applyRange(value);\n\t\t\tif (value !== valueInRange) {\n\t\t\t\treturn this.#parseAndSplitInput(this.getFocusFormat(valueInRange));\n\t\t\t}\n\t\t}\n\n\t\treturn splittedInput;\n\t}\n\n\tparse(input: string): NumberFormatParsedInput {\n\t\tconst splittedInput = this.#parseAndSplitInput(input);\n\t\tconst cleanInput = joinSplittedInput(splittedInput);\n\t\tlet value: number | null = null;\n\n\t\tif (canCastSplittedInputToNumber(splittedInput)) {\n\t\t\tvalue = +joinSplittedInput(splittedInput);\n\t\t\tif (this.options.style === 'percent') {\n\t\t\t\tvalue /= 100;\n\t\t\t\tvalue = +value.toFixed(this.options.maximumFractionDigits + 2);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tsplittedInput,\n\t\t\tcleanInput,\n\t\t\tvalue,\n\t\t};\n\t}\n\n\tformat(value: number | null): string {\n\t\tif (value === null) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.#intlNumberFormat.format(value);\n\t}\n\n\tgetFocusFormat(value: number | undefined | null): string {\n\t\tif (value === null || value === undefined || isNaN(value)) {\n\t\t\t// Add minus sign by default if range only allows negative values\n\t\t\treturn this.max < 0 ? '-' : '';\n\t\t}\n\t\tconst parts = this.#focusIntlNumberFormat.formatToParts(value);\n\t\tconst minusSign = parts.find((p) => p.type === 'minusSign')?.value ?? '';\n\t\tconst integerPart = parts\n\t\t\t.filter((p) => p.type === 'integer')\n\t\t\t.map((p) => p.value)\n\t\t\t.join('');\n\t\tconst decimal = parts.find((p) => p.type === 'decimal') ? '.' : '';\n\t\tconst fractionPart = parts\n\t\t\t.filter((p) => p.type === 'fraction')\n\t\t\t.map((p) => p.value)\n\t\t\t.join('');\n\n\t\treturn `${minusSign}${integerPart}${decimal}${fractionPart}`;\n\t}\n\n\tgetBlurFormat(value: number | undefined | null): string {\n\t\tif (value === null || value === undefined) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.#intlNumberFormat\n\t\t\t.formatToParts(value)\n\t\t\t.filter((p) => VALUE_TYPES.includes(p.type))\n\t\t\t.map((p) => {\n\t\t\t\tif (p.type === 'minusSign') {\n\t\t\t\t\treturn '−';\n\t\t\t\t}\n\t\t\t\treturn p.value;\n\t\t\t})\n\t\t\t.join('');\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { NumberFormatOptions } from './number-format.models';\nimport { NumberFormat } from './number-format';\n\n@Pipe({\n\tname: 'luNumberFormat',\n\tstandalone: true,\n})\nexport class LuFormatNumberPipe implements PipeTransform {\n\ttransform(value: number, options: NumberFormatOptions) {\n\t\treturn new NumberFormat(options).format(value);\n\t}\n}\n","// Based on Intl number input\n// (more info: https://dm4t2.github.io/)\n\nimport { computed, Directive, ElementRef, forwardRef, HostListener, inject, input, Renderer2, signal } from '@angular/core';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NumberFormat } from './number-format';\nimport { NumberFormatOptions } from './number-format.models';\n\n@Directive({\n\tselector: 'input[luNumberFormatInput]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => NumberFormatDirective),\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class NumberFormatDirective implements ControlValueAccessor {\n\treadonly #inputElement = inject<ElementRef<HTMLInputElement>>(ElementRef<HTMLInputElement>).nativeElement;\n\treadonly #renderer = inject(Renderer2);\n\n\t#value = signal<number | undefined | null>(null);\n\t#valueAtFocus: number | undefined | null = null;\n\t#isFocused = signal<boolean>(false);\n\n\tformatOptions = input.required<NumberFormatOptions>();\n\t#numberFormat = computed(() => {\n\t\treturn new NumberFormat(this.formatOptions());\n\t});\n\n\tonChange: (_value: number | undefined | null) => void = () => {};\n\n\tonTouched: () => void = (): void => {};\n\n\twriteValue(value: number | undefined | null): void {\n\t\tvalue = this.#numberFormat().applyRange(value);\n\t\tthis.#value.set(value);\n\t\tthis.#inputElement.value = this.#isFocused() ? this.#numberFormat().getFocusFormat(value) : this.#numberFormat().getBlurFormat(value);\n\t}\n\n\tregisterOnChange(fn: (_value: number | undefined | null) => void): void {\n\t\tthis.onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.#renderer.setProperty(this.#inputElement, 'disabled', isDisabled);\n\t}\n\t@HostListener('focus') focus(): void {\n\t\tthis.#valueAtFocus = this.#value();\n\t\tthis.#isFocused.set(true);\n\t\tthis.#inputElement.value = this.#numberFormat().getFocusFormat(this.#value());\n\t}\n\n\t@HostListener('blur') lostFocus(): void {\n\t\tthis.#isFocused.set(false);\n\t\tthis.#inputElement.value = this.#numberFormat().getBlurFormat(this.#value());\n\t\tif (this.#valueAtFocus !== this.#value()) {\n\t\t\tthis.onTouched();\n\t\t}\n\t}\n\n\t@HostListener('input') input(): void {\n\t\tconst parsedInput = this.#numberFormat().parse(this.#inputElement.value);\n\n\t\tthis.#inputElement.value = parsedInput.cleanInput;\n\n\t\tthis.#value.set(parsedInput.value);\n\n\t\tthis.onChange?.(parsedInput.value);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAmFM,SAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAA6B,EAAA;IACvG,OAAO,CAAA,EAAG,SAAS,CAAG,EAAA,OAAO,GAAG,SAAS,CAAA,EAAG,QAAQ,CAAA,CAAE,CAAC;AACxD,CAAC;SAEe,4BAA4B,CAAC,EAAE,OAAO,EAAE,QAAQ,EAA6B,EAAA;AAC5F,IAAA,OAAO,OAAO,KAAK,EAAE,IAAI,QAAQ,KAAK,EAAE,CAAC;AAC1C;;ACvFA,MAAM,WAAW,GAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC;AAE3G,MAAM,WAAW,GAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAErF,MAAM,mBAAmB,GAAiC,CAAC,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;MAEtH,YAAY,CAAA;AAKf,IAAA,sBAAsB,CAAoB;AAC1C,IAAA,iBAA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,EAAA,CAAA,CAAA,EAAA;;2FAEW,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAXjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,2BAA2B,CAAC;AACpD,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA;AACD,iBAAA,CAAA;8BAmCuB,KAAK,EAAA,CAAA;sBAA3B,YAAY;uBAAC,OAAO,CAAA;gBAMC,SAAS,EAAA,CAAA;sBAA9B,YAAY;uBAAC,MAAM,CAAA;gBAQG,KAAK,EAAA,CAAA;sBAA3B,YAAY;uBAAC,OAAO,CAAA;;;ACpEtB;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-number-format.mjs","sources":["../../../packages/ng/number-format/number-format.models.ts","../../../packages/ng/number-format/number-format.ts","../../../packages/ng/number-format/number-format.pipe.ts","../../../packages/ng/number-format/number-format.directive.ts","../../../packages/ng/number-format/lucca-front-ng-number-format.ts"],"sourcesContent":["export type NumberFormatStyle = 'decimal' | 'currency' | 'percent' | 'unit';\n\nexport type NumberFormatUnit =\n\t| 'acre'\n\t| 'bit'\n\t| 'byte'\n\t| 'celsius'\n\t| 'centimeter'\n\t| 'day'\n\t| 'degree'\n\t| 'fahrenheit'\n\t| 'fluid-ounce'\n\t| 'foot'\n\t| 'gallon'\n\t| 'gigabit'\n\t| 'gigabyte'\n\t| 'gram'\n\t| 'hectare'\n\t| 'hour'\n\t| 'inch'\n\t| 'kilobit'\n\t| 'kilobyte'\n\t| 'kilogram'\n\t| 'kilometer'\n\t| 'liter'\n\t| 'megabit'\n\t| 'megabyte'\n\t| 'meter'\n\t| 'microsecond'\n\t| 'mile'\n\t| 'mile-scandinavian'\n\t| 'milliliter'\n\t| 'millimeter'\n\t| 'millisecond'\n\t| 'minute'\n\t| 'month'\n\t| 'nanosecond'\n\t| 'ounce'\n\t| 'percent'\n\t| 'petabyte'\n\t| 'pound'\n\t| 'second'\n\t| 'stone'\n\t| 'terabit'\n\t| 'terabyte'\n\t| 'week'\n\t| 'yard'\n\t| 'year';\n\nexport type NumberFormatUnitDisplay = 'short' | 'narrow' | 'long';\n\nexport type NumberFormatCurrencyDisplay = 'code' | 'symbol' | 'narrowSymbol' | 'name';\n\nexport interface NumberFormatOptions {\n\tlocale: string;\n\tmin?: number | undefined;\n\tmax?: number | undefined;\n\tstyle: NumberFormatStyle;\n\tcurrency?: string | undefined;\n\tcurrencyDisplay?: NumberFormatCurrencyDisplay | undefined;\n\tunit?: NumberFormatUnit | undefined;\n\tunitDisplay?: NumberFormatUnitDisplay | undefined;\n\tuseGrouping?: boolean | undefined;\n\tminimumIntegerDigits?: number | undefined;\n\tminimumFractionDigits?: number | undefined;\n\tmaximumFractionDigits?: number | undefined;\n\tminimumSignificantDigits?: number | undefined;\n\tmaximumSignificantDigits?: number | undefined;\n}\n\nexport interface NumberFormatSplittedInput {\n\tminusSign: string;\n\tinteger: string;\n\tdelimiter: string;\n\tfraction: string;\n}\n\nexport interface NumberFormatParsedInput {\n\tsplittedInput: NumberFormatSplittedInput;\n\tcleanInput: string;\n\tvalue: number | null;\n}\n\nexport function joinSplittedInput({ minusSign, integer, delimiter, fraction }: NumberFormatSplittedInput): string {\n\treturn `${minusSign}${integer}${delimiter}${fraction}`;\n}\n\nexport function canCastSplittedInputToNumber({ integer, fraction }: NumberFormatSplittedInput): boolean {\n\treturn integer !== '' || fraction !== '';\n}\n","import { canCastSplittedInputToNumber, joinSplittedInput, NumberFormatOptions, NumberFormatParsedInput, NumberFormatSplittedInput } from './number-format.models';\n\nconst VALUE_TYPES: Intl.NumberFormatPartTypes[] = ['integer', 'decimal', 'fraction', 'group', 'minusSign'];\n\nconst DIGIT_TYPES: Intl.NumberFormatPartTypes[] = ['integer', 'decimal', 'fraction'];\n\nconst SUFFIX_PREFIX_TYPES: Intl.NumberFormatPartTypes[] = ['percent', 'percentSign', 'currency', 'unit'];\n\nexport class NumberFormat {\n\treadonly locale: string;\n\treadonly min: number | undefined;\n\treadonly max: number | undefined;\n\treadonly options: Intl.NumberFormatOptions;\n\treadonly #focusIntlNumberFormat: Intl.NumberFormat;\n\treadonly #intlNumberFormat: Intl.NumberFormat;\n\n\tconstructor({ locale, min, max, ...options }: NumberFormatOptions) {\n\t\tthis.locale = locale;\n\t\tthis.min = min;\n\t\tthis.max = max;\n\t\tthis.options = this.#applyBoundariesToDigitOptions(options);\n\t\tthis.#intlNumberFormat = new Intl.NumberFormat(this.locale, this.options);\n\t\tthis.#focusIntlNumberFormat = new Intl.NumberFormat(this.locale, {\n\t\t\t...this.options,\n\t\t\tminimumFractionDigits: 0,\n\t\t});\n\t}\n\n\t#applyBoundariesToDigitOptions({\n\t\tstyle,\n\t\tminimumFractionDigits,\n\t\tmaximumFractionDigits,\n\t\tminimumIntegerDigits,\n\t\tminimumSignificantDigits,\n\t\tmaximumSignificantDigits,\n\t\t...options\n\t}: Intl.NumberFormatOptions): Intl.NumberFormatOptions {\n\t\tstyle = style ?? 'decimal';\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumfractiondigits\n\t\tminimumFractionDigits = Math.min(Math.max(minimumFractionDigits ?? 0, 0), 20);\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits\n\t\tmaximumFractionDigits = Math.min(Math.max(maximumFractionDigits ?? 2, minimumFractionDigits), 20);\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumfractiondigits\n\t\tminimumIntegerDigits = Math.min(Math.max(minimumFractionDigits ?? 1, 1), 21);\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#minimumsignificantdigits\n\t\tminimumSignificantDigits = Math.min(Math.max(minimumSignificantDigits ?? 1, 1), 21);\n\t\t// https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat#maximumsignificantdigits\n\t\tmaximumSignificantDigits = Math.min(Math.max(maximumSignificantDigits ?? 21, minimumSignificantDigits), 21);\n\t\treturn {\n\t\t\t...options,\n\t\t\tstyle,\n\t\t\tminimumFractionDigits,\n\t\t\tmaximumFractionDigits,\n\t\t\tminimumIntegerDigits,\n\t\t\tminimumSignificantDigits,\n\t\t\tmaximumSignificantDigits,\n\t\t};\n\t}\n\n\tgetSuffix(value: number | null): string | null {\n\t\tvalue = value ?? 1;\n\n\t\t// Parts after digits are suffix\n\t\tconst parts = this.#intlNumberFormat.formatToParts(value).reverse();\n\t\tconst indexOfFirstDigit = parts.findIndex((p) => DIGIT_TYPES.includes(p.type));\n\t\tconst indexOfFirstSuffix = parts.findIndex((p) => SUFFIX_PREFIX_TYPES.includes(p.type));\n\t\tif (indexOfFirstSuffix >= 0 && indexOfFirstSuffix < indexOfFirstDigit) {\n\t\t\treturn parts[indexOfFirstSuffix].value;\n\t\t}\n\t\treturn null;\n\t}\n\n\tgetPrefix(value: number | null): string | null {\n\t\tvalue = value ?? 1;\n\n\t\t// Parts before digits are prefix\n\t\tconst parts = this.#intlNumberFormat.formatToParts(value);\n\t\tconst indexOfLastDigit = parts.findIndex((p) => DIGIT_TYPES.includes(p.type));\n\t\tconst indexOfLastSuffix = parts.findIndex((p) => SUFFIX_PREFIX_TYPES.includes(p.type));\n\t\tif (indexOfLastSuffix >= 0 && indexOfLastSuffix < indexOfLastDigit) {\n\t\t\treturn parts[indexOfLastSuffix].value;\n\t\t}\n\t\treturn null;\n\t}\n\n\tapplyRange(value: number | null): number | null {\n\t\tif (value === null) {\n\t\t\treturn null;\n\t\t}\n\t\tif (this.min !== undefined) {\n\t\t\tvalue = Math.max(this.min, value);\n\t\t}\n\t\tif (this.max !== undefined) {\n\t\t\tvalue = Math.min(this.max, value);\n\t\t}\n\t\treturn value;\n\t}\n\n\t#parseAndSplitInput(input: string): NumberFormatSplittedInput {\n\t\tlet minusSign = /^-/g.exec(input)?.[0] ?? '';\n\t\t// if minus sign has been input but range only allows positive values, remove it\n\t\tif (this.min >= 0) {\n\t\t\tminusSign = '';\n\t\t}\n\n\t\t// Add minus sign by default if range only allows negative values\n\t\tif (this.max < 0) {\n\t\t\tminusSign = '-';\n\t\t}\n\n\t\t// Keep only digits and decimal delimiter\n\t\tinput = input.replace(/[^.,0-9]/g, '');\n\n\t\t// Replace decimal delimiter ',' by '.' before casting string to number\n\t\tinput = input.replace(/,/g, '.');\n\n\t\tconst parts = input.split('.');\n\t\tconst integer = parts[0];\n\t\tconst fraction = parts\n\t\t\t.slice(1)\n\t\t\t.join('')\n\t\t\t//ignore digits above maximumFractionDigits\n\t\t\t.slice(0, this.options.maximumFractionDigits ?? 2);\n\t\tconst delimiter = parts.length > 1 ? '.' : '';\n\n\t\tconst splittedInput: NumberFormatSplittedInput = {\n\t\t\tminusSign,\n\t\t\tinteger,\n\t\t\tdelimiter,\n\t\t\tfraction,\n\t\t};\n\n\t\t// cast input in number only if it has integer or fraction\n\t\tif (canCastSplittedInputToNumber(splittedInput)) {\n\t\t\tlet value = +joinSplittedInput(splittedInput);\n\t\t\tif (this.options.style === 'percent') {\n\t\t\t\tvalue /= 100;\n\t\t\t\tvalue = +value.toFixed(this.options.maximumFractionDigits + 2);\n\t\t\t}\n\n\t\t\t// if value is not in range, fix it and split again !\n\t\t\tconst valueInRange = this.applyRange(value);\n\t\t\tif (value !== valueInRange) {\n\t\t\t\treturn this.#parseAndSplitInput(this.getFocusFormat(valueInRange));\n\t\t\t}\n\t\t}\n\n\t\treturn splittedInput;\n\t}\n\n\tparse(input: string): NumberFormatParsedInput {\n\t\tconst splittedInput = this.#parseAndSplitInput(input);\n\t\tconst cleanInput = joinSplittedInput(splittedInput);\n\t\tlet value: number | null = null;\n\n\t\tif (canCastSplittedInputToNumber(splittedInput)) {\n\t\t\tvalue = +joinSplittedInput(splittedInput);\n\t\t\tif (this.options.style === 'percent') {\n\t\t\t\tvalue /= 100;\n\t\t\t\tvalue = +value.toFixed(this.options.maximumFractionDigits + 2);\n\t\t\t}\n\t\t}\n\t\treturn {\n\t\t\tsplittedInput,\n\t\t\tcleanInput,\n\t\t\tvalue,\n\t\t};\n\t}\n\n\tformat(value: number | null): string {\n\t\tif (value === null) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.#intlNumberFormat.format(value);\n\t}\n\n\tgetFocusFormat(value: number | undefined | null): string {\n\t\tif (value === null || value === undefined || isNaN(value)) {\n\t\t\t// Add minus sign by default if range only allows negative values\n\t\t\treturn this.max < 0 ? '-' : '';\n\t\t}\n\t\tconst parts = this.#focusIntlNumberFormat.formatToParts(value);\n\t\tconst minusSign = parts.find((p) => p.type === 'minusSign')?.value ?? '';\n\t\tconst integerPart = parts\n\t\t\t.filter((p) => p.type === 'integer')\n\t\t\t.map((p) => p.value)\n\t\t\t.join('');\n\t\tconst decimal = parts.find((p) => p.type === 'decimal') ? '.' : '';\n\t\tconst fractionPart = parts\n\t\t\t.filter((p) => p.type === 'fraction')\n\t\t\t.map((p) => p.value)\n\t\t\t.join('');\n\n\t\treturn `${minusSign}${integerPart}${decimal}${fractionPart}`;\n\t}\n\n\tgetBlurFormat(value: number | undefined | null): string {\n\t\tif (value === null || value === undefined) {\n\t\t\treturn '';\n\t\t}\n\t\treturn this.#intlNumberFormat\n\t\t\t.formatToParts(value)\n\t\t\t.filter((p) => VALUE_TYPES.includes(p.type))\n\t\t\t.map((p) => {\n\t\t\t\tif (p.type === 'minusSign') {\n\t\t\t\t\treturn '−';\n\t\t\t\t}\n\t\t\t\treturn p.value;\n\t\t\t})\n\t\t\t.join('');\n\t}\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { NumberFormatOptions } from './number-format.models';\nimport { NumberFormat } from './number-format';\n\n@Pipe({\n\tname: 'luNumberFormat',\n\tstandalone: true,\n})\nexport class LuFormatNumberPipe implements PipeTransform {\n\ttransform(value: number, options: NumberFormatOptions) {\n\t\treturn new NumberFormat(options).format(value);\n\t}\n}\n","// Based on Intl number input\n// (more info: https://dm4t2.github.io/)\n\nimport { computed, Directive, ElementRef, forwardRef, HostListener, inject, input, Renderer2, signal } from '@angular/core';\nimport type { ControlValueAccessor } from '@angular/forms';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NumberFormat } from './number-format';\nimport { NumberFormatOptions } from './number-format.models';\n\n@Directive({\n\tselector: 'input[luNumberFormatInput]',\n\tstandalone: true,\n\tproviders: [\n\t\t{\n\t\t\tprovide: NG_VALUE_ACCESSOR,\n\t\t\tuseExisting: forwardRef(() => NumberFormatDirective),\n\t\t\tmulti: true,\n\t\t},\n\t],\n})\nexport class NumberFormatDirective implements ControlValueAccessor {\n\treadonly #inputElement = inject<ElementRef<HTMLInputElement>>(ElementRef<HTMLInputElement>).nativeElement;\n\treadonly #renderer = inject(Renderer2);\n\n\t#value = signal<number | undefined | null>(null);\n\t#valueAtFocus: number | undefined | null = null;\n\t#isFocused = signal<boolean>(false);\n\n\tformatOptions = input.required<NumberFormatOptions>();\n\t#numberFormat = computed(() => {\n\t\treturn new NumberFormat(this.formatOptions());\n\t});\n\n\tonChange: (_value: number | undefined | null) => void = () => {};\n\n\tonTouched: () => void = (): void => {};\n\n\twriteValue(value: number | undefined | null): void {\n\t\tvalue = this.#numberFormat().applyRange(value);\n\t\tthis.#value.set(value);\n\t\tthis.#inputElement.value = this.#isFocused() ? this.#numberFormat().getFocusFormat(value) : this.#numberFormat().getBlurFormat(value);\n\t}\n\n\tregisterOnChange(fn: (_value: number | undefined | null) => void): void {\n\t\tthis.onChange = fn;\n\t}\n\n\tregisterOnTouched(fn: () => void): void {\n\t\tthis.onTouched = fn;\n\t}\n\n\tsetDisabledState(isDisabled: boolean): void {\n\t\tthis.#renderer.setProperty(this.#inputElement, 'disabled', isDisabled);\n\t}\n\t@HostListener('focus') focus(): void {\n\t\tthis.#valueAtFocus = this.#value();\n\t\tthis.#isFocused.set(true);\n\t\tthis.#inputElement.value = this.#numberFormat().getFocusFormat(this.#value());\n\t}\n\n\t@HostListener('blur') lostFocus(): void {\n\t\tthis.#isFocused.set(false);\n\t\tthis.#inputElement.value = this.#numberFormat().getBlurFormat(this.#value());\n\t\tif (this.#valueAtFocus !== this.#value()) {\n\t\t\tthis.onTouched();\n\t\t}\n\t}\n\n\t@HostListener('input') input(): void {\n\t\tconst parsedInput = this.#numberFormat().parse(this.#inputElement.value);\n\n\t\tthis.#inputElement.value = parsedInput.cleanInput;\n\n\t\tthis.#value.set(parsedInput.value);\n\n\t\tthis.onChange?.(parsedInput.value);\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAmFM,SAAU,iBAAiB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAA6B,EAAA;IACvG,OAAO,CAAA,EAAG,SAAS,CAAG,EAAA,OAAO,GAAG,SAAS,CAAA,EAAG,QAAQ,CAAA,CAAE;AACvD;SAEgB,4BAA4B,CAAC,EAAE,OAAO,EAAE,QAAQ,EAA6B,EAAA;AAC5F,IAAA,OAAO,OAAO,KAAK,EAAE,IAAI,QAAQ,KAAK,EAAE;AACzC;;ACvFA,MAAM,WAAW,GAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,CAAC;AAE1G,MAAM,WAAW,GAAiC,CAAC,SAAS,EAAE,SAAS,EAAE,UAAU,CAAC;AAEpF,MAAM,mBAAmB,GAAiC,CAAC,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,CAAC;MAE3F,YAAY,CAAA;AAKf,IAAA,sBAAsB;AACtB,IAAA,iBAAiB;IAE1B,WAAY,CA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AAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,MAAA,EAAA,aAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,EAAA,SAAA,EAAA;AACV,YAAA;AACC,gBAAA,OAAO,EAAE,iBAAiB;AAC1B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,qBAAqB,CAAC;AACpD,gBAAA,KAAK,EAAE,IAAI;AACX,aAAA;AACD,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAEW,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAXjC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,SAAS,EAAE;AACV,wBAAA;AACC,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,2BAA2B,CAAC;AACpD,4BAAA,KAAK,EAAE,IAAI;AACX,yBAAA;AACD,qBAAA;AACD,iBAAA;8BAmCuB,KAAK,EAAA,CAAA;sBAA3B,YAAY;uBAAC,OAAO;gBAMC,SAAS,EAAA,CAAA;sBAA9B,YAAY;uBAAC,MAAM;gBAQG,KAAK,EAAA,CAAA;sBAA3B,YAAY;uBAAC,OAAO;;;ACpEtB;;AAEG;;;;"}
|
|
@@ -20,10 +20,10 @@ class LuNumberPipe {
|
|
|
20
20
|
return integral;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuNumberPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
24
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: LuNumberPipe, isStandalone: true, name: "luNumber" }); }
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuNumberPipe, decorators: [{
|
|
27
27
|
type: Pipe,
|
|
28
28
|
args: [{
|
|
29
29
|
name: 'luNumber',
|
|
@@ -36,11 +36,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.1", ngImpor
|
|
|
36
36
|
}] }] });
|
|
37
37
|
|
|
38
38
|
class LuNumberModule {
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
40
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
41
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuNumberModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
40
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.3", ngImport: i0, type: LuNumberModule, imports: [LuNumberPipe], exports: [LuNumberPipe] }); }
|
|
41
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuNumberModule }); }
|
|
42
42
|
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: LuNumberModule, decorators: [{
|
|
44
44
|
type: NgModule,
|
|
45
45
|
args: [{
|
|
46
46
|
imports: [LuNumberPipe],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-number.mjs","sources":["../../../packages/ng/number/number.pipe.ts","../../../packages/ng/number/number.module.ts","../../../packages/ng/number/lucca-front-ng-number.ts"],"sourcesContent":["import { formatNumber, getLocaleNumberSymbol, NumberSymbol } from '@angular/common';\nimport { Inject, LOCALE_ID, Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n\tname: 'luNumber',\n\tpure: true,\n\tstandalone: true,\n})\nexport class LuNumberPipe implements PipeTransform {\n\tconstructor(@Inject(LOCALE_ID) protected locale: string) {}\n\ttransform(number: number, precision = 2) {\n\t\tconst formatted = formatNumber(number, this.locale, `1.${precision}-${precision}`);\n\t\tconst separator = getLocaleNumberSymbol(this.locale, NumberSymbol.Decimal);\n\t\tconst split = formatted.split(separator);\n\t\tconst integral = split[0];\n\t\tconst decimal = split[1];\n\t\tconst hideDecimal = Math.round(number) === number;\n\t\tif (precision > 0) {\n\t\t\treturn `${integral}<span class=\"decimal-part${hideDecimal ? ' u-hidden' : ''}\">${separator}${decimal}</span>`;\n\t\t} else {\n\t\t\treturn integral;\n\t\t}\n\t}\n}\n","import { NgModule } from '@angular/core';\nimport { LuNumberPipe } from './number.pipe';\n\n@NgModule({\n\timports: [LuNumberPipe],\n\texports: [LuNumberPipe],\n})\nexport class LuNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAQa,YAAY,CAAA;AACxB,IAAA,WAAA,CAAyC,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM,
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-number.mjs","sources":["../../../packages/ng/number/number.pipe.ts","../../../packages/ng/number/number.module.ts","../../../packages/ng/number/lucca-front-ng-number.ts"],"sourcesContent":["import { formatNumber, getLocaleNumberSymbol, NumberSymbol } from '@angular/common';\nimport { Inject, LOCALE_ID, Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n\tname: 'luNumber',\n\tpure: true,\n\tstandalone: true,\n})\nexport class LuNumberPipe implements PipeTransform {\n\tconstructor(@Inject(LOCALE_ID) protected locale: string) {}\n\ttransform(number: number, precision = 2) {\n\t\tconst formatted = formatNumber(number, this.locale, `1.${precision}-${precision}`);\n\t\tconst separator = getLocaleNumberSymbol(this.locale, NumberSymbol.Decimal);\n\t\tconst split = formatted.split(separator);\n\t\tconst integral = split[0];\n\t\tconst decimal = split[1];\n\t\tconst hideDecimal = Math.round(number) === number;\n\t\tif (precision > 0) {\n\t\t\treturn `${integral}<span class=\"decimal-part${hideDecimal ? ' u-hidden' : ''}\">${separator}${decimal}</span>`;\n\t\t} else {\n\t\t\treturn integral;\n\t\t}\n\t}\n}\n","import { NgModule } from '@angular/core';\nimport { LuNumberPipe } from './number.pipe';\n\n@NgModule({\n\timports: [LuNumberPipe],\n\texports: [LuNumberPipe],\n})\nexport class LuNumberModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAQa,YAAY,CAAA;AACxB,IAAA,WAAA,CAAyC,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM;;AAC/C,IAAA,SAAS,CAAC,MAAc,EAAE,SAAS,GAAG,CAAC,EAAA;AACtC,QAAA,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,SAAS,CAAA,CAAA,EAAI,SAAS,CAAA,CAAE,CAAC;AAClF,QAAA,MAAM,SAAS,GAAG,qBAAqB,CAAC,IAAI,CAAC,MAAM,EAAE,YAAY,CAAC,OAAO,CAAC;QAC1E,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC;AACxC,QAAA,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAA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BACT,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,OAAO,EAAE,CAAC,YAAY,CAAC;AACvB,iBAAA;;;ACND;;AAEG;;;;"}
|
|
@@ -13,10 +13,10 @@ class NumericBadgeComponent {
|
|
|
13
13
|
this.#luClass.setState({ [`palette-${this.palette}`]: !!this.palette, [`mod-${this.size}`]: !!this.size });
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NumericBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.3", type: NumericBadgeComponent, isStandalone: true, selector: "lu-numeric-badge", inputs: { value: "value", size: "size", palette: "palette" }, host: { classAttribute: "numericBadge" }, providers: [LuClass], usesOnChanges: true, ngImport: i0, template: "{{value}}\n", styles: [".numericBadge{--components-numericBadge-background: var(--palettes-200, var(--palettes-neutral-200));--components-numericBadge-color: var(--palettes-800, var(--palettes-neutral-700));--components-numericBadge-size: 1.5rem;--components-numericBadge-fontSize: var(--sizes-S-fontSize);--components-numericBadge-lineHeight: var(--sizes-S-lineHeight);--components-numericBadge-borderRadius: var(--commons-borderRadius-L);display:inline-flex;align-items:center;justify-content:center;height:var(--components-numericBadge-size);min-width:var(--components-numericBadge-size);padding:var(--pr-t-spacings-50);font-size:var(--components-numericBadge-fontSize);line-height:var(--components-numericBadge-lineHeight);font-weight:600;background-color:var(--components-numericBadge-background);color:var(--components-numericBadge-color);border-radius:var(--components-numericBadge-borderRadius);transition-property:background-color,color;transition-duration:var(--commons-animations-durations-fast);transition-timing-function:ease;white-space:nowrap}.numericBadge.mod-S{--components-numericBadge-size: 1.25rem;--components-numericBadge-borderRadius: 6px;--components-numericBadge-fontSize: var(--sizes-XS-fontSize);--components-numericBadge-lineHeight: var(--sizes-XS-lineHeight)}.numericBadge.mod-XS{--components-numericBadge-size: 1rem;--components-numericBadge-borderRadius: var(--commons-borderRadius-M);--components-numericBadge-fontSize: var(--sizes-XS-fontSize);--components-numericBadge-lineHeight: var(--sizes-XS-lineHeight)}lu-numeric-badge{display:inline-flex}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: NumericBadgeComponent, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
21
|
args: [{ selector: 'lu-numeric-badge', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [LuClass], host: {
|
|
22
22
|
class: 'numericBadge',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lucca-front-ng-numeric-badge.mjs","sources":["../../../packages/ng/numeric-badge/numeric-badge.component.ts","../../../packages/ng/numeric-badge/numeric-badge.component.html","../../../packages/ng/numeric-badge/lucca-front-ng-numeric-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject, Input, OnChanges, SimpleChanges, ViewEncapsulation } from '@angular/core';\nimport { LuClass, Palette } from '@lucca-front/ng/core';\n\n@Component({\n\tselector: 'lu-numeric-badge',\n\tstandalone: true,\n\ttemplateUrl: './numeric-badge.component.html',\n\tstyleUrls: ['./numeric-badge.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tproviders: [LuClass],\n\thost: {\n\t\tclass: 'numericBadge',\n\t},\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class NumericBadgeComponent implements OnChanges {\n\t#luClass = inject(LuClass);\n\n\t@Input({ required: true })\n\t/**\n\t * The value to display, number or string contains number only.\n\t */\n\tvalue!: number | string;\n\n\t@Input()\n\t/**\n\t * The size of the badge\n\t */\n\tsize: 'XS' | 'S' | 'M';\n\n\t@Input()\n\t/**\n\t * The palette to use for this badge. Defaults to 'none' (inherits parent palette)\n\t */\n\tpalette: Palette = 'none';\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tif (changes['palette']?.currentValue || changes['size']?.currentValue) {\n\t\t\tthis.#luClass.setState({ [`palette-${this.palette}`]: !!this.palette, [`mod-${this.size}`]: !!this.size });\n\t\t}\n\t}\n}\n","{{value}}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAea,qBAAqB,CAAA;AAZlC,IAAA,WAAA,GAAA;AAaC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC
|
|
1
|
+
{"version":3,"file":"lucca-front-ng-numeric-badge.mjs","sources":["../../../packages/ng/numeric-badge/numeric-badge.component.ts","../../../packages/ng/numeric-badge/numeric-badge.component.html","../../../packages/ng/numeric-badge/lucca-front-ng-numeric-badge.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, inject, Input, OnChanges, SimpleChanges, ViewEncapsulation } from '@angular/core';\nimport { LuClass, Palette } from '@lucca-front/ng/core';\n\n@Component({\n\tselector: 'lu-numeric-badge',\n\tstandalone: true,\n\ttemplateUrl: './numeric-badge.component.html',\n\tstyleUrls: ['./numeric-badge.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tproviders: [LuClass],\n\thost: {\n\t\tclass: 'numericBadge',\n\t},\n\tencapsulation: ViewEncapsulation.None,\n})\nexport class NumericBadgeComponent implements OnChanges {\n\t#luClass = inject(LuClass);\n\n\t@Input({ required: true })\n\t/**\n\t * The value to display, number or string contains number only.\n\t */\n\tvalue!: number | string;\n\n\t@Input()\n\t/**\n\t * The size of the badge\n\t */\n\tsize: 'XS' | 'S' | 'M';\n\n\t@Input()\n\t/**\n\t * The palette to use for this badge. Defaults to 'none' (inherits parent palette)\n\t */\n\tpalette: Palette = 'none';\n\n\tngOnChanges(changes: SimpleChanges): void {\n\t\tif (changes['palette']?.currentValue || changes['size']?.currentValue) {\n\t\t\tthis.#luClass.setState({ [`palette-${this.palette}`]: !!this.palette, [`mod-${this.size}`]: !!this.size });\n\t\t}\n\t}\n}\n","{{value}}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAea,qBAAqB,CAAA;AAZlC,IAAA,WAAA,GAAA;AAaC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC;QAkB1B,IAAO,CAAA,OAAA,GAAY,MAAM;AAOzB;AAzBA,IAAA,QAAQ;AAoBR,IAAA,WAAW,CAAC,OAAsB,EAAA;AACjC,QAAA,IAAI,OAAO,CAAC,SAAS,CAAC,EAAE,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,YAAY,EAAE;AACtE,YAAA,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAW,QAAA,EAAA,IAAI,CAAC,OAAO,CAAA,CAAE,GAAG,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAA,IAAA,EAAO,IAAI,CAAC,IAAI,CAAE,CAAA,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;;;8GAvBhG,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EANtB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,OAAA,EAAA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