@redvars/peacock 3.5.0 → 3.6.0

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 (314) hide show
  1. package/dist/BaseButton-BNFAYn-S.js +219 -0
  2. package/dist/BaseButton-BNFAYn-S.js.map +1 -0
  3. package/dist/BaseHyperlinkMixin-BNuwbiEf.js +65 -0
  4. package/dist/BaseHyperlinkMixin-BNuwbiEf.js.map +1 -0
  5. package/dist/BaseInput-14YmcfK7.js +27 -0
  6. package/dist/BaseInput-14YmcfK7.js.map +1 -0
  7. package/dist/assets/components.css +1 -1
  8. package/dist/assets/components.css.map +1 -1
  9. package/dist/assets/styles.css +1 -1
  10. package/dist/assets/styles.css.map +1 -1
  11. package/dist/banner.js +14 -30
  12. package/dist/banner.js.map +1 -1
  13. package/dist/{button-DMN1dPAg.js → button-colors-Ccys3hvS.js} +5 -468
  14. package/dist/button-colors-Ccys3hvS.js.map +1 -0
  15. package/dist/button-group.js +228 -8
  16. package/dist/button-group.js.map +1 -1
  17. package/dist/button.js +294 -8
  18. package/dist/button.js.map +1 -1
  19. package/dist/calendar-column-view.js +634 -0
  20. package/dist/calendar-column-view.js.map +1 -0
  21. package/dist/calendar-event-BrQ_SEKD.js +199 -0
  22. package/dist/calendar-event-BrQ_SEKD.js.map +1 -0
  23. package/dist/calendar-month-view.js +376 -0
  24. package/dist/calendar-month-view.js.map +1 -0
  25. package/dist/calendar.js +339 -0
  26. package/dist/calendar.js.map +1 -0
  27. package/dist/canvas.js +361 -0
  28. package/dist/canvas.js.map +1 -0
  29. package/dist/card.js +18 -73
  30. package/dist/card.js.map +1 -1
  31. package/dist/cb-compound-expression.js +125 -0
  32. package/dist/cb-compound-expression.js.map +1 -0
  33. package/dist/cb-divider.js +150 -0
  34. package/dist/cb-divider.js.map +1 -0
  35. package/dist/cb-expression.js +75 -0
  36. package/dist/cb-expression.js.map +1 -0
  37. package/dist/cb-predicate.js +137 -0
  38. package/dist/cb-predicate.js.map +1 -0
  39. package/dist/chart-bar.js.map +1 -1
  40. package/dist/chart-doughnut.js +2 -2
  41. package/dist/chart-doughnut.js.map +1 -1
  42. package/dist/chart-pie.js +2 -2
  43. package/dist/chart-pie.js.map +1 -1
  44. package/dist/chart-stacked-bar.js.map +1 -1
  45. package/dist/code-editor.js +2 -1
  46. package/dist/code-editor.js.map +1 -1
  47. package/dist/code-highlighter.js +2 -1
  48. package/dist/code-highlighter.js.map +1 -1
  49. package/dist/condition-builder.js +58 -0
  50. package/dist/condition-builder.js.map +1 -0
  51. package/dist/custom-elements-jsdocs.json +10860 -5567
  52. package/dist/custom-elements.json +16180 -7996
  53. package/dist/dropdown-button.js +216 -0
  54. package/dist/dropdown-button.js.map +1 -0
  55. package/dist/event-manager-D-QCmUgR.js +113 -0
  56. package/dist/event-manager-D-QCmUgR.js.map +1 -0
  57. package/dist/fab.js +421 -9
  58. package/dist/fab.js.map +1 -1
  59. package/dist/flow-designer-dZnLJOQT.js +1656 -0
  60. package/dist/flow-designer-dZnLJOQT.js.map +1 -0
  61. package/dist/flow-designer-node-XMe-jlKg.js +548 -0
  62. package/dist/flow-designer-node-XMe-jlKg.js.map +1 -0
  63. package/dist/flow-designer-node.js +4 -0
  64. package/dist/flow-designer-node.js.map +1 -0
  65. package/dist/flow-designer.js +16 -0
  66. package/dist/flow-designer.js.map +1 -0
  67. package/dist/html-editor.js +358 -0
  68. package/dist/html-editor.js.map +1 -0
  69. package/dist/icon-button-CK1ZuE-2.js +247 -0
  70. package/dist/icon-button-CK1ZuE-2.js.map +1 -0
  71. package/dist/index.js +31 -8
  72. package/dist/index.js.map +1 -1
  73. package/dist/{is-dark-mode-DicqGkCJ.js → is-dark-mode-DOcaw4Yq.js} +2 -27
  74. package/dist/is-dark-mode-DOcaw4Yq.js.map +1 -0
  75. package/dist/modal.js +418 -0
  76. package/dist/modal.js.map +1 -0
  77. package/dist/{select-4pl4XBj7.js → navigation-rail-DyO0oAZU.js} +2000 -2767
  78. package/dist/navigation-rail-DyO0oAZU.js.map +1 -0
  79. package/dist/notification-manager.js +268 -0
  80. package/dist/notification-manager.js.map +1 -0
  81. package/dist/notification.js +3 -2
  82. package/dist/notification.js.map +1 -1
  83. package/dist/peacock-loader.js +102 -14
  84. package/dist/peacock-loader.js.map +1 -1
  85. package/dist/popover-NC7b1lTq.js +1971 -0
  86. package/dist/popover-NC7b1lTq.js.map +1 -0
  87. package/dist/popover-content.js +125 -0
  88. package/dist/popover-content.js.map +1 -0
  89. package/dist/popover.js +4 -0
  90. package/dist/popover.js.map +1 -0
  91. package/dist/search.js +4 -0
  92. package/dist/search.js.map +1 -1
  93. package/dist/split-button.js +388 -0
  94. package/dist/split-button.js.map +1 -0
  95. package/dist/src/__controllers/floating-controller.d.ts +35 -0
  96. package/dist/src/__mixins/BaseButtonMixin.d.ts +20 -0
  97. package/dist/src/__mixins/BaseHyperlinkMixin.d.ts +18 -0
  98. package/dist/src/__mixins/MixinConstructor.d.ts +1 -0
  99. package/dist/src/banner/banner.d.ts +0 -4
  100. package/dist/src/button/BaseButton.d.ts +4 -47
  101. package/dist/src/button/button/button.d.ts +32 -3
  102. package/dist/src/button/button-group/button-group.d.ts +2 -2
  103. package/dist/src/button/icon-button/icon-button.d.ts +33 -8
  104. package/dist/src/calendar/base-event.d.ts +10 -0
  105. package/dist/src/calendar/calendar-column-view.d.ts +41 -0
  106. package/dist/src/calendar/calendar-event.d.ts +7 -0
  107. package/dist/src/calendar/calendar-month-view.d.ts +31 -0
  108. package/dist/src/calendar/calendar.d.ts +65 -0
  109. package/dist/src/calendar/event-manager.d.ts +17 -0
  110. package/dist/src/calendar/index.d.ts +4 -0
  111. package/dist/src/calendar/types.d.ts +13 -0
  112. package/dist/src/calendar/utils.d.ts +31 -0
  113. package/dist/src/canvas/canvas.d.ts +92 -0
  114. package/dist/src/canvas/index.d.ts +2 -0
  115. package/dist/src/card/card.d.ts +4 -15
  116. package/dist/src/condition-builder/cb-compound-expression.d.ts +31 -0
  117. package/dist/src/condition-builder/cb-divider.d.ts +26 -0
  118. package/dist/src/condition-builder/cb-expression.d.ts +31 -0
  119. package/dist/src/condition-builder/cb-predicate.d.ts +30 -0
  120. package/dist/src/condition-builder/condition-builder.d.ts +27 -0
  121. package/dist/src/condition-builder/index.d.ts +5 -0
  122. package/dist/src/dropdown-button/dropdown-button.d.ts +68 -0
  123. package/dist/src/dropdown-button/index.d.ts +1 -0
  124. package/dist/src/fab/fab.d.ts +4 -35
  125. package/dist/src/flow-designer/commands.d.ts +66 -0
  126. package/dist/src/flow-designer/flow-designer-node.d.ts +46 -0
  127. package/dist/src/flow-designer/flow-designer.d.ts +133 -0
  128. package/dist/src/flow-designer/index.d.ts +7 -0
  129. package/dist/src/flow-designer/layout.d.ts +30 -0
  130. package/dist/src/flow-designer/types.d.ts +142 -0
  131. package/dist/src/flow-designer/validation.d.ts +43 -0
  132. package/dist/src/flow-designer/workflow-utils.d.ts +40 -0
  133. package/dist/src/focus-ring/focus-ring.d.ts +11 -5
  134. package/dist/src/html-editor/html-editor.d.ts +56 -0
  135. package/dist/src/html-editor/index.d.ts +2 -0
  136. package/dist/src/index.d.ts +16 -1
  137. package/dist/src/link/link.d.ts +1 -1
  138. package/dist/src/menu/menu/menu.d.ts +5 -7
  139. package/dist/src/menu/menu-item/menu-item.d.ts +14 -13
  140. package/dist/src/modal/index.d.ts +1 -0
  141. package/dist/src/modal/modal.d.ts +63 -0
  142. package/dist/src/navigation-rail/index.d.ts +2 -0
  143. package/dist/src/navigation-rail/navigation-rail-item.d.ts +55 -0
  144. package/dist/src/navigation-rail/navigation-rail.d.ts +71 -0
  145. package/dist/src/notification-manager/index.d.ts +1 -0
  146. package/dist/src/notification-manager/notification-manager.d.ts +44 -0
  147. package/dist/src/popover/index.d.ts +2 -0
  148. package/dist/src/popover/popover-content.d.ts +29 -0
  149. package/dist/src/popover/popover.d.ts +62 -0
  150. package/dist/src/sidebar-menu/index.d.ts +3 -0
  151. package/dist/src/sidebar-menu/sidebar-menu-item.d.ts +58 -0
  152. package/dist/src/sidebar-menu/sidebar-menu.d.ts +38 -0
  153. package/dist/src/sidebar-menu/sidebar-sub-menu.d.ts +35 -0
  154. package/dist/src/split-button/index.d.ts +1 -0
  155. package/dist/src/split-button/split-button.d.ts +72 -0
  156. package/dist/src/toolbar/toolbar.d.ts +10 -10
  157. package/dist/src/tooltip/tooltip.d.ts +5 -15
  158. package/dist/src/url-field/index.d.ts +1 -0
  159. package/dist/src/url-field/url-field.d.ts +48 -0
  160. package/dist/test/flow-designer.test.d.ts +1 -0
  161. package/dist/test/sidebar-menu.test.d.ts +1 -0
  162. package/dist/toolbar.js +10 -10
  163. package/dist/toolbar.js.map +1 -1
  164. package/dist/tsconfig.tsbuildinfo +1 -1
  165. package/package.json +4 -2
  166. package/readme.md +73 -65
  167. package/scss/mixin.scss +16 -0
  168. package/src/__controllers/floating-controller.ts +237 -0
  169. package/src/__mixins/BaseButtonMixin.ts +83 -0
  170. package/src/__mixins/BaseHyperlinkMixin.ts +68 -0
  171. package/src/__mixins/MixinConstructor.ts +1 -0
  172. package/src/{__base_element → __mixins}/README.md +2 -2
  173. package/src/banner/banner.scss +20 -25
  174. package/src/banner/banner.ts +1 -7
  175. package/src/button/BaseButton.ts +11 -100
  176. package/src/button/button/button-sizes.scss +4 -2
  177. package/src/button/button/button.ts +77 -23
  178. package/src/button/button-group/button-group.ts +2 -2
  179. package/src/button/icon-button/icon-button.ts +75 -33
  180. package/src/calendar/base-event.ts +49 -0
  181. package/src/calendar/calendar-column-view.scss +326 -0
  182. package/src/calendar/calendar-column-view.ts +392 -0
  183. package/src/calendar/calendar-event.ts +20 -0
  184. package/src/calendar/calendar-month-view.scss +192 -0
  185. package/src/calendar/calendar-month-view.ts +244 -0
  186. package/src/calendar/calendar.scss +71 -0
  187. package/src/calendar/calendar.ts +298 -0
  188. package/src/calendar/event-manager.ts +117 -0
  189. package/src/calendar/index.ts +4 -0
  190. package/src/calendar/types.ts +14 -0
  191. package/src/calendar/utils.ts +180 -0
  192. package/src/canvas/canvas.scss +60 -0
  193. package/src/canvas/canvas.ts +391 -0
  194. package/src/canvas/index.ts +2 -0
  195. package/src/card/card.ts +11 -71
  196. package/src/chart-bar/chart-bar.ts +9 -14
  197. package/src/chart-bar/chart-stacked-bar.ts +12 -18
  198. package/src/chart-doughnut/chart-doughnut.ts +23 -27
  199. package/src/chart-pie/chart-pie.ts +19 -23
  200. package/src/checkbox/checkbox.scss +17 -34
  201. package/src/checkbox/checkbox.ts +3 -1
  202. package/src/code-highlighter/code-highlighter.scss +1 -0
  203. package/src/code-highlighter/code-highlighter.ts +1 -1
  204. package/src/condition-builder/cb-compound-expression.scss +37 -0
  205. package/src/condition-builder/cb-compound-expression.ts +80 -0
  206. package/src/condition-builder/cb-divider.scss +93 -0
  207. package/src/condition-builder/cb-divider.ts +56 -0
  208. package/src/condition-builder/cb-expression.scss +14 -0
  209. package/src/condition-builder/cb-expression.ts +49 -0
  210. package/src/condition-builder/cb-predicate.scss +35 -0
  211. package/src/condition-builder/cb-predicate.ts +102 -0
  212. package/src/condition-builder/condition-builder.scss +13 -0
  213. package/src/condition-builder/condition-builder.ts +38 -0
  214. package/src/condition-builder/index.ts +5 -0
  215. package/src/date-picker/date-picker.ts +1 -1
  216. package/src/dropdown-button/demo/index.html +110 -0
  217. package/src/dropdown-button/dropdown-button.scss +22 -0
  218. package/src/dropdown-button/dropdown-button.ts +206 -0
  219. package/src/dropdown-button/index.ts +1 -0
  220. package/src/elevation/elevation.scss +5 -5
  221. package/src/fab/fab.ts +29 -100
  222. package/src/flow-designer/DEMO.md +239 -0
  223. package/src/flow-designer/commands.ts +278 -0
  224. package/src/flow-designer/flow-designer-node.ts +172 -0
  225. package/src/flow-designer/flow-designer.scss +457 -0
  226. package/src/flow-designer/flow-designer.ts +611 -0
  227. package/src/flow-designer/index.ts +41 -0
  228. package/src/flow-designer/layout.ts +357 -0
  229. package/src/flow-designer/types.ts +166 -0
  230. package/src/flow-designer/validation.ts +284 -0
  231. package/src/flow-designer/workflow-utils.ts +282 -0
  232. package/src/focus-ring/focus-ring.ts +47 -40
  233. package/src/html-editor/html-editor.scss +146 -0
  234. package/src/html-editor/html-editor.ts +276 -0
  235. package/src/html-editor/index.ts +3 -0
  236. package/src/index.ts +28 -1
  237. package/src/input/input.ts +3 -1
  238. package/src/link/link.ts +2 -2
  239. package/src/menu/menu/menu.scss +2 -2
  240. package/src/menu/menu/menu.ts +91 -101
  241. package/src/menu/menu-item/menu-item.scss +4 -0
  242. package/src/menu/menu-item/menu-item.ts +85 -79
  243. package/src/modal/index.ts +1 -0
  244. package/src/modal/modal.scss +206 -0
  245. package/src/modal/modal.ts +201 -0
  246. package/src/navigation-rail/index.ts +2 -0
  247. package/src/navigation-rail/navigation-rail-item.scss +216 -0
  248. package/src/navigation-rail/navigation-rail-item.ts +223 -0
  249. package/src/navigation-rail/navigation-rail.scss +72 -0
  250. package/src/navigation-rail/navigation-rail.ts +149 -0
  251. package/src/notification/notification.ts +3 -2
  252. package/src/notification-manager/index.ts +1 -0
  253. package/src/notification-manager/notification-manager.scss +113 -0
  254. package/src/notification-manager/notification-manager.ts +199 -0
  255. package/src/number-field/number-field.ts +6 -4
  256. package/src/pagination/pagination.ts +6 -4
  257. package/src/peacock-loader.ts +93 -5
  258. package/src/popover/index.ts +2 -0
  259. package/src/popover/popover-content.scss +69 -0
  260. package/src/popover/popover-content.ts +51 -0
  261. package/src/popover/popover.scss +7 -0
  262. package/src/popover/popover.ts +170 -0
  263. package/src/search/search.ts +4 -0
  264. package/src/sidebar-menu/demo/index.html +68 -0
  265. package/src/sidebar-menu/index.ts +3 -0
  266. package/src/sidebar-menu/sidebar-menu-item.scss +102 -0
  267. package/src/sidebar-menu/sidebar-menu-item.ts +151 -0
  268. package/src/{tree-view/tree-view.scss → sidebar-menu/sidebar-menu.scss} +1 -1
  269. package/src/sidebar-menu/sidebar-menu.ts +182 -0
  270. package/src/sidebar-menu/sidebar-sub-menu.scss +130 -0
  271. package/src/sidebar-menu/sidebar-sub-menu.ts +160 -0
  272. package/src/skeleton/skeleton.scss +18 -24
  273. package/src/snackbar/snackbar.ts +1 -1
  274. package/src/split-button/index.ts +1 -0
  275. package/src/split-button/split-button-colors.scss +56 -0
  276. package/src/split-button/split-button-sizes.scss +28 -0
  277. package/src/split-button/split-button.scss +79 -0
  278. package/src/split-button/split-button.ts +236 -0
  279. package/src/table/table.ts +2 -2
  280. package/src/tabs/tab.ts +4 -3
  281. package/src/text/text.css-component.scss +7 -1
  282. package/src/time-picker/time-picker.ts +1 -1
  283. package/src/toolbar/toolbar.ts +10 -10
  284. package/src/tooltip/tooltip.scss +4 -3
  285. package/src/tooltip/tooltip.ts +64 -98
  286. package/src/url-field/index.ts +1 -0
  287. package/src/url-field/url-field.scss +50 -0
  288. package/src/url-field/url-field.ts +239 -0
  289. package/dist/button-DMN1dPAg.js.map +0 -1
  290. package/dist/button-group-CX9CUUXk.js +0 -435
  291. package/dist/button-group-CX9CUUXk.js.map +0 -1
  292. package/dist/fab-C5Nzxk0E.js +0 -497
  293. package/dist/fab-C5Nzxk0E.js.map +0 -1
  294. package/dist/is-dark-mode-DicqGkCJ.js.map +0 -1
  295. package/dist/select-4pl4XBj7.js.map +0 -1
  296. package/dist/spread-B5cgadZl.js +0 -32
  297. package/dist/spread-B5cgadZl.js.map +0 -1
  298. package/dist/src/__base_element/BaseHyperlink.d.ts +0 -20
  299. package/dist/src/menu/menu/MenuSurfaceController.d.ts +0 -18
  300. package/dist/src/tree-view/index.d.ts +0 -2
  301. package/dist/src/tree-view/tree-node.d.ts +0 -69
  302. package/dist/src/tree-view/tree-view.d.ts +0 -40
  303. package/dist/src/tree-view/wc-tree-view.d.ts +0 -6
  304. package/dist/test/tree-view.test.d.ts +0 -1
  305. package/dist/throttle-C7ZAPqtu.js +0 -24
  306. package/dist/throttle-C7ZAPqtu.js.map +0 -1
  307. package/src/__base_element/BaseHyperlink.ts +0 -42
  308. package/src/menu/menu/MenuSurfaceController.ts +0 -61
  309. package/src/tree-view/demo/index.html +0 -57
  310. package/src/tree-view/index.ts +0 -2
  311. package/src/tree-view/tree-node.scss +0 -101
  312. package/src/tree-view/tree-node.ts +0 -268
  313. package/src/tree-view/tree-view.ts +0 -182
  314. package/src/tree-view/wc-tree-view.ts +0 -9
