@ethlete/components 0.1.0-next.9 → 1.0.0-next.101

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 (579) hide show
  1. package/CHANGELOG.md +3519 -0
  2. package/README.md +1 -1
  3. package/design/accordion.ts +73 -0
  4. package/design/anchored-dialog.ts +102 -0
  5. package/design/avatar.ts +90 -0
  6. package/design/badge.ts +48 -0
  7. package/design/banner.ts +77 -0
  8. package/design/bracket.ts +457 -0
  9. package/design/breadcrumb.ts +144 -0
  10. package/design/button.ts +116 -0
  11. package/design/calendar.ts +306 -0
  12. package/design/card.ts +92 -0
  13. package/design/carousel.ts +240 -0
  14. package/design/chart.ts +512 -0
  15. package/design/checkbox.ts +275 -0
  16. package/design/chip.ts +64 -0
  17. package/design/config.json +26 -0
  18. package/design/control.ts +19 -0
  19. package/design/copy-button.ts +59 -0
  20. package/design/description-list.ts +41 -0
  21. package/design/dialog.ts +210 -0
  22. package/design/divider.ts +27 -0
  23. package/design/empty-state.ts +45 -0
  24. package/design/floating-action.ts +55 -0
  25. package/design/form-field.ts +256 -0
  26. package/design/grid.ts +148 -0
  27. package/design/icon-set.ts +19 -0
  28. package/design/icon.ts +9 -0
  29. package/design/input.ts +86 -0
  30. package/design/kbd.ts +19 -0
  31. package/design/loader.ts +156 -0
  32. package/design/masonry.ts +115 -0
  33. package/design/match.ts +131 -0
  34. package/design/menu.ts +149 -0
  35. package/design/notification.ts +132 -0
  36. package/design/otp-input.ts +107 -0
  37. package/design/pagination.ts +120 -0
  38. package/design/picture.ts +80 -0
  39. package/design/progress-steps.ts +79 -0
  40. package/design/query-error.ts +60 -0
  41. package/design/radio-group.ts +132 -0
  42. package/design/scheduler.ts +369 -0
  43. package/design/scrollable.ts +219 -0
  44. package/design/scrollbar.ts +47 -0
  45. package/design/sdk/assets/fallback.svg +1 -0
  46. package/design/sdk/assets/fonts/et-kbd-arrows-400-normal.woff2 +0 -0
  47. package/design/sdk/assets/fonts/et-kbd-control-400-normal.woff2 +0 -0
  48. package/design/sdk/assets/fonts/et-kbd-keys-400-normal.woff2 +0 -0
  49. package/design/sdk/assets/fonts/source-code-pro-latin-wght-normal.woff2 +0 -0
  50. package/design/sdk/assets/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
  51. package/design/sdk/assets/tall.svg +1 -0
  52. package/design/sdk/assets/wide.svg +1 -0
  53. package/design/sdk/components/accent-on-light/accent-on-light.css +35 -0
  54. package/design/sdk/components/accent-on-light/accent-on-light.ts +15 -0
  55. package/design/sdk/components/accent-on-light/shared/controls.ts +46 -0
  56. package/design/sdk/components/accordion/accordion.css +17 -0
  57. package/design/sdk/components/accordion/accordion.ts +79 -0
  58. package/design/sdk/components/action-sheet/action-sheet.css +124 -0
  59. package/design/sdk/components/action-sheet/action-sheet.ts +131 -0
  60. package/design/sdk/components/anchored-dialog/anchored-dialog.css +60 -0
  61. package/design/sdk/components/anchored-dialog/anchored-dialog.ts +89 -0
  62. package/design/sdk/components/avatar/avatar.css +14 -0
  63. package/design/sdk/components/avatar/avatar.ts +95 -0
  64. package/design/sdk/components/badge/badge.css +31 -0
  65. package/design/sdk/components/badge/badge.ts +89 -0
  66. package/design/sdk/components/banner/banner.css +18 -0
  67. package/design/sdk/components/banner/banner.ts +160 -0
  68. package/design/sdk/components/bracket/bracket.css +56 -0
  69. package/design/sdk/components/bracket/bracket.ts +183 -0
  70. package/design/sdk/components/breadcrumb/breadcrumb.css +25 -0
  71. package/design/sdk/components/breadcrumb/breadcrumb.ts +96 -0
  72. package/design/sdk/components/button/button.css +19 -0
  73. package/design/sdk/components/button/button.ts +201 -0
  74. package/design/sdk/components/calendar/calendar.css +33 -0
  75. package/design/sdk/components/calendar/calendar.ts +183 -0
  76. package/design/sdk/components/card/card.css +19 -0
  77. package/design/sdk/components/card/card.ts +111 -0
  78. package/design/sdk/components/carousel/carousel.css +44 -0
  79. package/design/sdk/components/carousel/carousel.ts +162 -0
  80. package/design/sdk/components/chart/chart.css +56 -0
  81. package/design/sdk/components/chart/chart.ts +146 -0
  82. package/design/sdk/components/checkbox/checkbox.css +10 -0
  83. package/design/sdk/components/checkbox/checkbox.ts +223 -0
  84. package/design/sdk/components/chip/chip.css +18 -0
  85. package/design/sdk/components/chip/chip.ts +99 -0
  86. package/design/sdk/components/copy-button/copy-button.css +14 -0
  87. package/design/sdk/components/copy-button/copy-button.ts +77 -0
  88. package/design/sdk/components/description-list/description-list.css +7 -0
  89. package/design/sdk/components/description-list/description-list.ts +64 -0
  90. package/design/sdk/components/dialog/dialog.css +29 -0
  91. package/design/sdk/components/dialog/dialog.ts +173 -0
  92. package/design/sdk/components/divider/divider.css +26 -0
  93. package/design/sdk/components/divider/divider.ts +49 -0
  94. package/design/sdk/components/empty-state/empty-state.css +39 -0
  95. package/design/sdk/components/empty-state/empty-state.ts +67 -0
  96. package/design/sdk/components/floating-action/floating-action.css +51 -0
  97. package/design/sdk/components/floating-action/floating-action.ts +78 -0
  98. package/design/sdk/components/form-field/form-field.ts +204 -0
  99. package/design/sdk/components/grid/grid.css +17 -0
  100. package/design/sdk/components/grid/grid.ts +96 -0
  101. package/design/sdk/components/input/input.css +48 -0
  102. package/design/sdk/components/input/input.ts +156 -0
  103. package/design/sdk/components/kbd/kbd.css +25 -0
  104. package/design/sdk/components/kbd/kbd.ts +70 -0
  105. package/design/sdk/components/loader/loader.css +37 -0
  106. package/design/sdk/components/loader/loader.ts +79 -0
  107. package/design/sdk/components/masonry/masonry.css +7 -0
  108. package/design/sdk/components/masonry/masonry.ts +50 -0
  109. package/design/sdk/components/match/match.css +22 -0
  110. package/design/sdk/components/match/match.ts +95 -0
  111. package/design/sdk/components/menu/menu.css +22 -0
  112. package/design/sdk/components/menu/menu.ts +120 -0
  113. package/design/sdk/components/notification/notification.css +32 -0
  114. package/design/sdk/components/notification/notification.ts +117 -0
  115. package/design/sdk/components/otp-input/otp-input.css +35 -0
  116. package/design/sdk/components/otp-input/otp-input.ts +94 -0
  117. package/design/sdk/components/pagination/pagination.css +14 -0
  118. package/design/sdk/components/pagination/pagination.ts +97 -0
  119. package/design/sdk/components/picture/picture.css +37 -0
  120. package/design/sdk/components/picture/picture.ts +112 -0
  121. package/design/sdk/components/progress-steps/progress-steps.css +37 -0
  122. package/design/sdk/components/progress-steps/progress-steps.ts +109 -0
  123. package/design/sdk/components/query-error/query-error.css +27 -0
  124. package/design/sdk/components/query-error/query-error.ts +167 -0
  125. package/design/sdk/components/radio-group/radio-group.css +10 -0
  126. package/design/sdk/components/radio-group/radio-group.ts +209 -0
  127. package/design/sdk/components/scheduler/scheduler.css +49 -0
  128. package/design/sdk/components/scheduler/scheduler.ts +267 -0
  129. package/design/sdk/components/scrollable/scrollable.css +58 -0
  130. package/design/sdk/components/scrollable/scrollable.ts +198 -0
  131. package/design/sdk/components/scrollbar/scrollbar.css +78 -0
  132. package/design/sdk/components/scrollbar/scrollbar.ts +152 -0
  133. package/design/sdk/components/select/select.css +5 -0
  134. package/design/sdk/components/select/select.ts +42 -0
  135. package/design/sdk/components/select/shared/select-part.ts +80 -0
  136. package/design/sdk/components/select-panel/select-panel.css +3 -0
  137. package/design/sdk/components/select-panel/select-panel.ts +144 -0
  138. package/design/sdk/components/skeleton/skeleton.css +22 -0
  139. package/design/sdk/components/skeleton/skeleton.ts +58 -0
  140. package/design/sdk/components/slider/slider.css +47 -0
  141. package/design/sdk/components/slider/slider.ts +133 -0
  142. package/design/sdk/components/standings/standings.css +32 -0
  143. package/design/sdk/components/standings/standings.ts +146 -0
  144. package/design/sdk/components/stat-tile/stat-tile.css +15 -0
  145. package/design/sdk/components/stat-tile/stat-tile.ts +97 -0
  146. package/design/sdk/components/stream/stream.css +42 -0
  147. package/design/sdk/components/stream/stream.ts +63 -0
  148. package/design/sdk/components/switch/switch.ts +94 -0
  149. package/design/sdk/components/table/table.css +67 -0
  150. package/design/sdk/components/table/table.ts +320 -0
  151. package/design/sdk/components/tabs/tabs.css +13 -0
  152. package/design/sdk/components/tabs/tabs.ts +95 -0
  153. package/design/sdk/components/textarea/textarea.css +90 -0
  154. package/design/sdk/components/textarea/textarea.ts +154 -0
  155. package/design/sdk/components/timeline/timeline.css +30 -0
  156. package/design/sdk/components/timeline/timeline.ts +98 -0
  157. package/design/sdk/components/toolbar/toolbar.css +24 -0
  158. package/design/sdk/components/toolbar/toolbar.ts +104 -0
  159. package/design/sdk/components/tooltip/tooltip.css +15 -0
  160. package/design/sdk/components/tooltip/tooltip.ts +39 -0
  161. package/design/sdk/components/tree/selected-tint.css +15 -0
  162. package/design/sdk/components/tree/tree.ts +89 -0
  163. package/design/sdk/fixtures.ts +0 -0
  164. package/design/sdk/foundations/colors/colors.css +602 -0
  165. package/design/sdk/foundations/colors/colors.ts +218 -0
  166. package/design/sdk/foundations/colors/faces.css +75 -0
  167. package/design/sdk/foundations/colors/overrides.json +19 -0
  168. package/design/sdk/foundations/colors/shared/contrast.ts +105 -0
  169. package/design/sdk/foundations/elevation/elevation.css +6 -0
  170. package/design/sdk/foundations/elevation/elevation.ts +18 -0
  171. package/design/sdk/foundations/elevation/shared/elevation/scene.css +106 -0
  172. package/design/sdk/foundations/elevation/shared/elevation/scene.ts +74 -0
  173. package/design/sdk/foundations/icons/icons.ts +125 -0
  174. package/design/sdk/lint-baseline.json +6 -0
  175. package/design/sdk/ready.json +488 -0
  176. package/design/sdk/rule-baseline.json +48 -0
  177. package/design/select.ts +199 -0
  178. package/design/skeleton.ts +67 -0
  179. package/design/slider.ts +155 -0
  180. package/design/standings.ts +166 -0
  181. package/design/stat-tile.ts +109 -0
  182. package/design/stream.ts +92 -0
  183. package/design/switch.ts +83 -0
  184. package/design/table.ts +309 -0
  185. package/design/tabs.ts +75 -0
  186. package/design/textarea.ts +94 -0
  187. package/design/timeline.ts +52 -0
  188. package/design/toggletip.ts +85 -0
  189. package/design/toolbar.ts +95 -0
  190. package/design/tooltip.ts +95 -0
  191. package/design/tree.ts +106 -0
  192. package/fesm2022/ethlete-components-testing.mjs +440 -0
  193. package/fesm2022/ethlete-components-testing.mjs.map +1 -0
  194. package/fesm2022/ethlete-components.mjs +115628 -12455
  195. package/fesm2022/ethlete-components.mjs.map +1 -1
  196. package/generators/component/component-names.js +42 -0
  197. package/generators/component/component-templates.js +211 -0
  198. package/generators/component/generator.js +144 -0
  199. package/generators/component/schema.json +109 -0
  200. package/generators/component/workspace-edits.js +92 -0
  201. package/generators/generators.json +126 -0
  202. package/generators/icons/generator.js +231 -0
  203. package/generators/icons/schema.json +35 -0
  204. package/generators/migrate-bracket-default-cards/bracket-default-cards.js +67 -0
  205. package/generators/migrate-bracket-default-cards/migration.js +63 -0
  206. package/generators/migrate-bracket-default-cards/schema.json +26 -0
  207. package/generators/migrate-bracket-ethlete-renames/bracket-ethlete-renames.js +15 -0
  208. package/generators/migrate-bracket-ethlete-renames/migration.js +31 -0
  209. package/generators/migrate-bracket-ethlete-renames/schema.json +26 -0
  210. package/generators/migrate-cascader-tree-internals/cascader-tree-internals.js +6 -0
  211. package/generators/migrate-cascader-tree-internals/migration.js +11 -0
  212. package/generators/migrate-cascader-tree-internals/schema.json +26 -0
  213. package/generators/migrate-chart-baseline-y/chart-baseline-y.js +10 -0
  214. package/generators/migrate-chart-baseline-y/migration.js +41 -0
  215. package/generators/migrate-chart-baseline-y/schema.json +26 -0
  216. package/generators/migrate-duration-format-internals/duration-format-internals.js +6 -0
  217. package/generators/migrate-duration-format-internals/migration.js +11 -0
  218. package/generators/migrate-duration-format-internals/schema.json +26 -0
  219. package/generators/migrate-error-color-theme-signal/error-color-theme-signal.js +37 -0
  220. package/generators/migrate-error-color-theme-signal/migration.js +55 -0
  221. package/generators/migrate-error-color-theme-signal/schema.json +26 -0
  222. package/generators/migrate-grid-engine-internals/grid-engine-internals.js +43 -0
  223. package/generators/migrate-grid-engine-internals/migration.js +11 -0
  224. package/generators/migrate-grid-engine-internals/schema.json +26 -0
  225. package/generators/migrate-line-chart-stacked-area-mix/line-chart-stacked-area-mix.js +48 -0
  226. package/generators/migrate-line-chart-stacked-area-mix/migration.js +35 -0
  227. package/generators/migrate-line-chart-stacked-area-mix/schema.json +26 -0
  228. package/generators/migrate-loader-determinate/loader-determinate.js +87 -0
  229. package/generators/migrate-loader-determinate/migration.js +49 -0
  230. package/generators/migrate-loader-determinate/schema.json +26 -0
  231. package/generators/migrate-overlay-and-column-api/column-visibility-host.js +102 -0
  232. package/generators/migrate-overlay-and-column-api/migration.js +39 -0
  233. package/generators/migrate-overlay-and-column-api/overlay-and-column-api.js +18 -0
  234. package/generators/migrate-overlay-and-column-api/overlay-result.js +399 -0
  235. package/generators/migrate-overlay-and-column-api/schema.json +26 -0
  236. package/generators/migrate-overlay-and-column-api/source-scan.js +171 -0
  237. package/generators/migrate-overlay-fullscreen-animation/migration.js +11 -0
  238. package/generators/migrate-overlay-fullscreen-animation/overlay-fullscreen-animation.js +16 -0
  239. package/generators/migrate-overlay-fullscreen-animation/schema.json +26 -0
  240. package/generators/migrate-overlay-nav-tab-imports/migration.js +35 -0
  241. package/generators/migrate-overlay-nav-tab-imports/overlay-nav-tab-imports.js +25 -0
  242. package/generators/migrate-overlay-nav-tab-imports/schema.json +26 -0
  243. package/generators/migrate-pip-window-z-index/migration.js +85 -0
  244. package/generators/migrate-pip-window-z-index/pip-window-z-index.js +60 -0
  245. package/generators/migrate-pip-window-z-index/schema.json +26 -0
  246. package/generators/migrate-query-error-labels/migration-scope.js +30 -0
  247. package/generators/migrate-query-error-labels/migration.js +58 -0
  248. package/generators/migrate-query-error-labels/query-error-labels.js +30 -0
  249. package/generators/migrate-query-error-labels/schema.json +26 -0
  250. package/generators/migrate-rich-text-editor-floating-toolbar/migration.js +57 -0
  251. package/generators/migrate-rich-text-editor-floating-toolbar/rich-text-editor-floating-toolbar.js +28 -0
  252. package/generators/migrate-rich-text-editor-floating-toolbar/schema.json +26 -0
  253. package/generators/migrate-rich-text-editor-link-editor/migration.js +57 -0
  254. package/generators/migrate-rich-text-editor-link-editor/rich-text-editor-link-editor.js +28 -0
  255. package/generators/migrate-rich-text-editor-link-editor/schema.json +26 -0
  256. package/generators/migrate-rich-text-editor-tools/migration.js +64 -0
  257. package/generators/migrate-rich-text-editor-tools/rich-text-editor-tools.js +36 -0
  258. package/generators/migrate-rich-text-editor-tools/schema.json +26 -0
  259. package/generators/migrate-select-input-renames/migration.js +41 -0
  260. package/generators/migrate-select-input-renames/schema.json +26 -0
  261. package/generators/migrate-select-input-renames/select-input-renames.js +37 -0
  262. package/generators/migrate-stream-default-components/migration.js +86 -0
  263. package/generators/migrate-stream-default-components/schema.json +26 -0
  264. package/generators/migrate-stream-default-components/stream-default-components.js +111 -0
  265. package/generators/migrate-tabs-active-underline/migration.js +31 -0
  266. package/generators/migrate-tabs-active-underline/schema.json +26 -0
  267. package/generators/migrate-tabs-active-underline/tabs-active-underline.js +46 -0
  268. package/generators/migrate-time-picker-ring/migration.js +17 -0
  269. package/generators/migrate-time-picker-ring/schema.json +26 -0
  270. package/generators/migrate-time-picker-ring/time-picker-ring.js +25 -0
  271. package/generators/migrate-youtube-player-slot-directive/migration.js +11 -0
  272. package/generators/migrate-youtube-player-slot-directive/schema.json +26 -0
  273. package/generators/migrate-youtube-player-slot-directive/youtube-player-slot-directive.js +12 -0
  274. package/generators/removed-exports/removed-exports.js +154 -0
  275. package/generators/removed-exports/run-removed-exports-migration.js +48 -0
  276. package/migrations/components-sdk-layer.md +55 -0
  277. package/migrations.json +211 -0
  278. package/package.json +47 -17
  279. package/src/lib/accordion/accordion-group.component.css +12 -0
  280. package/src/lib/accordion/accordion.component.css +236 -0
  281. package/src/lib/avatar/avatar-group.component.css +31 -0
  282. package/src/lib/avatar/avatar.component.css +90 -0
  283. package/src/lib/badge/badge.component.css +118 -0
  284. package/src/lib/banner/banner.component.css +102 -0
  285. package/src/lib/bracket/bracket-default-continue.component.css +29 -0
  286. package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
  287. package/src/lib/bracket/bracket-default-match.component.css +21 -0
  288. package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
  289. package/src/lib/bracket/bracket-default-section-title.component.css +14 -0
  290. package/src/lib/bracket/bracket-participants.component.css +13 -0
  291. package/src/lib/bracket/bracket-pick-card.component.css +232 -0
  292. package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
  293. package/src/lib/bracket/bracket-skeleton.component.css +55 -0
  294. package/src/lib/bracket/bracket.component.css +123 -0
  295. package/src/lib/bracket/layouts/swiss/bracket-swiss-round-header.component.css +65 -0
  296. package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +14 -0
  297. package/src/lib/breadcrumb/breadcrumb-outlet.component.css +5 -0
  298. package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
  299. package/src/lib/breadcrumb/breadcrumb.component.css +126 -0
  300. package/src/lib/button/button-properties-styles.component.css +195 -0
  301. package/src/lib/button/button.component.css +259 -0
  302. package/src/lib/button/button.types.ts +33 -0
  303. package/src/lib/button/fab.component.css +257 -0
  304. package/src/lib/button/icon-button.component.css +152 -0
  305. package/src/lib/button/split-button.component.css +103 -0
  306. package/src/lib/button/text-button.component.css +142 -0
  307. package/src/lib/button/window-control-button.component.css +214 -0
  308. package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
  309. package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
  310. package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
  311. package/src/lib/calendar/calendar.component.css +374 -0
  312. package/src/lib/card/card.component.css +43 -0
  313. package/src/lib/carousel/carousel-autoplay-styles.component.css +171 -0
  314. package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
  315. package/src/lib/carousel/carousel.component.css +220 -0
  316. package/src/lib/chart/bar-chart.component.css +176 -0
  317. package/src/lib/chart/chart-axis.component.css +40 -0
  318. package/src/lib/chart/chart-grid.component.css +6 -0
  319. package/src/lib/chart/chart-legend.component.css +46 -0
  320. package/src/lib/chart/chart-tooltip.component.css +34 -0
  321. package/src/lib/chart/line-chart-tooltip.component.css +51 -0
  322. package/src/lib/chart/line-chart.component.css +234 -0
  323. package/src/lib/chart/pie-chart.component.css +176 -0
  324. package/src/lib/chart/sankey-chart.component.css +221 -0
  325. package/src/lib/chip/chip.component.css +161 -0
  326. package/src/lib/collapse/collapse.component.css +43 -0
  327. package/src/lib/command-palette/command-palette-item.component.css +98 -0
  328. package/src/lib/command-palette/command-palette.component.css +148 -0
  329. package/src/lib/description-list/description-list.component.css +78 -0
  330. package/src/lib/divider/divider.component.css +40 -0
  331. package/src/lib/empty-state/empty-state.component.css +79 -0
  332. package/src/lib/floating-action/floating-action-styles.component.css +105 -0
  333. package/src/lib/focus-ring/focus-ring-styles.component.css +31 -0
  334. package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
  335. package/src/lib/forms/cascader/cascader-panel.component.css +390 -0
  336. package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
  337. package/src/lib/forms/cascader/cascader.component.css +52 -0
  338. package/src/lib/forms/checkbox/checkbox.component.css +278 -0
  339. package/src/lib/forms/choice-field/choice-field-card-styles.component.css +66 -0
  340. package/src/lib/forms/choice-field/choice-field.component.css +227 -0
  341. package/src/lib/forms/color-input/color-input.component.css +109 -0
  342. package/src/lib/forms/color-input/color-picker-panel.component.css +354 -0
  343. package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
  344. package/src/lib/forms/date-time/date-picker-panel.component.css +118 -0
  345. package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
  346. package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
  347. package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
  348. package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
  349. package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
  350. package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
  351. package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
  352. package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
  353. package/src/lib/forms/description/description.component.css +7 -0
  354. package/src/lib/forms/dropzone/dropzone-crop.component.css +139 -0
  355. package/src/lib/forms/dropzone/dropzone-item.component.css +67 -0
  356. package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +83 -0
  357. package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
  358. package/src/lib/forms/dropzone/dropzone-row-styles.component.css +85 -0
  359. package/src/lib/forms/dropzone/dropzone.component.css +291 -0
  360. package/src/lib/forms/form-field/counter.component.css +25 -0
  361. package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +174 -0
  362. package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
  363. package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +93 -0
  364. package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +396 -0
  365. package/src/lib/forms/form-field/form-field-textarea-styles.component.css +94 -0
  366. package/src/lib/forms/form-field/form-field.component.css +381 -0
  367. package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
  368. package/src/lib/forms/form-field/headless/label.directive.css +25 -0
  369. package/src/lib/forms/form-field/hint.component.css +18 -0
  370. package/src/lib/forms/input/input.component.css +53 -0
  371. package/src/lib/forms/input/number-input.component.css +128 -0
  372. package/src/lib/forms/input/password-input.component.css +103 -0
  373. package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
  374. package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +101 -0
  375. package/src/lib/forms/otp-input/otp-input.component.css +218 -0
  376. package/src/lib/forms/phone-input/phone-input.component.css +126 -0
  377. package/src/lib/forms/rating/rating.component.css +197 -0
  378. package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
  379. package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +95 -0
  380. package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
  381. package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
  382. package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
  383. package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +206 -0
  384. package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
  385. package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
  386. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
  387. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
  388. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
  389. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
  390. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
  391. package/src/lib/forms/select/select-all-option.component.css +14 -0
  392. package/src/lib/forms/select/select-extras-styles.component.css +146 -0
  393. package/src/lib/forms/select/select-option-group.component.css +36 -0
  394. package/src/lib/forms/select/select-option-styles.component.css +167 -0
  395. package/src/lib/forms/select/select-panel.component.css +122 -0
  396. package/src/lib/forms/select/select.component.css +247 -0
  397. package/src/lib/forms/selection-card-styles.component.css +144 -0
  398. package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +98 -0
  399. package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
  400. package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +162 -0
  401. package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
  402. package/src/lib/forms/selection-list/radio-group/radio.component.css +144 -0
  403. package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +213 -0
  404. package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +200 -0
  405. package/src/lib/forms/slider/range-slider.component.css +434 -0
  406. package/src/lib/forms/slider/slider.component.css +428 -0
  407. package/src/lib/forms/switch/switch.component.css +214 -0
  408. package/src/lib/forms/tag-input/tag-input.component.css +54 -0
  409. package/src/lib/forms/textarea/textarea-autosize-styles.component.css +16 -0
  410. package/src/lib/forms/textarea/textarea.component.css +45 -0
  411. package/src/lib/grid/grid-debug.component.css +130 -0
  412. package/src/lib/grid/grid-item-default-actions.component.css +11 -0
  413. package/src/lib/grid/grid-item-toolbar.component.css +10 -0
  414. package/src/lib/grid/grid-item.component.css +176 -0
  415. package/src/lib/grid/grid.component.css +56 -0
  416. package/src/lib/icon/headless/align-icons.ts +30 -0
  417. package/src/lib/icon/headless/arrow-out-up-right-icon.ts +17 -0
  418. package/src/lib/icon/headless/arrow-right-icon.ts +23 -0
  419. package/src/lib/icon/headless/arrow-up-icon.ts +30 -0
  420. package/src/lib/icon/headless/arrows-left-right-icon.ts +31 -0
  421. package/src/lib/icon/headless/bold-icon.ts +11 -0
  422. package/src/lib/icon/headless/calendar-icon.ts +21 -0
  423. package/src/lib/icon/headless/check-icon.ts +14 -0
  424. package/src/lib/icon/headless/chevron-icon.ts +14 -0
  425. package/src/lib/icon/headless/circle-check-icon.ts +14 -0
  426. package/src/lib/icon/headless/circle-info-icon.ts +14 -0
  427. package/src/lib/icon/headless/clipboard-check-icon.ts +28 -0
  428. package/src/lib/icon/headless/clock-icon.ts +21 -0
  429. package/src/lib/icon/headless/code-block-icon.ts +15 -0
  430. package/src/lib/icon/headless/code-icon.ts +14 -0
  431. package/src/lib/icon/headless/ellipsis-icon.ts +13 -0
  432. package/src/lib/icon/headless/ellipsis-vertical-icon.ts +13 -0
  433. package/src/lib/icon/headless/eye-icons.ts +27 -0
  434. package/src/lib/icon/headless/eyedropper-icon.ts +22 -0
  435. package/src/lib/icon/headless/file-icon.ts +16 -0
  436. package/src/lib/icon/headless/filter-icon.ts +11 -0
  437. package/src/lib/icon/headless/floppy-disk-icon.ts +27 -0
  438. package/src/lib/icon/headless/focus-frame-icon.ts +16 -0
  439. package/src/lib/icon/headless/grid-2x2-icon.ts +17 -0
  440. package/src/lib/icon/headless/heading-1-icon.ts +11 -0
  441. package/src/lib/icon/headless/heading-2-icon.ts +11 -0
  442. package/src/lib/icon/headless/heading-3-icon.ts +11 -0
  443. package/src/lib/icon/headless/icon-definition.ts +14 -0
  444. package/src/lib/icon/headless/icon-styles.component.css +7 -0
  445. package/src/lib/icon/headless/image-icon.ts +14 -0
  446. package/src/lib/icon/headless/italic-icon.ts +19 -0
  447. package/src/lib/icon/headless/link-icon.ts +17 -0
  448. package/src/lib/icon/headless/list-bulleted-icon.ts +14 -0
  449. package/src/lib/icon/headless/list-numbered-icon.ts +14 -0
  450. package/src/lib/icon/headless/location-icon.ts +21 -0
  451. package/src/lib/icon/headless/lock-icon.ts +14 -0
  452. package/src/lib/icon/headless/minus-icon.ts +14 -0
  453. package/src/lib/icon/headless/paragraph-icon.ts +11 -0
  454. package/src/lib/icon/headless/pause-icon.ts +11 -0
  455. package/src/lib/icon/headless/pencil-icon.ts +21 -0
  456. package/src/lib/icon/headless/play-icon.ts +10 -0
  457. package/src/lib/icon/headless/plus-icon.ts +21 -0
  458. package/src/lib/icon/headless/quote-icon.ts +15 -0
  459. package/src/lib/icon/headless/rotate-right-icon.ts +16 -0
  460. package/src/lib/icon/headless/star-icon.ts +14 -0
  461. package/src/lib/icon/headless/strikethrough-icon.ts +18 -0
  462. package/src/lib/icon/headless/table-icon.ts +15 -0
  463. package/src/lib/icon/headless/thumbtack-icon.ts +18 -0
  464. package/src/lib/icon/headless/times-icon.ts +14 -0
  465. package/src/lib/icon/headless/trash-icon.ts +24 -0
  466. package/src/lib/icon/headless/triangle-exclamation-icon.ts +14 -0
  467. package/src/lib/icon/headless/trophy-icon.ts +24 -0
  468. package/src/lib/icon/headless/underline-icon.ts +12 -0
  469. package/src/lib/icon/headless/undo-redo-icons.ts +24 -0
  470. package/src/lib/icon/headless/upload-icon.ts +16 -0
  471. package/src/lib/kbd/kbd.component.css +62 -0
  472. package/src/lib/loader/brand-loader/brand-loader.component.css +133 -0
  473. package/src/lib/loader/progress-bar/progress-bar.component.css +186 -0
  474. package/src/lib/loader/spinner/spinner-styles.component.css +225 -0
  475. package/src/lib/loader/spinner/spinner-sweep-dashes.ts +19 -0
  476. package/src/lib/masonry/masonry-styles.component.css +84 -0
  477. package/src/lib/match/match-card.component.css +545 -0
  478. package/src/lib/match/match-participant.component.css +236 -0
  479. package/src/lib/match/match-score.component.css +77 -0
  480. package/src/lib/match/match-scoreline.component.css +53 -0
  481. package/src/lib/match/match-time.component.css +5 -0
  482. package/src/lib/menu/menu-group-label.component.css +12 -0
  483. package/src/lib/menu/menu-item-shortcut.component.css +26 -0
  484. package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
  485. package/src/lib/menu/menu-item.component.css +36 -0
  486. package/src/lib/menu/menu-search-styles.component.css +83 -0
  487. package/src/lib/menu/menu-selection-item.component.css +92 -0
  488. package/src/lib/menu/menu-separator.component.css +9 -0
  489. package/src/lib/menu/menu.component.css +310 -0
  490. package/src/lib/notification/notification-stack.component.css +114 -0
  491. package/src/lib/notification/notification.component.css +275 -0
  492. package/src/lib/overlay/alert-dialog/alert-dialog.component.css +55 -0
  493. package/src/lib/overlay/floating-panel-styles.component.css +71 -0
  494. package/src/lib/overlay/floating-tip-styles.component.css +84 -0
  495. package/src/lib/overlay/overlay-container.component.css +173 -0
  496. package/src/lib/overlay/overlay-main-styles.component.css +105 -0
  497. package/src/lib/overlay/overlay-template-host.component.css +7 -0
  498. package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
  499. package/src/lib/overlay/routing/overlay-router-outlet.component.css +215 -0
  500. package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
  501. package/src/lib/overlay/sidebar/overlay-sidebar.component.css +23 -0
  502. package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +78 -0
  503. package/src/lib/overlay/strategies/dialog-styles.component.css +77 -0
  504. package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +141 -0
  505. package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
  506. package/src/lib/overlay/strategies/overlay-origin-clone.component.css +92 -0
  507. package/src/lib/overlay/strategies/sheet-styles.component.css +170 -0
  508. package/src/lib/pagination/page-size-select.component.css +6 -0
  509. package/src/lib/pagination/pagination.component.css +185 -0
  510. package/src/lib/picture/picture.component.css +82 -0
  511. package/src/lib/progress-steps/progress-step.component.css +269 -0
  512. package/src/lib/progress-steps/progress-steps.component.css +26 -0
  513. package/src/lib/query-error/query-error.component.css +27 -0
  514. package/src/lib/scheduler/scheduler-agenda-view.component.css +106 -0
  515. package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +59 -0
  516. package/src/lib/scheduler/scheduler-appointment-styles.component.css +129 -0
  517. package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
  518. package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
  519. package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
  520. package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
  521. package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
  522. package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
  523. package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
  524. package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
  525. package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
  526. package/src/lib/scheduler/scheduler-time-grid-view.component.css +269 -0
  527. package/src/lib/scheduler/scheduler.component.css +87 -0
  528. package/src/lib/scrollable/headless/scrollable-buttons.component.css +223 -0
  529. package/src/lib/scrollable/headless/scrollable-footer.css +37 -0
  530. package/src/lib/scrollable/headless/scrollable-masks.component.css +165 -0
  531. package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
  532. package/src/lib/scrollable/scrollable.component.css +234 -0
  533. package/src/lib/scrollbar/scrollbar.component.css +116 -0
  534. package/src/lib/skeleton/skeleton.component.css +132 -0
  535. package/src/lib/standings/standings-pick.component.css +208 -0
  536. package/src/lib/standings/standings.component.css +347 -0
  537. package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
  538. package/src/lib/stat-tile/stat-tile.component.css +134 -0
  539. package/src/lib/stream/consent/stream-consent.component.css +100 -0
  540. package/src/lib/stream/error/stream-player-error.component.css +101 -0
  541. package/src/lib/stream/loading/stream-player-loading.component.css +16 -0
  542. package/src/lib/stream/pip/pip-player.component.css +40 -0
  543. package/src/lib/stream/pip/pip-slot-placeholder.component.css +68 -0
  544. package/src/lib/stream/pip/pip-stage-styles.component.css +93 -0
  545. package/src/lib/stream/pip/pip-window.component.css +221 -0
  546. package/src/lib/stream/stream-manager-styles.component.css +10 -0
  547. package/src/lib/stream/stream-overlay-card-styles.component.css +69 -0
  548. package/src/lib/stream/stream-player-slot-styles.component.css +18 -0
  549. package/src/lib/table/table-column-chooser.component.css +17 -0
  550. package/src/lib/table/table-column-menu-trigger.component.css +31 -0
  551. package/src/lib/table/table-detail-styles.component.css +103 -0
  552. package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
  553. package/src/lib/table/table-expander-cell.component.css +64 -0
  554. package/src/lib/table/table-filter-trigger.component.css +44 -0
  555. package/src/lib/table/table-group-header-row.component.css +38 -0
  556. package/src/lib/table/table-inline-edit-styles.component.css +20 -0
  557. package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
  558. package/src/lib/table/table-reorder-overlay.component.css +42 -0
  559. package/src/lib/table/table-resize-grip.component.css +65 -0
  560. package/src/lib/table/table-row-box-styles.component.css +268 -0
  561. package/src/lib/table/table-select-cell.component.css +119 -0
  562. package/src/lib/table/table-skeleton-rows.component.css +19 -0
  563. package/src/lib/table/table-sort-priority-styles.component.css +15 -0
  564. package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
  565. package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
  566. package/src/lib/table/table.component.css +853 -0
  567. package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +37 -0
  568. package/src/lib/tabs/tab-bar-styles.component.css +266 -0
  569. package/src/lib/tabs/tab-scale-styles.component.css +61 -0
  570. package/src/lib/tabs/tabs/tab-group.component.css +115 -0
  571. package/src/lib/time-picker/time-picker.component.css +212 -0
  572. package/src/lib/timeline/timeline-item.component.css +139 -0
  573. package/src/lib/timeline/timeline.component.css +7 -0
  574. package/src/lib/toggletip/toggletip.component.css +88 -0
  575. package/src/lib/toolbar/toolbar.component.css +44 -0
  576. package/src/lib/tooltip/tooltip.component.css +84 -0
  577. package/src/lib/tree/tree.component.css +221 -0
  578. package/types/ethlete-components-testing.d.ts +300 -0
  579. package/types/ethlete-components.d.ts +37511 -3814
