@seniorsistemas/angular-components 19.9.14-develop-23365630 → 19.9.15-develop-11ab86f5
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/README.md +84 -2
- package/accordion/README.md +5 -4
- package/accordion/lib/accordion/accordion.module.d.ts +7 -0
- package/alert/lib/alert/alert.module.d.ts +7 -0
- package/badge/README.md +5 -4
- package/badge/lib/badge/badge.module.d.ts +10 -0
- package/bignumber-input/README.md +5 -4
- package/bignumber-input/lib/bignumber-input/bignumber-input.directive.d.ts +16 -39
- package/bignumber-input/lib/bignumber-input/bignumber-input.module.d.ts +7 -0
- package/breadcrumb/README.md +5 -4
- package/breadcrumb/lib/dynamic-breadcrumb/dynamic-breadcrumb.module.d.ts +5 -1
- package/button/lib/button/button.module.d.ts +7 -0
- package/calendar-mask/README.md +5 -4
- package/calendar-mask/lib/calendar-mask/calendar-mask.module.d.ts +7 -0
- package/card/README.md +6 -5
- package/card/lib/card/card.module.d.ts +7 -0
- package/chat/README.md +11 -8
- package/chat/lib/chat/chat.module.d.ts +7 -0
- package/checkbox-list/README.md +5 -4
- package/checkbox-list/lib/checkbox-list/checkbox-list.module.d.ts +7 -0
- package/chips/README.md +5 -4
- package/chips/lib/chips/chips.module.d.ts +7 -0
- package/code-editor/README.md +5 -4
- package/code-editor/lib/code-editor/code-editor.module.d.ts +7 -0
- package/collapse-link/README.md +5 -4
- package/collapse-link/lib/collapse-link/collapse-link.module.d.ts +7 -0
- package/common/lib/angular-components.module.d.ts +9 -0
- package/common/lib/provide-angular-components.d.ts +19 -0
- package/common/lib/svg-factory/svg-factory.module.d.ts +7 -0
- package/common/public-api.d.ts +1 -0
- package/content-generator/README.md +2 -2
- package/content-generator/lib/content-generator/content-generator.module.d.ts +7 -0
- package/control-errors/README.md +2 -2
- package/control-errors/lib/control-errors/control-errors.module.d.ts +7 -0
- package/country-phone-picker/README.md +2 -2
- package/country-phone-picker/lib/country-phone-picker/country-phone-picker.module.d.ts +7 -0
- package/currency/README.md +1 -1
- package/custom-fields/README.md +14 -3
- package/custom-fields/lib/custom-fields/custom-fields.module.d.ts +7 -0
- package/custom-fields/lib/custom-fields/models/custom-field-value-parser.d.ts +21 -0
- package/custom-fields/lib/custom-fields/models/index.d.ts +1 -0
- package/dialog/README.md +1 -1
- package/drawer/README.md +8 -4
- package/drawer/lib/drawer/drawer.module.d.ts +10 -0
- package/dynamic-form/README.md +18 -2
- package/dynamic-form/dynamic-form/dynamic-form.module.d.ts +7 -0
- package/dynamic-form/dynamic-form/form-field/addon-config.d.ts +10 -1
- package/dynamic-form/dynamic-form/form-field/configurations/fields/currency-field.d.ts +15 -15
- package/dynamic-form/dynamic-form/form-field/configurations/fields/number-field.d.ts +8 -6
- package/dynamic-form/dynamic-form/form-field/fields/bignumber/bignumber-field.component.d.ts +5 -2
- package/dynamic-form/public-api.d.ts +0 -1
- package/editable-overlay/README.md +2 -2
- package/editable-overlay/lib/editable-overlay/editable-overlay.module.d.ts +7 -0
- package/empty-state/README.md +5 -2
- package/empty-state/lib/empty-state/empty-state.module.d.ts +7 -0
- package/esm2022/accordion/lib/accordion/accordion.module.mjs +8 -1
- package/esm2022/alert/lib/alert/alert.module.mjs +8 -1
- package/esm2022/badge/lib/badge/badge.module.mjs +11 -1
- package/esm2022/bignumber-input/lib/bignumber-input/bignumber-input.directive.mjs +19 -127
- package/esm2022/bignumber-input/lib/bignumber-input/bignumber-input.module.mjs +8 -1
- package/esm2022/breadcrumb/lib/dynamic-breadcrumb/dynamic-breadcrumb.module.mjs +6 -2
- package/esm2022/button/lib/button/button.module.mjs +8 -1
- package/esm2022/calendar-mask/lib/calendar-mask/calendar-mask.module.mjs +8 -1
- package/esm2022/card/lib/card/card.module.mjs +8 -1
- package/esm2022/chat/lib/chat/chat.module.mjs +8 -1
- package/esm2022/checkbox-list/lib/checkbox-list/checkbox-list.module.mjs +8 -1
- package/esm2022/chips/lib/chips/chips.module.mjs +8 -1
- package/esm2022/code-editor/lib/code-editor/code-editor.component.mjs +10 -1
- package/esm2022/code-editor/lib/code-editor/code-editor.module.mjs +9 -15
- package/esm2022/collapse-link/lib/collapse-link/collapse-link.module.mjs +8 -1
- package/esm2022/common/lib/angular-components.module.mjs +10 -1
- package/esm2022/common/lib/provide-angular-components.mjs +22 -0
- package/esm2022/common/lib/svg-factory/svg-factory.module.mjs +8 -1
- package/esm2022/common/public-api.mjs +2 -1
- package/esm2022/content-generator/lib/content-generator/content-generator.module.mjs +8 -1
- package/esm2022/control-errors/lib/control-errors/control-errors.module.mjs +8 -1
- package/esm2022/country-phone-picker/lib/country-phone-picker/country-phone-picker.module.mjs +8 -1
- package/esm2022/country-phone-picker/lib/country-phone-picker/country-phone-picker.service.mjs +4 -3
- package/esm2022/custom-fields/lib/custom-fields/custom-fields.component.mjs +17 -13
- package/esm2022/custom-fields/lib/custom-fields/custom-fields.module.mjs +8 -1
- package/esm2022/custom-fields/lib/custom-fields/custom-fields.service.mjs +4 -3
- package/esm2022/custom-fields/lib/custom-fields/models/custom-field-type.mjs +4 -2
- package/esm2022/custom-fields/lib/custom-fields/models/custom-field-value-parser.mjs +46 -0
- package/esm2022/custom-fields/lib/custom-fields/models/index.mjs +2 -1
- package/esm2022/drawer/lib/drawer/drawer.module.mjs +11 -1
- package/esm2022/dynamic-form/dynamic-form/dynamic-form.module.mjs +8 -1
- package/esm2022/dynamic-form/dynamic-form/form-field/addon-config.mjs +6 -2
- package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/currency-field.mjs +1 -1
- package/esm2022/dynamic-form/dynamic-form/form-field/configurations/fields/number-field.mjs +1 -1
- package/esm2022/dynamic-form/dynamic-form/form-field/fields/bignumber/bignumber-field.component.mjs +33 -10
- package/esm2022/dynamic-form/public-api.mjs +2 -7
- package/esm2022/editable-overlay/lib/editable-overlay/editable-overlay.module.mjs +8 -1
- package/esm2022/empty-state/lib/empty-state/empty-state.module.mjs +8 -1
- package/esm2022/fieldset/lib/fieldset/fieldset.module.mjs +8 -1
- package/esm2022/file-picker/lib/file-picker/file-picker.module.mjs +8 -1
- package/esm2022/file-picker/lib/file-picker/file-picker.service.mjs +4 -3
- package/esm2022/gantt/lib/gantt/gantt.module.mjs +8 -1
- package/esm2022/global-search/lib/global-search/global-search.module.mjs +19 -1
- package/esm2022/grid-menu/lib/grid-menu/grid-menu.module.mjs +8 -1
- package/esm2022/help-popover/lib/help-popover/help-popover.module.mjs +8 -1
- package/esm2022/image-cropper/lib/image-cropper/image-cropper.module.mjs +12 -1
- package/esm2022/image-cropper/lib/image-cropper/image-cropper.service.mjs +4 -3
- package/esm2022/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.mjs +8 -1
- package/esm2022/info-sign/lib/info-sign/info-sign.module.mjs +8 -1
- package/esm2022/inline-edit/lib/inline-edit/components/fields/inline-edit-number/inline-edit-number.component.mjs +5 -5
- package/esm2022/inline-edit/lib/inline-edit/inline-edit.module.mjs +8 -1
- package/esm2022/input-group/lib/input-group/input-group.module.mjs +8 -1
- package/esm2022/input-mask/lib/input-mask/input-mask.module.mjs +8 -1
- package/esm2022/input-text/lib/input-text/input-text.module.mjs +8 -1
- package/esm2022/insights/lib/insights/insights.module.mjs +11 -1
- package/esm2022/kanban/lib/kanban/kanban-event.service.mjs +4 -3
- package/esm2022/kanban/lib/kanban/kanban.module.mjs +11 -1
- package/esm2022/label-value/lib/label-value/label-value.module.mjs +8 -1
- package/esm2022/loading-state/lib/loading-state/loading-state.module.mjs +8 -1
- package/esm2022/locale/lib/locale/locale.module.mjs +14 -1
- package/esm2022/locale/lib/locale/locale.service.mjs +4 -3
- package/esm2022/locale/lib/locale/options/index.mjs +1 -13
- package/esm2022/locale/lib/locale/pipes/localized-bignumber-impure.pipe.mjs +1 -1
- package/esm2022/locale/lib/locale/pipes/localized-bignumber.pipe.mjs +10 -2
- package/esm2022/locale/lib/locale/provide-locale.mjs +42 -0
- package/esm2022/locale/public-api.mjs +2 -1
- package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.directive.mjs +5 -1
- package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.module.mjs +8 -1
- package/esm2022/mask/lib/mask/mask-formatter.module.mjs +8 -1
- package/esm2022/mouse-events/lib/mouse-events/mouse-events.module.mjs +8 -1
- package/esm2022/navigation-button/lib/navigation-button/navigation-button.module.mjs +8 -1
- package/esm2022/number-input/lib/number-input/number-input.directive.mjs +2 -2
- package/esm2022/number-input/lib/number-input/number-input.module.mjs +9 -2
- package/esm2022/numeric/lib/numeric.module.mjs +8 -1
- package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.directive.mjs +178 -15
- package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.module.mjs +8 -1
- package/esm2022/object-card/lib/object-card/object-card.module.mjs +12 -1
- package/esm2022/panel/lib/panel/panel.module.mjs +11 -1
- package/esm2022/password-strength/lib/password-strength/password-strength.module.mjs +8 -1
- package/esm2022/picklist/lib/picklist/picklist.module.mjs +8 -1
- package/esm2022/pin-code-field/lib/pin-code-field.module.mjs +8 -1
- package/esm2022/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.mjs +8 -1
- package/esm2022/progressbar/lib/progressbar/progressbar.module.mjs +8 -1
- package/esm2022/rating-scale/lib/rating-scale/rating-scale.module.mjs +8 -1
- package/esm2022/select/lib/select/select.component.mjs +16 -3
- package/esm2022/select-button/lib/select-button/select-button.module.mjs +8 -1
- package/esm2022/shared/lib/shared/border-button/border-button.module.mjs +8 -1
- package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.mjs +8 -1
- package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.service.mjs +4 -3
- package/esm2022/slider/lib/slider/slider.module.mjs +8 -1
- package/esm2022/speech-recognition/lib/speech-recognition/speech-recognition.module.mjs +8 -1
- package/esm2022/split-button/lib/split-button/split-button.module.mjs +8 -1
- package/esm2022/stats-card/lib/stats-card/stats-card.module.mjs +8 -1
- package/esm2022/stepper/lib/stepper/stepper.module.mjs +8 -1
- package/esm2022/structure/lib/structure/structure.module.mjs +8 -1
- package/esm2022/switch/lib/switch/switch.module.mjs +8 -1
- package/esm2022/table/lib/table/table.module.mjs +9 -1
- package/esm2022/table-header/lib/table-header/table-header-checkox.module.mjs +8 -1
- package/esm2022/template/lib/template/template.module.mjs +8 -1
- package/esm2022/text-area/lib/text-area.module.mjs +8 -1
- package/esm2022/thumbnail/lib/thumbnail/thumbnail.module.mjs +8 -1
- package/esm2022/thumbnails/lib/thumbnails/thumbnails.module.mjs +8 -1
- package/esm2022/tiered-menu/lib/tiered-menu/tiered-menu.module.mjs +8 -1
- package/esm2022/tile/lib/tile/tile.module.mjs +11 -1
- package/esm2022/timeline/lib/timeline/timeline.module.mjs +8 -1
- package/esm2022/toast/lib/toast/toast.module.mjs +8 -1
- package/esm2022/token-list/lib/token-list/token-list.module.mjs +8 -1
- package/esm2022/tooltip/lib/tooltip/tooltip.module.mjs +8 -1
- package/esm2022/topbar/lib/topbar/topbar.module.mjs +11 -1
- package/esm2022/tree/lib/tree/tree.module.mjs +8 -1
- package/esm2022/workspace-switch/lib/workspace-switch/workspace-switch.module.mjs +8 -1
- package/fesm2022/seniorsistemas-angular-components-accordion.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-accordion.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-alert.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-alert.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-badge.mjs +10 -0
- package/fesm2022/seniorsistemas-angular-components-badge.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs +25 -126
- package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs +5 -1
- package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-button.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-card.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-chat.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-chat.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-chips.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-chips.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-code-editor.mjs +164 -160
- package/fesm2022/seniorsistemas-angular-components-code-editor.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-common.mjs +38 -2
- package/fesm2022/seniorsistemas-angular-components-common.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-content-generator.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-content-generator.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-control-errors.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-control-errors.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs +10 -2
- package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs +75 -15
- package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-drawer.mjs +10 -0
- package/fesm2022/seniorsistemas-angular-components-drawer.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +52 -208
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-empty-state.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-empty-state.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-fieldset.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-fieldset.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-file-picker.mjs +10 -2
- package/fesm2022/seniorsistemas-angular-components-file-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-gantt.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-gantt.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-global-search.mjs +18 -0
- package/fesm2022/seniorsistemas-angular-components-global-search.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-help-popover.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-help-popover.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs +14 -2
- package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-info-sign.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-info-sign.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs +11 -4
- package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-input-group.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-input-group.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-input-mask.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-input-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-input-text.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-input-text.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-insights.mjs +10 -0
- package/fesm2022/seniorsistemas-angular-components-insights.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-kanban.mjs +13 -2
- package/fesm2022/seniorsistemas-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-label-value.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-label-value.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-loading-state.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-loading-state.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-locale.mjs +58 -5
- package/fesm2022/seniorsistemas-angular-components-locale.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs +11 -0
- package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-mask.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-number-input.mjs +9 -2
- package/fesm2022/seniorsistemas-angular-components-number-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs +184 -14
- package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-numeric.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-numeric.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-object-card.mjs +11 -0
- package/fesm2022/seniorsistemas-angular-components-object-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-panel.mjs +10 -0
- package/fesm2022/seniorsistemas-angular-components-panel.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-password-strength.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-password-strength.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-picklist.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-picklist.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-progressbar.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-progressbar.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-select-button.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-select-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-select.mjs +15 -2
- package/fesm2022/seniorsistemas-angular-components-select.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-shared.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-shared.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs +10 -2
- package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-slider.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-slider.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-split-button.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-split-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-stats-card.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-stats-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-stepper.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-structure.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-structure.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-switch.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-switch.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-table-header.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-table-header.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-table.mjs +8 -0
- package/fesm2022/seniorsistemas-angular-components-table.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-template.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-template.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-text-area.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-text-area.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-tile.mjs +10 -0
- package/fesm2022/seniorsistemas-angular-components-tile.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-timeline.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-timeline.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-toast.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-toast.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-token-list.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-token-list.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-tooltip.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-tooltip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-topbar.mjs +10 -0
- package/fesm2022/seniorsistemas-angular-components-topbar.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-tree.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-tree.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs +7 -0
- package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs.map +1 -1
- package/fieldset/README.md +2 -2
- package/fieldset/lib/fieldset/fieldset.module.d.ts +7 -0
- package/file-picker/README.md +2 -2
- package/file-picker/lib/file-picker/file-picker.module.d.ts +7 -0
- package/file-upload/README.md +1 -1
- package/gantt/README.md +2 -2
- package/gantt/lib/gantt/gantt.module.d.ts +7 -0
- package/global-search/README.md +5 -2
- package/global-search/lib/global-search/global-search.module.d.ts +18 -0
- package/grid-menu/README.md +5 -4
- package/grid-menu/lib/grid-menu/grid-menu.module.d.ts +7 -0
- package/help-popover/README.md +5 -4
- package/help-popover/lib/help-popover/help-popover.module.d.ts +7 -0
- package/ia-insight/README.md +1 -1
- package/image-cropper/README.md +6 -5
- package/image-cropper/lib/image-cropper/image-cropper.module.d.ts +11 -0
- package/infinite-scroll/README.md +5 -4
- package/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.d.ts +7 -0
- package/info-sign/README.md +5 -4
- package/info-sign/lib/info-sign/info-sign.module.d.ts +7 -0
- package/inline-edit/README.md +5 -4
- package/inline-edit/lib/inline-edit/inline-edit.module.d.ts +7 -0
- package/input-group/lib/input-group/input-group.module.d.ts +7 -0
- package/input-mask/lib/input-mask/input-mask.module.d.ts +7 -0
- package/input-text/lib/input-text/input-text.module.d.ts +7 -0
- package/insights/README.md +6 -4
- package/insights/lib/insights/insights.module.d.ts +10 -0
- package/kanban/README.md +6 -4
- package/kanban/lib/kanban/kanban.module.d.ts +10 -0
- package/label-value/README.md +5 -4
- package/label-value/lib/label-value/label-value.module.d.ts +7 -0
- package/loading-state/README.md +9 -5
- package/loading-state/lib/loading-state/loading-state.module.d.ts +7 -0
- package/locale/lib/locale/locale.module.d.ts +13 -0
- package/locale/lib/locale/pipes/localized-bignumber-impure.pipe.d.ts +2 -2
- package/locale/lib/locale/pipes/localized-bignumber.pipe.d.ts +20 -1
- package/locale/lib/locale/provide-locale.d.ts +18 -0
- package/locale/public-api.d.ts +1 -0
- package/localized-number-input/README.md +32 -8
- package/localized-number-input/lib/localized-number-input/localized-number-input.directive.d.ts +4 -0
- package/localized-number-input/lib/localized-number-input/localized-number-input.module.d.ts +7 -0
- package/mask/lib/mask/mask-formatter.module.d.ts +7 -0
- package/mouse-events/README.md +5 -4
- package/mouse-events/lib/mouse-events/mouse-events.module.d.ts +7 -0
- package/navigation-button/README.md +5 -4
- package/navigation-button/lib/navigation-button/navigation-button.module.d.ts +7 -0
- package/number-input/lib/number-input/number-input.directive.d.ts +1 -1
- package/number-input/lib/number-input/number-input.module.d.ts +8 -1
- package/numeric/README.md +6 -5
- package/numeric/lib/numeric.module.d.ts +7 -0
- package/numeric-mask/README.md +44 -1
- package/numeric-mask/lib/numeric-mask/numeric-mask.directive.d.ts +65 -4
- package/numeric-mask/lib/numeric-mask/numeric-mask.module.d.ts +7 -0
- package/object-card/README.md +11 -4
- package/object-card/lib/object-card/object-card.module.d.ts +11 -0
- package/package.json +1 -1
- package/panel/README.md +8 -4
- package/panel/lib/panel/panel.module.d.ts +10 -0
- package/password-strength/README.md +6 -3
- package/password-strength/lib/password-strength/password-strength.module.d.ts +7 -0
- package/picklist/README.md +8 -5
- package/picklist/lib/picklist/picklist.module.d.ts +7 -0
- package/pin-code-field/lib/pin-code-field.module.d.ts +7 -0
- package/product-header/README.md +2 -2
- package/profile-picture-picker/README.md +6 -3
- package/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.d.ts +7 -0
- package/progressbar/README.md +6 -3
- package/progressbar/lib/progressbar/progressbar.module.d.ts +7 -0
- package/rating-scale/README.md +6 -3
- package/rating-scale/lib/rating-scale/rating-scale.module.d.ts +7 -0
- package/schematics/collection.json +40 -0
- package/schematics/migrations/migrate-app-to-standalone/index.d.ts +32 -0
- package/schematics/migrations/migrate-app-to-standalone/index.js +98 -0
- package/schematics/migrations/migrate-app-to-standalone/index.js.map +1 -0
- package/schematics/migrations/migrate-deprecated-apis/index.d.ts +49 -0
- package/schematics/migrations/migrate-deprecated-apis/index.js +660 -0
- package/schematics/migrations/migrate-deprecated-apis/index.js.map +1 -0
- package/schematics/migrations/migrate-deprecated-datepicker/index.d.ts +31 -0
- package/schematics/migrations/migrate-deprecated-datepicker/index.js +115 -0
- package/schematics/migrations/migrate-deprecated-datepicker/index.js.map +1 -0
- package/schematics/migrations/migrate-deprecated-dynamic-form/index.d.ts +52 -0
- package/schematics/migrations/migrate-deprecated-dynamic-form/index.js +661 -0
- package/schematics/migrations/migrate-deprecated-dynamic-form/index.js.map +1 -0
- package/schematics/migrations/migrate-deprecated-imports/index.d.ts +23 -0
- package/schematics/migrations/migrate-deprecated-imports/index.js +335 -0
- package/schematics/migrations/migrate-deprecated-imports/index.js.map +1 -0
- package/schematics/migrations/migrate-deprecated-selectors/index.d.ts +15 -0
- package/schematics/migrations/migrate-deprecated-selectors/index.js +76 -0
- package/schematics/migrations/migrate-deprecated-selectors/index.js.map +1 -0
- package/schematics/migrations/migrate-modules-to-standalone/index.d.ts +51 -0
- package/schematics/migrations/migrate-modules-to-standalone/index.js +632 -0
- package/schematics/migrations/migrate-modules-to-standalone/index.js.map +1 -0
- package/schematics/migrations/migrate-modules-to-standalone/modules-map.json +1656 -0
- package/schematics/migrations/migrate-v20/index.d.ts +9 -0
- package/schematics/migrations/migrate-v20/index.js +90 -0
- package/schematics/migrations/migrate-v20/index.js.map +1 -0
- package/schematics/migrations/migrate-v20/items.d.ts +7 -0
- package/schematics/migrations/migrate-v20/items.js +54 -0
- package/schematics/migrations/migrate-v20/items.js.map +1 -0
- package/schematics/migrations/migrate-v20/plan.d.ts +32 -0
- package/schematics/migrations/migrate-v20/plan.js +29 -0
- package/schematics/migrations/migrate-v20/plan.js.map +1 -0
- package/schematics/migrations.json +5 -1
- package/schematics/schema/app-standalone.schema.json +21 -0
- package/schematics/schema/migrate-v20.schema.json +33 -0
- package/schematics/schema/scope.schema.json +17 -0
- package/schematics/utils/ast-utils.js +16 -0
- package/schematics/utils/ast-utils.js.map +1 -1
- package/schematics/utils/eol.d.ts +5 -0
- package/schematics/utils/eol.js +17 -0
- package/schematics/utils/eol.js.map +1 -0
- package/schematics/utils/prompt-utils.d.ts +62 -0
- package/schematics/utils/prompt-utils.js +166 -0
- package/schematics/utils/prompt-utils.js.map +1 -0
- package/schematics/utils/report.d.ts +27 -0
- package/schematics/utils/report.js +70 -0
- package/schematics/utils/report.js.map +1 -0
- package/schematics/utils/scope.d.ts +17 -0
- package/schematics/utils/scope.js +55 -0
- package/schematics/utils/scope.js.map +1 -0
- package/schematics/utils/selection.d.ts +21 -0
- package/schematics/utils/selection.js +60 -0
- package/schematics/utils/selection.js.map +1 -0
- package/schematics/utils/symbol-utils.d.ts +31 -0
- package/schematics/utils/symbol-utils.js +202 -0
- package/schematics/utils/symbol-utils.js.map +1 -0
- package/schematics/utils/template-utils.d.ts +62 -0
- package/schematics/utils/template-utils.js +165 -0
- package/schematics/utils/template-utils.js.map +1 -0
- package/schematics/utils/tsconfig-paths.d.ts +5 -0
- package/schematics/utils/tsconfig-paths.js +73 -0
- package/schematics/utils/tsconfig-paths.js.map +1 -0
- package/select/lib/select/select.component.d.ts +8 -0
- package/select-button/README.md +6 -3
- package/select-button/lib/select-button/select-button.module.d.ts +7 -0
- package/shared/lib/shared/border-button/border-button.module.d.ts +7 -0
- package/sidebar/README.md +2 -2
- package/slide-in-bar/README.md +5 -5
- package/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.d.ts +7 -0
- package/slider/README.md +6 -3
- package/slider/lib/slider/slider.module.d.ts +7 -0
- package/speech-recognition/README.md +6 -3
- package/speech-recognition/lib/speech-recognition/speech-recognition.module.d.ts +7 -0
- package/split-button/README.md +6 -3
- package/split-button/lib/split-button/split-button.module.d.ts +7 -0
- package/stats-card/README.md +6 -3
- package/stats-card/lib/stats-card/stats-card.module.d.ts +7 -0
- package/stepper/README.md +6 -3
- package/stepper/lib/stepper/stepper.module.d.ts +7 -0
- package/structure/lib/structure/structure.module.d.ts +7 -0
- package/switch/README.md +6 -3
- package/switch/lib/switch/switch.module.d.ts +7 -0
- package/table/README.md +12 -4
- package/table/lib/table/table.module.d.ts +8 -0
- package/table-header/lib/table-header/table-header-checkox.module.d.ts +7 -0
- package/template/README.md +0 -11
- package/template/lib/template/template.module.d.ts +7 -0
- package/text-area/lib/text-area.module.d.ts +7 -0
- package/text-area-ia/README.md +1 -1
- package/thumbnail/lib/thumbnail/thumbnail.module.d.ts +7 -0
- package/thumbnails/lib/thumbnails/thumbnails.module.d.ts +7 -0
- package/tiered-menu/lib/tiered-menu/tiered-menu.module.d.ts +7 -0
- package/tile/lib/tile/tile.module.d.ts +10 -0
- package/timeline/lib/timeline/timeline.module.d.ts +7 -0
- package/toast/lib/toast/toast.module.d.ts +7 -0
- package/token-list/lib/token-list/token-list.module.d.ts +7 -0
- package/tooltip/lib/tooltip/tooltip.module.d.ts +7 -0
- package/topbar/lib/topbar/topbar.module.d.ts +10 -0
- package/tree/lib/tree/tree.module.d.ts +7 -0
- package/workspace-switch/lib/workspace-switch/workspace-switch.module.d.ts +7 -0
- package/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.d.ts +0 -664
- package/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.d.ts +0 -29
- package/esm2022/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.mjs +0 -96
- package/esm2022/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.mjs +0 -124
package/inline-edit/README.md
CHANGED
|
@@ -18,12 +18,13 @@ Componente de edição inline que renderiza dinamicamente campos editáveis a pa
|
|
|
18
18
|
## Instalação
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import {
|
|
21
|
+
import { InlineEditComponent } from '@seniorsistemas/angular-components/inline-edit';
|
|
22
22
|
|
|
23
|
-
@
|
|
24
|
-
|
|
23
|
+
@Component({
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [InlineEditComponent],
|
|
25
26
|
})
|
|
26
|
-
export class
|
|
27
|
+
export class MeuComponent {}
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
## Uso básico
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./inline-edit.component";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `InlineEditComponent` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/inline-edit`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class InlineEditModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InlineEditModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<InlineEditModule, never, [typeof i1.InlineEditComponent], [typeof i1.InlineEditComponent]>;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./input-group.component";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `InputGroupComponent` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/input-group`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class InputGroupModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputGroupModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<InputGroupModule, never, [typeof i1.InputGroupComponent], [typeof i1.InputGroupComponent]>;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./input-mask.directive";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `InputMaskDirective` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/input-mask`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class InputMaskModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<InputMaskModule, never, [typeof i1.InputMaskDirective], [typeof i1.InputMaskDirective]>;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./input-text.directive";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `InputTextDirective` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/input-text`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class InputTextModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputTextModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<InputTextModule, never, [typeof i1.InputTextDirective], [typeof i1.InputTextDirective]>;
|
package/insights/README.md
CHANGED
|
@@ -20,12 +20,14 @@ Componente de painel lateral de insights com IA. Exibe uma lista de itens de ins
|
|
|
20
20
|
## Instalação
|
|
21
21
|
|
|
22
22
|
```typescript
|
|
23
|
-
import {
|
|
23
|
+
import { InsightsComponent } from '@seniorsistemas/angular-components/insights';
|
|
24
|
+
import { TemplateDirective } from '@seniorsistemas/angular-components/template';
|
|
24
25
|
|
|
25
|
-
@
|
|
26
|
-
|
|
26
|
+
@Component({
|
|
27
|
+
standalone: true,
|
|
28
|
+
imports: [InsightsComponent, TemplateDirective],
|
|
27
29
|
})
|
|
28
|
-
export class
|
|
30
|
+
export class MeuComponent {}
|
|
29
31
|
```
|
|
30
32
|
|
|
31
33
|
## Uso básico
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@seniorsistemas/angular-components/template";
|
|
3
3
|
import * as i2 from "./insights.component";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `InsightsComponent` (de
|
|
6
|
+
* `@seniorsistemas/angular-components/insights`) no lugar deste módulo.
|
|
7
|
+
*
|
|
8
|
+
* Este módulo também reexportava `TemplateDirective` (`@seniorsistemas/angular-components/template`, usado em
|
|
9
|
+
* templates por `[sTemplate]`). Se o seu template usa algum deles, importe-o diretamente.
|
|
10
|
+
*
|
|
11
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
12
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
13
|
+
*/
|
|
4
14
|
export declare class InsightsModule {
|
|
5
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<InsightsModule, never>;
|
|
6
16
|
static ɵmod: i0.ɵɵNgModuleDeclaration<InsightsModule, never, [typeof i1.TemplateModule, typeof i2.InsightsComponent], [typeof i2.InsightsComponent, typeof i1.TemplateModule]>;
|
package/kanban/README.md
CHANGED
|
@@ -18,12 +18,14 @@ Componente de quadro Kanban com suporte a arrastar e soltar colunas e itens. Per
|
|
|
18
18
|
## Instalação
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import {
|
|
21
|
+
import { KanbanComponent } from '@seniorsistemas/angular-components/kanban';
|
|
22
|
+
import { TemplateDirective } from '@seniorsistemas/angular-components/template';
|
|
22
23
|
|
|
23
|
-
@
|
|
24
|
-
|
|
24
|
+
@Component({
|
|
25
|
+
standalone: true,
|
|
26
|
+
imports: [KanbanComponent, TemplateDirective],
|
|
25
27
|
})
|
|
26
|
-
export class
|
|
28
|
+
export class MeuComponent {}
|
|
27
29
|
```
|
|
28
30
|
|
|
29
31
|
## Uso básico
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "@seniorsistemas/angular-components/template";
|
|
3
3
|
import * as i2 from "./kanban.component";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `KanbanComponent` (de
|
|
6
|
+
* `@seniorsistemas/angular-components/kanban`) no lugar deste módulo.
|
|
7
|
+
*
|
|
8
|
+
* Este módulo também reexportava `TemplateDirective` (`@seniorsistemas/angular-components/template`, usado em
|
|
9
|
+
* templates por `[sTemplate]`). Se o seu template usa algum deles, importe-o diretamente.
|
|
10
|
+
*
|
|
11
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
12
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
13
|
+
*/
|
|
4
14
|
export declare class KanbanModule {
|
|
5
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<KanbanModule, never>;
|
|
6
16
|
static ɵmod: i0.ɵɵNgModuleDeclaration<KanbanModule, never, [typeof i1.TemplateModule, typeof i2.KanbanComponent], [typeof i2.KanbanComponent, typeof i1.TemplateModule]>;
|
package/label-value/README.md
CHANGED
|
@@ -18,12 +18,13 @@ Componente para exibição de pares label/valor em modo somente leitura. Suporta
|
|
|
18
18
|
## Instalação
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import {
|
|
21
|
+
import { LabelValueComponent } from '@seniorsistemas/angular-components/label-value';
|
|
22
22
|
|
|
23
|
-
@
|
|
24
|
-
|
|
23
|
+
@Component({
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [LabelValueComponent],
|
|
25
26
|
})
|
|
26
|
-
export class
|
|
27
|
+
export class MeuComponent {}
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
## Uso básico
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./label-value.component";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `LabelValueComponent` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/label-value`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class LabelValueModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<LabelValueModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LabelValueModule, never, [typeof i1.LabelValueComponent], [typeof i1.LabelValueComponent]>;
|
package/loading-state/README.md
CHANGED
|
@@ -19,12 +19,16 @@ Componente para exibir indicadores de carregamento sobre conteúdo enquanto oper
|
|
|
19
19
|
## Instalação
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
import {
|
|
23
|
+
LoadingStateComponent,
|
|
24
|
+
LoadingStateDirective,
|
|
25
|
+
} from '@seniorsistemas/angular-components/loading-state';
|
|
26
|
+
|
|
27
|
+
@Component({
|
|
28
|
+
standalone: true,
|
|
29
|
+
imports: [LoadingStateComponent, LoadingStateDirective],
|
|
26
30
|
})
|
|
27
|
-
export class
|
|
31
|
+
export class MeuComponent {}
|
|
28
32
|
```
|
|
29
33
|
|
|
30
34
|
## Uso básico
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./loading-state.component";
|
|
3
3
|
import * as i2 from "./loading-state.directive";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Será removido na v20. Importe diretamente os standalones `LoadingStateComponent` e
|
|
6
|
+
* `LoadingStateDirective` (de `@seniorsistemas/angular-components/loading-state`) no lugar deste módulo.
|
|
7
|
+
*
|
|
8
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
9
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
10
|
+
*/
|
|
4
11
|
export declare class LoadingStateModule {
|
|
5
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingStateModule, never>;
|
|
6
13
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LoadingStateModule, never, [typeof i1.LoadingStateComponent, typeof i2.LoadingStateDirective], [typeof i1.LoadingStateComponent, typeof i2.LoadingStateDirective]>;
|
|
@@ -9,6 +9,19 @@ import * as i6 from "./pipes/localized-date-impure.pipe";
|
|
|
9
9
|
import * as i7 from "./pipes/localized-time-impure.pipe";
|
|
10
10
|
import * as i8 from "./pipes/localized-bignumber.pipe";
|
|
11
11
|
import * as i9 from "./pipes/localized-bignumber-impure.pipe";
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Será removido na v20. Importe diretamente os standalones `LocalizedCurrencyPipe`,
|
|
14
|
+
* `LocalizedDatePipe`, `LocalizedTimePipe`, `LocalizedNumberPipe`, `LocalizedCurrencyImpurePipe`,
|
|
15
|
+
* `LocalizedDateImpurePipe`, `LocalizedTimeImpurePipe`, `LocalizedBignumberPipe` e
|
|
16
|
+
* `LocalizedBignumberImpurePipe` (de `@seniorsistemas/angular-components/locale`) no lugar deste módulo.
|
|
17
|
+
*
|
|
18
|
+
* Substitua `LocaleModule.forRoot()` por `provideLocale()` (de `@seniorsistemas/angular-components/locale`).
|
|
19
|
+
*
|
|
20
|
+
* `LocaleModule.forChild()` não tem equivalente e pode ser removido.
|
|
21
|
+
*
|
|
22
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
23
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
24
|
+
*/
|
|
12
25
|
export declare class LocaleModule {
|
|
13
26
|
static forRoot(): ModuleWithProviders<LocaleModule>;
|
|
14
27
|
static forChild(): ModuleWithProviders<LocaleModule>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { LocalizedBignumberPipe, LocalizedBignumberPipeOptions } from './localized-bignumber.pipe';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LocalizedBignumberImpurePipe extends LocalizedBignumberPipe implements PipeTransform {
|
|
5
|
-
transform(value?: any, options?:
|
|
5
|
+
transform(value?: any, options?: LocalizedBignumberPipeOptions): any;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedBignumberImpurePipe, never>;
|
|
7
7
|
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedBignumberImpurePipe, "localizedBignumberImpure", true>;
|
|
8
8
|
}
|
|
@@ -2,9 +2,28 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import { LocalizedBignumberOptions } from '../apply-localized-mask';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export type { LocalizedBignumberOptions };
|
|
5
|
+
/**
|
|
6
|
+
* Opções do pipe `localizedBignumber`: as da máscara mais as de compatibilidade com os pipes depreciados
|
|
7
|
+
* `localizedNumber` e `localizedCurrency`, que formatavam valores vazios como `0`.
|
|
8
|
+
*/
|
|
9
|
+
export interface LocalizedBignumberPipeOptions extends LocalizedBignumberOptions {
|
|
10
|
+
/**
|
|
11
|
+
* Quando `true`, uma string vazia (ou só com espaços) é formatada como `0`, em vez de ficar vazia.
|
|
12
|
+
* É o comportamento dos pipes depreciados `localizedNumber` e `localizedCurrency` (`Number('')` é `0`).
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
emptyAsZero?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Quando `true`, `null` é formatado como `0`, em vez de ser devolvido como está.
|
|
18
|
+
* É o comportamento do pipe depreciado `localizedNumber` (`Number(null)` é `0`). `undefined` nunca é convertido.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
nullAsZero?: boolean;
|
|
22
|
+
}
|
|
5
23
|
export declare class LocalizedBignumberPipe implements PipeTransform {
|
|
6
24
|
private localeService;
|
|
7
|
-
transform(value?: any, options?:
|
|
25
|
+
transform(value?: any, options?: LocalizedBignumberPipeOptions): any;
|
|
26
|
+
private coerceEmpty;
|
|
8
27
|
private applyMask;
|
|
9
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedBignumberPipe, never>;
|
|
10
29
|
static ɵpipe: i0.ɵɵPipeDeclaration<LocalizedBignumberPipe, "localizedBignumber", true>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Registra o `LocaleService` e os pipes de localização como providers, para que possam ser injetados
|
|
4
|
+
* em classes (`inject(LocalizedDatePipe)`).
|
|
5
|
+
*
|
|
6
|
+
* Substitui `LocaleModule.forRoot()` e funciona em aplicações standalone (`app.config.ts`) e também
|
|
7
|
+
* em `NgModule.providers`. Para usar os pipes nos templates, importe os pipes standalone diretamente.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* export const appConfig: ApplicationConfig = {
|
|
12
|
+
* providers: [provideLocale()],
|
|
13
|
+
* };
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @returns Providers de ambiente para o injetor raiz.
|
|
17
|
+
*/
|
|
18
|
+
export declare function provideLocale(): EnvironmentProviders;
|
package/locale/public-api.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './lib/locale/options/index';
|
|
2
2
|
export * from './lib/locale/locale.module';
|
|
3
|
+
export * from './lib/locale/provide-locale';
|
|
3
4
|
export * from './lib/locale/locale.service';
|
|
4
5
|
export * from './lib/locale/apply-localized-mask';
|
|
5
6
|
export * from './lib/locale/pipes/localized-bignumber-impure.pipe';
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
# LocalizedNumberInput
|
|
2
2
|
|
|
3
|
-

|
|
4
|
+
|
|
5
|
+
> **Descontinuado** — Será removido na v20. Use a diretiva [`sNumericMask`](../numeric-mask/README.md) em novos projetos.
|
|
4
6
|
|
|
5
7
|
Diretiva de validação para campos `<input>` que verifica se o valor digitado é um número localizado válido, considerando os separadores decimal e de milhar do locale ativo. Integra-se ao sistema de formulários Angular via `NG_VALIDATORS`, adicionando o erro `invalidNumber` quando o valor não é válido.
|
|
6
8
|
|
|
7
9
|
## Quando usar
|
|
8
10
|
|
|
11
|
+
- Manutenção de formulários legados que já utilizam `sLocalizedNumberInput`
|
|
9
12
|
- Campos de entrada numérica em formulários que precisam validar o formato localizado (ex: `1.234,56` em pt-BR)
|
|
10
13
|
- Quando o usuário digita livremente e você precisa garantir que o valor é um número no formato correto antes de processar
|
|
11
14
|
- Aplicações multi-locale onde os separadores podem variar
|
|
@@ -15,18 +18,39 @@ Diretiva de validação para campos `<input>` que verifica se o valor digitado
|
|
|
15
18
|
- Quando você precisa de formatação visual automática enquanto o usuário digita — prefira uma máscara numérica
|
|
16
19
|
- Para campos de valores inteiros sem casas decimais — use validação nativa do Angular Forms (`Validators.pattern`)
|
|
17
20
|
|
|
18
|
-
##
|
|
21
|
+
## Migração
|
|
22
|
+
|
|
23
|
+
A `sNumericMask` já valida o formato conforme o locale e aplica a máscara enquanto o usuário digita, então
|
|
24
|
+
a entrada de caracteres inválidos é impedida. O `precision` desta diretiva (casas decimais) corresponde ao
|
|
25
|
+
`maxDecimalPlaces` da `sNumericMask`, e `thousandsSeparator` corresponde a `thousandSeparator`.
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<!-- Antes -->
|
|
29
|
+
<input sLocalizedNumberInput [precision]="2" formControlName="valor" />
|
|
30
|
+
|
|
31
|
+
<!-- Depois -->
|
|
32
|
+
<input sNumericMask [maxDecimalPlaces]="2" formControlName="valor" />
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
> **Atenção:** o valor do `FormControl` passa a ser uma `string` em formato internacional (ex.: `'1234.56'`),
|
|
36
|
+
> e o erro `invalidNumber` deixa de existir — a `sNumericMask` reporta erros próprios (ex.: `negativeNotAllowed`).
|
|
37
|
+
> Para aceitar valores negativos, informe `[allowNegative]="true"`.
|
|
38
|
+
|
|
39
|
+
O schematic `ng generate @seniorsistemas/angular-components:migrate-deprecated-apis` faz essa troca automaticamente.
|
|
40
|
+
|
|
41
|
+
## Instalação (legado)
|
|
19
42
|
|
|
20
43
|
```typescript
|
|
21
|
-
import {
|
|
44
|
+
import { LocalizedNumberInputDirective } from '@seniorsistemas/angular-components/localized-number-input';
|
|
22
45
|
|
|
23
|
-
@
|
|
24
|
-
|
|
46
|
+
@Component({
|
|
47
|
+
standalone: true,
|
|
48
|
+
imports: [LocalizedNumberInputDirective],
|
|
25
49
|
})
|
|
26
|
-
export class
|
|
50
|
+
export class MeuComponent {}
|
|
27
51
|
```
|
|
28
52
|
|
|
29
|
-
**Dependência:** Requer `
|
|
53
|
+
**Dependência:** Requer `provideLocale()` configurado nos providers da aplicação.
|
|
30
54
|
|
|
31
55
|
## Uso básico
|
|
32
56
|
|
|
@@ -125,4 +149,4 @@ export class MeuComponent {
|
|
|
125
149
|
## Componentes relacionados
|
|
126
150
|
|
|
127
151
|
- [`NumericMask`](../numeric-mask/README.md) — máscara de entrada com formatação visual automática enquanto o usuário digita
|
|
128
|
-
- [`
|
|
152
|
+
- [`BignumberInput`](../bignumber-input/README.md) — máscara para números de grande precisão
|
package/localized-number-input/lib/localized-number-input/localized-number-input.directive.d.ts
CHANGED
|
@@ -2,6 +2,10 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated Será removido na v20. Utilize a diretiva `sNumericMask` ao invés desta.
|
|
6
|
+
* O `precision` desta diretiva (casas decimais) corresponde ao `maxDecimalPlaces` da `sNumericMask`.
|
|
7
|
+
* Migração automática: `ng generate @seniorsistemas/angular-components:migrate-deprecated-apis`
|
|
8
|
+
*
|
|
5
9
|
* @description Diretiva de validação para campos `<input>` que verificam se o valor digitado
|
|
6
10
|
* é um número localizado válido (considerando separadores decimal e de milhar do locale ativo).
|
|
7
11
|
* Ao ser integrada ao `NG_VALIDATORS`, adiciona o erro `invalidNumber` ao control quando
|
package/localized-number-input/lib/localized-number-input/localized-number-input.module.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./localized-number-input.directive";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `LocalizedNumberInputDirective` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/localized-number-input`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class LocalizedNumberInputModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<LocalizedNumberInputModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LocalizedNumberInputModule, never, [typeof i1.LocalizedNumberInputDirective], [typeof i1.LocalizedNumberInputDirective]>;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./mask-formatter.pipe";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `MaskFormatterPipe` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/mask`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class MaskFormatterModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MaskFormatterModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MaskFormatterModule, never, [typeof i1.MaskFormatterPipe], [typeof i1.MaskFormatterPipe]>;
|
package/mouse-events/README.md
CHANGED
|
@@ -19,12 +19,13 @@ Módulo com duas diretivas para eventos de mouse avançados: `sLongPress` (press
|
|
|
19
19
|
## Instalação
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
|
-
import {
|
|
22
|
+
import { LongPressDirective, DoubleClickDirective } from '@seniorsistemas/angular-components/mouse-events';
|
|
23
23
|
|
|
24
|
-
@
|
|
25
|
-
|
|
24
|
+
@Component({
|
|
25
|
+
standalone: true,
|
|
26
|
+
imports: [LongPressDirective, DoubleClickDirective],
|
|
26
27
|
})
|
|
27
|
-
export class
|
|
28
|
+
export class MeuComponent {}
|
|
28
29
|
```
|
|
29
30
|
|
|
30
31
|
## Uso básico
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./double-click.directive";
|
|
3
3
|
import * as i2 from "./long-press.directive";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Será removido na v20. Importe diretamente os standalones `LongPressDirective` e
|
|
6
|
+
* `DoubleClickDirective` (de `@seniorsistemas/angular-components/mouse-events`) no lugar deste módulo.
|
|
7
|
+
*
|
|
8
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
9
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
10
|
+
*/
|
|
4
11
|
export declare class MouseEventsModule {
|
|
5
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MouseEventsModule, never>;
|
|
6
13
|
static ɵmod: i0.ɵɵNgModuleDeclaration<MouseEventsModule, never, [typeof i1.DoubleClickDirective, typeof i2.LongPressDirective], [typeof i2.LongPressDirective, typeof i1.DoubleClickDirective]>;
|
|
@@ -18,12 +18,13 @@ Componente de navegação por etapas que exibe o passo atual com botões de avan
|
|
|
18
18
|
## Instalação
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import {
|
|
21
|
+
import { NavigationButtonComponent } from '@seniorsistemas/angular-components/navigation-button';
|
|
22
22
|
|
|
23
|
-
@
|
|
24
|
-
|
|
23
|
+
@Component({
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [NavigationButtonComponent],
|
|
25
26
|
})
|
|
26
|
-
export class
|
|
27
|
+
export class MeuComponent {}
|
|
27
28
|
```
|
|
28
29
|
|
|
29
30
|
## Uso básico
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./navigation-button.component";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `NavigationButtonComponent` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/navigation-button`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class NavigationButtonModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavigationButtonModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NavigationButtonModule, never, [typeof i1.NavigationButtonComponent], [typeof i1.NavigationButtonComponent]>;
|
|
@@ -8,7 +8,7 @@ export declare enum NumberAlignmentOption {
|
|
|
8
8
|
LEFT = "left"
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
* @deprecated Use a diretiva `
|
|
11
|
+
* @deprecated Use a diretiva `sBignumberInput` em vez desta.
|
|
12
12
|
* @description Alias de `BignumberInputDirective` mantido por compatibilidade.
|
|
13
13
|
* Todos os inputs e outputs são idênticos ao `sBignumberInput`.
|
|
14
14
|
*
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./number-input.directive";
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `BignumberInputDirective` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/bignumber-input`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Atenção: o `sNumberInput` está depreciado em favor do `sNumericMask`; revise os templates (o schematic
|
|
8
|
+
* `migrate-deprecated-apis` faz essa troca e grava os defaults antigos de forma explícita).
|
|
9
|
+
*
|
|
10
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
11
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
5
12
|
*/
|
|
6
13
|
export declare class NumberInputModule {
|
|
7
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputModule, never>;
|
package/numeric/README.md
CHANGED
|
@@ -18,15 +18,16 @@ Pipe e serviço Angular para formatação de valores numéricos de acordo com o
|
|
|
18
18
|
## Instalação
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import {
|
|
21
|
+
import { NumericPipe } from '@seniorsistemas/angular-components/numeric';
|
|
22
22
|
|
|
23
|
-
@
|
|
24
|
-
|
|
23
|
+
@Component({
|
|
24
|
+
standalone: true,
|
|
25
|
+
imports: [NumericPipe, AsyncPipe],
|
|
25
26
|
})
|
|
26
|
-
export class
|
|
27
|
+
export class MeuComponent {}
|
|
27
28
|
```
|
|
28
29
|
|
|
29
|
-
O `
|
|
30
|
+
O `NumericPipe` requer `provideLocale()` configurado nos providers da aplicação.
|
|
30
31
|
|
|
31
32
|
## Uso básico
|
|
32
33
|
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./numeric.pipe";
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `NumericPipe` (de
|
|
5
|
+
* `@seniorsistemas/angular-components/numeric`) no lugar deste módulo.
|
|
6
|
+
*
|
|
7
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
8
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
9
|
+
*/
|
|
3
10
|
export declare class NumericModule {
|
|
4
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NumericModule, never>;
|
|
5
12
|
static ɵmod: i0.ɵɵNgModuleDeclaration<NumericModule, never, [typeof i1.NumericPipe], [typeof i1.NumericPipe]>;
|
package/numeric-mask/README.md
CHANGED
|
@@ -58,15 +58,30 @@ export class MeuComponent {
|
|
|
58
58
|
| `max` | `number \| undefined` | `undefined` | Não | Valor máximo permitido (validação de formulário) |
|
|
59
59
|
| `blockDecimalOverflow` | `boolean` | `true` | Não | Bloqueia a digitação e a colagem de casas decimais além de `maxDecimalPlaces`. Quando `maxDecimalPlaces` é `0`, o próprio separador decimal não pode ser digitado |
|
|
60
60
|
| `decimalRoundingMode` | `'preserve' \| 'truncate' \| 'roundUp' \| 'roundDown'` | `'preserve'` | Não | Estratégia aplicada no `blur` quando `blockDecimalOverflow` é `false`. Sem efeito enquanto `blockDecimalOverflow` for `true` |
|
|
61
|
+
| `precision` | `number \| undefined` | `undefined` | Não | Opt-in: limite de dígitos significativos totais (parte inteira + decimal). Enquanto `undefined`, não há limite, `maxLength` nativo não é aplicado, colagens nunca são rejeitadas e `placeholder` nunca é calculado automaticamente |
|
|
62
|
+
| `placeholder` | `string \| undefined` | `undefined` | Não | Texto exibido com o campo vazio. Quando `precision` está definido e este input não é informado, é calculado automaticamente a partir de `minDecimalPlaces` (ex: `0,00`) |
|
|
63
|
+
|
|
64
|
+
### Outputs
|
|
65
|
+
|
|
66
|
+
| Evento | Tipo | Descrição |
|
|
67
|
+
| --------------- | -------------------- | ----------------------------------------------------------------------------------------------- |
|
|
68
|
+
| `pasteRejected` | `EventEmitter<string>` | Emitido quando uma colagem é rejeitada por exceder `precision`. Só é emitido com `precision` definido; emite o texto colado rejeitado |
|
|
61
69
|
|
|
62
70
|
### Tipos
|
|
63
71
|
|
|
64
72
|
```typescript
|
|
65
|
-
// O valor
|
|
73
|
+
// O valor emitido para o modelo (ngModel / FormControl) é sempre string no formato decimal internacional
|
|
66
74
|
// Exemplo: "1234567.89" para o valor 1.234.567,89 em pt-BR
|
|
67
75
|
type NumericMaskModelValue = string | null;
|
|
68
76
|
```
|
|
69
77
|
|
|
78
|
+
O modelo também aceita `number` na entrada: um valor definido por código (por exemplo, `patchValue` com o DTO vindo do backend) é formatado e validado normalmente. Depois que o usuário edita o campo, o valor volta a ser emitido como `string`.
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
form.patchValue({ valor: 1234.5 }); // exibe "1.234,50", controle válido
|
|
82
|
+
// após o usuário digitar 1234,56: form.value.valor === '1234.56'
|
|
83
|
+
```
|
|
84
|
+
|
|
70
85
|
### Erros de validação emitidos
|
|
71
86
|
|
|
72
87
|
```typescript
|
|
@@ -98,6 +113,14 @@ type NumericMaskModelValue = string | null;
|
|
|
98
113
|
actual: number;
|
|
99
114
|
}
|
|
100
115
|
}
|
|
116
|
+
|
|
117
|
+
// Dígitos significativos acima de `precision` (só quando `precision` está definido)
|
|
118
|
+
{
|
|
119
|
+
exceedsPrecision: {
|
|
120
|
+
precision: number;
|
|
121
|
+
actual: number;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
101
124
|
```
|
|
102
125
|
|
|
103
126
|
## Comportamento de excesso de casas decimais
|
|
@@ -239,6 +262,25 @@ Desligando o bloqueio (`[blockDecimalOverflow]="false"`), a digitação volta a
|
|
|
239
262
|
/>
|
|
240
263
|
```
|
|
241
264
|
|
|
265
|
+
### Campo com limite de dígitos significativos (`precision`, opt-in)
|
|
266
|
+
|
|
267
|
+
Ao definir `precision`, o campo ganha um `maxLength` nativo calculado automaticamente, um `placeholder` auto-calculado (quando não informado) e passa a rejeitar colagens que excedam o limite, emitindo `pasteRejected`:
|
|
268
|
+
|
|
269
|
+
```html
|
|
270
|
+
<input
|
|
271
|
+
type="text"
|
|
272
|
+
sNumericMask
|
|
273
|
+
locale="pt-BR"
|
|
274
|
+
[minDecimalPlaces]="2"
|
|
275
|
+
[maxDecimalPlaces]="2"
|
|
276
|
+
[precision]="15"
|
|
277
|
+
(pasteRejected)="onPasteRejected($event)"
|
|
278
|
+
[(ngModel)]="valor"
|
|
279
|
+
/>
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
Sem `precision` (o padrão), nada disso é aplicado — o comportamento é idêntico ao de antes desse input existir.
|
|
283
|
+
|
|
242
284
|
## Acessibilidade
|
|
243
285
|
|
|
244
286
|
- Define automaticamente `inputmode="decimal"` no elemento host para exibir teclado numérico em dispositivos móveis
|
|
@@ -250,6 +292,7 @@ Desligando o bloqueio (`[blockDecimalOverflow]="false"`), a digitação volta a
|
|
|
250
292
|
|
|
251
293
|
- [`NumericPipe`](../numeric/README.md) — formatação de valores numéricos para exibição somente leitura
|
|
252
294
|
- [`NumberInput`](../number-input/src/lib/number-input/README.md) — diretiva descontinuada, use `sNumericMask` em seu lugar
|
|
295
|
+
- [`BignumberInput`](../bignumber-input/README.md) — diretiva descontinuada que estende `NumericMaskDirective`; usa `precision`, `maxLength`, `placeholder` auto-calculado e `pasteRejected` sempre ativos (via `precision` com default `15`)
|
|
253
296
|
|
|
254
297
|
## Migração
|
|
255
298
|
|