@omicronenergy/oscd-ui 0.0.4 → 0.0.6

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 (233) hide show
  1. package/README.md +100 -0
  2. package/app-bar/OscdAppBar.d.ts +13 -11
  3. package/app-bar/OscdAppBar.js +16 -8
  4. package/app-bar/OscdAppBar.js.map +1 -1
  5. package/app-bar/oscd-app-bar.d.ts +6 -6
  6. package/app-bar/oscd-app-bar.js +2 -7
  7. package/app-bar/oscd-app-bar.js.map +1 -1
  8. package/button/OscdFilledButton.d.ts +6 -8
  9. package/button/OscdFilledButton.js +8 -5
  10. package/button/OscdFilledButton.js.map +1 -1
  11. package/button/OscdFilledButton.spec.js +22 -18
  12. package/button/OscdFilledButton.spec.js.map +1 -1
  13. package/button/OscdOutlinedButton.d.ts +4 -6
  14. package/button/OscdOutlinedButton.js +4 -1
  15. package/button/OscdOutlinedButton.js.map +1 -1
  16. package/button/OscdTextButton.d.ts +6 -8
  17. package/button/OscdTextButton.js +7 -4
  18. package/button/OscdTextButton.js.map +1 -1
  19. package/button/oscd-filled-button.d.ts +6 -1
  20. package/button/oscd-filled-button.js +2 -2
  21. package/button/oscd-filled-button.js.map +1 -1
  22. package/button/oscd-outlined-button.d.ts +6 -1
  23. package/button/oscd-outlined-button.js +2 -2
  24. package/button/oscd-outlined-button.js.map +1 -1
  25. package/button/oscd-text-button.d.ts +6 -1
  26. package/button/oscd-text-button.js +2 -2
  27. package/button/oscd-text-button.js.map +1 -1
  28. package/dialog/OscdDialog.d.ts +3 -8
  29. package/dialog/OscdDialog.js +4 -4
  30. package/dialog/OscdDialog.js.map +1 -1
  31. package/dialog/oscd-dialog.d.ts +6 -1
  32. package/dialog/oscd-dialog.js +2 -2
  33. package/dialog/oscd-dialog.js.map +1 -1
  34. package/divider/OscdDivider.d.ts +4 -8
  35. package/divider/OscdDivider.js +4 -3
  36. package/divider/OscdDivider.js.map +1 -1
  37. package/divider/oscd-divider.d.ts +6 -1
  38. package/divider/oscd-divider.js +2 -2
  39. package/divider/oscd-divider.js.map +1 -1
  40. package/elevation/OscdElevation.d.ts +2 -6
  41. package/elevation/OscdElevation.js +2 -1
  42. package/elevation/OscdElevation.js.map +1 -1
  43. package/elevation/oscd-elevation.d.ts +6 -1
  44. package/elevation/oscd-elevation.js +2 -2
  45. package/elevation/oscd-elevation.js.map +1 -1
  46. package/field/OscdFilledField.d.ts +4 -7
  47. package/field/OscdFilledField.js +5 -3
  48. package/field/OscdFilledField.js.map +1 -1
  49. package/field/OscdOutlinedField.d.ts +6 -7
  50. package/field/OscdOutlinedField.js +7 -3
  51. package/field/OscdOutlinedField.js.map +1 -1
  52. package/field/oscd-filled-field.d.ts +6 -1
  53. package/field/oscd-filled-field.js +2 -2
  54. package/field/oscd-filled-field.js.map +1 -1
  55. package/field/oscd-outlined-field.d.ts +6 -1
  56. package/field/oscd-outlined-field.js +2 -2
  57. package/field/oscd-outlined-field.js.map +1 -1
  58. package/icon/OscdIcon.d.ts +6 -7
  59. package/icon/OscdIcon.js +6 -2
  60. package/icon/OscdIcon.js.map +1 -1
  61. package/icon/oscd-icon.d.ts +6 -1
  62. package/icon/oscd-icon.js +2 -2
  63. package/icon/oscd-icon.js.map +1 -1
  64. package/iconbutton/OscdFilledIconButton.d.ts +4 -9
  65. package/iconbutton/OscdFilledIconButton.js +5 -5
  66. package/iconbutton/OscdFilledIconButton.js.map +1 -1
  67. package/iconbutton/OscdFilledTonalIconButton.d.ts +5 -10
  68. package/iconbutton/OscdFilledTonalIconButton.js +6 -6
  69. package/iconbutton/OscdFilledTonalIconButton.js.map +1 -1
  70. package/iconbutton/OscdIconButton.d.ts +3 -8
  71. package/iconbutton/OscdIconButton.js +4 -4
  72. package/iconbutton/OscdIconButton.js.map +1 -1
  73. package/iconbutton/{OutlinedIconButton.d.ts → OscdOutlinedIconButton.d.ts} +3 -8
  74. package/iconbutton/{OutlinedIconButton.js → OscdOutlinedIconButton.js} +5 -5
  75. package/iconbutton/OscdOutlinedIconButton.js.map +1 -0
  76. package/iconbutton/oscd-filled-icon-button.d.ts +6 -1
  77. package/iconbutton/oscd-filled-icon-button.js +2 -2
  78. package/iconbutton/oscd-filled-icon-button.js.map +1 -1
  79. package/iconbutton/oscd-filled-tonal-icon-button.d.ts +6 -1
  80. package/iconbutton/oscd-filled-tonal-icon-button.js +2 -2
  81. package/iconbutton/oscd-filled-tonal-icon-button.js.map +1 -1
  82. package/iconbutton/oscd-icon-button.d.ts +6 -1
  83. package/iconbutton/oscd-icon-button.js +2 -2
  84. package/iconbutton/oscd-icon-button.js.map +1 -1
  85. package/iconbutton/oscd-outlined-icon-button.d.ts +6 -1
  86. package/iconbutton/oscd-outlined-icon-button.js +2 -2
  87. package/iconbutton/oscd-outlined-icon-button.js.map +1 -1
  88. package/list/OscdList.d.ts +3 -8
  89. package/list/OscdList.js +4 -4
  90. package/list/OscdList.js.map +1 -1
  91. package/list/OscdListItem.d.ts +4 -11
  92. package/list/OscdListItem.js +6 -8
  93. package/list/OscdListItem.js.map +1 -1
  94. package/list/oscd-list-item.d.ts +6 -1
  95. package/list/oscd-list-item.js +2 -2
  96. package/list/oscd-list-item.js.map +1 -1
  97. package/list/oscd-list.d.ts +6 -1
  98. package/list/oscd-list.js +2 -2
  99. package/list/oscd-list.js.map +1 -1
  100. package/menu/OscdMenu.d.ts +7 -12
  101. package/menu/OscdMenu.js +5 -5
  102. package/menu/OscdMenu.js.map +1 -1
  103. package/menu/OscdMenuItem.d.ts +5 -10
  104. package/menu/OscdMenuItem.js +3 -3
  105. package/menu/OscdMenuItem.js.map +1 -1
  106. package/menu/oscd-menu-item.d.ts +6 -1
  107. package/menu/oscd-menu-item.js +2 -2
  108. package/menu/oscd-menu-item.js.map +1 -1
  109. package/menu/oscd-menu.d.ts +7 -1
  110. package/menu/oscd-menu.js +3 -3
  111. package/menu/oscd-menu.js.map +1 -1
  112. package/navigation-drawer/OscdNavigationDrawer.d.ts +8 -2
  113. package/navigation-drawer/OscdNavigationDrawer.js +10 -4
  114. package/navigation-drawer/OscdNavigationDrawer.js.map +1 -1
  115. package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +7 -7
  116. package/navigation-drawer/OscdNavigationDrawerHeader.js +8 -3
  117. package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -1
  118. package/navigation-drawer/oscd-navigation-drawer-header.d.ts +6 -1
  119. package/navigation-drawer/oscd-navigation-drawer-header.js +2 -2
  120. package/navigation-drawer/oscd-navigation-drawer-header.js.map +1 -1
  121. package/navigation-drawer/oscd-navigation-drawer.d.ts +2 -2
  122. package/navigation-drawer/oscd-navigation-drawer.js +2 -2
  123. package/navigation-drawer/oscd-navigation-drawer.js.map +1 -1
  124. package/package.json +169 -15
  125. package/select/OscdFilledSelect.d.ts +3 -8
  126. package/select/OscdFilledSelect.js +4 -4
  127. package/select/OscdFilledSelect.js.map +1 -1
  128. package/select/OscdOutlinedSelect.d.ts +3 -8
  129. package/select/OscdOutlinedSelect.js +4 -4
  130. package/select/OscdOutlinedSelect.js.map +1 -1
  131. package/select/OscdSelectOption.d.ts +4 -9
  132. package/select/OscdSelectOption.js +3 -3
  133. package/select/OscdSelectOption.js.map +1 -1
  134. package/select/oscd-filled-select.d.ts +6 -1
  135. package/select/oscd-filled-select.js +2 -2
  136. package/select/oscd-filled-select.js.map +1 -1
  137. package/select/oscd-outlined-select.d.ts +6 -1
  138. package/select/oscd-outlined-select.js +2 -2
  139. package/select/oscd-outlined-select.js.map +1 -1
  140. package/select/oscd-select-option.d.ts +6 -1
  141. package/select/oscd-select-option.js +2 -2
  142. package/select/oscd-select-option.js.map +1 -1
  143. package/tabs/OscdPrimaryTab.d.ts +3 -7
  144. package/tabs/OscdPrimaryTab.js +4 -3
  145. package/tabs/OscdPrimaryTab.js.map +1 -1
  146. package/tabs/OscdSecondaryTab.d.ts +3 -7
  147. package/tabs/OscdSecondaryTab.js +4 -3
  148. package/tabs/OscdSecondaryTab.js.map +1 -1
  149. package/tabs/OscdTabs.d.ts +3 -7
  150. package/tabs/OscdTabs.js +3 -2
  151. package/tabs/OscdTabs.js.map +1 -1
  152. package/tabs/oscd-primary-tab.d.ts +6 -1
  153. package/tabs/oscd-primary-tab.js +2 -2
  154. package/tabs/oscd-primary-tab.js.map +1 -1
  155. package/tabs/oscd-secondary-tab.d.ts +6 -1
  156. package/tabs/oscd-secondary-tab.js +2 -2
  157. package/tabs/oscd-secondary-tab.js.map +1 -1
  158. package/tabs/oscd-tabs.d.ts +6 -1
  159. package/tabs/oscd-tabs.js +2 -2
  160. package/tabs/oscd-tabs.js.map +1 -1
  161. package/textfield/OscdFilledTextField.d.ts +10 -11
  162. package/textfield/OscdFilledTextField.js +12 -12
  163. package/textfield/OscdFilledTextField.js.map +1 -1
  164. package/textfield/OscdOutlinedTextField.d.ts +11 -10
  165. package/textfield/OscdOutlinedTextField.js +15 -11
  166. package/textfield/OscdOutlinedTextField.js.map +1 -1
  167. package/textfield/oscd-filled-text-field.d.ts +6 -1
  168. package/textfield/oscd-filled-text-field.js +2 -2
  169. package/textfield/oscd-filled-text-field.js.map +1 -1
  170. package/textfield/oscd-outlined-text-field.d.ts +6 -1
  171. package/textfield/oscd-outlined-text-field.js +2 -2
  172. package/textfield/oscd-outlined-text-field.js.map +1 -1
  173. package/utils/storybook/getStorybookHelpers.d.ts +2 -2
  174. package/utils/storybook/getStorybookHelpers.js +9 -9
  175. package/utils/storybook/getStorybookHelpers.js.map +1 -1
  176. package/utils/storybook/scopedWcDecorator.d.ts +1 -1
  177. package/utils/storybook/scopedWcDecorator.js +17 -7
  178. package/utils/storybook/scopedWcDecorator.js.map +1 -1
  179. package/utils/storybook/themingDecorator.d.ts +4 -15
  180. package/utils/storybook/themingDecorator.js +62 -62
  181. package/utils/storybook/themingDecorator.js.map +1 -1
  182. package/app-bar/OscdAppBar.stories.d.ts +0 -10
  183. package/app-bar/OscdAppBar.stories.js +0 -85
  184. package/app-bar/OscdAppBar.stories.js.map +0 -1
  185. package/button/OscdButton.stories.d.ts +0 -7
  186. package/button/OscdButton.stories.js +0 -60
  187. package/button/OscdButton.stories.js.map +0 -1
  188. package/dialog/OscdDialog.stories.d.ts +0 -5
  189. package/dialog/OscdDialog.stories.js +0 -50
  190. package/dialog/OscdDialog.stories.js.map +0 -1
  191. package/divider/OscdDivider.stories.d.ts +0 -5
  192. package/divider/OscdDivider.stories.js +0 -28
  193. package/divider/OscdDivider.stories.js.map +0 -1
  194. package/icon/OscdIcon.stories.d.ts +0 -5
  195. package/icon/OscdIcon.stories.js +0 -54
  196. package/icon/OscdIcon.stories.js.map +0 -1
  197. package/iconbutton/OscdIconButton.stories.d.ts +0 -7
  198. package/iconbutton/OscdIconButton.stories.js +0 -101
  199. package/iconbutton/OscdIconButton.stories.js.map +0 -1
  200. package/iconbutton/OutlinedIconButton.js.map +0 -1
  201. package/list/OscdList.stories.d.ts +0 -5
  202. package/list/OscdList.stories.js +0 -30
  203. package/list/OscdList.stories.js.map +0 -1
  204. package/menu/OscdMenu.stories.d.ts +0 -6
  205. package/menu/OscdMenu.stories.js +0 -55
  206. package/menu/OscdMenu.stories.js.map +0 -1
  207. package/menu/OscdMenuItem.stories.d.ts +0 -5
  208. package/menu/OscdMenuItem.stories.js +0 -37
  209. package/menu/OscdMenuItem.stories.js.map +0 -1
  210. package/navigation-drawer/OscdNavigationDrawer.stories.d.ts +0 -5
  211. package/navigation-drawer/OscdNavigationDrawer.stories.js +0 -97
  212. package/navigation-drawer/OscdNavigationDrawer.stories.js.map +0 -1
  213. package/navigation-drawer/OscdNavigationDrawerHeader.stories.d.ts +0 -5
  214. package/navigation-drawer/OscdNavigationDrawerHeader.stories.js +0 -35
  215. package/navigation-drawer/OscdNavigationDrawerHeader.stories.js.map +0 -1
  216. package/select/OscdFilledSelect.stories.d.ts +0 -5
  217. package/select/OscdFilledSelect.stories.js +0 -29
  218. package/select/OscdFilledSelect.stories.js.map +0 -1
  219. package/select/OscdOutlinedSelect.stories.d.ts +0 -5
  220. package/select/OscdOutlinedSelect.stories.js +0 -29
  221. package/select/OscdOutlinedSelect.stories.js.map +0 -1
  222. package/tabs/OscdPrimaryTab.stories.d.ts +0 -5
  223. package/tabs/OscdPrimaryTab.stories.js +0 -33
  224. package/tabs/OscdPrimaryTab.stories.js.map +0 -1
  225. package/tabs/OscdSecondaryTab.stories.d.ts +0 -5
  226. package/tabs/OscdSecondaryTab.stories.js +0 -33
  227. package/tabs/OscdSecondaryTab.stories.js.map +0 -1
  228. package/tabs/OscdTabs.stories.d.ts +0 -5
  229. package/tabs/OscdTabs.stories.js +0 -29
  230. package/tabs/OscdTabs.stories.js.map +0 -1
  231. package/theming/AllComponents.stories.d.ts +0 -5
  232. package/theming/AllComponents.stories.js +0 -309
  233. package/theming/AllComponents.stories.js.map +0 -1
