@seniorsistemas/angular-components 19.9.15 → 19.10.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/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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, EventEmitter, forwardRef, Component, Input, Output, ViewChild
|
|
2
|
+
import { inject, NgModule, EventEmitter, forwardRef, Component, Input, Output, ViewChild } from '@angular/core';
|
|
3
3
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { ReplaySubject, Subject } from 'rxjs';
|
|
5
|
-
import {
|
|
5
|
+
import { takeUntil, take } from 'rxjs/operators';
|
|
6
6
|
import { setDiagnostics } from '@codemirror/lint';
|
|
7
7
|
import { StateField, StateEffect, EditorState } from '@codemirror/state';
|
|
8
8
|
import { EditorView } from '@codemirror/view';
|
|
@@ -134,153 +134,6 @@ class CoreFacade {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
/* eslint-disable @angular-eslint/no-output-on-prefix */
|
|
138
|
-
/**
|
|
139
|
-
* @description Componente de editor de código com syntax highlighting, construído sobre
|
|
140
|
-
* um editor Monaco/CodeMirror. Implementa {@link ControlValueAccessor} para integração
|
|
141
|
-
* com formulários Angular e suporta configuração de linguagem, tema e opções avançadas
|
|
142
|
-
* do editor via `editorOptions`.
|
|
143
|
-
*
|
|
144
|
-
* @example
|
|
145
|
-
* ```html
|
|
146
|
-
* <s-code-editor
|
|
147
|
-
* formControlName="script"
|
|
148
|
-
* [editorOptions]="{ language: 'javascript', theme: 'vs-dark' }"
|
|
149
|
-
* (codeChange)="onCodeChange($event)" />
|
|
150
|
-
* ```
|
|
151
|
-
*
|
|
152
|
-
* @category Inputs
|
|
153
|
-
*/
|
|
154
|
-
class CodeEditorComponent {
|
|
155
|
-
coreFacade = inject(CoreFacade);
|
|
156
|
-
/**
|
|
157
|
-
* @description Opções de configuração do editor (linguagem, tema, readonly, etc.).
|
|
158
|
-
* Ao atribuir um novo valor, as opções são aplicadas imediatamente ao editor.
|
|
159
|
-
*/
|
|
160
|
-
set editorOptions(options) {
|
|
161
|
-
if (options) {
|
|
162
|
-
this.coreFacade.changeEditorOptions(options);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* @description Conteúdo textual do editor. Ao atribuir, o código é propagado ao núcleo do editor.
|
|
167
|
-
*/
|
|
168
|
-
set code(code) {
|
|
169
|
-
this.coreFacade.changeCode(code);
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* @description Indica se o código atual é válido segundo as regras do editor.
|
|
173
|
-
* Pode ser usado para exibir indicadores visuais de erro.
|
|
174
|
-
*
|
|
175
|
-
* @default false
|
|
176
|
-
*/
|
|
177
|
-
isCodeValid = false;
|
|
178
|
-
/**
|
|
179
|
-
* @description Payload adicional passado ao núcleo do editor, utilizado para
|
|
180
|
-
* contexto de autocompletar ou validações específicas da linguagem.
|
|
181
|
-
*/
|
|
182
|
-
set payload(payload) {
|
|
183
|
-
this.coreFacade.setPayload(payload);
|
|
184
|
-
}
|
|
185
|
-
/** @description Emitido sempre que o conteúdo do editor é alterado. Emite o código atual como string. */
|
|
186
|
-
codeChange = new EventEmitter();
|
|
187
|
-
/** @description Emitido quando o estado de validade do código muda. */
|
|
188
|
-
isCodeValidChange = new EventEmitter();
|
|
189
|
-
/**
|
|
190
|
-
* @deprecated Use `codeChange` ao invés deste output.
|
|
191
|
-
* @description Emitido sempre que o conteúdo do editor é alterado.
|
|
192
|
-
*/
|
|
193
|
-
onCodeChange = new EventEmitter();
|
|
194
|
-
/** @description Emitido quando o componente finaliza o carregamento e o editor está pronto para uso. */
|
|
195
|
-
onComponentFinishLoad = new EventEmitter();
|
|
196
|
-
coreWrapperElement = null;
|
|
197
|
-
_ngUnsubscribe = new Subject();
|
|
198
|
-
_onChange = () => { };
|
|
199
|
-
_onTouched = () => { };
|
|
200
|
-
writeValue(value) {
|
|
201
|
-
this.code = value;
|
|
202
|
-
}
|
|
203
|
-
registerOnChange(onChange) {
|
|
204
|
-
this._onChange = onChange;
|
|
205
|
-
}
|
|
206
|
-
registerOnTouched(onTouched) {
|
|
207
|
-
this._onTouched = onTouched;
|
|
208
|
-
}
|
|
209
|
-
ngOnInit() {
|
|
210
|
-
this.coreFacade.initCore();
|
|
211
|
-
this.setupCoreListeners();
|
|
212
|
-
}
|
|
213
|
-
ngAfterViewInit() {
|
|
214
|
-
this.setCoreWrapperElement();
|
|
215
|
-
}
|
|
216
|
-
ngOnDestroy() {
|
|
217
|
-
this.coreFacade.destroyCore();
|
|
218
|
-
this._ngUnsubscribe.next();
|
|
219
|
-
this._ngUnsubscribe.complete();
|
|
220
|
-
}
|
|
221
|
-
setCoreWrapperElement() {
|
|
222
|
-
this.coreFacade.setCoreWrapperElement(this.coreWrapperElement?.nativeElement);
|
|
223
|
-
}
|
|
224
|
-
setupCoreListeners() {
|
|
225
|
-
this.coreFacade
|
|
226
|
-
.getOnCoreFinishLoadObservable()
|
|
227
|
-
.pipe(take(1))
|
|
228
|
-
.subscribe(() => this.onComponentFinishLoad.emit());
|
|
229
|
-
this.coreFacade
|
|
230
|
-
.getOnCodeChangeObservable()
|
|
231
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
232
|
-
.subscribe((code) => {
|
|
233
|
-
this.codeChange.emit(code);
|
|
234
|
-
this.onCodeChange.emit(code);
|
|
235
|
-
this._onTouched();
|
|
236
|
-
this._onChange(code);
|
|
237
|
-
});
|
|
238
|
-
this.coreFacade
|
|
239
|
-
.getOnCodeValidityChangeObservable()
|
|
240
|
-
.pipe(takeUntil(this._ngUnsubscribe))
|
|
241
|
-
.subscribe((validity) => {
|
|
242
|
-
this.isCodeValidChange.emit(validity);
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CodeEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
246
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CodeEditorComponent, isStandalone: true, selector: "s-code-editor", inputs: { editorOptions: "editorOptions", code: "code", isCodeValid: "isCodeValid", payload: "payload" }, outputs: { codeChange: "codeChange", isCodeValidChange: "isCodeValidChange", onCodeChange: "onCodeChange", onComponentFinishLoad: "onComponentFinishLoad" }, providers: [
|
|
247
|
-
{
|
|
248
|
-
provide: NG_VALUE_ACCESSOR,
|
|
249
|
-
useExisting: forwardRef(() => CodeEditorComponent),
|
|
250
|
-
multi: true,
|
|
251
|
-
},
|
|
252
|
-
], viewQueries: [{ propertyName: "coreWrapperElement", first: true, predicate: ["coreWrapper"], descendants: true }], ngImport: i0, template: "<div #coreWrapper class=\"core-wrapper\"></div>", styles: [".core-wrapper{height:100%;border:1px solid #c1c1cc;border-radius:3px}\n"] });
|
|
253
|
-
}
|
|
254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CodeEditorComponent, decorators: [{
|
|
255
|
-
type: Component,
|
|
256
|
-
args: [{ selector: 's-code-editor', providers: [
|
|
257
|
-
{
|
|
258
|
-
provide: NG_VALUE_ACCESSOR,
|
|
259
|
-
useExisting: forwardRef(() => CodeEditorComponent),
|
|
260
|
-
multi: true,
|
|
261
|
-
},
|
|
262
|
-
], standalone: true, template: "<div #coreWrapper class=\"core-wrapper\"></div>", styles: [".core-wrapper{height:100%;border:1px solid #c1c1cc;border-radius:3px}\n"] }]
|
|
263
|
-
}], propDecorators: { editorOptions: [{
|
|
264
|
-
type: Input
|
|
265
|
-
}], code: [{
|
|
266
|
-
type: Input
|
|
267
|
-
}], isCodeValid: [{
|
|
268
|
-
type: Input
|
|
269
|
-
}], payload: [{
|
|
270
|
-
type: Input
|
|
271
|
-
}], codeChange: [{
|
|
272
|
-
type: Output
|
|
273
|
-
}], isCodeValidChange: [{
|
|
274
|
-
type: Output
|
|
275
|
-
}], onCodeChange: [{
|
|
276
|
-
type: Output
|
|
277
|
-
}], onComponentFinishLoad: [{
|
|
278
|
-
type: Output
|
|
279
|
-
}], coreWrapperElement: [{
|
|
280
|
-
type: ViewChild,
|
|
281
|
-
args: ['coreWrapper']
|
|
282
|
-
}] } });
|
|
283
|
-
|
|
284
137
|
var parserGrammar = `
|
|
285
138
|
@top Script { statement+ }
|
|
286
139
|
|
|
@@ -1565,27 +1418,178 @@ class CodeMirror6Core extends CoreFacade {
|
|
|
1565
1418
|
}
|
|
1566
1419
|
}
|
|
1567
1420
|
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1421
|
+
/* eslint-disable @angular-eslint/no-output-on-prefix */
|
|
1422
|
+
/**
|
|
1423
|
+
* @description Componente de editor de código com syntax highlighting, construído sobre
|
|
1424
|
+
* um editor Monaco/CodeMirror. Implementa {@link ControlValueAccessor} para integração
|
|
1425
|
+
* com formulários Angular e suporta configuração de linguagem, tema e opções avançadas
|
|
1426
|
+
* do editor via `editorOptions`.
|
|
1427
|
+
*
|
|
1428
|
+
* @example
|
|
1429
|
+
* ```html
|
|
1430
|
+
* <s-code-editor
|
|
1431
|
+
* formControlName="script"
|
|
1432
|
+
* [editorOptions]="{ language: 'javascript', theme: 'vs-dark' }"
|
|
1433
|
+
* (codeChange)="onCodeChange($event)" />
|
|
1434
|
+
* ```
|
|
1435
|
+
*
|
|
1436
|
+
* @category Inputs
|
|
1437
|
+
*/
|
|
1438
|
+
class CodeEditorComponent {
|
|
1439
|
+
coreFacade = inject(CoreFacade);
|
|
1440
|
+
/**
|
|
1441
|
+
* @description Opções de configuração do editor (linguagem, tema, readonly, etc.).
|
|
1442
|
+
* Ao atribuir um novo valor, as opções são aplicadas imediatamente ao editor.
|
|
1443
|
+
*/
|
|
1444
|
+
set editorOptions(options) {
|
|
1445
|
+
if (options) {
|
|
1446
|
+
this.coreFacade.changeEditorOptions(options);
|
|
1447
|
+
}
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* @description Conteúdo textual do editor. Ao atribuir, o código é propagado ao núcleo do editor.
|
|
1451
|
+
*/
|
|
1452
|
+
set code(code) {
|
|
1453
|
+
this.coreFacade.changeCode(code);
|
|
1454
|
+
}
|
|
1455
|
+
/**
|
|
1456
|
+
* @description Indica se o código atual é válido segundo as regras do editor.
|
|
1457
|
+
* Pode ser usado para exibir indicadores visuais de erro.
|
|
1458
|
+
*
|
|
1459
|
+
* @default false
|
|
1460
|
+
*/
|
|
1461
|
+
isCodeValid = false;
|
|
1462
|
+
/**
|
|
1463
|
+
* @description Payload adicional passado ao núcleo do editor, utilizado para
|
|
1464
|
+
* contexto de autocompletar ou validações específicas da linguagem.
|
|
1465
|
+
*/
|
|
1466
|
+
set payload(payload) {
|
|
1467
|
+
this.coreFacade.setPayload(payload);
|
|
1468
|
+
}
|
|
1469
|
+
/** @description Emitido sempre que o conteúdo do editor é alterado. Emite o código atual como string. */
|
|
1470
|
+
codeChange = new EventEmitter();
|
|
1471
|
+
/** @description Emitido quando o estado de validade do código muda. */
|
|
1472
|
+
isCodeValidChange = new EventEmitter();
|
|
1473
|
+
/**
|
|
1474
|
+
* @deprecated Use `codeChange` ao invés deste output.
|
|
1475
|
+
* @description Emitido sempre que o conteúdo do editor é alterado.
|
|
1476
|
+
*/
|
|
1477
|
+
onCodeChange = new EventEmitter();
|
|
1478
|
+
/** @description Emitido quando o componente finaliza o carregamento e o editor está pronto para uso. */
|
|
1479
|
+
onComponentFinishLoad = new EventEmitter();
|
|
1480
|
+
coreWrapperElement = null;
|
|
1481
|
+
_ngUnsubscribe = new Subject();
|
|
1482
|
+
_onChange = () => { };
|
|
1483
|
+
_onTouched = () => { };
|
|
1484
|
+
writeValue(value) {
|
|
1485
|
+
this.code = value;
|
|
1486
|
+
}
|
|
1487
|
+
registerOnChange(onChange) {
|
|
1488
|
+
this._onChange = onChange;
|
|
1489
|
+
}
|
|
1490
|
+
registerOnTouched(onTouched) {
|
|
1491
|
+
this._onTouched = onTouched;
|
|
1492
|
+
}
|
|
1493
|
+
ngOnInit() {
|
|
1494
|
+
this.coreFacade.initCore();
|
|
1495
|
+
this.setupCoreListeners();
|
|
1496
|
+
}
|
|
1497
|
+
ngAfterViewInit() {
|
|
1498
|
+
this.setCoreWrapperElement();
|
|
1499
|
+
}
|
|
1500
|
+
ngOnDestroy() {
|
|
1501
|
+
this.coreFacade.destroyCore();
|
|
1502
|
+
this._ngUnsubscribe.next();
|
|
1503
|
+
this._ngUnsubscribe.complete();
|
|
1504
|
+
}
|
|
1505
|
+
setCoreWrapperElement() {
|
|
1506
|
+
this.coreFacade.setCoreWrapperElement(this.coreWrapperElement?.nativeElement);
|
|
1507
|
+
}
|
|
1508
|
+
setupCoreListeners() {
|
|
1509
|
+
this.coreFacade
|
|
1510
|
+
.getOnCoreFinishLoadObservable()
|
|
1511
|
+
.pipe(take(1))
|
|
1512
|
+
.subscribe(() => this.onComponentFinishLoad.emit());
|
|
1513
|
+
this.coreFacade
|
|
1514
|
+
.getOnCodeChangeObservable()
|
|
1515
|
+
.pipe(takeUntil(this._ngUnsubscribe))
|
|
1516
|
+
.subscribe((code) => {
|
|
1517
|
+
this.codeChange.emit(code);
|
|
1518
|
+
this.onCodeChange.emit(code);
|
|
1519
|
+
this._onTouched();
|
|
1520
|
+
this._onChange(code);
|
|
1521
|
+
});
|
|
1522
|
+
this.coreFacade
|
|
1523
|
+
.getOnCodeValidityChangeObservable()
|
|
1524
|
+
.pipe(takeUntil(this._ngUnsubscribe))
|
|
1525
|
+
.subscribe((validity) => {
|
|
1526
|
+
this.isCodeValidChange.emit(validity);
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1529
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CodeEditorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1530
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CodeEditorComponent, isStandalone: true, selector: "s-code-editor", inputs: { editorOptions: "editorOptions", code: "code", isCodeValid: "isCodeValid", payload: "payload" }, outputs: { codeChange: "codeChange", isCodeValidChange: "isCodeValidChange", onCodeChange: "onCodeChange", onComponentFinishLoad: "onComponentFinishLoad" }, providers: [
|
|
1531
|
+
{
|
|
1532
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1533
|
+
useExisting: forwardRef(() => CodeEditorComponent),
|
|
1534
|
+
multi: true,
|
|
1535
|
+
},
|
|
1572
1536
|
{
|
|
1573
1537
|
provide: CoreFacade,
|
|
1574
1538
|
useClass: CodeMirror6Core,
|
|
1575
1539
|
},
|
|
1576
|
-
] });
|
|
1540
|
+
], viewQueries: [{ propertyName: "coreWrapperElement", first: true, predicate: ["coreWrapper"], descendants: true }], ngImport: i0, template: "<div #coreWrapper class=\"core-wrapper\"></div>", styles: [".core-wrapper{height:100%;border:1px solid #c1c1cc;border-radius:3px}\n"] });
|
|
1541
|
+
}
|
|
1542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CodeEditorComponent, decorators: [{
|
|
1543
|
+
type: Component,
|
|
1544
|
+
args: [{ selector: 's-code-editor', providers: [
|
|
1545
|
+
{
|
|
1546
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1547
|
+
useExisting: forwardRef(() => CodeEditorComponent),
|
|
1548
|
+
multi: true,
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
provide: CoreFacade,
|
|
1552
|
+
useClass: CodeMirror6Core,
|
|
1553
|
+
},
|
|
1554
|
+
], standalone: true, template: "<div #coreWrapper class=\"core-wrapper\"></div>", styles: [".core-wrapper{height:100%;border:1px solid #c1c1cc;border-radius:3px}\n"] }]
|
|
1555
|
+
}], propDecorators: { editorOptions: [{
|
|
1556
|
+
type: Input
|
|
1557
|
+
}], code: [{
|
|
1558
|
+
type: Input
|
|
1559
|
+
}], isCodeValid: [{
|
|
1560
|
+
type: Input
|
|
1561
|
+
}], payload: [{
|
|
1562
|
+
type: Input
|
|
1563
|
+
}], codeChange: [{
|
|
1564
|
+
type: Output
|
|
1565
|
+
}], isCodeValidChange: [{
|
|
1566
|
+
type: Output
|
|
1567
|
+
}], onCodeChange: [{
|
|
1568
|
+
type: Output
|
|
1569
|
+
}], onComponentFinishLoad: [{
|
|
1570
|
+
type: Output
|
|
1571
|
+
}], coreWrapperElement: [{
|
|
1572
|
+
type: ViewChild,
|
|
1573
|
+
args: ['coreWrapper']
|
|
1574
|
+
}] } });
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* @deprecated Será removido na v20. Importe diretamente o standalone `CodeEditorComponent` (de
|
|
1578
|
+
* `@seniorsistemas/angular-components/code-editor`) no lugar deste módulo.
|
|
1579
|
+
*
|
|
1580
|
+
* Migração automática (também executada pelo `ng update` na v20):
|
|
1581
|
+
* `ng generate @seniorsistemas/angular-components:migrate-modules-to-standalone`
|
|
1582
|
+
*/
|
|
1583
|
+
class CodeEditorModule {
|
|
1584
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CodeEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1585
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: CodeEditorModule, imports: [CodeEditorComponent], exports: [CodeEditorComponent] });
|
|
1586
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CodeEditorModule });
|
|
1577
1587
|
}
|
|
1578
1588
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CodeEditorModule, decorators: [{
|
|
1579
1589
|
type: NgModule,
|
|
1580
1590
|
args: [{
|
|
1581
1591
|
imports: [CodeEditorComponent],
|
|
1582
1592
|
exports: [CodeEditorComponent],
|
|
1583
|
-
providers: [
|
|
1584
|
-
{
|
|
1585
|
-
provide: CoreFacade,
|
|
1586
|
-
useClass: CodeMirror6Core,
|
|
1587
|
-
},
|
|
1588
|
-
],
|
|
1589
1593
|
}]
|
|
1590
1594
|
}] });
|
|
1591
1595
|
|