@omicronenergy/oscd-ui 0.0.5 → 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 (181) hide show
  1. package/app-bar/OscdAppBar.d.ts +47 -0
  2. package/app-bar/OscdAppBar.js +150 -0
  3. package/app-bar/OscdAppBar.js.map +1 -0
  4. package/app-bar/oscd-app-bar.d.ts +12 -0
  5. package/app-bar/oscd-app-bar.js +9 -0
  6. package/app-bar/oscd-app-bar.js.map +1 -0
  7. package/button/OscdFilledButton.d.ts +38 -0
  8. package/button/OscdFilledButton.js +45 -0
  9. package/button/OscdFilledButton.js.map +1 -0
  10. package/button/OscdFilledButton.spec.d.ts +6 -0
  11. package/button/OscdFilledButton.spec.js +79 -0
  12. package/button/OscdFilledButton.spec.js.map +1 -0
  13. package/button/OscdOutlinedButton.d.ts +40 -0
  14. package/button/OscdOutlinedButton.js +37 -0
  15. package/button/OscdOutlinedButton.js.map +1 -0
  16. package/button/OscdTextButton.d.ts +38 -0
  17. package/button/OscdTextButton.js +35 -0
  18. package/button/OscdTextButton.js.map +1 -0
  19. package/button/oscd-filled-button.d.ts +7 -0
  20. package/button/oscd-filled-button.js +4 -0
  21. package/button/oscd-filled-button.js.map +1 -0
  22. package/button/oscd-outlined-button.d.ts +12 -0
  23. package/button/oscd-outlined-button.js +9 -0
  24. package/button/oscd-outlined-button.js.map +1 -0
  25. package/button/oscd-text-button.d.ts +12 -0
  26. package/button/oscd-text-button.js +9 -0
  27. package/button/oscd-text-button.js.map +1 -0
  28. package/dialog/OscdDialog.d.ts +42 -0
  29. package/dialog/OscdDialog.js +49 -0
  30. package/dialog/OscdDialog.js.map +1 -0
  31. package/dialog/oscd-dialog.d.ts +7 -0
  32. package/dialog/oscd-dialog.js +4 -0
  33. package/dialog/oscd-dialog.js.map +1 -0
  34. package/divider/OscdDivider.d.ts +26 -0
  35. package/divider/OscdDivider.js +22 -0
  36. package/divider/OscdDivider.js.map +1 -0
  37. package/divider/oscd-divider.d.ts +7 -0
  38. package/divider/oscd-divider.js +4 -0
  39. package/divider/oscd-divider.js.map +1 -0
  40. package/elevation/OscdElevation.d.ts +24 -0
  41. package/elevation/OscdElevation.js +20 -0
  42. package/elevation/OscdElevation.js.map +1 -0
  43. package/elevation/oscd-elevation.d.ts +12 -0
  44. package/elevation/oscd-elevation.js +9 -0
  45. package/elevation/oscd-elevation.js.map +1 -0
  46. package/field/OscdFilledField.d.ts +21 -0
  47. package/field/OscdFilledField.js +18 -0
  48. package/field/OscdFilledField.js.map +1 -0
  49. package/field/OscdOutlinedField.d.ts +23 -0
  50. package/field/OscdOutlinedField.js +20 -0
  51. package/field/OscdOutlinedField.js.map +1 -0
  52. package/field/oscd-filled-field.d.ts +7 -0
  53. package/field/oscd-filled-field.js +4 -0
  54. package/field/oscd-filled-field.js.map +1 -0
  55. package/field/oscd-outlined-field.d.ts +7 -0
  56. package/field/oscd-outlined-field.js +4 -0
  57. package/field/oscd-outlined-field.js.map +1 -0
  58. package/icon/OscdIcon.d.ts +24 -0
  59. package/icon/OscdIcon.js +20 -0
  60. package/icon/OscdIcon.js.map +1 -0
  61. package/icon/oscd-icon.d.ts +7 -0
  62. package/icon/oscd-icon.js +4 -0
  63. package/icon/oscd-icon.js.map +1 -0
  64. package/iconbutton/OscdFilledIconButton.d.ts +39 -0
  65. package/iconbutton/OscdFilledIconButton.js +37 -0
  66. package/iconbutton/OscdFilledIconButton.js.map +1 -0
  67. package/iconbutton/OscdFilledTonalIconButton.d.ts +39 -0
  68. package/iconbutton/OscdFilledTonalIconButton.js +37 -0
  69. package/iconbutton/OscdFilledTonalIconButton.js.map +1 -0
  70. package/iconbutton/OscdIconButton.d.ts +38 -0
  71. package/iconbutton/OscdIconButton.js +36 -0
  72. package/iconbutton/OscdIconButton.js.map +1 -0
  73. package/iconbutton/OscdOutlinedIconButton.d.ts +38 -0
  74. package/iconbutton/OscdOutlinedIconButton.js +36 -0
  75. package/iconbutton/OscdOutlinedIconButton.js.map +1 -0
  76. package/iconbutton/oscd-filled-icon-button.d.ts +7 -0
  77. package/iconbutton/oscd-filled-icon-button.js +4 -0
  78. package/iconbutton/oscd-filled-icon-button.js.map +1 -0
  79. package/iconbutton/oscd-filled-tonal-icon-button.d.ts +7 -0
  80. package/iconbutton/oscd-filled-tonal-icon-button.js +4 -0
  81. package/iconbutton/oscd-filled-tonal-icon-button.js.map +1 -0
  82. package/iconbutton/oscd-icon-button.d.ts +7 -0
  83. package/iconbutton/oscd-icon-button.js +4 -0
  84. package/iconbutton/oscd-icon-button.js.map +1 -0
  85. package/iconbutton/oscd-outlined-icon-button.d.ts +7 -0
  86. package/iconbutton/oscd-outlined-icon-button.js +4 -0
  87. package/iconbutton/oscd-outlined-icon-button.js.map +1 -0
  88. package/list/OscdList.d.ts +34 -0
  89. package/list/OscdList.js +44 -0
  90. package/list/OscdList.js.map +1 -0
  91. package/list/OscdListItem.d.ts +52 -0
  92. package/list/OscdListItem.js +78 -0
  93. package/list/OscdListItem.js.map +1 -0
  94. package/list/oscd-list-item.d.ts +7 -0
  95. package/list/oscd-list-item.js +4 -0
  96. package/list/oscd-list-item.js.map +1 -0
  97. package/list/oscd-list.d.ts +7 -0
  98. package/list/oscd-list.js +4 -0
  99. package/list/oscd-list.js.map +1 -0
  100. package/menu/OscdMenu.d.ts +68 -0
  101. package/menu/OscdMenu.js +62 -0
  102. package/menu/OscdMenu.js.map +1 -0
  103. package/menu/OscdMenuItem.d.ts +32 -0
  104. package/menu/OscdMenuItem.js +26 -0
  105. package/menu/OscdMenuItem.js.map +1 -0
  106. package/menu/oscd-menu-item.d.ts +7 -0
  107. package/menu/oscd-menu-item.js +4 -0
  108. package/menu/oscd-menu-item.js.map +1 -0
  109. package/menu/oscd-menu.d.ts +7 -0
  110. package/menu/oscd-menu.js +4 -0
  111. package/menu/oscd-menu.js.map +1 -0
  112. package/navigation-drawer/OscdNavigationDrawer.d.ts +21 -0
  113. package/navigation-drawer/OscdNavigationDrawer.js +43 -0
  114. package/navigation-drawer/OscdNavigationDrawer.js.map +1 -0
  115. package/navigation-drawer/OscdNavigationDrawerHeader.d.ts +15 -0
  116. package/navigation-drawer/OscdNavigationDrawerHeader.js +66 -0
  117. package/navigation-drawer/OscdNavigationDrawerHeader.js.map +1 -0
  118. package/navigation-drawer/oscd-navigation-drawer-header.d.ts +7 -0
  119. package/navigation-drawer/oscd-navigation-drawer-header.js +4 -0
  120. package/navigation-drawer/oscd-navigation-drawer-header.js.map +1 -0
  121. package/navigation-drawer/oscd-navigation-drawer.d.ts +7 -0
  122. package/navigation-drawer/oscd-navigation-drawer.js +4 -0
  123. package/navigation-drawer/oscd-navigation-drawer.js.map +1 -0
  124. package/package.json +13 -7
  125. package/select/OscdFilledSelect.d.ts +42 -0
  126. package/select/OscdFilledSelect.js +39 -0
  127. package/select/OscdFilledSelect.js.map +1 -0
  128. package/select/OscdOutlinedSelect.d.ts +42 -0
  129. package/select/OscdOutlinedSelect.js +39 -0
  130. package/select/OscdOutlinedSelect.js.map +1 -0
  131. package/select/OscdSelectOption.d.ts +46 -0
  132. package/select/OscdSelectOption.js +41 -0
  133. package/select/OscdSelectOption.js.map +1 -0
  134. package/select/oscd-filled-select.d.ts +7 -0
  135. package/select/oscd-filled-select.js +4 -0
  136. package/select/oscd-filled-select.js.map +1 -0
  137. package/select/oscd-outlined-select.d.ts +7 -0
  138. package/select/oscd-outlined-select.js +4 -0
  139. package/select/oscd-outlined-select.js.map +1 -0
  140. package/select/oscd-select-option.d.ts +7 -0
  141. package/select/oscd-select-option.js +4 -0
  142. package/select/oscd-select-option.js.map +1 -0
  143. package/tabs/OscdPrimaryTab.d.ts +22 -0
  144. package/tabs/OscdPrimaryTab.js +19 -0
  145. package/tabs/OscdPrimaryTab.js.map +1 -0
  146. package/tabs/OscdSecondaryTab.d.ts +22 -0
  147. package/tabs/OscdSecondaryTab.js +19 -0
  148. package/tabs/OscdSecondaryTab.js.map +1 -0
  149. package/tabs/OscdTabs.d.ts +22 -0
  150. package/tabs/OscdTabs.js +18 -0
  151. package/tabs/OscdTabs.js.map +1 -0
  152. package/tabs/oscd-primary-tab.d.ts +7 -0
  153. package/tabs/oscd-primary-tab.js +4 -0
  154. package/tabs/oscd-primary-tab.js.map +1 -0
  155. package/tabs/oscd-secondary-tab.d.ts +7 -0
  156. package/tabs/oscd-secondary-tab.js +4 -0
  157. package/tabs/oscd-secondary-tab.js.map +1 -0
  158. package/tabs/oscd-tabs.d.ts +7 -0
  159. package/tabs/oscd-tabs.js +4 -0
  160. package/tabs/oscd-tabs.js.map +1 -0
  161. package/textfield/OscdFilledTextField.d.ts +30 -0
  162. package/textfield/OscdFilledTextField.js +30 -0
  163. package/textfield/OscdFilledTextField.js.map +1 -0
  164. package/textfield/OscdOutlinedTextField.d.ts +28 -0
  165. package/textfield/OscdOutlinedTextField.js +28 -0
  166. package/textfield/OscdOutlinedTextField.js.map +1 -0
  167. package/textfield/oscd-filled-text-field.d.ts +7 -0
  168. package/textfield/oscd-filled-text-field.js +4 -0
  169. package/textfield/oscd-filled-text-field.js.map +1 -0
  170. package/textfield/oscd-outlined-text-field.d.ts +7 -0
  171. package/textfield/oscd-outlined-text-field.js +4 -0
  172. package/textfield/oscd-outlined-text-field.js.map +1 -0
  173. package/utils/storybook/getStorybookHelpers.d.ts +4 -0
  174. package/utils/storybook/getStorybookHelpers.js +53 -0
  175. package/utils/storybook/getStorybookHelpers.js.map +1 -0
  176. package/utils/storybook/scopedWcDecorator.d.ts +2 -0
  177. package/utils/storybook/scopedWcDecorator.js +37 -0
  178. package/utils/storybook/scopedWcDecorator.js.map +1 -0
  179. package/utils/storybook/themingDecorator.d.ts +6 -0
  180. package/utils/storybook/themingDecorator.js +100 -0
  181. package/utils/storybook/themingDecorator.js.map +1 -0
