@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
|
@@ -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_timezoneGroupingUtils_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -36,7 +37,7 @@ function timezoneGroupingUtils(options) {
|
|
|
36
37
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
37
38
|
let consumers = 0;
|
|
38
39
|
let reported = 0;
|
|
39
|
-
|
|
40
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath, entry) => {
|
|
40
41
|
if (!EXTENSIONS.some((extension) => filePath.endsWith(extension)))
|
|
41
42
|
return;
|
|
42
43
|
const content = entry.content.toString();
|
|
@@ -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_titleEncapsulation_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -29,7 +30,7 @@ function titleEncapsulation(options) {
|
|
|
29
30
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
30
31
|
let consumers = 0;
|
|
31
32
|
let reported = 0;
|
|
32
|
-
|
|
33
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath, entry) => {
|
|
33
34
|
if (!EXTENSIONS.some((extension) => filePath.endsWith(extension)))
|
|
34
35
|
return;
|
|
35
36
|
const content = entry?.content.toString();
|
|
@@ -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_toastStackAndDefaults_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -24,7 +25,7 @@ function toastStackAndDefaults(options) {
|
|
|
24
25
|
const root = projectDefinition?.root ?? '';
|
|
25
26
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
26
27
|
const filePaths = [];
|
|
27
|
-
|
|
28
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath) => {
|
|
28
29
|
if (!isMigratableFile(filePath))
|
|
29
30
|
return;
|
|
30
31
|
filePaths.push(filePath);
|
|
@@ -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_tooltipPointerEventsAndTypes_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -30,7 +31,7 @@ function tooltipPointerEventsAndTypes(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();
|
|
@@ -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_topBarContainerSelectors_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -36,7 +37,7 @@ function topBarContainerSelectors(options) {
|
|
|
36
37
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
37
38
|
let renamed = 0;
|
|
38
39
|
let reported = 0;
|
|
39
|
-
|
|
40
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath, entry) => {
|
|
40
41
|
if (!EXTENSIONS.some((extension) => filePath.endsWith(extension)))
|
|
41
42
|
return;
|
|
42
43
|
const content = entry?.content.toString();
|
|
@@ -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_treeSelectSignals_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -30,7 +31,7 @@ function treeSelectSignals(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();
|
|
@@ -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_treeSignals_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -26,7 +27,7 @@ function treeSignals(options) {
|
|
|
26
27
|
const rootDir = root ? tree.getDir(root) : tree.root;
|
|
27
28
|
let consumers = 0;
|
|
28
29
|
let reported = 0;
|
|
29
|
-
|
|
30
|
+
utils_projectFiles.visitProjectFiles(rootDir, (filePath, entry) => {
|
|
30
31
|
if (!EXTENSIONS.some((extension) => filePath.endsWith(extension)))
|
|
31
32
|
return;
|
|
32
33
|
const content = entry?.content.toString();
|
|
@@ -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_treeStateSavingDefault_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -30,7 +31,7 @@ function treeStateSavingDefault(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();
|
|
@@ -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_usernamePipeInjection_data = require('./data.cjs');
|
|
8
9
|
require('@angular-devkit/schematics');
|
|
9
10
|
require('@schematics/angular/utility');
|
|
10
11
|
|
|
@@ -30,7 +31,7 @@ function usernamePipeInjection(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();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var utils_listItemPattern = require('../../utils/list-item-pattern.cjs');
|
|
4
|
+
var utils_tagPatterns = require('../../utils/tag-patterns.cjs');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Replacement data for the v20.0.0 deprecated API removal migration, applied by `replacementMigrationRule`.
|
|
@@ -16,7 +16,7 @@ const namedImport = (symbol, module) => `\\bimport\\s*(?:type\\s*)?\\{[^}]*\\b${
|
|
|
16
16
|
/** A mention of the Koobiq autocomplete: one of its symbols, its entry point, its `exportAs` or its input. */
|
|
17
17
|
const KBQ_AUTOCOMPLETE = '(?:\\bKbqAutocomplete|@koobiq/components/autocomplete\\b|\\bkbqAutocomplete)';
|
|
18
18
|
/** An opening `<kbq-divider>` tag up to one of its attributes, captured as `$1`. */
|
|
19
|
-
const DIVIDER_TAG = `(<kbq-divider(?![\\w-])${
|
|
19
|
+
const DIVIDER_TAG = `(<kbq-divider(?![\\w-])${utils_tagPatterns.TAG_BODY}*?)`;
|
|
20
20
|
/** The `="…"` of an attribute. */
|
|
21
21
|
const ATTRIBUTE_VALUE = `(?:\\s*=\\s*(?:"[^"]*"|'[^']*'))`;
|
|
22
22
|
const REMOVED_SYMBOLS = [
|
|
@@ -43,7 +43,7 @@ const outsideLists = ({ name, call }) => `(?<![\\[{,]\\s*(?:\\btype\\s+)?)\\b${n
|
|
|
43
43
|
* it nowhere else. A file that also uses it elsewhere is left untouched and reported.
|
|
44
44
|
*/
|
|
45
45
|
const removeFromLists = (symbol) => ({
|
|
46
|
-
from:
|
|
46
|
+
from: utils_listItemPattern.listItemPattern(symbol.call ? `\\b${symbol.name}\\(\\s*\\)` : `\\b${symbol.name}\\b`),
|
|
47
47
|
to: '',
|
|
48
48
|
unless: outsideLists(symbol),
|
|
49
49
|
removeImport: { symbol: symbol.name, from: symbol.module }
|
|
@@ -201,8 +201,8 @@ const templateReplacements = [
|
|
|
201
201
|
// ─── KbqCodeBlock deprecated input renames ────────────────────────────
|
|
202
202
|
// `[x]="…"`, `x="…"` and a valueless `x`, only on a `<kbq-code-block>` that does not bind the replacement
|
|
203
203
|
// as well: the two bindings would end up under one name. Such a tag is reported below.
|
|
204
|
-
{ from: String.raw `${
|
|
205
|
-
{ from: String.raw `${
|
|
204
|
+
{ from: String.raw `${utils_tagPatterns.codeBlockTagWithout('canDownload')}canLoad(?=\]?[\s=/>])`, to: '$1canDownload' },
|
|
205
|
+
{ from: String.raw `${utils_tagPatterns.codeBlockTagWithout('files')}codeFiles(?=\]?[\s=/>])`, to: '$1files' },
|
|
206
206
|
// ─── Tooltip warning trigger → kbqTooltip + modifier ───────────────────
|
|
207
207
|
// Two-step: first add modifier attribute, then rename binding key.
|
|
208
208
|
// The modifier insertion must come before the binding rename otherwise we
|
|
@@ -271,7 +271,7 @@ const warnPatterns = [
|
|
|
271
271
|
'update any programmatic (TypeScript) access manually.'
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
|
-
pattern: `${
|
|
274
|
+
pattern: `${utils_tagPatterns.codeBlockTagWith('canLoad', 'canDownload')}|${utils_tagPatterns.codeBlockTagWith('codeFiles', 'files')}`,
|
|
275
275
|
message: 'A <kbq-code-block> that binds `canLoad` next to `canDownload`, or `codeFiles` next to `files`, was ' +
|
|
276
276
|
'left untouched: merge each pair into one `canDownload` / `files` binding. Manual migration required.'
|
|
277
277
|
},
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var utils_replacementDriver = require('../../utils/replacement-driver.cjs');
|
|
6
|
+
var migrations_v20Upgrade_data = require('./data.cjs');
|
|
7
|
+
require('../../utils/list-item-pattern.cjs');
|
|
8
|
+
require('../../utils/messages.cjs');
|
|
9
|
+
require('../../utils/package-config.cjs');
|
|
10
|
+
require('@angular-devkit/schematics');
|
|
11
|
+
require('@schematics/angular/utility');
|
|
12
|
+
require('../../utils/project-files.cjs');
|
|
13
|
+
require('../../utils/tag-patterns.cjs');
|
|
14
|
+
|
|
15
|
+
function v20Upgrade(options) {
|
|
16
|
+
return utils_replacementDriver.replacementMigrationRule({ label: '[v20-upgrade]', tsReplacements: migrations_v20Upgrade_data.tsReplacements, templateReplacements: migrations_v20Upgrade_data.templateReplacements, scssReplacements: migrations_v20Upgrade_data.scssReplacements, warnPatterns: migrations_v20Upgrade_data.warnPatterns }, options);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
exports.default = v20Upgrade;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var utils_tagPatterns = require('../../utils/tag-patterns.cjs');
|
|
4
|
+
var utils_listItemPattern = require('../../utils/list-item-pattern.cjs');
|
|
5
5
|
|
|
6
6
|
/** Removed in 21.0.0: the `kbq-accordion-trigger__action` class. */
|
|
7
7
|
const accordion = {
|
|
@@ -16,20 +16,20 @@ const accordion = {
|
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
// An opening `<kbq-code-block>` tag that binds `name` twice.
|
|
19
|
-
const codeBlockTagTwice = (name) => String.raw `<kbq-code-block(?![\w-])(?=${
|
|
19
|
+
const codeBlockTagTwice = (name) => String.raw `<kbq-code-block(?![\w-])(?=${utils_tagPatterns.TAG_BODY}*[\s\[]${name}(?=[\]\s=/>])${utils_tagPatterns.TAG_BODY}*[\s\[]${name}[\]\s=/>])`;
|
|
20
20
|
// A file that names the component or reaches it through its `exportAs`.
|
|
21
21
|
const CODE_BLOCK_ANCHOR = String.raw `\bKbqCodeBlock\b|["']kbqCodeBlock["']`;
|
|
22
22
|
const ICON_BUTTON_ATTRIBUTE = String.raw `[\s\[]kbq-icon-button(?![\w-])`;
|
|
23
23
|
// The start of an attribute on an opening icon button tag that does not set `size` itself.
|
|
24
|
-
const ICON_BUTTON_TAG = String.raw `(<[a-zA-Z][\w-]*(?=${
|
|
24
|
+
const ICON_BUTTON_TAG = String.raw `(<[a-zA-Z][\w-]*(?=${utils_tagPatterns.TAG_BODY}*${ICON_BUTTON_ATTRIBUTE})(?!${utils_tagPatterns.TAG_BODY}*[\s\[]size[\]\s=/>])${utils_tagPatterns.TAG_BODY}*?\s)`;
|
|
25
25
|
// A property path such as `isSmall`, `options.small` or `small()`, which needs no parentheses in a ternary.
|
|
26
26
|
const PATH = String.raw `[A-Za-z_$][\w$]*(?:\(\))?(?:\??\.[A-Za-z_$][\w$]*(?:\(\))?)*`;
|
|
27
27
|
/** Removed in 21.0.0: KbqCodeBlock (canLoad, codeFiles, scrollableCodeContent) and KbqIconButton (small). */
|
|
28
28
|
const codeBlockAndIcon = {
|
|
29
29
|
templateReplacements: [
|
|
30
30
|
// `[canLoad]="…"`, `canLoad="…"` and a valueless `canLoad`.
|
|
31
|
-
{ from: String.raw `${
|
|
32
|
-
{ from: String.raw `${
|
|
31
|
+
{ from: String.raw `${utils_tagPatterns.codeBlockTagWithout('canDownload')}canLoad(?=\]?[\s=/>])`, to: '$1canDownload' },
|
|
32
|
+
{ from: String.raw `${utils_tagPatterns.codeBlockTagWithout('files')}codeFiles(?=\]?[\s=/>])`, to: '$1files' },
|
|
33
33
|
{ from: String.raw `${ICON_BUTTON_TAG}\[small\]\s*=\s*"true"`, to: '$1size="compact"' },
|
|
34
34
|
{ from: String.raw `${ICON_BUTTON_TAG}\[small\]\s*=\s*"false"`, to: '$1size="normal"' },
|
|
35
35
|
{ from: String.raw `${ICON_BUTTON_TAG}\[small\]\s*=\s*"(${PATH})"`, to: `$1[size]="$2 ? 'compact' : 'normal'"` },
|
|
@@ -42,7 +42,7 @@ const codeBlockAndIcon = {
|
|
|
42
42
|
warnPatterns: [
|
|
43
43
|
{
|
|
44
44
|
anchor: String.raw `<kbq-code-block(?![\w-])`,
|
|
45
|
-
pattern: `${
|
|
45
|
+
pattern: `${utils_tagPatterns.codeBlockTagWith('canLoad', 'canDownload')}|${utils_tagPatterns.codeBlockTagWith('codeFiles', 'files')}`,
|
|
46
46
|
message: 'KbqCodeBlock `canLoad` and `codeFiles` were removed: use `canDownload` and `files`. A ' +
|
|
47
47
|
'<kbq-code-block> that binds `canLoad` next to `canDownload`, or `codeFiles` next to `files`, was ' +
|
|
48
48
|
'left untouched: merge each pair into one binding. The download button showed when either was ' +
|
|
@@ -70,9 +70,9 @@ const codeBlockAndIcon = {
|
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
anchor: ICON_BUTTON_ATTRIBUTE,
|
|
73
|
-
pattern: String.raw `<[a-zA-Z][\w-]*(?=${
|
|
74
|
-
String.raw `(?=${
|
|
75
|
-
String.raw `${
|
|
73
|
+
pattern: String.raw `<[a-zA-Z][\w-]*(?=${utils_tagPatterns.TAG_BODY}*${ICON_BUTTON_ATTRIBUTE})(?:` +
|
|
74
|
+
String.raw `(?=${utils_tagPatterns.TAG_BODY}*[\s\[]size[\]\s=/>])${utils_tagPatterns.TAG_BODY}*[\s\[]small[\]\s=/>]|` +
|
|
75
|
+
String.raw `${utils_tagPatterns.TAG_BODY}*\s(?:small(?!\s*=\s*"true")(?=[\s=/>])|\[small\]\s*=\s*'))`,
|
|
76
76
|
message: 'KbqIconButton `small` was removed: set `size="compact"`. Left untouched: an icon button that ' +
|
|
77
77
|
'sets both `small` and `size`, a single-quoted `[small]` binding, and a static `small` other ' +
|
|
78
78
|
'than `small="true"`. A valueless `small` never took effect, so drop it; any other static ' +
|
|
@@ -113,7 +113,7 @@ const THEME_PALETTE = [
|
|
|
113
113
|
{
|
|
114
114
|
// The import specifier, with one of its commas, once nothing else names it; an emptied clause is dropped by
|
|
115
115
|
// `removeImport`. A re-export is reported instead.
|
|
116
|
-
from: `(?<=\\bimport\\s*(?:type\\s*)?\\{[^}]*)${
|
|
116
|
+
from: `(?<=\\bimport\\s*(?:type\\s*)?\\{[^}]*)${utils_listItemPattern.listItemPattern('\\bThemePalette\\b(?!\\s+as\\b)')}(?=[^}]*\\}\\s*from\\s*['"]${CORE$1}['"])(?![\\s\\S]*\\bThemePalette\\b)`,
|
|
117
117
|
to: '',
|
|
118
118
|
removeImport: { symbol: 'ThemePalette', from: CORE$1 }
|
|
119
119
|
}
|
|
@@ -124,7 +124,7 @@ const THEME_PALETTE = [
|
|
|
124
124
|
* where the name anywhere else is the app's own: `mcLine = 1`, `this.mcLine`, a `.mcLine` class in `styles`.
|
|
125
125
|
*/
|
|
126
126
|
const mcAlias = (name, to) => [
|
|
127
|
-
{ from: `(?<=<[a-zA-Z][\\w-]*\\s${
|
|
127
|
+
{ from: `(?<=<[a-zA-Z][\\w-]*\\s${utils_tagPatterns.TAG_BODY}*)(?<=\\s)${name}(?=[\\s=/>])`, to },
|
|
128
128
|
{ from: `(?<=['"\`][^'"\`\\n]*\\[\\s*)${name}(?=\\s*[\\]=~|^$*])`, to }
|
|
129
129
|
];
|
|
130
130
|
/** `name` as the attribute of a selector in a stylesheet, which matches an HTML attribute in any case. */
|
|
@@ -377,7 +377,7 @@ const CLEAR_VALUE = '`clearValue()` was removed from `KbqSelect`, `KbqTreeSelect
|
|
|
377
377
|
const toPanelWidth = (symbol, module) => [
|
|
378
378
|
{
|
|
379
379
|
// The imported specifier, with one of its commas; an emptied clause is dropped by `removeImport`.
|
|
380
|
-
from: `(?<=import\\s*(?:type\\s*)?\\{[^}]*)${
|
|
380
|
+
from: `(?<=import\\s*(?:type\\s*)?\\{[^}]*)${utils_listItemPattern.listItemPattern(`\\b${symbol}\\b(?!\\s+as\\b)`)}(?=[^}]*\\}\\s*from\\s*['"]${module}['"])`,
|
|
381
381
|
to: '',
|
|
382
382
|
removeImport: { symbol, from: module },
|
|
383
383
|
ensureImport: { symbol: 'KbqPanelWidth', from: CORE }
|
|
@@ -490,7 +490,7 @@ const filterBar = {
|
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
// The specifier, with one of its commas; an emptied clause is dropped by `removeImport`.
|
|
493
|
-
from: `(?<=(?:import|export)\\s*(?:type\\s*)?\\{[^}]*)${
|
|
493
|
+
from: `(?<=(?:import|export)\\s*(?:type\\s*)?\\{[^}]*)${utils_listItemPattern.listItemPattern('\\bKbqPipeMinWidth\\b(?!\\s+as\\b)')}${FILTER_BAR_CLAUSE_END}`,
|
|
494
494
|
to: '',
|
|
495
495
|
removeImport: { symbol: 'KbqPipeMinWidth', from: FILTER_BAR }
|
|
496
496
|
},
|
|
@@ -629,7 +629,7 @@ const formsControls = {
|
|
|
629
629
|
tsReplacements: [
|
|
630
630
|
{
|
|
631
631
|
// The specifier, with one of its commas; an emptied clause is dropped by `removeImport`.
|
|
632
|
-
from: `(?<=import\\s*(?:type\\s*)?\\{[^}]*)${
|
|
632
|
+
from: `(?<=import\\s*(?:type\\s*)?\\{[^}]*)${utils_listItemPattern.listItemPattern('\\bTransitionCheckState\\b(?!\\s+as\\b)')}${CHECKBOX_CLAUSE_END}`,
|
|
633
633
|
to: '',
|
|
634
634
|
removeImport: { symbol: 'TransitionCheckState', from: CHECKBOX },
|
|
635
635
|
ensureImport: { symbol: 'TransitionCheckState', from: '@koobiq/components/core' }
|
|
@@ -685,9 +685,9 @@ const formsControls = {
|
|
|
685
685
|
};
|
|
686
686
|
|
|
687
687
|
// An opening tag that carries the brand directive, as an element or an attribute, wherever it sits in the tag.
|
|
688
|
-
const BRAND_TAG = `<(?=${
|
|
688
|
+
const BRAND_TAG = `<(?=${utils_tagPatterns.TAG_BODY}*?\\bkbq-navbar-brand(?![\\w-]))${utils_tagPatterns.TAG_BODY}*?`;
|
|
689
689
|
// An opening `<kbq-dl>` tag that does not set `verticalBreakpoint` as well, which would end up bound twice.
|
|
690
|
-
const DL_TAG_WITHOUT_BREAKPOINT = `<kbq-dl(?![\\w-])(?!${
|
|
690
|
+
const DL_TAG_WITHOUT_BREAKPOINT = `<kbq-dl(?![\\w-])(?!${utils_tagPatterns.TAG_BODY}*\\bverticalBreakpoint\\b)${utils_tagPatterns.TAG_BODY}*?\\s`;
|
|
691
691
|
const QUOTED_VALUE = '(?:"[^"]*"|\'[^\']*\')';
|
|
692
692
|
const NUMBER = '\\s*[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?\\s*';
|
|
693
693
|
const QUOTED_NUMBER = `(?:"${NUMBER}"|'${NUMBER}')`;
|
|
@@ -753,7 +753,7 @@ const navbarAndLayout = {
|
|
|
753
753
|
},
|
|
754
754
|
{
|
|
755
755
|
anchor: '<kbq-dl(?![\\w-])',
|
|
756
|
-
pattern: `<kbq-dl(?![\\w-])(?=${
|
|
756
|
+
pattern: `<kbq-dl(?![\\w-])(?=${utils_tagPatterns.TAG_BODY}*\\bverticalBreakpoint\\b)${utils_tagPatterns.TAG_BODY}*\\s\\[?minWidth\\b`,
|
|
757
757
|
message: '`minWidth` was removed from `<kbq-dl>` and is left as is where `verticalBreakpoint` is set too. ' +
|
|
758
758
|
'It took precedence, so move its value into `verticalBreakpoint` and delete it.'
|
|
759
759
|
},
|
|
@@ -765,7 +765,7 @@ const navbarAndLayout = {
|
|
|
765
765
|
},
|
|
766
766
|
{
|
|
767
767
|
anchor: '<kbq-loader-overlay(?![\\w-])',
|
|
768
|
-
pattern: `<kbq-loader-overlay(?![\\w-])${
|
|
768
|
+
pattern: `<kbq-loader-overlay(?![\\w-])${utils_tagPatterns.TAG_BODY}*\\s\\[?(?:transparent|card)(?![\\w-])`,
|
|
769
769
|
message: LOADER_OVERLAY_DEPRECATED
|
|
770
770
|
},
|
|
771
771
|
{
|
|
@@ -793,7 +793,7 @@ const RENAMED_INPUTS = {
|
|
|
793
793
|
*/
|
|
794
794
|
function popoverInput(name, replacement) {
|
|
795
795
|
return {
|
|
796
|
-
from: `(<[a-zA-Z][\\w-]*(?=${
|
|
796
|
+
from: `(<[a-zA-Z][\\w-]*(?=${utils_tagPatterns.TAG_BODY}*[\\s\\[]kbqPopover)${utils_tagPatterns.TAG_BODY}*?\\s\\[?)${name}(?=\\]?\\s*=|[\\s/>])`,
|
|
797
797
|
to: `$1${replacement}`
|
|
798
798
|
};
|
|
799
799
|
}
|
|
@@ -1163,7 +1163,7 @@ const CONSTRUCTOR = '`KbqTreeOptionChange` takes only the option now: drop the s
|
|
|
1163
1163
|
'removed.';
|
|
1164
1164
|
/** Renames the `(from)` listener on an opening `<tag>` to `(to)`. */
|
|
1165
1165
|
function renameOutput(tag, from, to) {
|
|
1166
|
-
return { from: `(<${tag}(?![\\w-])${
|
|
1166
|
+
return { from: `(<${tag}(?![\\w-])${utils_tagPatterns.TAG_BODY}*?\\s)\\(${from}\\)(?=\\s*=)`, to: `$1(${to})` };
|
|
1167
1167
|
}
|
|
1168
1168
|
/**
|
|
1169
1169
|
* Removed in 21.0.0: KbqTreeOptionChange.isUserInput and the constructor parameter that set it. Neither has a
|
|
@@ -1191,7 +1191,7 @@ const tree = {
|
|
|
1191
1191
|
},
|
|
1192
1192
|
{
|
|
1193
1193
|
// Matched before the rename above, so the deprecated name counts too.
|
|
1194
|
-
pattern: `<kbq-tree-option(?![\\w-])${
|
|
1194
|
+
pattern: `<kbq-tree-option(?![\\w-])${utils_tagPatterns.TAG_BODY}*?\\((?:onS|s)electionChange\\)\\s*=\\s*"[^"]*\\$event\\??\\.isUserInput\\b`,
|
|
1195
1195
|
message: '`KbqTreeOptionChange.isUserInput` was removed: the tree never set it, so `$event.isUserInput` of ' +
|
|
1196
1196
|
'a `kbq-tree-option` was always `false`. Delete the check together with the branch it guarded.'
|
|
1197
1197
|
},
|
|
@@ -3,20 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var utility = require('@schematics/angular/utility');
|
|
6
|
-
var utils_messages = require('../../utils/messages.
|
|
7
|
-
var
|
|
8
|
-
var migrations_v21Upgrade_data = require('./data.
|
|
9
|
-
require('../../list-item-pattern
|
|
10
|
-
require('../../package-config
|
|
6
|
+
var utils_messages = require('../../utils/messages.cjs');
|
|
7
|
+
var utils_replacementDriver = require('../../utils/replacement-driver.cjs');
|
|
8
|
+
var migrations_v21Upgrade_data = require('./data.cjs');
|
|
9
|
+
require('../../utils/list-item-pattern.cjs');
|
|
10
|
+
require('../../utils/package-config.cjs');
|
|
11
11
|
require('@angular-devkit/schematics');
|
|
12
|
-
require('../../
|
|
12
|
+
require('../../utils/project-files.cjs');
|
|
13
|
+
require('../../utils/tag-patterns.cjs');
|
|
13
14
|
|
|
14
15
|
/** Rewrites a `styles` entry: a path, or an object with an `input` path. */
|
|
15
16
|
function rewriteStyleEntry(entry, replacements) {
|
|
16
17
|
if (typeof entry === 'string')
|
|
17
|
-
return
|
|
18
|
+
return utils_replacementDriver.applyReplacements(entry, replacements).content;
|
|
18
19
|
if (entry && typeof entry === 'object' && !Array.isArray(entry) && typeof entry.input === 'string') {
|
|
19
|
-
const input =
|
|
20
|
+
const input = utils_replacementDriver.applyReplacements(entry.input, replacements).content;
|
|
20
21
|
return input === entry.input ? entry : { ...entry, input };
|
|
21
22
|
}
|
|
22
23
|
return entry;
|
|
@@ -87,8 +88,8 @@ async function migrateWorkspaceStyles(tree, context, project, fix, replacements)
|
|
|
87
88
|
return true;
|
|
88
89
|
}
|
|
89
90
|
function v21Upgrade(options) {
|
|
90
|
-
const styleEntries =
|
|
91
|
-
return
|
|
91
|
+
const styleEntries = utils_replacementDriver.compileReplacements(migrations_v21Upgrade_data.styleEntryReplacements);
|
|
92
|
+
return utils_replacementDriver.replacementMigrationRule({ label: '[v21-upgrade]', tsReplacements: migrations_v21Upgrade_data.tsReplacements, templateReplacements: migrations_v21Upgrade_data.templateReplacements, scssReplacements: migrations_v21Upgrade_data.scssReplacements, warnPatterns: migrations_v21Upgrade_data.warnPatterns }, options, (tree, context, fix) => migrateWorkspaceStyles(tree, context, options.project, fix, styleEntries));
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
exports.default = v21Upgrade;
|
|
@@ -0,0 +1,21 @@
|
|
|
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_zonelessChangeDetection_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
|
+
/**
|
|
14
|
+
* Reports the uses of the removed `MockNgZone` testing helper. Never writes: a spec that waited for
|
|
15
|
+
* `NgZone.onStable` has to render or wait explicitly, and which of the two depends on the spec.
|
|
16
|
+
*/
|
|
17
|
+
function zonelessChangeDetection(options) {
|
|
18
|
+
return utils_warnOnlyMigration.warnOnlyRule({ label: '[zoneless-change-detection]', warnPatterns: migrations_zonelessChangeDetection_data.warnPatterns, summary: migrations_zonelessChangeDetection_data.SUMMARY }, options);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
exports.default = zonelessChangeDetection;
|