wj-elements 0.1.150 → 0.1.151

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 (238) hide show
  1. package/dist/wje-element.js +0 -1
  2. package/dist/wje-element.js.map +1 -1
  3. package/dist/wje-img.js +2 -2
  4. package/dist/wje-img.js.map +1 -1
  5. package/dist/wje-pagination.js +2 -3
  6. package/dist/wje-pagination.js.map +1 -1
  7. package/package.json +1 -1
  8. package/dist/packages/index.d.ts +0 -104
  9. package/dist/packages/localize/localize.d.ts +0 -17
  10. package/dist/packages/translations/en-gb.d.ts +0 -18
  11. package/dist/packages/translations/sk-sk.d.ts +0 -13
  12. package/dist/packages/utils/animations.d.ts +0 -2
  13. package/dist/packages/utils/date.d.ts +0 -1
  14. package/dist/packages/utils/element-utils.d.ts +0 -46
  15. package/dist/packages/utils/event.d.ts +0 -67
  16. package/dist/packages/utils/localize.d.ts +0 -4
  17. package/dist/packages/utils/permissions-api.d.ts +0 -34
  18. package/dist/packages/utils/utils.d.ts +0 -1
  19. package/dist/packages/utils/wje-import-firefox.d.ts +0 -0
  20. package/dist/packages/utils/wje-import.d.ts +0 -0
  21. package/dist/packages/wje-accordion/accordion.d.ts +0 -2
  22. package/dist/packages/wje-accordion/accordion.element.d.ts +0 -72
  23. package/dist/packages/wje-accordion/accordion.test.d.ts +0 -0
  24. package/dist/packages/wje-accordion-item/accordion-item.d.ts +0 -2
  25. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +0 -40
  26. package/dist/packages/wje-animation/animation.d.ts +0 -2
  27. package/dist/packages/wje-animation/animation.element.d.ts +0 -158
  28. package/dist/packages/wje-animation/animation.test.d.ts +0 -1
  29. package/dist/packages/wje-aside/aside.d.ts +0 -2
  30. package/dist/packages/wje-aside/aside.element.d.ts +0 -31
  31. package/dist/packages/wje-avatar/avatar.d.ts +0 -2
  32. package/dist/packages/wje-avatar/avatar.element.d.ts +0 -76
  33. package/dist/packages/wje-avatar/avatar.test.d.ts +0 -1
  34. package/dist/packages/wje-avatar/service/service.d.ts +0 -40
  35. package/dist/packages/wje-badge/badge.d.ts +0 -2
  36. package/dist/packages/wje-badge/badge.element.d.ts +0 -35
  37. package/dist/packages/wje-badge/badge.test.d.ts +0 -1
  38. package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +0 -2
  39. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +0 -80
  40. package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +0 -2
  41. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +0 -97
  42. package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +0 -1
  43. package/dist/packages/wje-button/button.d.ts +0 -2
  44. package/dist/packages/wje-button/button.element.d.ts +0 -173
  45. package/dist/packages/wje-button/button.test.d.ts +0 -1
  46. package/dist/packages/wje-button-group/button-group.d.ts +0 -2
  47. package/dist/packages/wje-button-group/button-group.element.d.ts +0 -39
  48. package/dist/packages/wje-card/card.d.ts +0 -2
  49. package/dist/packages/wje-card/card.element.d.ts +0 -29
  50. package/dist/packages/wje-card-content/card-content.d.ts +0 -2
  51. package/dist/packages/wje-card-content/card-content.element.d.ts +0 -22
  52. package/dist/packages/wje-card-controls/card-controls.d.ts +0 -2
  53. package/dist/packages/wje-card-controls/card-controls.element.d.ts +0 -23
  54. package/dist/packages/wje-card-header/card-header.d.ts +0 -2
  55. package/dist/packages/wje-card-header/card-header.element.d.ts +0 -22
  56. package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +0 -2
  57. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +0 -30
  58. package/dist/packages/wje-card-title/card-title.d.ts +0 -2
  59. package/dist/packages/wje-card-title/card-title.element.d.ts +0 -32
  60. package/dist/packages/wje-carousel/carousel.d.ts +0 -2
  61. package/dist/packages/wje-carousel/carousel.element.d.ts +0 -146
  62. package/dist/packages/wje-carousel-item/carousel-item.d.ts +0 -2
  63. package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +0 -38
  64. package/dist/packages/wje-checkbox/checkbox.d.ts +0 -2
  65. package/dist/packages/wje-checkbox/checkbox.element.d.ts +0 -171
  66. package/dist/packages/wje-chip/chip.d.ts +0 -2
  67. package/dist/packages/wje-chip/chip.element.d.ts +0 -30
  68. package/dist/packages/wje-col/col.d.ts +0 -2
  69. package/dist/packages/wje-col/col.element.d.ts +0 -16
  70. package/dist/packages/wje-color-picker/color-picker.d.ts +0 -2
  71. package/dist/packages/wje-color-picker/color-picker.element.d.ts +0 -187
  72. package/dist/packages/wje-color-picker/color-picker.test.d.ts +0 -1
  73. package/dist/packages/wje-container/container.d.ts +0 -2
  74. package/dist/packages/wje-container/container.element.d.ts +0 -31
  75. package/dist/packages/wje-copy-button/copy-button.d.ts +0 -2
  76. package/dist/packages/wje-copy-button/copy-button.element.d.ts +0 -89
  77. package/dist/packages/wje-copy-button/service/service.d.ts +0 -12
  78. package/dist/packages/wje-dialog/dialog.d.ts +0 -2
  79. package/dist/packages/wje-dialog/dialog.element.d.ts +0 -116
  80. package/dist/packages/wje-divider/divider.d.ts +0 -2
  81. package/dist/packages/wje-divider/divider.element.d.ts +0 -32
  82. package/dist/packages/wje-dropdown/dropdown.d.ts +0 -2
  83. package/dist/packages/wje-dropdown/dropdown.element.d.ts +0 -85
  84. package/dist/packages/wje-element/element.d.ts +0 -316
  85. package/dist/packages/wje-element/service/universal-service.d.ts +0 -18
  86. package/dist/packages/wje-file-upload/file-upload.d.ts +0 -2
  87. package/dist/packages/wje-file-upload/file-upload.element.d.ts +0 -191
  88. package/dist/packages/wje-file-upload/service/service.d.ts +0 -70
  89. package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +0 -2
  90. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +0 -66
  91. package/dist/packages/wje-footer/footer.d.ts +0 -2
  92. package/dist/packages/wje-footer/footer.element.d.ts +0 -28
  93. package/dist/packages/wje-form/form.d.ts +0 -2
  94. package/dist/packages/wje-form/form.element.d.ts +0 -28
  95. package/dist/packages/wje-format-digital/format-digital.d.ts +0 -2
  96. package/dist/packages/wje-format-digital/format-digital.element.d.ts +0 -87
  97. package/dist/packages/wje-format-digital/format-digital.test.d.ts +0 -1
  98. package/dist/packages/wje-grid/grid.d.ts +0 -2
  99. package/dist/packages/wje-grid/grid.element.d.ts +0 -26
  100. package/dist/packages/wje-header/header.d.ts +0 -2
  101. package/dist/packages/wje-header/header.element.d.ts +0 -35
  102. package/dist/packages/wje-icon/icon.d.ts +0 -2
  103. package/dist/packages/wje-icon/icon.element.d.ts +0 -40
  104. package/dist/packages/wje-icon/service/service.d.ts +0 -11
  105. package/dist/packages/wje-icon-picker/icon-picker.d.ts +0 -2
  106. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +0 -197
  107. package/dist/packages/wje-img/img.d.ts +0 -2
  108. package/dist/packages/wje-img/img.element.d.ts +0 -117
  109. package/dist/packages/wje-img-comparer/img-comparer.d.ts +0 -2
  110. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +0 -60
  111. package/dist/packages/wje-img-comparer/service/service.d.ts +0 -1
  112. package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +0 -2
  113. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +0 -173
  114. package/dist/packages/wje-input/input.d.ts +0 -2
  115. package/dist/packages/wje-input/input.element.d.ts +0 -204
  116. package/dist/packages/wje-input-file/input-file.d.ts +0 -2
  117. package/dist/packages/wje-input-file/input-file.element.d.ts +0 -50
  118. package/dist/packages/wje-item/item.d.ts +0 -2
  119. package/dist/packages/wje-item/item.element.d.ts +0 -68
  120. package/dist/packages/wje-kanban/kanban.d.ts +0 -2
  121. package/dist/packages/wje-kanban/kanban.element.d.ts +0 -183
  122. package/dist/packages/wje-label/label.d.ts +0 -2
  123. package/dist/packages/wje-label/label.element.d.ts +0 -34
  124. package/dist/packages/wje-level-indicator/level-indicator.d.ts +0 -2
  125. package/dist/packages/wje-level-indicator/level-indicator.element.d.ts +0 -91
  126. package/dist/packages/wje-list/list.d.ts +0 -2
  127. package/dist/packages/wje-list/list.element.d.ts +0 -31
  128. package/dist/packages/wje-main/main.d.ts +0 -2
  129. package/dist/packages/wje-main/main.element.d.ts +0 -30
  130. package/dist/packages/wje-masonry/masonry.d.ts +0 -2
  131. package/dist/packages/wje-masonry/masonry.element.d.ts +0 -114
  132. package/dist/packages/wje-masonry/service/service.d.ts +0 -32
  133. package/dist/packages/wje-menu/menu.d.ts +0 -2
  134. package/dist/packages/wje-menu/menu.element.d.ts +0 -47
  135. package/dist/packages/wje-menu-button/menu-button.d.ts +0 -2
  136. package/dist/packages/wje-menu-button/menu-button.element.d.ts +0 -34
  137. package/dist/packages/wje-menu-item/menu-item.d.ts +0 -2
  138. package/dist/packages/wje-menu-item/menu-item.element.d.ts +0 -139
  139. package/dist/packages/wje-menu-label/menu-label.d.ts +0 -2
  140. package/dist/packages/wje-menu-label/menu-label.element.d.ts +0 -39
  141. package/dist/packages/wje-option/option.d.ts +0 -2
  142. package/dist/packages/wje-option/option.element.d.ts +0 -59
  143. package/dist/packages/wje-options/options.d.ts +0 -2
  144. package/dist/packages/wje-options/options.element.d.ts +0 -183
  145. package/dist/packages/wje-orgchart/orgchart.d.ts +0 -2
  146. package/dist/packages/wje-orgchart/orgchart.element.d.ts +0 -24
  147. package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +0 -2
  148. package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +0 -28
  149. package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +0 -2
  150. package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +0 -49
  151. package/dist/packages/wje-pagination/pagination.d.ts +0 -2
  152. package/dist/packages/wje-pagination/pagination.element.d.ts +0 -166
  153. package/dist/packages/wje-pagination/pagination.test.d.ts +0 -1
  154. package/dist/packages/wje-pagination/service/service.d.ts +0 -9
  155. package/dist/packages/wje-panel/panel.d.ts +0 -2
  156. package/dist/packages/wje-panel/panel.element.d.ts +0 -34
  157. package/dist/packages/wje-popup/popup.d.ts +0 -2
  158. package/dist/packages/wje-popup/popup.element.d.ts +0 -93
  159. package/dist/packages/wje-progress-bar/progress-bar.d.ts +0 -2
  160. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +0 -96
  161. package/dist/packages/wje-qr-code/qr-code.d.ts +0 -2
  162. package/dist/packages/wje-qr-code/qr-code.element.d.ts +0 -33
  163. package/dist/packages/wje-radio/radio.d.ts +0 -2
  164. package/dist/packages/wje-radio/radio.element.d.ts +0 -53
  165. package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
  166. package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -137
  167. package/dist/packages/wje-rate/rate.d.ts +0 -2
  168. package/dist/packages/wje-rate/rate.element.d.ts +0 -156
  169. package/dist/packages/wje-relative-time/relative-time.d.ts +0 -2
  170. package/dist/packages/wje-relative-time/relative-time.element.d.ts +0 -55
  171. package/dist/packages/wje-relative-time/relative-time.test.d.ts +0 -1
  172. package/dist/packages/wje-reorder/reorder.d.ts +0 -2
  173. package/dist/packages/wje-reorder/reorder.element.d.ts +0 -119
  174. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +0 -2
  175. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +0 -23
  176. package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +0 -2
  177. package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +0 -75
  178. package/dist/packages/wje-reorder-item/reorder-item.d.ts +0 -2
  179. package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +0 -24
  180. package/dist/packages/wje-route/route.d.ts +0 -2
  181. package/dist/packages/wje-route/route.element.d.ts +0 -22
  182. package/dist/packages/wje-router/router.d.ts +0 -2
  183. package/dist/packages/wje-router/router.element.d.ts +0 -39
  184. package/dist/packages/wje-router-link/router-link.d.ts +0 -2
  185. package/dist/packages/wje-router-link/router-link.element.d.ts +0 -31
  186. package/dist/packages/wje-router-outlet/router-outlet.d.ts +0 -2
  187. package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +0 -15
  188. package/dist/packages/wje-row/row.d.ts +0 -2
  189. package/dist/packages/wje-row/row.element.d.ts +0 -23
  190. package/dist/packages/wje-select/select.d.ts +0 -2
  191. package/dist/packages/wje-select/select.element.d.ts +0 -315
  192. package/dist/packages/wje-slider/slider.d.ts +0 -2
  193. package/dist/packages/wje-slider/slider.element.d.ts +0 -103
  194. package/dist/packages/wje-split-view/service/service.d.ts +0 -1
  195. package/dist/packages/wje-split-view/split-view.d.ts +0 -2
  196. package/dist/packages/wje-split-view/split-view.element.d.ts +0 -66
  197. package/dist/packages/wje-status/status.d.ts +0 -2
  198. package/dist/packages/wje-status/status.element.d.ts +0 -26
  199. package/dist/packages/wje-step/step.d.ts +0 -2
  200. package/dist/packages/wje-step/step.element.d.ts +0 -23
  201. package/dist/packages/wje-stepper/stepper.d.ts +0 -2
  202. package/dist/packages/wje-stepper/stepper.element.d.ts +0 -78
  203. package/dist/packages/wje-store/default-store-actions.d.ts +0 -25
  204. package/dist/packages/wje-store/pubsub.d.ts +0 -21
  205. package/dist/packages/wje-store/store.d.ts +0 -153
  206. package/dist/packages/wje-tab/tab.d.ts +0 -2
  207. package/dist/packages/wje-tab/tab.element.d.ts +0 -41
  208. package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
  209. package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -67
  210. package/dist/packages/wje-tab-panel/tab-panel.d.ts +0 -2
  211. package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +0 -23
  212. package/dist/packages/wje-textarea/textarea.d.ts +0 -2
  213. package/dist/packages/wje-textarea/textarea.element.d.ts +0 -176
  214. package/dist/packages/wje-thumbnail/thumbnail.d.ts +0 -2
  215. package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +0 -31
  216. package/dist/packages/wje-timeline/timeline.d.ts +0 -2
  217. package/dist/packages/wje-timeline/timeline.element.d.ts +0 -25
  218. package/dist/packages/wje-timeline-item/timeline-item.d.ts +0 -2
  219. package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +0 -27
  220. package/dist/packages/wje-toast/toast.d.ts +0 -2
  221. package/dist/packages/wje-toast/toast.element.d.ts +0 -173
  222. package/dist/packages/wje-toast/toast.test.d.ts +0 -1
  223. package/dist/packages/wje-toggle/toggle.d.ts +0 -2
  224. package/dist/packages/wje-toggle/toggle.element.d.ts +0 -65
  225. package/dist/packages/wje-toolbar/toolbar.d.ts +0 -2
  226. package/dist/packages/wje-toolbar/toolbar.element.d.ts +0 -39
  227. package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +0 -2
  228. package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +0 -35
  229. package/dist/packages/wje-tooltip/tooltip.d.ts +0 -2
  230. package/dist/packages/wje-tooltip/tooltip.element.d.ts +0 -71
  231. package/dist/packages/wje-tree/tree.d.ts +0 -2
  232. package/dist/packages/wje-tree/tree.element.d.ts +0 -104
  233. package/dist/packages/wje-tree/tree.test.d.ts +0 -1
  234. package/dist/packages/wje-tree-item/tree-item.d.ts +0 -2
  235. package/dist/packages/wje-tree-item/tree-item.element.d.ts +0 -155
  236. package/dist/packages/wje-tree-item/tree-item.test.d.ts +0 -1
  237. package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +0 -2
  238. package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +0 -29
