@redvars/peacock 3.2.10 → 3.3.1

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 (242) hide show
  1. package/dist/{PeacockComponent-CxJc63xj.js → IndividualComponent-tDnXrOLV.js} +3 -3
  2. package/dist/IndividualComponent-tDnXrOLV.js.map +1 -0
  3. package/dist/assets/components.css +1 -1
  4. package/dist/assets/components.css.map +1 -1
  5. package/dist/assets/styles.css +1 -1
  6. package/dist/assets/styles.css.map +1 -1
  7. package/dist/button-group-DA7xoziD.js +292 -0
  8. package/dist/button-group-DA7xoziD.js.map +1 -0
  9. package/dist/button-group.js +6 -107
  10. package/dist/button-group.js.map +1 -1
  11. package/dist/{button-DaL4va7Q.js → button-trIfcqC7.js} +21 -35
  12. package/dist/button-trIfcqC7.js.map +1 -0
  13. package/dist/button.js +5 -5
  14. package/dist/chart-donut.js +307 -0
  15. package/dist/chart-donut.js.map +1 -0
  16. package/dist/chart-doughnut.js +307 -0
  17. package/dist/chart-doughnut.js.map +1 -0
  18. package/dist/chart-pie.js +259 -0
  19. package/dist/chart-pie.js.map +1 -0
  20. package/dist/{class-map-BvQRv7eW.js → class-map-hJdvjl-W.js} +9 -3
  21. package/dist/class-map-hJdvjl-W.js.map +1 -0
  22. package/dist/clock.js +5 -6
  23. package/dist/clock.js.map +1 -1
  24. package/dist/code-editor.js +38 -25
  25. package/dist/code-editor.js.map +1 -1
  26. package/dist/code-highlighter.js +10 -14
  27. package/dist/code-highlighter.js.map +1 -1
  28. package/dist/custom-elements-jsdocs.json +8144 -3654
  29. package/dist/custom-elements.json +7925 -3901
  30. package/dist/{dispatch-event-utils-vbdiOSeC.js → dispatch-event-utils-B4odODQf.js} +2 -15
  31. package/dist/dispatch-event-utils-B4odODQf.js.map +1 -0
  32. package/dist/index.js +13 -10
  33. package/dist/index.js.map +1 -1
  34. package/dist/number-counter.js +12 -10
  35. package/dist/number-counter.js.map +1 -1
  36. package/dist/{observe-theme-change-NneLARW8.js → observe-theme-change-BISF-Gl5.js} +2 -2
  37. package/dist/{observe-theme-change-NneLARW8.js.map → observe-theme-change-BISF-Gl5.js.map} +1 -1
  38. package/dist/peacock-loader.js +94 -502
  39. package/dist/peacock-loader.js.map +1 -1
  40. package/dist/query-QBcUV-L_.js +15 -0
  41. package/dist/query-QBcUV-L_.js.map +1 -0
  42. package/dist/src/IndividualComponent.d.ts +1 -0
  43. package/dist/src/accordion/{accordion-item/accordion-item.d.ts → accordion-item.d.ts} +5 -4
  44. package/dist/src/accordion/{accordion/accordion.d.ts → accordion.d.ts} +6 -6
  45. package/dist/src/accordion/{accordion-item/index.d.ts → index.d.ts} +1 -0
  46. package/dist/src/avatar/avatar.d.ts +2 -2
  47. package/dist/src/badge/badge.d.ts +2 -2
  48. package/dist/src/breadcrumb/breadcrumb/breadcrumb.d.ts +9 -8
  49. package/dist/src/breadcrumb/breadcrumb-item/breadcrumb-item.d.ts +4 -3
  50. package/dist/src/button/button/button.d.ts +2 -2
  51. package/dist/src/button/button-group/button-group.d.ts +9 -5
  52. package/dist/src/button/icon-button/icon-button.d.ts +2 -2
  53. package/dist/src/chart-donut/chart-donut.d.ts +53 -0
  54. package/dist/src/chart-donut/index.d.ts +1 -0
  55. package/dist/src/chart-doughnut/chart-doughnut.d.ts +53 -0
  56. package/dist/src/chart-doughnut/index.d.ts +1 -0
  57. package/dist/src/chart-pie/chart-pie.d.ts +50 -0
  58. package/dist/src/chart-pie/index.d.ts +1 -0
  59. package/dist/src/checkbox/checkbox.d.ts +3 -6
  60. package/dist/src/chip/chip/chip.d.ts +4 -4
  61. package/dist/src/chip/tag/tag.d.ts +3 -3
  62. package/dist/src/clock/clock.d.ts +3 -4
  63. package/dist/src/code-editor/code-editor.d.ts +13 -10
  64. package/dist/src/code-highlighter/code-highlighter.d.ts +4 -7
  65. package/dist/src/container/container.d.ts +6 -11
  66. package/dist/src/date-picker/date-picker.d.ts +3 -3
  67. package/dist/src/divider/divider.d.ts +2 -2
  68. package/dist/src/elevation/elevation.d.ts +2 -2
  69. package/dist/src/empty-state/empty-state.d.ts +9 -2
  70. package/dist/src/field/field.d.ts +17 -0
  71. package/dist/src/focus-ring/focus-ring.d.ts +1 -1
  72. package/dist/src/icon/icon.d.ts +2 -2
  73. package/dist/src/image/image.d.ts +4 -12
  74. package/dist/src/index.d.ts +9 -1
  75. package/dist/src/input/input.d.ts +2 -2
  76. package/dist/src/link/link.d.ts +4 -5
  77. package/dist/src/menu/index.d.ts +3 -0
  78. package/dist/src/menu/menu/MenuSurfaceController.d.ts +18 -0
  79. package/dist/src/menu/menu/menu.d.ts +66 -8
  80. package/dist/src/menu/menu-item/menu-item.d.ts +24 -5
  81. package/dist/src/menu/sub-menu/sub-menu.d.ts +36 -0
  82. package/dist/src/number-counter/number-counter.d.ts +9 -7
  83. package/dist/src/number-field/number-field.d.ts +1 -1
  84. package/dist/src/pagination/index.d.ts +1 -0
  85. package/dist/src/pagination/pagination.d.ts +38 -0
  86. package/dist/src/popover/PopoverController.d.ts +4 -1
  87. package/dist/src/popover/index.d.ts +1 -1
  88. package/dist/src/progress/circular-progress/circular-progress.d.ts +3 -3
  89. package/dist/src/progress/linear-progress/linear-progress.d.ts +3 -3
  90. package/dist/src/ripple/ripple.d.ts +60 -4
  91. package/dist/src/skeleton/skeleton.d.ts +6 -5
  92. package/dist/src/slider/index.d.ts +1 -0
  93. package/dist/src/slider/slider.d.ts +52 -0
  94. package/dist/src/spinner/spinner.d.ts +2 -2
  95. package/dist/src/switch/switch.d.ts +2 -2
  96. package/dist/src/table/index.d.ts +1 -0
  97. package/dist/src/table/table.d.ts +110 -0
  98. package/dist/src/tabs/index.d.ts +4 -0
  99. package/dist/src/tabs/tab-group.d.ts +45 -0
  100. package/dist/src/tabs/tab-panel.d.ts +22 -0
  101. package/dist/src/tabs/tab.d.ts +59 -0
  102. package/dist/src/tabs/tabs.d.ts +29 -0
  103. package/dist/src/textarea/textarea.d.ts +3 -3
  104. package/dist/src/time-picker/time-picker.d.ts +3 -3
  105. package/dist/src/{popover/tooltip → tooltip}/tooltip.d.ts +4 -3
  106. package/dist/src/tree-view/index.d.ts +2 -0
  107. package/dist/src/tree-view/tree-node.d.ts +69 -0
  108. package/dist/src/tree-view/tree-view.d.ts +40 -0
  109. package/dist/src/tree-view/wc-tree-view.d.ts +6 -0
  110. package/dist/{style-map-B8xgVEc9.js → style-map-CfNHEkQp.js} +2 -2
  111. package/dist/{style-map-B8xgVEc9.js.map → style-map-CfNHEkQp.js.map} +1 -1
  112. package/dist/test/icon.test.d.ts +1 -1
  113. package/dist/test/menu.test.d.ts +1 -0
  114. package/dist/test/sub-menu.test.d.ts +1 -0
  115. package/dist/test/tree-view.test.d.ts +1 -0
  116. package/dist/transform-DRuHEvar.js +3312 -0
  117. package/dist/transform-DRuHEvar.js.map +1 -0
  118. package/dist/{image-v3BujlY5.js → tree-view-CLolVlU0.js} +4088 -672
  119. package/dist/tree-view-CLolVlU0.js.map +1 -0
  120. package/dist/tsconfig.tsbuildinfo +1 -1
  121. package/dist/{unsafe-html-B-dV3Jps.js → unsafe-html-CV6Je6HL.js} +2 -2
  122. package/dist/{unsafe-html-B-dV3Jps.js.map → unsafe-html-CV6Je6HL.js.map} +1 -1
  123. package/package.json +3 -1
  124. package/readme.md +40 -40
  125. package/src/{PeacockComponent.ts → IndividualComponent.ts} +1 -1
  126. package/src/accordion/{accordion-item/accordion-item.scss → accordion-item.scss} +1 -1
  127. package/src/accordion/{accordion-item/accordion-item.ts → accordion-item.ts} +7 -6
  128. package/src/accordion/{accordion/accordion.scss → accordion.scss} +2 -1
  129. package/src/accordion/{accordion/accordion.ts → accordion.ts} +6 -6
  130. package/src/accordion/{accordion-item/index.ts → index.ts} +2 -0
  131. package/src/avatar/avatar.ts +2 -2
  132. package/src/badge/badge.ts +2 -2
  133. package/src/breadcrumb/breadcrumb/breadcrumb.ts +10 -8
  134. package/src/breadcrumb/breadcrumb-item/breadcrumb-item.ts +4 -3
  135. package/src/button/BaseButton.ts +1 -1
  136. package/src/button/button/button.scss +9 -23
  137. package/src/button/button/button.ts +8 -8
  138. package/src/button/button-group/button-group.ts +13 -7
  139. package/src/button/icon-button/icon-button.ts +8 -8
  140. package/src/chart-donut/chart-donut.scss +37 -0
  141. package/src/chart-donut/chart-donut.ts +287 -0
  142. package/src/chart-donut/demo/index.html +51 -0
  143. package/src/chart-donut/index.ts +1 -0
  144. package/src/chart-doughnut/chart-donut.scss +37 -0
  145. package/src/chart-doughnut/chart-doughnut.ts +287 -0
  146. package/src/chart-doughnut/demo/index.html +51 -0
  147. package/src/chart-doughnut/index.ts +1 -0
  148. package/src/chart-pie/chart-pie.scss +27 -0
  149. package/src/chart-pie/chart-pie.ts +256 -0
  150. package/src/chart-pie/demo/index.html +51 -0
  151. package/src/chart-pie/index.ts +1 -0
  152. package/src/checkbox/checkbox.ts +3 -6
  153. package/src/chip/chip/chip.ts +6 -6
  154. package/src/chip/tag/tag.ts +6 -6
  155. package/src/clock/clock.ts +5 -6
  156. package/src/code-editor/code-editor.scss +3 -5
  157. package/src/code-editor/code-editor.ts +32 -16
  158. package/src/code-highlighter/code-highlighter.ts +8 -11
  159. package/src/container/container.ts +6 -11
  160. package/src/date-picker/date-picker.ts +7 -7
  161. package/src/divider/divider.scss +2 -2
  162. package/src/divider/divider.ts +2 -2
  163. package/src/elevation/elevation.ts +2 -2
  164. package/src/empty-state/empty-state.scss +1 -1
  165. package/src/empty-state/empty-state.ts +10 -3
  166. package/src/field/field.scss +4 -4
  167. package/src/field/field.ts +19 -2
  168. package/src/focus-ring/focus-ring.scss +2 -1
  169. package/src/focus-ring/focus-ring.ts +1 -1
  170. package/src/icon/icon.ts +2 -2
  171. package/src/icon/p-icon.ts +1 -1
  172. package/src/image/image.ts +4 -12
  173. package/src/index.ts +11 -3
  174. package/src/input/input.ts +6 -6
  175. package/src/link/link.ts +4 -5
  176. package/src/menu/index.ts +3 -0
  177. package/src/menu/menu/MenuSurfaceController.ts +61 -0
  178. package/src/menu/{menu-list/menu-list.scss → menu/menu.scss} +19 -4
  179. package/src/menu/menu/menu.ts +401 -77
  180. package/src/menu/menu-item/menu-item-colors.scss +2 -2
  181. package/src/menu/menu-item/menu-item.ts +128 -37
  182. package/src/menu/sub-menu/sub-menu.scss +7 -0
  183. package/src/menu/sub-menu/sub-menu.ts +243 -0
  184. package/src/number-counter/demo/index.html +1 -1
  185. package/src/number-counter/number-counter.ts +11 -9
  186. package/src/number-field/number-field.ts +7 -7
  187. package/src/pagination/index.ts +1 -0
  188. package/src/pagination/pagination.scss +59 -0
  189. package/src/pagination/pagination.ts +135 -0
  190. package/src/peacock-loader.ts +92 -51
  191. package/src/popover/PopoverController.ts +13 -7
  192. package/src/popover/index.ts +1 -1
  193. package/src/progress/circular-progress/circular-progress.scss +1 -1
  194. package/src/progress/circular-progress/circular-progress.ts +3 -3
  195. package/src/progress/linear-progress/linear-progress.ts +3 -3
  196. package/src/ripple/ripple.ts +478 -94
  197. package/src/skeleton/skeleton.ts +6 -5
  198. package/src/slider/index.ts +1 -0
  199. package/src/slider/slider.scss +130 -0
  200. package/src/slider/slider.ts +178 -0
  201. package/src/spinner/spinner.ts +2 -2
  202. package/src/switch/switch.ts +4 -4
  203. package/src/table/index.ts +1 -0
  204. package/src/table/table.scss +174 -0
  205. package/src/table/table.ts +475 -0
  206. package/src/tabs/index.ts +4 -0
  207. package/src/tabs/tab-group.scss +10 -0
  208. package/src/tabs/tab-group.ts +143 -0
  209. package/src/tabs/tab-panel.scss +12 -0
  210. package/src/tabs/tab-panel.ts +29 -0
  211. package/src/tabs/tab.scss +157 -0
  212. package/src/tabs/tab.ts +243 -0
  213. package/src/tabs/tabs.scss +19 -0
  214. package/src/tabs/tabs.ts +66 -0
  215. package/src/text/text.css-component.scss +6 -3
  216. package/src/textarea/textarea.ts +5 -5
  217. package/src/time-picker/time-picker.ts +7 -7
  218. package/src/{popover/tooltip → tooltip}/tooltip.scss +17 -14
  219. package/src/{popover/tooltip → tooltip}/tooltip.ts +12 -10
  220. package/src/tree-view/demo/index.html +57 -0
  221. package/src/tree-view/index.ts +2 -0
  222. package/src/tree-view/tree-node.scss +101 -0
  223. package/src/tree-view/tree-node.ts +268 -0
  224. package/src/tree-view/tree-view.scss +12 -0
  225. package/src/tree-view/tree-view.ts +182 -0
  226. package/src/tree-view/wc-tree-view.ts +9 -0
  227. package/dist/PeacockComponent-CxJc63xj.js.map +0 -1
  228. package/dist/button-DaL4va7Q.js.map +0 -1
  229. package/dist/class-map-BvQRv7eW.js.map +0 -1
  230. package/dist/dispatch-event-utils-vbdiOSeC.js.map +0 -1
  231. package/dist/image-v3BujlY5.js.map +0 -1
  232. package/dist/src/PeacockComponent.d.ts +0 -1
  233. package/dist/src/accordion/accordion/index.d.ts +0 -1
  234. package/dist/src/avatar/p-avatar.d.ts +0 -3
  235. package/dist/src/badge/p-badge.d.ts +0 -3
  236. package/dist/src/menu/menu-list/menu-list.d.ts +0 -7
  237. package/dist/state-B09bP3XH.js +0 -10
  238. package/dist/state-B09bP3XH.js.map +0 -1
  239. package/src/accordion/accordion/index.ts +0 -1
  240. package/src/avatar/p-avatar.ts +0 -5
  241. package/src/badge/p-badge.ts +0 -5
  242. package/src/menu/menu-list/menu-list.ts +0 -33
