@seniorsistemas/angular-components 19.9.14 → 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.component.d.ts +2 -0
- 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.component.d.ts +1 -0
- 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/components/lookup/lookup.component.d.ts +0 -1
- 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.component.mjs +17 -3
- 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/chips.component.mjs +3 -3
- 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.component.mjs +12 -7
- 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/datepicker/lib/datepicker/datepicker.component.mjs +3 -3
- package/esm2022/drawer/lib/drawer/drawer.module.mjs +11 -1
- package/esm2022/dynamic-form/dynamic-form/components/lookup/lookup.component.mjs +3 -5
- 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/text-area.component.mjs +3 -3
- 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 +23 -2
- 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 +9 -2
- 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 +21 -8
- 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-datepicker.mjs +2 -2
- package/fesm2022/seniorsistemas-angular-components-datepicker.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 +54 -212
- 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 +9 -2
- 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
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isInteractive = isInteractive;
|
|
4
|
+
exports.loadInquirer = loadInquirer;
|
|
5
|
+
exports.resetInquirerCache = resetInquirerCache;
|
|
6
|
+
exports.renderChecklist = renderChecklist;
|
|
7
|
+
exports.askMigrations = askMigrations;
|
|
8
|
+
exports.askConfirm = askConfirm;
|
|
9
|
+
exports.askInput = askInput;
|
|
10
|
+
exports.askChoices = askChoices;
|
|
11
|
+
const path = require("path");
|
|
12
|
+
const selection_1 = require("./selection");
|
|
13
|
+
function isInteractive() {
|
|
14
|
+
return Boolean(process.stdin.isTTY && process.stdout.isTTY) && !process.env['CI'];
|
|
15
|
+
}
|
|
16
|
+
function resolveFrom(request, fromDir) {
|
|
17
|
+
return require.resolve(request, { paths: [fromDir] });
|
|
18
|
+
}
|
|
19
|
+
let cached;
|
|
20
|
+
/** Carrega o inquirer do `@angular/cli` do projeto. Retorna `null` quando indisponível. */
|
|
21
|
+
function loadInquirer(cwd = process.cwd()) {
|
|
22
|
+
if (cached !== undefined)
|
|
23
|
+
return cached;
|
|
24
|
+
try {
|
|
25
|
+
const cliDir = path.dirname(resolveFrom('@angular/cli/package.json', cwd));
|
|
26
|
+
const promptsEntry = resolveFrom('@inquirer/prompts', cliDir);
|
|
27
|
+
const prompts = require(promptsEntry);
|
|
28
|
+
let core;
|
|
29
|
+
try {
|
|
30
|
+
core = require(resolveFrom('@inquirer/core', path.dirname(promptsEntry)));
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
core = undefined;
|
|
34
|
+
}
|
|
35
|
+
cached = { core, prompts };
|
|
36
|
+
}
|
|
37
|
+
catch {
|
|
38
|
+
cached = null;
|
|
39
|
+
}
|
|
40
|
+
return cached;
|
|
41
|
+
}
|
|
42
|
+
/** Só para testes. */
|
|
43
|
+
function resetInquirerCache() {
|
|
44
|
+
cached = undefined;
|
|
45
|
+
}
|
|
46
|
+
const CHECKED = '◉';
|
|
47
|
+
const UNCHECKED = '○';
|
|
48
|
+
const POINTER = '❯';
|
|
49
|
+
/** Renderiza o checkbox (função pura, usada pelo prompt e testável). */
|
|
50
|
+
function renderChecklist(message, entries, state, activeIndex) {
|
|
51
|
+
const lines = entries.map((entry, index) => {
|
|
52
|
+
const checked = entry.id === selection_1.ALL_ID ? (0, selection_1.isAllChecked)(state) : state.checked[entry.id];
|
|
53
|
+
const cursor = index === activeIndex ? POINTER : ' ';
|
|
54
|
+
return `${cursor}${checked ? CHECKED : UNCHECKED} ${entry.label}`;
|
|
55
|
+
});
|
|
56
|
+
return `? ${message} (espaço marca/desmarca, enter confirma)\n${lines.join('\n')}`;
|
|
57
|
+
}
|
|
58
|
+
function buildChecklistPrompt(core) {
|
|
59
|
+
const prompt = core.createPrompt((config, done) => {
|
|
60
|
+
const entries = [{ id: selection_1.ALL_ID, label: 'Marcar todos' }, ...config.items];
|
|
61
|
+
const [state, setState] = core.useState((0, selection_1.createSelection)(config.items.map((item) => item.id)));
|
|
62
|
+
const [active, setActive] = core.useState(0);
|
|
63
|
+
const [finished, setFinished] = core.useState(false);
|
|
64
|
+
core.useKeypress((key) => {
|
|
65
|
+
switch (key.name) {
|
|
66
|
+
case 'return':
|
|
67
|
+
case 'enter':
|
|
68
|
+
setFinished(true);
|
|
69
|
+
done((0, selection_1.selectedIds)(state));
|
|
70
|
+
break;
|
|
71
|
+
case 'up':
|
|
72
|
+
setActive((active - 1 + entries.length) % entries.length);
|
|
73
|
+
break;
|
|
74
|
+
case 'down':
|
|
75
|
+
setActive((active + 1) % entries.length);
|
|
76
|
+
break;
|
|
77
|
+
case 'space':
|
|
78
|
+
setState((0, selection_1.toggleItem)(state, entries[active].id));
|
|
79
|
+
break;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
if (finished) {
|
|
83
|
+
const chosen = (0, selection_1.selectedIds)(state);
|
|
84
|
+
return `? ${config.message} ${chosen.length === config.items.length ? 'todos' : chosen.length + ' item(ns)'}`;
|
|
85
|
+
}
|
|
86
|
+
return renderChecklist(config.message, entries, state, active);
|
|
87
|
+
});
|
|
88
|
+
return (config) => prompt(config);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Pergunta quais itens executar, com "Marcar todos" sincronizado. Retorna os ids escolhidos, ou
|
|
92
|
+
* `undefined` se não houver como perguntar (quem chama deve então rodar tudo).
|
|
93
|
+
*/
|
|
94
|
+
async function askMigrations(message, items) {
|
|
95
|
+
if (!isInteractive())
|
|
96
|
+
return undefined;
|
|
97
|
+
const inquirer = loadInquirer();
|
|
98
|
+
if (!inquirer)
|
|
99
|
+
return undefined;
|
|
100
|
+
try {
|
|
101
|
+
if (inquirer.core) {
|
|
102
|
+
return await buildChecklistPrompt(inquirer.core)({ message, items });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
// cai para o checkbox padrão
|
|
107
|
+
}
|
|
108
|
+
try {
|
|
109
|
+
// Fallback sem sincronização ao vivo: "Marcar todos" vale ao confirmar.
|
|
110
|
+
const answer = await inquirer.prompts.checkbox({
|
|
111
|
+
message,
|
|
112
|
+
choices: [
|
|
113
|
+
{ name: 'Marcar todos', value: selection_1.ALL_ID },
|
|
114
|
+
...items.map((item) => ({ name: item.label, value: item.id, checked: true })),
|
|
115
|
+
],
|
|
116
|
+
});
|
|
117
|
+
return answer.includes(selection_1.ALL_ID) ? items.map((item) => item.id) : answer;
|
|
118
|
+
}
|
|
119
|
+
catch {
|
|
120
|
+
return undefined;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
async function askConfirm(message, defaultValue) {
|
|
124
|
+
if (!isInteractive())
|
|
125
|
+
return defaultValue;
|
|
126
|
+
const inquirer = loadInquirer();
|
|
127
|
+
if (!inquirer)
|
|
128
|
+
return defaultValue;
|
|
129
|
+
try {
|
|
130
|
+
return await inquirer.prompts.confirm({ message, default: defaultValue });
|
|
131
|
+
}
|
|
132
|
+
catch {
|
|
133
|
+
return defaultValue;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
async function askInput(message, defaultValue) {
|
|
137
|
+
if (!isInteractive())
|
|
138
|
+
return defaultValue;
|
|
139
|
+
const inquirer = loadInquirer();
|
|
140
|
+
if (!inquirer)
|
|
141
|
+
return defaultValue;
|
|
142
|
+
try {
|
|
143
|
+
return (await inquirer.prompts.input({ message, default: defaultValue })) || defaultValue;
|
|
144
|
+
}
|
|
145
|
+
catch {
|
|
146
|
+
return defaultValue;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/** Checkbox simples (sem "Marcar todos"). Retorna `undefined` se não for possível perguntar. */
|
|
150
|
+
async function askChoices(message, items, checkedByDefault = true) {
|
|
151
|
+
if (!isInteractive())
|
|
152
|
+
return undefined;
|
|
153
|
+
const inquirer = loadInquirer();
|
|
154
|
+
if (!inquirer)
|
|
155
|
+
return undefined;
|
|
156
|
+
try {
|
|
157
|
+
return await inquirer.prompts.checkbox({
|
|
158
|
+
message,
|
|
159
|
+
choices: items.map((item) => ({ name: item.label, value: item.id, checked: checkedByDefault })),
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
catch {
|
|
163
|
+
return undefined;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=prompt-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-utils.js","sourceRoot":"","sources":["../../../projects/angular-components/schematics/utils/prompt-utils.ts"],"names":[],"mappings":";;AAqCA,sCAEC;AASD,oCAiBC;AAGD,gDAEC;AAOD,0CAYC;AAyCD,sCA0BC;AAED,gCASC;AAED,4BASC;AAGD,gCAgBC;AArMD,6BAA6B;AAC7B,2CAA6G;AAoC7G,SAAgB,aAAa;IACzB,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;AACtF,CAAC;AAED,SAAS,WAAW,CAAC,OAAe,EAAE,OAAe;IACjD,OAAO,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAC1D,CAAC;AAED,IAAI,MAAyC,CAAC;AAE9C,2FAA2F;AAC3F,SAAgB,YAAY,CAAC,MAAc,OAAO,CAAC,GAAG,EAAE;IACpD,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,MAAM,CAAC;IACxC,IAAI,CAAC;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,2BAA2B,EAAE,GAAG,CAAC,CAAC,CAAC;QAC3E,MAAM,YAAY,GAAG,WAAW,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,YAAY,CAAoB,CAAC;QACzD,IAAI,IAA8B,CAAC;QACnC,IAAI,CAAC;YACD,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,IAAI,CAAC,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,gBAAgB,GAAG,IAAI;IAEvB,IAAI,CAAC,aAAa,EAAE;QAAE,OAAO,SAAS,CAAC;IACvC,MAAM,QAAQ,GAAG,YAAY,EAAE,CAAC;IAChC,IAAI,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAC;IAChC,IAAI,CAAC;QACD,OAAO,MAAM,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC;YACnC,OAAO;YACP,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,gBAAgB,EAAE,CAAC,CAAC;SAClG,CAAC,CAAC;IACP,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,SAAS,CAAC;IACrB,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SchematicContext } from '@angular-devkit/schematics';
|
|
2
|
+
export interface ManualItem {
|
|
3
|
+
/** Arquivo (com barra inicial, como o `Tree` fornece). */
|
|
4
|
+
file: string;
|
|
5
|
+
/** Linha (1-based), quando conhecida. */
|
|
6
|
+
line?: number;
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Coletor compartilhado entre os schematics de uma execução: cada um registra os arquivos que alterou
|
|
11
|
+
* e o que precisa de ação manual, e o orquestrador imprime o resumo no final.
|
|
12
|
+
*/
|
|
13
|
+
export declare class MigrationReport {
|
|
14
|
+
private readonly changed;
|
|
15
|
+
private readonly manual;
|
|
16
|
+
markChanged(item: string, file: string): void;
|
|
17
|
+
addManual(item: string, entry: ManualItem, context?: SchematicContext): void;
|
|
18
|
+
changedCount(item: string): number;
|
|
19
|
+
manualItems(item: string): ManualItem[];
|
|
20
|
+
hasManual(): boolean;
|
|
21
|
+
/** Linhas do resumo final, uma por item executado, seguidas das pendências manuais. */
|
|
22
|
+
summary(executed: Array<{
|
|
23
|
+
id: string;
|
|
24
|
+
label: string;
|
|
25
|
+
}>): string[];
|
|
26
|
+
}
|
|
27
|
+
export declare function lineOf(content: string, index: number): number;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MigrationReport = void 0;
|
|
4
|
+
exports.lineOf = lineOf;
|
|
5
|
+
/**
|
|
6
|
+
* Coletor compartilhado entre os schematics de uma execução: cada um registra os arquivos que alterou
|
|
7
|
+
* e o que precisa de ação manual, e o orquestrador imprime o resumo no final.
|
|
8
|
+
*/
|
|
9
|
+
class MigrationReport {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.changed = new Map();
|
|
12
|
+
this.manual = new Map();
|
|
13
|
+
}
|
|
14
|
+
markChanged(item, file) {
|
|
15
|
+
if (!this.changed.has(item))
|
|
16
|
+
this.changed.set(item, new Set());
|
|
17
|
+
this.changed.get(item).add(file);
|
|
18
|
+
}
|
|
19
|
+
addManual(item, entry, context) {
|
|
20
|
+
if (!this.manual.has(item))
|
|
21
|
+
this.manual.set(item, []);
|
|
22
|
+
this.manual.get(item).push(entry);
|
|
23
|
+
context?.logger.warn(`${formatLocation(entry)}: ${entry.message}`);
|
|
24
|
+
}
|
|
25
|
+
changedCount(item) {
|
|
26
|
+
return this.changed.get(item)?.size ?? 0;
|
|
27
|
+
}
|
|
28
|
+
manualItems(item) {
|
|
29
|
+
return this.manual.get(item) ?? [];
|
|
30
|
+
}
|
|
31
|
+
hasManual() {
|
|
32
|
+
return [...this.manual.values()].some((entries) => entries.length > 0);
|
|
33
|
+
}
|
|
34
|
+
/** Linhas do resumo final, uma por item executado, seguidas das pendências manuais. */
|
|
35
|
+
summary(executed) {
|
|
36
|
+
const lines = ['Resumo da migração:'];
|
|
37
|
+
for (const { id, label } of executed) {
|
|
38
|
+
lines.push(` - ${label}: ${this.changedCount(id)} arquivo(s) alterado(s)`);
|
|
39
|
+
}
|
|
40
|
+
if (!this.hasManual()) {
|
|
41
|
+
lines.push('Nenhuma pendência manual.');
|
|
42
|
+
return lines;
|
|
43
|
+
}
|
|
44
|
+
lines.push('Pendências manuais (a migração automática não conseguiu resolver):');
|
|
45
|
+
for (const { id, label } of executed) {
|
|
46
|
+
const entries = this.manualItems(id);
|
|
47
|
+
if (entries.length === 0)
|
|
48
|
+
continue;
|
|
49
|
+
lines.push(` ${label}:`);
|
|
50
|
+
for (const entry of entries) {
|
|
51
|
+
lines.push(` - ${formatLocation(entry)}: ${entry.message}`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return lines;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.MigrationReport = MigrationReport;
|
|
58
|
+
function formatLocation(entry) {
|
|
59
|
+
const file = entry.file.replace(/^\//, '');
|
|
60
|
+
return entry.line ? `${file}:${entry.line}` : file;
|
|
61
|
+
}
|
|
62
|
+
function lineOf(content, index) {
|
|
63
|
+
let line = 1;
|
|
64
|
+
for (let i = 0; i < index && i < content.length; i++) {
|
|
65
|
+
if (content.charCodeAt(i) === 10)
|
|
66
|
+
line++;
|
|
67
|
+
}
|
|
68
|
+
return line;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.js","sourceRoot":"","sources":["../../../projects/angular-components/schematics/utils/report.ts"],"names":[],"mappings":";;;AAuEA,wBAMC;AAnED;;;GAGG;AACH,MAAa,eAAe;IAA5B;QACqB,YAAO,GAAG,IAAI,GAAG,EAAuB,CAAC;QACzC,WAAM,GAAG,IAAI,GAAG,EAAwB,CAAC;IAgD9D,CAAC;IA9CG,WAAW,CAAC,IAAY,EAAE,IAAY;QAClC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;YAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,GAAG,EAAE,CAAC,CA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AAChB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SchematicContext, Tree } from '@angular-devkit/schematics';
|
|
2
|
+
export interface ScopeOptions {
|
|
3
|
+
/** Pasta (relativa à raiz do workspace) que limita a migração. */
|
|
4
|
+
path?: string;
|
|
5
|
+
/** Nome do projeto do angular.json que limita a migração. */
|
|
6
|
+
project?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Retorna a pasta (sem barra inicial/final) que delimita a migração, ou `''` para o workspace inteiro.
|
|
10
|
+
* `--path` tem precedência sobre `--project`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function resolveScopeDir(tree: Tree, options: ScopeOptions, context: SchematicContext): string;
|
|
13
|
+
/**
|
|
14
|
+
* Percorre os arquivos do `tree` respeitando `--path`/`--project` e ignorando `node_modules`.
|
|
15
|
+
* Caminhos chegam ao visitor como o `Tree` os fornece (com barra inicial).
|
|
16
|
+
*/
|
|
17
|
+
export declare function visitScopedFiles(tree: Tree, options: ScopeOptions, context: SchematicContext, visitor: (path: string) => void): void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resolveScopeDir = resolveScopeDir;
|
|
4
|
+
exports.visitScopedFiles = visitScopedFiles;
|
|
5
|
+
function normalizeDir(dir) {
|
|
6
|
+
const cleaned = dir.replace(/\\/g, '/').replace(/^\.\//, '').replace(/^\/+/, '').replace(/\/+$/, '');
|
|
7
|
+
return cleaned === '.' ? '' : cleaned;
|
|
8
|
+
}
|
|
9
|
+
function resolveProjectRoot(tree, project, context) {
|
|
10
|
+
const buffer = tree.read('angular.json');
|
|
11
|
+
if (!buffer) {
|
|
12
|
+
context.logger.warn(`angular.json não encontrado: a opção --project="${project}" foi ignorada.`);
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
const workspace = JSON.parse(buffer.toString('utf8'));
|
|
17
|
+
const entry = workspace.projects?.[project];
|
|
18
|
+
if (!entry) {
|
|
19
|
+
context.logger.warn(`Projeto "${project}" não existe no angular.json: a opção --project foi ignorada.`);
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
return normalizeDir(entry.root ?? '');
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
context.logger.warn('angular.json inválido: a opção --project foi ignorada.');
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Retorna a pasta (sem barra inicial/final) que delimita a migração, ou `''` para o workspace inteiro.
|
|
31
|
+
* `--path` tem precedência sobre `--project`.
|
|
32
|
+
*/
|
|
33
|
+
function resolveScopeDir(tree, options, context) {
|
|
34
|
+
if (options.path)
|
|
35
|
+
return normalizeDir(options.path);
|
|
36
|
+
if (options.project)
|
|
37
|
+
return resolveProjectRoot(tree, options.project, context) ?? '';
|
|
38
|
+
return '';
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Percorre os arquivos do `tree` respeitando `--path`/`--project` e ignorando `node_modules`.
|
|
42
|
+
* Caminhos chegam ao visitor como o `Tree` os fornece (com barra inicial).
|
|
43
|
+
*/
|
|
44
|
+
function visitScopedFiles(tree, options, context, visitor) {
|
|
45
|
+
const scopeDir = resolveScopeDir(tree, options, context);
|
|
46
|
+
const prefix = scopeDir ? `/${scopeDir}/` : '/';
|
|
47
|
+
tree.visit((path) => {
|
|
48
|
+
if (path.includes('/node_modules/'))
|
|
49
|
+
return;
|
|
50
|
+
if (!path.startsWith(prefix))
|
|
51
|
+
return;
|
|
52
|
+
visitor(path);
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scope.js","sourceRoot":"","sources":["../../../projects/angular-components/schematics/utils/scope.ts"],"names":[],"mappings":";;AAsCA,0CAIC;AAMD,4CAa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O,CAAC,IAAI;QAAE,OAAO,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,OAAO,CAAC,OAAO;QAAE,OAAO,kBAAkB,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE,CAAC;IACrF,OAAO,EAAE,CAAC;AACd,CAAC;AAED;;;GAGG;AACH,SAAgB,gBAAgB,CAC5B,IAAU,EACV,OAAqB,EACrB,OAAyB,EACzB,OAA+B;IAE/B,MAAM,QAAQ,GAAG,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;IACzD,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAChD,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE;QAChB,IAAI,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAAE,OAAO;QAC5C,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC;YAAE,OAAO;QACrC,OAAO,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Id reservado do item "Marcar todos". */
|
|
2
|
+
export declare const ALL_ID = "__all__";
|
|
3
|
+
export interface SelectionState {
|
|
4
|
+
/** Ids dos itens na ordem de exibição (sem o "Marcar todos"). */
|
|
5
|
+
ids: string[];
|
|
6
|
+
checked: Record<string, boolean>;
|
|
7
|
+
}
|
|
8
|
+
export declare function createSelection(ids: string[], initiallyChecked?: boolean): SelectionState;
|
|
9
|
+
export declare function isAllChecked(state: SelectionState): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Alterna um item. Marcar/desmarcar "Marcar todos" liga/desliga todos os itens; alternar um item isolado
|
|
12
|
+
* deixa "Marcar todos" marcado apenas quando todos estão marcados (o estado dele é derivado).
|
|
13
|
+
*/
|
|
14
|
+
export declare function toggleItem(state: SelectionState, id: string): SelectionState;
|
|
15
|
+
export declare function selectedIds(state: SelectionState): string[];
|
|
16
|
+
export interface ParsedItemList {
|
|
17
|
+
ids: string[];
|
|
18
|
+
unknown: string[];
|
|
19
|
+
}
|
|
20
|
+
/** Aceita `a,b`, `['a','b']` ou `['a,b']` e separa os ids válidos dos desconhecidos. */
|
|
21
|
+
export declare function parseItemList(raw: string | string[] | undefined, valid: string[]): ParsedItemList;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ALL_ID = void 0;
|
|
4
|
+
exports.createSelection = createSelection;
|
|
5
|
+
exports.isAllChecked = isAllChecked;
|
|
6
|
+
exports.toggleItem = toggleItem;
|
|
7
|
+
exports.selectedIds = selectedIds;
|
|
8
|
+
exports.parseItemList = parseItemList;
|
|
9
|
+
/** Id reservado do item "Marcar todos". */
|
|
10
|
+
exports.ALL_ID = '__all__';
|
|
11
|
+
function createSelection(ids, initiallyChecked = true) {
|
|
12
|
+
const checked = {};
|
|
13
|
+
for (const id of ids)
|
|
14
|
+
checked[id] = initiallyChecked;
|
|
15
|
+
return { ids: [...ids], checked };
|
|
16
|
+
}
|
|
17
|
+
function isAllChecked(state) {
|
|
18
|
+
return state.ids.length > 0 && state.ids.every((id) => state.checked[id]);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Alterna um item. Marcar/desmarcar "Marcar todos" liga/desliga todos os itens; alternar um item isolado
|
|
22
|
+
* deixa "Marcar todos" marcado apenas quando todos estão marcados (o estado dele é derivado).
|
|
23
|
+
*/
|
|
24
|
+
function toggleItem(state, id) {
|
|
25
|
+
const checked = { ...state.checked };
|
|
26
|
+
if (id === exports.ALL_ID) {
|
|
27
|
+
const next = !isAllChecked(state);
|
|
28
|
+
for (const item of state.ids)
|
|
29
|
+
checked[item] = next;
|
|
30
|
+
}
|
|
31
|
+
else if (id in checked) {
|
|
32
|
+
checked[id] = !checked[id];
|
|
33
|
+
}
|
|
34
|
+
return { ids: state.ids, checked };
|
|
35
|
+
}
|
|
36
|
+
function selectedIds(state) {
|
|
37
|
+
return state.ids.filter((id) => state.checked[id]);
|
|
38
|
+
}
|
|
39
|
+
/** Aceita `a,b`, `['a','b']` ou `['a,b']` e separa os ids válidos dos desconhecidos. */
|
|
40
|
+
function parseItemList(raw, valid) {
|
|
41
|
+
if (raw === undefined || raw === null)
|
|
42
|
+
return { ids: [], unknown: [] };
|
|
43
|
+
const parts = (Array.isArray(raw) ? raw : [raw])
|
|
44
|
+
.flatMap((entry) => String(entry).split(','))
|
|
45
|
+
.map((entry) => entry.trim())
|
|
46
|
+
.filter(Boolean);
|
|
47
|
+
const ids = [];
|
|
48
|
+
const unknown = [];
|
|
49
|
+
for (const part of parts) {
|
|
50
|
+
if (valid.includes(part)) {
|
|
51
|
+
if (!ids.includes(part))
|
|
52
|
+
ids.push(part);
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
unknown.push(part);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
return { ids, unknown };
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=selection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"selection.js","sourceRoot":"","sources":["../../../projects/angular-components/schematics/utils/selection.ts"],"names":[],"mappings":";;;AASA,0CAIC;AAED,oCAEC;AAMD,gCASC;AAED,kCAEC;AAQD,sCAgBC;AA5DD,2CAA2C;AAC9B,QAAA,MAAM,GAAG,SAAS,CAAC;AAQhC,SAAgB,eAAe,CAAC,GAAa,EAAE,gBAAgB,GAAG,IAAI;IAClE,MAAM,OAAO,GAA4B,EAAE,CAAC;IAC5C,KAAK,MAAM,EAAE,IAAI,GAAG;QAAE,OAAO,CAAC,EAAE,CAAC,GAAG,gBAAgB,CAAC;IACrD,OAAO,EAAE,GAAG,EAAE,CAAC,GAAG,GAAG,CAAC,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AC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;SAC3C,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;SAC5C,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;SAC5B,MAAM,CAAC,OAAO,CAAC,CAAC;IACrB,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;QACvB,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;gBAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5C,CAAC;aAAM,CAAC;YACJ,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,CAAC;IACL,CAAC;IACD,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as ts from 'typescript';
|
|
2
|
+
import { AstChange } from './ast-utils';
|
|
3
|
+
/** `false` para identificadores que não são uma referência ao símbolo (import, nome de propriedade, etc.). */
|
|
4
|
+
export declare function isReferenceIdentifier(node: ts.Identifier): boolean;
|
|
5
|
+
export declare function findReferences(sourceFile: ts.SourceFile, name: string): ts.Identifier[];
|
|
6
|
+
export declare function isArrayElement(node: ts.Identifier): boolean;
|
|
7
|
+
/** Import nomeado (sem alias) de `name` vindo exatamente de `moduleSpecifier`. */
|
|
8
|
+
export declare function findNamedImport(sourceFile: ts.SourceFile, name: string, moduleSpecifier: string): {
|
|
9
|
+
declaration: ts.ImportDeclaration;
|
|
10
|
+
element: ts.ImportSpecifier;
|
|
11
|
+
} | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Remove o identificador de todo array literal que o contém, preservando a formatação dos demais elementos.
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildRemoveFromArraysChanges(sourceFile: ts.SourceFile, name: string): AstChange[];
|
|
16
|
+
/**
|
|
17
|
+
* Troca `oldName` por `newName` dentro dos arrays literais, no lugar, sem reformatar o array.
|
|
18
|
+
* Se `newName` já está no array, o antigo é removido. Com `keepOld`, o novo é acrescentado logo depois do antigo.
|
|
19
|
+
*/
|
|
20
|
+
export declare function buildReplaceInArraysChanges(sourceFile: ts.SourceFile, oldName: string, newName: string, keepOld: boolean): AstChange[];
|
|
21
|
+
/**
|
|
22
|
+
* Quando uma mudança remove uma linha inteira (ex.: um `import` que ficou vazio), consome também a quebra de linha
|
|
23
|
+
* para não deixar uma linha em branco no lugar.
|
|
24
|
+
*/
|
|
25
|
+
export declare function consumeRemovedLineBreaks(content: string, changes: AstChange[]): AstChange[];
|
|
26
|
+
/**
|
|
27
|
+
* Standalone em `exports` de um `@NgModule` também precisa estar em `imports` do mesmo módulo (o compilador rejeita
|
|
28
|
+
* standalone só exportado: NG6004). Quando `oldName` está em `exports` e o `imports` não o tem (nem tem `newName`),
|
|
29
|
+
* acrescenta `newName` ao `imports` (cria a propriedade se ela não existir). Não mexe se `imports` não é um array literal.
|
|
30
|
+
*/
|
|
31
|
+
export declare function buildEnsureInModuleImportsChanges(sourceFile: ts.SourceFile, oldName: string, newName: string): AstChange[];
|