scb-wc 0.1.2 → 0.1.4

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 (339) hide show
  1. package/README.md +194 -164
  2. package/all.js +91 -5
  3. package/blazor/CustomEvents.cs +83 -0
  4. package/blazor/ScbBlazorInteropBase.cs +4460 -1663
  5. package/blazor/scb-blazor-bridge.js +6827 -2517
  6. package/blazor/wrappers/ScbAccordion.razor +50 -0
  7. package/blazor/wrappers/ScbAppBar.razor +95 -0
  8. package/blazor/wrappers/ScbBreadcrumb.razor +59 -0
  9. package/blazor/wrappers/ScbCalendar.razor +100 -0
  10. package/blazor/wrappers/ScbCalendarCard.razor +189 -0
  11. package/blazor/wrappers/ScbCheckbox.razor +92 -0
  12. package/blazor/wrappers/ScbCollapse.razor +76 -0
  13. package/blazor/wrappers/ScbCookiesConsent.razor +106 -0
  14. package/blazor/wrappers/ScbDatepicker.razor +77 -0
  15. package/blazor/wrappers/ScbDialog.razor +72 -0
  16. package/blazor/wrappers/ScbDrawer.razor +64 -0
  17. package/blazor/wrappers/ScbDropZone.razor +168 -0
  18. package/blazor/wrappers/ScbDropdown.razor +76 -0
  19. package/blazor/wrappers/ScbHorizontalScroller.razor +137 -0
  20. package/blazor/wrappers/ScbList.razor +77 -0
  21. package/blazor/wrappers/ScbMenu.razor +71 -0
  22. package/blazor/wrappers/ScbNav.razor +92 -0
  23. package/blazor/wrappers/ScbNotificationCard.razor +122 -0
  24. package/blazor/wrappers/ScbOptionsMenu.razor +88 -0
  25. package/blazor/wrappers/ScbPagination.razor +80 -0
  26. package/blazor/wrappers/ScbRadioGroup.razor +94 -0
  27. package/blazor/wrappers/ScbSearch.razor +83 -0
  28. package/blazor/wrappers/ScbSegmentedButton.razor +85 -0
  29. package/blazor/wrappers/ScbSelect.razor +79 -0
  30. package/blazor/wrappers/ScbSlider.razor +96 -0
  31. package/blazor/wrappers/ScbSnackbar.razor +93 -0
  32. package/blazor/wrappers/ScbSwitch.razor +92 -0
  33. package/blazor/wrappers/ScbTable.razor +67 -0
  34. package/blazor/wrappers/ScbTableAdvanced.razor +78 -0
  35. package/blazor/wrappers/ScbTabs.razor +55 -0
  36. package/blazor/wrappers/ScbTextfield.razor +104 -0
  37. package/blazor/wrappers/ScbTooltip.razor +88 -0
  38. package/blazor/wrappers/ScbViz.razor +142 -0
  39. package/demo-data-preview.svg +12 -0
  40. package/dummy.png +0 -0
  41. package/fonts/inter/files/inter-latin-wght-italic.woff2 +0 -0
  42. package/fonts/inter/files/inter-latin-wght-normal.woff2 +0 -0
  43. package/fonts/material-symbols-outlined/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  44. package/index.js +91 -1
  45. package/mvc/components/all.js +90 -1
  46. package/mvc/components/scb-accordion/scb-accordion-item.js +211 -0
  47. package/mvc/components/scb-accordion/scb-accordion.js +44 -0
  48. package/mvc/components/scb-app-bar/scb-app-bar.js +166 -0
  49. package/mvc/components/scb-avatar/scb-avatar.js +111 -0
  50. package/mvc/components/scb-badge/scb-badge.js +80 -0
  51. package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +14 -0
  52. package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +96 -0
  53. package/mvc/components/scb-button/scb-button.js +268 -0
  54. package/mvc/components/scb-calendar/scb-calendar-event.js +6 -0
  55. package/mvc/components/scb-calendar/scb-calendar.js +168 -0
  56. package/mvc/components/scb-calendar-card/scb-calendar-card.js +346 -0
  57. package/mvc/components/scb-card/scb-card.js +761 -0
  58. package/mvc/components/scb-checkbox/scb-checkbox-group.js +33 -0
  59. package/mvc/components/scb-checkbox/scb-checkbox.js +140 -0
  60. package/mvc/components/scb-chevron/scb-chevron.js +121 -0
  61. package/mvc/components/scb-chip/scb-chip.js +66 -0
  62. package/mvc/components/scb-collapse/scb-collapse.js +89 -0
  63. package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +78 -0
  64. package/mvc/components/scb-datepicker/scb-datepicker.js +296 -0
  65. package/mvc/components/scb-dialog/scb-dialog.js +265 -0
  66. package/mvc/components/scb-divider/scb-divider.js +69 -0
  67. package/mvc/components/scb-drawer/scb-drawer.js +128 -0
  68. package/mvc/components/scb-drop-zone/scb-drop-zone.js +555 -0
  69. package/mvc/components/scb-dropdown/scb-dropdown.js +306 -0
  70. package/mvc/components/scb-fab/scb-fab.js +108 -0
  71. package/mvc/components/scb-fact-card/scb-fact-card-content.js +46 -0
  72. package/mvc/components/scb-fact-card/scb-fact-card.js +226 -0
  73. package/mvc/components/scb-footer/scb-footer-section.js +3 -0
  74. package/mvc/components/scb-footer/scb-footer.js +210 -0
  75. package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +131 -0
  76. package/mvc/components/scb-grid/scb-grid-item.js +11 -0
  77. package/mvc/components/scb-grid/scb-grid.js +98 -0
  78. package/mvc/components/scb-grid/scb-stack.js +33 -0
  79. package/mvc/components/scb-header/scb-header-menu-group.js +1 -0
  80. package/mvc/components/scb-header/scb-header-menu-item.js +5 -0
  81. package/mvc/components/scb-header/scb-header-tab.js +5 -0
  82. package/mvc/components/scb-header/scb-header-utility.js +1 -0
  83. package/mvc/components/scb-header/scb-header.js +681 -0
  84. package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +196 -0
  85. package/mvc/components/scb-icon-button/scb-icon-button.js +171 -0
  86. package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +212 -0
  87. package/mvc/components/scb-link/scb-link.js +61 -0
  88. package/mvc/components/scb-list/scb-list-item.js +153 -0
  89. package/mvc/components/scb-list/scb-list.js +26 -0
  90. package/mvc/components/scb-menu/scb-menu-item.js +205 -0
  91. package/mvc/components/scb-menu/scb-menu-section.js +42 -0
  92. package/mvc/components/scb-menu/scb-menu.js +81 -0
  93. package/mvc/components/scb-menu/scb-sub-menu.js +10 -0
  94. package/mvc/components/scb-nav/scb-nav-item.js +28 -0
  95. package/mvc/components/scb-nav/scb-nav.js +104 -0
  96. package/mvc/components/scb-notification-card/scb-notification-card.js +358 -0
  97. package/mvc/components/scb-options-menu/scb-options-menu-item.js +66 -0
  98. package/mvc/components/scb-options-menu/scb-options-menu.js +88 -0
  99. package/mvc/components/scb-options-menu/scb-options-sub-menu.js +34 -0
  100. package/mvc/components/scb-overlay/scb-overlay.js +49 -0
  101. package/mvc/components/scb-pagination/scb-pagination.js +312 -0
  102. package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +87 -0
  103. package/mvc/components/scb-progress-stepper/scb-progress-step.js +147 -0
  104. package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +62 -0
  105. package/mvc/components/scb-radio-button/scb-radio-button.js +132 -0
  106. package/mvc/components/scb-radio-button/scb-radio-group.js +43 -0
  107. package/mvc/components/scb-scrollspy/scb-scrollspy.js +79 -0
  108. package/mvc/components/scb-search/scb-search.js +292 -0
  109. package/mvc/components/scb-segmented-button/scb-segmented-button.js +32 -0
  110. package/mvc/components/scb-segmented-button/scb-segmented-item.js +74 -0
  111. package/mvc/components/scb-select/scb-select-option.js +61 -0
  112. package/mvc/components/scb-select/scb-select.js +284 -0
  113. package/mvc/components/scb-skeleton/scb-skeleton.js +38 -0
  114. package/mvc/components/scb-slider/scb-slider.js +27 -0
  115. package/mvc/components/scb-snackbar/scb-snackbar.js +128 -0
  116. package/mvc/components/scb-status-pill/scb-status-pill.js +45 -0
  117. package/mvc/components/scb-stepper/scb-step.js +239 -0
  118. package/mvc/components/scb-stepper/scb-stepper.js +139 -0
  119. package/mvc/components/scb-switch/scb-switch.js +59 -0
  120. package/mvc/components/scb-table/scb-table.js +51 -0
  121. package/mvc/components/scb-table-advanced/scb-table-advanced.js +76 -0
  122. package/mvc/components/scb-tabs/scb-primary-tab.js +6 -0
  123. package/mvc/components/scb-tabs/scb-secondary-tab.js +6 -0
  124. package/mvc/components/scb-tabs/scb-tabs.js +28 -0
  125. package/mvc/components/scb-textfield/scb-textfield.js +595 -0
  126. package/mvc/components/scb-toc/scb-toc-item.js +303 -0
  127. package/mvc/components/scb-toc/scb-toc.js +19 -0
  128. package/mvc/components/scb-tooltip/scb-tooltip.js +196 -0
  129. package/mvc/components/scb-vignette/scb-vignette.js +37 -0
  130. package/mvc/components/scb-viz/scb-viz-actions-runtime.js +2 -0
  131. package/mvc/components/scb-viz/scb-viz-print-runtime.js +98 -0
  132. package/mvc/components/scb-viz/scb-viz-series-differentiation-registry.js +1 -0
  133. package/mvc/components/scb-viz/scb-viz-series-differentiation-runtime.js +1 -0
  134. package/mvc/components/scb-viz/scb-viz-table-runtime.js +1 -0
  135. package/mvc/components/scb-viz/scb-viz.js +1140 -0
  136. package/mvc/fonts/inter/files/inter-latin-wght-italic.woff2 +0 -0
  137. package/mvc/fonts/inter/files/inter-latin-wght-normal.woff2 +0 -0
  138. package/mvc/fonts/material-symbols-outlined/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
  139. package/mvc/scb-blazor-bridge.js +6827 -2517
  140. package/mvc/scb-logo.svg +20 -20
  141. package/mvc/scb-typography.css +1 -1
  142. package/mvc/scb-wc.css +3 -2
  143. package/mvc/scb.svg +13 -13
  144. package/mvc/vendor/assertClassBrand.js +1 -0
  145. package/mvc/vendor/classPrivateFieldGet2.js +1 -0
  146. package/mvc/vendor/decorate.js +1 -0
  147. package/mvc/vendor/preload-helper.js +1 -0
  148. package/mvc/vendor/vendor-lit.js +1 -0
  149. package/mvc/vendor/vendor-material.js +364 -0
  150. package/mvc/vendor/vendor.js +4 -0
  151. package/package.json +420 -77
  152. package/scb-accordion/scb-accordion-item.js +340 -0
  153. package/scb-accordion/scb-accordion.js +151 -0
  154. package/scb-app-bar/scb-app-bar.js +317 -0
  155. package/scb-avatar/scb-avatar.js +197 -0
  156. package/scb-badge/scb-badge.js +165 -0
  157. package/scb-breadcrumb/scb-breadcrumb-item.js +62 -0
  158. package/scb-breadcrumb/scb-breadcrumb.js +255 -0
  159. package/scb-button/scb-button.js +398 -0
  160. package/scb-calendar/scb-calendar-event.js +48 -0
  161. package/scb-calendar/scb-calendar.js +700 -0
  162. package/scb-calendar-card/scb-calendar-card.js +505 -0
  163. package/scb-card/scb-card.js +1231 -0
  164. package/scb-checkbox/scb-checkbox-group.js +104 -0
  165. package/scb-checkbox/scb-checkbox.js +316 -0
  166. package/scb-chevron/scb-chevron.js +144 -0
  167. package/scb-chip/scb-chip.js +234 -0
  168. package/scb-collapse/scb-collapse.js +231 -0
  169. package/scb-cookies-consent/scb-cookies-consent.js +164 -0
  170. package/scb-datepicker/scb-datepicker.js +470 -0
  171. package/scb-dialog/scb-dialog.js +574 -0
  172. package/scb-divider/scb-divider.js +119 -0
  173. package/scb-drawer/scb-drawer.js +297 -0
  174. package/scb-drop-zone/scb-drop-zone.js +965 -0
  175. package/scb-dropdown/scb-dropdown.js +598 -0
  176. package/scb-fab/scb-fab.js +190 -0
  177. package/scb-fact-card/scb-fact-card-content.js +82 -0
  178. package/scb-fact-card/scb-fact-card.js +376 -0
  179. package/scb-footer/scb-footer-section.js +23 -0
  180. package/scb-footer/scb-footer.js +343 -0
  181. package/scb-gallery-grid/scb-gallery-grid.js +242 -0
  182. package/scb-grid/scb-grid-item.js +81 -0
  183. package/scb-grid/scb-grid.js +200 -0
  184. package/scb-grid/scb-stack.js +120 -0
  185. package/scb-header/scb-header-menu-group.js +21 -0
  186. package/scb-header/scb-header-menu-item.js +22 -0
  187. package/scb-header/scb-header-tab.js +25 -0
  188. package/scb-header/scb-header-utility.js +27 -0
  189. package/scb-header/scb-header.js +1358 -0
  190. package/scb-horizontal-scroller/scb-horizontal-scroller.js +353 -0
  191. package/scb-icon-button/scb-icon-button.js +335 -0
  192. package/scb-keyfigure-card/scb-keyfigure-card.js +340 -0
  193. package/scb-link/scb-link.js +136 -0
  194. package/scb-list/scb-list-item.js +297 -0
  195. package/scb-list/scb-list.js +119 -0
  196. package/scb-menu/scb-menu-item.js +330 -0
  197. package/scb-menu/scb-menu-section.js +60 -0
  198. package/scb-menu/scb-menu.js +154 -0
  199. package/scb-menu/scb-sub-menu.js +36 -0
  200. package/scb-nav/scb-nav-item.js +96 -0
  201. package/scb-nav/scb-nav.js +263 -0
  202. package/scb-notification-card/scb-notification-card.js +479 -0
  203. package/scb-options-menu/scb-options-menu-item.js +218 -0
  204. package/scb-options-menu/scb-options-menu.js +237 -0
  205. package/scb-options-menu/scb-options-sub-menu.js +69 -0
  206. package/scb-overlay/scb-overlay.js +144 -0
  207. package/scb-pagination/scb-pagination.js +438 -0
  208. package/scb-progress-indicator/scb-progress-indicator.js +199 -0
  209. package/scb-progress-stepper/scb-progress-step.js +213 -0
  210. package/scb-progress-stepper/scb-progress-stepper.js +132 -0
  211. package/scb-radio-button/scb-radio-button.js +249 -0
  212. package/scb-radio-button/scb-radio-group.js +216 -0
  213. package/scb-scrollspy/scb-scrollspy.js +670 -0
  214. package/scb-search/scb-search.js +643 -0
  215. package/scb-segmented-button/scb-segmented-button.js +215 -0
  216. package/scb-segmented-button/scb-segmented-item.js +133 -0
  217. package/scb-select/scb-select-option.js +88 -0
  218. package/scb-select/scb-select.js +517 -0
  219. package/scb-skeleton/scb-skeleton.js +92 -0
  220. package/scb-slider/scb-slider.js +98 -0
  221. package/scb-snackbar/scb-snackbar.js +223 -0
  222. package/scb-status-pill/scb-status-pill.js +100 -0
  223. package/scb-stepper/scb-step.js +311 -0
  224. package/scb-stepper/scb-stepper.js +325 -0
  225. package/scb-switch/scb-switch.js +182 -0
  226. package/scb-table/scb-table.js +202 -0
  227. package/scb-table-advanced/scb-table-advanced.js +327 -0
  228. package/scb-tabs/scb-primary-tab.js +68 -0
  229. package/scb-tabs/scb-secondary-tab.js +68 -0
  230. package/scb-tabs/scb-tabs.js +100 -0
  231. package/scb-test-components/index.d.ts +90 -0
  232. package/scb-test-components/scb-accordion/scb-accordion-item.d.ts +39 -0
  233. package/scb-test-components/scb-accordion/scb-accordion.d.ts +27 -0
  234. package/scb-test-components/scb-app-bar/scb-app-bar.d.ts +25 -0
  235. package/scb-test-components/scb-avatar/scb-avatar.d.ts +37 -0
  236. package/scb-test-components/scb-badge/scb-badge.d.ts +28 -0
  237. package/scb-test-components/scb-breadcrumb/scb-breadcrumb-item.d.ts +15 -0
  238. package/scb-test-components/scb-breadcrumb/scb-breadcrumb.d.ts +27 -0
  239. package/scb-test-components/scb-button/scb-button.d.ts +40 -0
  240. package/scb-test-components/scb-calendar/scb-calendar-event.d.ts +15 -0
  241. package/scb-test-components/scb-calendar/scb-calendar.d.ts +77 -0
  242. package/scb-test-components/scb-calendar-card/scb-calendar-card.d.ts +45 -0
  243. package/scb-test-components/scb-card/scb-card.d.ts +101 -0
  244. package/scb-test-components/scb-checkbox/scb-checkbox-group.d.ts +23 -0
  245. package/scb-test-components/scb-checkbox/scb-checkbox.d.ts +52 -0
  246. package/scb-test-components/scb-chevron/scb-chevron.d.ts +13 -0
  247. package/scb-test-components/scb-chip/scb-chip.d.ts +61 -0
  248. package/scb-test-components/scb-collapse/scb-collapse.d.ts +29 -0
  249. package/scb-test-components/scb-cookies-consent/scb-cookies-consent.d.ts +23 -0
  250. package/scb-test-components/scb-datepicker/scb-datepicker.d.ts +39 -0
  251. package/scb-test-components/scb-dialog/scb-dialog.d.ts +72 -0
  252. package/scb-test-components/scb-divider/scb-divider.d.ts +34 -0
  253. package/scb-test-components/scb-drawer/scb-drawer.d.ts +72 -0
  254. package/scb-test-components/scb-drop-zone/scb-drop-zone.d.ts +143 -0
  255. package/scb-test-components/scb-dropdown/scb-dropdown.d.ts +70 -0
  256. package/scb-test-components/scb-fab/scb-fab.d.ts +42 -0
  257. package/scb-test-components/scb-fact-card/scb-fact-card-content.d.ts +15 -0
  258. package/scb-test-components/scb-fact-card/scb-fact-card.d.ts +49 -0
  259. package/scb-test-components/scb-footer/scb-footer-section.d.ts +20 -0
  260. package/scb-test-components/scb-footer/scb-footer.d.ts +31 -0
  261. package/scb-test-components/scb-gallery-grid/scb-gallery-grid.d.ts +20 -0
  262. package/scb-test-components/scb-grid/scb-grid-item.d.ts +32 -0
  263. package/scb-test-components/scb-grid/scb-grid.d.ts +36 -0
  264. package/scb-test-components/scb-grid/scb-stack.d.ts +32 -0
  265. package/scb-test-components/scb-header/scb-header-menu-group.d.ts +12 -0
  266. package/scb-test-components/scb-header/scb-header-menu-item.d.ts +13 -0
  267. package/scb-test-components/scb-header/scb-header-tab.d.ts +13 -0
  268. package/scb-test-components/scb-header/scb-header-utility.d.ts +14 -0
  269. package/scb-test-components/scb-header/scb-header.d.ts +132 -0
  270. package/scb-test-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +47 -0
  271. package/scb-test-components/scb-icon-button/scb-icon-button.d.ts +76 -0
  272. package/scb-test-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +46 -0
  273. package/scb-test-components/scb-link/scb-link.d.ts +25 -0
  274. package/scb-test-components/scb-list/scb-list-item.d.ts +38 -0
  275. package/scb-test-components/scb-list/scb-list.d.ts +26 -0
  276. package/scb-test-components/scb-menu/scb-menu-item.d.ts +52 -0
  277. package/scb-test-components/scb-menu/scb-menu-section.d.ts +11 -0
  278. package/scb-test-components/scb-menu/scb-menu.d.ts +25 -0
  279. package/scb-test-components/scb-menu/scb-sub-menu.d.ts +14 -0
  280. package/scb-test-components/scb-nav/scb-nav-item.d.ts +20 -0
  281. package/scb-test-components/scb-nav/scb-nav.d.ts +50 -0
  282. package/scb-test-components/scb-notification-card/scb-notification-card.d.ts +46 -0
  283. package/scb-test-components/scb-options-menu/scb-options-menu-item.d.ts +29 -0
  284. package/scb-test-components/scb-options-menu/scb-options-menu.d.ts +35 -0
  285. package/scb-test-components/scb-options-menu/scb-options-sub-menu.d.ts +11 -0
  286. package/scb-test-components/scb-overlay/scb-overlay.d.ts +24 -0
  287. package/scb-test-components/scb-pagination/scb-pagination.d.ts +36 -0
  288. package/scb-test-components/scb-progress-indicator/scb-progress-indicator.d.ts +28 -0
  289. package/scb-test-components/scb-progress-stepper/scb-progress-step.d.ts +21 -0
  290. package/scb-test-components/scb-progress-stepper/scb-progress-stepper.d.ts +22 -0
  291. package/scb-test-components/scb-radio-button/scb-radio-button.d.ts +26 -0
  292. package/scb-test-components/scb-radio-button/scb-radio-group.d.ts +49 -0
  293. package/scb-test-components/scb-scrollspy/scb-scrollspy.d.ts +217 -0
  294. package/scb-test-components/scb-search/scb-search.d.ts +96 -0
  295. package/scb-test-components/scb-segmented-button/scb-segmented-button.d.ts +80 -0
  296. package/scb-test-components/scb-segmented-button/scb-segmented-item.d.ts +21 -0
  297. package/scb-test-components/scb-select/scb-select-option.d.ts +16 -0
  298. package/scb-test-components/scb-select/scb-select.d.ts +62 -0
  299. package/scb-test-components/scb-skeleton/scb-skeleton.d.ts +25 -0
  300. package/scb-test-components/scb-slider/scb-slider.d.ts +28 -0
  301. package/scb-test-components/scb-snackbar/scb-snackbar.d.ts +24 -0
  302. package/scb-test-components/scb-status-pill/scb-status-pill.d.ts +22 -0
  303. package/scb-test-components/scb-stepper/scb-step.d.ts +22 -0
  304. package/scb-test-components/scb-stepper/scb-stepper.d.ts +47 -0
  305. package/scb-test-components/scb-switch/scb-switch.d.ts +52 -0
  306. package/scb-test-components/scb-table/scb-table.d.ts +24 -0
  307. package/scb-test-components/scb-table-advanced/scb-table-advanced.d.ts +39 -0
  308. package/scb-test-components/scb-tabs/scb-primary-tab.d.ts +15 -0
  309. package/scb-test-components/scb-tabs/scb-secondary-tab.d.ts +15 -0
  310. package/scb-test-components/scb-tabs/scb-tabs.d.ts +21 -0
  311. package/scb-test-components/scb-textfield/scb-textfield.d.ts +75 -0
  312. package/scb-test-components/scb-toc/scb-toc-item.d.ts +38 -0
  313. package/scb-test-components/scb-toc/scb-toc.d.ts +27 -0
  314. package/scb-test-components/scb-tooltip/scb-tooltip.d.ts +51 -0
  315. package/scb-test-components/scb-vignette/scb-vignette.d.ts +20 -0
  316. package/scb-test-components/scb-viz/scb-viz-actions-runtime.d.ts +26 -0
  317. package/scb-test-components/scb-viz/scb-viz-print-runtime.d.ts +27 -0
  318. package/scb-test-components/scb-viz/scb-viz-series-differentiation-registry.d.ts +21 -0
  319. package/scb-test-components/scb-viz/scb-viz-series-differentiation-runtime.d.ts +42 -0
  320. package/scb-test-components/scb-viz/scb-viz-table-runtime.d.ts +28 -0
  321. package/scb-test-components/scb-viz/scb-viz.d.ts +207 -0
  322. package/scb-textfield/scb-textfield.js +827 -0
  323. package/scb-toc/scb-toc-item.js +477 -0
  324. package/scb-toc/scb-toc.js +101 -0
  325. package/scb-tooltip/scb-tooltip.js +402 -0
  326. package/scb-typography.css +1 -1
  327. package/scb-vignette/scb-vignette.js +88 -0
  328. package/scb-viz/scb-viz-actions-runtime.js +143 -0
  329. package/scb-viz/scb-viz-print-runtime.js +121 -0
  330. package/scb-viz/scb-viz-series-differentiation-registry.js +117 -0
  331. package/scb-viz/scb-viz-series-differentiation-runtime.js +126 -0
  332. package/scb-viz/scb-viz-table-runtime.js +86 -0
  333. package/scb-viz/scb-viz.js +2195 -0
  334. package/scb-wc-selfhost.css +29 -0
  335. package/scb-wc.bundle.js +12893 -1099
  336. package/scb-wc.css +3 -2
  337. package/scb-wc.d.ts +180 -0
  338. package/index.d.ts +0 -0
  339. package/mvc/components/index.js +0 -1