@@ -1,5 +1,4 @@
1
1
  import { BaseButton } from '../BaseButton.js';
2
- import { IconProvider } from '../../icon/icon.js';
3
2
  /**
4
3
  * @label Icon Button
5
4
  * @tag wc-icon-button
@@ -39,21 +38,47 @@ import { IconProvider } from '../../icon/icon.js';
39
38
  *
40
39
  * @example
41
40
  * ```html
42
- * <wc-icon-button name="home"></wc-icon-button>
41
+ * <wc-icon-button><wc-icon name="home"></wc-icon></wc-icon-button>
43
42
  * ```
44
43
  * @tags display
45
44
  */
46
45
  export declare class IconButton extends BaseButton {
47
- #private;
48
46
  static styles: import("lit").CSSResultGroup[];
49
- name?: string;
50
- src?: string;
51
- provider: IconProvider;
47
+ /**
48
+ * Button size.
49
+ * Possible values are `"xs"`, `"sm"`, `"md"`, `"lg"`, `"xl"`. Defaults to `"sm"`.
50
+ */
51
+ size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
52
+ /**
53
+ * Type is preset of color and variant. Type will be only applied.
54
+ *
55
+ */
56
+ type?: 'primary' | 'secondary' | 'tertiary';
57
+ /**
58
+ * The visual style of the button.
59
+ *
60
+ * Possible variant values:
61
+ * `"filled"` is a filled button.
62
+ * `"outlined"` is an outlined button.
63
+ * `"text"` is a transparent button.
64
+ * `"tonal"` is a light color button.
65
+ * `"elevated"` is elevated button
66
+ */
67
+ variant: 'elevated' | 'filled' | 'tonal' | 'outlined' | 'text' | 'neo';
68
+ /**
69
+ * Defines the primary color of the button. This can be set to predefined color names to apply specific color themes.
70
+ */
71
+ color: 'primary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface';
72
+ /**
73
+ * Additional ARIA attributes to pass to the inner button/anchor element.
74
+ */
75
+ configAria?: {
76
+ [key: string]: any;
77
+ };
52
78
  focus(): void;
53
79
  blur(): void;
54
- connectedCallback(): void;
55
- disconnectedCallback(): void;
56
80
  firstUpdated(): void;
81
+ __convertTypeToVariantAndColor(): void;
57
82
  render(): import("lit-html").TemplateResult<1>;
58
83
  renderButtonContent(): import("lit-html").TemplateResult<1>;
59
84
  }
