@seniorsistemas/angular-components 19.9.15-develop-11ab86f5 → 19.9.15
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 +2 -84
- package/accordion/README.md +4 -5
- package/accordion/lib/accordion/accordion.module.d.ts +0 -7
- package/alert/lib/alert/alert.module.d.ts +0 -7
- package/badge/README.md +4 -5
- package/badge/lib/badge/badge.module.d.ts +0 -10
- package/bignumber-input/README.md +4 -5
- package/bignumber-input/lib/bignumber-input/bignumber-input.directive.d.ts +39 -16
- package/bignumber-input/lib/bignumber-input/bignumber-input.module.d.ts +0 -7
- package/breadcrumb/README.md +4 -5
- package/breadcrumb/lib/dynamic-breadcrumb/dynamic-breadcrumb.module.d.ts +1 -5
- package/button/lib/button/button.module.d.ts +0 -7
- package/calendar-mask/README.md +4 -5
- package/calendar-mask/lib/calendar-mask/calendar-mask.module.d.ts +0 -7
- package/card/README.md +5 -6
- package/card/lib/card/card.module.d.ts +0 -7
- package/chat/README.md +8 -11
- package/chat/lib/chat/chat.module.d.ts +0 -7
- package/checkbox-list/README.md +4 -5
- package/checkbox-list/lib/checkbox-list/checkbox-list.module.d.ts +0 -7
- package/chips/README.md +4 -5
- package/chips/lib/chips/chips.module.d.ts +0 -7
- package/code-editor/README.md +4 -5
- package/code-editor/lib/code-editor/code-editor.module.d.ts +0 -7
- package/collapse-link/README.md +4 -5
- package/collapse-link/lib/collapse-link/collapse-link.module.d.ts +0 -7
- package/common/lib/angular-components.module.d.ts +0 -9
- package/common/lib/svg-factory/svg-factory.module.d.ts +0 -7
- package/common/public-api.d.ts +0 -1
- package/content-generator/README.md +2 -2
- package/content-generator/lib/content-generator/content-generator.module.d.ts +0 -7
- package/control-errors/README.md +2 -2
- package/control-errors/lib/control-errors/control-errors.module.d.ts +0 -7
- package/country-phone-picker/README.md +2 -2
- package/country-phone-picker/lib/country-phone-picker/country-phone-picker.module.d.ts +0 -7
- package/currency/README.md +1 -1
- package/custom-fields/README.md +3 -14
- package/custom-fields/lib/custom-fields/custom-fields.module.d.ts +0 -7
- package/custom-fields/lib/custom-fields/models/index.d.ts +0 -1
- package/dialog/README.md +1 -1
- package/drawer/README.md +4 -8
- package/drawer/lib/drawer/drawer.module.d.ts +0 -10
- package/dynamic-form/README.md +2 -18
- package/dynamic-form/dynamic-form/dynamic-form.module.d.ts +0 -7
- package/dynamic-form/dynamic-form/form-field/addon-config.d.ts +1 -10
- 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 +6 -8
- package/dynamic-form/dynamic-form/form-field/fields/bignumber/bignumber-field.component.d.ts +2 -5
- package/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.d.ts +664 -0
- package/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.d.ts +29 -0
- package/dynamic-form/public-api.d.ts +1 -0
- package/editable-overlay/README.md +2 -2
- package/editable-overlay/lib/editable-overlay/editable-overlay.module.d.ts +0 -7
- package/empty-state/README.md +2 -5
- package/empty-state/lib/empty-state/empty-state.module.d.ts +0 -7
- package/esm2022/accordion/lib/accordion/accordion.module.mjs +1 -8
- package/esm2022/alert/lib/alert/alert.module.mjs +1 -8
- package/esm2022/badge/lib/badge/badge.module.mjs +1 -11
- package/esm2022/bignumber-input/lib/bignumber-input/bignumber-input.directive.mjs +127 -19
- package/esm2022/bignumber-input/lib/bignumber-input/bignumber-input.module.mjs +1 -8
- package/esm2022/breadcrumb/lib/dynamic-breadcrumb/dynamic-breadcrumb.module.mjs +2 -6
- package/esm2022/button/lib/button/button.module.mjs +1 -8
- package/esm2022/calendar-mask/lib/calendar-mask/calendar-mask.module.mjs +1 -8
- package/esm2022/card/lib/card/card.module.mjs +1 -8
- package/esm2022/chat/lib/chat/chat.module.mjs +1 -8
- package/esm2022/checkbox-list/lib/checkbox-list/checkbox-list.module.mjs +1 -8
- package/esm2022/chips/lib/chips/chips.module.mjs +1 -8
- package/esm2022/code-editor/lib/code-editor/code-editor.component.mjs +1 -10
- package/esm2022/code-editor/lib/code-editor/code-editor.module.mjs +15 -9
- package/esm2022/collapse-link/lib/collapse-link/collapse-link.module.mjs +1 -8
- package/esm2022/common/lib/angular-components.module.mjs +1 -10
- package/esm2022/common/lib/svg-factory/svg-factory.module.mjs +1 -8
- package/esm2022/common/public-api.mjs +1 -2
- package/esm2022/content-generator/lib/content-generator/content-generator.module.mjs +1 -8
- package/esm2022/control-errors/lib/control-errors/control-errors.module.mjs +1 -8
- package/esm2022/country-phone-picker/lib/country-phone-picker/country-phone-picker.module.mjs +1 -8
- package/esm2022/country-phone-picker/lib/country-phone-picker/country-phone-picker.service.mjs +3 -4
- package/esm2022/custom-fields/lib/custom-fields/custom-fields.component.mjs +13 -17
- package/esm2022/custom-fields/lib/custom-fields/custom-fields.module.mjs +1 -8
- package/esm2022/custom-fields/lib/custom-fields/custom-fields.service.mjs +3 -4
- package/esm2022/custom-fields/lib/custom-fields/models/custom-field-type.mjs +2 -4
- package/esm2022/custom-fields/lib/custom-fields/models/index.mjs +1 -2
- package/esm2022/drawer/lib/drawer/drawer.module.mjs +1 -11
- package/esm2022/dynamic-form/dynamic-form/dynamic-form.module.mjs +1 -8
- package/esm2022/dynamic-form/dynamic-form/form-field/addon-config.mjs +2 -6
- 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 +10 -33
- package/esm2022/dynamic-form/dynamic-form/form-field/fields/currency/currency-field.component.mjs +96 -0
- package/esm2022/dynamic-form/dynamic-form/form-field/fields/number/number-field.component.mjs +124 -0
- package/esm2022/dynamic-form/public-api.mjs +7 -2
- package/esm2022/editable-overlay/lib/editable-overlay/editable-overlay.module.mjs +1 -8
- package/esm2022/empty-state/lib/empty-state/empty-state.module.mjs +1 -8
- package/esm2022/fieldset/lib/fieldset/fieldset.module.mjs +1 -8
- package/esm2022/file-picker/lib/file-picker/file-picker.module.mjs +1 -8
- package/esm2022/file-picker/lib/file-picker/file-picker.service.mjs +3 -4
- package/esm2022/gantt/lib/gantt/gantt.module.mjs +1 -8
- package/esm2022/global-search/lib/global-search/global-search.module.mjs +1 -19
- package/esm2022/grid-menu/lib/grid-menu/grid-menu.module.mjs +1 -8
- package/esm2022/help-popover/lib/help-popover/help-popover.module.mjs +1 -8
- package/esm2022/image-cropper/lib/image-cropper/image-cropper.module.mjs +1 -12
- package/esm2022/image-cropper/lib/image-cropper/image-cropper.service.mjs +3 -4
- package/esm2022/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.mjs +1 -8
- package/esm2022/info-sign/lib/info-sign/info-sign.module.mjs +1 -8
- 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 +1 -8
- package/esm2022/input-group/lib/input-group/input-group.module.mjs +1 -8
- package/esm2022/input-mask/lib/input-mask/input-mask.module.mjs +1 -8
- package/esm2022/input-text/lib/input-text/input-text.module.mjs +1 -8
- package/esm2022/insights/lib/insights/insights.module.mjs +1 -11
- package/esm2022/kanban/lib/kanban/kanban-event.service.mjs +3 -4
- package/esm2022/kanban/lib/kanban/kanban.module.mjs +1 -11
- package/esm2022/label-value/lib/label-value/label-value.module.mjs +1 -8
- package/esm2022/loading-state/lib/loading-state/loading-state.module.mjs +1 -8
- package/esm2022/locale/lib/locale/locale.module.mjs +1 -14
- package/esm2022/locale/lib/locale/locale.service.mjs +3 -4
- package/esm2022/locale/lib/locale/options/index.mjs +13 -1
- package/esm2022/locale/lib/locale/pipes/localized-bignumber-impure.pipe.mjs +1 -1
- package/esm2022/locale/lib/locale/pipes/localized-bignumber.pipe.mjs +2 -10
- package/esm2022/locale/public-api.mjs +1 -2
- package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.directive.mjs +1 -5
- package/esm2022/localized-number-input/lib/localized-number-input/localized-number-input.module.mjs +1 -8
- package/esm2022/mask/lib/mask/mask-formatter.module.mjs +1 -8
- package/esm2022/mouse-events/lib/mouse-events/mouse-events.module.mjs +1 -8
- package/esm2022/navigation-button/lib/navigation-button/navigation-button.module.mjs +1 -8
- package/esm2022/number-input/lib/number-input/number-input.directive.mjs +2 -2
- package/esm2022/number-input/lib/number-input/number-input.module.mjs +2 -9
- package/esm2022/numeric/lib/numeric.module.mjs +1 -8
- package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.directive.mjs +15 -178
- package/esm2022/numeric-mask/lib/numeric-mask/numeric-mask.module.mjs +1 -8
- package/esm2022/object-card/lib/object-card/object-card.module.mjs +1 -12
- package/esm2022/panel/lib/panel/panel.module.mjs +1 -11
- package/esm2022/password-strength/lib/password-strength/password-strength.module.mjs +1 -8
- package/esm2022/picklist/lib/picklist/picklist.module.mjs +1 -8
- package/esm2022/pin-code-field/lib/pin-code-field.module.mjs +1 -8
- package/esm2022/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.mjs +1 -8
- package/esm2022/progressbar/lib/progressbar/progressbar.module.mjs +1 -8
- package/esm2022/rating-scale/lib/rating-scale/rating-scale.module.mjs +1 -8
- package/esm2022/select/lib/select/select.component.mjs +3 -16
- package/esm2022/select-button/lib/select-button/select-button.module.mjs +1 -8
- package/esm2022/shared/lib/shared/border-button/border-button.module.mjs +1 -8
- package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.module.mjs +1 -8
- package/esm2022/slide-in-bar/lib/slide-in-bar/slide-in-bar.service.mjs +3 -4
- package/esm2022/slider/lib/slider/slider.module.mjs +1 -8
- package/esm2022/speech-recognition/lib/speech-recognition/speech-recognition.module.mjs +1 -8
- package/esm2022/split-button/lib/split-button/split-button.module.mjs +1 -8
- package/esm2022/stats-card/lib/stats-card/stats-card.module.mjs +1 -8
- package/esm2022/stepper/lib/stepper/stepper.module.mjs +1 -8
- package/esm2022/structure/lib/structure/structure.module.mjs +1 -8
- package/esm2022/switch/lib/switch/switch.module.mjs +1 -8
- package/esm2022/table/lib/table/table.module.mjs +1 -9
- package/esm2022/table-header/lib/table-header/table-header-checkox.module.mjs +1 -8
- package/esm2022/template/lib/template/template.module.mjs +1 -8
- package/esm2022/text-area/lib/text-area.module.mjs +1 -8
- package/esm2022/thumbnail/lib/thumbnail/thumbnail.module.mjs +1 -8
- package/esm2022/thumbnails/lib/thumbnails/thumbnails.module.mjs +1 -8
- package/esm2022/tiered-menu/lib/tiered-menu/tiered-menu.module.mjs +1 -8
- package/esm2022/tile/lib/tile/tile.module.mjs +1 -11
- package/esm2022/timeline/lib/timeline/timeline.module.mjs +1 -8
- package/esm2022/toast/lib/toast/toast.module.mjs +1 -8
- package/esm2022/token-list/lib/token-list/token-list.module.mjs +1 -8
- package/esm2022/tooltip/lib/tooltip/tooltip.module.mjs +1 -8
- package/esm2022/topbar/lib/topbar/topbar.module.mjs +1 -11
- package/esm2022/tree/lib/tree/tree.module.mjs +1 -8
- package/esm2022/workspace-switch/lib/workspace-switch/workspace-switch.module.mjs +1 -8
- package/fesm2022/seniorsistemas-angular-components-accordion.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-accordion.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-alert.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-alert.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-badge.mjs +0 -10
- package/fesm2022/seniorsistemas-angular-components-badge.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs +126 -25
- package/fesm2022/seniorsistemas-angular-components-bignumber-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs +1 -5
- package/fesm2022/seniorsistemas-angular-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-button.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-calendar-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-card.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-chat.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-chat.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-checkbox-list.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-chips.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-chips.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-code-editor.mjs +160 -164
- package/fesm2022/seniorsistemas-angular-components-code-editor.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-collapse-link.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-common.mjs +2 -38
- package/fesm2022/seniorsistemas-angular-components-common.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-content-generator.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-content-generator.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-control-errors.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-control-errors.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs +2 -10
- package/fesm2022/seniorsistemas-angular-components-country-phone-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs +15 -75
- package/fesm2022/seniorsistemas-angular-components-custom-fields.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-drawer.mjs +0 -10
- package/fesm2022/seniorsistemas-angular-components-drawer.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs +208 -52
- package/fesm2022/seniorsistemas-angular-components-dynamic-form.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-editable-overlay.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-empty-state.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-empty-state.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-fieldset.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-fieldset.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-file-picker.mjs +2 -10
- package/fesm2022/seniorsistemas-angular-components-file-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-gantt.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-gantt.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-global-search.mjs +0 -18
- package/fesm2022/seniorsistemas-angular-components-global-search.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-grid-menu.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-help-popover.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-help-popover.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs +2 -14
- package/fesm2022/seniorsistemas-angular-components-image-cropper.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-infinite-scroll.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-info-sign.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-info-sign.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs +4 -11
- package/fesm2022/seniorsistemas-angular-components-inline-edit.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-input-group.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-input-group.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-input-mask.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-input-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-input-text.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-input-text.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-insights.mjs +0 -10
- package/fesm2022/seniorsistemas-angular-components-insights.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-kanban.mjs +2 -13
- package/fesm2022/seniorsistemas-angular-components-kanban.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-label-value.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-label-value.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-loading-state.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-loading-state.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-locale.mjs +5 -58
- package/fesm2022/seniorsistemas-angular-components-locale.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs +0 -11
- package/fesm2022/seniorsistemas-angular-components-localized-number-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-mask.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-mouse-events.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-navigation-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-number-input.mjs +2 -9
- package/fesm2022/seniorsistemas-angular-components-number-input.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs +14 -184
- package/fesm2022/seniorsistemas-angular-components-numeric-mask.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-numeric.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-numeric.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-object-card.mjs +0 -11
- package/fesm2022/seniorsistemas-angular-components-object-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-panel.mjs +0 -10
- package/fesm2022/seniorsistemas-angular-components-panel.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-password-strength.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-password-strength.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-picklist.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-picklist.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-pin-code-field.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-profile-picture-picker.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-progressbar.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-progressbar.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-rating-scale.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-select-button.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-select-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-select.mjs +2 -15
- package/fesm2022/seniorsistemas-angular-components-select.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-shared.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-shared.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs +2 -10
- package/fesm2022/seniorsistemas-angular-components-slide-in-bar.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-slider.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-slider.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-speech-recognition.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-split-button.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-split-button.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-stats-card.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-stats-card.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-stepper.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-stepper.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-structure.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-structure.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-switch.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-switch.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-table-header.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-table-header.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-table.mjs +0 -8
- package/fesm2022/seniorsistemas-angular-components-table.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-template.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-template.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-text-area.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-text-area.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-thumbnail.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-thumbnails.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-tiered-menu.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-tile.mjs +0 -10
- package/fesm2022/seniorsistemas-angular-components-tile.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-timeline.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-timeline.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-toast.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-toast.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-token-list.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-token-list.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-tooltip.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-tooltip.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-topbar.mjs +0 -10
- package/fesm2022/seniorsistemas-angular-components-topbar.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-tree.mjs +0 -7
- package/fesm2022/seniorsistemas-angular-components-tree.mjs.map +1 -1
- package/fesm2022/seniorsistemas-angular-components-workspace-switch.mjs +0 -7
- 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 +0 -7
- package/file-picker/README.md +2 -2
- package/file-picker/lib/file-picker/file-picker.module.d.ts +0 -7
- package/file-upload/README.md +1 -1
- package/gantt/README.md +2 -2
- package/gantt/lib/gantt/gantt.module.d.ts +0 -7
- package/global-search/README.md +2 -5
- package/global-search/lib/global-search/global-search.module.d.ts +0 -18
- package/grid-menu/README.md +4 -5
- package/grid-menu/lib/grid-menu/grid-menu.module.d.ts +0 -7
- package/help-popover/README.md +4 -5
- package/help-popover/lib/help-popover/help-popover.module.d.ts +0 -7
- package/ia-insight/README.md +1 -1
- package/image-cropper/README.md +5 -6
- package/image-cropper/lib/image-cropper/image-cropper.module.d.ts +0 -11
- package/infinite-scroll/README.md +4 -5
- package/infinite-scroll/lib/infinite-scroll/infinite-scroll.module.d.ts +0 -7
- package/info-sign/README.md +4 -5
- package/info-sign/lib/info-sign/info-sign.module.d.ts +0 -7
- package/inline-edit/README.md +4 -5
- package/inline-edit/lib/inline-edit/inline-edit.module.d.ts +0 -7
- package/input-group/lib/input-group/input-group.module.d.ts +0 -7
- package/input-mask/lib/input-mask/input-mask.module.d.ts +0 -7
- package/input-text/lib/input-text/input-text.module.d.ts +0 -7
- package/insights/README.md +4 -6
- package/insights/lib/insights/insights.module.d.ts +0 -10
- package/kanban/README.md +4 -6
- package/kanban/lib/kanban/kanban.module.d.ts +0 -10
- package/label-value/README.md +4 -5
- package/label-value/lib/label-value/label-value.module.d.ts +0 -7
- package/loading-state/README.md +5 -9
- package/loading-state/lib/loading-state/loading-state.module.d.ts +0 -7
- package/locale/lib/locale/locale.module.d.ts +0 -13
- package/locale/lib/locale/pipes/localized-bignumber-impure.pipe.d.ts +2 -2
- package/locale/lib/locale/pipes/localized-bignumber.pipe.d.ts +1 -20
- package/locale/public-api.d.ts +0 -1
- package/localized-number-input/README.md +8 -32
- package/localized-number-input/lib/localized-number-input/localized-number-input.directive.d.ts +0 -4
- package/localized-number-input/lib/localized-number-input/localized-number-input.module.d.ts +0 -7
- package/mask/lib/mask/mask-formatter.module.d.ts +0 -7
- package/mouse-events/README.md +4 -5
- package/mouse-events/lib/mouse-events/mouse-events.module.d.ts +0 -7
- package/navigation-button/README.md +4 -5
- package/navigation-button/lib/navigation-button/navigation-button.module.d.ts +0 -7
- package/number-input/lib/number-input/number-input.directive.d.ts +1 -1
- package/number-input/lib/number-input/number-input.module.d.ts +1 -8
- package/numeric/README.md +5 -6
- package/numeric/lib/numeric.module.d.ts +0 -7
- package/numeric-mask/README.md +1 -44
- package/numeric-mask/lib/numeric-mask/numeric-mask.directive.d.ts +4 -65
- package/numeric-mask/lib/numeric-mask/numeric-mask.module.d.ts +0 -7
- package/object-card/README.md +4 -11
- package/object-card/lib/object-card/object-card.module.d.ts +0 -11
- package/package.json +1 -1
- package/panel/README.md +4 -8
- package/panel/lib/panel/panel.module.d.ts +0 -10
- package/password-strength/README.md +3 -6
- package/password-strength/lib/password-strength/password-strength.module.d.ts +0 -7
- package/picklist/README.md +5 -8
- package/picklist/lib/picklist/picklist.module.d.ts +0 -7
- package/pin-code-field/lib/pin-code-field.module.d.ts +0 -7
- package/product-header/README.md +2 -2
- package/profile-picture-picker/README.md +3 -6
- package/profile-picture-picker/lib/profile-picture-picker/profile-picture-picker.module.d.ts +0 -7
- package/progressbar/README.md +3 -6
- package/progressbar/lib/progressbar/progressbar.module.d.ts +0 -7
- package/rating-scale/README.md +3 -6
- package/rating-scale/lib/rating-scale/rating-scale.module.d.ts +0 -7
- package/schematics/collection.json +0 -40
- package/schematics/migrations.json +1 -5
- package/schematics/utils/ast-utils.js +0 -16
- package/schematics/utils/ast-utils.js.map +1 -1
- package/select/lib/select/select.component.d.ts +0 -8
- package/select-button/README.md +3 -6
- package/select-button/lib/select-button/select-button.module.d.ts +0 -7
- package/shared/lib/shared/border-button/border-button.module.d.ts +0 -7
- 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 +0 -7
- package/slider/README.md +3 -6
- package/slider/lib/slider/slider.module.d.ts +0 -7
- package/speech-recognition/README.md +3 -6
- package/speech-recognition/lib/speech-recognition/speech-recognition.module.d.ts +0 -7
- package/split-button/README.md +3 -6
- package/split-button/lib/split-button/split-button.module.d.ts +0 -7
- package/stats-card/README.md +3 -6
- package/stats-card/lib/stats-card/stats-card.module.d.ts +0 -7
- package/stepper/README.md +3 -6
- package/stepper/lib/stepper/stepper.module.d.ts +0 -7
- package/structure/lib/structure/structure.module.d.ts +0 -7
- package/switch/README.md +3 -6
- package/switch/lib/switch/switch.module.d.ts +0 -7
- package/table/README.md +4 -12
- package/table/lib/table/table.module.d.ts +0 -8
- package/table-header/lib/table-header/table-header-checkox.module.d.ts +0 -7
- package/template/README.md +11 -0
- package/template/lib/template/template.module.d.ts +0 -7
- package/text-area/lib/text-area.module.d.ts +0 -7
- package/text-area-ia/README.md +1 -1
- package/thumbnail/lib/thumbnail/thumbnail.module.d.ts +0 -7
- package/thumbnails/lib/thumbnails/thumbnails.module.d.ts +0 -7
- package/tiered-menu/lib/tiered-menu/tiered-menu.module.d.ts +0 -7
- package/tile/lib/tile/tile.module.d.ts +0 -10
- package/timeline/lib/timeline/timeline.module.d.ts +0 -7
- package/toast/lib/toast/toast.module.d.ts +0 -7
- package/token-list/lib/token-list/token-list.module.d.ts +0 -7
- package/tooltip/lib/tooltip/tooltip.module.d.ts +0 -7
- package/topbar/lib/topbar/topbar.module.d.ts +0 -10
- package/tree/lib/tree/tree.module.d.ts +0 -7
- package/workspace-switch/lib/workspace-switch/workspace-switch.module.d.ts +0 -7
- package/common/lib/provide-angular-components.d.ts +0 -19
- package/custom-fields/lib/custom-fields/models/custom-field-value-parser.d.ts +0 -21
- package/esm2022/common/lib/provide-angular-components.mjs +0 -22
- package/esm2022/custom-fields/lib/custom-fields/models/custom-field-value-parser.mjs +0 -46
- package/esm2022/locale/lib/locale/provide-locale.mjs +0 -42
- package/locale/lib/locale/provide-locale.d.ts +0 -18
- package/schematics/migrations/migrate-app-to-standalone/index.d.ts +0 -32
- package/schematics/migrations/migrate-app-to-standalone/index.js +0 -98
- package/schematics/migrations/migrate-app-to-standalone/index.js.map +0 -1
- package/schematics/migrations/migrate-deprecated-apis/index.d.ts +0 -49
- package/schematics/migrations/migrate-deprecated-apis/index.js +0 -660
- package/schematics/migrations/migrate-deprecated-apis/index.js.map +0 -1
- package/schematics/migrations/migrate-deprecated-datepicker/index.d.ts +0 -31
- package/schematics/migrations/migrate-deprecated-datepicker/index.js +0 -115
- package/schematics/migrations/migrate-deprecated-datepicker/index.js.map +0 -1
- package/schematics/migrations/migrate-deprecated-dynamic-form/index.d.ts +0 -52
- package/schematics/migrations/migrate-deprecated-dynamic-form/index.js +0 -661
- package/schematics/migrations/migrate-deprecated-dynamic-form/index.js.map +0 -1
- package/schematics/migrations/migrate-deprecated-imports/index.d.ts +0 -23
- package/schematics/migrations/migrate-deprecated-imports/index.js +0 -335
- package/schematics/migrations/migrate-deprecated-imports/index.js.map +0 -1
- package/schematics/migrations/migrate-deprecated-selectors/index.d.ts +0 -15
- package/schematics/migrations/migrate-deprecated-selectors/index.js +0 -76
- package/schematics/migrations/migrate-deprecated-selectors/index.js.map +0 -1
- package/schematics/migrations/migrate-modules-to-standalone/index.d.ts +0 -51
- package/schematics/migrations/migrate-modules-to-standalone/index.js +0 -632
- package/schematics/migrations/migrate-modules-to-standalone/index.js.map +0 -1
- package/schematics/migrations/migrate-modules-to-standalone/modules-map.json +0 -1656
- package/schematics/migrations/migrate-v20/index.d.ts +0 -9
- package/schematics/migrations/migrate-v20/index.js +0 -90
- package/schematics/migrations/migrate-v20/index.js.map +0 -1
- package/schematics/migrations/migrate-v20/items.d.ts +0 -7
- package/schematics/migrations/migrate-v20/items.js +0 -54
- package/schematics/migrations/migrate-v20/items.js.map +0 -1
- package/schematics/migrations/migrate-v20/plan.d.ts +0 -32
- package/schematics/migrations/migrate-v20/plan.js +0 -29
- package/schematics/migrations/migrate-v20/plan.js.map +0 -1
- package/schematics/schema/app-standalone.schema.json +0 -21
- package/schematics/schema/migrate-v20.schema.json +0 -33
- package/schematics/schema/scope.schema.json +0 -17
- package/schematics/utils/eol.d.ts +0 -5
- package/schematics/utils/eol.js +0 -17
- package/schematics/utils/eol.js.map +0 -1
- package/schematics/utils/prompt-utils.d.ts +0 -62
- package/schematics/utils/prompt-utils.js +0 -166
- package/schematics/utils/prompt-utils.js.map +0 -1
- package/schematics/utils/report.d.ts +0 -27
- package/schematics/utils/report.js +0 -70
- package/schematics/utils/report.js.map +0 -1
- package/schematics/utils/scope.d.ts +0 -17
- package/schematics/utils/scope.js +0 -55
- package/schematics/utils/scope.js.map +0 -1
- package/schematics/utils/selection.d.ts +0 -21
- package/schematics/utils/selection.js +0 -60
- package/schematics/utils/selection.js.map +0 -1
- package/schematics/utils/symbol-utils.d.ts +0 -31
- package/schematics/utils/symbol-utils.js +0 -202
- package/schematics/utils/symbol-utils.js.map +0 -1
- package/schematics/utils/template-utils.d.ts +0 -62
- package/schematics/utils/template-utils.js +0 -165
- package/schematics/utils/template-utils.js.map +0 -1
- package/schematics/utils/tsconfig-paths.d.ts +0 -5
- package/schematics/utils/tsconfig-paths.js +0 -73
- package/schematics/utils/tsconfig-paths.js.map +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { V20Options } from './plan';
|
|
3
|
-
/** `ng generate ...:migrate-v20`: pergunta o que migrar (ou usa --all/--items/--skip). */
|
|
4
|
-
export declare function migrate(options?: V20Options): Rule;
|
|
5
|
-
/**
|
|
6
|
-
* `ng update` até a 20.0.0 (migrations.json): roda tudo automaticamente, sem o checkbox.
|
|
7
|
-
* Não pergunta nada; ao final avisa que existe o schematic das migrações nativas do Angular.
|
|
8
|
-
*/
|
|
9
|
-
export declare function migrateOnUpdate(options?: V20Options): Rule;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.migrate = migrate;
|
|
4
|
-
exports.migrateOnUpdate = migrateOnUpdate;
|
|
5
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const child_process_1 = require("child_process");
|
|
7
|
-
const prompt_utils_1 = require("../../utils/prompt-utils");
|
|
8
|
-
const report_1 = require("../../utils/report");
|
|
9
|
-
const migrate_app_to_standalone_1 = require("../migrate-app-to-standalone");
|
|
10
|
-
const items_1 = require("./items");
|
|
11
|
-
const plan_1 = require("./plan");
|
|
12
|
-
function warnIfWorkingTreeIsDirty(context) {
|
|
13
|
-
try {
|
|
14
|
-
const status = (0, child_process_1.execSync)('git status --porcelain', { stdio: ['ignore', 'pipe', 'ignore'] }).toString().trim();
|
|
15
|
-
if (status) {
|
|
16
|
-
context.logger.warn('Há alterações não commitadas no repositório. Recomendamos commitar antes de migrar, para revisar o diff da migração.');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch {
|
|
20
|
-
// sem git ou fora de um repositório: nada a avisar
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
async function resolveSelection(options, items, context, mode) {
|
|
24
|
-
const plan = (0, plan_1.planSelection)(options, items);
|
|
25
|
-
if (plan.errors.length > 0) {
|
|
26
|
-
throw new schematics_1.SchematicsException(`${plan.errors.join(' ')} Itens válidos: ${items.map((item) => item.id).join(', ')}.`);
|
|
27
|
-
}
|
|
28
|
-
let chosen = plan.chosen;
|
|
29
|
-
const regular = items.filter((item) => !item.optional);
|
|
30
|
-
if (!chosen && mode === 'update') {
|
|
31
|
-
chosen = regular.map((item) => item.id);
|
|
32
|
-
context.logger.info('Executando todas as migrações da v20 automaticamente.');
|
|
33
|
-
}
|
|
34
|
-
if (!chosen) {
|
|
35
|
-
const answer = await (0, prompt_utils_1.askMigrations)('O que deseja migrar?', regular.map((item) => ({ id: item.id, label: item.label })));
|
|
36
|
-
if (answer) {
|
|
37
|
-
chosen = answer;
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
chosen = regular.map((item) => item.id);
|
|
41
|
-
context.logger.info((0, prompt_utils_1.isInteractive)()
|
|
42
|
-
? 'Não foi possível exibir o prompt: executando todos os itens (exceto a conversão do app para standalone).'
|
|
43
|
-
: 'Execução não interativa: executando todos os itens (exceto a conversão do app para standalone). Use --items ou --skip para escolher.');
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return { ids: chosen, options };
|
|
47
|
-
}
|
|
48
|
-
function createRule(options, mode) {
|
|
49
|
-
return async (_tree, context) => {
|
|
50
|
-
const resolved = await resolveSelection(options, items_1.MIGRATION_ITEMS, context, mode);
|
|
51
|
-
const plan = (0, plan_1.planSelection)(options, items_1.MIGRATION_ITEMS);
|
|
52
|
-
const selected = (0, plan_1.orderedItems)(items_1.MIGRATION_ITEMS, resolved.ids, plan.skip);
|
|
53
|
-
if (selected.length === 0) {
|
|
54
|
-
context.logger.info('Nenhum item selecionado: nada a migrar.');
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
warnIfWorkingTreeIsDirty(context);
|
|
58
|
-
const report = new report_1.MigrationReport();
|
|
59
|
-
const rules = [];
|
|
60
|
-
for (const item of selected) {
|
|
61
|
-
rules.push((_t, ctx) => {
|
|
62
|
-
ctx.logger.info(`Migrando: ${item.label}`);
|
|
63
|
-
});
|
|
64
|
-
rules.push(item.create(resolved.options, report));
|
|
65
|
-
}
|
|
66
|
-
rules.push((_t, ctx) => {
|
|
67
|
-
for (const line of report.summary(selected.map((item) => ({ id: item.id, label: item.label })))) {
|
|
68
|
-
ctx.logger.info(line);
|
|
69
|
-
}
|
|
70
|
-
// A conversão para standalone é do Angular e não é mais perguntada: só é executada com --items=app-standalone.
|
|
71
|
-
if (!selected.some((item) => item.id === migrate_app_to_standalone_1.ITEM_ID)) {
|
|
72
|
-
for (const line of (0, migrate_app_to_standalone_1.standaloneNoticeLines)())
|
|
73
|
-
ctx.logger.info(line);
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
return (0, schematics_1.chain)(rules);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
/** `ng generate ...:migrate-v20`: pergunta o que migrar (ou usa --all/--items/--skip). */
|
|
80
|
-
function migrate(options = {}) {
|
|
81
|
-
return createRule(options, 'interactive');
|
|
82
|
-
}
|
|
83
|
-
/**
|
|
84
|
-
* `ng update` até a 20.0.0 (migrations.json): roda tudo automaticamente, sem o checkbox.
|
|
85
|
-
* Não pergunta nada; ao final avisa que existe o schematic das migrações nativas do Angular.
|
|
86
|
-
*/
|
|
87
|
-
function migrateOnUpdate(options = {}) {
|
|
88
|
-
return createRule(options, 'update');
|
|
89
|
-
}
|
|
90
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../projects/angular-components/schematics/migrations/migrate-v20/index.ts"],"names":[],"mappings":";;AA8GA,0BAEC;AAMD,0CAEC;AAxHD,2DAAsG;AACtG,iDAAyC;AACzC,2DAAwE;AACxE,+CAAqD;AACrD,4EAAmG;AACnG,mCAA0C;AAC1C,iCAAgF;AAEhF,SAAS,wBAAwB,CA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UAAU,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;AAC9C,CAAC;AAED;;;GAGG;AACH,SAAgB,eAAe,CAAC,UAAsB,EAAE;IACpD,OAAO,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AACzC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { MigrationItem } from './plan';
|
|
2
|
-
/**
|
|
3
|
-
* Itens do `migrate-v20`, **na ordem de execução**. A ordem importa: seletores e pacotes alias primeiro,
|
|
4
|
-
* módulos depois (os aliases viram módulos novos que então são convertidos para standalone) e a conversão
|
|
5
|
-
* do app (wrapper do Angular) por último.
|
|
6
|
-
*/
|
|
7
|
-
export declare const MIGRATION_ITEMS: MigrationItem[];
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MIGRATION_ITEMS = void 0;
|
|
4
|
-
const migrate_app_to_standalone_1 = require("../migrate-app-to-standalone");
|
|
5
|
-
const migrate_deprecated_apis_1 = require("../migrate-deprecated-apis");
|
|
6
|
-
const migrate_deprecated_datepicker_1 = require("../migrate-deprecated-datepicker");
|
|
7
|
-
const migrate_deprecated_dynamic_form_1 = require("../migrate-deprecated-dynamic-form");
|
|
8
|
-
const migrate_modules_to_standalone_1 = require("../migrate-modules-to-standalone");
|
|
9
|
-
const migrate_deprecated_imports_1 = require("../migrate-deprecated-imports");
|
|
10
|
-
const migrate_deprecated_selectors_1 = require("../migrate-deprecated-selectors");
|
|
11
|
-
/**
|
|
12
|
-
* Itens do `migrate-v20`, **na ordem de execução**. A ordem importa: seletores e pacotes alias primeiro,
|
|
13
|
-
* módulos depois (os aliases viram módulos novos que então são convertidos para standalone) e a conversão
|
|
14
|
-
* do app (wrapper do Angular) por último.
|
|
15
|
-
*/
|
|
16
|
-
exports.MIGRATION_ITEMS = [
|
|
17
|
-
{
|
|
18
|
-
id: migrate_deprecated_selectors_1.ITEM_ID,
|
|
19
|
-
label: 'Seletores depreciados (s-sidebar → s-drawer, s-steps → s-stepper, ...)',
|
|
20
|
-
create: (options, report) => (0, migrate_deprecated_selectors_1.migrateDeprecatedSelectors)(options, report),
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
id: migrate_deprecated_imports_1.ITEM_ID,
|
|
24
|
-
label: 'Pacotes e símbolos alias (sidebar → drawer, steps → stepper, ...)',
|
|
25
|
-
create: (options, report) => (0, migrate_deprecated_imports_1.migrateDeprecatedImports)(options, report),
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: migrate_deprecated_apis_1.ITEM_ID,
|
|
29
|
-
label: 'Inputs, outputs e APIs depreciadas (onCodeChange, scale, pipes localized*, ...)',
|
|
30
|
-
create: (options, report) => (0, migrate_deprecated_apis_1.migrateDeprecatedApis)(options, report),
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: migrate_deprecated_dynamic_form_1.ITEM_ID,
|
|
34
|
-
label: 'Dynamic-form (fields → configs, integer → number, textAreaIA, ...)',
|
|
35
|
-
create: (options, report) => (0, migrate_deprecated_dynamic_form_1.migrateDeprecatedDynamicForm)(options, report),
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: migrate_deprecated_datepicker_1.ITEM_ID,
|
|
39
|
-
label: 'Datepicker (remove sCalendarMask e sDatepickerNoPeriodTab)',
|
|
40
|
-
create: (options, report) => (0, migrate_deprecated_datepicker_1.migrateDatepickerDeprecated)(options, report),
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
id: migrate_modules_to_standalone_1.ITEM_ID,
|
|
44
|
-
label: 'Módulos → standalone (ButtonModule, LocaleModule.forRoot(), ...)',
|
|
45
|
-
create: (options, report) => (0, migrate_modules_to_standalone_1.migrateModulesToStandalone)(options, report),
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: migrate_app_to_standalone_1.ITEM_ID,
|
|
49
|
-
label: 'Converter o app para standalone (wrapper do schematic oficial do Angular)',
|
|
50
|
-
optional: true,
|
|
51
|
-
create: (options, report) => (0, migrate_app_to_standalone_1.migrateAppToStandalone)(options, report),
|
|
52
|
-
},
|
|
53
|
-
];
|
|
54
|
-
//# sourceMappingURL=items.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"items.js","sourceRoot":"","sources":["../../../../projects/angular-components/schematics/migrations/migrate-v20/items.ts"],"names":[],"mappings":";;;AAAA,4EAAoG;AACpG,wEAAuF;AACvF,oFAAyG;AACzG,wFAA8G;AAC9G,oFAAqG;AACrG,8EAAgG;AAChG,kFAAsG;AAGtG;;;;GAIG;AACU,QAAA,eAAe,GAAoB;IAC5C;QACI,EAAE,EAAE,sCAAY;QAChB,KAAK,EAAE,wEAAwE;QAC/E,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAA,yDAA0B,EAAC,OAAO,EAAE,MAAM,CAAC;KAC3E;IACD;QACI,EAAE,EAAE,oCAAU;QACd,KAAK,EAAE,mEAAmE;QAC1E,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAA,qDAAwB,EAAC,OAAO,EAAE,MAAM,CAAC;KACzE;IACD;QACI,EAAE,EAAE,iCAAO;QACX,KAAK,EAAE,iFAAiF;QACxF,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAA,+CAAqB,EAAC,OAAO,EAAE,MAAM,CAAC;KACtE;IACD;QACI,EAAE,EAAE,yCAAe;QACnB,KAAK,EAAE,oEAAoE;QAC3E,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAA,8DAA4B,EAAC,OAAO,EAAE,MAAM,CAAC;KAC7E;IACD;QACI,EAAE,EAAE,uCAAa;QACjB,KAAK,EAAE,4DAA4D;QACnE,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAA,2DAA2B,EAAC,OAAO,EAAE,MAAM,CAAC;KAC5E;IACD;QACI,EAAE,EAAE,uCAAU;QACd,KAAK,EAAE,kEAAkE;QACzE,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAA,0DAA0B,EAAC,OAAO,EAAE,MAAM,CAAC;KAC3E;IACD;QACI,EAAE,EAAE,mCAAiB;QACrB,KAAK,EAAE,2EAA2E;QAClF,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAAC,IAAA,kDAAsB,EAAC,OAAO,EAAE,MAAM,CAAC;KACvE;CACJ,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { MigrationReport } from '../../utils/report';
|
|
3
|
-
import { ScopeOptions } from '../../utils/scope';
|
|
4
|
-
export interface V20Options extends ScopeOptions {
|
|
5
|
-
all?: boolean;
|
|
6
|
-
/** Ids separados por vírgula. */
|
|
7
|
-
items?: string;
|
|
8
|
-
/** Ids a pular, separados por vírgula. */
|
|
9
|
-
skip?: string;
|
|
10
|
-
/** Modos do schematic oficial do Angular (item app-standalone). */
|
|
11
|
-
mode?: string;
|
|
12
|
-
}
|
|
13
|
-
export interface MigrationItem {
|
|
14
|
-
id: string;
|
|
15
|
-
label: string;
|
|
16
|
-
/**
|
|
17
|
-
* Item fora do "Marcar todos" e do `--all`: só roda se pedido (`--items`) ou confirmado no prompt.
|
|
18
|
-
* Usado para a conversão do app para standalone, que é do Angular.
|
|
19
|
-
*/
|
|
20
|
-
optional?: boolean;
|
|
21
|
-
create: (options: V20Options, report: MigrationReport) => Rule;
|
|
22
|
-
}
|
|
23
|
-
export interface SelectionPlan {
|
|
24
|
-
/** Ids já definidos pelas flags, ou `undefined` quando é preciso perguntar. */
|
|
25
|
-
chosen: string[] | undefined;
|
|
26
|
-
skip: string[];
|
|
27
|
-
errors: string[];
|
|
28
|
-
}
|
|
29
|
-
/** Interpreta `--all`, `--items` e `--skip` (não pergunta nada). */
|
|
30
|
-
export declare function planSelection(options: V20Options, items: MigrationItem[]): SelectionPlan;
|
|
31
|
-
/** Aplica `--skip` e devolve os itens na ordem do registro (que é a ordem correta de execução). */
|
|
32
|
-
export declare function orderedItems(items: MigrationItem[], chosen: string[], skip: string[]): MigrationItem[];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.planSelection = planSelection;
|
|
4
|
-
exports.orderedItems = orderedItems;
|
|
5
|
-
const selection_1 = require("../../utils/selection");
|
|
6
|
-
/** Interpreta `--all`, `--items` e `--skip` (não pergunta nada). */
|
|
7
|
-
function planSelection(options, items) {
|
|
8
|
-
const valid = items.map((item) => item.id);
|
|
9
|
-
const errors = [];
|
|
10
|
-
const skipParsed = (0, selection_1.parseItemList)(options.skip, valid);
|
|
11
|
-
for (const id of skipParsed.unknown)
|
|
12
|
-
errors.push(`Item desconhecido em --skip: "${id}".`);
|
|
13
|
-
let chosen;
|
|
14
|
-
if (options.items !== undefined && options.items !== '') {
|
|
15
|
-
const parsed = (0, selection_1.parseItemList)(options.items, valid);
|
|
16
|
-
for (const id of parsed.unknown)
|
|
17
|
-
errors.push(`Item desconhecido em --items: "${id}".`);
|
|
18
|
-
chosen = parsed.ids;
|
|
19
|
-
}
|
|
20
|
-
else if (options.all) {
|
|
21
|
-
chosen = items.filter((item) => !item.optional).map((item) => item.id);
|
|
22
|
-
}
|
|
23
|
-
return { chosen, skip: skipParsed.ids, errors };
|
|
24
|
-
}
|
|
25
|
-
/** Aplica `--skip` e devolve os itens na ordem do registro (que é a ordem correta de execução). */
|
|
26
|
-
function orderedItems(items, chosen, skip) {
|
|
27
|
-
return items.filter((item) => chosen.includes(item.id) && !skip.includes(item.id));
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=plan.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../../projects/angular-components/schematics/migrations/migrate-v20/plan.ts"],"names":[],"mappings":";;AAkCA,sCAiBC;AAGD,oCAEC;AArDD,qDAAsD;AA8BtD,oEAAoE;AACpE,SAAgB,aAAa,CAAC,OAAmB,EAAE,KAAsB;IACrE,MAAM,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC3C,MAAM,MAAM,GAAa,EAAE,CAAC;IAE5B,MAAM,UAAU,GAAG,IAAA,yBAAa,EAAC,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACtD,KAAK,MAAM,EAAE,IAAI,UAAU,CAAC,OAAO;QAAE,MAAM,CAAC,IAAI,CAAC,iCAAiC,EAAE,IAAI,CAAC,CAAC;IAE1F,IAAI,MAA4B,CAAC;IACjC,IAAI,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,OAAO,CAAC,KAAK,KAAK,EAAE,EAAE,CAAC;QACtD,MAAM,MAAM,GAAG,IAAA,yBAAa,EAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QACnD,KAAK,MAAM,EAAE,IAAI,MAAM,CAAC,OAAO;YAAE,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE,IAAI,CAAC,CAAC;QACvF,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC;IACxB,CAAC;SAAM,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;QACrB,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,CAAC;AACpD,CAAC;AAED,mGAAmG;AACnG,SAAgB,YAAY,CAAC,KAAsB,EAAE,MAAgB,EAAE,IAAc;IACjF,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "AngularComponentsAppStandalone",
|
|
4
|
-
"title": "Conversão do app para standalone (wrapper do schematic oficial do Angular)",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"mode": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "Modos do schematic oficial do Angular (@angular/core:standalone), separados por vírgula. Padrão: todos. Valores: convert-to-standalone, prune-ng-modules, standalone-bootstrap."
|
|
11
|
-
},
|
|
12
|
-
"path": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Pasta, relativa à raiz do workspace, que limita a migração (ex.: src/app). Tem precedência sobre --project."
|
|
15
|
-
},
|
|
16
|
-
"project": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Nome do projeto do angular.json que limita a migração."
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "AngularComponentsMigrateV20",
|
|
4
|
-
"title": "Migração para a v20",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"all": {
|
|
9
|
-
"type": "boolean",
|
|
10
|
-
"description": "Executa todos os itens (exceto a conversão do app para standalone, que precisa ser pedida) sem perguntar."
|
|
11
|
-
},
|
|
12
|
-
"items": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Itens a executar, separados por vírgula, sem perguntar. Valores: selectors, imports, apis, dynamic-form, datepicker, modules, app-standalone."
|
|
15
|
-
},
|
|
16
|
-
"skip": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Itens a pular, separados por vírgula. Combina com --all ou com o prompt."
|
|
19
|
-
},
|
|
20
|
-
"mode": {
|
|
21
|
-
"type": "string",
|
|
22
|
-
"description": "Modos do schematic oficial do Angular (@angular/core:standalone) para o item app-standalone, separados por vírgula. Valores: convert-to-standalone, prune-ng-modules, standalone-bootstrap."
|
|
23
|
-
},
|
|
24
|
-
"path": {
|
|
25
|
-
"type": "string",
|
|
26
|
-
"description": "Pasta, relativa à raiz do workspace, que limita a migração (ex.: src/app). Tem precedência sobre --project."
|
|
27
|
-
},
|
|
28
|
-
"project": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"description": "Nome do projeto do angular.json que limita a migração."
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
-
"$id": "AngularComponentsMigrationScope",
|
|
4
|
-
"title": "Escopo da migração",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"path": {
|
|
9
|
-
"type": "string",
|
|
10
|
-
"description": "Pasta, relativa à raiz do workspace, que limita a migração (ex.: src/app). Tem precedência sobre --project."
|
|
11
|
-
},
|
|
12
|
-
"project": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Nome do projeto do angular.json que limita a migração."
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Mantém o fim de linha do arquivo original. Os schematics inserem trechos com `\n`; em arquivos CRLF isso
|
|
3
|
-
* deixaria o arquivo com fim de linha misto (diff barulhento e reclamação de lint/prettier no projeto).
|
|
4
|
-
*/
|
|
5
|
-
export declare function preserveLineEndings(original: string, updated: string): string;
|
package/schematics/utils/eol.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.preserveLineEndings = preserveLineEndings;
|
|
4
|
-
/**
|
|
5
|
-
* Mantém o fim de linha do arquivo original. Os schematics inserem trechos com `\n`; em arquivos CRLF isso
|
|
6
|
-
* deixaria o arquivo com fim de linha misto (diff barulhento e reclamação de lint/prettier no projeto).
|
|
7
|
-
*/
|
|
8
|
-
function preserveLineEndings(original, updated) {
|
|
9
|
-
const crlf = (original.match(/\r\n/g) ?? []).length;
|
|
10
|
-
if (crlf === 0)
|
|
11
|
-
return updated;
|
|
12
|
-
const lf = (original.match(/(?<!\r)\n/g) ?? []).length;
|
|
13
|
-
if (lf > crlf)
|
|
14
|
-
return updated;
|
|
15
|
-
return updated.replace(/\r?\n/g, '\r\n');
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=eol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"eol.js","sourceRoot":"","sources":["../../../projects/angular-components/schematics/utils/eol.ts"],"names":[],"mappings":";;AAIA,kDAMC;AAVD;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,QAAgB,EAAE,OAAe;IACjE,MAAM,IAAI,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IACpD,IAAI,IAAI,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC;IAC/B,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IACvD,IAAI,EAAE,GAAG,IAAI;QAAE,OAAO,OAAO,CAAC;IAC9B,OAAO,OAAO,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { SelectionState } from './selection';
|
|
2
|
-
/**
|
|
3
|
-
* Prompts interativos para os schematics.
|
|
4
|
-
*
|
|
5
|
-
* O `@inquirer/prompts` não é dependência do angular-components: usamos o que já vem com o `@angular/cli`
|
|
6
|
-
* do projeto que está rodando o schematic (resolvido a partir do `cwd`). Se não for possível carregá-lo
|
|
7
|
-
* (sem TTY, CI, CLI sem a lib, formato incompatível) as funções retornam `undefined` e quem chama decide
|
|
8
|
-
* o valor padrão — nunca lançam.
|
|
9
|
-
*/
|
|
10
|
-
export interface PromptItem {
|
|
11
|
-
id: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}
|
|
14
|
-
interface InquirerCore {
|
|
15
|
-
createPrompt: (view: (config: any, done: (value: any) => void) => any) => (config: any) => Promise<any>;
|
|
16
|
-
useState: <T>(initial: T) => [T, (value: T) => void];
|
|
17
|
-
useKeypress: (handler: (key: {
|
|
18
|
-
name?: string;
|
|
19
|
-
}) => void) => void;
|
|
20
|
-
}
|
|
21
|
-
interface InquirerPrompts {
|
|
22
|
-
confirm: (config: {
|
|
23
|
-
message: string;
|
|
24
|
-
default?: boolean;
|
|
25
|
-
}) => Promise<boolean>;
|
|
26
|
-
input: (config: {
|
|
27
|
-
message: string;
|
|
28
|
-
default?: string;
|
|
29
|
-
}) => Promise<string>;
|
|
30
|
-
checkbox: (config: {
|
|
31
|
-
message: string;
|
|
32
|
-
choices: Array<{
|
|
33
|
-
name: string;
|
|
34
|
-
value: string;
|
|
35
|
-
checked?: boolean;
|
|
36
|
-
}>;
|
|
37
|
-
}) => Promise<string[]>;
|
|
38
|
-
}
|
|
39
|
-
interface LoadedInquirer {
|
|
40
|
-
core?: InquirerCore;
|
|
41
|
-
prompts: InquirerPrompts;
|
|
42
|
-
}
|
|
43
|
-
export declare function isInteractive(): boolean;
|
|
44
|
-
/** Carrega o inquirer do `@angular/cli` do projeto. Retorna `null` quando indisponível. */
|
|
45
|
-
export declare function loadInquirer(cwd?: string): LoadedInquirer | null;
|
|
46
|
-
/** Só para testes. */
|
|
47
|
-
export declare function resetInquirerCache(): void;
|
|
48
|
-
/** Renderiza o checkbox (função pura, usada pelo prompt e testável). */
|
|
49
|
-
export declare function renderChecklist(message: string, entries: Array<{
|
|
50
|
-
id: string;
|
|
51
|
-
label: string;
|
|
52
|
-
}>, state: SelectionState, activeIndex: number): string;
|
|
53
|
-
/**
|
|
54
|
-
* Pergunta quais itens executar, com "Marcar todos" sincronizado. Retorna os ids escolhidos, ou
|
|
55
|
-
* `undefined` se não houver como perguntar (quem chama deve então rodar tudo).
|
|
56
|
-
*/
|
|
57
|
-
export declare function askMigrations(message: string, items: PromptItem[]): Promise<string[] | undefined>;
|
|
58
|
-
export declare function askConfirm(message: string, defaultValue: boolean): Promise<boolean>;
|
|
59
|
-
export declare function askInput(message: string, defaultValue: string): Promise<string>;
|
|
60
|
-
/** Checkbox simples (sem "Marcar todos"). Retorna `undefined` se não for possível perguntar. */
|
|
61
|
-
export declare function askChoices(message: string, items: PromptItem[], checkedByDefault?: boolean): Promise<string[] | undefined>;
|
|
62
|
-
export {};
|
|
@@ -1,166 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CAA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;QACD,OAAO,CAAC,MAAM,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC,IAAI,YAAY,CAAC;IAC9F,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,YAAY,CAAC;IACxB,CAAC;AACL,CAAC;AAED,gGAAgG;AACzF,KAAK,UAAU,UAAU,CAC5B,OAAe,EACf,KAAmB,EACnB,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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
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;
|