@@ -3,12 +3,12 @@
3
3
  * Copyright 2022 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { MenuItemEl } from "@material/web/menu/internal/menuitem/menu-item.js";
7
- import { styles } from "@material/web/menu/internal/menuitem/menu-item-styles.js";
6
+ import { MenuItemEl } from '@material/web/menu/internal/menuitem/menu-item.js';
7
+ import { styles } from '@material/web/menu/internal/menuitem/menu-item-styles.js';
8
8
  /**
9
+ * @tag oscd-menu-item
9
10
  * @summary Menus display a list of choices on a temporary surface.
10
11
  *
11
- * @description
12
12
  * Menu items are the selectable choices within the menu. Menu items must
13
13
  * implement the `MenuItem` interface and also have the `Oscdmenu-item`
14
14
  * attribute. Additionally menu items are list items so they must also have the
@@ -1 +1 @@
1
- {"version":3,"file":"OscdMenuItem.js","sourceRoot":"","sources":["OscdMenuItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAWlF;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from \"lit\";\nimport { MenuItemEl } from \"@material/web/menu/internal/menuitem/menu-item.js\";\nimport { styles } from \"@material/web/menu/internal/menuitem/menu-item-styles.js\";\n\nexport { type MenuItem } from \"@material/web/menu/internal/controllers/menuItemController.js\";\nexport { type CloseMenuEvent } from \"@material/web/menu/internal/controllers/shared.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-menu-item\": OscdMenuItem;\n }\n}\n\n/**\n * @summary Menus display a list of choices on a temporary surface.\n *\n * @description\n * Menu items are the selectable choices within the menu. Menu items must\n * implement the `MenuItem` interface and also have the `Oscdmenu-item`\n * attribute. Additionally menu items are list items so they must also have the\n * `oscd-list-item` attribute.\n *\n * Menu items can control a menu by selectively firing the `close-menu` and\n * `deselect-items` events.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdMenuItem extends MenuItemEl {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
1
+ {"version":3,"file":"OscdMenuItem.js","sourceRoot":"","sources":["OscdMenuItem.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAC/E,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAKlF;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAU,MAAM,GAAwB,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2022 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\nimport { MenuItemEl } from '@material/web/menu/internal/menuitem/menu-item.js';\nimport { styles } from '@material/web/menu/internal/menuitem/menu-item-styles.js';\n\nexport { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';\nexport { type CloseMenuEvent } from '@material/web/menu/internal/controllers/shared.js';\n\n/**\n * @tag oscd-menu-item\n * @summary Menus display a list of choices on a temporary surface.\n *\n * Menu items are the selectable choices within the menu. Menu items must\n * implement the `MenuItem` interface and also have the `Oscdmenu-item`\n * attribute. Additionally menu items are list items so they must also have the\n * `oscd-list-item` attribute.\n *\n * Menu items can control a menu by selectively firing the `close-menu` and\n * `deselect-items` events.\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdMenuItem extends MenuItemEl {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
@@ -1,2 +1,7 @@
1
- import { OscdMenuItem } from "./OscdMenuItem";
1
+ import { OscdMenuItem } from './OscdMenuItem.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-menu-item': OscdMenuItem;
5
+ }
6
+ }
2
7
  export { OscdMenuItem };
@@ -1,4 +1,4 @@
1
- import { OscdMenuItem } from "./OscdMenuItem";
2
- customElements.define("oscd-menu-item", OscdMenuItem);
1
+ import { OscdMenuItem } from './OscdMenuItem.js';
2
+ customElements.define('oscd-menu-item', OscdMenuItem);
3
3
  export { OscdMenuItem };
4
4
  //# sourceMappingURL=oscd-menu-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oscd-menu-item.js","sourceRoot":"","sources":["oscd-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { OscdMenuItem } from \"./OscdMenuItem\";\n\ncustomElements.define(\"oscd-menu-item\", OscdMenuItem);\nexport { OscdMenuItem };\n"]}
1
+ {"version":3,"file":"oscd-menu-item.js","sourceRoot":"","sources":["oscd-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAQjD,cAAc,CAAC,MAAM,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,CAAC","sourcesContent":["import { OscdMenuItem } from './OscdMenuItem.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-menu-item': OscdMenuItem;\n }\n}\n\ncustomElements.define('oscd-menu-item', OscdMenuItem);\nexport { OscdMenuItem };\n"]}
@@ -1 +1,7 @@
1
- export * from "./OscdMenu";
1
+ import { OscdMenu } from './OscdMenu.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-menu': OscdMenu;
5
+ }
6
+ }
7
+ export { OscdMenu };
package/menu/oscd-menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { OscdMenu } from "./OscdMenu";
2
- customElements.define("oscd-menu", OscdMenu);
3
- export * from "./OscdMenu";
1
+ import { OscdMenu } from './OscdMenu.js';
2
+ customElements.define('oscd-menu', OscdMenu);
3
+ export { OscdMenu };
4
4
  //# sourceMappingURL=oscd-menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oscd-menu.js","sourceRoot":"","sources":["oscd-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC7C,cAAc,YAAY,CAAC","sourcesContent":["import { OscdMenu } from \"./OscdMenu\";\n\ncustomElements.define(\"oscd-menu\", OscdMenu);\nexport * from \"./OscdMenu\";\n"]}
1
+ {"version":3,"file":"oscd-menu.js","sourceRoot":"","sources":["oscd-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAQzC,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,CAAC","sourcesContent":["import { OscdMenu } from './OscdMenu.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-menu': OscdMenu;\n }\n}\n\ncustomElements.define('oscd-menu', OscdMenu);\nexport { OscdMenu };\n"]}
@@ -8,8 +8,14 @@
8
8
  * Copyright 2025 OMICRON Electronics GmbH
9
9
  * SPDX-License-Identifier: Apache-2.0
10
10
  */