@@ -0,0 +1,38 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Pagination
4
+ * @tag wc-pagination
5
+ * @rawTag pagination
6
+ * @summary A pagination control with page size selector, item count display, and previous/next navigation.
7
+ * @overview
8
+ * <p>The pagination component provides controls for navigating through paged data sets.</p>
9
+ *
10
+ * @fires {CustomEvent} page - Dispatched when the page or page size changes. Detail: `{ page, pageSize }`.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <wc-pagination page="1" page-size="10" total-items="100"></wc-pagination>
15
+ * ```
16
+ * @tags navigation, data
17
+ */
18
+ export declare class Pagination extends LitElement {
19
+ static styles: import("lit").CSSResultGroup[];
20
+ /**
21
+ * The current page number (1-based). Defaults to `1`.
22
+ */
23
+ page: number;
24
+ /**
25
+ * The number of rows per page. Defaults to `10`.
26
+ */
27
+ pageSize: number;
28
+ /**
29
+ * Total number of items.
30
+ */
31
+ totalItems: number;
32
+ /**
33
+ * Supported page size options.
34
+ */
35
+ pageSizes: number[];
36
+ private dispatchPageEvent;
37
+ render(): import("lit-html").TemplateResult<1>;
38
+ }
@@ -8,6 +8,9 @@ export declare class PopoverController implements ReactiveController {
8
8
  placement: Placement;
9
9
  offset: number;
10
10
  });
11
- updatePosition(reference: HTMLElement | null, floating: HTMLElement): Promise<void>;
11
+ updatePosition(reference: HTMLElement | null, floating: HTMLElement, options?: {
12
+ placement?: Placement;
13
+ offset?: number;
14
+ }): Promise<void>;
12
15
  hostDisconnected(): void;
13
16
  }
@@ -1 +1 @@
1
- export { Tooltip } from './tooltip/tooltip.js';
1
+ export { Tooltip } from '../tooltip/tooltip.js';
@@ -1,14 +1,14 @@
1
1
  import { BaseProgress } from '../base-progress.js';
2
2
  /**
3
3
  * @label Circular Progress
4
- * @tag circular-progress
4
+ * @tag wc-circular-progress
5
5
  * @rawTag circular-progress
6
- *
7
6
  * @summary A circular progress indicator is a visual representation of progress toward a specific goal.
7
+ * @tags display
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <circular-progress value="30"></circular-progress>
11
+ * <wc-circular-progress value="30"></wc-circular-progress>
12
12
  * ```