@@ -0,0 +1,171 @@
1
+ const OPENERS = '([{';
2
+ const CLOSERS = ')]}';
3
+ /** Replaces string, template and comment contents with spaces, keeping every offset and newline. */
4
+ export const maskSource = (source) => {
5
+ const out = source.split('');
6
+ const blank = (from, to) => {
7
+ for (let i = from; i < to; i++)
8
+ if (out[i] !== '\n')
9
+ out[i] = ' ';
10
+ };
11
+ const templateDepths = [];
12
+ let depth = 0;
13
+ let i = 0;
14
+ const scanTemplate = () => {
15
+ const start = i;
16
+ while (i < source.length) {
17
+ if (source[i] === '\\') {
18
+ i += 2;
19
+ continue;
20
+ }
21
+ if (source[i] === '`') {
22
+ blank(start, i);
23
+ i++;
24
+ return;
25
+ }
26
+ if (source[i] === '$' && source[i + 1] === '{') {
27
+ blank(start, i);
28
+ templateDepths.push(depth);
29
+ depth++;
30
+ i += 2;
31
+ return;
32
+ }
33
+ i++;
34
+ }
35
+ blank(start, i);
36
+ };
37
+ while (i < source.length) {
38
+ const char = source[i];
39
+ const next = source[i + 1];
40
+ if (char === '/' && next === '/') {
41
+ const end = source.indexOf('\n', i);
42
+ const stop = end === -1 ? source.length : end;
43
+ blank(i, stop);
44
+ i = stop;
45
+ }
46
+ else if (char === '/' && next === '*') {
47
+ const end = source.indexOf('*/', i + 2);
48
+ const stop = end === -1 ? source.length : end + 2;
49
+ blank(i, stop);
50
+ i = stop;
51
+ }
52
+ else if (char === "'" || char === '"') {
53
+ let j = i + 1;
54
+ while (j < source.length && source[j] !== char && source[j] !== '\n')
55
+ j += source[j] === '\\' ? 2 : 1;
56
+ blank(i + 1, j);
57
+ i = j + 1;
58
+ }
59
+ else if (char === '`') {
60
+ i++;
61
+ scanTemplate();
62
+ }
63
+ else if (char === '{') {
64
+ depth++;
65
+ i++;
66
+ }
67
+ else if (char === '}') {
68
+ depth--;
69
+ i++;
70
+ if (templateDepths.length > 0 && templateDepths[templateDepths.length - 1] === depth) {
71
+ templateDepths.pop();
72
+ scanTemplate();
73
+ }
74
+ }
75
+ else {
76
+ i++;
77
+ }
78
+ }
79
+ return out.join('');
80
+ };
81
+ /** The index of the bracket closing the one at `open`, or -1. */
82
+ export const matchForward = (masked, open) => {
83
+ let depth = 0;
84
+ for (let i = open; i < masked.length; i++) {
85
+ const char = masked[i] ?? '';
86
+ if (OPENERS.includes(char))
87
+ depth++;
88
+ else if (CLOSERS.includes(char) && --depth === 0)
89
+ return i;
90
+ }
91
+ return -1;
92
+ };
93
+ /** The index of the unclosed `bracket` that encloses `from`, or -1. */
94
+ export const enclosingOpen = (masked, from, bracket) => {
95
+ let depth = 0;
96
+ for (let i = from - 1; i >= 0; i--) {
97
+ const char = masked[i] ?? '';
98
+ if (CLOSERS.includes(char))
99
+ depth++;
100
+ else if (OPENERS.includes(char)) {
101
+ if (depth === 0)
102
+ return char === bracket ? i : -1;
103
+ depth--;
104
+ }
105
+ }
106
+ return -1;
107
+ };
108
+ /** The end of an expression starting at `from`: the first depth-0 `,` `;` or unmatched closer. */
109
+ export const expressionEnd = (masked, from) => {
110
+ let depth = 0;
111
+ for (let i = from; i < masked.length; i++) {
112
+ const char = masked[i] ?? '';
113
+ if (OPENERS.includes(char))
114
+ depth++;
115
+ else if (CLOSERS.includes(char)) {
116
+ if (depth === 0)
117
+ return i;
118
+ depth--;
119
+ }
120
+ else if (depth === 0 && (char === ',' || char === ';'))
121
+ return i;
122
+ }
123
+ return masked.length;
124
+ };
125
+ export const skipSpace = (masked, from) => {
126
+ let i = from;
127
+ while (i < masked.length && /\s/.test(masked[i] ?? ''))
128
+ i++;
129
+ return i;
130
+ };
131
+ export const skipSpaceBack = (masked, from) => {
132
+ let i = from;
133
+ while (i >= 0 && /\s/.test(masked[i] ?? ''))
134
+ i--;
135
+ return i;
136
+ };
137
+ /** Splits `text` at depth-0 occurrences of `separator`, returning `[start, end]` ranges. */
138
+ export const splitTopLevel = (masked, from, to, separator) => {
139
+ const ranges = [];
140
+ let depth = 0;
141
+ let start = from;
142
+ for (let i = from; i < to; i++) {
143
+ const char = masked[i] ?? '';
144
+ if (OPENERS.includes(char) || char === '<')
145
+ depth++;
146
+ else if (CLOSERS.includes(char) || (char === '>' && masked[i - 1] !== '='))
147
+ depth--;
148
+ else if (depth === 0 && char === separator) {
149
+ ranges.push([start, i]);
150
+ start = i + 1;
151
+ }
152
+ }
153
+ ranges.push([start, to]);
154
+ return ranges;
155
+ };
156
+ export const lineAt = (source, offset) => source.slice(0, offset).split('\n').length;
157
+ export const lineText = (source, offset) => source.split('\n')[lineAt(source, offset) - 1]?.trim() ?? '';
158
+ export const finding = (source, offset, reason) => ({
159
+ line: lineAt(source, offset),
160
+ reason,
161
+ text: lineText(source, offset),
162
+ });
163
+ export const applyEdits = (source, edits) => {
164
+ const unique = [...new Map(edits.map((edit) => [`${edit.start}:${edit.end}`, edit])).values()];
165
+ return unique
166
+ .sort((a, b) => b.start - a.start)
167
+ .reduce((text, edit) => text.slice(0, edit.start) + edit.text + text.slice(edit.end), source);
168
+ };
169
+ export const importsEthleteComponents = (source) => /from\s*['"]@ethlete\/components(?:\/[^'"]*)?['"]/.test(source);
170
+ export const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
171
+ //# sourceMappingURL=source-scan.js.map
@@ -0,0 +1,11 @@
1
+ import { runRemovedExportsMigration, } from '../removed-exports/run-removed-exports-migration.js';
2
+ import { OVERLAY_FULLSCREEN_ANIMATION_REMOVALS } from './overlay-fullscreen-animation.js';
3
+ export const OVERLAY_FULLSCREEN_ANIMATION_REPORT_PATH = 'overlay-fullscreen-animation-migration-tasks.md';
4
+ export default async function migrateOverlayFullscreenAnimation(tree, schema) {
5
+ await runRemovedExportsMigration(tree, schema, {
6
+ title: 'Removing the overlay fullscreen animation internals from @ethlete/components',
7
+ removed: OVERLAY_FULLSCREEN_ANIMATION_REMOVALS,
8
+ reportPath: OVERLAY_FULLSCREEN_ANIMATION_REPORT_PATH,
9
+ });
10
+ }
11
+ //# sourceMappingURL=migration.js.map
@@ -0,0 +1,16 @@
1
+ const NAMES = [
2
+ 'ViewportTransformData',
3
+ 'FullscreenAnimationCancellable',
4
+ 'FullscreenAnimationState',
5
+ 'FullscreenAnimationDeps',
6
+ 'cleanupFullscreenAnimationStyles',
7
+ 'startFullscreenEnterAnimation',
8
+ 'startFullscreenLeaveAnimation',
9
+ 'cleanupFullscreenAnimation',
10
+ 'abortFullscreenAnimation',
11
+ ];
12
+ export const OVERLAY_FULLSCREEN_ANIMATION_REMOVALS = NAMES.map((name) => ({
13
+ name,
14
+ todo: `${name} is no longer exported; the full-screen morph animation is internal to fullScreenDialogOverlayStrategy. Configure the strategy instead of driving the animation yourself.`,
15
+ }));
16
+ //# sourceMappingURL=overlay-fullscreen-animation.js.map
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "migrate-overlay-fullscreen-animation",
4
+ "title": "Remove the overlay fullscreen animation internals from @ethlete/components and mark the uses it cannot remove",
5
+ "type": "object",
6
+ "properties": {
7
+ "projects": {
8
+ "type": "array",
9
+ "items": { "type": "string" },
10
+ "description": "Nx projects to scan. Defaults to every project in the workspace.",
11
+ "alias": "project"
12
+ },
13
+ "include": {
14
+ "type": "array",
15
+ "items": { "type": "string" },
16
+ "description": "Path prefixes to scan, relative to the workspace root (e.g. 'apps/shop'). Unioned with `projects`.",
17
+ "alias": "includePath"
18
+ },
19
+ "skipFormat": {
20
+ "type": "boolean",
21
+ "description": "Skip formatting files after migration",
22
+ "default": false
23
+ }
24
+ },
25
+ "required": []
26
+ }
@@ -0,0 +1,35 @@
1
+ import { formatFiles, joinPathFragments } from '@nx/devkit';
2
+ import { dirname } from 'node:path/posix';
3
+ import { createMigrationScope } from '../migrate-query-error-labels/migration-scope.js';
4
+ import { addOverlayNavTabImportsToFile, TEMPLATE_URL } from './overlay-nav-tab-imports.js';
5
+ export default async function migrateOverlayNavTabImports(tree, schema) {
6
+ console.log('\n🔎 Adding OVERLAY_NAV_TAB_IMPORTS where a NAV_TAB_IMPORTS component renders et-overlay-nav-tab-link...');
7
+ const scope = createMigrationScope(tree, schema);
8
+ console.log(` Scope: ${scope.describe()}`);
9
+ const changed = [];
10
+ scope.visit(tree, (filePath) => {
11
+ if (!filePath.endsWith('.ts') || filePath.endsWith('.d.ts'))
12
+ return;
13
+ const content = tree.read(filePath, 'utf-8');
14
+ if (!content?.includes('NAV_TAB_IMPORTS'))
15
+ return;
16
+ const templates = [...content.matchAll(TEMPLATE_URL)]
17
+ .map((match) => tree.read(joinPathFragments(dirname(filePath), match[1] ?? ''), 'utf-8'))
18
+ .filter((template) => template !== null);
19
+ const next = addOverlayNavTabImportsToFile(content, templates);
20
+ if (next === null)
21
+ return;
22
+ tree.write(filePath, next);
23
+ changed.push(filePath);
24
+ });
25
+ if (!schema.skipFormat) {
26
+ await formatFiles(tree);
27
+ }
28
+ if (changed.length > 0) {
29
+ console.log(`\n✅ Added OVERLAY_NAV_TAB_IMPORTS in ${changed.length} file(s).`);
30
+ }
31
+ else {
32
+ console.log('\n✅ Nothing to do.');
33
+ }
34
+ }
35
+ //# sourceMappingURL=migration.js.map
@@ -0,0 +1,25 @@
1
+ const COMPONENTS_IMPORT = /import\s*\{([^}]*)\}\s*from\s*['"]@ethlete\/components['"]/g;
2
+ const NAV_TAB_IMPORTS = /\bNAV_TAB_IMPORTS\b/;
3
+ const OVERLAY_LINK = 'et-overlay-nav-tab-link';
4
+ export const TEMPLATE_URL = /templateUrl\s*:\s*['"]([^'"]+)['"]/g;
5
+ /**
6
+ * Returns the file with `OVERLAY_NAV_TAB_IMPORTS` added next to every `NAV_TAB_IMPORTS`, or `null` when the
7
+ * file does not import `NAV_TAB_IMPORTS` from `@ethlete/components` or none of its templates renders an
8
+ * `et-overlay-nav-tab-link`.
9
+ */
10
+ export const addOverlayNavTabImportsToFile = (content, externalTemplates) => {
11
+ if (content.includes('OVERLAY_NAV_TAB_IMPORTS'))
12
+ return null;
13
+ const importStatement = [...content.matchAll(COMPONENTS_IMPORT)].find((match) => NAV_TAB_IMPORTS.test(match[1] ?? '') && !/\bNAV_TAB_IMPORTS\s+as\b/.test(match[1] ?? ''));
14
+ if (!importStatement || importStatement.index === undefined)
15
+ return null;
16
+ if (!content.includes(OVERLAY_LINK) && !externalTemplates.some((template) => template.includes(OVERLAY_LINK))) {
17
+ return null;
18
+ }
19
+ const start = importStatement.index;
20
+ const end = start + importStatement[0].length;
21
+ const rewrittenImport = importStatement[0].replace(NAV_TAB_IMPORTS, 'NAV_TAB_IMPORTS, OVERLAY_NAV_TAB_IMPORTS');
22
+ const addNextToUsage = (code) => code.replace(/(\.\.\.)?\bNAV_TAB_IMPORTS\b/g, (_, spread) => `${spread ?? ''}NAV_TAB_IMPORTS, ${spread ?? ''}OVERLAY_NAV_TAB_IMPORTS`);
23
+ return addNextToUsage(content.slice(0, start)) + rewrittenImport + addNextToUsage(content.slice(end));
24
+ };
25
+ //# sourceMappingURL=overlay-nav-tab-imports.js.map
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "migrate-overlay-nav-tab-imports",
4
+ "title": "Add OVERLAY_NAV_TAB_IMPORTS where a NAV_TAB_IMPORTS component renders et-overlay-nav-tab-link",
5
+ "type": "object",
6
+ "properties": {
7
+ "projects": {
8
+ "type": "array",
9
+ "items": { "type": "string" },
10
+ "description": "Nx projects to scan. Defaults to every project in the workspace.",
11
+ "alias": "project"
12
+ },
13
+ "include": {
14
+ "type": "array",
15
+ "items": { "type": "string" },
16
+ "description": "Path prefixes to scan, relative to the workspace root (e.g. 'apps/shop'). Unioned with `projects`.",
17
+ "alias": "includePath"
18
+ },
19
+ "skipFormat": {
20
+ "type": "boolean",
21
+ "description": "Skip formatting files after migration",
22
+ "default": false
23
+ }
24
+ },
25
+ "required": []
26
+ }
@@ -0,0 +1,85 @@
1
+ import { formatFiles } from '@nx/devkit';
2
+ import { createMigrationScope } from '../migrate-query-error-labels/migration-scope.js';
3
+ import { addPipWindowConfigToAppConfig, isPipWindowZIndexCandidate, PIP_WINDOW_Z_INDEX_PROPERTY, pipWindowZIndexTasks, scanPipWindowZIndexInFile, } from './pip-window-z-index.js';
4
+ export const PIP_WINDOW_Z_INDEX_REPORT_PATH = 'pip-window-z-index-migration-tasks.md';
5
+ const renderReport = (tasks) => [
6
+ '# PiP window z-index migration tasks',
7
+ '',
8
+ `\`${PIP_WINDOW_Z_INDEX_PROPERTY}\` is removed. The PiP window paints at and declares one layer, set in the`,
9
+ 'application config. Its default is `2147483005`, above SDK overlays and the notification stack:',
10
+ '',
11
+ '```ts',
12
+ "import { providePipWindowConfig } from '@ethlete/components';",
13
+ '',
14
+ 'providers: [...providePipWindowConfig({ overlayLayer: 2147483005 })];',
15
+ '```',
16
+ '',
17
+ 'Move each site below into that config, then delete it and this file.',
18
+ '',
19
+ ...tasks.map((task) => [`- ${task.file}:${task.line}`, ` ${task.message}`].join('\n')),
20
+ '',
21
+ ].join('\n');
22
+ export default async function migratePipWindowZIndex(tree, schema) {
23
+ console.log(`\n🔎 Moving ${PIP_WINDOW_Z_INDEX_PROPERTY} into providePipWindowConfig...`);
24
+ const scope = createMigrationScope(tree, schema);
25
+ console.log(` Scope: ${scope.describe()}`);
26
+ const scanned = [];
27
+ const tasks = [];
28
+ const appConfigs = [];
29
+ scope.visit(tree, (filePath) => {
30
+ if (!isPipWindowZIndexCandidate(filePath))
31
+ return;
32
+ const content = tree.read(filePath, 'utf-8');
33
+ if (!content)
34
+ return;
35
+ const result = scanPipWindowZIndexInFile(filePath, content);
36
+ tasks.push(...result.tasks);
37
+ if (result.next !== null)
38
+ scanned.push({ file: filePath, content, next: result.next, values: result.values });
39
+ if (filePath.endsWith('.ts') && addPipWindowConfigToAppConfig(content, 0) !== null)
40
+ appConfigs.push(filePath);
41
+ });
42
+ const values = [...new Set(scanned.flatMap((entry) => entry.values))];
43
+ const [layer] = values;
44
+ const changed = [];
45
+ if (values.length === 1 && layer !== undefined && appConfigs.length > 0) {
46
+ for (const entry of scanned) {
47
+ tree.write(entry.file, entry.next ?? entry.content);
48
+ changed.push(entry.file);
49
+ }
50
+ for (const filePath of appConfigs) {
51
+ const next = addPipWindowConfigToAppConfig(tree.read(filePath, 'utf-8') ?? '', layer);
52
+ if (next === null)
53
+ continue;
54
+ tree.write(filePath, next);
55
+ changed.push(filePath);
56
+ }
57
+ }
58
+ else {
59
+ const reason = values.length > 1
60
+ ? `The workspace sets ${values.join(', ')}; the migration moves only one value.`
61
+ : 'The migration found no application config to add `providePipWindowConfig` to.';
62
+ for (const entry of scanned) {
63
+ tasks.push(...pipWindowZIndexTasks(entry.file, entry.content, `Sets a literal level. ${reason}`));
64
+ }
65
+ }
66
+ tasks.sort((a, b) => a.file.localeCompare(b.file) || a.line - b.line);
67
+ if (tasks.length > 0) {
68
+ tree.write(PIP_WINDOW_Z_INDEX_REPORT_PATH, renderReport(tasks));
69
+ }
70
+ if (!schema.skipFormat) {
71
+ await formatFiles(tree);
72
+ }
73
+ if (changed.length > 0) {
74
+ console.log(`\n✅ Moved ${PIP_WINDOW_Z_INDEX_PROPERTY}: ${layer} into providePipWindowConfig (${changed.length} file(s)).`);
75
+ }
76
+ if (tasks.length > 0) {
77
+ console.log(`\n⚠️ ${tasks.length} site(s) need it by hand — see ${PIP_WINDOW_Z_INDEX_REPORT_PATH}:`);
78
+ for (const task of tasks)
79
+ console.log(` ${task.file}:${task.line}`);
80
+ }
81
+ else if (changed.length === 0) {
82
+ console.log('\n✅ Nothing to do.');
83
+ }
84
+ }
85
+ //# sourceMappingURL=migration.js.map
@@ -0,0 +1,60 @@
1
+ export const PIP_WINDOW_Z_INDEX_PROPERTY = '--et-pip-window-z-index';
2
+ const STYLESHEET = /\.(css|scss|sass|less)$/;
3
+ const SCANNED = /\.(css|scss|sass|less|html|ts)$/;
4
+ const LITERAL_DECLARATION = /^[ \t]*--et-pip-window-z-index[ \t]*:[ \t]*(-?\d+)[ \t]*;?[ \t]*(?:\r?\n|$)/gm;
5
+ const SOLE_DECLARATION_RULE = /^[ \t]*[^{}\n;]+\{\s*--et-pip-window-z-index[ \t]*:[ \t]*(-?\d+)[ \t]*;?\s*\}[ \t]*(?:\r?\n|$)(?:[ \t]*\r?\n)*/gm;
6
+ const COMPONENTS_IMPORT = /import\s*\{([^}]*)\}\s*from\s*['"]@ethlete\/components['"]/g;
7
+ const APP_CONFIG_MARKER = /\bApplicationConfig\b|\bbootstrapApplication\(/;
8
+ const lineOf = (content, index) => content.slice(0, index).split('\n').length;
9
+ const occurrences = (content) => {
10
+ const indexes = [];
11
+ let index = content.indexOf(PIP_WINDOW_Z_INDEX_PROPERTY);
12
+ while (index !== -1) {
13
+ indexes.push(index);
14
+ index = content.indexOf(PIP_WINDOW_Z_INDEX_PROPERTY, index + 1);
15
+ }
16
+ return indexes;
17
+ };
18
+ export const pipWindowZIndexTasks = (file, content, message) => occurrences(content).map((index) => ({ file, line: lineOf(content, index), message }));
19
+ export const isPipWindowZIndexCandidate = (filePath) => SCANNED.test(filePath) && !filePath.endsWith('.d.ts');
20
+ export const scanPipWindowZIndexInFile = (file, content) => {
21
+ if (!content.includes(PIP_WINDOW_Z_INDEX_PROPERTY))
22
+ return { next: null, values: [], tasks: [] };
23
+ const values = [];
24
+ let next = null;
25
+ if (STYLESHEET.test(file)) {
26
+ const collect = (_, value) => {
27
+ values.push(Number(value));
28
+ return '';
29
+ };
30
+ const removed = content.replace(SOLE_DECLARATION_RULE, collect).replace(LITERAL_DECLARATION, collect);
31
+ if (values.length > 0)
32
+ next = removed;
33
+ }
34
+ const tasks = pipWindowZIndexTasks(file, next ?? content, `Sets \`${PIP_WINDOW_Z_INDEX_PROPERTY}\` in a way the migration cannot move. Remove it and pass the level to \`providePipWindowConfig({ overlayLayer })\`.`);
35
+ return { next, values, tasks };
36
+ };
37
+ /** Adds `providePipWindowConfig({ overlayLayer })` to an application config, or `null` when none fits. */
38
+ export const addPipWindowConfigToAppConfig = (content, overlayLayer) => {
39
+ if (!APP_CONFIG_MARKER.test(content) || content.includes('mergeApplicationConfig('))
40
+ return null;
41
+ if (content.includes('providePipWindowConfig('))
42
+ return null;
43
+ const providers = content.match(/\bproviders\s*:\s*\[(\s*\])?/);
44
+ if (!providers || providers.index === undefined)
45
+ return null;
46
+ const provider = `...providePipWindowConfig({ overlayLayer: ${overlayLayer} })`;
47
+ const insertAt = providers.index + providers[0].length;
48
+ const withProvider = providers[1]
49
+ ? `${content.slice(0, providers.index)}providers: [${provider}]${content.slice(insertAt)}`
50
+ : `${content.slice(0, insertAt)}${provider}, ${content.slice(insertAt)}`;
51
+ const importStatement = [...withProvider.matchAll(COMPONENTS_IMPORT)][0];
52
+ if (!importStatement || importStatement.index === undefined) {
53
+ return `import { providePipWindowConfig } from '@ethlete/components';\n${withProvider}`;
54
+ }
55
+ const rewrittenImport = importStatement[0].replace('{', '{ providePipWindowConfig,');
56
+ return (withProvider.slice(0, importStatement.index) +
57
+ rewrittenImport +
58
+ withProvider.slice(importStatement.index + importStatement[0].length));
59
+ };
60
+ //# sourceMappingURL=pip-window-z-index.js.map
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "migrate-pip-window-z-index",
4
+ "title": "Move --et-pip-window-z-index into providePipWindowConfig and report the sites it cannot move",
5
+ "type": "object",
6
+ "properties": {
7
+ "projects": {
8
+ "type": "array",
9
+ "items": { "type": "string" },
10
+ "description": "Nx projects to scan. Defaults to every project in the workspace.",
11
+ "alias": "project"
12
+ },
13
+ "include": {
14
+ "type": "array",
15
+ "items": { "type": "string" },
16
+ "description": "Path prefixes to scan, relative to the workspace root (e.g. 'apps/shop'). Unioned with `projects`.",
17
+ "alias": "includePath"
18
+ },
19
+ "skipFormat": {
20
+ "type": "boolean",
21
+ "description": "Skip formatting files after migration",
22
+ "default": false
23
+ }
24
+ },
25
+ "required": []
26
+ }
@@ -0,0 +1,30 @@
1
+ import { getProjects, visitNotIgnoredFiles } from '@nx/devkit';
2
+ const stripTrailingSlash = (value) => (value.endsWith('/') ? value.slice(0, -1) : value);
3
+ export const createMigrationScope = (tree, options) => {
4
+ const roots = [];
5
+ for (const projectName of options.projects ?? []) {
6
+ const project = getProjects(tree).get(projectName);
7
+ if (!project) {
8
+ throw new Error(`Unknown project "${projectName}". Pass names as they appear in \`nx show projects\`, or use --include with a path prefix.`);
9
+ }
10
+ roots.push(stripTrailingSlash(project.root));
11
+ }
12
+ for (const includePath of options.include ?? []) {
13
+ roots.push(stripTrailingSlash(includePath));
14
+ }
15
+ if (roots.length === 0) {
16
+ return {
17
+ visit: (targetTree, callback) => visitNotIgnoredFiles(targetTree, '', callback),
18
+ describe: () => 'the whole workspace',
19
+ };
20
+ }
21
+ return {
22
+ visit: (targetTree, callback) => {
23
+ for (const root of roots) {
24
+ visitNotIgnoredFiles(targetTree, root, callback);
25
+ }
26
+ },
27
+ describe: () => roots.join(', '),
28
+ };
29
+ };
30
+ //# sourceMappingURL=migration-scope.js.map
@@ -0,0 +1,58 @@
1
+ import { formatFiles } from '@nx/devkit';
2
+ import { createMigrationScope } from './migration-scope.js';
3
+ import { scanQueryErrorLabelsInFile } from './query-error-labels.js';
4
+ export const QUERY_ERROR_LABELS_REPORT_PATH = 'query-error-labels-migration-tasks.md';
5
+ const renderReport = (tasks) => [
6
+ '# Query-error labels migration tasks',
7
+ '',
8
+ 'Query-error titles and fallback messages no longer switch to German automatically when the locale is a',
9
+ 'German one — the default is English-only, so an English-only app stops bundling the German status table.',
10
+ 'Whether to bring German back is a product decision no codemod can make, so the sites below were found but',
11
+ 'not changed.',
12
+ '',
13
+ 'If the app should keep the old locale-driven wording, add once, app-wide:',
14
+ '',
15
+ '```ts',
16
+ "import { provideQueryErrorLabels, queryErrorLabelsForLocale } from '@ethlete/components';",
17
+ '',
18
+ 'provideQueryErrorLabels(queryErrorLabelsForLocale);',
19
+ '```',
20
+ '',
21
+ 'For German unconditionally, pass `GERMAN_QUERY_ERROR_LABELS` instead. If the app is English-only (or already',
22
+ 'overrides the labels), there is nothing to do — delete this file.',
23
+ '',
24
+ ...tasks.map((task) => [`## \`${task.id}\``, '', `- ${task.file}:${task.line}`, `- ${task.message}`, ''].join('\n')),
25
+ ].join('\n');
26
+ export default async function migrateQueryErrorLabels(tree, schema) {
27
+ console.log('\n🔎 Scanning for query-error usage affected by the English-only label default...');
28
+ const scope = createMigrationScope(tree, schema);
29
+ console.log(` Scope: ${scope.describe()}`);
30
+ const tasks = [];
31
+ let hasLabelProvider = false;
32
+ scope.visit(tree, (filePath) => {
33
+ if (!/\.(ts|html)$/.test(filePath) || filePath.endsWith('.d.ts'))
34
+ return;
35
+ const content = tree.read(filePath, 'utf-8');
36
+ if (!content)
37
+ return;
38
+ const result = scanQueryErrorLabelsInFile(filePath, content);
39
+ tasks.push(...result.usages);
40
+ hasLabelProvider ||= result.hasLabelProvider;
41
+ });
42
+ if (hasLabelProvider) {
43
+ console.log(' ✓ Found a provideQueryErrorLabels call — the app already controls its wording.');
44
+ }
45
+ else if (tasks.length > 0) {
46
+ tree.write(QUERY_ERROR_LABELS_REPORT_PATH, renderReport(tasks));
47
+ }
48
+ if (!schema.skipFormat) {
49
+ await formatFiles(tree);
50
+ }
51
+ if (!hasLabelProvider && tasks.length > 0) {
52
+ console.log(`\n⚠️ ${tasks.length} site(s) use query-error without a label provider — see ${QUERY_ERROR_LABELS_REPORT_PATH}.`);
53
+ }
54
+ else {
55
+ console.log('\n✅ Nothing to do.');
56
+ }
57
+ }
58
+ //# sourceMappingURL=migration.js.map
@@ -0,0 +1,30 @@
1
+ /**
2
+ * The query-error labels no longer resolve German automatically from the locale — the default is the
3
+ * English status tables only, and German is an explicit `provideQueryErrorLabels(queryErrorLabelsForLocale)`
4
+ * (or `GERMAN_QUERY_ERROR_LABELS`) opt-in. Whether an app wants German back is a product decision, so this
5
+ * migration only finds the affected sites and reports them; it rewrites nothing.
6
+ */
7
+ const USAGE_MARKERS = [
8
+ 'et-query-error',
9
+ 'etQueryError',
10
+ 'QueryErrorComponent',
11
+ 'QueryErrorDirective',
12
+ 'QUERY_ERROR_IMPORTS',
13
+ 'injectQueryErrorLabels',
14
+ ];
15
+ const OPT_IN_MARKER = 'provideQueryErrorLabels';
16
+ export const scanQueryErrorLabelsInFile = (filePath, content) => {
17
+ const usages = [];
18
+ const marker = USAGE_MARKERS.find((m) => content.includes(m));
19
+ if (marker) {
20
+ const line = content.slice(0, content.indexOf(marker)).split('\n').length;
21
+ usages.push({
22
+ id: `query-error-labels--${filePath.replace(/[^a-zA-Z0-9]+/g, '-')}`,
23
+ file: filePath,
24
+ line,
25
+ message: `Uses the query-error UI (\`${marker}\`). Its titles and fallback messages are English-only by default now.`,
26
+ });
27
+ }
28
+ return { usages, hasLabelProvider: content.includes(OPT_IN_MARKER) };
29
+ };
30
+ //# sourceMappingURL=query-error-labels.js.map
@@ -0,0 +1,26 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "migrate-query-error-labels",
4
+ "title": "Find apps affected by the query-error label default change (English-only)",
5
+ "type": "object",
6
+ "properties": {
7
+ "projects": {
8
+ "type": "array",
9
+ "items": { "type": "string" },
10
+ "description": "Nx projects to scan. Defaults to every project in the workspace.",
11
+ "alias": "project"
12
+ },
13
+ "include": {
14
+ "type": "array",
15
+ "items": { "type": "string" },
16
+ "description": "Path prefixes to scan, relative to the workspace root (e.g. 'apps/shop'). Unioned with `projects`.",
17
+ "alias": "includePath"
18
+ },
19
+ "skipFormat": {
20
+ "type": "boolean",
21
+ "description": "Skip formatting files after migration",
22
+ "default": false
23
+ }
24
+ },
25
+ "required": []
26
+ }