11
- import { CSSResultOrNative } from "lit";
12
- import { NavigationDrawerModal } from "@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js";
11
+ import { CSSResultOrNative } from 'lit';
12
+ import { NavigationDrawerModal } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js';
13
+ /**
14
+ * @tag oscd-navigation-drawer
15
+ * @summary Navigation drawers are temporary surfaces that display a list of
16
+ * choices.
17
+ *
18
+ */
13
19
  export declare class OscdNavigationDrawer extends NavigationDrawerModal {
14
20
  static readonly styles: CSSResultOrNative[];
15
21
  }
@@ -8,10 +8,10 @@
8
8
  * Copyright 2025 OMICRON Electronics GmbH
9
9
  * SPDX-License-Identifier: Apache-2.0
10
10
  */
11
- import { css } from "lit";
12
- import { NavigationDrawerModal } from "@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js";
13
- import { styles } from "@material/web/labs/navigationdrawer/internal/navigation-drawer-modal-styles.js";
14
- import { styles as sharedStyles } from "@material/web/labs/navigationdrawer/internal/shared-styles.js";
11
+ import { css } from 'lit';
12
+ import { NavigationDrawerModal } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js';
13
+ import { styles } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal-styles.js';
14
+ import { styles as sharedStyles } from '@material/web/labs/navigationdrawer/internal/shared-styles.js';
15
15
  const overrideStyles = css `
16
16
  :host {
17
17
  --md-navigation-drawer-modal-scrim-color: var(--md-sys-color-scrim, #000);
@@ -27,6 +27,12 @@ const overrideStyles = css `
27
27
  z-index: 5;