@@ -0,0 +1,62 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ import { Menu } from '@material/web/menu/internal/menu.js';
7
+ import { styles } from '@material/web/menu/internal/menu-styles.js';
8
+ export { CloseReason, FocusState, } from '@material/web/menu/internal/controllers/shared.js';
9
+ export { Corner } from '@material/web/menu/internal/menu.js';
10
+ /**
11
+ * @tag oscd-menu
12
+ * @summary Menus display a list of choices on a temporary surface.
13
+ *
14
+ * Menus appear when users interact with a button, action, or other control.
15
+ *
16
+ * They can be opened from a variety of elements, most commonly icon buttons,
17
+ * buttons, and text fields.
18
+ *
19
+ * oscd-menu listens for the `close-menu` and `deselect-items` events.
20
+ *
21
+ * - `close-menu` closes the menu when dispatched from a child element.
22
+ * - `deselect-items` deselects all of its immediate menu-item children.
23
+ *
24
+ * @example
25
+ * ```html
26
+ * <div style="position:relative;">
27
+ * <button
28
+ * id="anchor"
29
+ * @click=${() => this.menuRef.value.show()}>
30
+ * Click to open menu
31
+ * </button>
32
+ * <!--
33
+ * `has-overflow` is required when using a submenu which overflows the
34
+ * menu's contents.
35
+ *
36
+ * Additionally, `anchor` ingests an idref which do not pass through shadow
37
+ * roots. You can also set `.anchorElement` to an element reference if
38
+ * necessary.
39
+ * -->
40
+ * <oscd-menu anchor="anchor" has-overflow ${ref(menuRef)}>
41
+ * <oscd-menu-item headline="This is a headline"></oscd-menu-item>
42
+ * <oscd-sub-menu>
43
+ * <oscd-menu-item
44
+ * slot="item"
45
+ * headline="this is a submenu item">
46
+ * </oscd-menu-item>
47
+ * <oscd-menu slot="menu">
48
+ * <oscd-menu-item headline="This is an item inside a submenu">
49
+ * </oscd-menu-item>
50
+ * </oscd-menu>
51
+ * </oscd-sub-menu>
52
+ * </oscd-menu>
53
+ * </div>
54
+ * ```
55
+ *
56
+ * @final
57
+ * @suppress {visibility}
58
+ */
59
+ export class OscdMenu extends Menu {
60
+ static styles = [styles];
61
+ }
62
+ //# sourceMappingURL=OscdMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OscdMenu.js","sourceRoot":"","sources":["OscdMenu.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,EAAE,IAAI,EAAE,MAAM,qCAAqC,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,4CAA4C,CAAC;AAIpE,OAAO,EACL,WAAW,EACX,UAAU,GAGX,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,qCAAqC,CAAC;AAE7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAM,OAAO,QAAS,SAAQ,IAAI;IAChC,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 { Menu } from '@material/web/menu/internal/menu.js';\nimport { styles } from '@material/web/menu/internal/menu-styles.js';\n\nexport { type ListItem } from '@material/web/list/internal/list-navigation-helpers.js';\nexport { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';\nexport {\n CloseReason,\n FocusState,\n type CloseMenuEvent,\n type Menu,\n} from '@material/web/menu/internal/controllers/shared.js';\nexport { Corner } from '@material/web/menu/internal/menu.js';\n\n/**\n * @tag oscd-menu\n * @summary Menus display a list of choices on a temporary surface.\n *\n * Menus appear when users interact with a button, action, or other control.\n *\n * They can be opened from a variety of elements, most commonly icon buttons,\n * buttons, and text fields.\n *\n * oscd-menu listens for the `close-menu` and `deselect-items` events.\n *\n * - `close-menu` closes the menu when dispatched from a child element.\n * - `deselect-items` deselects all of its immediate menu-item children.\n *\n * @example\n * ```html\n * <div style=\"position:relative;\">\n * <button\n * id=\"anchor\"\n * @click=${() => this.menuRef.value.show()}>\n * Click to open menu\n * </button>\n * <!--\n * `has-overflow` is required when using a submenu which overflows the\n * menu's contents.\n *\n * Additionally, `anchor` ingests an idref which do not pass through shadow\n * roots. You can also set `.anchorElement` to an element reference if\n * necessary.\n * -->\n * <oscd-menu anchor=\"anchor\" has-overflow ${ref(menuRef)}>\n * <oscd-menu-item headline=\"This is a headline\"></oscd-menu-item>\n * <oscd-sub-menu>\n * <oscd-menu-item\n * slot=\"item\"\n * headline=\"this is a submenu item\">\n * </oscd-menu-item>\n * <oscd-menu slot=\"menu\">\n * <oscd-menu-item headline=\"This is an item inside a submenu\">\n * </oscd-menu-item>\n * </oscd-menu>\n * </oscd-sub-menu>\n * </oscd-menu>\n * </div>\n * ```\n *\n * @final\n * @suppress {visibility}\n */\nexport class OscdMenu extends Menu {\n static override styles: CSSResultOrNative[] = [styles];\n}\n"]}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * @license
8
+ * Copyright 2025 OMICRON Electronics GmbH
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */
11
+ import { CSSResultOrNative } from 'lit';
12
+ import { MenuItemEl } from '@material/web/menu/internal/menuitem/menu-item.js';
13
+ export { type MenuItem } from '@material/web/menu/internal/controllers/menuItemController.js';
14
+ export { type CloseMenuEvent } from '@material/web/menu/internal/controllers/shared.js';
15
+ /**
16
+ * @tag oscd-menu-item
17
+ * @summary Menus display a list of choices on a temporary surface.
18
+ *
19
+ * Menu items are the selectable choices within the menu. Menu items must
20
+ * implement the `MenuItem` interface and also have the `Oscdmenu-item`
21
+ * attribute. Additionally menu items are list items so they must also have the
22
+ * `oscd-list-item` attribute.
23
+ *
24
+ * Menu items can control a menu by selectively firing the `close-menu` and
25
+ * `deselect-items` events.
26
+ *
27
+ * @final
28
+ * @suppress {visibility}
29
+ */
30
+ export declare class OscdMenuItem extends MenuItemEl {
31
+ static styles: CSSResultOrNative[];
32
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2022 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
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';
8
+ /**
9
+ * @tag oscd-menu-item
10
+ * @summary Menus display a list of choices on a temporary surface.
11
+ *
12
+ * Menu items are the selectable choices within the menu. Menu items must
13
+ * implement the `MenuItem` interface and also have the `Oscdmenu-item`
14
+ * attribute. Additionally menu items are list items so they must also have the
15
+ * `oscd-list-item` attribute.
16
+ *
17
+ * Menu items can control a menu by selectively firing the `close-menu` and
18
+ * `deselect-items` events.
19
+ *
20
+ * @final
21
+ * @suppress {visibility}
22
+ */
23
+ export class OscdMenuItem extends MenuItemEl {
24
+ static styles = [styles];
25
+ }
26
+ //# sourceMappingURL=OscdMenuItem.js.map
@@ -0,0 +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;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"]}
@@ -0,0 +1,7 @@
1
+ import { OscdMenuItem } from './OscdMenuItem.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-menu-item': OscdMenuItem;
5
+ }
6
+ }
7
+ export { OscdMenuItem };
@@ -0,0 +1,4 @@
1
+ import { OscdMenuItem } from './OscdMenuItem.js';
2
+ customElements.define('oscd-menu-item', OscdMenuItem);
3
+ export { OscdMenuItem };
4
+ //# sourceMappingURL=oscd-menu-item.js.map
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,7 @@
1
+ import { OscdMenu } from './OscdMenu.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-menu': OscdMenu;
5
+ }
6
+ }
7
+ export { OscdMenu };
@@ -0,0 +1,4 @@
1
+ import { OscdMenu } from './OscdMenu.js';
2
+ customElements.define('oscd-menu', OscdMenu);
3
+ export { OscdMenu };
4
+ //# sourceMappingURL=oscd-menu.js.map
@@ -0,0 +1 @@
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"]}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * @license
8
+ * Copyright 2025 OMICRON Electronics GmbH
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */
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
+ */
19
+ export declare class OscdNavigationDrawer extends NavigationDrawerModal {
20
+ static readonly styles: CSSResultOrNative[];
21
+ }
@@ -0,0 +1,43 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * @license
8
+ * Copyright 2025 OMICRON Electronics GmbH
9
+ * SPDX-License-Identifier: Apache-2.0
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';
15
+ const overrideStyles = css `
16
+ :host {
17
+ --md-navigation-drawer-modal-scrim-color: var(--md-sys-color-scrim, #000);
18
+ --md-navigation-drawer-modal-scrim-opacity: 0.32;
19
+ --md-navigation-drawer-modal-container-color: var(
20
+ --md-sys-color-surface-container
21
+ );
22
+ }
23
+ .md3-navigation-drawer-modal--opened {
24
+ z-index: 6;
25
+ }
26
+ .md3-navigation-drawer-modal__scrim {
27
+ z-index: 5;
28
+ }
29
+ `;
30
+ /**
31
+ * @tag oscd-navigation-drawer
32
+ * @summary Navigation drawers are temporary surfaces that display a list of
33
+ * choices.
34
+ *
35
+ */
36
+ export class OscdNavigationDrawer extends NavigationDrawerModal {
37
+ static styles = [
38
+ sharedStyles,
39
+ styles,
40
+ overrideStyles,
41
+ ];
42
+ }
43
+ //# sourceMappingURL=OscdNavigationDrawer.js.map
@@ -0,0 +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;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"]}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 OMICRON Electronics GmbH
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
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
+ export declare class OscdNavigationDrawerHeader extends ListItem {
14
+ static readonly styles: CSSResultOrNative[];
15
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2025 OMICRON Electronics GmbH
4
+ * SPDX-License-Identifier: Apache-2.0
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';
9
+ const overrideStyles = css `
10
+ :host {
11
+ --navigation-drawer-header-color: var(
12
+ --oscd-navigation-drawer-header-color,
13
+ var(--md-sys-color-on-primary, #1d1b20)
14
+ );
15
+ --navigation-drawer-header-background-color: var(
16
+ --oscd-navigation-drawer-header-background-color,
17
+ var(--md-sys-color-primary, #fff)
18
+ );
19
+
20
+ --md-list-item-label-text-font: var(
21
+ --oscd-navigation-drawer-header-text-font,
22
+ Roboto
23
+ );
24
+ --md-list-item-label-text-size: var(
25
+ --oscd-navigation-drawer-header-text-size,
26
+ 1.25rem
27
+ );
28
+ --md-list-item-label-text-line-height: var(
29
+ --oscd-navigation-drawer-header-text-line-height,
30
+ 1.5rem
31
+ );
32
+ --md-list-item-label-text-weight: var(
33
+ --oscd-navigation-drawer-header-text-weight,
34
+ 500
35
+ );
36
+
37
+ --md-list-item-supporting-text-font: var(
38
+ --oscd-navigation-drawer-header-supporting-text-font,
39
+ var(--md-sys-typescale-body-medium-font, Roboto)
40
+ );
41
+ --md-list-item-supporting-text-size: var(
42
+ --oscd-navigation-drawer-header-supporting-text-size,
43
+ 0.875rem
44
+ );
45
+ --md-list-item-supporting-text-line-height: var(
46
+ --oscd-navigation-drawer-header-supporting-text-line-height,
47
+ 1.25rem
48
+ );
49
+ --md-list-item-supporting-text-weight: var(
50
+ --oscd-navigation-drawer-header-supporting-text-weight,
51
+ 400
52
+ );
53
+ }
54
+ `;
55
+ /**
56
+ * @tag oscd-navigation-drawer-header
57
+ * @summary A header for the navigation drawer.
58
+ *
59
+ */
60
+ export class OscdNavigationDrawerHeader extends ListItem {
61
+ static styles = [
62
+ styles,
63
+ overrideStyles,
64
+ ];
65
+ }
66
+ //# sourceMappingURL=OscdNavigationDrawerHeader.js.map
@@ -0,0 +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;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"]}
@@ -0,0 +1,7 @@
1
+ import { OscdNavigationDrawerHeader } from './OscdNavigationDrawerHeader.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-navigation-drawer-header': OscdNavigationDrawerHeader;
5
+ }
6
+ }
7
+ export { OscdNavigationDrawerHeader };
@@ -0,0 +1,4 @@
1
+ import { OscdNavigationDrawerHeader } from './OscdNavigationDrawerHeader.js';
2
+ customElements.define('oscd-navigation-drawer-header', OscdNavigationDrawerHeader);
3
+ export { OscdNavigationDrawerHeader };
4
+ //# sourceMappingURL=oscd-navigation-drawer-header.js.map
@@ -0,0 +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,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"]}
@@ -0,0 +1,7 @@
1
+ import { OscdNavigationDrawer } from './OscdNavigationDrawer.js';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'oscd-navigation-drawer': OscdNavigationDrawer;
5
+ }
6
+ }
7
+ export { OscdNavigationDrawer };
@@ -0,0 +1,4 @@
1
+ import { OscdNavigationDrawer } from './OscdNavigationDrawer.js';
2
+ customElements.define('oscd-navigation-drawer', OscdNavigationDrawer);
3
+ export { OscdNavigationDrawer };
4
+ //# sourceMappingURL=oscd-navigation-drawer.js.map
@@ -0,0 +1 @@
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,11 +1,11 @@
1
1
  {
2
2
  "name": "@omicronenergy/oscd-ui",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "description": "UI Web Components set for OpenSCD",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "lint": "eslint . --ext .ts --ext .js && prettier \"**/*.ts\" --check --ignore-path .gitignore",
8
- "format": "eslint . --ext .ts --ext .js --fix && prettier \"**/*.ts\" --write --ignore-path .gitignore",
7
+ "lint": "eslint . --ext .ts",
8
+ "format": "eslint . --ext .ts --fix",
9
9
  "build": "wireit",
10
10
  "build:watch": "tsc --pretty --watch",
11
11
  "test": "wtr",
@@ -83,12 +83,13 @@
83
83
  "@typescript-eslint/parser": "^7.16.0",
84
84
  "@wc-toolkit/cem-inheritance": "^1.0.4",
85
85
  "@wc-toolkit/storybook-helpers": "^1.1.3",
86
- "@web/test-runner-core": "^0.13.0",
87
86
  "@web/test-runner": "^0.18.2",
87
+ "@web/test-runner-core": "^0.13.0",
88
88
  "@web/test-runner-playwright": "^0.11.0",
89
89
  "concurrently": "^9.0.1",
90
90
  "eslint": "^8.57.0",
91
91
  "eslint-config-prettier": "^9.1.0",
92
+ "eslint-plugin-prettier": "^5.4.1",
92
93
  "eslint-plugin-tsdoc": "^0.4.0",
93
94
  "husky": "^9.1.7",
94
95
  "jasmine": "^4.5.0",
@@ -145,11 +146,15 @@
145
146
  },