13
13
  */
14
14
  export declare class CircularProgress extends BaseProgress {
@@ -1,14 +1,14 @@
1
1
  import { BaseProgress } from '../base-progress.js';
2
2
  /**
3
3
  * @label Linear Progress
4
- * @tag linear-progress
4
+ * @tag wc-linear-progress
5
5
  * @rawTag linear-progress
6
- *
7
6
  * @summary A linear progress indicator is a visual representation of progress toward a specific goal.
7
+ * @tags display
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <linear-progress value="30" style="width:10rem"></linear-progress>
11
+ * <wc-linear-progress value="30" style="width:10rem"></wc-linear-progress>
12
12
  * ```
13
13
  */
14
14
  export declare class LinearProgress extends BaseProgress {
@@ -1,9 +1,65 @@
1
- import { LitElement } from 'lit';
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ /**
3
+ * @label Ripple
4
+ * @tag wc-ripple
5
+ * @rawTag ripple
6
+ *
7
+ * @summary Provides ripple effect for interactive elements.
8
+ * @overview
9
+ * <p>Ripple creates a visual feedback effect when users interact with buttons or other clickable elements.</p>
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <button style="position: relative;">
14
+ * <wc-ripple></wc-ripple>
15
+ * Click me
16
+ * </button>
17
+ * ```
18
+ * @tags display
19
+ */
2
20
  export declare class Ripple extends LitElement {
3
21
  static styles: import("lit").CSSResult;
22
+ /**
23
+ * Disables the ripple.
24
+ */
25
+ disabled: boolean;
26
+ private hovered;
27
+ private pressed;
28
+ private readonly mdRoot;
29
+ private rippleSize;
30
+ private rippleScale;
31
+ private initialSize;
32
+ private growAnimation?;
33
+ private state;
34
+ private rippleStartEvent?;
4
35
  connectedCallback(): void;
5
36
  disconnectedCallback(): void;
6
- _setupParent(): void;
7
- _createRipple: (event: PointerEvent) => void;
8
- render(): import("lit-html").TemplateResult<1>;
37
+ attach(control: HTMLElement): void;
38
+ detach(): void;
39
+ protected render(): import("lit-html").TemplateResult<1>;
40
+ protected update(changedProps: PropertyValues<Ripple>): void;
41
+ handlePointerenter(event: PointerEvent): void;
42
+ handlePointerleave(event: PointerEvent): void;
43
+ private handlePointerup;
44
+ private handlePointerdown;
45
+ private handleClick;
46
+ private handlePointercancel;
47
+ private handleContextmenu;
48
+ private determineRippleSize;
49
+ private getTranslationCoordinates;
50
+ private startPressAnimation;
51
+ private endPressAnimation;
52
+ /**
53
+ * Returns `true` if
54
+ * - the ripple element is enabled
55
+ * - the pointer is primary for the input type
56
+ * - the pointer is the pointer that started the interaction, or will start
57
+ * the interaction
58
+ * - the pointer is a touch, or the pointer state has the primary button
59
+ * held, or the pointer is hovering
60
+ */
61
+ private shouldReactToEvent;
62
+ private isTouch;
63
+ handleEvent(event: Event): Promise<void>;
64
+ private getNormalizedPointerEventCoords;
9
65
  }
@@ -1,14 +1,15 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Skeleton
4
- *
5
- * @tag base-skeleton
4
+ * @tag wc-skeleton
6
5
  * @rawTag skeleton
7
- *
8
6
  * @summary Adds a skeleton effect to an element.
9
- *
10
- *
11
7
  * @tags display
8
+ *
9
+ * @example
10
+ * ```html
11
+ * <wc-skeleton visible></wc-skeleton>
12
+ * ```
12
13
  */
13
14
  export declare class Skeleton extends LitElement {
14
15
  static styles: import("lit").CSSResultGroup[];
@@ -0,0 +1 @@
1
+ export { Slider } from './slider.js';
@@ -0,0 +1,52 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Slider
4
+ * @tag wc-slider
5
+ * @rawTag slider
6
+ *
7
+ * @summary Sliders allow users to make selections from a range of values.
8
+ *
9
+ * @fires {CustomEvent} input - Dispatched when the slider value changes during interaction.
10
+ * @fires {CustomEvent} change - Dispatched when the slider interaction ends.
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <wc-slider min="0" max="100" value="50"></wc-slider>
15
+ * ```
16
+ */
17
+ export declare class Slider extends LitElement {
18
+ static styles: import("lit").CSSResultGroup[];
19
+ /**
20
+ * The minimum value of the slider.
21
+ */
22
+ min: number;
23
+ /**
24
+ * The maximum value of the slider.
25
+ */
26
+ max: number;
27
+ /**
28
+ * The current value of the slider.
29
+ */
30
+ value: number;
31
+ /**
32
+ * The step increment for the slider.
33
+ */
34
+ step: number;
35
+ /**
36
+ * Whether the slider is disabled.
37
+ */
38
+ disabled: boolean;
39
+ /**
40
+ * Whether to show labels on the slider.
41
+ */
42
+ labeled: boolean;
43
+ private isDragging;
44
+ private container;
45
+ private thumbElement;
46
+ private handleInput;
47
+ private onMouseDown;
48
+ private onMouseMove;
49
+ private onMouseUp;
50
+ private handleKeyDown;
51
+ render(): import("lit-html").TemplateResult<1>;
52
+ }
@@ -1,7 +1,7 @@
1
1
  import { LitElement } from 'lit';
2
2
  /**
3
3
  * @label Spinner
4
- * @tag base-spinner
4
+ * @tag wc-spinner
5
5
  * @rawTag spinner
6
6
  * @summary A spinner component that animates a circular shape.
7
7
  * @cssprop --spinner-track-color - The color of the track.
@@ -10,7 +10,7 @@ import { LitElement } from 'lit';
10
10
  *
11
11
  * @example
12
12
  * ```html
13
- * <base-spinner></base-spinner>
13
+ * <wc-spinner></wc-spinner>
14
14
  * ```
15
15
  */
16
16
  export declare class Spinner extends LitElement {
@@ -2,7 +2,7 @@ import { nothing } from 'lit';
2
2
  import BaseInput from '../input/BaseInput.js';
3
3
  /**
4
4
  * @label Switch
5
- * @tag base-switch
5
+ * @tag wc-switch
6
6
  * @rawTag switch
7
7
  *
8
8
  * @summary Captures boolean input with an on/off switch interaction.
@@ -22,7 +22,7 @@ import BaseInput from '../input/BaseInput.js';
22
22
  *
23
23
  * @example
24
24
  * ```html
25
- * <base-switch value="true"></base-switch>
25
+ * <wc-switch value="true"></wc-switch>
26
26
  * ```
27
27
  * @tags input, form
28
28
  */
@@ -0,0 +1 @@
1
+ export { Table } from './table.js';
@@ -0,0 +1,110 @@
1
+ import { LitElement } from 'lit';
2
+ export interface TableColumn {
3
+ name: string;
4
+ label: string;
5
+ width?: number;
6
+ fixed?: boolean;
7
+ template?: (row: any, column: TableColumn) => string;
8
+ }
9
+ /**
10
+ * @label Table
11
+ * @tag wc-table
12
+ * @rawTag table
13
+ * @summary A configurable component for displaying tabular data.
14
+ * @overview
15
+ * <p>The table component displays rows of data with support for sorting, pagination, row selection, and fixed columns.</p>
16
+ *
17
+ * @fires {CustomEvent} cell-click - Dispatched when a table cell is clicked.
18
+ * @fires {CustomEvent} selection-change - Dispatched when the row selection changes.
19
+ * @fires {CustomEvent} sort - Dispatched when the table is sorted.
20
+ * @fires {CustomEvent} page - Dispatched when the page or page size changes.
21
+ *
22
+ * @example
23
+ * ```html
24
+ * <wc-table columns="[{'name': 'name','label': 'Name','width': 16},{'name': 'age','label': 'Age','width': 7}]" data="[{'name': 'John','age': 30},{'name': 'Jane','age': 25}]"></wc-table>
25
+ * ```
26
+ * @tags display, data
27
+ */
28
+ export declare class Table extends LitElement {
29
+ static styles: import("lit").CSSResultGroup[];
30
+ /**
31
+ * Grid columns configuration.
32
+ * Each column can have: name, label, width (px), fixed (boolean), template (function).
33
+ */
34
+ columns: TableColumn[];
35
+ /**
36
+ * Grid data to display on table.
37
+ */
38
+ data: any[];
39
+ /**
40
+ * Row selection type. Set to `"checkbox"` to enable checkbox selection.
41
+ */
42
+ selectionType: 'checkbox' | undefined;
43
+ /**
44
+ * Array of selected row key values.
45
+ */
46
+ selectedRowKeys: string[];
47
+ /**
48
+ * The field name used as the unique key for each row. Defaults to `"id"`.
49
+ */
50
+ keyField: string;
51
+ /**
52
+ * If true, sorting and pagination are managed externally (controlled mode).
53
+ */
54
+ managed: boolean;
55
+ /**
56
+ * If true, columns are sortable. Defaults to `true`.
57
+ */
58
+ sortable: boolean;
59
+ /**
60
+ * The field name currently used for sorting.
61
+ */
62
+ sortBy: string;
63
+ /**
64
+ * The current sort order. Possible values are `"asc"` and `"desc"`. Defaults to `"asc"`.
65
+ */
66
+ sortOrder: 'asc' | 'desc';
67
+ /**
68
+ * If true, pagination is enabled. Defaults to `true`.
69
+ */
70
+ paginate: boolean;
71
+ /**
72
+ * The current page number (1-based). Defaults to `1`.
73
+ */
74
+ page: number;
75
+ /**
76
+ * The number of rows per page. Defaults to `10`.
77
+ */
78
+ pageSize: number;
79
+ /**
80
+ * Total number of items (used in managed/controlled mode).
81
+ */
82
+ totalItems: number | undefined;
83
+ /**
84
+ * Headline text shown when the table has no data.
85
+ */
86
+ emptyStateHeadline: string;
87
+ /**
88
+ * Description text shown when the table has no data.
89
+ */
90
+ emptyStateDescription: string;
91
+ private hoveredCell;
92
+ private isSelectAll;
93
+ private isSelectAllIntermediate;
94
+ private isHorizontallyScrolled;
95
+ private onCellMouseOverThrottled;
96
+ private onSelectAllClick;
97
+ private onRowSelectClick;
98
+ private onSelectChange;
99
+ private onCellClick;
100
+ private onScrollContainer;
101
+ private get totalColumnsWidth();
102
+ private getTotalItems;
103
+ private getSortIcon;
104
+ private onSortClick;
105
+ private renderHeader;
106
+ private renderBody;
107
+ private renderEmptyState;
108
+ private renderPagination;
109
+ render(): import("lit-html").TemplateResult<1>;
110
+ }
@@ -0,0 +1,4 @@
1
+ export { Tab } from './tab.js';
2
+ export { TabGroup } from './tab-group.js';
3
+ export { TabPanel } from './tab-panel.js';
4
+ export { Tabs } from './tabs.js';
@@ -0,0 +1,45 @@
1
+ import { LitElement } from 'lit';
2
+ import { Tabs } from './tabs.js';
3
+ import { TabPanel } from './tab-panel.js';
4
+ /**
5
+ * @label Tab Group
6
+ * @tag wc-tab-group
7
+ * @rawTag tab-group
8
+ *
9
+ * @summary The tab group component is used to display multiple panels of content in a container.
10
+ * @overview
11
+ * <p>The tab group component allows users to switch between different views or content sections.</p>
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <wc-tab-group>
16
+ *
17
+ * <wc-tabs>
18
+ * <wc-tab selected >Tab 1</wc-tab>
19
+ * <wc-tab>Tab 2</wc-tab>
20
+ * </wc-tabs>
21
+ *
22
+ * <wc-tab-panel>Panel 1</wc-tab-panel>
23
+ * <wc-tab-panel>Panel 2</wc-tab-panel>
24
+ * </wc-tab-group>
25
+ * ```
26
+ * @tags navigation
27
+ */
28
+ export declare class TabGroup extends LitElement {
29
+ static styles: import("lit").CSSResultGroup[];
30
+ static Tabs: typeof Tabs;
31
+ static TabPanel: typeof TabPanel;
32
+ variant: 'line' | 'line-secondary' | 'contained' | 'pill';
33
+ private uid;
34
+ connectedCallback(): void;
35
+ disconnectedCallback(): void;
36
+ firstUpdated(): void;
37
+ private onTabClick;
38
+ selectTab(target: string): void;
39
+ private getTabs;
40
+ private getTabPanels;
41
+ private getTabList;
42
+ private tabsHaveTarget;
43
+ private initializeTabs;
44
+ render(): import("lit-html").TemplateResult<1>;
45
+ }
@@ -0,0 +1,22 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Tab Panel
4
+ * @tag wc-tab-panel
5
+ * @rawTag tab-panel
6
+ * @parentRawTag tab-group
7
+ *
8
+ * @summary Content panel for tabs.
9
+ * @overview
10
+ * <p>TabPanel contains the content associated with a tab.</p>
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <wc-tab-panel>Content for this tab</wc-tab-panel>
15
+ * ```
16
+ * @tags navigation
17
+ */
18
+ export declare class TabPanel extends LitElement {
19
+ static styles: import("lit").CSSResultGroup[];
20
+ value?: string;
21
+ render(): import("lit-html").TemplateResult<1>;
22
+ }
@@ -0,0 +1,59 @@
1
+ import { LitElement, nothing } from 'lit';
2
+ /**
3
+ * @label Tab
4
+ * @tag wc-tab
5
+ * @rawTag tab
6
+ * @parentRawTag tabs
7
+ *
8
+ * @summary A tab component for use within tabs.
9
+ * @overview
10
+ * <p>Tab represents an individual tab in a tabs component.</p>
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <wc-tab>Tab Label</wc-tab>
15
+ * ```
16
+ * @tags navigation
17
+ */
18
+ export declare class Tab extends LitElement {
19
+ #private;
20
+ static styles: import("lit").CSSResultGroup[];
21
+ active: boolean;
22
+ disabled: boolean;
23
+ disabledReason: string;
24
+ icon?: string;
25
+ label?: string;
26
+ value?: string;
27
+ configAria?: {
28
+ [key: string]: any;
29
+ };
30
+ /**
31
+ * Sets or retrieves the window or frame at which to target content.
32
+ */
33
+ target: string;
34
+ href?: string;
35
+ /**
36
+ * Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
37
+ */
38
+ throttleDelay: number;
39
+ hasFocus: boolean;
40
+ slotHasContent: boolean;
41
+ /**
42
+ * States
43
+ */
44
+ isPressed: boolean;
45
+ private _tabindex;
46
+ readonly tabElement: HTMLElement | null;
47
+ focus(): void;
48
+ blur(): void;
49
+ constructor();
50
+ firstUpdated(): void;
51
+ __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
52
+ __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
53
+ __handlePress: (event: KeyboardEvent | MouseEvent) => void;
54
+ __isLink(): boolean;
55
+ render(): import("lit-html").TemplateResult<1>;
56
+ renderTabContent(): import("lit-html").TemplateResult<1>;
57
+ __getDisabledReasonID(): string | typeof nothing;
58
+ __renderDisabledReason(): typeof nothing | import("lit-html").TemplateResult<1>;
59
+ }
@@ -0,0 +1,29 @@
1
+ import { LitElement } from 'lit';
2
+ import { Tab } from './tab.js';
3
+ /**
4
+ * @label Tabs
5
+ * @tag wc-tabs
6
+ * @rawTag tabs
7
+ *
8
+ * @summary Container for tab components.
9
+ * @overview
10
+ * <p>Tabs holds the tab buttons and manages their layout.</p>
11
+ *
12
+ * @example
13
+ * ```html
14
+ * <wc-tabs>
15
+ * <wc-tab>Tab 1</wc-tab>
16
+ * <wc-tab>Tab 2</wc-tab>
17
+ * </wc-tabs>
18
+ * ```
19
+ * @tags navigation
20
+ */
21
+ export declare class Tabs extends LitElement {
22
+ static styles: import("lit").CSSResultGroup[];
23
+ static Tab: typeof Tab;
24
+ managed: boolean;
25
+ connectedCallback(): void;
26
+ disconnectedCallback(): void;
27
+ private __handleTabClick;
28
+ render(): import("lit-html").TemplateResult<1>;
29
+ }
@@ -1,14 +1,14 @@
1
1
  import BaseInput from '../input/BaseInput.js';
2
2
  /**
3
3
  * @label Textarea
4
- * @tag textarea-field
4
+ * @tag wc-textarea
5
5
  * @rawTag textarea
6
- *
7
6
  * @summary The Textarea component is used to capture user input.
7
+ * @tags input
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <textarea-field label="Name" required placeholder="Enter your name"></textarea-field>
11
+ * <wc-textarea label="Description" placeholder="Enter text"></wc-textarea>
12
12
  * ```
13
13
  */
14
14
  export declare class Textarea extends BaseInput {
@@ -1,14 +1,14 @@
1
1
  import BaseInput from '../input/BaseInput.js';
2
2
  /**
3
3
  * @label Time Picker
4
- * @tag time-picker
4
+ * @tag wc-time-picker
5
5
  * @rawTag time-picker
6
- *
7
6
  * @summary The Time Picker component is used to capture time user input.
7
+ * @tags input
8
8
  *
9
9
  * @example
10
10
  * ```html
11
- * <time-picker label="Name" required placeholder="Enter your name"></time-picker>
11
+ * <wc-time-picker label="Time" placeholder="Select a time"></wc-time-picker>
12
12
  * ```
13
13
  */
14
14
  export declare class TimePicker extends BaseInput {
@@ -2,15 +2,15 @@ import { LitElement } from 'lit';
2
2
  export type TooltipTrigger = 'hover' | 'focus' | 'click';
3
3
  /**
4
4
  * @label Tooltip
5
- * @tag base-tooltip
5
+ * @tag wc-tooltip
6
6
  * @rawTag tooltip
7
7
  * @summary Displays a tooltip for an element.
8
+ * @tags display
8
9
  *
9
10
  * @example
10
11
  * ```html
11
- * <span class="tooltip">Tooltip</span>
12
+ * <wc-tooltip preview>Tooltip</wc-tooltip>
12
13
  * ```
13
- * @tags display
14
14
  */
15
15
  export declare class Tooltip extends LitElement {
16
16
  static styles: import("lit").CSSResultGroup[];
@@ -23,6 +23,7 @@ export declare class Tooltip extends LitElement {
23
23
  trigger: string;
24
24
  open: boolean;
25
25
  variant: 'plain' | 'rich';
26
+ preview: boolean;
26
27
  floatingEl: HTMLElement;
27
28
  private _target;
28
29
  private _popover;
@@ -0,0 +1,2 @@
1
+ export { TreeNode } from './tree-node.js';
2
+ export { TreeView } from './tree-view.js';