@@ -1,173 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Toast` is a custom web component that represents a toast notification.
4
- * @summary This element represents a toast notification.
5
- * @documentation https://elements.webjet.sk/components/toast
6
- * @status stable
7
- * @augments {WJElement}
8
- * @csspart native - The native part
9
- * @cssproperty {string} headline - Specifies the headline text of the toast. Represents the main title or heading displayed in the toast.
10
- * @cssproperty {boolean} open - Indicates whether the toast is currently open (visible). A value of `true` shows the toast, while `false` hides it.
11
- * @cssproperty {number} duration - Determines the duration (in milliseconds) for which the toast is displayed. After this time, the toast will automatically close unless it is manually closed.
12
- * @cssproperty {boolean} closable - Specifies whether the toast can be manually closed by the user. If `true`, the toast will include a close button or mechanism.
13
- * @cssproperty {string} color - Defines the color of the toast. Accepts any valid CSS color value such as `hex`, `RGB`, or named colors.
14
- * @cssproperty {boolean} countdown - Indicates whether a countdown is displayed in the toast. When `true`, a visual countdown timer is shown to indicate the remaining time before the toast closes.
15
- * @slot - The content of the toast.
16
- * @slot media - The media of the toast.
17
- * // @fires wje-toast:after-show - Fired after the toast is shown.
18
- * // @fires wje-toast:after-hide - Fired after the toast is hidden.
19
- */
20
- export default class Toast extends WJElement {
21
- /**
22
- * Returns the CSS stylesheet for the component.
23
- * @static
24
- * @returns {CSSStyleSheet} The CSS stylesheet
25
- */
26
- static get cssStyleSheet(): CSSStyleSheet;
27
- toastStack: HTMLDivElement & {
28
- className: string;
29
- };
30
- /**
31
- * Set headline value of the toast.
32
- * @param value
33
- */
34
- set headline(value: string);
35
- /**
36
- * Get headline value of the toast.
37
- * @returns {string}
38
- */
39
- get headline(): string;
40
- /**
41
- * Set open value of the toast.
42
- * @param value
43
- */
44
- set open(value: boolean);
45
- /**
46
- * Get open value of the toast.
47
- * @returns {boolean}
48
- */
49
- get open(): boolean;
50
- /**
51
- * Set duration value of the toast.
52
- * @param value
53
- */
54
- set duration(value: number);
55
- /**
56
- * Get duration value of the toast.
57
- * @returns {number}
58
- */
59
- get duration(): number;
60
- /**
61
- * Set closable value of the toast.
62
- * @param value
63
- */
64
- set closable(value: boolean);
65
- /**
66
- * Get closable value of the toast.
67
- * @returns {boolean}
68
- */
69
- get closable(): boolean;
70
- /**
71
- * Set color value of the toast.
72
- * @param value
73
- */
74
- set color(value: string);
75
- /**
76
- * Get color value of the toast.
77
- * @returns {string}
78
- */
79
- get color(): string;
80
- /**
81
- * Set countdown value of the toast.
82
- * @param value
83
- */
84
- set countdown(value: boolean);
85
- /**
86
- * Get countdown value of the toast.
87
- * @returns {boolean}
88
- */
89
- get countdown(): boolean;
90
- /**
91
- * Set icon value of the toast.
92
- * @param value
93
- */
94
- set icon(value: string);
95
- /**
96
- * Get icon value of the toast.
97
- * @returns {string}
98
- */
99
- get icon(): string;
100
- /**
101
- * Draw method for the toast notification.
102
- * @returns {object} Document fragment
103
- */
104
- draw(): object;
105
- closeBtn: HTMLElement;
106
- countdownBar: HTMLDivElement;
107
- /**
108
- * After draw method for the toast notification.
109
- */
110
- afterDraw(): void;
111
- countdownAnimation: Animation;
112
- remainingTime: number;
113
- /**
114
- * Starts the timer.
115
- * This method sets the `startTime` property to the current time and sets
116
- * the `timeoutID` property to the ID of the timeout. The method also
117
- * dispatches the `wje-toast:after-hide` custom event when the timeout
118
- * expires.
119
- */
120
- startTimer(): void;
121
- startTime: number;
122
- timeoutID: number;
123
- /**
124
- * Stops the timer.
125
- * This method clears the timeout and calculates the remaining time.
126
- * The method is called when the toast notification is paused.
127
- */
128
- stopTimer(): void;
129
- /**
130
- * Resumes the timer.
131
- * This method resumes the timer if the remaining time is greater
132
- * than zero. The method is called when the toast notification is resumed.
133
- */
134
- resumeTimer(): void;
135
- /**
136
- * Asynchronously shows the toast notification.
137
- * This method sets the `open` property to `true` and dispatches the
138
- * `wje-toast:after-show` custom event. If the toast is already open,
139
- * the method returns `undefined`.
140
- */
141
- show: () => void;
142
- /**
143
- * Asynchronously hides the toast notification.
144
- * This method sets the `open` property to `false` and dispatches the
145
- * `wje-toast:after-hide` custom event. If the toast is already hidden,
146
- * the method returns `undefined`.
147
- */
148
- hide: () => void;
149
- /**
150
- * Pauses the countdown animation and stops the timer.
151
- */
152
- pause: () => void;
153
- /**
154
- * Resumes the countdown animation and resumes the timer.
155
- */
156
- resume: () => void;
157
- /**
158
- * Removes the toast notification and the toast stack.
159
- *
160
- * This method removes the toast notification from the toast stack and
161
- * removes the toast stack from the document body if the toast stack is
162
- * empty.
163
- */
164
- removeChildAndStack(): void;
165
- /**
166
- * Asynchronously starts the toast notification.
167
- * This method appends the toast notification to the document body and
168
- * shows the toast notification. The method returns a promise that
169
- * resolves when the toast notification is shown.
170
- * @returns {Promise<unknown>}
171
- */
172
- start: () => Promise<unknown>;
173
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { default as Toggle } from './toggle.element.js';
2
- export default Toggle;
@@ -1,65 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Toggle` is a custom web component that represents a toggle input.
4
- * @summary This element represents a toggle input.
5
- * @documentation https://elements.webjet.sk/components/toggle
6
- * @status stable
7
- * @augments {WJElement}
8
- * @csspart native - The native toggle wrapper.
9
- * @csspart input - The toggle input.
10
- * @csspart toggle - The toggle part.
11
- * @slot - The default slot for the toggle.
12
- * @cssproperty [--wje-toggle-color-base=var(--wje-color-contrast-3)] - The base background color of the toggle. Defines the default background color when the toggle is in an unselected state.
13
- * @cssproperty [--wje-toggle-width=30px] - The overall width of the toggle switch. Determines how wide the toggle component appears.
14
- * @cssproperty [--wje-toggle-height=18px] - The overall height of the toggle switch. Specifies how tall the toggle component appears.
15
- * @cssproperty [--wje-toggle-border-radius=50px] - The border radius of the toggle. Controls how rounded the corners of the toggle are.
16
- * @cssproperty [--wje-toggle-handle-width=14px] - The width of the toggle handle (knob). Determines the size of the handle for user interaction.
17
- * @cssproperty [--wje-toggle-handle-height=14px] - The height of the toggle handle (knob). Specifies the vertical size of the handle.
18
- * @cssproperty [--wje-toggle-handle-border-radius=9px] - The border radius of the toggle handle. Controls how rounded the handle is.
19
- * @cssproperty [--wje-toggle-handle-color=#fff] - The color of the toggle handle. Accepts any valid CSS color, such as `hex`, `rgb`, or `css variable`.
20
- * @cssproperty [--wje-toggle-handle-shadow=1px 0 1px 0.5px rgba(0,0,0,0.12), 2px 4px 6px rgba(0,0,0,0.2)] - The shadow applied to the toggle handle. Adds a subtle shadow effect for better visual clarity.
21
- * @cssproperty [--wje-toggle-handle-shadow-checked=1px 1px 0 rgba(0,0,0,0.08), -3px 3px 6px rgba(0,0,0,0.3)] - The shadow applied to the toggle handle when it is in the checked (on) state. Provides visual feedback to indicate the toggle state.
22
- * @cssproperty [--wje-toggle-duration=250ms] - The duration of the toggle animation in milliseconds. Controls how long the toggle animation lasts during state changes.
23
- * @cssproperty [--wje-toggle-curve=cubic-bezier(.4,0,.2,1)] - The easing curve used for the toggle animation. Defines the speed curve for the animation, enhancing the user experience with smooth transitions.
24
- * @tag wje-toggle
25
- */
26
- export default class Toggle extends WJElement {
27
- /**
28
- * Get CSS stylesheet for the Button element.
29
- * @static
30
- * @returns {CSSStyleSheet} styles - The CSS stylesheet for the Button element.
31
- */
32
- static get cssStyleSheet(): CSSStyleSheet;
33
- /**
34
- * Get observed attributes for the toggle element.
35
- * @returns {string[]}
36
- */
37
- static get observedAttributes(): string[];
38
- /**
39
- * Set checked attribute for the toggle element.
40
- */
41
- set disabled(value: boolean);
42
- /**
43
- * Get checked attribute for the toggle element.
44
- * @returns {boolean} true if the toggle is disabled, false otherwise
45
- */
46
- get disabled(): boolean;
47
- /**
48
- * Set checked attribute for the toggle element.
49
- */
50
- set checked(value: boolean);
51
- /**
52
- * Get checked attribute for the toggle element.
53
- * @returns {boolean} true if the toggle is checked, false otherwise
54
- */
55
- get checked(): boolean;
56
- /**
57
- * Draw the toggle element for the component.
58
- */
59
- draw(): DocumentFragment;
60
- input: HTMLInputElement;
61
- /**
62
- * After draw method for the toggle element to add event listeners for the input element after the element is drawn.
63
- */
64
- afterDraw(): void;
65
- }
@@ -1,2 +0,0 @@
1
- import { default as Toolbar } from './toolbar.element.js';
2
- export default Toolbar;
@@ -1,39 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Toolbar` is a custom web component that represents a toolbar.
4
- * @summary This element represents a toolbar.
5
- * @documentation https://elements.webjet.sk/components/toolbar
6
- * @status stable
7
- * @augments {WJElement}
8
- * @csspart native - The native toolbar wrapper.
9
- * @slot start - The start slot for the toolbar.
10
- * @slot end - The end slot for the toolbar.
11
- * @cssproperty [--wje-toolbar-background=var(--wje-background)] - Specifies the background color of the toolbar. Accepts any valid CSS color value, such as `hex`, `rgb`, or `CSS variable`.
12
- * @cssproperty [--wje-toolbar-height=auto] - Defines the height of the toolbar. If set to `auto`, the height adjusts based on the content.
13
- * @cssproperty [--wje-toolbar-min-height=70px] - Sets the minimum height of the toolbar. Ensures the toolbar maintains a consistent minimum size.
14
- * @cssproperty [--wje-toolbar-padding-top=1rem] - Specifies the padding at the top of the toolbar. Accepts any valid CSS length unit.
15
- * @cssproperty [--wje-toolbar-padding-bottom=1rem] - Specifies the padding at the bottom of the toolbar. Helps create spacing between the content and the bottom edge.
16
- * @cssproperty [--wje-toolbar-padding-inline=1.5rem] - Defines the horizontal padding (left and right) of the toolbar. Creates consistent spacing on both sides.
17
- * @cssproperty [--wje-toolbar-border-color=var(--wje-border-color)] - Sets the color of the toolbar's border. Accepts any valid CSS color value.
18
- * @cssproperty [--wje-toolbar-top=0] - Specifies the vertical position of the toolbar relative to its container. Useful for fixed or sticky toolbars.
19
- * @tag wje-toolbar
20
- */
21
- export default class Toolbar extends WJElement {
22
- /**
23
- * Returns the CSS stylesheet for the component.
24
- * @static
25
- * @returns {CSSStyleSheet} The CSS stylesheet
26
- */
27
- static get cssStyleSheet(): CSSStyleSheet;
28
- /**
29
- * Returns the list of observed attributes.
30
- * @static
31
- * @returns {Array} An empty array
32
- */
33
- static get observedAttributes(): any[];
34
- /**
35
- * Draws the component for the toolbar.
36
- * @returns {object} Document fragment
37
- */
38
- draw(): object;
39
- }
@@ -1,2 +0,0 @@
1
- import { default as ToolbarAction } from './toolbar-action.element.js';
2
- export default ToolbarAction;
@@ -1,35 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `ToolbarAction` is a custom web component that represents a toolbar action.
4
- * @summary This element represents a toolbar action.
5
- * @documentation https://elements.webjet.sk/components/toolbar-action
6
- * @status stable
7
- * @augments {WJElement}
8
- * @csspart native - The native toolbar action wrapper.
9
- * @slot - The default slot for the toolbar action.
10
- * @tag wje-toolbar-action
11
- */
12
- export default class ToolbarAction extends WJElement {
13
- /**
14
- * Returns the CSS stylesheet for the component.
15
- * @static
16
- * @returns {CSSStyleSheet} The CSS stylesheet
17
- */
18
- static get cssStyleSheet(): CSSStyleSheet;
19
- /**
20
- * Returns the list of observed attributes.
21
- * @static
22
- * @returns {Array} An empty array
23
- */
24
- static get observedAttributes(): any[];
25
- /**
26
- * Draws the component for the toolbar action.
27
- * @returns {object} Document fragment
28
- */
29
- draw(): object;
30
- /**
31
- * Returns the actions for the toolbar action.
32
- * @returns {Array} An array of wje-button elements
33
- */
34
- getActions(): any[];
35
- }
@@ -1,2 +0,0 @@
1
- import { default as Tooltip } from './tooltip.element.js';
2
- export default Tooltip;
@@ -1,71 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Tooltip` is a custom web component that represents a tooltip.
4
- * @summary This element represents a tooltip.
5
- * @documentation https://elements.webjet.sk/components/tooltip
6
- * @status stable
7
- * @augments {WJElement}
8
- * @attribute {string} content - The content of the tooltip element. Accepts any valid string value.
9
- * @slot arrow - The arrow slot for the tooltip.
10
- * @slot anchor - The anchor slot for the tooltip.
11
- * @csspart native - The native tooltip wrapper.
12
- * @cssproperty [--wje-tooltip-arrow-color=var(--wje-color-contrast-11)] - Specifies the color of the tooltip's arrow. This property determines the visual color of the arrow that points to the element the tooltip is attached to. Accepts any valid CSS color value such as `hex`, `rgb`, or `CSS variable`.
13
- * @tag wje-tooltip
14
- */
15
- export default class Tooltip extends WJElement {
16
- /**
17
- * Returns the CSS stylesheet for the component.
18
- * @static
19
- * @returns {CSSStyleSheet} The CSS stylesheet
20
- */
21
- static get cssStyleSheet(): CSSStyleSheet;
22
- /**
23
- * Returns the list of observed attributes.
24
- * @static
25
- * @returns {Array} An array of observed attributes
26
- */
27
- static get observedAttributes(): any[];
28
- /**
29
- * Set active attribute for the tooltip element.
30
- * @param value
31
- */
32
- set content(value: string);
33
- /**
34
- * Get active attribute for the tooltip element.
35
- * @returns {string}
36
- */
37
- get content(): string;
38
- /**
39
- * Draws the component for the tooltip.
40
- * @returns {object} Document fragment
41
- */
42
- draw(): object;
43
- mySlot: HTMLSlotElement;
44
- popup: HTMLElement;
45
- native: HTMLDivElement;
46
- /**
47
- * Draws the component for the tooltip.
48
- */
49
- afterDraw(): void;
50
- dispatch(customEvent: any): Promise<any>;
51
- beforeShow(): string;
52
- afterShow(): boolean;
53
- /**
54
- * Handles the logic for showing the component's popup or tooltip.
55
- * Adds the `active` class, invokes lifecycle hooks, and manages the popup visibility.
56
- * @throws {Error} If the `beforeShow` method returns a non-string value or `false`.
57
- */
58
- onShow: () => void;
59
- /**
60
- * Hides the component's popup or tooltip.
61
- * Removes the `active` class from the component and hides the popup element.
62
- */
63
- onHide: () => void;
64
- /**
65
- * Validates if the specified selector exists within the provided element.
66
- * Logs an error if the selector is not found and returns the found element or `null`.
67
- * @param {HTMLElement} anchorEl The root element to search within.
68
- * @returns {HTMLElement|null} The first element matching the selector, or `null` if not found.
69
- */
70
- checkSelector(anchorEl: HTMLElement): HTMLElement | null;
71
- }
@@ -1,2 +0,0 @@
1
- import { default as Tree } from './tree.element.js';
2
- export default Tree;
@@ -1,104 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Tree` is a custom web component that represents a hierarchical tree structure.
4
- * It extends from `WJElement`.
5
- * @summary This element visually represents a tree structure, supporting single or multiple selection modes and hierarchy management.
6
- * @documentation https://elements.webjet.sk/components/tree
7
- * @status stable
8
- * @augments {WJElement}
9
- * @csspart native - The native container part of the tree.
10
- * @slot - The default slot to place `wje-tree-item` child components.
11
- * @tag wje-tree
12
- */
13
- export default class Tree extends WJElement {
14
- /**
15
- * Returns the CSS stylesheet for the component.
16
- * @static
17
- * @returns {CSSStyleSheet} The CSS stylesheet
18
- */
19
- static get cssStyleSheet(): CSSStyleSheet;
20
- /**
21
- * Sets the selection attribute for the element.
22
- * @param {string} value The value to set as the selection attribute.
23
- */
24
- set selection(value: string);
25
- /**
26
- * Gets the current selection mode for the element.
27
- * If no selection is explicitly set, it defaults to 'single'.
28
- * @returns {string} The current selection mode, either set by the element's attribute or the default value 'single'.
29
- */
30
- get selection(): string;
31
- /**
32
- * A method called before the drawing or rendering process of tree items.
33
- * It iterates through all `wje-tree-item` elements, updating their selection state
34
- * and managing their expand/collapse icons accordingly.
35
- * @returns {void} This method does not return a value.
36
- */
37
- beforeDraw(): void;
38
- /**
39
- * Draw method for the toast notification.
40
- * @returns {object} Document fragment
41
- */
42
- draw(): object;
43
- /**
44
- * Called after the draw process of the component is completed.
45
- * Typically used to add event listeners or perform operations
46
- * that are dependent on the component's drawn state.
47
- * @returns {void} This method does not return a value.
48
- */
49
- afterDraw(): void;
50
- /**
51
- * Handles the click event triggered by the user interaction.
52
- * Identifies the closest tree item element to the event target and sets it
53
- * as the selected item. Ensures that only one item is selected at a time, resetting
54
- * the selection state for all other items.
55
- * @param {Event} e The click event object.
56
- */
57
- handleClick: (e: Event) => void;
58
- /**
59
- * Retrieves all items that match the selector 'wje-tree-item' within the current context.
60
- * @returns {Array<Element>} An array of all matching DOM elements.
61
- */
62
- getAllItems(): Array<Element>;
63
- /**
64
- * Retrieves and appends an expand/collapse icon to a given item based on the provided status.
65
- * @param {HTMLElement} item The DOM element to which the icon will be appended.
66
- * @param {string} status The status indicating which icon to retrieve (e.g., "expand" or "collapse").
67
- * @returns {void} This method does not return a value. If the icon matching the given status is not found, a warning is logged.
68
- */
69
- getExpandCollapseIcon(item: HTMLElement, status: string): void;
70
- /**
71
- * Updates the state of a checkbox, syncing the state both upwards to parent elements
72
- * and downwards to child elements as necessary.
73
- * @param {object} changedItem The specific item whose checkbox state has changed.
74
- * @param {boolean} [isInitialSync] Indicates whether the state update is part of the initial synchronization process.
75
- * @returns {void} This method does not return a value.
76
- */
77
- updateCheckboxState(changedItem: object, isInitialSync?: boolean): void;
78
- isInitialSync: boolean;
79
- /**
80
- * Updates the state of the parent item based on the state of its child items.
81
- * Recursively propagates changes up to all parent items to reflect the selection
82
- * or indeterminate state accurately.
83
- * @param {object} item The current tree item whose parent state needs to be updated.
84
- * It is expected to have properties `selected`, `indeterminate`,
85
- * and a method `getChildrenItems({ includeDisabled: boolean })`.
86
- * @returns {void} This method does not return a value.
87
- */
88
- updateParentState(item: object): void;
89
- /**
90
- * Propagates the state changes of an item upwards through its ancestors in the hierarchy.
91
- * Calls the `updateParentState` method for each parent element until no parent exists.
92
- * @param {HTMLElement} item The current item whose state to propagate to its parent.
93
- * @returns {void} This method does not return a value.
94
- */
95
- propagateStateUpwards(item: HTMLElement): void;
96
- /**
97
- * Propagates the selected state of an item to its children recursively. Depending on the `isInitialSync` flag,
98
- * it also determines how the state should be applied to the child items and updates the parent state if needed.
99
- * @param {object} item The item whose state is being propagated to its child items. The item must have properties
100
- * such as `selected` and methods like `getChildrenItems` to retrieve its child elements.
101
- * @returns {void} This method does not return a value.
102
- */
103
- propagateStateDownwards(item: object): void;
104
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { default as TreeItem } from './tree-item.element.js';
2
- export default TreeItem;