@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.
Files changed (378) hide show
  1. package/badge/_badge-theme.scss +31 -0
  2. package/breadcrumbs/breadcrumbs.scss +5 -1
  3. package/checkbox/_checkbox-theme.scss +0 -17
  4. package/checkbox/checkbox-tokens.scss +0 -4
  5. package/code-block/_code-block-theme.scss +7 -6
  6. package/code-block/code-block-tokens.scss +8 -4
  7. package/code-block/code-block.scss +54 -32
  8. package/content-panel/content-panel-header.scss +2 -3
  9. package/content-panel/content-panel.scss +3 -0
  10. package/core/selection/pseudo-checkbox/pseudo-checkbox-tokens.scss +0 -2
  11. package/fesm2022/koobiq-components-accordion.mjs +4 -4
  12. package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
  13. package/fesm2022/koobiq-components-actions-panel.mjs +10 -2
  14. package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
  15. package/fesm2022/koobiq-components-app-switcher.mjs +1 -1
  16. package/fesm2022/koobiq-components-app-switcher.mjs.map +1 -1
  17. package/fesm2022/koobiq-components-badge.mjs +2 -2
  18. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  19. package/fesm2022/koobiq-components-breadcrumbs.mjs +2 -2
  20. package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
  21. package/fesm2022/koobiq-components-button-toggle.mjs +1 -1
  22. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  23. package/fesm2022/koobiq-components-checkbox.mjs +18 -8
  24. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  25. package/fesm2022/koobiq-components-clamped-text.mjs +78 -10
  26. package/fesm2022/koobiq-components-clamped-text.mjs.map +1 -1
  27. package/fesm2022/koobiq-components-code-block.mjs +106 -394
  28. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  29. package/fesm2022/koobiq-components-content-panel.mjs +4 -4
  30. package/fesm2022/koobiq-components-content-panel.mjs.map +1 -1
  31. package/fesm2022/koobiq-components-core.mjs +300 -37
  32. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  33. package/fesm2022/koobiq-components-datepicker.mjs +151 -60
  34. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  35. package/fesm2022/koobiq-components-divider.mjs +3 -3
  36. package/fesm2022/koobiq-components-divider.mjs.map +1 -1
  37. package/fesm2022/koobiq-components-dropdown.mjs +3 -3
  38. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  39. package/fesm2022/koobiq-components-file-upload.mjs +17 -8
  40. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  41. package/fesm2022/koobiq-components-filter-bar.mjs +124 -41
  42. package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
  43. package/fesm2022/koobiq-components-flag.mjs +3 -3
  44. package/fesm2022/koobiq-components-flag.mjs.map +1 -1
  45. package/fesm2022/koobiq-components-form-field.mjs +90 -27
  46. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  47. package/fesm2022/koobiq-components-icon.mjs +38 -17
  48. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  49. package/fesm2022/koobiq-components-inline-edit.mjs +19 -2
  50. package/fesm2022/koobiq-components-inline-edit.mjs.map +1 -1
  51. package/fesm2022/koobiq-components-input.mjs +76 -17
  52. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  53. package/fesm2022/koobiq-components-list.mjs +1 -1
  54. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  55. package/fesm2022/koobiq-components-modal.mjs +3 -3
  56. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  57. package/fesm2022/koobiq-components-navbar.mjs +86 -25
  58. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  59. package/fesm2022/koobiq-components-notification-center.mjs +4 -4
  60. package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
  61. package/fesm2022/koobiq-components-overflow-items.mjs +116 -38
  62. package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
  63. package/fesm2022/koobiq-components-popover.mjs +86 -7
  64. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  65. package/fesm2022/koobiq-components-radio.mjs +41 -19
  66. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  67. package/fesm2022/koobiq-components-search-expandable.mjs +29 -17
  68. package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -1
  69. package/fesm2022/koobiq-components-select.mjs +49 -12
  70. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  71. package/fesm2022/koobiq-components-sidepanel.mjs +198 -186
  72. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  73. package/fesm2022/koobiq-components-splitter.mjs +49 -25
  74. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  75. package/fesm2022/koobiq-components-tabs.mjs +30 -11
  76. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  77. package/fesm2022/koobiq-components-tags.mjs +1 -1
  78. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  79. package/fesm2022/koobiq-components-textarea.mjs +28 -11
  80. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  81. package/fesm2022/koobiq-components-time-range.mjs +2 -2
  82. package/fesm2022/koobiq-components-time-range.mjs.map +1 -1
  83. package/fesm2022/koobiq-components-timepicker.mjs +71 -16
  84. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  85. package/fesm2022/koobiq-components-timezone.mjs +2 -2
  86. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  87. package/fesm2022/koobiq-components-toast.mjs +2 -2
  88. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  89. package/fesm2022/koobiq-components-toggle.mjs +25 -9
  90. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  91. package/fesm2022/koobiq-components-tooltip.mjs +90 -17
  92. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  93. package/fesm2022/koobiq-components-top-bar.mjs +27 -7
  94. package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
  95. package/fesm2022/koobiq-components-tree-select.mjs +24 -9
  96. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  97. package/fesm2022/koobiq-components-tree.mjs +288 -109
  98. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  99. package/file-upload/_file-upload-theme.scss +0 -12
  100. package/file-upload/file-upload-tokens.scss +0 -1
  101. package/file-upload/file-upload.scss +0 -1
  102. package/filter-bar/_filter-bar-theme.scss +7 -8
  103. package/filter-bar/filter-bar.scss +0 -1
  104. package/filter-bar/pipes/base-pipe.scss +36 -2
  105. package/filter-bar/pipes/pipe-multi-tree-select.scss +27 -0
  106. package/form-field/_fieldset-theme.scss +2 -7
  107. package/form-field/_form-field-theme.scss +9 -22
  108. package/form-field/_hint-theme.scss +20 -0
  109. package/form-field/fieldset-tokens.scss +0 -1
  110. package/form-field/fieldset.scss +0 -3
  111. package/form-field/form-field-tokens.scss +1 -1
  112. package/form-field/form-field.scss +9 -0
  113. package/form-field/hint-tokens.scss +3 -0
  114. package/modal/modal.scss +2 -0
  115. package/navbar/_navbar-item_vertical.scss +48 -2
  116. package/navbar/_navbar-theme.scss +11 -3
  117. package/navbar/navbar-item.scss +17 -0
  118. package/navbar/navbar-tokens.scss +3 -0
  119. package/package.json +4 -4
  120. package/popover/popover.scss +1 -1
  121. package/radio/_radio-theme.scss +0 -30
  122. package/radio/radio-tokens.scss +0 -2
  123. package/schematics/collection.json +94 -89
  124. package/schematics/migrations/accordion-state-saving-default/{index.js → index.cjs} +5 -4
  125. package/schematics/migrations/actions-panel-overlay-container/{index.js → index.cjs} +5 -4
  126. package/schematics/migrations/alert-signals/{index.js → index.cjs} +14 -13
  127. package/schematics/migrations/angular-animations-removal/index.cjs +21 -0
  128. package/schematics/migrations/app-switcher-signals/{index.js → index.cjs} +7 -6
  129. package/schematics/migrations/autocomplete-panel-width-auto/{index.js → index.cjs} +6 -5
  130. package/schematics/migrations/autocomplete-signals/{index.js → index.cjs} +7 -6
  131. package/schematics/migrations/badge-signals/{index.js → index.cjs} +7 -6
  132. package/schematics/migrations/button-state-and-styles/{index.js → index.cjs} +7 -6
  133. package/schematics/migrations/button-supported-colors/{index.js → index.cjs} +7 -6
  134. package/schematics/migrations/button-toggle-signals-and-aria/{index.js → index.cjs} +7 -6
  135. package/schematics/migrations/button-truncation/{index.js → index.cjs} +7 -6
  136. package/schematics/migrations/checkbox-signals/{index.js → index.cjs} +9 -8
  137. package/schematics/migrations/clamped-text-disclosure/{index.js → index.cjs} +5 -4
  138. package/schematics/migrations/code-block-highlight-js-core/README.md +53 -0
  139. package/schematics/migrations/code-block-highlight-js-core/data.cjs +64 -0
  140. package/schematics/migrations/code-block-highlight-js-core/index.cjs +319 -0
  141. package/schematics/migrations/code-block-highlight-js-core/schema.json +20 -0
  142. package/schematics/migrations/code-block-signals/{index.js → index.cjs} +7 -6
  143. package/schematics/migrations/color-signals/index.cjs +20 -0
  144. package/schematics/migrations/core-mixins-removal/index.cjs +18 -0
  145. package/schematics/migrations/css-selectors/{index.js → index.cjs} +4 -3
  146. package/schematics/migrations/datepicker-signals/index.cjs +18 -0
  147. package/schematics/migrations/deprecated-icons/README.md +21 -5
  148. package/schematics/migrations/deprecated-icons/{index.js → index.cjs} +15 -28
  149. package/schematics/migrations/deprecated-icons/schema.json +1 -1
  150. package/schematics/migrations/design-tokens-v4/{index.js → index.cjs} +3 -2
  151. package/schematics/migrations/divider-signals-and-aria/{index.js → index.cjs} +5 -4
  152. package/schematics/migrations/dl-attribute-coercion/{index.js → index.cjs} +7 -6
  153. package/schematics/migrations/dl-standalone-names/{index.js → index.cjs} +11 -10
  154. package/schematics/migrations/dropdown-demote-overlay/{index.js → index.cjs} +7 -6
  155. package/schematics/migrations/dropdown-signals/index.cjs +20 -0
  156. package/schematics/migrations/empty-state-error-color/{index.js → index.cjs} +5 -4
  157. package/schematics/migrations/empty-state-size-attr/{index.js → index.cjs} +6 -5
  158. package/schematics/migrations/file-upload-cva-and-primitives/{index.js → index.cjs} +5 -4
  159. package/schematics/migrations/file-upload-deprecated-outputs/{index.js → index.cjs} +5 -4
  160. package/schematics/migrations/filter-bar-rename-action/{index.js → index.cjs} +5 -4
  161. package/schematics/migrations/filter-bar-signals/{index.js → index.cjs} +16 -15
  162. package/schematics/migrations/filter-bar-state-saving-default/{index.js → index.cjs} +5 -4
  163. package/schematics/migrations/flag-inner-html/{index.js → index.cjs} +5 -4
  164. package/schematics/migrations/form-field-signals/{index.js → index.cjs} +18 -17
  165. package/schematics/migrations/icon-semantics-and-api/{data.js → data.cjs} +4 -4
  166. package/schematics/migrations/icon-semantics-and-api/{index.js → index.cjs} +6 -5
  167. package/schematics/migrations/icons-replacement/README.md +16 -2
  168. package/schematics/migrations/icons-replacement/{index.js → index.cjs} +21 -18
  169. package/schematics/migrations/icons-replacement/schema.json +12 -3
  170. package/schematics/migrations/inline-edit-a11y-and-types/{index.js → index.cjs} +5 -4
  171. package/schematics/migrations/input-number-surface/{index.js → index.cjs} +5 -4
  172. package/schematics/migrations/input-signals/index.cjs +18 -0
  173. package/schematics/migrations/link-deprecated-path/{index.js → index.cjs} +4 -3
  174. package/schematics/migrations/link-signals/{index.js → index.cjs} +5 -4
  175. package/schematics/migrations/list-signals/index.cjs +18 -0
  176. package/schematics/migrations/list-tree-multiple-input/{index.js → index.cjs} +7 -6
  177. package/schematics/migrations/loader-overlay-signals/{index.js → index.cjs} +7 -6
  178. package/schematics/migrations/loader-overlay-size-attr/{index.js → index.cjs} +6 -5
  179. package/schematics/migrations/locale-configuration-providers/{index.js → index.cjs} +5 -4
  180. package/schematics/migrations/mandatory-peer-dependencies/{index.js → index.cjs} +3 -2
  181. package/schematics/migrations/markdown-signals/{index.js → index.cjs} +7 -6
  182. package/schematics/migrations/modal-dialog-semantics/{index.js → index.cjs} +5 -4
  183. package/schematics/migrations/modal-signals/index.cjs +20 -0
  184. package/schematics/migrations/navbar-signals-and-aria/{index.js → index.cjs} +7 -6
  185. package/schematics/migrations/new-icons-pack/README.md +37 -25
  186. package/schematics/migrations/new-icons-pack/{index.js → index.cjs} +29 -38
  187. package/schematics/migrations/new-icons-pack/replacement.json +2 -14
  188. package/schematics/migrations/new-icons-pack/schema.json +3 -3
  189. package/schematics/migrations/notification-center-signals/{index.js → index.cjs} +5 -4
  190. package/schematics/migrations/option-signals/index.cjs +20 -0
  191. package/schematics/migrations/popover-leave-delay/{index.js → index.cjs} +5 -4
  192. package/schematics/migrations/progress-bar-percentage-and-aria/{index.js → index.cjs} +5 -4
  193. package/schematics/migrations/progress-spinner-signals/{index.js → index.cjs} +7 -6
  194. package/schematics/migrations/query-list-signals/index.cjs +18 -0
  195. package/schematics/migrations/radio-signals-and-aria/{index.js → index.cjs} +9 -8
  196. package/schematics/migrations/read-state-dwell-handlers/{index.js → index.cjs} +5 -4
  197. package/schematics/migrations/scrollbar-deprecated-path/{index.js → index.cjs} +4 -3
  198. package/schematics/migrations/select-signal-inputs/{index.js → index.cjs} +5 -4
  199. package/schematics/migrations/sidepanel-non-modal-behavior/{index.js → index.cjs} +5 -4
  200. package/schematics/migrations/signal-inputs-subclasses/index.cjs +18 -0
  201. package/schematics/migrations/split-button-optional-disabled/{index.js → index.cjs} +5 -4
  202. package/schematics/migrations/splitter-deprecated-path/{index.js → index.cjs} +4 -3
  203. package/schematics/migrations/state-saving-default/{index.js → index.cjs} +5 -4
  204. package/schematics/migrations/table-cell-content/{index.js → index.cjs} +5 -4
  205. package/schematics/migrations/tabs-signals-and-aria/{index.js → index.cjs} +5 -4
  206. package/schematics/migrations/tag-list-cleaner/{index.js → index.cjs} +7 -6
  207. package/schematics/migrations/tag-slots/{index.js → index.cjs} +6 -5
  208. package/schematics/migrations/tags-signals/{index.js → index.cjs} +7 -6
  209. package/schematics/migrations/textarea-signals/{index.js → index.cjs} +7 -6
  210. package/schematics/migrations/time-range-title-for/{index.js → index.cjs} +5 -4
  211. package/schematics/migrations/timepicker-signals/{index.js → index.cjs} +7 -6
  212. package/schematics/migrations/timezone-grouping-utils/{index.js → index.cjs} +5 -4
  213. package/schematics/migrations/title-encapsulation/{index.js → index.cjs} +5 -4
  214. package/schematics/migrations/toast-stack-and-defaults/{index.js → index.cjs} +5 -4
  215. package/schematics/migrations/tooltip-pointer-events-and-types/{index.js → index.cjs} +5 -4
  216. package/schematics/migrations/top-bar-container-selectors/{index.js → index.cjs} +5 -4
  217. package/schematics/migrations/tree-select-signals/{index.js → index.cjs} +5 -4
  218. package/schematics/migrations/tree-signals/{index.js → index.cjs} +5 -4
  219. package/schematics/migrations/tree-state-saving-default/{index.js → index.cjs} +5 -4
  220. package/schematics/migrations/username-pipe-injection/{index.js → index.cjs} +5 -4
  221. package/schematics/migrations/v20-upgrade/{data.js → data.cjs} +7 -7
  222. package/schematics/migrations/v20-upgrade/index.cjs +19 -0
  223. package/schematics/migrations/v21-upgrade/{data.js → data.cjs} +22 -22
  224. package/schematics/migrations/v21-upgrade/{index.js → index.cjs} +11 -10
  225. package/schematics/migrations/zoneless-change-detection/index.cjs +21 -0
  226. package/schematics/migrations.json +87 -82
  227. package/schematics/ng-add/{index.js → index.cjs} +15 -289
  228. package/schematics/utils/{angular-parsing.js → angular-parsing.cjs} +2 -2
  229. package/schematics/utils/custom-data.cjs +64 -0
  230. package/schematics/utils/{deprecated-path-migration.js → deprecated-path-migration.cjs} +4 -3
  231. package/schematics/utils/html-config.cjs +148 -0
  232. package/schematics/utils/{icon-migration.js → icon-migration.cjs} +11 -5
  233. package/schematics/utils/list-item-pattern.cjs +16 -0
  234. package/schematics/utils/{messages.js → messages.cjs} +4 -0
  235. package/schematics/utils/package-config.cjs +99 -0
  236. package/schematics/utils/project-files.cjs +25 -0
  237. package/schematics/utils/replacement-driver.cjs +337 -0
  238. package/schematics/utils/safe-rule.cjs +23 -0
  239. package/schematics/utils/signal-members-migration.cjs +779 -0
  240. package/schematics/utils/tag-patterns.cjs +21 -0
  241. package/schematics/utils/template-ref-access.cjs +155 -0
  242. package/schematics/utils/{typescript.js → typescript.cjs} +1 -1
  243. package/schematics/utils/warn-only-migration.cjs +52 -0
  244. package/schematics/utils/workspace-styles.cjs +123 -0
  245. package/select/select.scss +7 -0
  246. package/tabs/_tabs-common.scss +23 -0
  247. package/textarea/textarea-tokens.scss +4 -1
  248. package/toast/toast.component.scss +1 -0
  249. package/toggle/_toggle-theme.scss +0 -17
  250. package/tooltip/tooltip.scss +1 -1
  251. package/top-bar/top-bar-tokens.scss +1 -0
  252. package/top-bar/top-bar.scss +10 -0
  253. package/types/koobiq-components-accordion.d.ts +25 -0
  254. package/types/koobiq-components-button-toggle.d.ts +6 -0
  255. package/types/koobiq-components-checkbox.d.ts +30 -0
  256. package/types/koobiq-components-clamped-text.d.ts +16 -3
  257. package/types/koobiq-components-code-block.d.ts +55 -14
  258. package/types/koobiq-components-core.d.ts +226 -13
  259. package/types/koobiq-components-datepicker.d.ts +28 -1
  260. package/types/koobiq-components-divider.d.ts +28 -10
  261. package/types/koobiq-components-dropdown.d.ts +19 -0
  262. package/types/koobiq-components-filter-bar.d.ts +79 -6
  263. package/types/koobiq-components-flag.d.ts +18 -0
  264. package/types/koobiq-components-form-field.d.ts +87 -6
  265. package/types/koobiq-components-icon.d.ts +15 -0
  266. package/types/koobiq-components-inline-edit.d.ts +8 -1
  267. package/types/koobiq-components-input.d.ts +22 -3
  268. package/types/koobiq-components-list.d.ts +6 -0
  269. package/types/koobiq-components-modal.d.ts +7 -0
  270. package/types/koobiq-components-navbar.d.ts +71 -7
  271. package/types/koobiq-components-notification-center.d.ts +13 -0
  272. package/types/koobiq-components-overflow-items.d.ts +26 -2
  273. package/types/koobiq-components-popover.d.ts +38 -3
  274. package/types/koobiq-components-radio.d.ts +30 -0
  275. package/types/koobiq-components-search-expandable.d.ts +10 -0
  276. package/types/koobiq-components-select.d.ts +36 -4
  277. package/types/koobiq-components-sidepanel.d.ts +52 -1
  278. package/types/koobiq-components-splitter.d.ts +13 -4
  279. package/types/koobiq-components-tabs.d.ts +4 -0
  280. package/types/koobiq-components-tags.d.ts +6 -0
  281. package/types/koobiq-components-textarea.d.ts +9 -2
  282. package/types/koobiq-components-timepicker.d.ts +15 -0
  283. package/types/koobiq-components-toggle.d.ts +30 -0
  284. package/types/koobiq-components-tooltip.d.ts +55 -10
  285. package/types/koobiq-components-top-bar.d.ts +11 -3
  286. package/types/koobiq-components-tree-select.d.ts +23 -8
  287. package/types/koobiq-components-tree.d.ts +144 -60
  288. package/schematics/migrations/angular-animations-removal/index.js +0 -20
  289. package/schematics/migrations/color-signals/index.js +0 -19
  290. package/schematics/migrations/core-mixins-removal/index.js +0 -17
  291. package/schematics/migrations/datepicker-signals/index.js +0 -17
  292. package/schematics/migrations/dropdown-signals/index.js +0 -19
  293. package/schematics/migrations/input-signals/index.js +0 -17
  294. package/schematics/migrations/list-signals/index.js +0 -17
  295. package/schematics/migrations/modal-signals/index.js +0 -19
  296. package/schematics/migrations/option-signals/index.js +0 -19
  297. package/schematics/migrations/query-list-signals/index.js +0 -17
  298. package/schematics/migrations/signal-inputs-subclasses/index.js +0 -17
  299. package/schematics/migrations/v20-upgrade/index.js +0 -18
  300. package/schematics/migrations/zoneless-change-detection/index.js +0 -20
  301. package/schematics/utils/package-config.js +0 -13
  302. /package/schematics/migrations/accordion-state-saving-default/{data.js → data.cjs} +0 -0
  303. /package/schematics/migrations/actions-panel-overlay-container/{data.js → data.cjs} +0 -0
  304. /package/schematics/migrations/alert-signals/{data.js → data.cjs} +0 -0
  305. /package/schematics/migrations/angular-animations-removal/{data.js → data.cjs} +0 -0
  306. /package/schematics/migrations/app-switcher-signals/{data.js → data.cjs} +0 -0
  307. /package/schematics/migrations/autocomplete-signals/{data.js → data.cjs} +0 -0
  308. /package/schematics/migrations/badge-signals/{data.js → data.cjs} +0 -0
  309. /package/schematics/migrations/button-state-and-styles/{data.js → data.cjs} +0 -0
  310. /package/schematics/migrations/button-supported-colors/{data.js → data.cjs} +0 -0
  311. /package/schematics/migrations/button-toggle-signals-and-aria/{data.js → data.cjs} +0 -0
  312. /package/schematics/migrations/button-truncation/{data.js → data.cjs} +0 -0
  313. /package/schematics/migrations/checkbox-signals/{data.js → data.cjs} +0 -0
  314. /package/schematics/migrations/clamped-text-disclosure/{data.js → data.cjs} +0 -0
  315. /package/schematics/migrations/code-block-signals/{data.js → data.cjs} +0 -0
  316. /package/schematics/migrations/color-signals/{data.js → data.cjs} +0 -0
  317. /package/schematics/migrations/core-mixins-removal/{data.js → data.cjs} +0 -0
  318. /package/schematics/migrations/css-selectors/{data.js → data.cjs} +0 -0
  319. /package/schematics/migrations/datepicker-signals/{data.js → data.cjs} +0 -0
  320. /package/schematics/migrations/deprecated-icons/{data.js → data.cjs} +0 -0
  321. /package/schematics/migrations/divider-signals-and-aria/{data.js → data.cjs} +0 -0
  322. /package/schematics/migrations/dl-attribute-coercion/{data.js → data.cjs} +0 -0
  323. /package/schematics/migrations/dl-standalone-names/{data.js → data.cjs} +0 -0
  324. /package/schematics/migrations/dropdown-demote-overlay/{data.js → data.cjs} +0 -0
  325. /package/schematics/migrations/dropdown-signals/{data.js → data.cjs} +0 -0
  326. /package/schematics/migrations/empty-state-error-color/{data.js → data.cjs} +0 -0
  327. /package/schematics/migrations/file-upload-cva-and-primitives/{data.js → data.cjs} +0 -0
  328. /package/schematics/migrations/file-upload-deprecated-outputs/{data.js → data.cjs} +0 -0
  329. /package/schematics/migrations/filter-bar-rename-action/{data.js → data.cjs} +0 -0
  330. /package/schematics/migrations/filter-bar-signals/{data.js → data.cjs} +0 -0
  331. /package/schematics/migrations/filter-bar-state-saving-default/{data.js → data.cjs} +0 -0
  332. /package/schematics/migrations/flag-inner-html/{data.js → data.cjs} +0 -0
  333. /package/schematics/migrations/form-field-signals/{data.js → data.cjs} +0 -0
  334. /package/schematics/migrations/icons-replacement/{data.js → data.cjs} +0 -0
  335. /package/schematics/migrations/inline-edit-a11y-and-types/{data.js → data.cjs} +0 -0
  336. /package/schematics/migrations/input-number-surface/{data.js → data.cjs} +0 -0
  337. /package/schematics/migrations/input-signals/{data.js → data.cjs} +0 -0
  338. /package/schematics/migrations/link-signals/{data.js → data.cjs} +0 -0
  339. /package/schematics/migrations/list-signals/{data.js → data.cjs} +0 -0
  340. /package/schematics/migrations/list-tree-multiple-input/{data.js → data.cjs} +0 -0
  341. /package/schematics/migrations/loader-overlay-signals/{data.js → data.cjs} +0 -0
  342. /package/schematics/migrations/locale-configuration-providers/{data.js → data.cjs} +0 -0
  343. /package/schematics/migrations/markdown-signals/{data.js → data.cjs} +0 -0
  344. /package/schematics/migrations/modal-dialog-semantics/{data.js → data.cjs} +0 -0
  345. /package/schematics/migrations/modal-signals/{data.js → data.cjs} +0 -0
  346. /package/schematics/migrations/navbar-signals-and-aria/{data.js → data.cjs} +0 -0
  347. /package/schematics/migrations/new-icons-pack/{data.js → data.cjs} +0 -0
  348. /package/schematics/migrations/notification-center-signals/{data.js → data.cjs} +0 -0
  349. /package/schematics/migrations/option-signals/{data.js → data.cjs} +0 -0
  350. /package/schematics/migrations/popover-leave-delay/{data.js → data.cjs} +0 -0
  351. /package/schematics/migrations/progress-bar-percentage-and-aria/{data.js → data.cjs} +0 -0
  352. /package/schematics/migrations/progress-spinner-signals/{data.js → data.cjs} +0 -0
  353. /package/schematics/migrations/query-list-signals/{data.js → data.cjs} +0 -0
  354. /package/schematics/migrations/radio-signals-and-aria/{data.js → data.cjs} +0 -0
  355. /package/schematics/migrations/read-state-dwell-handlers/{data.js → data.cjs} +0 -0
  356. /package/schematics/migrations/select-signal-inputs/{data.js → data.cjs} +0 -0
  357. /package/schematics/migrations/sidepanel-non-modal-behavior/{data.js → data.cjs} +0 -0
  358. /package/schematics/migrations/signal-inputs-subclasses/{data.js → data.cjs} +0 -0
  359. /package/schematics/migrations/split-button-optional-disabled/{data.js → data.cjs} +0 -0
  360. /package/schematics/migrations/state-saving-default/{data.js → data.cjs} +0 -0
  361. /package/schematics/migrations/table-cell-content/{data.js → data.cjs} +0 -0
  362. /package/schematics/migrations/tabs-signals-and-aria/{data.js → data.cjs} +0 -0
  363. /package/schematics/migrations/tag-list-cleaner/{data.js → data.cjs} +0 -0
  364. /package/schematics/migrations/tags-signals/{data.js → data.cjs} +0 -0
  365. /package/schematics/migrations/textarea-signals/{data.js → data.cjs} +0 -0
  366. /package/schematics/migrations/time-range-title-for/{data.js → data.cjs} +0 -0
  367. /package/schematics/migrations/timepicker-signals/{data.js → data.cjs} +0 -0
  368. /package/schematics/migrations/timezone-grouping-utils/{data.js → data.cjs} +0 -0
  369. /package/schematics/migrations/title-encapsulation/{data.js → data.cjs} +0 -0
  370. /package/schematics/migrations/toast-stack-and-defaults/{data.js → data.cjs} +0 -0
  371. /package/schematics/migrations/tooltip-pointer-events-and-types/{data.js → data.cjs} +0 -0
  372. /package/schematics/migrations/top-bar-container-selectors/{data.js → data.cjs} +0 -0
  373. /package/schematics/migrations/tree-select-signals/{data.js → data.cjs} +0 -0
  374. /package/schematics/migrations/tree-signals/{data.js → data.cjs} +0 -0
  375. /package/schematics/migrations/tree-state-saving-default/{data.js → data.cjs} +0 -0
  376. /package/schematics/migrations/username-pipe-injection/{data.js → data.cjs} +0 -0
  377. /package/schematics/migrations/zoneless-change-detection/{data.js → data.cjs} +0 -0
  378. /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": [".html", ".ts", ".scss"],
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": "Custom replacement data path. Will be used as relative to `project.root`"
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.js');
6
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
7
- var migrations_inlineEditA11yAndTypes_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath, entry) => {
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.js');
7
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
8
- var migrations_inputNumberSurface_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath, entry) => {
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.js');
6
- require('../../utils/messages.js');
7
- require('../../package-config-BhU2TfC8.js');
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.js');
7
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
8
- var migrations_linkSignals_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath) => {
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.js');
7
- var utils_messages = require('../../utils/messages.js');
8
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
9
- var utils_typescript = require('../../utils/typescript.js');
10
- var migrations_listTreeMultipleInput_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath) => {
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.js');
7
- var utils_messages = require('../../utils/messages.js');
8
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
9
- var utils_typescript = require('../../utils/typescript.js');
10
- var migrations_loaderOverlaySignals_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath) => {
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.js');
6
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
7
- var utils_typescript = require('../../utils/typescript.js');
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.js');
9
+ require('../../utils/ast.cjs');
10
10
  require('@angular-devkit/schematics');
11
11
  require('@schematics/angular/utility');
12
- require('../../utils/messages.js');
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.js');
7
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
8
- var migrations_localeConfigurationProviders_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath) => {
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.js');
7
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
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.js');
7
- var utils_messages = require('../../utils/messages.js');
8
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
9
- var utils_typescript = require('../../utils/typescript.js');
10
- var migrations_markdownSignals_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath) => {
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.js');
6
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
7
- var migrations_modalDialogSemantics_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath, entry) => {
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.js');
7
- var utils_messages = require('../../utils/messages.js');
8
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
9
- var utils_typescript = require('../../utils/typescript.js');
10
- var migrations_navbarSignalsAndAria_data = require('./data.js');
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
- utils_packageConfig.visitProjectFiles(rootDir, (filePath) => {
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
- #### `--custom-icon-replacement-path`
32
+ #### Data
31
33
 
32
- The expected file shape changed. It's still a JSON array of `{ "replace": ..., "replaceWith": ... }` objects,
33
- but each entry is now interpreted as a bare scope-word pair (e.g. `{ "replace": "mc", "replaceWith": "kbq" }`,
34
- with no leading/trailing hyphen) rather than a whole-file regex fragment like `kbq-icon="mc-` — the AST-based
35
- matcher no longer needs per-context fragments. A file still written in the old fragment style, or a malformed
36
- one, is detected and ignored with a warning (falling back to the default `mc` → `kbq` scope) rather than being
37
- silently misapplied or crashing. [`replacement.json`](replacement.json) is kept in its old fragment shape for
38
- backward compatibility with anyone already pointing at it — **don't** pass it via `--custom-icon-replacement-path`
39
- as-is (see the fallback warning above); copy it into your own file and rewrite it in the new shape instead.
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
- Path to a custom migration data file.
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
- Path to a custom icon attributes replacement file.
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 migration.json \
81
- --custom-icon-replacement-path my-replacement.json \
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 migration.json \
101
- --custom-icon-replacement-path my-replacement.json \
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.js');
8
- var utils_iconMigration = require('../../utils/icon-migration.js');
9
- var utils_messages = require('../../utils/messages.js');
10
- var utils_packageConfig = require('../../package-config-BhU2TfC8.js');
11
- var migrations_newIconsPack_data = require('./data.js');
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.js');
14
- require('../../utils/typescript.js');
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 ? readJsonFile(customDataPath) : migrations_newIconsPack_data.newIconsPackData;
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(readJsonFile(customIconReplacementPath), migrations_newIconsPack_data.scope, logger)
91
+ ? resolveScope(utils_customData.readCustomJson(tree, customIconReplacementPath), migrations_newIconsPack_data.scope, logger)
94
92
  : migrations_newIconsPack_data.scope;
95
- try {
96
- const projectDefinition = await utils_packageConfig.setupOptions(project, tree);
97
- targetDir = projectDefinition ? tree.getDir(projectDefinition.root) : tree;
98
- }
99
- catch {
100
- targetDir = tree;
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(({ replace, replaceWith }) => ({
111
- from: stripScopePrefix(replace, [CANONICAL_ICON_DATA_SCOPE, resolvedScope.to, resolvedScope.from]),
112
- to: stripScopePrefix(replaceWith, [CANONICAL_ICON_DATA_SCOPE, resolvedScope.to])
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
- targetDir.visit((filePath) => {
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
- targetDir.visit((filePath) => {
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
  }