28
28
  }
29
29
  `;
30
+ /**
31
+ * @tag oscd-navigation-drawer
32
+ * @summary Navigation drawers are temporary surfaces that display a list of
33
+ * choices.
34
+ *
35
+ */
30
36
  export class OscdNavigationDrawer extends NavigationDrawerModal {
31
37
  static styles = [
32
38
  sharedStyles,
@@ -1 +1 @@
1
- {"version":3,"file":"OscdNavigationDrawer.js","sourceRoot":"","sources":["OscdNavigationDrawer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAgC,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yEAAyE,CAAC;AAChH,OAAO,EAAE,MAAM,EAAE,MAAM,gFAAgF,CAAC;AACxG,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAEvG,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAczB,CAAC;AAGF,MAAM,OAAO,oBAAqB,SAAQ,qBAAqB;IAC7D,MAAM,CAAmB,MAAM,GAAwB;QACrD,YAAoC;QACpC,MAA8B;QAC9B,cAAsC;KACvC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { css, CSSResult, CSSResultOrNative } from \"lit\";\nimport { NavigationDrawerModal } from \"@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js\";\nimport { styles } from \"@material/web/labs/navigationdrawer/internal/navigation-drawer-modal-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/labs/navigationdrawer/internal/shared-styles.js\";\n\nconst overrideStyles = css`\n :host {\n --md-navigation-drawer-modal-scrim-color: var(--md-sys-color-scrim, #000);\n --md-navigation-drawer-modal-scrim-opacity: 0.32;\n --md-navigation-drawer-modal-container-color: var(\n --md-sys-color-surface-container\n );\n }\n .md3-navigation-drawer-modal--opened {\n z-index: 6;\n }\n .md3-navigation-drawer-modal__scrim {\n z-index: 5;\n }\n`;\n\n\nexport class OscdNavigationDrawer extends NavigationDrawerModal {\n static override readonly styles: CSSResultOrNative[] = [\n sharedStyles as unknown as CSSResult,\n styles as unknown as CSSResult,\n overrideStyles as unknown as CSSResult,\n ];\n}\n"]}
1
+ {"version":3,"file":"OscdNavigationDrawer.js","sourceRoot":"","sources":["OscdNavigationDrawer.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAgC,MAAM,KAAK,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yEAAyE,CAAC;AAChH,OAAO,EAAE,MAAM,EAAE,MAAM,gFAAgF,CAAC;AACxG,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,+DAA+D,CAAC;AAEvG,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;CAczB,CAAC;AAEF;;;;;GAKG;AACH,MAAM,OAAO,oBAAqB,SAAQ,qBAAqB;IAC7D,MAAM,CAAmB,MAAM,GAAwB;QACrD,YAAoC;QACpC,MAA8B;QAC9B,cAAsC;KACvC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { css, CSSResult, CSSResultOrNative } from 'lit';\nimport { NavigationDrawerModal } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal.js';\nimport { styles } from '@material/web/labs/navigationdrawer/internal/navigation-drawer-modal-styles.js';\nimport { styles as sharedStyles } from '@material/web/labs/navigationdrawer/internal/shared-styles.js';\n\nconst overrideStyles = css`\n :host {\n --md-navigation-drawer-modal-scrim-color: var(--md-sys-color-scrim, #000);\n --md-navigation-drawer-modal-scrim-opacity: 0.32;\n --md-navigation-drawer-modal-container-color: var(\n --md-sys-color-surface-container\n );\n }\n .md3-navigation-drawer-modal--opened {\n z-index: 6;\n }\n .md3-navigation-drawer-modal__scrim {\n z-index: 5;\n }\n`;\n\n/**\n * @tag oscd-navigation-drawer\n * @summary Navigation drawers are temporary surfaces that display a list of\n * choices.\n *\n */\nexport class OscdNavigationDrawer extends NavigationDrawerModal {\n static override readonly styles: CSSResultOrNative[] = [\n sharedStyles as unknown as CSSResult,\n styles as unknown as CSSResult,\n overrideStyles as unknown as CSSResult,\n ];\n}\n"]}
@@ -3,13 +3,13 @@
3
3
  * Copyright 2025 OMICRON Electronics GmbH
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { CSSResultOrNative } from "lit";
7
- import { ListItemEl as ListItem } from "@material/web/list/internal/listitem/list-item.js";
8
- declare global {
9
- interface HTMLElementTagNameMap {
10
- "oscd-navigation-drawer-header": OscdNavigationDrawerHeader;
11
- }
12
- }
6
+ import { CSSResultOrNative } from 'lit';
7
+ import { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';
8
+ /**
9
+ * @tag oscd-navigation-drawer-header
10
+ * @summary A header for the navigation drawer.
11
+ *
12
+ */
13
13
  export declare class OscdNavigationDrawerHeader extends ListItem {
14
14
  static readonly styles: CSSResultOrNative[];
15
15
  }
@@ -3,9 +3,9 @@
3
3
  * Copyright 2025 OMICRON Electronics GmbH
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { css } from "lit";
7
- import { ListItemEl as ListItem } from "@material/web/list/internal/listitem/list-item.js";
8
- import { styles } from "@material/web/list/internal/listitem/list-item-styles.js";
6
+ import { css } from 'lit';
7
+ import { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';
8
+ import { styles } from '@material/web/list/internal/listitem/list-item-styles.js';
9
9
  const overrideStyles = css `
10
10
  :host {
11
11
  --navigation-drawer-header-color: var(
@@ -52,6 +52,11 @@ const overrideStyles = css `
52
52
  );
53
53
  }
54
54
  `;
55
+ /**
56
+ * @tag oscd-navigation-drawer-header
57
+ * @summary A header for the navigation drawer.
58
+ *
59
+ */
55
60
  export class OscdNavigationDrawerHeader extends ListItem {
56
61
  static styles = [
57
62
  styles,
@@ -1 +1 @@
1
- {"version":3,"file":"OscdNavigationDrawerHeader.js","sourceRoot":"","sources":["OscdNavigationDrawerHeader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,UAAU,IAAI,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAQlF,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CzB,CAAC;AAEF,MAAM,OAAO,0BAA2B,SAAQ,QAAQ;IACtD,MAAM,CAAmB,MAAM,GAAwB;QACrD,MAAM;QACN,cAAc;KACf,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { css, CSSResultOrNative } from \"lit\";\nimport { ListItemEl as ListItem } from \"@material/web/list/internal/listitem/list-item.js\";\nimport { styles } from \"@material/web/list/internal/listitem/list-item-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-navigation-drawer-header\": OscdNavigationDrawerHeader;\n }\n}\n\nconst overrideStyles = css`\n :host {\n --navigation-drawer-header-color: var(\n --oscd-navigation-drawer-header-color,\n var(--md-sys-color-on-primary, #1d1b20)\n );\n --navigation-drawer-header-background-color: var(\n --oscd-navigation-drawer-header-background-color,\n var(--md-sys-color-primary, #fff)\n );\n\n --md-list-item-label-text-font: var(\n --oscd-navigation-drawer-header-text-font,\n Roboto\n );\n --md-list-item-label-text-size: var(\n --oscd-navigation-drawer-header-text-size,\n 1.25rem\n );\n --md-list-item-label-text-line-height: var(\n --oscd-navigation-drawer-header-text-line-height,\n 1.5rem\n );\n --md-list-item-label-text-weight: var(\n --oscd-navigation-drawer-header-text-weight,\n 500\n );\n\n --md-list-item-supporting-text-font: var(\n --oscd-navigation-drawer-header-supporting-text-font,\n var(--md-sys-typescale-body-medium-font, Roboto)\n );\n --md-list-item-supporting-text-size: var(\n --oscd-navigation-drawer-header-supporting-text-size,\n 0.875rem\n );\n --md-list-item-supporting-text-line-height: var(\n --oscd-navigation-drawer-header-supporting-text-line-height,\n 1.25rem\n );\n --md-list-item-supporting-text-weight: var(\n --oscd-navigation-drawer-header-supporting-text-weight,\n 400\n );\n }\n`;\n\nexport class OscdNavigationDrawerHeader extends ListItem {\n static override readonly styles: CSSResultOrNative[] = [\n styles,\n overrideStyles,\n ];\n}\n"]}
1
+ {"version":3,"file":"OscdNavigationDrawerHeader.js","sourceRoot":"","sources":["OscdNavigationDrawerHeader.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,GAAG,EAAqB,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,UAAU,IAAI,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC3F,OAAO,EAAE,MAAM,EAAE,MAAM,0DAA0D,CAAC;AAElF,MAAM,cAAc,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6CzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,OAAO,0BAA2B,SAAQ,QAAQ;IACtD,MAAM,CAAmB,MAAM,GAAwB;QACrD,MAAM;QACN,cAAc;KACf,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { css, CSSResultOrNative } from 'lit';\nimport { ListItemEl as ListItem } from '@material/web/list/internal/listitem/list-item.js';\nimport { styles } from '@material/web/list/internal/listitem/list-item-styles.js';\n\nconst overrideStyles = css`\n :host {\n --navigation-drawer-header-color: var(\n --oscd-navigation-drawer-header-color,\n var(--md-sys-color-on-primary, #1d1b20)\n );\n --navigation-drawer-header-background-color: var(\n --oscd-navigation-drawer-header-background-color,\n var(--md-sys-color-primary, #fff)\n );\n\n --md-list-item-label-text-font: var(\n --oscd-navigation-drawer-header-text-font,\n Roboto\n );\n --md-list-item-label-text-size: var(\n --oscd-navigation-drawer-header-text-size,\n 1.25rem\n );\n --md-list-item-label-text-line-height: var(\n --oscd-navigation-drawer-header-text-line-height,\n 1.5rem\n );\n --md-list-item-label-text-weight: var(\n --oscd-navigation-drawer-header-text-weight,\n 500\n );\n\n --md-list-item-supporting-text-font: var(\n --oscd-navigation-drawer-header-supporting-text-font,\n var(--md-sys-typescale-body-medium-font, Roboto)\n );\n --md-list-item-supporting-text-size: var(\n --oscd-navigation-drawer-header-supporting-text-size,\n 0.875rem\n );\n --md-list-item-supporting-text-line-height: var(\n --oscd-navigation-drawer-header-supporting-text-line-height,\n 1.25rem\n );\n --md-list-item-supporting-text-weight: var(\n --oscd-navigation-drawer-header-supporting-text-weight,\n 400\n );\n }\n`;\n\n/**\n * @tag oscd-navigation-drawer-header\n * @summary A header for the navigation drawer.\n *\n */\nexport class OscdNavigationDrawerHeader extends ListItem {\n static override readonly styles: CSSResultOrNative[] = [\n styles,\n overrideStyles,\n ];\n}\n"]}
@@ -1,2 +1,7 @@
1
- import { OscdNavigationDrawerHeader } from "./OscdNavigationDrawerHeader";
1
+ import { OscdNavigationDrawerHeader } from './OscdNavigationDrawerHeader.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-navigation-drawer-header': OscdNavigationDrawerHeader;
5
+ }
6
+ }
2
7
  export { OscdNavigationDrawerHeader };
@@ -1,4 +1,4 @@
1
- import { OscdNavigationDrawerHeader } from "./OscdNavigationDrawerHeader";
2
- customElements.define("oscd-navigation-drawer-header", OscdNavigationDrawerHeader);
1
+ import { OscdNavigationDrawerHeader } from './OscdNavigationDrawerHeader.js';
2
+ customElements.define('oscd-navigation-drawer-header', OscdNavigationDrawerHeader);
3
3
  export { OscdNavigationDrawerHeader };
4
4
  //# sourceMappingURL=oscd-navigation-drawer-header.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oscd-navigation-drawer-header.js","sourceRoot":"","sources":["oscd-navigation-drawer-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE1E,cAAc,CAAC,MAAM,CACnB,+BAA+B,EAC/B,0BAA0B,CAC3B,CAAC;AACF,OAAO,EAAE,0BAA0B,EAAE,CAAC","sourcesContent":["import { OscdNavigationDrawerHeader } from \"./OscdNavigationDrawerHeader\";\n\ncustomElements.define(\n \"oscd-navigation-drawer-header\",\n OscdNavigationDrawerHeader\n);\nexport { OscdNavigationDrawerHeader };\n"]}
1
+ {"version":3,"file":"oscd-navigation-drawer-header.js","sourceRoot":"","sources":["oscd-navigation-drawer-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAQ7E,cAAc,CAAC,MAAM,CACnB,+BAA+B,EAC/B,0BAA0B,CAC3B,CAAC;AACF,OAAO,EAAE,0BAA0B,EAAE,CAAC","sourcesContent":["import { OscdNavigationDrawerHeader } from './OscdNavigationDrawerHeader.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-navigation-drawer-header': OscdNavigationDrawerHeader;\n }\n}\n\ncustomElements.define(\n 'oscd-navigation-drawer-header',\n OscdNavigationDrawerHeader,\n);\nexport { OscdNavigationDrawerHeader };\n"]}
@@ -1,7 +1,7 @@
1
- import { OscdNavigationDrawer } from "./OscdNavigationDrawer";
1
+ import { OscdNavigationDrawer } from './OscdNavigationDrawer.js';
2
2
  declare global {
3
3
  interface HTMLElementTagNameMap {
4
- "oscd-navigation-drawer": OscdNavigationDrawer;
4
+ 'oscd-navigation-drawer': OscdNavigationDrawer;
5
5
  }
6
6
  }
7
7
  export { OscdNavigationDrawer };
@@ -1,4 +1,4 @@
1
- import { OscdNavigationDrawer } from "./OscdNavigationDrawer";
2
- customElements.define("oscd-navigation-drawer", OscdNavigationDrawer);
1
+ import { OscdNavigationDrawer } from './OscdNavigationDrawer.js';
2
+ customElements.define('oscd-navigation-drawer', OscdNavigationDrawer);
3
3
  export { OscdNavigationDrawer };
4
4
  //# sourceMappingURL=oscd-navigation-drawer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oscd-navigation-drawer.js","sourceRoot":"","sources":["oscd-navigation-drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAM9D,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,oBAAoB,CAAC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import { OscdNavigationDrawer } from \"./OscdNavigationDrawer\";\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-navigation-drawer\": OscdNavigationDrawer;\n }\n}\ncustomElements.define(\"oscd-navigation-drawer\", OscdNavigationDrawer);\nexport { OscdNavigationDrawer };\n"]}
1
+ {"version":3,"file":"oscd-navigation-drawer.js","sourceRoot":"","sources":["oscd-navigation-drawer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAOjE,cAAc,CAAC,MAAM,CAAC,wBAAwB,EAAE,oBAAoB,CAAC,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,CAAC","sourcesContent":["import { OscdNavigationDrawer } from './OscdNavigationDrawer.js';\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'oscd-navigation-drawer': OscdNavigationDrawer;\n }\n}\ncustomElements.define('oscd-navigation-drawer', OscdNavigationDrawer);\nexport { OscdNavigationDrawer };\n"]}
package/package.json CHANGED
@@ -1,18 +1,21 @@
1
1
  {
2
2
  "name": "@omicronenergy/oscd-ui",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "description": "UI Web Components set for OpenSCD",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "build": "tsc --pretty ",
7
+ "lint": "eslint . --ext .ts",
8
+ "format": "eslint . --ext .ts --fix",
9
+ "build": "wireit",
8
10
  "build:watch": "tsc --pretty --watch",
9
11
  "test": "wtr",
10
12
  "test:unit": "wtr",
11
13
  "storybook": "storybook dev -p 6006",
12
14
  "build-storybook": "storybook build",
13
15
  "test:visual": "test-storybook",
14
- "custom-elements-manifest": "cem analyze",
15
- "prepare": "npm run build"
16
+ "copy-material-custom-elements": "cp md-custom-elements.json node_modules/@material/web/custom-elements.json",
17
+ "custom-elements-manifest": "npm run copy-material-custom-elements && cem analyze",
18
+ "prepare": "husky"
16
19
  },
17
20
  "repository": {
18
21
  "type": "git",
@@ -35,13 +38,17 @@
35
38
  "**/*.scss",
36
39
  "**/*.css",
37
40
  "**/*.css.map",
41
+ "!custom-elements-manifest.config.js",
38
42
  "!web-test-runner.config.js",
43
+ "!test-runner.config.js",
39
44
  "!commitlint.config.js",
40
45
  "!**/test/**",
41
46
  "!**/*_test.*",
47
+ "!**/*.stories.*",
42
48
  "!.wireit/**",
43
49
  "!catalog/",
44
50
  "!scripts/",
51
+ "!.storybook/",
45
52
  "!**/testing/**"
46
53
  ],
47
54
  "overrides": {
@@ -50,6 +57,7 @@
50
57
  }
51
58
  },
52
59
  "dependencies": {
60
+ "@lit/reactive-element": "^2.1.0",
53
61
  "@material/web": "2.3.0",
54
62
  "@open-wc/scoped-elements": "^3.0.5",
55
63
  "@webcomponents/scoped-custom-element-registry": "^0.0.10",
@@ -57,31 +65,177 @@
57
65
  "tslib": "^2.4.0"
58
66
  },
59
67
  "devDependencies": {
68
+ "@commitlint/cli": "^19.8.1",
69
+ "@commitlint/config-conventional": "^19.8.1",
60
70
  "@custom-elements-manifest/analyzer": "^0.10.4",
61
- "@playwright/test": "^1.52.0",
71
+ "@open-wc/eslint-config": "^12.0.3",
72
+ "@storybook/addon-actions": "^8.6.14",
62
73
  "@storybook/addon-essentials": "^8.6.14",
63
74
  "@storybook/addon-interactions": "^8.6.14",
64
75
  "@storybook/blocks": "^8.6.14",
65
76
  "@storybook/preview-api": "^8.6.14",
66
77
  "@storybook/test": "^8.6.14",
67
- "@storybook/test-runner": "^0.22.0",
68
78
  "@storybook/web-components": "^8.6.14",
69
79
  "@storybook/web-components-vite": "^8.6.14",
80
+ "@types/jasmine": "^4.0.3",
70
81
  "@types/node": "^22.15.18",
71
- "@typescript-eslint/parser": "^8.32.1",
72
- "@wc-toolkit/jsdoc-tags": "^1.1.0",
82
+ "@typescript-eslint/eslint-plugin": "^7.16.0",
83
+ "@typescript-eslint/parser": "^7.16.0",
84
+ "@wc-toolkit/cem-inheritance": "^1.0.4",
73
85
  "@wc-toolkit/storybook-helpers": "^1.1.3",
86
+ "@web/test-runner": "^0.18.2",
87
+ "@web/test-runner-core": "^0.13.0",
88
+ "@web/test-runner-playwright": "^0.11.0",
89
+ "concurrently": "^9.0.1",
90
+ "eslint": "^8.57.0",
91
+ "eslint-config-prettier": "^9.1.0",
92
+ "eslint-plugin-prettier": "^5.4.1",
93
+ "eslint-plugin-tsdoc": "^0.4.0",
94
+ "husky": "^9.1.7",
95
+ "jasmine": "^4.5.0",
96
+ "lint-staged": "^16.1.0",
74
97
  "playwright": "^1.52.0",
75
98
  "prettier": "^3.5.3",
76
99
  "storybook": "^8.6.14",
77
- "typescript": "^5.8.3",
100
+ "typescript": "^5.5.3",
78
101
  "vite-tsconfig-paths": "^5.1.4",
79
102
  "web-test-runner-jasmine": "^0.0.6",
80
- "jasmine": "^4.5.0",
81
- "@open-wc/testing": "next",
82
- "@types/jasmine": "^4.0.3",
83
- "@web/test-runner": "^0.18.2",
84
- "@web/test-runner-playwright": "^0.11.0",
85
- "@web/test-runner-visual-regression": "^0.6.6"
103
+ "wireit": "^0.14.12"
104
+ },
105
+ "wireit": {
106
+ "build": {
107
+ "dependencies": [
108
+ "build:ts"
109
+ ]
110
+ },
111
+ "build:ts": {
112
+ "command": "tsc --pretty",
113
+ "files": [
114
+ "tsconfig.json",
115
+ "**/*.ts",
116
+ "!**/*.d.ts",
117
+ "!**/*-styles.ts",
118
+ "!catalog/",
119
+ "!scripts/"
120
+ ],
121
+ "output": [
122
+ ".tsbuildinfo",
123
+ "**/*.js",
124
+ "**/*.js.map",
125
+ "**/*.d.ts",
126
+ "!custom-elements-manifest.config.js",
127
+ "!web-test-runner.config.js",
128
+ "!test-runner.config.js",
129
+ "!commitlint.config.js",
130
+ "!types/",
131
+ "!catalog/",
132
+ "!scripts/",
133
+ "!.storybook/"
134
+ ],
135
+ "clean": "if-file-deleted",
136
+ "dependencies": []
137
+ }
138
+ },
139
+ "eslintConfig": {
140
+ "parser": "@typescript-eslint/parser",
141
+ "parserOptions": {
142
+ "lib": [
143
+ "es2018",
144
+ "dom"
145
+ ]
146
+ },
147
+ "extends": [
148
+ "@open-wc",
149
+ "prettier",
150
+ "plugin:prettier/recommended"
151
+ ],
152
+ "ignorePatterns": [
153
+ "*/**/*.js",
154
+ "*/**/*.d.ts",
155
+ "node_modules",
156
+ "coverage",
157
+ "doc"
158
+ ],
159
+ "env": {
160
+ "jasmine": true
161
+ },
162
+ "plugins": [
163
+ "@typescript-eslint",
164
+ "eslint-plugin-tsdoc"
165
+ ],
166
+ "rules": {
167
+ "no-unused-vars": "off",
168
+ "class-methods-use-this": [
169
+ "error",
170
+ {
171
+ "exceptMethods": [
172
+ "locale",
173
+ "render"
174
+ ]
175
+ }
176
+ ],
177
+ "@typescript-eslint/no-explicit-any": [
178
+ "error",
179
+ {
180
+ "ignoreRestArgs": true
181
+ }
182
+ ],
183
+ "import/no-extraneous-dependencies": [
184
+ "error",
185
+ {
186
+ "devDependencies": [
187
+ "**/*.test.ts",
188
+ "**/*.spec.ts",
189
+ "**/*.stories.ts",
190
+ "utils/storybook/*.ts",
191
+ "web-test-runner.config.js",
192
+ "test-runner.config.js",
193
+ "custom-elements-manifest.config.js"
194
+ ]
195
+ }
196
+ ],
197
+ "curly": [
198
+ "error",
199
+ "all"
200
+ ],
201
+ "@typescript-eslint/no-unused-vars": [
202
+ "error",
203
+ {
204
+ "argsIgnorePattern": "^_",
205
+ "varsIgnorePattern": "^_",
206
+ "destructuredArrayIgnorePattern": "^_"
207
+ }
208
+ ],
209
+ "import/no-unresolved": "off",
210
+ "import/extensions": [
211
+ "error",
212
+ "always",
213
+ {
214
+ "ignorePackages": true
215
+ }
216
+ ]
217
+ },
218
+ "overrides": [
219
+ {
220
+ "files": [
221
+ "**/*.spec.ts",
222
+ "**/*.test.ts"
223
+ ],
224
+ "rules": {
225
+ "no-unused-expressions": "off"
226
+ }
227
+ }
228
+ ]
229
+ },
230
+ "prettier": {
231
+ "singleQuote": true,
232
+ "arrowParens": "avoid"
233
+ },
234
+ "lint-staged": {
235
+ "*.ts": [
236
+ "eslint --fix --config package.json",
237
+ "prettier --write",
238
+ "eslint --config package.json"
239
+ ]
86
240
  }
87
241
  }
@@ -8,19 +8,14 @@
8
8
  * Copyright 2025 OMICRON Electronics GmbH
9
9
  * SPDX-License-Identifier: Apache-2.0
10
10
  */
11
- import { CSSResultOrNative } from "lit";
12
- import { FilledSelect } from "@material/web/select/internal/filled-select.js";
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- "oscd-filled-select": OscdFilledSelect;
16
- }
17
- }
11
+ import { CSSResultOrNative } from 'lit';
12
+ import { FilledSelect } from '@material/web/select/internal/filled-select.js';
18
13
  /**
14
+ * @tag oscd-filled-select
19
15
  * @summary
20
16
  * Select menus display a list of choices on temporary surfaces and display the
21
17
  * currently selected menu item above the menu.
22
18
  *
23
- * @description
24
19
  * The select component allows users to choose a value from a fixed list of
25
20
  * available options. Composed of an interactive anchor button and a menu, it is
26
21
  * analogous to the native HTML `<select>` element. This is the "filled"
@@ -3,15 +3,15 @@
3
3
  * Copyright 2021 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { FilledSelect } from "@material/web/select/internal/filled-select.js";
7
- import { styles } from "@material/web/select/internal/filled-select-styles.js";
8
- import { styles as sharedStyles } from "@material/web/select/internal/shared-styles.js";
6
+ import { FilledSelect } from '@material/web/select/internal/filled-select.js';
7
+ import { styles } from '@material/web/select/internal/filled-select-styles.js';
8
+ import { styles as sharedStyles } from '@material/web/select/internal/shared-styles.js';
9
9
  /**
10
+ * @tag oscd-filled-select
10
11
  * @summary
11
12
  * Select menus display a list of choices on temporary surfaces and display the
12
13
  * currently selected menu item above the menu.
13
14
  *
14
- * @description
15
15
  * The select component allows users to choose a value from a fixed list of
16
16
  * available options. Composed of an interactive anchor button and a menu, it is
17
17
  * analogous to the native HTML `<select>` element. This is the "filled"
@@ -1 +1 @@
1
- {"version":3,"file":"OscdFilledSelect.js","sourceRoot":"","sources":["OscdFilledSelect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,uDAAuD,CAAC;AAC/E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAQxF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,gBAAiB,SAAQ,YAAY;IAChD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from \"lit\";\nimport { FilledSelect } from \"@material/web/select/internal/filled-select.js\";\nimport { styles } from \"@material/web/select/internal/filled-select-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/select/internal/shared-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-filled-select\": OscdFilledSelect;\n }\n}\n\n/**\n * @summary\n * Select menus display a list of choices on temporary surfaces and display the\n * currently selected menu item above the menu.\n *\n * @description\n * The select component allows users to choose a value from a fixed list of\n * available options. Composed of an interactive anchor button and a menu, it is\n * analogous to the native HTML `<select>` element. This is the \"filled\"\n * variant.\n *\n * @example\n * ```html\n * <oscd-filled-select label=\"fruits\">\n * <!-- An empty selected option will give select an \"un-filled\" state -->\n * <oscd-select-option selected></oscd-select-option>\n * <oscd-select-option value=\"apple\" headline=\"Apple\"></oscd-select-option>\n * <oscd-select-option value=\"banana\" headline=\"Banana\"></oscd-select-option>\n * <oscd-select-option value=\"kiwi\" headline=\"Kiwi\"></oscd-select-option>\n * <oscd-select-option value=\"orange\" headline=\"Orange\"></oscd-select-option>\n * <oscd-select-option value=\"tomato\" headline=\"Tomato\"></oscd-select-option>\n * </oscd-filled-select>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledSelect extends FilledSelect {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n}\n"]}
1
+ {"version":3,"file":"OscdFilledSelect.js","sourceRoot":"","sources":["OscdFilledSelect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,MAAM,uDAAuD,CAAC;AAC/E,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,gBAAiB,SAAQ,YAAY;IAChD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\nimport { FilledSelect } from '@material/web/select/internal/filled-select.js';\nimport { styles } from '@material/web/select/internal/filled-select-styles.js';\nimport { styles as sharedStyles } from '@material/web/select/internal/shared-styles.js';\n\n/**\n * @tag oscd-filled-select\n * @summary\n * Select menus display a list of choices on temporary surfaces and display the\n * currently selected menu item above the menu.\n *\n * The select component allows users to choose a value from a fixed list of\n * available options. Composed of an interactive anchor button and a menu, it is\n * analogous to the native HTML `<select>` element. This is the \"filled\"\n * variant.\n *\n * @example\n * ```html\n * <oscd-filled-select label=\"fruits\">\n * <!-- An empty selected option will give select an \"un-filled\" state -->\n * <oscd-select-option selected></oscd-select-option>\n * <oscd-select-option value=\"apple\" headline=\"Apple\"></oscd-select-option>\n * <oscd-select-option value=\"banana\" headline=\"Banana\"></oscd-select-option>\n * <oscd-select-option value=\"kiwi\" headline=\"Kiwi\"></oscd-select-option>\n * <oscd-select-option value=\"orange\" headline=\"Orange\"></oscd-select-option>\n * <oscd-select-option value=\"tomato\" headline=\"Tomato\"></oscd-select-option>\n * </oscd-filled-select>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdFilledSelect extends FilledSelect {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n}\n"]}
@@ -8,19 +8,14 @@
8
8
  * Copyright 2025 OMICRON Electronics GmbH
9
9
  * SPDX-License-Identifier: Apache-2.0
10
10
  */
11
- import { CSSResultOrNative } from "lit";
12
- import { OutlinedSelect } from "@material/web/select/internal/outlined-select.js";
13
- declare global {
14
- interface HTMLElementTagNameMap {
15
- "oscd-outlined-select": OscdOutlinedSelect;
16
- }
17
- }
11
+ import { CSSResultOrNative } from 'lit';
12
+ import { OutlinedSelect } from '@material/web/select/internal/outlined-select.js';
18
13
  /**
14
+ * @tag oscd-outlined-select
19
15
  * @summary
20
16
  * Select menus display a list of choices on temporary surfaces and display the
21
17
  * currently selected menu item above the menu.
22
18
  *
23
- * @description
24
19
  * The select component allows users to choose a value from a fixed list of
25
20
  * available options. Composed of an interactive anchor button and a menu, it is
26
21
  * analogous to the native HTML `<select>` element. This is the "outlined"
@@ -3,15 +3,15 @@
3
3
  * Copyright 2021 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
5
  */
6
- import { OutlinedSelect } from "@material/web/select/internal/outlined-select.js";
7
- import { styles } from "@material/web/select/internal/outlined-select-styles.js";
8
- import { styles as sharedStyles } from "@material/web/select/internal/shared-styles.js";
6
+ import { OutlinedSelect } from '@material/web/select/internal/outlined-select.js';
7
+ import { styles } from '@material/web/select/internal/outlined-select-styles.js';
8
+ import { styles as sharedStyles } from '@material/web/select/internal/shared-styles.js';
9
9
  /**
10
+ * @tag oscd-outlined-select
10
11
  * @summary
11
12
  * Select menus display a list of choices on temporary surfaces and display the
12
13
  * currently selected menu item above the menu.
13
14
  *
14
- * @description
15
15
  * The select component allows users to choose a value from a fixed list of
16
16
  * available options. Composed of an interactive anchor button and a menu, it is
17
17
  * analogous to the native HTML `<select>` element. This is the "outlined"
@@ -1 +1 @@
1
- {"version":3,"file":"OscdOutlinedSelect.js","sourceRoot":"","sources":["OscdOutlinedSelect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,yDAAyD,CAAC;AACjF,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAQxF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from \"lit\";\nimport { OutlinedSelect } from \"@material/web/select/internal/outlined-select.js\";\nimport { styles } from \"@material/web/select/internal/outlined-select-styles.js\";\nimport { styles as sharedStyles } from \"@material/web/select/internal/shared-styles.js\";\n\ndeclare global {\n interface HTMLElementTagNameMap {\n \"oscd-outlined-select\": OscdOutlinedSelect;\n }\n}\n\n/**\n * @summary\n * Select menus display a list of choices on temporary surfaces and display the\n * currently selected menu item above the menu.\n *\n * @description\n * The select component allows users to choose a value from a fixed list of\n * available options. Composed of an interactive anchor button and a menu, it is\n * analogous to the native HTML `<select>` element. This is the \"outlined\"\n * variant.\n *\n * @example\n * ```html\n * <oscd-outlined-select label=\"fruits\">\n * <!-- An empty selected option will give select an \"un-filled\" state -->\n * <oscd-select-option selected></oscd-select-option>\n * <oscd-select-option value=\"apple\" headline=\"Apple\"></oscd-select-option>\n * <oscd-select-option value=\"banana\" headline=\"Banana\"></oscd-select-option>\n * <oscd-select-option value=\"kiwi\" headline=\"Kiwi\"></oscd-select-option>\n * <oscd-select-option value=\"orange\" headline=\"Orange\"></oscd-select-option>\n * <oscd-select-option value=\"tomato\" headline=\"Tomato\"></oscd-select-option>\n * </oscd-outlined-select>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedSelect extends OutlinedSelect {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n}\n"]}
1
+ {"version":3,"file":"OscdOutlinedSelect.js","sourceRoot":"","sources":["OscdOutlinedSelect.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,yDAAyD,CAAC;AACjF,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD,MAAM,CAAU,MAAM,GAAwB,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC","sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\n\n/**\n * @license\n * Copyright 2025 OMICRON Electronics GmbH\n * SPDX-License-Identifier: Apache-2.0\n */\nimport { CSSResultOrNative } from 'lit';\nimport { OutlinedSelect } from '@material/web/select/internal/outlined-select.js';\nimport { styles } from '@material/web/select/internal/outlined-select-styles.js';\nimport { styles as sharedStyles } from '@material/web/select/internal/shared-styles.js';\n\n/**\n * @tag oscd-outlined-select\n * @summary\n * Select menus display a list of choices on temporary surfaces and display the\n * currently selected menu item above the menu.\n *\n * The select component allows users to choose a value from a fixed list of\n * available options. Composed of an interactive anchor button and a menu, it is\n * analogous to the native HTML `<select>` element. This is the \"outlined\"\n * variant.\n *\n * @example\n * ```html\n * <oscd-outlined-select label=\"fruits\">\n * <!-- An empty selected option will give select an \"un-filled\" state -->\n * <oscd-select-option selected></oscd-select-option>\n * <oscd-select-option value=\"apple\" headline=\"Apple\"></oscd-select-option>\n * <oscd-select-option value=\"banana\" headline=\"Banana\"></oscd-select-option>\n * <oscd-select-option value=\"kiwi\" headline=\"Kiwi\"></oscd-select-option>\n * <oscd-select-option value=\"orange\" headline=\"Orange\"></oscd-select-option>\n * <oscd-select-option value=\"tomato\" headline=\"Tomato\"></oscd-select-option>\n * </oscd-outlined-select>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdOutlinedSelect extends OutlinedSelect {\n static override styles: CSSResultOrNative[] = [sharedStyles, styles];\n}\n"]}