@@ -0,0 +1,10 @@
1
+ export declare class BaseEvent {
2
+ gid: string;
3
+ start: Date;
4
+ end: Date;
5
+ constructor(start: Date, end: Date);
6
+ length(): number;
7
+ isOverlapping(event: BaseEvent): boolean;
8
+ isOverlappingWithoutTime(event: BaseEvent): boolean;
9
+ isOverlappingWithDate(date: Date): boolean;
10
+ }
@@ -0,0 +1,41 @@
1
+ import { LitElement } from 'lit';
2
+ import { CalendarEvent } from './calendar-event.js';
3
+ /**
4
+ * @label Calendar Column View
5
+ * @tag wc-calendar-column-view
6
+ * @rawTag calendar-column-view
7
+ * @parentRawTag calendar
8
+ * @summary Internal column view component for the calendar (day/week views).
9
+ */
10
+ export declare class CalendarColumnView extends LitElement {
11
+ static styles: import("lit").CSSResultGroup[];
12
+ events: CalendarEvent[];
13
+ view: string;
14
+ days: number;
15
+ eventClickable: boolean;
16
+ currentTime: Date;
17
+ contextDate: Date;
18
+ private dateRange;
19
+ private singleDayEvents;
20
+ private multiDayEvents;
21
+ connectedCallback(): void;
22
+ willUpdate(changedProperties: Map<string, unknown>): void;
23
+ firstUpdated(): void;
24
+ private _processEvents;
25
+ private _forEachDayInRange;
26
+ private _getDateOnly;
27
+ private _getDatePercent;
28
+ private _getDayClass;
29
+ private _populateColorVars;
30
+ private _emitDateClick;
31
+ private _emitEventClick;
32
+ private _renderHeader;
33
+ private _renderMultiDayBackground;
34
+ private _renderScale;
35
+ private _renderBackgroundGrid;
36
+ private _renderEvents;
37
+ private _renderMultiDayEvents;
38
+ private _renderCurrentTime;
39
+ private _styleMap;
40
+ render(): import("lit-html").TemplateResult<1>;
41
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseEvent } from './base-event.js';
2
+ export declare class CalendarEvent extends BaseEvent {
3
+ data: any;
4
+ title: string;
5
+ color?: string;
6
+ constructor(start: Date, end: Date, title: string, color: string | undefined, data: any);
7
+ }
@@ -0,0 +1,31 @@
1
+ import { LitElement } from 'lit';
2
+ import { CalendarEvent } from './calendar-event.js';
3
+ /**
4
+ * @label Calendar Month View
5
+ * @tag wc-calendar-month-view
6
+ * @rawTag calendar-month-view
7
+ * @parentRawTag calendar
8
+ * @summary Internal month view component for the calendar.
9
+ */
10
+ export declare class CalendarMonthView extends LitElement {
11
+ static styles: import("lit").CSSResultGroup[];
12
+ events: CalendarEvent[];
13
+ eventClickable: boolean;
14
+ currentTime: Date;
15
+ contextDate: Date;
16
+ private dateRange;
17
+ private weekDayEvents;
18
+ connectedCallback(): void;
19
+ willUpdate(changedProperties: Map<string, unknown>): void;
20
+ firstUpdated(): void;
21
+ private _processEvents;
22
+ private _getDatePercent;
23
+ private _getDayClass;
24
+ private _populateColorVars;
25
+ private _emitEventClick;
26
+ private _renderHeader;
27
+ private _renderMultiDayBackground;
28
+ private _renderEvents;
29
+ private _styleMap;
30
+ render(): import("lit-html").TemplateResult<1>;
31
+ }
@@ -0,0 +1,65 @@
1
+ import { LitElement } from 'lit';
2
+ import type { CalendarViewType, EventType } from './types.js';
3
+ /**
4
+ * @label Calendar
5
+ * @tag wc-calendar
6
+ * @rawTag calendar
7
+ * @summary A Material 3 inspired full calendar component for displaying events in day, week, or month views.
8
+ *
9
+ * @cssprop --calendar-border-color - Border color used throughout the calendar grid.
10
+ * @cssprop --calendar-event-bg-color - Background color for calendar events.
11
+ * @cssprop --calendar-event-border-color - Left border color for calendar events.
12
+ *
13
+ * @fires {CustomEvent} event-click - Dispatched when a calendar event is clicked. Detail contains `{ event }`.
14
+ * @fires {CustomEvent} view-change - Dispatched when the calendar view changes. Detail contains `{ view }`.
15
+ * @fires {CustomEvent} date-change - Dispatched when the context date changes. Detail contains `{ date }`.
16
+ *
17
+ * @example
18
+ * ```html
19
+ * <wc-calendar view="week" style="height: 600px"></wc-calendar>
20
+ * ```
21
+ */
22
+ export declare class Calendar extends LitElement {
23
+ static styles: import("lit").CSSResultGroup[];
24
+ /**
25
+ * Calendar events array.
26
+ */
27
+ events: EventType[];
28
+ /**
29
+ * Available views configuration.
30
+ */
31
+ availableViews: CalendarViewType[];
32
+ /**
33
+ * Current calendar view.
34
+ */
35
+ view: string;
36
+ /**
37
+ * Whether events are clickable.
38
+ */
39
+ eventClickable: boolean;
40
+ /**
41
+ * Show loading state.
42
+ */
43
+ showLoader: boolean;
44
+ /**
45
+ * Timezone string (e.g. 'America/New_York').
46
+ */
47
+ timezone: string;
48
+ /**
49
+ * The context date for the calendar view.
50
+ */
51
+ contextDate: Date | null;
52
+ private _currentTime;
53
+ private _currentView;
54
+ connectedCallback(): void;
55
+ willUpdate(changedProperties: Map<string, unknown>): void;
56
+ private _onColumnViewDateClick;
57
+ private _onEventClick;
58
+ previous(): void;
59
+ next(): void;
60
+ private _goToToday;
61
+ private _onViewSegmentChange;
62
+ private _renderHeader;
63
+ private _renderCalendarView;
64
+ render(): import("lit-html").TemplateResult<1>;
65
+ }
@@ -0,0 +1,17 @@
1
+ import { CalendarEvent } from './calendar-event.js';
2
+ export declare class ColumnEvent extends CalendarEvent {
3
+ width: number;
4
+ constructor(event: CalendarEvent);
5
+ }
6
+ export declare class EventManager {
7
+ #private;
8
+ columns: ColumnEvent[][];
9
+ addEvents(events: CalendarEvent[]): void;
10
+ process(): void;
11
+ }
12
+ export declare class MonthEventManager {
13
+ #private;
14
+ columns: ColumnEvent[][];
15
+ addEvents(events: CalendarEvent[]): void;
16
+ process(): void;
17
+ }
@@ -0,0 +1,4 @@
1
+ export { Calendar } from './calendar.js';
2
+ export { CalendarColumnView } from './calendar-column-view.js';
3
+ export { CalendarMonthView } from './calendar-month-view.js';
4
+ export type { CalendarViewType, EventType } from './types.js';
@@ -0,0 +1,13 @@
1
+ export type CalendarViewType = {
2
+ label: string;
3
+ value: string;
4
+ type: 'column' | 'month';
5
+ days?: number;
6
+ };
7
+ export type EventType = {
8
+ start: Date;
9
+ end: Date;
10
+ title: string;
11
+ color?: string;
12
+ [key: string]: any;
13
+ };
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Pure date utility functions (no external dependencies).
3
+ */
4
+ export declare function startOfDay(date: Date): Date;
5
+ export declare function endOfDay(date: Date): Date;
6
+ export declare function addDays(date: Date, days: number): Date;
7
+ export declare function addMonths(date: Date, months: number): Date;
8
+ export declare function addHours(date: Date, hours: number): Date;
9
+ export declare function differenceInDays(dateA: Date, dateB: Date): number;
10
+ export declare function startOfWeek(date: Date, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6): Date;
11
+ export declare function endOfWeek(date: Date, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6): Date;
12
+ export declare function startOfMonth(date: Date): Date;
13
+ export declare function endOfMonth(date: Date): Date;
14
+ export declare function calculateMonthRange(date: Date, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6): {
15
+ startDate: Date;
16
+ endDate: Date;
17
+ totalDays: number;
18
+ };
19
+ export declare function calculateWeekRange(date: Date, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6): {
20
+ startDate: Date;
21
+ endDate: Date;
22
+ totalDays: number;
23
+ };
24
+ export declare function calculateDateRange(view: string, contextDate: Date, days: number): {
25
+ startDate: Date;
26
+ endDate: Date;
27
+ totalDays: number;
28
+ };
29
+ export declare const LONG_EVENT_PADDING = 0.25;
30
+ export declare function formatDate(date: Date, pattern: string): string;
31
+ export declare function getTimePercent(date: Date, forDay?: Date): number;
@@ -0,0 +1,92 @@
1
+ import { LitElement } from 'lit';
2
+ export type CanvasDirection = 'up' | 'down' | 'left' | 'right';
3
+ export type CanvasStrokeVariant = 'solid' | 'dashed' | 'animated-dashed';
4
+ export interface CanvasPoint {
5
+ x: number;
6
+ y: number;
7
+ }
8
+ export interface CanvasPathSegment {
9
+ direction: CanvasDirection;
10
+ length: number;
11
+ }
12
+ interface BaseCanvasShape {
13
+ color?: string;
14
+ }
15
+ interface BaseCanvasStrokeShape extends BaseCanvasShape {
16
+ variant?: CanvasStrokeVariant;
17
+ showArrow?: boolean;
18
+ clickable?: boolean;
19
+ }
20
+ export interface CanvasCircleShape extends BaseCanvasShape {
21
+ type: 'circle';
22
+ x?: number;
23
+ y?: number;
24
+ radius?: number;
25
+ }
26
+ export interface CanvasRectShape extends BaseCanvasShape {
27
+ type: 'rect';
28
+ x?: number;
29
+ y?: number;
30
+ width?: number;
31
+ height?: number;
32
+ }
33
+ export interface CanvasLineShape extends BaseCanvasStrokeShape {
34
+ type: 'line';
35
+ start?: CanvasPoint;
36
+ end?: CanvasPoint;
37
+ }
38
+ export interface CanvasConnectorShape extends BaseCanvasStrokeShape {
39
+ type: 'connector';
40
+ start?: CanvasPoint;
41
+ path?: CanvasPathSegment[];
42
+ }
43
+ export type CanvasShape = CanvasCircleShape | CanvasRectShape | CanvasLineShape | CanvasConnectorShape;
44
+ /**
45
+ * @label Canvas
46
+ * @tag wc-canvas
47
+ * @rawTag canvas
48
+ * @summary A Material 3 inspired SVG canvas for drawing shapes, lines, and connectors on a dotted grid.
49
+ *
50
+ * @cssprop --canvas-background - Background color for the canvas wrapper. Defaults to surface-container-low.
51
+ * @cssprop --canvas-dot-color - Color of the background grid dots. Defaults to outline-variant.
52
+ * @cssprop --canvas-line-color - Default stroke color for lines and connectors. Defaults to on-surface.
53
+ * @cssprop --canvas-hover-color - Stroke color on hover for clickable shapes. Defaults to primary.
54
+ * @cssprop --canvas-arrow-color - Stroke color for arrow markers. Defaults to on-surface.
55
+ *
56
+ * @example
57
+ * ```html
58
+ * <wc-canvas id="my-canvas"></wc-canvas>
59
+ * <script>
60
+ * document.querySelector('#my-canvas').shapes = [
61
+ * { type: 'circle', x: 0, y: 0, radius: 0.25, color: 'red' },
62
+ * ];
63
+ * </script>
64
+ * ```
65
+ */
66
+ export declare class Canvas extends LitElement {
67
+ static styles: import("lit").CSSResultGroup[];
68
+ /**
69
+ * Array of shape objects to render on the canvas.
70
+ */
71
+ shapes: CanvasShape[];
72
+ /**
73
+ * Padding around the computed viewbox (in grid units).
74
+ */
75
+ padding: number;
76
+ /**
77
+ * Zoom multiplier for the canvas dimensions.
78
+ */
79
+ zoom: number;
80
+ /**
81
+ * Optional viewbox override string (e.g. "0 0 100 100").
82
+ */
83
+ viewbox?: string;
84
+ private unitSize;
85
+ private gap;
86
+ private static getNextPoint;
87
+ private static updateComputationArea;
88
+ private static getStrokeVariantClasses;
89
+ private computeShapes;
90
+ protected render(): import("lit-html").TemplateResult<1>;
91
+ }
92
+ export {};
@@ -0,0 +1,2 @@
1
+ export { Canvas } from './canvas.js';
2
+ export type { CanvasShape } from './canvas.js';
@@ -1,5 +1,6 @@
1
- import { LitElement, nothing, PropertyValues } from 'lit';
1
+ import { LitElement, nothing } from 'lit';
2
2
  type CardVariant = 'elevated' | 'filled' | 'outlined';
