@koobiq/components 21.0.0 → 21.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badge/_badge-theme.scss +31 -0
- package/breadcrumbs/breadcrumbs.scss +5 -1
- package/checkbox/_checkbox-theme.scss +0 -17
- package/checkbox/checkbox-tokens.scss +0 -4
- package/code-block/_code-block-theme.scss +7 -6
- package/code-block/code-block-tokens.scss +8 -4
- package/code-block/code-block.scss +54 -32
- package/content-panel/content-panel-header.scss +2 -3
- package/content-panel/content-panel.scss +3 -0
- package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +0 -2
- package/fesm2022/koobiq-components-accordion.mjs +4 -4
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs +10 -2
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-app-switcher.mjs +1 -1
- package/fesm2022/koobiq-components-app-switcher.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +2 -2
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +18 -8
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-clamped-text.mjs +78 -10
- package/fesm2022/koobiq-components-clamped-text.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +106 -394
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-content-panel.mjs +4 -4
- package/fesm2022/koobiq-components-content-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +300 -37
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +151 -60
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs +3 -3
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +3 -3
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +17 -8
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +124 -41
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-flag.mjs +3 -3
- package/fesm2022/koobiq-components-flag.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +90 -27
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +38 -17
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-inline-edit.mjs +19 -2
- package/fesm2022/koobiq-components-inline-edit.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +76 -17
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +1 -1
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +3 -3
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +86 -25
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +4 -4
- package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +116 -38
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +86 -7
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +41 -19
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-search-expandable.mjs +29 -17
- package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +49 -12
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +198 -186
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +49 -25
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +30 -11
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +1 -1
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +28 -11
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-time-range.mjs +2 -2
- package/fesm2022/koobiq-components-time-range.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +71 -16
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -2
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +2 -2
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +25 -9
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +90 -17
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +27 -7
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +24 -9
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +288 -109
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +0 -12
- package/file-upload/file-upload-tokens.scss +0 -1
- package/file-upload/file-upload.scss +0 -1
- package/filter-bar/_filter-bar-theme.scss +7 -8
- package/filter-bar/filter-bar.scss +0 -1
- package/filter-bar/pipes/base-pipe.scss +36 -2
- package/filter-bar/pipes/pipe-multi-tree-select.scss +27 -0
- package/form-field/_fieldset-theme.scss +2 -7
- package/form-field/_form-field-theme.scss +9 -22
- package/form-field/_hint-theme.scss +20 -0
- package/form-field/fieldset-tokens.scss +0 -1
- package/form-field/fieldset.scss +0 -3
- package/form-field/form-field-tokens.scss +1 -1
- package/form-field/form-field.scss +9 -0
- package/form-field/hint-tokens.scss +3 -0
- package/modal/modal.scss +2 -0
- package/navbar/_navbar-item_vertical.scss +48 -2
- package/navbar/_navbar-theme.scss +11 -3
- package/navbar/navbar-item.scss +17 -0
- package/navbar/navbar-tokens.scss +3 -0
- package/package.json +4 -4
- package/popover/popover.scss +1 -1
- package/radio/_radio-theme.scss +0 -30
- package/radio/radio-tokens.scss +0 -2
- package/schematics/collection.json +94 -89
- package/schematics/migrations/accordion-state-saving-default/{index.js → index.cjs} +5 -4
- package/schematics/migrations/actions-panel-overlay-container/{index.js → index.cjs} +5 -4
- package/schematics/migrations/alert-signals/{index.js → index.cjs} +14 -13
- package/schematics/migrations/angular-animations-removal/index.cjs +21 -0
- package/schematics/migrations/app-switcher-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/autocomplete-panel-width-auto/{index.js → index.cjs} +6 -5
- package/schematics/migrations/autocomplete-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/badge-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/button-state-and-styles/{index.js → index.cjs} +7 -6
- package/schematics/migrations/button-supported-colors/{index.js → index.cjs} +7 -6
- package/schematics/migrations/button-toggle-signals-and-aria/{index.js → index.cjs} +7 -6
- package/schematics/migrations/button-truncation/{index.js → index.cjs} +7 -6
- package/schematics/migrations/checkbox-signals/{index.js → index.cjs} +9 -8
- package/schematics/migrations/clamped-text-disclosure/{index.js → index.cjs} +5 -4
- package/schematics/migrations/code-block-highlight-js-core/README.md +53 -0
- package/schematics/migrations/code-block-highlight-js-core/data.cjs +64 -0
- package/schematics/migrations/code-block-highlight-js-core/index.cjs +319 -0
- package/schematics/migrations/code-block-highlight-js-core/schema.json +20 -0
- package/schematics/migrations/code-block-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/color-signals/index.cjs +20 -0
- package/schematics/migrations/core-mixins-removal/index.cjs +18 -0
- package/schematics/migrations/css-selectors/{index.js → index.cjs} +4 -3
- package/schematics/migrations/datepicker-signals/index.cjs +18 -0
- package/schematics/migrations/deprecated-icons/README.md +21 -5
- package/schematics/migrations/deprecated-icons/{index.js → index.cjs} +15 -28
- package/schematics/migrations/deprecated-icons/schema.json +1 -1
- package/schematics/migrations/design-tokens-v4/{index.js → index.cjs} +3 -2
- package/schematics/migrations/divider-signals-and-aria/{index.js → index.cjs} +5 -4
- package/schematics/migrations/dl-attribute-coercion/{index.js → index.cjs} +7 -6
- package/schematics/migrations/dl-standalone-names/{index.js → index.cjs} +11 -10
- package/schematics/migrations/dropdown-demote-overlay/{index.js → index.cjs} +7 -6
- package/schematics/migrations/dropdown-signals/index.cjs +20 -0
- package/schematics/migrations/empty-state-error-color/{index.js → index.cjs} +5 -4
- package/schematics/migrations/empty-state-size-attr/{index.js → index.cjs} +6 -5
- package/schematics/migrations/file-upload-cva-and-primitives/{index.js → index.cjs} +5 -4
- package/schematics/migrations/file-upload-deprecated-outputs/{index.js → index.cjs} +5 -4
- package/schematics/migrations/filter-bar-rename-action/{index.js → index.cjs} +5 -4
- package/schematics/migrations/filter-bar-signals/{index.js → index.cjs} +16 -15
- package/schematics/migrations/filter-bar-state-saving-default/{index.js → index.cjs} +5 -4
- package/schematics/migrations/flag-inner-html/{index.js → index.cjs} +5 -4
- package/schematics/migrations/form-field-signals/{index.js → index.cjs} +18 -17
- package/schematics/migrations/icon-semantics-and-api/{data.js → data.cjs} +4 -4
- package/schematics/migrations/icon-semantics-and-api/{index.js → index.cjs} +6 -5
- package/schematics/migrations/icons-replacement/README.md +16 -2
- package/schematics/migrations/icons-replacement/{index.js → index.cjs} +21 -18
- package/schematics/migrations/icons-replacement/schema.json +12 -3
- package/schematics/migrations/inline-edit-a11y-and-types/{index.js → index.cjs} +5 -4
- package/schematics/migrations/input-number-surface/{index.js → index.cjs} +5 -4
- package/schematics/migrations/input-signals/index.cjs +18 -0
- package/schematics/migrations/link-deprecated-path/{index.js → index.cjs} +4 -3
- package/schematics/migrations/link-signals/{index.js → index.cjs} +5 -4
- package/schematics/migrations/list-signals/index.cjs +18 -0
- package/schematics/migrations/list-tree-multiple-input/{index.js → index.cjs} +7 -6
- package/schematics/migrations/loader-overlay-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/loader-overlay-size-attr/{index.js → index.cjs} +6 -5
- package/schematics/migrations/locale-configuration-providers/{index.js → index.cjs} +5 -4
- package/schematics/migrations/mandatory-peer-dependencies/{index.js → index.cjs} +3 -2
- package/schematics/migrations/markdown-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/modal-dialog-semantics/{index.js → index.cjs} +5 -4
- package/schematics/migrations/modal-signals/index.cjs +20 -0
- package/schematics/migrations/navbar-signals-and-aria/{index.js → index.cjs} +7 -6
- package/schematics/migrations/new-icons-pack/README.md +37 -25
- package/schematics/migrations/new-icons-pack/{index.js → index.cjs} +29 -38
- package/schematics/migrations/new-icons-pack/replacement.json +2 -14
- package/schematics/migrations/new-icons-pack/schema.json +3 -3
- package/schematics/migrations/notification-center-signals/{index.js → index.cjs} +5 -4
- package/schematics/migrations/option-signals/index.cjs +20 -0
- package/schematics/migrations/popover-leave-delay/{index.js → index.cjs} +5 -4
- package/schematics/migrations/progress-bar-percentage-and-aria/{index.js → index.cjs} +5 -4
- package/schematics/migrations/progress-spinner-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/query-list-signals/index.cjs +18 -0
- package/schematics/migrations/radio-signals-and-aria/{index.js → index.cjs} +9 -8
- package/schematics/migrations/read-state-dwell-handlers/{index.js → index.cjs} +5 -4
- package/schematics/migrations/scrollbar-deprecated-path/{index.js → index.cjs} +4 -3
- package/schematics/migrations/select-signal-inputs/{index.js → index.cjs} +5 -4
- package/schematics/migrations/sidepanel-non-modal-behavior/{index.js → index.cjs} +5 -4
- package/schematics/migrations/signal-inputs-subclasses/index.cjs +18 -0
- package/schematics/migrations/split-button-optional-disabled/{index.js → index.cjs} +5 -4
- package/schematics/migrations/splitter-deprecated-path/{index.js → index.cjs} +4 -3
- package/schematics/migrations/state-saving-default/{index.js → index.cjs} +5 -4
- package/schematics/migrations/table-cell-content/{index.js → index.cjs} +5 -4
- package/schematics/migrations/tabs-signals-and-aria/{index.js → index.cjs} +5 -4
- package/schematics/migrations/tag-list-cleaner/{index.js → index.cjs} +7 -6
- package/schematics/migrations/tag-slots/{index.js → index.cjs} +6 -5
- package/schematics/migrations/tags-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/textarea-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/time-range-title-for/{index.js → index.cjs} +5 -4
- package/schematics/migrations/timepicker-signals/{index.js → index.cjs} +7 -6
- package/schematics/migrations/timezone-grouping-utils/{index.js → index.cjs} +5 -4
- package/schematics/migrations/title-encapsulation/{index.js → index.cjs} +5 -4
- package/schematics/migrations/toast-stack-and-defaults/{index.js → index.cjs} +5 -4
- package/schematics/migrations/tooltip-pointer-events-and-types/{index.js → index.cjs} +5 -4
- package/schematics/migrations/top-bar-container-selectors/{index.js → index.cjs} +5 -4
- package/schematics/migrations/tree-select-signals/{index.js → index.cjs} +5 -4
- package/schematics/migrations/tree-signals/{index.js → index.cjs} +5 -4
- package/schematics/migrations/tree-state-saving-default/{index.js → index.cjs} +5 -4
- package/schematics/migrations/username-pipe-injection/{index.js → index.cjs} +5 -4
- package/schematics/migrations/v20-upgrade/{data.js → data.cjs} +7 -7
- package/schematics/migrations/v20-upgrade/index.cjs +19 -0
- package/schematics/migrations/v21-upgrade/{data.js → data.cjs} +22 -22
- package/schematics/migrations/v21-upgrade/{index.js → index.cjs} +11 -10
- package/schematics/migrations/zoneless-change-detection/index.cjs +21 -0
- package/schematics/migrations.json +87 -82
- package/schematics/ng-add/{index.js → index.cjs} +15 -289
- package/schematics/utils/{angular-parsing.js → angular-parsing.cjs} +2 -2
- package/schematics/utils/custom-data.cjs +64 -0
- package/schematics/utils/{deprecated-path-migration.js → deprecated-path-migration.cjs} +4 -3
- package/schematics/utils/html-config.cjs +148 -0
- package/schematics/utils/{icon-migration.js → icon-migration.cjs} +11 -5
- package/schematics/utils/list-item-pattern.cjs +16 -0
- package/schematics/utils/{messages.js → messages.cjs} +4 -0
- package/schematics/utils/package-config.cjs +99 -0
- package/schematics/utils/project-files.cjs +25 -0
- package/schematics/utils/replacement-driver.cjs +337 -0
- package/schematics/utils/safe-rule.cjs +23 -0
- package/schematics/utils/signal-members-migration.cjs +779 -0
- package/schematics/utils/tag-patterns.cjs +21 -0
- package/schematics/utils/template-ref-access.cjs +155 -0
- package/schematics/utils/{typescript.js → typescript.cjs} +1 -1
- package/schematics/utils/warn-only-migration.cjs +52 -0
- package/schematics/utils/workspace-styles.cjs +123 -0
- package/select/select.scss +7 -0
- package/tabs/_tabs-common.scss +23 -0
- package/textarea/textarea-tokens.scss +4 -1
- package/toast/toast.component.scss +1 -0
- package/toggle/_toggle-theme.scss +0 -17
- package/tooltip/tooltip.scss +1 -1
- package/top-bar/top-bar-tokens.scss +1 -0
- package/top-bar/top-bar.scss +10 -0
- package/types/koobiq-components-accordion.d.ts +25 -0
- package/types/koobiq-components-button-toggle.d.ts +6 -0
- package/types/koobiq-components-checkbox.d.ts +30 -0
- package/types/koobiq-components-clamped-text.d.ts +16 -3
- package/types/koobiq-components-code-block.d.ts +55 -14
- package/types/koobiq-components-core.d.ts +226 -13
- package/types/koobiq-components-datepicker.d.ts +28 -1
- package/types/koobiq-components-divider.d.ts +28 -10
- package/types/koobiq-components-dropdown.d.ts +19 -0
- package/types/koobiq-components-filter-bar.d.ts +79 -6
- package/types/koobiq-components-flag.d.ts +18 -0
- package/types/koobiq-components-form-field.d.ts +87 -6
- package/types/koobiq-components-icon.d.ts +15 -0
- package/types/koobiq-components-inline-edit.d.ts +8 -1
- package/types/koobiq-components-input.d.ts +22 -3
- package/types/koobiq-components-list.d.ts +6 -0
- package/types/koobiq-components-modal.d.ts +7 -0
- package/types/koobiq-components-navbar.d.ts +71 -7
- package/types/koobiq-components-notification-center.d.ts +13 -0
- package/types/koobiq-components-overflow-items.d.ts +26 -2
- package/types/koobiq-components-popover.d.ts +38 -3
- package/types/koobiq-components-radio.d.ts +30 -0
- package/types/koobiq-components-search-expandable.d.ts +10 -0
- package/types/koobiq-components-select.d.ts +36 -4
- package/types/koobiq-components-sidepanel.d.ts +52 -1
- package/types/koobiq-components-splitter.d.ts +13 -4
- package/types/koobiq-components-tabs.d.ts +4 -0
- package/types/koobiq-components-tags.d.ts +6 -0
- package/types/koobiq-components-textarea.d.ts +9 -2
- package/types/koobiq-components-timepicker.d.ts +15 -0
- package/types/koobiq-components-toggle.d.ts +30 -0
- package/types/koobiq-components-tooltip.d.ts +55 -10
- package/types/koobiq-components-top-bar.d.ts +11 -3
- package/types/koobiq-components-tree-select.d.ts +23 -8
- package/types/koobiq-components-tree.d.ts +144 -60
- package/schematics/migrations/angular-animations-removal/index.js +0 -20
- package/schematics/migrations/color-signals/index.js +0 -19
- package/schematics/migrations/core-mixins-removal/index.js +0 -17
- package/schematics/migrations/datepicker-signals/index.js +0 -17
- package/schematics/migrations/dropdown-signals/index.js +0 -19
- package/schematics/migrations/input-signals/index.js +0 -17
- package/schematics/migrations/list-signals/index.js +0 -17
- package/schematics/migrations/modal-signals/index.js +0 -19
- package/schematics/migrations/option-signals/index.js +0 -19
- package/schematics/migrations/query-list-signals/index.js +0 -17
- package/schematics/migrations/signal-inputs-subclasses/index.js +0 -17
- package/schematics/migrations/v20-upgrade/index.js +0 -18
- package/schematics/migrations/zoneless-change-detection/index.js +0 -20
- package/schematics/utils/package-config.js +0 -13
- /package/schematics/migrations/accordion-state-saving-default/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/actions-panel-overlay-container/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/alert-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/angular-animations-removal/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/app-switcher-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/autocomplete-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/badge-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/button-state-and-styles/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/button-supported-colors/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/button-toggle-signals-and-aria/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/button-truncation/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/checkbox-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/clamped-text-disclosure/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/code-block-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/color-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/core-mixins-removal/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/css-selectors/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/datepicker-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/deprecated-icons/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/divider-signals-and-aria/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/dl-attribute-coercion/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/dl-standalone-names/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/dropdown-demote-overlay/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/dropdown-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/empty-state-error-color/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/file-upload-cva-and-primitives/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/file-upload-deprecated-outputs/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/filter-bar-rename-action/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/filter-bar-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/filter-bar-state-saving-default/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/flag-inner-html/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/form-field-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/icons-replacement/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/inline-edit-a11y-and-types/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/input-number-surface/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/input-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/link-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/list-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/list-tree-multiple-input/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/loader-overlay-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/locale-configuration-providers/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/markdown-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/modal-dialog-semantics/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/modal-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/navbar-signals-and-aria/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/new-icons-pack/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/notification-center-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/option-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/popover-leave-delay/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/progress-bar-percentage-and-aria/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/progress-spinner-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/query-list-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/radio-signals-and-aria/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/read-state-dwell-handlers/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/select-signal-inputs/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/sidepanel-non-modal-behavior/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/signal-inputs-subclasses/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/split-button-optional-disabled/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/state-saving-default/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/table-cell-content/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/tabs-signals-and-aria/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/tag-list-cleaner/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/tags-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/textarea-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/time-range-title-for/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/timepicker-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/timezone-grouping-utils/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/title-encapsulation/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/toast-stack-and-defaults/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/tooltip-pointer-events-and-types/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/top-bar-container-selectors/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/tree-select-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/tree-signals/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/tree-state-saving-default/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/username-pipe-injection/{data.js → data.cjs} +0 -0
- /package/schematics/migrations/zoneless-change-detection/{data.js → data.cjs} +0 -0
- /package/schematics/utils/{ast.js → ast.cjs} +0 -0
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"project": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "Name of the project",
|
|
9
|
+
"description": "Name of the project, or a folder to migrate (e.g. ./libs). Without it the whole workspace is migrated",
|
|
10
10
|
"$default": {
|
|
11
11
|
"$source": "projectName"
|
|
12
12
|
}
|
|
@@ -18,15 +18,24 @@
|
|
|
18
18
|
},
|
|
19
19
|
"allowed": {
|
|
20
20
|
"type": "array",
|
|
21
|
-
"default": [
|
|
21
|
+
"default": [
|
|
22
|
+
".html",
|
|
23
|
+
".ts",
|
|
24
|
+
".scss"
|
|
25
|
+
],
|
|
22
26
|
"items": {
|
|
23
27
|
"type": "string"
|
|
24
28
|
},
|
|
25
29
|
"description": "Allowed file extensions to check"
|
|
26
30
|
},
|
|
31
|
+
"customDataPath": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "JSON file with an icon mapping that replaces the built-in one, an array of { \"replace\": \"<old>\", \"replaceWith\": \"<new>\" }, resolved from the workspace root"
|
|
34
|
+
},
|
|
27
35
|
"replacementDataPath": {
|
|
28
36
|
"type": "string",
|
|
29
|
-
"description": "
|
|
37
|
+
"description": "Deprecated, use customDataPath. Resolved from the project root or the folder first",
|
|
38
|
+
"x-deprecated": "Use --custom-data-path, resolved from the workspace root."
|
|
30
39
|
}
|
|
31
40
|
}
|
|
32
41
|
}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var utils_messages = require('../../utils/messages.
|
|
6
|
-
var utils_packageConfig = require('../../package-config
|
|
7
|
-
var
|
|
5
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
6
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
7
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
8
|
+
var migrations_inlineEditA11yAndTypes_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -50,7 +51,7 @@ function inlineEditA11yAndTypes(options) {
|
|
|
50
51
|
let reported = 0;
|
|
51
52
|
/** Collected during the walk and applied after it, so the tree is not mutated while iterating. */
|
|
52
53
|
const renames = [];
|
|
53
|
-
|
|
54
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath, entry) => {
|
|
54
55
|
if (!EXTENSIONS.some((extension) => filePath.endsWith(extension)))
|
|
55
56
|
return;
|
|
56
57
|
const originalContent = entry?.content.toString();
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ts = require('typescript');
|
|
6
|
-
var utils_messages = require('../../utils/messages.
|
|
7
|
-
var utils_packageConfig = require('../../package-config
|
|
8
|
-
var
|
|
6
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
7
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
8
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
9
|
+
var migrations_inputNumberSurface_data = require('./data.cjs');
|
|
9
10
|
require('@angular-devkit/schematics');
|
|
10
11
|
require('@schematics/angular/utility');
|
|
11
12
|
|
|
@@ -229,7 +230,7 @@ function inputNumberSurface(options) {
|
|
|
229
230
|
let reported = 0;
|
|
230
231
|
let touched = 0;
|
|
231
232
|
const pending = [];
|
|
232
|
-
|
|
233
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath, entry) => {
|
|
233
234
|
if (!EXTENSIONS.some((extension) => filePath.endsWith(extension)))
|
|
234
235
|
return;
|
|
235
236
|
const content = entry?.content.toString();
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var utils_warnOnlyMigration = require('../../utils/warn-only-migration.cjs');
|
|
6
|
+
var migrations_inputSignals_data = require('./data.cjs');
|
|
7
|
+
require('../../utils/messages.cjs');
|
|
8
|
+
require('../../utils/package-config.cjs');
|
|
9
|
+
require('@angular-devkit/schematics');
|
|
10
|
+
require('@schematics/angular/utility');
|
|
11
|
+
require('../../utils/project-files.cjs');
|
|
12
|
+
|
|
13
|
+
/** Reports programmatic writes to the signal inputs of `KbqNumberInput` and `KbqInput`. Never writes. */
|
|
14
|
+
function inputSignals(options) {
|
|
15
|
+
return utils_warnOnlyMigration.warnOnlyRule({ label: '[input-signals]', warnPatterns: migrations_inputSignals_data.warnPatterns, summary: migrations_inputSignals_data.SUMMARY }, options);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.default = inputSignals;
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var utils_deprecatedPathMigration = require('../../utils/deprecated-path-migration.
|
|
6
|
-
require('../../utils/messages.
|
|
7
|
-
require('../../package-config
|
|
5
|
+
var utils_deprecatedPathMigration = require('../../utils/deprecated-path-migration.cjs');
|
|
6
|
+
require('../../utils/messages.cjs');
|
|
7
|
+
require('../../utils/package-config.cjs');
|
|
8
8
|
require('@angular-devkit/schematics');
|
|
9
9
|
require('@schematics/angular/utility');
|
|
10
|
+
require('../../utils/project-files.cjs');
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* `@koobiq/components/link` now resolves to the `KbqLink` component, which renders the text, the slots
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ts = require('typescript');
|
|
6
|
-
var utils_messages = require('../../utils/messages.
|
|
7
|
-
var utils_packageConfig = require('../../package-config
|
|
8
|
-
var
|
|
6
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
7
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
8
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
9
|
+
var migrations_linkSignals_data = require('./data.cjs');
|
|
9
10
|
require('@angular-devkit/schematics');
|
|
10
11
|
require('@schematics/angular/utility');
|
|
11
12
|
|
|
@@ -378,7 +379,7 @@ function linkSignals(options) {
|
|
|
378
379
|
const root = projectDefinition?.root ?? '';
|
|
379
380
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
380
381
|
const tsPaths = [];
|
|
381
|
-
|
|
382
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath) => {
|
|
382
383
|
if (filePath.endsWith(TS_EXT))
|
|
383
384
|
tsPaths.push(filePath);
|
|
384
385
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var utils_warnOnlyMigration = require('../../utils/warn-only-migration.cjs');
|
|
6
|
+
var migrations_listSignals_data = require('./data.cjs');
|
|
7
|
+
require('../../utils/messages.cjs');
|
|
8
|
+
require('../../utils/package-config.cjs');
|
|
9
|
+
require('@angular-devkit/schematics');
|
|
10
|
+
require('@schematics/angular/utility');
|
|
11
|
+
require('../../utils/project-files.cjs');
|
|
12
|
+
|
|
13
|
+
/** Reports programmatic writes to the signal inputs of `KbqListSelection` and `KbqListOption`. Never writes. */
|
|
14
|
+
function listSignals(options) {
|
|
15
|
+
return utils_warnOnlyMigration.warnOnlyRule({ label: '[list-signals]', warnPatterns: migrations_listSignals_data.warnPatterns, summary: migrations_listSignals_data.SUMMARY }, options);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.default = listSignals;
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ts = require('typescript');
|
|
6
|
-
var utils_ast = require('../../utils/ast.
|
|
7
|
-
var utils_messages = require('../../utils/messages.
|
|
8
|
-
var utils_packageConfig = require('../../package-config
|
|
9
|
-
var
|
|
10
|
-
var
|
|
6
|
+
var utils_ast = require('../../utils/ast.cjs');
|
|
7
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
8
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
9
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
10
|
+
var utils_typescript = require('../../utils/typescript.cjs');
|
|
11
|
+
var migrations_listTreeMultipleInput_data = require('./data.cjs');
|
|
11
12
|
require('@angular-devkit/schematics');
|
|
12
13
|
require('@schematics/angular/utility');
|
|
13
14
|
|
|
@@ -160,7 +161,7 @@ function listTreeMultipleInput(options) {
|
|
|
160
161
|
const root = projectDefinition?.root ?? '';
|
|
161
162
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
162
163
|
const filePaths = [];
|
|
163
|
-
|
|
164
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath) => {
|
|
164
165
|
if (!filePath.endsWith(TS_EXT) && !filePath.endsWith(HTML_EXT))
|
|
165
166
|
return;
|
|
166
167
|
filePaths.push(filePath);
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ts = require('typescript');
|
|
6
|
-
var utils_ast = require('../../utils/ast.
|
|
7
|
-
var utils_messages = require('../../utils/messages.
|
|
8
|
-
var utils_packageConfig = require('../../package-config
|
|
9
|
-
var
|
|
10
|
-
var
|
|
6
|
+
var utils_ast = require('../../utils/ast.cjs');
|
|
7
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
8
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
9
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
10
|
+
var utils_typescript = require('../../utils/typescript.cjs');
|
|
11
|
+
var migrations_loaderOverlaySignals_data = require('./data.cjs');
|
|
11
12
|
require('@angular-devkit/schematics');
|
|
12
13
|
require('@schematics/angular/utility');
|
|
13
14
|
|
|
@@ -625,7 +626,7 @@ function loaderOverlaySignals(options) {
|
|
|
625
626
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
626
627
|
const tsPaths = [];
|
|
627
628
|
const htmlPaths = [];
|
|
628
|
-
|
|
629
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath) => {
|
|
629
630
|
if (filePath.endsWith(TS_EXT))
|
|
630
631
|
tsPaths.push(filePath);
|
|
631
632
|
else if (filePath.endsWith(HTML_EXT))
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var utils_angularParsing = require('../../utils/angular-parsing.
|
|
6
|
-
var utils_packageConfig = require('../../package-config
|
|
7
|
-
var utils_typescript = require('../../utils/typescript.
|
|
5
|
+
var utils_angularParsing = require('../../utils/angular-parsing.cjs');
|
|
6
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
7
|
+
var utils_typescript = require('../../utils/typescript.cjs');
|
|
8
8
|
require('typescript');
|
|
9
|
-
require('../../utils/ast.
|
|
9
|
+
require('../../utils/ast.cjs');
|
|
10
10
|
require('@angular-devkit/schematics');
|
|
11
11
|
require('@schematics/angular/utility');
|
|
12
|
-
require('../../utils/messages.
|
|
12
|
+
require('../../utils/messages.cjs');
|
|
13
|
+
require('../../utils/project-files.cjs');
|
|
13
14
|
|
|
14
15
|
const migrationData = {
|
|
15
16
|
elementName: 'kbq-loader-overlay',
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ts = require('typescript');
|
|
6
|
-
var utils_messages = require('../../utils/messages.
|
|
7
|
-
var utils_packageConfig = require('../../package-config
|
|
8
|
-
var
|
|
6
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
7
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
8
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
9
|
+
var migrations_localeConfigurationProviders_data = require('./data.cjs');
|
|
9
10
|
require('@angular-devkit/schematics');
|
|
10
11
|
require('@schematics/angular/utility');
|
|
11
12
|
|
|
@@ -226,7 +227,7 @@ function localeConfigurationProviders(options) {
|
|
|
226
227
|
const root = projectDefinition?.root ?? '';
|
|
227
228
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
228
229
|
const filePaths = [];
|
|
229
|
-
|
|
230
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath) => {
|
|
230
231
|
if (!filePath.endsWith(TS_EXT) && !filePath.endsWith(HTML_EXT))
|
|
231
232
|
return;
|
|
232
233
|
filePaths.push(filePath);
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var tasks = require('@angular-devkit/schematics/tasks');
|
|
6
|
-
var utils_messages = require('../../utils/messages.
|
|
7
|
-
var utils_packageConfig = require('../../package-config
|
|
6
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
7
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
8
8
|
require('@angular-devkit/schematics');
|
|
9
9
|
require('@schematics/angular/utility');
|
|
10
|
+
require('../../utils/project-files.cjs');
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* `@koobiq/components` now declares `overlayscrollbars` and `@koobiq/date-adapter` as mandatory peers.
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ts = require('typescript');
|
|
6
|
-
var utils_ast = require('../../utils/ast.
|
|
7
|
-
var utils_messages = require('../../utils/messages.
|
|
8
|
-
var utils_packageConfig = require('../../package-config
|
|
9
|
-
var
|
|
10
|
-
var
|
|
6
|
+
var utils_ast = require('../../utils/ast.cjs');
|
|
7
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
8
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
9
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
10
|
+
var utils_typescript = require('../../utils/typescript.cjs');
|
|
11
|
+
var migrations_markdownSignals_data = require('./data.cjs');
|
|
11
12
|
require('@angular-devkit/schematics');
|
|
12
13
|
require('@schematics/angular/utility');
|
|
13
14
|
|
|
@@ -572,7 +573,7 @@ function markdownSignals(options) {
|
|
|
572
573
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
573
574
|
const tsPaths = [];
|
|
574
575
|
const htmlPaths = [];
|
|
575
|
-
|
|
576
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath) => {
|
|
576
577
|
if (filePath.endsWith(TS_EXT))
|
|
577
578
|
tsPaths.push(filePath);
|
|
578
579
|
else if (filePath.endsWith(HTML_EXT))
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var utils_messages = require('../../utils/messages.
|
|
6
|
-
var utils_packageConfig = require('../../package-config
|
|
7
|
-
var
|
|
5
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
6
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
7
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
8
|
+
var migrations_modalDialogSemantics_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -30,7 +31,7 @@ function modalDialogSemantics(options) {
|
|
|
30
31
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
31
32
|
let consumers = 0;
|
|
32
33
|
let reported = 0;
|
|
33
|
-
|
|
34
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath, entry) => {
|
|
34
35
|
if (!EXTENSIONS.some((extension) => filePath.endsWith(extension)))
|
|
35
36
|
return;
|
|
36
37
|
const content = entry?.content.toString();
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var utils_signalMembersMigration = require('../../utils/signal-members-migration.cjs');
|
|
6
|
+
var migrations_modalSignals_data = require('./data.cjs');
|
|
7
|
+
require('typescript');
|
|
8
|
+
require('../../utils/ast.cjs');
|
|
9
|
+
require('../../utils/messages.cjs');
|
|
10
|
+
require('../../utils/package-config.cjs');
|
|
11
|
+
require('@angular-devkit/schematics');
|
|
12
|
+
require('@schematics/angular/utility');
|
|
13
|
+
require('../../utils/project-files.cjs');
|
|
14
|
+
require('../../utils/typescript.cjs');
|
|
15
|
+
|
|
16
|
+
function modalSignals(options) {
|
|
17
|
+
return utils_signalMembersMigration.signalMembersRule(migrations_modalSignals_data.config, options);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
exports.default = modalSignals;
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var ts = require('typescript');
|
|
6
|
-
var utils_ast = require('../../utils/ast.
|
|
7
|
-
var utils_messages = require('../../utils/messages.
|
|
8
|
-
var utils_packageConfig = require('../../package-config
|
|
9
|
-
var
|
|
10
|
-
var
|
|
6
|
+
var utils_ast = require('../../utils/ast.cjs');
|
|
7
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
8
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
9
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
10
|
+
var utils_typescript = require('../../utils/typescript.cjs');
|
|
11
|
+
var migrations_navbarSignalsAndAria_data = require('./data.cjs');
|
|
11
12
|
require('@angular-devkit/schematics');
|
|
12
13
|
require('@schematics/angular/utility');
|
|
13
14
|
|
|
@@ -498,7 +499,7 @@ function navbarSignalsAndAria(options) {
|
|
|
498
499
|
const tsPaths = [];
|
|
499
500
|
const htmlPaths = [];
|
|
500
501
|
const stylePaths = [];
|
|
501
|
-
|
|
502
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath) => {
|
|
502
503
|
if (filePath.endsWith(TS_EXT))
|
|
503
504
|
tsPaths.push(filePath);
|
|
504
505
|
else if (filePath.endsWith(HTML_EXT))
|
|
@@ -3,7 +3,9 @@
|
|
|
3
3
|
This schematic provides migration for update icons pack. It includes:
|
|
4
4
|
|
|
5
5
|
- Change prefixes from `mc` to `kbq` for TS, HTML, and styles
|
|
6
|
-
- Update icon names for updated/removed icons according to [mapping](data.ts)
|
|
6
|
+
- Update icon names for updated/removed icons according to [mapping](data.ts), in the values of `kbq-icon`,
|
|
7
|
+
`kbq-icon-item`, `kbq-icon-button` and of their `mc-*` counterparts (`mc-icon="mc-search_16"` →
|
|
8
|
+
`mc-icon="kbq-magnifying-glass_16"`; the attribute names themselves are left alone)
|
|
7
9
|
- Fix icons package prefix in styles
|
|
8
10
|
- Optionally use custom migration and replacement data
|
|
9
11
|
|
|
@@ -27,16 +29,32 @@ and can still be rewritten.
|
|
|
27
29
|
regardless of `updatePrefix`; the option only gates the _bare_ scope-word rename (`mc` → `kbq`) there. In
|
|
28
30
|
templates/TS, icon-attribute values are always matched regardless of `updatePrefix`.
|
|
29
31
|
|
|
30
|
-
####
|
|
32
|
+
#### Data
|
|
31
33
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
Everything the migration needs is built in: the icon-name mapping ([`data.ts`](data.ts)) and the `mc` → `kbq`
|
|
35
|
+
scope. Run it without the custom-data options — the log says which data it runs on. The options are for a
|
|
36
|
+
mapping or a scope of your own, not for passing the shipped files back in.
|
|
37
|
+
|
|
38
|
+
`--custom-data-path` takes the icon-name mapping, an array of `replace`/`replaceWith` pairs written with the
|
|
39
|
+
`kbq-` prefix (the `mc-` form of each name is matched as well):
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
[{ "replace": "kbq-add-to-list_16", "replaceWith": "kbq-file-plus-o_16" }]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
The same option and shape are read by `icons-replacement`. A file of `{ "from", "to" }` pairs, the shape
|
|
46
|
+
`icons-replacement` used to read, is still accepted with a warning.
|
|
47
|
+
|
|
48
|
+
`--custom-icon-replacement-path` takes the scope pair, bare words with no hyphen:
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
[{ "replace": "mc", "replaceWith": "kbq" }]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
[`migration.json`](migration.json) and [`replacement.json`](replacement.json) hold the built-in data in these
|
|
55
|
+
shapes, so they can be copied as a starting point. A path is resolved from the workspace root first, then as an
|
|
56
|
+
absolute path or one relative to the current directory; a missing file stops the run. A scope file still
|
|
57
|
+
written in the old fragment shape (`kbq-icon="mc-`) is ignored with a warning, and the built-in scope applies.
|
|
40
58
|
|
|
41
59
|
---
|
|
42
60
|
|
|
@@ -48,20 +66,17 @@ The schematic supports the following options:
|
|
|
48
66
|
Applies fixes automatically without prompting.
|
|
49
67
|
|
|
50
68
|
- **`--project`** (`string`)
|
|
51
|
-
Target Angular/Nx project name
|
|
69
|
+
Target Angular/Nx project name, or a folder such as `./libs`. Without it the whole workspace is migrated;
|
|
70
|
+
`node_modules` and `dist` are always skipped.
|
|
52
71
|
|
|
53
72
|
- **`--update-prefix`** (`boolean`)
|
|
54
73
|
Whether to change icon prefixes during migration.
|
|
55
74
|
|
|
56
75
|
- **`--custom-data-path`** (`string`)
|
|
57
|
-
|
|
58
|
-
When provided, use `migration.json` file as a default.
|
|
59
|
-
Use this option if you want to override the default icon mapping data.
|
|
76
|
+
JSON file with an icon-name mapping that replaces the built-in one (see [Data](#data)).
|
|
60
77
|
|
|
61
78
|
- **`--custom-icon-replacement-path`** (`string`)
|
|
62
|
-
|
|
63
|
-
When provided, use `replacement.json` file as a default.
|
|
64
|
-
Use this option to customize how icon attributes are replaced during migration.
|
|
79
|
+
JSON file with a scope pair that replaces the built-in `mc` → `kbq` (see [Data](#data)).
|
|
65
80
|
|
|
66
81
|
The schema definition can be found in [`schema.ts`](schema.ts).
|
|
67
82
|
|
|
@@ -71,22 +86,19 @@ The schema definition can be found in [`schema.ts`](schema.ts).
|
|
|
71
86
|
|
|
72
87
|
```shell
|
|
73
88
|
ng g @koobiq/components:new-icons-pack --fix=true --project "<your project>"
|
|
89
|
+
ng g @koobiq/components:new-icons-pack --fix=true --project ./libs
|
|
74
90
|
```
|
|
75
91
|
|
|
76
92
|
#### Angular CLI with custom data
|
|
77
93
|
|
|
78
94
|
```shell
|
|
79
95
|
ng g @koobiq/components:new-icons-pack \
|
|
80
|
-
--custom-data-path
|
|
81
|
-
--custom-icon-replacement-path my-
|
|
96
|
+
--custom-data-path my-icons.json \
|
|
97
|
+
--custom-icon-replacement-path my-scope.json \
|
|
82
98
|
--fix=true \
|
|
83
99
|
--project "<your-project>"
|
|
84
100
|
```
|
|
85
101
|
|
|
86
|
-
`migration.json` is the shipped icon-name mapping and can be used as-is. `my-replacement.json` is a file you
|
|
87
|
-
write yourself, in the new bare scope-word-pair shape described above — **not** the shipped
|
|
88
|
-
[`replacement.json`](replacement.json), which is still in the legacy shape.
|
|
89
|
-
|
|
90
102
|
#### Nx
|
|
91
103
|
|
|
92
104
|
```shell
|
|
@@ -97,8 +109,8 @@ nx g @koobiq/components:new-icons-pack --fix=true --project "<your project>"
|
|
|
97
109
|
|
|
98
110
|
```shell
|
|
99
111
|
nx g @koobiq/components:new-icons-pack \
|
|
100
|
-
--custom-data-path
|
|
101
|
-
--custom-icon-replacement-path my-
|
|
112
|
+
--custom-data-path my-icons.json \
|
|
113
|
+
--custom-icon-replacement-path my-scope.json \
|
|
102
114
|
--fix=true \
|
|
103
115
|
--project "<your-project>"
|
|
104
116
|
```
|
|
@@ -2,17 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var fs = require('fs');
|
|
6
5
|
var path = require('path');
|
|
7
|
-
var utils_angularParsing = require('../../utils/angular-parsing.
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
6
|
+
var utils_angularParsing = require('../../utils/angular-parsing.cjs');
|
|
7
|
+
var utils_customData = require('../../utils/custom-data.cjs');
|
|
8
|
+
var utils_iconMigration = require('../../utils/icon-migration.cjs');
|
|
9
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
10
|
+
var utils_packageConfig = require('../../utils/package-config.cjs');
|
|
11
|
+
var utils_projectFiles = require('../../utils/project-files.cjs');
|
|
12
|
+
var migrations_newIconsPack_data = require('./data.cjs');
|
|
12
13
|
require('typescript');
|
|
13
|
-
require('../../utils/ast.
|
|
14
|
-
require('../../utils/typescript.
|
|
14
|
+
require('../../utils/ast.cjs');
|
|
15
|
+
require('../../utils/typescript.cjs');
|
|
15
16
|
require('@angular-devkit/schematics');
|
|
17
|
+
require('fs');
|
|
16
18
|
require('@schematics/angular/utility');
|
|
17
19
|
|
|
18
20
|
function _interopNamespaceDefault(e) {
|
|
@@ -34,11 +36,6 @@ function _interopNamespaceDefault(e) {
|
|
|
34
36
|
|
|
35
37
|
var path__namespace = /*#__PURE__*/_interopNamespaceDefault(path);
|
|
36
38
|
|
|
37
|
-
function readJsonFile(filePath) {
|
|
38
|
-
const absolutePath = path__namespace.resolve(filePath);
|
|
39
|
-
const fileContents = fs.readFileSync(absolutePath, 'utf-8');
|
|
40
|
-
return JSON.parse(fileContents);
|
|
41
|
-
}
|
|
42
39
|
// A bare word: no leading/trailing hyphen, no empty hyphen-separated segment (rejects e.g. `mc-`,
|
|
43
40
|
// which is otherwise the most natural — and wrong, per the new engine's key-building — way to
|
|
44
41
|
// write a "prefix" pair).
|
|
@@ -84,32 +81,35 @@ function resolveScope(entries, fallback, logger) {
|
|
|
84
81
|
return { from: valid.replace, to: valid.replaceWith };
|
|
85
82
|
}
|
|
86
83
|
function newIconsPack(options) {
|
|
87
|
-
let targetDir;
|
|
88
84
|
return async (tree, context) => {
|
|
89
85
|
const { project, fix, stylesExt, updatePrefix = true, customDataPath, customIconReplacementPath } = options;
|
|
90
86
|
const { logger } = context;
|
|
91
|
-
const resolvedData = customDataPath
|
|
87
|
+
const resolvedData = customDataPath
|
|
88
|
+
? utils_customData.readCustomIconMapping(tree, customDataPath, logger)
|
|
89
|
+
: migrations_newIconsPack_data.newIconsPackData.map(({ replace, replaceWith }) => ({ from: replace, to: replaceWith }));
|
|
92
90
|
const resolvedScope = customIconReplacementPath
|
|
93
|
-
? resolveScope(
|
|
91
|
+
? resolveScope(utils_customData.readCustomJson(tree, customIconReplacementPath), migrations_newIconsPack_data.scope, logger)
|
|
94
92
|
: migrations_newIconsPack_data.scope;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
93
|
+
logger.info([
|
|
94
|
+
customDataPath
|
|
95
|
+
? `Icon mapping: ${resolvedData.length} entries from '${customDataPath}'.`
|
|
96
|
+
: `Icon mapping: the built-in one, ${resolvedData.length} entries (--custom-data-path overrides it).`,
|
|
97
|
+
customIconReplacementPath
|
|
98
|
+
? `Scope: ${resolvedScope.from} -> ${resolvedScope.to}, from '${customIconReplacementPath}'.`
|
|
99
|
+
: `Scope: ${resolvedScope.from} -> ${resolvedScope.to}, the built-in one (--custom-icon-replacement-path overrides it).`
|
|
100
|
+
].join('\n'));
|
|
101
|
+
const targetDir = await utils_packageConfig.resolveTargetDir(project, tree);
|
|
102
102
|
const migrationData = {
|
|
103
|
-
valueAttrs: ['kbq-icon', 'kbq-icon-item', 'kbq-icon-button'],
|
|
103
|
+
valueAttrs: ['kbq-icon', 'kbq-icon-item', 'kbq-icon-button', 'mc-icon', 'mc-icon-item', 'mc-icon-button'],
|
|
104
104
|
scope: resolvedScope,
|
|
105
105
|
scopeClassInList: 'rename',
|
|
106
106
|
// `replace`/`replaceWith` are always authored under `CANONICAL_ICON_DATA_SCOPE`
|
|
107
107
|
// ('kbq-'), regardless of the scope this run is migrating *to* — falls back to
|
|
108
108
|
// stripping the target scope for a custom data file that doesn't follow that
|
|
109
109
|
// convention.
|
|
110
|
-
icons: resolvedData.map(({
|
|
111
|
-
from: stripScopePrefix(
|
|
112
|
-
to: stripScopePrefix(
|
|
110
|
+
icons: resolvedData.map(({ from, to }) => ({
|
|
111
|
+
from: stripScopePrefix(from, [CANONICAL_ICON_DATA_SCOPE, resolvedScope.to, resolvedScope.from]),
|
|
112
|
+
to: stripScopePrefix(to, [CANONICAL_ICON_DATA_SCOPE, resolvedScope.to])
|
|
113
113
|
})),
|
|
114
114
|
// Only the attribute-value path (`kbq-icon="mc-<anything>"`) rescopes suffixes that
|
|
115
115
|
// aren't a known icon name; class lists/bindings/strings/styles stay exact-token-only.
|
|
@@ -144,11 +144,7 @@ function newIconsPack(options) {
|
|
|
144
144
|
const tsPaths = [];
|
|
145
145
|
const markdownPaths = [];
|
|
146
146
|
// Update templates & components
|
|
147
|
-
|
|
148
|
-
// if project property not provided, skip files in node_modules & dist
|
|
149
|
-
if (filePath.includes('node_modules') || filePath.includes('/dist/')) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
147
|
+
utils_projectFiles.visitProjectFiles(targetDir, (filePath) => {
|
|
152
148
|
if (filePath.endsWith('.html')) {
|
|
153
149
|
templatePaths.push(filePath);
|
|
154
150
|
}
|
|
@@ -180,12 +176,7 @@ function newIconsPack(options) {
|
|
|
180
176
|
}
|
|
181
177
|
// update styles — icon-name renames always apply; `updatePrefix` only adds the bare
|
|
182
178
|
// scope-word rename (see `styleAndMarkdownTokenMap` above).
|
|
183
|
-
|
|
184
|
-
// if project property not provided, styles in node_modules are still skipped, same as
|
|
185
|
-
// every other file type above
|
|
186
|
-
if (filePath.includes('node_modules')) {
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
179
|
+
utils_projectFiles.visitProjectFiles(targetDir, (filePath) => {
|
|
189
180
|
if (!filePath.endsWith(stylesExt)) {
|
|
190
181
|
return;
|
|
191
182
|
}
|