146
147
  "extends": [
147
148
  "@open-wc",
148
- "prettier"
149
+ "prettier",
150
+ "plugin:prettier/recommended"
149
151
  ],
150
152
  "ignorePatterns": [
151
153
  "*/**/*.js",
152
- "*/**/*.d.ts"
154
+ "*/**/*.d.ts",
155
+ "node_modules",
156
+ "coverage",
157
+ "doc"
153
158
  ],
154
159
  "env": {
155
160
  "jasmine": true
@@ -229,7 +234,8 @@
229
234
  "lint-staged": {
230
235
  "*.ts": [
231
236
  "eslint --fix --config package.json",
232
- "prettier --write"
237
+ "prettier --write",
238
+ "eslint --config package.json"
233
239
  ]
234
240
  }
235
241
  }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * @license
8
+ * Copyright 2025 OMICRON Electronics GmbH
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */
11
+ import { CSSResultOrNative } from 'lit';
12
+ import { FilledSelect } from '@material/web/select/internal/filled-select.js';
13
+ /**
14
+ * @tag oscd-filled-select
15
+ * @summary
16
+ * Select menus display a list of choices on temporary surfaces and display the
17
+ * currently selected menu item above the menu.
18
+ *
19
+ * The select component allows users to choose a value from a fixed list of
20
+ * available options. Composed of an interactive anchor button and a menu, it is
21
+ * analogous to the native HTML `<select>` element. This is the "filled"
22
+ * variant.
23
+ *
24
+ * @example
25
+ * ```html
26
+ * <oscd-filled-select label="fruits">
27
+ * <!-- An empty selected option will give select an "un-filled" state -->
28
+ * <oscd-select-option selected></oscd-select-option>
29
+ * <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
30
+ * <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
31
+ * <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
32
+ * <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
33
+ * <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
34
+ * </oscd-filled-select>
35
+ * ```
36
+ *
37
+ * @final
38
+ * @suppress {visibility}
39
+ */
40
+ export declare class OscdFilledSelect extends FilledSelect {
41
+ static styles: CSSResultOrNative[];
42
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
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';
9
+ /**
10
+ * @tag oscd-filled-select
11
+ * @summary
12
+ * Select menus display a list of choices on temporary surfaces and display the
13
+ * currently selected menu item above the menu.
14
+ *
15
+ * The select component allows users to choose a value from a fixed list of
16
+ * available options. Composed of an interactive anchor button and a menu, it is
17
+ * analogous to the native HTML `<select>` element. This is the "filled"
18
+ * variant.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <oscd-filled-select label="fruits">
23
+ * <!-- An empty selected option will give select an "un-filled" state -->
24
+ * <oscd-select-option selected></oscd-select-option>
25
+ * <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
26
+ * <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
27
+ * <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
28
+ * <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
29
+ * <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
30
+ * </oscd-filled-select>
31
+ * ```
32
+ *
33
+ * @final
34
+ * @suppress {visibility}
35
+ */
36
+ export class OscdFilledSelect extends FilledSelect {
37
+ static styles = [sharedStyles, styles];
38
+ }
39
+ //# sourceMappingURL=OscdFilledSelect.js.map
@@ -0,0 +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;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"]}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+ /**
7
+ * @license
8
+ * Copyright 2025 OMICRON Electronics GmbH
9
+ * SPDX-License-Identifier: Apache-2.0
10
+ */
11
+ import { CSSResultOrNative } from 'lit';
12
+ import { OutlinedSelect } from '@material/web/select/internal/outlined-select.js';
13
+ /**
14
+ * @tag oscd-outlined-select
15
+ * @summary
16
+ * Select menus display a list of choices on temporary surfaces and display the
17
+ * currently selected menu item above the menu.
18
+ *
19
+ * The select component allows users to choose a value from a fixed list of
20
+ * available options. Composed of an interactive anchor button and a menu, it is
21
+ * analogous to the native HTML `<select>` element. This is the "outlined"
22
+ * variant.
23
+ *
24
+ * @example
25
+ * ```html
26
+ * <oscd-outlined-select label="fruits">
27
+ * <!-- An empty selected option will give select an "un-filled" state -->
28
+ * <oscd-select-option selected></oscd-select-option>
29
+ * <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
30
+ * <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
31
+ * <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
32
+ * <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
33
+ * <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
34
+ * </oscd-outlined-select>
35
+ * ```
36
+ *
37
+ * @final
38
+ * @suppress {visibility}
39
+ */
40
+ export declare class OscdOutlinedSelect extends OutlinedSelect {
41
+ static styles: CSSResultOrNative[];
42
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: Apache-2.0
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';
9
+ /**
10
+ * @tag oscd-outlined-select
11
+ * @summary
12
+ * Select menus display a list of choices on temporary surfaces and display the
13
+ * currently selected menu item above the menu.
14
+ *
15
+ * The select component allows users to choose a value from a fixed list of
16
+ * available options. Composed of an interactive anchor button and a menu, it is
17
+ * analogous to the native HTML `<select>` element. This is the "outlined"
18
+ * variant.
19
+ *
20
+ * @example
21
+ * ```html
22
+ * <oscd-outlined-select label="fruits">
23
+ * <!-- An empty selected option will give select an "un-filled" state -->
24
+ * <oscd-select-option selected></oscd-select-option>
25
+ * <oscd-select-option value="apple" headline="Apple"></oscd-select-option>
26
+ * <oscd-select-option value="banana" headline="Banana"></oscd-select-option>
27
+ * <oscd-select-option value="kiwi" headline="Kiwi"></oscd-select-option>
28
+ * <oscd-select-option value="orange" headline="Orange"></oscd-select-option>
29
+ * <oscd-select-option value="tomato" headline="Tomato"></oscd-select-option>
30
+ * </oscd-outlined-select>
31
+ * ```
32
+ *
33
+ * @final
34
+ * @suppress {visibility}
35
+ */
36
+ export class OscdOutlinedSelect extends OutlinedSelect {
37
+ static styles = [sharedStyles, styles];
38
+ }
39
+ //# sourceMappingURL=OscdOutlinedSelect.js.map
@@ -0,0 +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;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"]}