3
+ declare const Card_base: typeof LitElement & import("../__mixins/MixinConstructor.js").MixinConstructor<import("@/__mixins/BaseHyperlinkMixin.js").BaseHyperlinkInterface>;
3
4
  /**
4
5
  * @label Card
5
6
  * @tag wc-card
@@ -17,7 +18,7 @@ type CardVariant = 'elevated' | 'filled' | 'outlined';
17
18
  * </wc-card>
18
19
  * ```
19
20
  */
20
- export declare class Card extends LitElement {
21
+ export declare class Card extends Card_base {
21
22
  #private;
22
23
  static styles: import("lit").CSSResultGroup[];
23
24
  variant: CardVariant;
@@ -27,14 +28,6 @@ export declare class Card extends LitElement {
27
28
  * If button is disabled, the reason why it is disabled.
28
29
  */
29
30
  disabledReason: string;
30
- /**
31
- * Hyperlink to navigate to on click.
32
- */
33
- href?: string;
34
- /**
35
- * Sets or retrieves the window or frame at which to target content.
36
- */
37
- target: string;
38
31
  /**
39
32
  * Sets the delay for throttle in milliseconds. Defaults to 200 milliseconds.
40
33
  */
@@ -45,17 +38,13 @@ export declare class Card extends LitElement {
45
38
  isPressed: boolean;
46
39
  private slotHasContent;
47
40
  readonly cardElement: HTMLElement | null;
48
- readonly contentSlot: HTMLSlotElement | null;
49
41
  firstUpdated(): void;
50
- updated(changedProperties: PropertyValues<this>): void;
51
- __syncSlottedChildrenTabIndex(): void;
52
42
  __dispatchClickWithThrottle: (event: MouseEvent | KeyboardEvent) => void;
53
43
  __dispatchClick: (event: MouseEvent | KeyboardEvent) => void;
54
- __isLink(): boolean;
55
44
  __getDisabledReasonID(): string | typeof nothing;
56
45
  __renderDisabledReason(): typeof nothing | import("lit-html").TemplateResult<1>;
57
46
  __handlePress: (event: KeyboardEvent | MouseEvent) => void;
58
47
  render(): import("lit-html").TemplateResult<1>;
59
- renderCardContent(): import("lit-html").TemplateResult<1>;
48
+ renderCardContent(disableSlotTabbing: boolean): import("lit-html").TemplateResult<1>;
60
49
  }
61
50
  export {};
@@ -0,0 +1,31 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label CB Compound Expression
4
+ * @tag wc-cb-compound-expression
5
+ * @rawTag cb-compound-expression
6
+ * @summary A compound expression group in a condition builder that displays a field label, an optional condition operator divider, and slots for child expressions.
7
+ * @tags condition-builder
8
+ * @parentRawTag compound-builder
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <wc-cb-compound-expression field-label="Age" condition-operator="or">
13
+ * <wc-cb-expression>
14
+ * <wc-input placeholder="Enter value"></wc-input>
15
+ * </wc-cb-expression>
16
+ * </wc-cb-compound-expression>
17
+ * ```
18
+ */
19
+ export declare class CbCompoundExpression extends LitElement {
20
+ static styles: import("lit").CSSResultGroup[];
21
+ /** The logical operator joining conditions in this group ('and' or 'or'). */
22
+ conditionOperator?: 'and' | 'or';
23
+ /** The field name for the compound expression. */
24
+ fieldName: string;
25
+ /** The display label for the field. */
26
+ fieldLabel: string;
27
+ updated(): void;
28
+ private __adjustSlotEndPadding;
29
+ private __renderOperatorDivider;
30
+ render(): import("lit-html").TemplateResult<1>;
31
+ }
@@ -0,0 +1,26 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label CB Divider
4
+ * @tag wc-cb-divider
5
+ * @rawTag cb-divider
6
+ * @summary A divider line used within a condition builder to visually connect expressions with operator tags.
7
+ * @tags condition-builder
8
+ * @parentRawTag compound-builder
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <wc-cb-divider>
13
+ * <wc-tag color="green">and</wc-tag>
14
+ * </wc-cb-divider>
15
+ * ```
16
+ */
17
+ export declare class CbDivider extends LitElement {
18
+ static styles: import("lit").CSSResultGroup[];
19
+ /** Whether to render the divider vertically instead of horizontally. */
20
+ vertical: boolean;
21
+ /** Whether to render a connecting line at the start. */
22
+ connectStart: boolean;
23
+ /** Whether to render a connecting line at the end. */
24
+ connectEnd: boolean;
25
+ render(): import("lit-html").TemplateResult<1>;
26
+ }
@@ -0,0 +1,31 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label CB Expression
4
+ * @tag wc-cb-expression
5
+ * @rawTag cb-expression
6
+ * @summary An expression row within a condition builder, containing an operator select and a slot for value inputs.
7
+ * @tags condition-builder
8
+ * @parentRawTag compound-builder
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <wc-cb-expression>
13
+ * <wc-input placeholder="Enter value"></wc-input>
14
+ * </wc-cb-expression>
15
+ * ```
16
+ */
17
+ export declare class CbExpression extends LitElement {
18
+ static styles: import("lit").CSSResultGroup[];
19
+ /**
20
+ * The list of operator options to display in the operator select.
21
+ * Each item should have at least `label` and `value` properties.
22
+ */
23
+ operators: {
24
+ label: string;
25
+ value: string;
26
+ icon?: string;
27
+ }[];
28
+ /** The currently selected operator value. */
29
+ operatorValue: string;
30
+ render(): import("lit-html").TemplateResult<1>;
31
+ }
@@ -0,0 +1,30 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label CB Predicate
4
+ * @tag wc-cb-predicate
5
+ * @rawTag cb-predicate
6
+ * @summary A predicate container in a condition builder that can display conditions in horizontal or vertical layout with an optional logical operator divider.
7
+ * @tags condition-builder
8
+ * @parentRawTag compound-expression
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <wc-cb-predicate condition-operator="and" vertical>
13
+ * <wc-cb-compound-expression field-label="Age">
14
+ * <wc-cb-expression></wc-cb-expression>
15
+ * </wc-cb-compound-expression>
16
+ * </wc-cb-predicate>
17
+ * ```
18
+ */
19
+ export declare class CbPredicate extends LitElement {
20
+ static styles: import("lit").CSSResultGroup[];
21
+ /** The logical operator shown between predicates ('and' or 'or'). */
22
+ conditionOperator?: 'and' | 'or';
23
+ /** Whether to render the predicate in vertical layout. */
24
+ vertical: boolean;
25
+ updated(): void;
26
+ private __adjustSlotEndPadding;
27
+ private __renderHorizontalOperator;
28
+ private __renderVerticalOperator;
29
+ render(): import("lit-html").TemplateResult<1>;
30
+ }
@@ -0,0 +1,27 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Condition Builder
4
+ * @tag wc-condition-builder
5
+ * @rawTag condition-builder
6
+ * @summary A condition builder component that allows users to construct complex filter conditions using a visual rule-based interface with predicates, compound expressions, and logical operators.
7
+ * @tags condition-builder
8
+ *
9
+ * @example
10
+ * ```html
11
+ * <wc-condition-builder>
12
+ * <wc-cb-predicate condition-operator="or">
13
+ * <wc-cb-predicate vertical condition-operator="and">
14
+ * <wc-cb-compound-expression field-label="Age" condition-operator="or">
15
+ * <wc-cb-expression>
16
+ * <wc-input inline placeholder="Enter value"></wc-input>
17
+ * </wc-cb-expression>
18
+ * </wc-cb-compound-expression>
19
+ * </wc-cb-predicate>
20
+ * </wc-cb-predicate>
21
+ * </wc-condition-builder>
22
+ * ```
23
+ */
24
+ export declare class ConditionBuilder extends LitElement {
25
+ static styles: import("lit").CSSResultGroup[];
26
+ render(): import("lit-html").TemplateResult<1>;
27
+ }
@@ -0,0 +1,5 @@
1
+ export { ConditionBuilder } from './condition-builder.js';
2
+ export { CbPredicate } from './cb-predicate.js';
3
+ export { CbCompoundExpression } from './cb-compound-expression.js';
4
+ export { CbExpression } from './cb-expression.js';
5
+ export { CbDivider } from './cb-divider.js';
@@ -0,0 +1,68 @@
1
+ import { LitElement } from 'lit';
2
+ /**
3
+ * @label Dropdown Button
4
+ * @tag wc-dropdown-button
5
+ * @rawTag dropdown-button
6
+ *
7
+ * @summary A button that opens a dropdown menu when clicked.
8
+ * @overview
9
+ * <p>The dropdown button combines a single button with a dropdown menu. Clicking the button toggles a menu of actions or options. It follows M3 Material Design, keeping a compact control while exposing related actions on demand.</p>
10
+ *
11
+ * @cssprop --dropdown-button-container-shape: Defines the border radius of the dropdown button container shape.
12
+ *
13
+ * @fires {CustomEvent} toggle-menu - Dispatched when the dropdown menu is opened or closed.
14
+ *
15
+ * @example
16
+ * ```html
17
+ * <wc-dropdown-button>
18
+ * Actions
19
+ * <wc-menu-item slot="menu">Edit</wc-menu-item>
20
+ * <wc-menu-item slot="menu">Delete</wc-menu-item>
21
+ * </wc-dropdown-button>
22
+ * ```
23
+ * @tags controls
24
+ */
25
+ export declare class DropdownButton extends LitElement {
26
+ static styles: import("lit").CSSResultGroup[];
27
+ /**
28
+ * Button size.
29
+ * Possible values are `"xs"`, `"sm"`, `"md"`, `"lg"`, `"xl"`. Defaults to `"sm"`.
30
+ */
31
+ size: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
32
+ /**
33
+ * The visual style of the dropdown button.
34
+ *
35
+ * Possible variant values:
36
+ * `"filled"` is a filled button.
37
+ * `"outlined"` is an outlined button.
38
+ * `"text"` is a transparent button.
39
+ * `"tonal"` is a light color button.
40
+ * `"elevated"` is an elevated button.
41
+ */
42
+ variant: 'elevated' | 'filled' | 'tonal' | 'outlined' | 'text';
43
+ /**
44
+ * Defines the primary color of the dropdown button.
45
+ */
46
+ color: 'primary' | 'secondary' | 'tertiary' | 'success' | 'danger' | 'warning' | 'surface' | 'on-surface';
47
+ /**
48
+ * Whether the dropdown button is disabled.
49
+ */
50
+ disabled: boolean;
51
+ /**
52
+ * Menu placement relative to the button.
53
+ * Possible values are `"bottom-start"`, `"bottom-end"`, `"top-start"`, `"top-end"`. Defaults to `"bottom-start"`.
54
+ */
55
+ placement: 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end';
56
+ private _menuOpen;
57
+ private readonly _triggerButton;
58
+ private readonly _menu;
59
+ private _menuId;
60
+ focus(): void;
61
+ private _onButtonClick;
62
+ private _onMenuOpened;
63
+ private _onMenuClosed;
64
+ private _onKeyDown;
65
+ connectedCallback(): void;
66
+ disconnectedCallback(): void;
67
+ render(): import("lit-html").TemplateResult<1>;
68
+ }
@@ -0,0 +1 @@
1
+ export { DropdownButton } from './dropdown-button.js';