wj-elements 0.2.0-alpha.4 → 0.2.0-alpha.5

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 (243) hide show
  1. package/dist/packages/wje-sliding-container/sliding-container.element.d.ts +2 -2
  2. package/dist/wje-file-upload.js +1 -0
  3. package/dist/wje-file-upload.js.map +1 -1
  4. package/package.json +1 -1
  5. package/dist/index.d.ts +0 -107
  6. package/dist/internals/form-associated-element.d.ts +0 -143
  7. package/dist/localize/localize.d.ts +0 -48
  8. package/dist/translations/en-gb.d.ts +0 -18
  9. package/dist/translations/sk-sk.d.ts +0 -13
  10. package/dist/utils/animations.d.ts +0 -2
  11. package/dist/utils/base-path.d.ts +0 -14
  12. package/dist/utils/date.d.ts +0 -2
  13. package/dist/utils/element-utils.d.ts +0 -46
  14. package/dist/utils/event.d.ts +0 -67
  15. package/dist/utils/icon-library.d.ts +0 -3
  16. package/dist/utils/localize.d.ts +0 -4
  17. package/dist/utils/permissions.d.ts +0 -40
  18. package/dist/utils/universal-service.d.ts +0 -18
  19. package/dist/utils/utils.d.ts +0 -1
  20. package/dist/wje-accordion/accordion.d.ts +0 -2
  21. package/dist/wje-accordion/accordion.element.d.ts +0 -72
  22. package/dist/wje-accordion/accordion.test.d.ts +0 -0
  23. package/dist/wje-accordion-item/accordion-item.d.ts +0 -2
  24. package/dist/wje-accordion-item/accordion-item.element.d.ts +0 -40
  25. package/dist/wje-animation/animation.d.ts +0 -2
  26. package/dist/wje-animation/animation.element.d.ts +0 -158
  27. package/dist/wje-aside/aside.d.ts +0 -2
  28. package/dist/wje-aside/aside.element.d.ts +0 -31
  29. package/dist/wje-avatar/avatar.d.ts +0 -2
  30. package/dist/wje-avatar/avatar.element.d.ts +0 -76
  31. package/dist/wje-avatar/avatar.test.d.ts +0 -1
  32. package/dist/wje-avatar/service/service.d.ts +0 -52
  33. package/dist/wje-badge/badge.d.ts +0 -2
  34. package/dist/wje-badge/badge.element.d.ts +0 -35
  35. package/dist/wje-badge/badge.test.d.ts +0 -1
  36. package/dist/wje-breadcrumb/breadcrumb.d.ts +0 -2
  37. package/dist/wje-breadcrumb/breadcrumb.element.d.ts +0 -98
  38. package/dist/wje-breadcrumbs/breadcrumbs.d.ts +0 -2
  39. package/dist/wje-breadcrumbs/breadcrumbs.element.d.ts +0 -105
  40. package/dist/wje-breadcrumbs/breadcrumbs.test.d.ts +0 -1
  41. package/dist/wje-button/button.d.ts +0 -2
  42. package/dist/wje-button/button.element.d.ts +0 -204
  43. package/dist/wje-button/button.test.d.ts +0 -1
  44. package/dist/wje-button-group/button-group.d.ts +0 -2
  45. package/dist/wje-button-group/button-group.element.d.ts +0 -96
  46. package/dist/wje-card/card.d.ts +0 -2
  47. package/dist/wje-card/card.element.d.ts +0 -31
  48. package/dist/wje-card-content/card-content.d.ts +0 -2
  49. package/dist/wje-card-content/card-content.element.d.ts +0 -22
  50. package/dist/wje-card-controls/card-controls.d.ts +0 -2
  51. package/dist/wje-card-controls/card-controls.element.d.ts +0 -23
  52. package/dist/wje-card-header/card-header.d.ts +0 -2
  53. package/dist/wje-card-header/card-header.element.d.ts +0 -22
  54. package/dist/wje-card-subtitle/card-subtitle.d.ts +0 -2
  55. package/dist/wje-card-subtitle/card-subtitle.element.d.ts +0 -30
  56. package/dist/wje-card-title/card-title.d.ts +0 -2
  57. package/dist/wje-card-title/card-title.element.d.ts +0 -32
  58. package/dist/wje-carousel/carousel.d.ts +0 -2
  59. package/dist/wje-carousel/carousel.element.d.ts +0 -154
  60. package/dist/wje-carousel-item/carousel-item.d.ts +0 -2
  61. package/dist/wje-carousel-item/carousel-item.element.d.ts +0 -38
  62. package/dist/wje-checkbox/checkbox.d.ts +0 -2
  63. package/dist/wje-checkbox/checkbox.element.d.ts +0 -100
  64. package/dist/wje-chip/chip.d.ts +0 -2
  65. package/dist/wje-chip/chip.element.d.ts +0 -76
  66. package/dist/wje-chip/chip.test.d.ts +0 -1
  67. package/dist/wje-col/col.d.ts +0 -2
  68. package/dist/wje-col/col.element.d.ts +0 -16
  69. package/dist/wje-color-picker/color-picker.d.ts +0 -2
  70. package/dist/wje-color-picker/color-picker.element.d.ts +0 -230
  71. package/dist/wje-color-picker/color-picker.test.d.ts +0 -1
  72. package/dist/wje-container/container.d.ts +0 -2
  73. package/dist/wje-container/container.element.d.ts +0 -31
  74. package/dist/wje-copy-button/copy-button.d.ts +0 -2
  75. package/dist/wje-copy-button/copy-button.element.d.ts +0 -89
  76. package/dist/wje-copy-button/service/service.d.ts +0 -12
  77. package/dist/wje-dialog/dialog.d.ts +0 -2
  78. package/dist/wje-dialog/dialog.element.d.ts +0 -132
  79. package/dist/wje-divider/divider.d.ts +0 -2
  80. package/dist/wje-divider/divider.element.d.ts +0 -32
  81. package/dist/wje-dropdown/dropdown.d.ts +0 -2
  82. package/dist/wje-dropdown/dropdown.element.d.ts +0 -108
  83. package/dist/wje-element/element.d.ts +0 -341
  84. package/dist/wje-file-upload/file-upload.d.ts +0 -2
  85. package/dist/wje-file-upload/file-upload.element.d.ts +0 -191
  86. package/dist/wje-file-upload/service/service.d.ts +0 -70
  87. package/dist/wje-file-upload-item/file-upload-item.d.ts +0 -2
  88. package/dist/wje-file-upload-item/file-upload-item.element.d.ts +0 -68
  89. package/dist/wje-footer/footer.d.ts +0 -2
  90. package/dist/wje-footer/footer.element.d.ts +0 -28
  91. package/dist/wje-form/form.d.ts +0 -2
  92. package/dist/wje-form/form.element.d.ts +0 -28
  93. package/dist/wje-format-digital/format-digital.d.ts +0 -2
  94. package/dist/wje-format-digital/format-digital.element.d.ts +0 -83
  95. package/dist/wje-format-digital/format-digital.test.d.ts +0 -1
  96. package/dist/wje-grid/grid.d.ts +0 -2
  97. package/dist/wje-grid/grid.element.d.ts +0 -26
  98. package/dist/wje-header/header.d.ts +0 -2
  99. package/dist/wje-header/header.element.d.ts +0 -35
  100. package/dist/wje-icon/icon.d.ts +0 -2
  101. package/dist/wje-icon/icon.element.d.ts +0 -40
  102. package/dist/wje-icon/service/library.d.ts +0 -3
  103. package/dist/wje-icon/service/service.d.ts +0 -11
  104. package/dist/wje-icon-picker/icon-picker.d.ts +0 -2
  105. package/dist/wje-icon-picker/icon-picker.element.d.ts +0 -210
  106. package/dist/wje-img/img.d.ts +0 -2
  107. package/dist/wje-img/img.element.d.ts +0 -118
  108. package/dist/wje-img-comparer/img-comparer.d.ts +0 -2
  109. package/dist/wje-img-comparer/img-comparer.element.d.ts +0 -60
  110. package/dist/wje-img-comparer/service/service.d.ts +0 -1
  111. package/dist/wje-infinite-scroll/infinite-scroll.d.ts +0 -2
  112. package/dist/wje-infinite-scroll/infinite-scroll.element.d.ts +0 -173
  113. package/dist/wje-input/input.d.ts +0 -2
  114. package/dist/wje-input/input.element.d.ts +0 -159
  115. package/dist/wje-input-file/input-file.d.ts +0 -2
  116. package/dist/wje-input-file/input-file.element.d.ts +0 -50
  117. package/dist/wje-item/item.d.ts +0 -2
  118. package/dist/wje-item/item.element.d.ts +0 -68
  119. package/dist/wje-kanban/kanban.d.ts +0 -2
  120. package/dist/wje-kanban/kanban.element.d.ts +0 -182
  121. package/dist/wje-label/label.d.ts +0 -2
  122. package/dist/wje-label/label.element.d.ts +0 -34
  123. package/dist/wje-level-indicator/level-indicator.d.ts +0 -2
  124. package/dist/wje-level-indicator/level-indicator.element.d.ts +0 -91
  125. package/dist/wje-list/list.d.ts +0 -2
  126. package/dist/wje-list/list.element.d.ts +0 -31
  127. package/dist/wje-main/main.d.ts +0 -2
  128. package/dist/wje-main/main.element.d.ts +0 -30
  129. package/dist/wje-masonry/masonry.d.ts +0 -2
  130. package/dist/wje-masonry/masonry.element.d.ts +0 -114
  131. package/dist/wje-masonry/service/service.d.ts +0 -32
  132. package/dist/wje-menu/menu.d.ts +0 -2
  133. package/dist/wje-menu/menu.element.d.ts +0 -47
  134. package/dist/wje-menu-button/menu-button.d.ts +0 -2
  135. package/dist/wje-menu-button/menu-button.element.d.ts +0 -34
  136. package/dist/wje-menu-item/menu-item.d.ts +0 -2
  137. package/dist/wje-menu-item/menu-item.element.d.ts +0 -161
  138. package/dist/wje-menu-label/menu-label.d.ts +0 -2
  139. package/dist/wje-menu-label/menu-label.element.d.ts +0 -39
  140. package/dist/wje-option/option.d.ts +0 -2
  141. package/dist/wje-option/option.element.d.ts +0 -95
  142. package/dist/wje-options/options.d.ts +0 -2
  143. package/dist/wje-options/options.element.d.ts +0 -232
  144. package/dist/wje-orgchart/orgchart.d.ts +0 -2
  145. package/dist/wje-orgchart/orgchart.element.d.ts +0 -24
  146. package/dist/wje-orgchart-group/orgchart-group.d.ts +0 -2
  147. package/dist/wje-orgchart-group/orgchart-group.element.d.ts +0 -28
  148. package/dist/wje-orgchart-item/orgchart-item.d.ts +0 -2
  149. package/dist/wje-orgchart-item/orgchart-item.element.d.ts +0 -49
  150. package/dist/wje-pagination/pagination.d.ts +0 -2
  151. package/dist/wje-pagination/pagination.element.d.ts +0 -178
  152. package/dist/wje-pagination/pagination.test.d.ts +0 -1
  153. package/dist/wje-pagination/service/service.d.ts +0 -9
  154. package/dist/wje-panel/panel.d.ts +0 -2
  155. package/dist/wje-panel/panel.element.d.ts +0 -34
  156. package/dist/wje-popup/popup.d.ts +0 -2
  157. package/dist/wje-popup/popup.element.d.ts +0 -145
  158. package/dist/wje-progress-bar/progress-bar.d.ts +0 -2
  159. package/dist/wje-progress-bar/progress-bar.element.d.ts +0 -96
  160. package/dist/wje-qr-code/qr-code.d.ts +0 -2
  161. package/dist/wje-qr-code/qr-code.element.d.ts +0 -33
  162. package/dist/wje-radio/radio.d.ts +0 -2
  163. package/dist/wje-radio/radio.element.d.ts +0 -64
  164. package/dist/wje-radio-group/radio-group.d.ts +0 -2
  165. package/dist/wje-radio-group/radio-group.element.d.ts +0 -61
  166. package/dist/wje-rate/rate.d.ts +0 -2
  167. package/dist/wje-rate/rate.element.d.ts +0 -156
  168. package/dist/wje-relative-time/relative-time.d.ts +0 -2
  169. package/dist/wje-relative-time/relative-time.element.d.ts +0 -55
  170. package/dist/wje-relative-time/relative-time.test.d.ts +0 -1
  171. package/dist/wje-reorder/reorder.d.ts +0 -2
  172. package/dist/wje-reorder/reorder.element.d.ts +0 -119
  173. package/dist/wje-reorder-dropzone/reorder-dropzone.d.ts +0 -2
  174. package/dist/wje-reorder-dropzone/reorder-dropzone.element.d.ts +0 -23
  175. package/dist/wje-reorder-handle/reorder-handle.d.ts +0 -2
  176. package/dist/wje-reorder-handle/reorder-handle.element.d.ts +0 -84
  177. package/dist/wje-reorder-item/reorder-item.d.ts +0 -2
  178. package/dist/wje-reorder-item/reorder-item.element.d.ts +0 -24
  179. package/dist/wje-route/route.d.ts +0 -2
  180. package/dist/wje-route/route.element.d.ts +0 -22
  181. package/dist/wje-router/router.d.ts +0 -2
  182. package/dist/wje-router/router.element.d.ts +0 -43
  183. package/dist/wje-router-link/router-link.d.ts +0 -2
  184. package/dist/wje-router-link/router-link.element.d.ts +0 -31
  185. package/dist/wje-router-outlet/router-outlet.d.ts +0 -2
  186. package/dist/wje-router-outlet/router-outlet.element.d.ts +0 -16
  187. package/dist/wje-row/row.d.ts +0 -2
  188. package/dist/wje-row/row.element.d.ts +0 -23
  189. package/dist/wje-select/select.d.ts +0 -2
  190. package/dist/wje-select/select.element.d.ts +0 -386
  191. package/dist/wje-select/select.test.d.ts +0 -1
  192. package/dist/wje-slider/slider.d.ts +0 -2
  193. package/dist/wje-slider/slider.element.d.ts +0 -103
  194. package/dist/wje-sliding-container/sliding-container.d.ts +0 -2
  195. package/dist/wje-sliding-container/sliding-container.element.d.ts +0 -265
  196. package/dist/wje-split-view/service/service.d.ts +0 -1
  197. package/dist/wje-split-view/split-view.d.ts +0 -2
  198. package/dist/wje-split-view/split-view.element.d.ts +0 -65
  199. package/dist/wje-status/status.d.ts +0 -2
  200. package/dist/wje-status/status.element.d.ts +0 -26
  201. package/dist/wje-step/step.d.ts +0 -2
  202. package/dist/wje-step/step.element.d.ts +0 -23
  203. package/dist/wje-stepper/stepper.d.ts +0 -2
  204. package/dist/wje-stepper/stepper.element.d.ts +0 -125
  205. package/dist/wje-store/default-store-actions.d.ts +0 -25
  206. package/dist/wje-store/pubsub.d.ts +0 -22
  207. package/dist/wje-store/store.d.ts +0 -153
  208. package/dist/wje-tab/tab.d.ts +0 -2
  209. package/dist/wje-tab/tab.element.d.ts +0 -66
  210. package/dist/wje-tab-group/tab-group.d.ts +0 -2
  211. package/dist/wje-tab-group/tab-group.element.d.ts +0 -131
  212. package/dist/wje-tab-group/tab-group.test.d.ts +0 -1
  213. package/dist/wje-tab-panel/tab-panel.d.ts +0 -2
  214. package/dist/wje-tab-panel/tab-panel.element.d.ts +0 -23
  215. package/dist/wje-textarea/textarea.d.ts +0 -2
  216. package/dist/wje-textarea/textarea.element.d.ts +0 -89
  217. package/dist/wje-thumbnail/thumbnail.d.ts +0 -2
  218. package/dist/wje-thumbnail/thumbnail.element.d.ts +0 -31
  219. package/dist/wje-timeline/timeline.d.ts +0 -2
  220. package/dist/wje-timeline/timeline.element.d.ts +0 -25
  221. package/dist/wje-timeline-item/timeline-item.d.ts +0 -2
  222. package/dist/wje-timeline-item/timeline-item.element.d.ts +0 -27
  223. package/dist/wje-toast/toast.d.ts +0 -2
  224. package/dist/wje-toast/toast.element.d.ts +0 -173
  225. package/dist/wje-toast/toast.test.d.ts +0 -1
  226. package/dist/wje-toggle/toggle.d.ts +0 -2
  227. package/dist/wje-toggle/toggle.element.d.ts +0 -81
  228. package/dist/wje-toggle/toggle.test.d.ts +0 -1
  229. package/dist/wje-toolbar/toolbar.d.ts +0 -2
  230. package/dist/wje-toolbar/toolbar.element.d.ts +0 -39
  231. package/dist/wje-toolbar-action/toolbar-action.d.ts +0 -2
  232. package/dist/wje-toolbar-action/toolbar-action.element.d.ts +0 -35
  233. package/dist/wje-tooltip/tooltip.d.ts +0 -2
  234. package/dist/wje-tooltip/tooltip.element.d.ts +0 -77
  235. package/dist/wje-tree/tree.d.ts +0 -2
  236. package/dist/wje-tree/tree.element.d.ts +0 -105
  237. package/dist/wje-tree/tree.test.d.ts +0 -1
  238. package/dist/wje-tree-item/tree-item.d.ts +0 -2
  239. package/dist/wje-tree-item/tree-item.element.d.ts +0 -155
  240. package/dist/wje-tree-item/tree-item.test.d.ts +0 -1
  241. package/dist/wje-visually-hidden/visually-hidden.d.ts +0 -2
  242. package/dist/wje-visually-hidden/visually-hidden.element.d.ts +0 -29
  243. /package/dist/{wje-animation/animation.test.d.ts → packages/wje-file-upload/file-upload.test.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- import { default as CardTitle } from './card-title.element.js';
2
- export default CardTitle;
@@ -1,32 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary CardTitle class that extends WJElement.
4
- * @documentation https://elements.webjet.sk/components/card-title
5
- * @status stable
6
- * @augments WJElement
7
- * @slot - The card title main content.
8
- * @cssproperty [--wje-card-title-font-size=24px] - Font size of the component;
9
- * @cssproperty [--wje-card-title-font-weight=500] - Font weight of the component;
10
- * @cssproperty [--wje-card-title-margin=0] - Margin of the component;
11
- * @cssproperty [--wje-card-title-padding=0] - Padding of the component;
12
- * @cssproperty [--wje-card-title-line-height=1.2] - Line height of the component;
13
- */
14
- export default class CardTitle extends WJElement {
15
- /**
16
- * Getter for the CSS stylesheet.
17
- * @returns {object} The styles object.
18
- * @static
19
- */
20
- static get cssStyleSheet(): object;
21
- /**
22
- * Getter for the observed attributes.
23
- * @returns {Array} An empty array.
24
- * @static
25
- */
26
- static get observedAttributes(): any[];
27
- /**
28
- * Draws the CardTitle element.
29
- * @returns {DocumentFragment} The created document fragment.
30
- */
31
- draw(): DocumentFragment;
32
- }
@@ -1,2 +0,0 @@
1
- import { default as Carousel } from './carousel.element.js';
2
- export default Carousel;
@@ -1,154 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary Carousel class that extends WJElement.
4
- * @documentation https://elements.webjet.sk/components/carousel
5
- * @status stable
6
- * @augments WJElement
7
- * @slot - The carousel main content.
8
- * @cssproperty [--wje-carousel-size=100%] - Size of the carousel component;
9
- */
10
- export default class Carousel extends WJElement {
11
- /**
12
- * Getter for the CSS stylesheet.
13
- * @returns {*}
14
- */
15
- static get cssStyleSheet(): any;
16
- /**
17
- * Getter for the observed attributes.
18
- * @returns {string[]}
19
- */
20
- static get observedAttributes(): string[];
21
- slidePerPage: number;
22
- /**
23
- * Active slide attribute.
24
- * @param value
25
- */
26
- set activeSlide(value: number | number);
27
- /**
28
- * Active slide attribute.
29
- * @returns {number|number}
30
- */
31
- get activeSlide(): number | number;
32
- /**
33
- * Pagination attribute.
34
- * @returns {boolean}
35
- */
36
- get pagination(): boolean;
37
- /**
38
- * Navigation attribute.
39
- * @returns {boolean}
40
- */
41
- get navigation(): boolean;
42
- /**
43
- * Thumbnails attribute.
44
- * @returns {boolean}
45
- */
46
- get thumbnails(): boolean;
47
- /**
48
- * Loop attribute.
49
- * @returns {boolean}
50
- */
51
- get loop(): boolean;
52
- /**
53
- * Before draw method for the Carousel.
54
- */
55
- beforeDraw(): void;
56
- /**
57
- * Draw method for the Carousel.
58
- * @returns {DocumentFragment}
59
- */
60
- draw(): DocumentFragment;
61
- prevButton: Element;
62
- nextButton: Element;
63
- slides: HTMLDivElement;
64
- /**
65
- * After draw method for the Carousel.
66
- */
67
- afterDraw(): void;
68
- /**
69
- * Sync `activeSlide` to the slide whose center is closest to the container center.
70
- */
71
- syncActiveToCenter(): void;
72
- /**
73
- * Sets up the IntersectionObserver for the Carousel.
74
- */
75
- setIntersectionObserver(): void;
76
- intersectionObserver: IntersectionObserver;
77
- entriesMap: Map<any, any>;
78
- records: IntersectionObserverEntry[];
79
- /**
80
- * Goes to the slide.
81
- * @param index
82
- * @param behavior
83
- * @param next
84
- */
85
- goToSlide(index: any, behavior?: string, next?: boolean): void;
86
- /**
87
- * Clones the first and last items.
88
- */
89
- cloneFirstAndLastItems(): void;
90
- /**
91
- * Goes to the next slide.
92
- */
93
- removeActiveSlide(): void;
94
- /**
95
- * Goes to the next slide.
96
- */
97
- changePagination(): void;
98
- /**
99
- * Goes to the next slide.
100
- */
101
- changeThumbnails(): void;
102
- /**
103
- * Goes to the next slide.
104
- * @returns {Element}
105
- */
106
- createNextButton(): Element;
107
- /**
108
- * Goes to the next slide.
109
- * @returns {Element}
110
- */
111
- createPreviousButton(): Element;
112
- /**
113
- * Goes to the next slide.
114
- * @returns {Element}
115
- */
116
- createPagination(): Element;
117
- /**
118
- * Goes to the next slide.
119
- * @returns {Element}
120
- */
121
- createThumbnails(): Element;
122
- /**
123
- * Goes to the next slide.
124
- */
125
- nextSlide(): void;
126
- /**
127
- * Goes to the previous slide.
128
- */
129
- previousSlide(): void;
130
- /**
131
- * Goes to the slide.
132
- * @returns {Array}
133
- */
134
- getSlides(): any[];
135
- /**
136
- * Goes to the slide.
137
- * @returns {Array}
138
- */
139
- getSlidesWithClones(): any[];
140
- /** Maps logical index -> visual index (accounts for leading clone when loop=true) */
141
- getVisualIndexForLogical(index: any): any;
142
- /** Maps visual index -> logical index (handles clones at 0 and last when loop=true) */
143
- getLogicalIndexForVisual(vIndex: any): any;
144
- /**
145
- * Goes to the slide.
146
- * @returns {boolean}
147
- */
148
- canGoNext(): boolean;
149
- /**
150
- * Goes to the slide.
151
- * @returns {boolean}
152
- */
153
- canGoPrevious(): boolean;
154
- }
@@ -1,2 +0,0 @@
1
- import { default as CarouselItem } from './carousel-item.element.js';
2
- export default CarouselItem;
@@ -1,38 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary This class represents CarouselItem element, extending the WJElement class.
4
- * @documentation https://elements.webjet.sk/components/carousel-item
5
- * @status stable
6
- * @augments WJElement
7
- * @slot - The carousel item main content.
8
- * @csspart native - The component's native wrapper.
9
- * @cssproperty [--wje-carousel-item-background-color=transparent] - Background color of the component;
10
- * @cssproperty [--wje-carousel-item-border-color=--wje-color-contrast-4] - Border color of the component;
11
- * @cssproperty [--wje-carousel-item-color=--wje-color-contrast-11] - Color of the component;
12
- * @cssproperty [--wje-carousel-item-border-radius=--wje-border-radius-medium] - Border radius of the component;
13
- * @cssproperty [--wje-carousel-item-border-width=1px] - Border width of the component;
14
- * @cssproperty [--wje-carousel-item-border-style=solid] - Border style of the component;
15
- * @cssproperty [--wje-carousel-item-border-color=--wje-color-contrast-1] - Border color of the component;
16
- * @cssproperty [--wje-carousel-item-margin-inline=0] - Margin inline of the component;
17
- */
18
- export default class CarouselItem extends WJElement {
19
- /**
20
- * Getter for the CSS stylesheet.
21
- * @returns {*}
22
- */
23
- static get cssStyleSheet(): any;
24
- /**
25
- * Getter for the observed attributes.
26
- * @returns {*[]}
27
- */
28
- static get observedAttributes(): any[];
29
- /**
30
- * Draws the CarouselItem element.
31
- * @returns {DocumentFragment}
32
- */
33
- draw(): DocumentFragment;
34
- /**
35
- * After draw event for the CarouselItem element.
36
- */
37
- afterDraw(): void;
38
- }
@@ -1,2 +0,0 @@
1
- import { default as Checkbox } from './checkbox.element.js';
2
- export default Checkbox;
@@ -1,100 +0,0 @@
1
- import { FormAssociatedElement } from '../internals/form-associated-element.js';
2
- /**
3
- * @summary This method dispatches a custom event named "wje-toggle:change".
4
- * It is triggered when the input event is fired, which happens when the state of the checkbox changes.
5
- * The event is dispatched on the current instance of the Checkbox class.
6
- * @documentation https://elements.webjet.sk/components/checkbox
7
- * @status stable
8
- * @augments {FormAssociatedElement}
9
- * @slot - The checkbox main content.
10
- * @csspart native - The component's native wrapper.
11
- * @cssproperty [--wje-checkbox-border-radius=--wje-border-radius-medium] - Border radius of the component;
12
- * @cssproperty [--wje-checkbox-border-width=1px] - Border width of the component;
13
- * @cssproperty [--wje-checkbox-border-style=solid] - Border style of the component;
14
- * @cssproperty [--wje-checkbox-border-color=--wje-color-contrast-1] - Border color of the component;
15
- * @cssproperty [--wje-checkbox-margin-inline=0] - Margin inline of the component;
16
- */
17
- export default class Checkbox extends FormAssociatedElement {
18
- /**
19
- * Getter for the CSS stylesheet.
20
- * @returns {string} The CSS stylesheet.
21
- */
22
- static get cssStyleSheet(): string;
23
- static get observedAttributes(): string[];
24
- pristine: boolean;
25
- _valueOff: string;
26
- /**
27
- * Setter for the value attribute.
28
- * @param {string} value The value to set.
29
- */
30
- set value(value: string);
31
- /**
32
- * Getter for the value attribute.
33
- * @returns {string} The value of the attribute.
34
- */
35
- get value(): string;
36
- /**
37
- * Getter for the customErrorDisplay attribute.
38
- * @returns {boolean} Whether the attribute is present.
39
- */
40
- get customErrorDisplay(): boolean;
41
- /**
42
- * Getter for the validateOnChange attribute.
43
- * @returns {boolean} Whether the attribute is present.
44
- */
45
- get validateOnChange(): boolean;
46
- /**
47
- * Setter for the defaultValue attribute.
48
- * This method sets the 'value' attribute of the custom input element to the provided value.
49
- * The 'value' attribute represents the default value of the input element.
50
- * @param {string} value The value to set as the default value.
51
- */
52
- set defaultValue(value: string);
53
- /**
54
- * Getter for the defaultValue attribute.
55
- * This method retrieves the 'value' attribute of the custom input element.
56
- * The 'value' attribute represents the default value of the input element.
57
- * If the 'value' attribute is not set, it returns an empty string.
58
- * @returns {string} The default value of the input element.
59
- */
60
- get defaultValue(): string;
61
- /**
62
- * Sets or removes the 'indeterminate' attribute for the object.
63
- * This property typically reflects the visual or functional state where
64
- * the component is neither fully active nor inactive.
65
- * @param {boolean} value A boolean where `true` indicates the 'indeterminate'
66
- * state should be set, and `false` removes it.
67
- */
68
- set indeterminate(value: boolean);
69
- /**
70
- * Retrieves the current state of the 'indeterminate' attribute.
71
- *
72
- * The 'indeterminate' attribute is typically used to signify a state
73
- * where a checkbox is neither checked nor unchecked, such as a partially
74
- * selected state.
75
- * @returns {boolean} Returns true if the 'indeterminate' attribute is present; otherwise, false.
76
- */
77
- get indeterminate(): boolean;
78
- /**
79
- * Set checked attribute.
80
- * @param {boolean} value true if the toggle is checked, false otherwise
81
- */
82
- set checked(value: boolean);
83
- /**
84
- * Get checked attribute.
85
- * @returns {boolean} true if the toggle is checked, false otherwise
86
- */
87
- get checked(): boolean;
88
- attributeChangedCallback(name: any, oldValue: any, newValue: any): void;
89
- /**
90
- * Draws the checkbox element.
91
- * @returns {DocumentFragment} The created fragment.
92
- */
93
- draw(): DocumentFragment;
94
- input: HTMLInputElement;
95
- /**
96
- * Adds an event listener after drawing the checkbox.
97
- */
98
- afterDraw(): void;
99
- #private;
100
- }
@@ -1,2 +0,0 @@
1
- import { default as Chip } from './chip.element.js';
2
- export default Chip;
@@ -1,76 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary This method dispatches a custom event named "wje-chip:remove".
4
- * It is triggered when the remove button is clicked, which happens when the chip is removed.
5
- * The event is dispatched on the current instance of the Chip class.
6
- * @documentation https://elements.webjet.sk/components/chip
7
- * @status stable
8
- * @augments WJElement
9
- * @slot - The chip main content.
10
- * @csspart native - The component's native wrapper.
11
- * //@fires wje-chip:remove - Dispatched when the chip is removed;
12
- */
13
- export default class Chip extends WJElement {
14
- /**
15
- * Getter for the CSS stylesheet.
16
- * @returns {*}
17
- */
18
- static get cssStyleSheet(): any;
19
- /**
20
- * Sets or removes the "round" attribute on the element based on the provided value.
21
- * @param {boolean} value Determines whether the "round" attribute should be set or removed.
22
- * If true, the "round" attribute is added. If false, the "round"
23
- * attribute is removed.
24
- */
25
- set round(value: boolean);
26
- /**
27
- * Checks if the 'round' attribute is present on the element.
28
- * @returns {boolean} Returns true if the 'round' attribute exists, otherwise false.
29
- */
30
- get round(): boolean;
31
- /**
32
- * Sets the size attribute of the element.
33
- * @param {string} value The value to set for the size attribute.
34
- */
35
- set size(value: string);
36
- /**
37
- * Retrieves the 'size' attribute of the current element.
38
- * @returns {string | null} The value of the 'size' attribute, or null if the attribute is not set.
39
- */
40
- get size(): string | null;
41
- /**
42
- * Sets or removes the "removable" attribute on the element.
43
- * @param {boolean} value A boolean indicating whether the element should have the "removable" attribute.
44
- * If true, the "removable" attribute is added;
45
- * if false, the "removable" attribute is removed.
46
- */
47
- set removable(value: boolean);
48
- /**
49
- * Determines if the element has the 'removable' attribute.
50
- * @returns {boolean} True if the element has the 'removable' attribute, otherwise false.
51
- */
52
- get removable(): boolean;
53
- /**
54
- * Sets the disabled state of the element.
55
- * If true, the 'disabled' attribute is added to the element.
56
- * If false, the 'disabled' attribute is removed from the element.
57
- * @param {boolean} value Specifies whether the element should be disabled.
58
- */
59
- set disabled(value: boolean);
60
- /**
61
- * Determines if the element has the 'disabled' attribute.
62
- * @returns {boolean} True if the element has the 'disabled' attribute, otherwise false.
63
- */
64
- get disabled(): boolean;
65
- /**
66
- * Draws the Chip element.
67
- * @returns {DocumentFragment}
68
- */
69
- draw(): DocumentFragment;
70
- removeElement: HTMLElement;
71
- slotEnd: HTMLSlotElement;
72
- /**
73
- * Getter for the observed attributes.
74
- */
75
- afterDraw(): void;
76
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,2 +0,0 @@
1
- import { default as Col } from './col.element.js';
2
- export default Col;
@@ -1,16 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary Col class that extends WJElement.
4
- * @documentation https://elements.webjet.sk/components/col
5
- * @status stable
6
- * @augments WJElement
7
- * @slot - The col main content.
8
- */
9
- export default class Col extends WJElement {
10
- static get cssStyleSheet(): any;
11
- /**
12
- * Draws the component element.
13
- * @returns {DocumentFragment}
14
- */
15
- draw(): DocumentFragment;
16
- }
@@ -1,2 +0,0 @@
1
- import { default as ColorPicker } from './color-picker.element.js';
2
- export default ColorPicker;
@@ -1,230 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * @summary ColorPicker is a custom web component that extends WJElement.
4
- * It provides a color picker functionality with a color area, hue slider, alpha slider, and color swatches.
5
- * The color picker allows users to select a color by moving a marker on the color area, adjusting the hue and alpha sliders, or clicking on a color swatch.
6
- * @documentation https://elements.webjet.sk/components/color-picker
7
- * @status stable
8
- * @augments WJElement
9
- * @slot - The card header main content.
10
- * @csspart anchor - The anchor part of the color picker.
11
- * @csspart picker - The main part of the color picker.
12
- * @csspart marker - The marker part of the color picker.
13
- * @csspart color-area - The color area part of the color picker.
14
- * @csspart hue - The hue slider part of the color picker.
15
- * @csspart alpha - The alpha slider part of the color picker.
16
- * @csspart color-preview - The color preview part of the color picker.
17
- * @csspart input - The input part of the color picker.
18
- * @cssproperty [--wje-color-picker-area] - The color of the color area background.
19
- * @cssproperty [--wje-color-picker-value] - The value of the color picker input.
20
- * @cssproperty [--wje-color-picker-swatch] - The color of the color swatch button.
21
- * @cssproperty [--wje-color-picker-size] - The color of the color marker.
22
- * @cssproperty [--wje-color-picker-radius] - The color of the color anchor.
23
- */
24
- export default class ColorPicker extends WJElement {
25
- /**
26
- * Getter for the CSS stylesheet.
27
- * @returns {object} The styles object.
28
- * @static
29
- */
30
- static get cssStyleSheet(): object;
31
- /**
32
- * Getter for the observed attributes.
33
- * @returns {Array} An empty array.
34
- * @static
35
- */
36
- static get observedAttributes(): any[];
37
- /**
38
- * The position of the color marker.
39
- * @type {object}
40
- * @private
41
- */
42
- private _markerPosition;
43
- /**
44
- * The color swatches.
45
- * @type {Array}
46
- * @private
47
- */
48
- private _swatches;
49
- /**
50
- * Sets the color attribute of the element.
51
- * @param {string} value The color value to be set. It should be a valid color string such as a named color, HEX, RGB, or HSL format.
52
- */
53
- set color(value: string);
54
- /**
55
- * Retrieves the color attribute of the element.
56
- * @returns {string | null} The current value of the 'color' attribute, or null if the attribute is not set.
57
- */
58
- get color(): string | null;
59
- /**
60
- * Setter for the marker position.
61
- * @param {object} value The new marker position.
62
- */
63
- set markerPosition(value: object);
64
- /**
65
- * Getter for the marker position.
66
- * @returns {object} The current marker position.
67
- */
68
- get markerPosition(): object;
69
- /**
70
- * Setter for the color swatches.
71
- * @param {string} value The new color swatches.
72
- */
73
- set swatches(value: string);
74
- /**
75
- * Getter for the color swatches.
76
- * @returns {Array} The current color swatches.
77
- */
78
- get swatches(): any[];
79
- /**
80
- * Sets or removes the 'no-color-area' attribute based on the provided value.
81
- * @param {boolean} value A boolean value indicating whether to set or remove the 'no-color-area' attribute. If true, the attribute is added; if false, the attribute is removed.
82
- */
83
- set noColorArea(value: boolean);
84
- /**
85
- * Getter method to check if the 'no-color-area' attribute is applied.
86
- * @returns {boolean} Returns true if the 'no-color-area' attribute is present; otherwise, false.
87
- */
88
- get noColorArea(): boolean;
89
- /**
90
- * Sets or removes the "no-controls" attribute.
91
- * @param {boolean} value If true, sets the "no-controls" attribute. If false, removes the "no-controls" attribute.
92
- */
93
- set noControls(value: boolean);
94
- /**
95
- * Checks if the 'no-controls' attribute is present on the element.
96
- * @returns {boolean} Returns true if the 'no-controls' attribute is present; otherwise, false.
97
- */
98
- get noControls(): boolean;
99
- /**
100
- * Sets or removes the 'no-swatches' attribute on the element.
101
- * If the value is truthy, the 'no-swatches' attribute is added.
102
- * If the value is falsy, the 'no-swatches' attribute is removed.
103
- * @param {boolean} value Determines whether the 'no-swatches' attribute is set (true) or removed (false).
104
- */
105
- set noSwatches(value: boolean);
106
- /**
107
- * Checks if the 'no-swatches' attribute is present on the element.
108
- * @returns {boolean} Returns true if the 'no-swatches' attribute is present; otherwise, false.
109
- */
110
- get noSwatches(): boolean;
111
- /**
112
- * Creates and returns a document fragment containing the structure and components of a custom color picker.
113
- * The method initializes DOM elements such as divs, sliders, and inputs, with specific classes and attributes,
114
- * and attaches various event listeners to handle user interactions.
115
- * @returns {DocumentFragment} A DocumentFragment containing the constructed and fully initialized DOM elements for the color picker.
116
- */
117
- draw(): DocumentFragment;
118
- anchor: HTMLDivElement;
119
- picker: HTMLDivElement;
120
- marker: HTMLDivElement;
121
- colorArea: HTMLDivElement;
122
- hueSlider: HTMLElement;
123
- alphaSlider: HTMLElement;
124
- colorPreview: HTMLDivElement;
125
- input: HTMLElement;
126
- /**
127
- * Executes after the component is drawn. Initializes some configurations if not already initialized,
128
- * including updating slider values, setting marker positions, and applying initial color settings.
129
- * This method ensures that all necessary visual elements and configurations are properly set up.
130
- * @returns {void} Does not return a value.
131
- */
132
- afterDraw(): void;
133
- colorAreaDimension: any;
134
- /**
135
- * Sets the hue.
136
- * @param node
137
- */
138
- createSwatches(node: any): void;
139
- /**
140
- * Sets the sliders to the given color.
141
- * @param color
142
- */
143
- setSliders(color: any): void;
144
- /**
145
- * Retrieves the dimensions and position of the color area element relative to the viewport.
146
- * @returns {object} An object containing the following properties:
147
- * width: The width of the element in pixels.
148
- * height: The height of the element in pixels.
149
- * x: The x-coordinate of the element's left edge relative to the viewport.
150
- * y: The y-coordinate of the element's top edge relative to the viewport.
151
- */
152
- dimension(): object;
153
- /**
154
- * Updates the position of the marker based on the pointer event.
155
- * This function calculates the position of the marker relative to the color area
156
- * dimensions based on the given event. It adjusts the marker position and updates
157
- * the color associated with the new position. It is intended to handle pointer movement
158
- * events such as mouse or touch interactions.
159
- * @param {Event} e The event triggering the marker movement, typically a mouse or touch event.
160
- */
161
- moveMarker: (e: Event) => void;
162
- /**
163
- * Gets the pointer position in client coordinates (viewport-relative).
164
- * @param e
165
- * @returns {{x: number, y: number}}
166
- */
167
- getPointerPosition(e: any): {
168
- x: number;
169
- y: number;
170
- };
171
- /**
172
- * Sets the position of the marker.
173
- * @param x
174
- * @param y
175
- */
176
- setMarkerPosition(x: any, y: any): void;
177
- /**
178
- * Sets the color at the given position.
179
- * @param x
180
- * @param y
181
- * @param alpha
182
- * @returns {*|tinycolor}
183
- */
184
- setColorAtPosition(x: any, y: any, alpha?: number): any | tinycolor;
185
- /**
186
- * Sets the marker position by color.
187
- * @param color
188
- * @returns {{x: number, y: number}}
189
- */
190
- setMarkerPositionByColor: (color?: string) => {
191
- x: number;
192
- y: number;
193
- };
194
- /**
195
- * Updates the color picker's current color and its associated UI elements.
196
- * @param {tinycolor.Instance|null} [color] The color value to set. If null, the current value from the input field is used.
197
- * @param {string} [type] The type of action determining which UI element to update. Possible values: "marker", "hue", "alpha", "swatch".
198
- */
199
- setColor: (color?: tinycolor.Instance | null, type?: string) => void;
200
- value: {
201
- hex8: any;
202
- hex: any;
203
- rgb: any;
204
- rgba: any;
205
- hsl: any;
206
- hsla: any;
207
- hsv: any;
208
- hsva: any;
209
- name: any;
210
- format: any;
211
- };
212
- /**
213
- * Sets the hue.
214
- * @param {object} e The event object.
215
- */
216
- setHue: (e: object) => void;
217
- /**
218
- * Sets the alpha.
219
- * @param {object} e The event object.
220
- */
221
- setAlpha: (e: object) => void;
222
- /**
223
- * Converts hue and alpha values into an HSVA color string.
224
- * @param {number} hue The hue value, typically between 0 and 360.
225
- * @param {number} alpha The alpha value, typically between 0 and 100, representing the opacity percentage.
226
- * @returns {string} - The HSVA color string in the format `hsva(h, 100%, 100%, a)`.
227
- */
228
- getHSVA: (hue: number, alpha: number) => string;
229
- #private;
230
- }
@@ -1 +0,0 @@
1
- export {};