@@ -0,0 +1,104 @@
1
+ import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
2
+ import { LitElement as t, css as n, html as r } from "lit";
3
+ import { customElement as i, property as a } from "lit/decorators.js";
4
+ //#region src/scb-test-components/scb-checkbox/scb-checkbox-group.ts
5
+ var o = class extends t {
6
+ constructor(...e) {
7
+ super(...e), this.orientation = "vertical", this.disabled = !1, this.size = "medium", this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this.#e = () => {
8
+ let e = this.shadowRoot?.querySelector("slot");
9
+ if (!e) return;
10
+ let t = e.assignedElements({ flatten: !0 }).filter((e) => e.tagName.toLowerCase() === "scb-checkbox");
11
+ for (let e of t) {
12
+ this.disabled ? e.setAttribute("disabled", "") : e.removeAttribute("disabled"), this.orientation === "horizontal" ? e.setAttribute("orientation", "horizontal") : e.removeAttribute("orientation");
13
+ let t = e.hasAttribute("data-size-from-group");
14
+ this.size === "medium" ? t && (e.removeAttribute("size"), e.removeAttribute("data-size-from-group")) : (!e.hasAttribute("size") || t) && (e.setAttribute("size", this.size), e.setAttribute("data-size-from-group", ""));
15
+ }
16
+ };
17
+ }
18
+ static {
19
+ this.styles = n`
20
+ :host {
21
+ display: block;
22
+ /* Vertikal standard-spacing mellan items i gruppen */
23
+ --scb-checkbox-gap: var(--spacing-4, 12px);
24
+
25
+ margin-block-start: var(--scb-checkbox-group-spacing-block-start, 0);
26
+ margin-block-end: var(--scb-checkbox-group-spacing-block-end, 0);
27
+ margin-inline-start: var(--scb-checkbox-group-spacing-inline-start, 0);
28
+ margin-inline-end: var(--scb-checkbox-group-spacing-inline-end, 0);
29
+ }
30
+
31
+ /* Horisontell standard-spacing mellan items om spacing för gruppen inte overrideas via CSS-variabel */
32
+ :host([orientation='horizontal']) {
33
+ --scb-checkbox-gap: var(--spacing-8, 32px);
34
+ }
35
+
36
+ .g {
37
+ display: flex;
38
+ flex-direction: var(--_dir, column);
39
+ align-items: flex-start;
40
+ gap: var(--scb-checkbox-gap);
41
+ }
42
+
43
+ /* När checkboxar ligger i en grupp ska spacing ägas av gruppen, inte av enskilda items */
44
+ ::slotted(scb-checkbox) {
45
+ --scb-checkbox-gap: 0;
46
+ }
47
+ `;
48
+ }
49
+ render() {
50
+ let e = this.orientation === "horizontal" ? "row" : "column";
51
+ return r`
52
+ <div class="g" role="group" aria-disabled=${String(this.disabled)} style=${`--_dir:${e}`}>
53
+ <slot @slotchange=${this.#e}></slot>
54
+ </div>
55
+ `;
56
+ }
57
+ firstUpdated() {
58
+ this.#t(), this.#e();
59
+ }
60
+ updated(e) {
61
+ (e.has("spacing") || e.has("spacingTop") || e.has("spacingBottom") || e.has("spacingLeft") || e.has("spacingRight")) && this.#t(), (e.has("disabled") || e.has("orientation") || e.has("size")) && this.#e();
62
+ }
63
+ #e;
64
+ #t() {
65
+ let e = this.#n(this.spacing), t = this.#n(this.spacingTop) ?? e, n = this.#n(this.spacingBottom) ?? e, r = this.#n(this.spacingLeft), i = this.#n(this.spacingRight);
66
+ t ? this.style.setProperty("--scb-checkbox-group-spacing-block-start", t) : this.style.removeProperty("--scb-checkbox-group-spacing-block-start"), n ? this.style.setProperty("--scb-checkbox-group-spacing-block-end", n) : this.style.removeProperty("--scb-checkbox-group-spacing-block-end"), r ? this.style.setProperty("--scb-checkbox-group-spacing-inline-start", r) : this.style.removeProperty("--scb-checkbox-group-spacing-inline-start"), i ? this.style.setProperty("--scb-checkbox-group-spacing-inline-end", i) : this.style.removeProperty("--scb-checkbox-group-spacing-inline-end");
67
+ }
68
+ #n(e) {
69
+ if (!e) return;
70
+ let t = String(e).trim();
71
+ if (t) return /^\d+$/.test(t) ? `var(--spacing-${Math.max(0, Math.min(14, parseInt(t, 10)))})` : t;
72
+ }
73
+ };
74
+ e([a({
75
+ type: String,
76
+ reflect: !0
77
+ })], o.prototype, "orientation", void 0), e([a({
78
+ type: Boolean,
79
+ reflect: !0
80
+ })], o.prototype, "disabled", void 0), e([a({
81
+ type: String,
82
+ reflect: !0
83
+ })], o.prototype, "size", void 0), e([a({
84
+ type: String,
85
+ reflect: !0
86
+ })], o.prototype, "spacing", void 0), e([a({
87
+ type: String,
88
+ attribute: "spacing-top",
89
+ reflect: !0
90
+ })], o.prototype, "spacingTop", void 0), e([a({
91
+ type: String,
92
+ attribute: "spacing-bottom",
93
+ reflect: !0
94
+ })], o.prototype, "spacingBottom", void 0), e([a({
95
+ type: String,
96
+ attribute: "spacing-left",
97
+ reflect: !0
98
+ })], o.prototype, "spacingLeft", void 0), e([a({
99
+ type: String,
100
+ attribute: "spacing-right",
101
+ reflect: !0
102
+ })], o.prototype, "spacingRight", void 0), o = e([i("scb-checkbox-group")], o);
103
+ //#endregion
104
+ export { o as ScbCheckboxGroup };
@@ -0,0 +1,316 @@
1
+ import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
2
+ import "./scb-checkbox-group.js";
3
+ import { LitElement as t, css as n, html as r, nothing as i } from "lit";
4
+ import { customElement as a, property as o } from "lit/decorators.js";
5
+ import "@material/web/focus/md-focus-ring.js";
6
+ import "@material/web/checkbox/checkbox.js";
7
+ //#region src/scb-test-components/scb-checkbox/scb-checkbox.ts
8
+ var s = !1, c = 0, l = (e) => {
9
+ e.metaKey || e.altKey || e.ctrlKey || (s = !0);
10
+ }, u = () => {
11
+ s = !1;
12
+ }, d = () => {
13
+ c === 0 && (window.addEventListener("keydown", l, !0), window.addEventListener("pointerdown", u, !0), window.addEventListener("mousedown", u, !0), window.addEventListener("touchstart", u, !0)), c += 1;
14
+ }, f = () => {
15
+ c = Math.max(0, c - 1), c === 0 && (window.removeEventListener("keydown", l, !0), window.removeEventListener("pointerdown", u, !0), window.removeEventListener("mousedown", u, !0), window.removeEventListener("touchstart", u, !0));
16
+ }, p = class extends t {
17
+ static {
18
+ this.formAssociated = !0;
19
+ }
20
+ constructor() {
21
+ super(), this._internals = null, this.disabled = !1, this.indeterminate = !1, this.checked = !1, this.required = !1, this.size = "medium", this.label = "", this.supportingText = "", this.ariaLabel = "", this.name = "", this.value = "on", this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this._form = null, this._formResetHandler = null, this._initialChecked = !1, this._customValidationMessage = "", this._checkboxId = "", this._showOuterFocusRing = !1, this.#n = () => {
22
+ this.disabled || this.label?.trim() && s && this.#e(!0);
23
+ }, this.#r = () => {
24
+ this.#e(!1);
25
+ }, this.#i = () => {
26
+ this.#e(!1);
27
+ }, "attachInternals" in this && (this._internals = this.attachInternals());
28
+ }
29
+ #e(e) {
30
+ this._showOuterFocusRing !== e && (this._showOuterFocusRing = e, this.requestUpdate());
31
+ }
32
+ #t() {
33
+ let e = !!this.label?.trim();
34
+ this.toggleAttribute("data-has-label", e), e || this.#e(!1);
35
+ }
36
+ #n;
37
+ #r;
38
+ #i;
39
+ connectedCallback() {
40
+ super.connectedCallback(), d(), this._checkboxId = this.id || `scb-checkbox-${Math.random().toString(36).slice(2, 11)}`, this._initialChecked = this.checked, this.#t(), this.addEventListener("focusin", this.#n), this.addEventListener("focusout", this.#r), this.addEventListener("pointerdown", this.#i, !0), this._form = this.closest("form"), this._form && (this._formResetHandler = () => {
41
+ this.checked = this._initialChecked, this.indeterminate = !1, this.__syncFormValue();
42
+ }, this._form.addEventListener("reset", this._formResetHandler, !0)), this.__syncFormValue();
43
+ }
44
+ disconnectedCallback() {
45
+ super.disconnectedCallback(), f(), this.removeEventListener("focusin", this.#n), this.removeEventListener("focusout", this.#r), this.removeEventListener("pointerdown", this.#i, !0), this._form && this._formResetHandler && this._form.removeEventListener("reset", this._formResetHandler, !0);
46
+ }
47
+ firstUpdated() {
48
+ let e = this.shadowRoot?.querySelector("md-checkbox");
49
+ e && e.addEventListener("change", () => {
50
+ let t = e, n = !!t.checked, r = !!t.indeterminate;
51
+ this.checked = n, this.indeterminate = r, this.dispatchEvent(new CustomEvent("change", {
52
+ detail: {
53
+ checked: n,
54
+ indeterminate: r
55
+ },
56
+ bubbles: !0,
57
+ composed: !0
58
+ }));
59
+ }), (this.shadowRoot?.querySelector("label.wrap"))?.addEventListener("click", (e) => {
60
+ if (!this.disabled && !e.composedPath().some((e) => {
61
+ let t = e;
62
+ return t?.tagName?.toLowerCase?.() === "md-checkbox" || t?.classList?.contains("box-wrap");
63
+ })) {
64
+ e.preventDefault();
65
+ let t = this.shadowRoot.querySelector("md-checkbox");
66
+ t && (t.checked = !t.checked, t.dispatchEvent(new Event("change", {
67
+ bubbles: !0,
68
+ composed: !0
69
+ })));
70
+ }
71
+ }), this.__syncInnerAria(), this.__syncValidity(), this.#a();
72
+ }
73
+ updated(e) {
74
+ super.updated(e), e.has("disabled") && (this.toggleAttribute("aria-disabled", this.disabled), this.disabled && this.#e(!1)), (e.has("label") || e.has("supportingText") || e.has("ariaLabel")) && this.__syncInnerAria(), e.has("label") && this.#t(), (e.has("checked") || e.has("disabled") || e.has("value")) && this.__syncFormValue(), (e.has("checked") || e.has("disabled") || e.has("required")) && this.__syncValidity(), (e.has("spacing") || e.has("spacingTop") || e.has("spacingBottom") || e.has("spacingLeft") || e.has("spacingRight")) && this.#a();
75
+ }
76
+ formDisabledCallback(e) {
77
+ this.disabled = e;
78
+ }
79
+ __syncInnerAria() {
80
+ let e = this.shadowRoot?.querySelector("md-checkbox")?.shadowRoot;
81
+ if (!e) return;
82
+ let t = e.querySelector("[role=\"checkbox\"]") || e.querySelector("input[type=\"checkbox\"]");
83
+ if (!t) return;
84
+ let n = !!this.label?.trim(), r = n ? `${this._checkboxId}-label` : "", i = this.supportingText ? `${this._checkboxId}-supporting-text` : "";
85
+ n && r ? (t.setAttribute("aria-labelledby", r), t.removeAttribute("aria-label")) : (t.removeAttribute("aria-labelledby"), this.ariaLabel?.trim() ? t.setAttribute("aria-label", this.ariaLabel.trim()) : t.removeAttribute("aria-label")), i ? t.setAttribute("aria-describedby", i) : t.removeAttribute("aria-describedby");
86
+ }
87
+ __getValidationMessage() {
88
+ return this._customValidationMessage ? this._customValidationMessage : this.required && !this.checked ? "Markera det här fältet." : "";
89
+ }
90
+ __syncValidity() {
91
+ let e = this.shadowRoot?.querySelector("md-checkbox"), t = this.disabled ? "" : this.__getValidationMessage();
92
+ this._internals && (t ? this._internals.setValidity({ valueMissing: !0 }, t, e ?? void 0) : this._internals.setValidity({})), this.toggleAttribute("aria-invalid", !!t);
93
+ }
94
+ checkValidity() {
95
+ return !this.__getValidationMessage();
96
+ }
97
+ reportValidity() {
98
+ return this.__syncValidity(), this._internals ? this._internals.reportValidity() : this.checkValidity();
99
+ }
100
+ setCustomValidity(e) {
101
+ this._customValidationMessage = e, this.__syncValidity();
102
+ }
103
+ get validity() {
104
+ return this._internals?.validity;
105
+ }
106
+ get validationMessage() {
107
+ return this._internals?.validationMessage ?? this.__getValidationMessage();
108
+ }
109
+ get willValidate() {
110
+ return this._internals?.willValidate ?? !0;
111
+ }
112
+ __syncFormValue() {
113
+ if (!this._internals) return;
114
+ let e = this.disabled || !this.checked ? null : this.value;
115
+ this._internals.setFormValue(e);
116
+ }
117
+ #a() {
118
+ let e = this.#o(this.spacing), t = this.#o(this.spacingTop) ?? e, n = this.#o(this.spacingBottom) ?? e, r = this.#o(this.spacingLeft), i = this.#o(this.spacingRight);
119
+ t ? this.style.setProperty("--scb-checkbox-spacing-block-start", t) : this.style.removeProperty("--scb-checkbox-spacing-block-start"), n ? this.style.setProperty("--scb-checkbox-spacing-block-end", n) : this.style.removeProperty("--scb-checkbox-spacing-block-end"), r ? this.style.setProperty("--scb-checkbox-spacing-inline-start", r) : this.style.removeProperty("--scb-checkbox-spacing-inline-start"), i ? this.style.setProperty("--scb-checkbox-spacing-inline-end", i) : this.style.removeProperty("--scb-checkbox-spacing-inline-end");
120
+ }
121
+ #o(e) {
122
+ if (!e) return;
123
+ let t = String(e).trim();
124
+ if (t) return /^\d+$/.test(t) ? `var(--spacing-${Math.max(0, Math.min(14, parseInt(t, 10)))})` : t;
125
+ }
126
+ static {
127
+ this.styles = n`
128
+ :host {
129
+ display: inline-grid;
130
+ grid-template-columns: auto;
131
+ grid-template-rows: auto auto;
132
+ row-gap: 0;
133
+ font-family: var(--brand-font, 'Inter', sans-serif);
134
+
135
+ --scb-checkbox-text-font: var(--md-sys-typescale-body-medium-font);
136
+ --scb-checkbox-text-size: var(--md-sys-typescale-body-medium-size);
137
+ --scb-checkbox-text-line-height: var(--md-sys-typescale-body-medium-line-height);
138
+ --scb-checkbox-text-tracking: var(--md-sys-typescale-body-medium-tracking);
139
+ --scb-checkbox-text-weight: var(--md-sys-typescale-body-medium-weight, var(--weight-regular, 400));
140
+
141
+ margin-block-start: var(--scb-checkbox-spacing-block-start, 0);
142
+ margin-block-end: var(--scb-checkbox-spacing-block-end, 0);
143
+ margin-inline-start: var(--scb-checkbox-spacing-inline-start, 0);
144
+ margin-inline-end: var(--scb-checkbox-spacing-inline-end, 0);
145
+ }
146
+
147
+ :host([size='small']) {
148
+ --scb-checkbox-text-font: var(--md-sys-typescale-body-small-font);
149
+ --scb-checkbox-text-size: var(--md-sys-typescale-body-small-size);
150
+ --scb-checkbox-text-line-height: var(--md-sys-typescale-body-small-line-height);
151
+ --scb-checkbox-text-tracking: var(--md-sys-typescale-body-small-tracking);
152
+ --scb-checkbox-text-weight: var(--md-sys-typescale-body-small-weight, var(--weight-regular, 400));
153
+ }
154
+
155
+ :host([size='large']) {
156
+ --scb-checkbox-text-font: var(--md-sys-typescale-body-large-font);
157
+ --scb-checkbox-text-size: var(--md-sys-typescale-body-large-size);
158
+ --scb-checkbox-text-line-height: var(--md-sys-typescale-body-large-line-height);
159
+ --scb-checkbox-text-tracking: var(--md-sys-typescale-body-large-tracking);
160
+ --scb-checkbox-text-weight: var(--md-sys-typescale-body-large-weight, var(--weight-regular, 400));
161
+ }
162
+
163
+ :host([orientation='horizontal']) {
164
+ margin-inline-end: var(--scb-checkbox-spacing-inline-end, var(--scb-checkbox-gap, var(--spacing-7, 24px)));
165
+ }
166
+
167
+ .wrap {
168
+ display: inline-flex;
169
+ align-items: center;
170
+ gap: var(--spacing-5, 16px);
171
+ cursor: pointer;
172
+ position: relative;
173
+ overflow: visible;
174
+ }
175
+
176
+ .outer-focus-ring {
177
+ position: absolute;
178
+ inset:
179
+ calc(var(--spacing-2, 4px) * -1) /* topp */
180
+ calc(var(--spacing-4, 12px) * -1) /* höger */
181
+ calc(var(--spacing-2, 4px) * -1) /* botten */
182
+ calc(var(--spacing-4, 12px) * -1); /* vänster */
183
+ pointer-events: none;
184
+ --md-focus-ring-shape-start-start: var(--radius-s, 8px);
185
+ --md-focus-ring-shape-start-end: var(--radius-s, 8px);
186
+ --md-focus-ring-shape-end-start: var(--radius-s, 8px);
187
+ --md-focus-ring-shape-end-end: var(--radius-s, px);
188
+ }
189
+
190
+ :host([data-has-label]) md-checkbox::part(focus-ring) {
191
+ display: none;
192
+ }
193
+
194
+ :host([disabled]) .wrap {
195
+ cursor: default;
196
+ }
197
+
198
+ .box-wrap {
199
+ height: var(--scb-checkbox-target, 40px);
200
+ display: flex;
201
+ align-items: center;
202
+ justify-content: center;
203
+ overflow: visible;
204
+ }
205
+
206
+ md-checkbox {
207
+ margin: 0;
208
+ }
209
+
210
+ .lbl {
211
+ color: var(--md-sys-color-on-surface);
212
+ font-family: var(--scb-checkbox-text-font, var(--brand-font));
213
+ font-size: var(--scb-checkbox-text-size);
214
+ line-height: var(--scb-checkbox-text-line-height);
215
+ font-weight: var(--scb-checkbox-text-weight);
216
+ letter-spacing: var(--scb-checkbox-text-tracking);
217
+ }
218
+
219
+ :host([disabled]) .lbl {
220
+ color: var(--n-60);
221
+ }
222
+
223
+ .supporting-text {
224
+ color: var(--md-sys-color-on-surface-variant);
225
+ font-family: var(--scb-checkbox-text-font, var(--brand-font));
226
+ font-size: var(--scb-checkbox-text-size);
227
+ line-height: var(--scb-checkbox-text-line-height, 20px);
228
+ font-weight: var(--scb-checkbox-text-weight);
229
+ letter-spacing: var(--scb-checkbox-text-tracking);
230
+ margin-left: calc(var(--spacing-3, 6px) + var(--scb-checkbox-target, 40px));
231
+ margin-bottom: var(--spacing-4, 8px);
232
+ }
233
+
234
+ :host([disabled]) .supporting-text {
235
+ color: var(--n-60);
236
+ }
237
+
238
+ @media (prefers-color-scheme: dark) {
239
+ .lbl {
240
+ color: var(--md-sys-color-on-surface);
241
+ }
242
+ .supporting-text {
243
+ color: var(--md-sys-color-on-surface-variant);
244
+ }
245
+ }
246
+ `;
247
+ }
248
+ render() {
249
+ let e = this.supportingText ? `${this._checkboxId}-supporting-text` : void 0, t = !!this.label?.trim(), n = t ? i : this.ariaLabel || i;
250
+ return r`
251
+ <label class="wrap">
252
+ ${t ? r`<md-focus-ring class="outer-focus-ring" ?visible=${this._showOuterFocusRing}></md-focus-ring>` : i}
253
+ <div class="box-wrap">
254
+ <md-checkbox
255
+ id="${this._checkboxId}"
256
+ ?disabled=${this.disabled}
257
+ ?indeterminate=${this.indeterminate}
258
+ ?checked=${this.checked}
259
+ ?required=${this.required}
260
+ aria-label=${n}
261
+ ></md-checkbox>
262
+ </div>
263
+ ${t ? r`<span class="lbl" id="${this._checkboxId}-label">${this.label}</span>` : i}
264
+ </label>
265
+
266
+ ${this.supportingText ? r`<div id="${e}" class="supporting-text">
267
+ ${this.supportingText}
268
+ </div>` : i}
269
+ <slot></slot>
270
+ `;
271
+ }
272
+ };
273
+ e([o({
274
+ type: Boolean,
275
+ reflect: !0
276
+ })], p.prototype, "disabled", void 0), e([o({
277
+ type: Boolean,
278
+ reflect: !0
279
+ })], p.prototype, "indeterminate", void 0), e([o({
280
+ type: Boolean,
281
+ reflect: !0
282
+ })], p.prototype, "checked", void 0), e([o({
283
+ type: Boolean,
284
+ reflect: !0
285
+ })], p.prototype, "required", void 0), e([o({
286
+ type: String,
287
+ reflect: !0
288
+ })], p.prototype, "size", void 0), e([o({ type: String })], p.prototype, "label", void 0), e([o({
289
+ type: String,
290
+ attribute: "supporting-text"
291
+ })], p.prototype, "supportingText", void 0), e([o({
292
+ type: String,
293
+ reflect: !0,
294
+ attribute: "aria-label"
295
+ })], p.prototype, "ariaLabel", void 0), e([o({ type: String })], p.prototype, "name", void 0), e([o({ type: String })], p.prototype, "value", void 0), e([o({
296
+ type: String,
297
+ reflect: !0
298
+ })], p.prototype, "spacing", void 0), e([o({
299
+ type: String,
300
+ attribute: "spacing-top",
301
+ reflect: !0
302
+ })], p.prototype, "spacingTop", void 0), e([o({
303
+ type: String,
304
+ attribute: "spacing-bottom",
305
+ reflect: !0
306
+ })], p.prototype, "spacingBottom", void 0), e([o({
307
+ type: String,
308
+ attribute: "spacing-left",
309
+ reflect: !0
310
+ })], p.prototype, "spacingLeft", void 0), e([o({
311
+ type: String,
312
+ attribute: "spacing-right",
313
+ reflect: !0
314
+ })], p.prototype, "spacingRight", void 0), p = e([a("scb-checkbox")], p);
315
+ //#endregion
316
+ export { p as ScbCheckbox };
@@ -0,0 +1,144 @@
1
+ import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
2
+ import { LitElement as t, css as n, html as r } from "lit";
3
+ import { customElement as i, property as a, state as o } from "lit/decorators.js";
4
+ //#region src/scb-test-components/scb-chevron/scb-chevron.ts
5
+ var s = class extends t {
6
+ constructor(...e) {
7
+ super(...e), this.open = !1, this.animationPhase = "idle";
8
+ }
9
+ static {
10
+ this.styles = n`
11
+ :host {
12
+ display: block;
13
+ width: var(--scb-chevron-size, 24px);
14
+ height: var(--scb-chevron-size, 24px);
15
+ color: inherit;
16
+ --chevron-offset-down: 2.3px;
17
+ --chevron-offset-up: -2.3px;
18
+ }
19
+
20
+ .chevron-icon {
21
+ display: block;
22
+ width: var(--scb-chevron-size, 24px);
23
+ height: var(--scb-chevron-size, 24px);
24
+ overflow: visible;
25
+ }
26
+
27
+ .chevron-icon .bar {
28
+ fill: none;
29
+ stroke: currentColor;
30
+ stroke-width: 1.5;
31
+ stroke-linecap: square;
32
+ stroke-linejoin: miter;
33
+ stroke-miterlimit: 2;
34
+ shape-rendering: geometricPrecision;
35
+ vector-effect: non-scaling-stroke;
36
+ transform-box: view-box;
37
+ transform-origin: 12px 12px;
38
+ will-change: transform;
39
+ }
40
+
41
+ .chevron-icon .bar--left {
42
+ transform: translateY(var(--chevron-offset-down)) rotate(45deg);
43
+ }
44
+
45
+ .chevron-icon .bar--right {
46
+ transform: translateY(var(--chevron-offset-down)) rotate(-45deg);
47
+ }
48
+
49
+ :host([open]) .chevron-icon .bar--left {
50
+ transform: translateY(var(--chevron-offset-up)) rotate(-45deg);
51
+ }
52
+
53
+ :host([open]) .chevron-icon .bar--right {
54
+ transform: translateY(var(--chevron-offset-up)) rotate(45deg);
55
+ }
56
+
57
+ .chevron-icon.chevron--opening .bar--left {
58
+ animation: chevron-left-open 100ms linear;
59
+ }
60
+
61
+ .chevron-icon.chevron--opening .bar--right {
62
+ animation: chevron-right-open 100ms linear;
63
+ }
64
+
65
+ .chevron-icon.chevron--closing .bar--left {
66
+ animation: chevron-left-close 100ms linear;
67
+ }
68
+
69
+ .chevron-icon.chevron--closing .bar--right {
70
+ animation: chevron-right-close 100ms linear;
71
+ }
72
+
73
+ @keyframes chevron-left-open {
74
+ 0% {
75
+ transform: translateY(var(--chevron-offset-down)) rotate(45deg);
76
+ }
77
+ 50% {
78
+ transform: translateY(0px) rotate(0deg);
79
+ }
80
+ 100% {
81
+ transform: translateY(var(--chevron-offset-up)) rotate(-45deg);
82
+ }
83
+ }
84
+
85
+ @keyframes chevron-right-open {
86
+ 0% {
87
+ transform: translateY(var(--chevron-offset-down)) rotate(-45deg);
88
+ }
89
+ 50% {
90
+ transform: translateY(0px) rotate(0deg);
91
+ }
92
+ 100% {
93
+ transform: translateY(var(--chevron-offset-up)) rotate(45deg);
94
+ }
95
+ }
96
+
97
+ @keyframes chevron-left-close {
98
+ 0% {
99
+ transform: translateY(var(--chevron-offset-up)) rotate(-45deg);
100
+ }
101
+ 50% {
102
+ transform: translateY(0px) rotate(0deg);
103
+ }
104
+ 100% {
105
+ transform: translateY(var(--chevron-offset-down)) rotate(45deg);
106
+ }
107
+ }
108
+
109
+ @keyframes chevron-right-close {
110
+ 0% {
111
+ transform: translateY(var(--chevron-offset-up)) rotate(45deg);
112
+ }
113
+ 50% {
114
+ transform: translateY(0px) rotate(0deg);
115
+ }
116
+ 100% {
117
+ transform: translateY(var(--chevron-offset-down)) rotate(-45deg);
118
+ }
119
+ }
120
+ `;
121
+ }
122
+ willUpdate(e) {
123
+ e.has("open") && (e.get("open") ?? !this.open) !== this.open && (this.animationPhase = this.open ? "opening" : "closing");
124
+ }
125
+ render() {
126
+ return r`
127
+ <svg
128
+ class="chevron-icon ${this.animationPhase === "idle" ? "" : `chevron--${this.animationPhase}`}"
129
+ viewBox="0 0 24 24"
130
+ aria-hidden="true"
131
+ focusable="false"
132
+ >
133
+ <line class="bar bar--left" x1="5" y1="12" x2="12" y2="12"></line>
134
+ <line class="bar bar--right" x1="12" y1="12" x2="19" y2="12"></line>
135
+ </svg>
136
+ `;
137
+ }
138
+ };
139
+ e([a({
140
+ type: Boolean,
141
+ reflect: !0
142
+ })], s.prototype, "open", void 0), e([o()], s.prototype, "animationPhase", void 0), s = e([i("scb-chevron")], s);
143
+ //#endregion
144
+ export { s as ScbChevron };