wj-elements 0.1.134 → 0.1.136

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 (319) hide show
  1. package/package.json +3 -2
  2. package/dist/dark.css +0 -223
  3. package/dist/infinite-scroll.element-XVJukzjy.js +0 -271
  4. package/dist/light.css +0 -530
  5. package/dist/list.element-Ce1vIm1O.js +0 -49
  6. package/dist/localize.js +0 -67
  7. package/dist/packages/index.d.ts +0 -98
  8. package/dist/packages/localize/localize.d.ts +0 -17
  9. package/dist/packages/translations/en-GB.d.ts +0 -13
  10. package/dist/packages/translations/sk-SK.d.ts +0 -13
  11. package/dist/packages/utils/animations.d.ts +0 -2
  12. package/dist/packages/utils/date.d.ts +0 -1
  13. package/dist/packages/utils/element-utils.d.ts +0 -46
  14. package/dist/packages/utils/event.d.ts +0 -67
  15. package/dist/packages/utils/localize.d.ts +0 -4
  16. package/dist/packages/utils/permissions-api.d.ts +0 -34
  17. package/dist/packages/utils/utils.d.ts +0 -1
  18. package/dist/packages/utils/wje-import-firefox.d.ts +0 -0
  19. package/dist/packages/utils/wje-import.d.ts +0 -0
  20. package/dist/packages/wje-accordion/accordion.d.ts +0 -2
  21. package/dist/packages/wje-accordion/accordion.element.d.ts +0 -72
  22. package/dist/packages/wje-accordion-item/accordion-item.d.ts +0 -2
  23. package/dist/packages/wje-accordion-item/accordion-item.element.d.ts +0 -40
  24. package/dist/packages/wje-animation/animation.d.ts +0 -2
  25. package/dist/packages/wje-animation/animation.element.d.ts +0 -153
  26. package/dist/packages/wje-animation/animation.test.d.ts +0 -1
  27. package/dist/packages/wje-aside/aside.d.ts +0 -2
  28. package/dist/packages/wje-aside/aside.element.d.ts +0 -31
  29. package/dist/packages/wje-avatar/avatar.d.ts +0 -2
  30. package/dist/packages/wje-avatar/avatar.element.d.ts +0 -37
  31. package/dist/packages/wje-avatar/service/service.d.ts +0 -40
  32. package/dist/packages/wje-badge/badge.d.ts +0 -2
  33. package/dist/packages/wje-badge/badge.element.d.ts +0 -35
  34. package/dist/packages/wje-badge/badge.test.d.ts +0 -1
  35. package/dist/packages/wje-breadcrumb/breadcrumb.d.ts +0 -2
  36. package/dist/packages/wje-breadcrumb/breadcrumb.element.d.ts +0 -80
  37. package/dist/packages/wje-breadcrumbs/breadcrumbs.d.ts +0 -2
  38. package/dist/packages/wje-breadcrumbs/breadcrumbs.element.d.ts +0 -97
  39. package/dist/packages/wje-breadcrumbs/breadcrumbs.test.d.ts +0 -1
  40. package/dist/packages/wje-button/button.d.ts +0 -2
  41. package/dist/packages/wje-button/button.element.d.ts +0 -173
  42. package/dist/packages/wje-button/button.test.d.ts +0 -1
  43. package/dist/packages/wje-button-group/button-group.d.ts +0 -2
  44. package/dist/packages/wje-button-group/button-group.element.d.ts +0 -39
  45. package/dist/packages/wje-card/card.d.ts +0 -2
  46. package/dist/packages/wje-card/card.element.d.ts +0 -29
  47. package/dist/packages/wje-card-content/card-content.d.ts +0 -2
  48. package/dist/packages/wje-card-content/card-content.element.d.ts +0 -22
  49. package/dist/packages/wje-card-controls/card-controls.d.ts +0 -2
  50. package/dist/packages/wje-card-controls/card-controls.element.d.ts +0 -23
  51. package/dist/packages/wje-card-header/card-header.d.ts +0 -2
  52. package/dist/packages/wje-card-header/card-header.element.d.ts +0 -22
  53. package/dist/packages/wje-card-subtitle/card-subtitle.d.ts +0 -2
  54. package/dist/packages/wje-card-subtitle/card-subtitle.element.d.ts +0 -30
  55. package/dist/packages/wje-card-title/card-title.d.ts +0 -2
  56. package/dist/packages/wje-card-title/card-title.element.d.ts +0 -32
  57. package/dist/packages/wje-carousel/carousel.d.ts +0 -2
  58. package/dist/packages/wje-carousel/carousel.element.d.ts +0 -146
  59. package/dist/packages/wje-carousel-item/carousel-item.d.ts +0 -2
  60. package/dist/packages/wje-carousel-item/carousel-item.element.d.ts +0 -38
  61. package/dist/packages/wje-checkbox/checkbox.d.ts +0 -2
  62. package/dist/packages/wje-checkbox/checkbox.element.d.ts +0 -171
  63. package/dist/packages/wje-chip/chip.d.ts +0 -2
  64. package/dist/packages/wje-chip/chip.element.d.ts +0 -29
  65. package/dist/packages/wje-col/col.d.ts +0 -2
  66. package/dist/packages/wje-col/col.element.d.ts +0 -16
  67. package/dist/packages/wje-color-picker/color-picker.d.ts +0 -2
  68. package/dist/packages/wje-color-picker/color-picker.element.d.ts +0 -187
  69. package/dist/packages/wje-container/container.d.ts +0 -2
  70. package/dist/packages/wje-container/container.element.d.ts +0 -31
  71. package/dist/packages/wje-copy-button/copy-button.d.ts +0 -2
  72. package/dist/packages/wje-copy-button/copy-button.element.d.ts +0 -89
  73. package/dist/packages/wje-copy-button/service/service.d.ts +0 -12
  74. package/dist/packages/wje-dialog/dialog.d.ts +0 -2
  75. package/dist/packages/wje-dialog/dialog.element.d.ts +0 -116
  76. package/dist/packages/wje-divider/divider.d.ts +0 -2
  77. package/dist/packages/wje-divider/divider.element.d.ts +0 -32
  78. package/dist/packages/wje-dropdown/dropdown.d.ts +0 -2
  79. package/dist/packages/wje-dropdown/dropdown.element.d.ts +0 -85
  80. package/dist/packages/wje-element/element.d.ts +0 -313
  81. package/dist/packages/wje-element/service/universal-service.d.ts +0 -18
  82. package/dist/packages/wje-file-upload/file-upload.d.ts +0 -2
  83. package/dist/packages/wje-file-upload/file-upload.element.d.ts +0 -191
  84. package/dist/packages/wje-file-upload/service/service.d.ts +0 -70
  85. package/dist/packages/wje-file-upload-item/file-upload-item.d.ts +0 -2
  86. package/dist/packages/wje-file-upload-item/file-upload-item.element.d.ts +0 -62
  87. package/dist/packages/wje-footer/footer.d.ts +0 -2
  88. package/dist/packages/wje-footer/footer.element.d.ts +0 -28
  89. package/dist/packages/wje-form/form.d.ts +0 -2
  90. package/dist/packages/wje-form/form.element.d.ts +0 -28
  91. package/dist/packages/wje-format-digital/format-digital.d.ts +0 -2
  92. package/dist/packages/wje-format-digital/format-digital.element.d.ts +0 -87
  93. package/dist/packages/wje-format-digital/format-digital.test.d.ts +0 -1
  94. package/dist/packages/wje-grid/grid.d.ts +0 -2
  95. package/dist/packages/wje-grid/grid.element.d.ts +0 -26
  96. package/dist/packages/wje-header/header.d.ts +0 -2
  97. package/dist/packages/wje-header/header.element.d.ts +0 -35
  98. package/dist/packages/wje-icon/icon.d.ts +0 -2
  99. package/dist/packages/wje-icon/icon.element.d.ts +0 -40
  100. package/dist/packages/wje-icon/service/service.d.ts +0 -11
  101. package/dist/packages/wje-icon-picker/icon-picker.d.ts +0 -2
  102. package/dist/packages/wje-icon-picker/icon-picker.element.d.ts +0 -197
  103. package/dist/packages/wje-img/img.d.ts +0 -2
  104. package/dist/packages/wje-img/img.element.d.ts +0 -30
  105. package/dist/packages/wje-img-comparer/img-comparer.d.ts +0 -2
  106. package/dist/packages/wje-img-comparer/img-comparer.element.d.ts +0 -60
  107. package/dist/packages/wje-img-comparer/service/service.d.ts +0 -1
  108. package/dist/packages/wje-infinite-scroll/infinite-scroll.d.ts +0 -2
  109. package/dist/packages/wje-infinite-scroll/infinite-scroll.element.d.ts +0 -134
  110. package/dist/packages/wje-input/input.d.ts +0 -2
  111. package/dist/packages/wje-input/input.element.d.ts +0 -204
  112. package/dist/packages/wje-input-file/input-file.d.ts +0 -2
  113. package/dist/packages/wje-input-file/input-file.element.d.ts +0 -50
  114. package/dist/packages/wje-item/item.d.ts +0 -2
  115. package/dist/packages/wje-item/item.element.d.ts +0 -68
  116. package/dist/packages/wje-kanban/kanban.d.ts +0 -2
  117. package/dist/packages/wje-kanban/kanban.element.d.ts +0 -183
  118. package/dist/packages/wje-label/label.d.ts +0 -2
  119. package/dist/packages/wje-label/label.element.d.ts +0 -34
  120. package/dist/packages/wje-list/list.d.ts +0 -2
  121. package/dist/packages/wje-list/list.element.d.ts +0 -31
  122. package/dist/packages/wje-main/main.d.ts +0 -2
  123. package/dist/packages/wje-main/main.element.d.ts +0 -30
  124. package/dist/packages/wje-masonry/masonry.d.ts +0 -2
  125. package/dist/packages/wje-masonry/masonry.element.d.ts +0 -114
  126. package/dist/packages/wje-masonry/service/service.d.ts +0 -32
  127. package/dist/packages/wje-menu/menu.d.ts +0 -2
  128. package/dist/packages/wje-menu/menu.element.d.ts +0 -47
  129. package/dist/packages/wje-menu-button/menu-button.d.ts +0 -2
  130. package/dist/packages/wje-menu-button/menu-button.element.d.ts +0 -34
  131. package/dist/packages/wje-menu-item/menu-item.d.ts +0 -2
  132. package/dist/packages/wje-menu-item/menu-item.element.d.ts +0 -139
  133. package/dist/packages/wje-menu-label/menu-label.d.ts +0 -2
  134. package/dist/packages/wje-menu-label/menu-label.element.d.ts +0 -39
  135. package/dist/packages/wje-option/option.d.ts +0 -2
  136. package/dist/packages/wje-option/option.element.d.ts +0 -59
  137. package/dist/packages/wje-options/options.d.ts +0 -2
  138. package/dist/packages/wje-options/options.element.d.ts +0 -180
  139. package/dist/packages/wje-orgchart/orgchart.d.ts +0 -2
  140. package/dist/packages/wje-orgchart/orgchart.element.d.ts +0 -24
  141. package/dist/packages/wje-orgchart-group/orgchart-group.d.ts +0 -2
  142. package/dist/packages/wje-orgchart-group/orgchart-group.element.d.ts +0 -28
  143. package/dist/packages/wje-orgchart-item/orgchart-item.d.ts +0 -2
  144. package/dist/packages/wje-orgchart-item/orgchart-item.element.d.ts +0 -49
  145. package/dist/packages/wje-panel/panel.d.ts +0 -2
  146. package/dist/packages/wje-panel/panel.element.d.ts +0 -34
  147. package/dist/packages/wje-popup/popup.d.ts +0 -2
  148. package/dist/packages/wje-popup/popup.element.d.ts +0 -93
  149. package/dist/packages/wje-progress-bar/progress-bar.d.ts +0 -2
  150. package/dist/packages/wje-progress-bar/progress-bar.element.d.ts +0 -96
  151. package/dist/packages/wje-qr-code/qr-code.d.ts +0 -2
  152. package/dist/packages/wje-qr-code/qr-code.element.d.ts +0 -33
  153. package/dist/packages/wje-radio/radio.d.ts +0 -2
  154. package/dist/packages/wje-radio/radio.element.d.ts +0 -53
  155. package/dist/packages/wje-radio-group/radio-group.d.ts +0 -2
  156. package/dist/packages/wje-radio-group/radio-group.element.d.ts +0 -137
  157. package/dist/packages/wje-rate/rate.d.ts +0 -2
  158. package/dist/packages/wje-rate/rate.element.d.ts +0 -156
  159. package/dist/packages/wje-relative-time/relative-time.d.ts +0 -2
  160. package/dist/packages/wje-relative-time/relative-time.element.d.ts +0 -55
  161. package/dist/packages/wje-relative-time/relative-time.test.d.ts +0 -1
  162. package/dist/packages/wje-reorder/reorder.d.ts +0 -2
  163. package/dist/packages/wje-reorder/reorder.element.d.ts +0 -119
  164. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.d.ts +0 -2
  165. package/dist/packages/wje-reorder-dropzone/reorder-dropzone.element.d.ts +0 -23
  166. package/dist/packages/wje-reorder-handle/reorder-handle.d.ts +0 -2
  167. package/dist/packages/wje-reorder-handle/reorder-handle.element.d.ts +0 -75
  168. package/dist/packages/wje-reorder-item/reorder-item.d.ts +0 -2
  169. package/dist/packages/wje-reorder-item/reorder-item.element.d.ts +0 -24
  170. package/dist/packages/wje-route/route.d.ts +0 -2
  171. package/dist/packages/wje-route/route.element.d.ts +0 -22
  172. package/dist/packages/wje-router/router.d.ts +0 -2
  173. package/dist/packages/wje-router/router.element.d.ts +0 -39
  174. package/dist/packages/wje-router-link/router-link.d.ts +0 -2
  175. package/dist/packages/wje-router-link/router-link.element.d.ts +0 -31
  176. package/dist/packages/wje-router-outlet/router-outlet.d.ts +0 -2
  177. package/dist/packages/wje-router-outlet/router-outlet.element.d.ts +0 -15
  178. package/dist/packages/wje-row/row.d.ts +0 -2
  179. package/dist/packages/wje-row/row.element.d.ts +0 -23
  180. package/dist/packages/wje-select/select.d.ts +0 -2
  181. package/dist/packages/wje-select/select.element.d.ts +0 -315
  182. package/dist/packages/wje-slider/slider.d.ts +0 -2
  183. package/dist/packages/wje-slider/slider.element.d.ts +0 -103
  184. package/dist/packages/wje-split-view/service/service.d.ts +0 -1
  185. package/dist/packages/wje-split-view/split-view.d.ts +0 -2
  186. package/dist/packages/wje-split-view/split-view.element.d.ts +0 -66
  187. package/dist/packages/wje-status/status.d.ts +0 -2
  188. package/dist/packages/wje-status/status.element.d.ts +0 -26
  189. package/dist/packages/wje-step/step.d.ts +0 -2
  190. package/dist/packages/wje-step/step.element.d.ts +0 -23
  191. package/dist/packages/wje-stepper/stepper.d.ts +0 -2
  192. package/dist/packages/wje-stepper/stepper.element.d.ts +0 -78
  193. package/dist/packages/wje-store/default-store-actions.d.ts +0 -20
  194. package/dist/packages/wje-store/pubsub.d.ts +0 -21
  195. package/dist/packages/wje-store/store.d.ts +0 -153
  196. package/dist/packages/wje-tab/tab.d.ts +0 -2
  197. package/dist/packages/wje-tab/tab.element.d.ts +0 -41
  198. package/dist/packages/wje-tab-group/tab-group.d.ts +0 -2
  199. package/dist/packages/wje-tab-group/tab-group.element.d.ts +0 -67
  200. package/dist/packages/wje-tab-panel/tab-panel.d.ts +0 -2
  201. package/dist/packages/wje-tab-panel/tab-panel.element.d.ts +0 -23
  202. package/dist/packages/wje-textarea/textarea.d.ts +0 -2
  203. package/dist/packages/wje-textarea/textarea.element.d.ts +0 -176
  204. package/dist/packages/wje-thumbnail/thumbnail.d.ts +0 -2
  205. package/dist/packages/wje-thumbnail/thumbnail.element.d.ts +0 -31
  206. package/dist/packages/wje-timeline/timeline.d.ts +0 -2
  207. package/dist/packages/wje-timeline/timeline.element.d.ts +0 -25
  208. package/dist/packages/wje-timeline-item/timeline-item.d.ts +0 -2
  209. package/dist/packages/wje-timeline-item/timeline-item.element.d.ts +0 -27
  210. package/dist/packages/wje-toast/toast.d.ts +0 -2
  211. package/dist/packages/wje-toast/toast.element.d.ts +0 -173
  212. package/dist/packages/wje-toast/toast.test.d.ts +0 -1
  213. package/dist/packages/wje-toggle/toggle.d.ts +0 -2
  214. package/dist/packages/wje-toggle/toggle.element.d.ts +0 -65
  215. package/dist/packages/wje-toolbar/toolbar.d.ts +0 -2
  216. package/dist/packages/wje-toolbar/toolbar.element.d.ts +0 -39
  217. package/dist/packages/wje-toolbar-action/toolbar-action.d.ts +0 -2
  218. package/dist/packages/wje-toolbar-action/toolbar-action.element.d.ts +0 -35
  219. package/dist/packages/wje-tooltip/tooltip.d.ts +0 -2
  220. package/dist/packages/wje-tooltip/tooltip.element.d.ts +0 -71
  221. package/dist/packages/wje-visually-hidden/visually-hidden.d.ts +0 -2
  222. package/dist/packages/wje-visually-hidden/visually-hidden.element.d.ts +0 -29
  223. package/dist/popup.element-tyYxow0p.js +0 -1622
  224. package/dist/router-links-CJnOdbas.js +0 -149
  225. package/dist/styles.css +0 -849
  226. package/dist/wje-accordion-item.js +0 -112
  227. package/dist/wje-accordion.js +0 -121
  228. package/dist/wje-animation.js +0 -4323
  229. package/dist/wje-aside.js +0 -54
  230. package/dist/wje-avatar.js +0 -89
  231. package/dist/wje-badge.js +0 -70
  232. package/dist/wje-breadcrumb.js +0 -194
  233. package/dist/wje-breadcrumbs.js +0 -139
  234. package/dist/wje-button-group.js +0 -84
  235. package/dist/wje-button.js +0 -351
  236. package/dist/wje-card-content.js +0 -47
  237. package/dist/wje-card-controls.js +0 -47
  238. package/dist/wje-card-header.js +0 -47
  239. package/dist/wje-card-subtitle.js +0 -54
  240. package/dist/wje-card-title.js +0 -54
  241. package/dist/wje-card.js +0 -55
  242. package/dist/wje-carousel-item.js +0 -62
  243. package/dist/wje-carousel.js +0 -379
  244. package/dist/wje-checkbox.js +0 -539
  245. package/dist/wje-chip.js +0 -75
  246. package/dist/wje-col.js +0 -37
  247. package/dist/wje-color-picker.js +0 -1338
  248. package/dist/wje-container.js +0 -55
  249. package/dist/wje-copy-button.js +0 -217
  250. package/dist/wje-dialog.js +0 -248
  251. package/dist/wje-divider.js +0 -54
  252. package/dist/wje-dropdown.js +0 -193
  253. package/dist/wje-element.js +0 -966
  254. package/dist/wje-fetchAndParseCSS.js +0 -59
  255. package/dist/wje-file-upload-item.js +0 -133
  256. package/dist/wje-file-upload.js +0 -546
  257. package/dist/wje-footer.js +0 -51
  258. package/dist/wje-form.js +0 -52
  259. package/dist/wje-format-digital.js +0 -145
  260. package/dist/wje-grid.js +0 -53
  261. package/dist/wje-header.js +0 -55
  262. package/dist/wje-icon-picker.js +0 -348
  263. package/dist/wje-icon.js +0 -190
  264. package/dist/wje-img-comparer.js +0 -130
  265. package/dist/wje-img.js +0 -71
  266. package/dist/wje-infinite-scroll.js +0 -5
  267. package/dist/wje-input-file.js +0 -110
  268. package/dist/wje-input.js +0 -451
  269. package/dist/wje-item.js +0 -87
  270. package/dist/wje-kanban.js +0 -461
  271. package/dist/wje-label.js +0 -52
  272. package/dist/wje-list.js +0 -5
  273. package/dist/wje-main.js +0 -51
  274. package/dist/wje-masonry.js +0 -266
  275. package/dist/wje-master.js +0 -342
  276. package/dist/wje-menu-button.js +0 -59
  277. package/dist/wje-menu-item.js +0 -544
  278. package/dist/wje-menu-label.js +0 -54
  279. package/dist/wje-menu.js +0 -71
  280. package/dist/wje-option.js +0 -111
  281. package/dist/wje-options.js +0 -341
  282. package/dist/wje-orgchart-group.js +0 -71
  283. package/dist/wje-orgchart-item.js +0 -97
  284. package/dist/wje-orgchart.js +0 -48
  285. package/dist/wje-popup.js +0 -5
  286. package/dist/wje-progress-bar.js +0 -212
  287. package/dist/wje-qr-code.js +0 -2891
  288. package/dist/wje-radio-group.js +0 -227
  289. package/dist/wje-radio.js +0 -105
  290. package/dist/wje-rate.js +0 -299
  291. package/dist/wje-relative-time.js +0 -114
  292. package/dist/wje-reorder-dropzone.js +0 -48
  293. package/dist/wje-reorder-handle.js +0 -217
  294. package/dist/wje-reorder-item.js +0 -60
  295. package/dist/wje-reorder.js +0 -280
  296. package/dist/wje-route.js +0 -42
  297. package/dist/wje-router-link.js +0 -63
  298. package/dist/wje-router-outlet.js +0 -191
  299. package/dist/wje-routerx.js +0 -1436
  300. package/dist/wje-row.js +0 -48
  301. package/dist/wje-select.js +0 -629
  302. package/dist/wje-slider.js +0 -220
  303. package/dist/wje-sliding-container.js +0 -477
  304. package/dist/wje-split-view.js +0 -152
  305. package/dist/wje-status.js +0 -60
  306. package/dist/wje-step.js +0 -49
  307. package/dist/wje-stepper.js +0 -230
  308. package/dist/wje-store.js +0 -387
  309. package/dist/wje-tab-group.js +0 -136
  310. package/dist/wje-tab-panel.js +0 -45
  311. package/dist/wje-tab.js +0 -58
  312. package/dist/wje-textarea.js +0 -372
  313. package/dist/wje-thumbnail.js +0 -53
  314. package/dist/wje-toast.js +0 -333
  315. package/dist/wje-toggle.js +0 -124
  316. package/dist/wje-toolbar-action.js +0 -71
  317. package/dist/wje-toolbar.js +0 -62
  318. package/dist/wje-tooltip.js +0 -165
  319. package/dist/wje-visually-hidden.js +0 -54
@@ -1,137 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- import { default as Radio } from '../wje-radio/radio.js';
3
- /**
4
- * `RadioGroup` is a custom web component that represents a group of radio buttons.
5
- * @summary This element represents a group of radio buttons.
6
- * @documentation https://elements.webjet.sk/components/radio-group
7
- * @status stable
8
- * @augments {WJElement}
9
- * @slot - The default slot for the radio group.
10
- * @tag wje-radio-group
11
- */
12
- export default class RadioGroup extends WJElement {
13
- /**
14
- * Returns the CSS styles for the component.
15
- * @static
16
- * @returns {CSSStyleSheet}
17
- */
18
- static get cssStyleSheet(): CSSStyleSheet;
19
- /**
20
- * Whether the input is associated with a form.
21
- * @type {boolean}
22
- */
23
- static formAssociated: boolean;
24
- internals: ElementInternals;
25
- /**
26
- * Setter for the value attribute.
27
- * @param {string} value The value to set.
28
- */
29
- set value(value: string);
30
- /**
31
- * Getter for the value attribute.
32
- * @returns {string} The value of the attribute.
33
- */
34
- get value(): string;
35
- /**
36
- * Getter for the form attribute.
37
- * @returns {HTMLFormElement} The form the input is associated with.
38
- */
39
- get form(): HTMLFormElement;
40
- /**
41
- * Getter for the name attribute.
42
- * @returns {string} The name of the input.
43
- */
44
- get name(): string;
45
- /**
46
- * Getter for the type attribute.
47
- * @returns {string} The type of the input.
48
- */
49
- get type(): string;
50
- /**
51
- * Getter for the validity attribute.
52
- * @returns {ValidityState} The validity state of the input.
53
- */
54
- get validity(): ValidityState;
55
- /**
56
- * Getter for the validationMessage attribute.
57
- * @returns {string} The validation message of the input.
58
- */
59
- get validationMessage(): string;
60
- /**
61
- * Getter for the willValidate attribute.
62
- * @returns {boolean} Whether the input will be validated.
63
- */
64
- get willValidate(): boolean;
65
- /**
66
- * @summary Setter for the defaultValue attribute.
67
- * This method sets the 'value' attribute of the custom input element to the provided value.
68
- * The 'value' attribute represents the default value of the input element.
69
- * @param {string} value The value to set as the default value.
70
- */
71
- set defaultValue(value: string);
72
- /**
73
- * @summary Getter for the defaultValue attribute.
74
- * This method retrieves the 'value' attribute of the custom input element.
75
- * The 'value' attribute represents the default value of the input element.
76
- * If the 'value' attribute is not set, it returns an empty string.
77
- * @returns {string} The default value of the input element.
78
- */
79
- get defaultValue(): string;
80
- /**
81
- * Draws the component for the radio group.
82
- * @returns {DocumentFragment}
83
- */
84
- draw(): DocumentFragment;
85
- /**
86
- * Adds event listeners after the component is drawn. Handles the selection of radio buttons.
87
- */
88
- afterDraw(): void;
89
- /**
90
- * Returns the radio button with the given value.
91
- * @param {string} value The value of the radio button.
92
- * @returns {Radio} The radio button.
93
- */
94
- getRadioByValue(value: string): Radio;
95
- /**
96
- * Removes the check from all radio buttons.
97
- */
98
- removeCheck(): void;
99
- /**
100
- * Sets the given radio button to checked.
101
- */
102
- checkRadio(value: any): boolean;
103
- /**
104
- * Retrieves all direct child elements of the current element.
105
- * @returns {HTMLElement[]} An array of child elements.
106
- */
107
- getAllElements(): HTMLElement[];
108
- /**
109
- * The formResetCallback method is a built-in lifecycle callback that gets called when a form gets reset.
110
- * This method is responsible for resetting the value of the custom input element to its default value.
111
- * It also resets the form value and validity state in the form internals.
112
- * @function
113
- */
114
- formResetCallback(): void;
115
- /**
116
- * The formStateRestoreCallback method is a built-in lifecycle callback that gets called when the state of a form-associated custom element is restored.
117
- * This method is responsible for restoring the value of the custom input element to its saved state.
118
- * It also restores the form value and validity state in the form internals to their saved states.
119
- * @param {object} state The saved state of the custom input element.
120
- * @function
121
- */
122
- formStateRestoreCallback(state: object): void;
123
- /**
124
- * The formStateSaveCallback method is a built-in lifecycle callback that gets called when the state of a form-associated custom element is saved.
125
- * This method is responsible for saving the value of the custom input element.
126
- * @returns {object} The saved state of the custom input element.
127
- * @function
128
- */
129
- formStateSaveCallback(): object;
130
- /**
131
- * The formDisabledCallback method is a built-in lifecycle callback that gets called when the disabled state of a form-associated custom element changes.
132
- * This method is not implemented yet.
133
- * @param {boolean} disabled The new disabled state of the custom input element.
134
- * @function
135
- */
136
- formDisabledCallback(disabled: boolean): void;
137
- }
@@ -1,2 +0,0 @@
1
- import { default as Rate } from './rate.element.js';
2
- export default Rate;
@@ -1,156 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Rate` is a custom web component that represents a rating component.
4
- * @summary This element represents a rating component.
5
- * @documentation https://elements.webjet.sk/components/rate
6
- * @status stable
7
- * @augments {WJElement}
8
- * @attribute {number} precision - The precision of the rating component.
9
- * @attribute {number} max - The maximum value of the rating component.
10
- * @attribute {Array<string>} icons - The icons of the rating component.
11
- * @csspart native - The native part of the rating component.
12
- * @cssproperty [--wje-rate-gap=.25rem] - Defines the spacing (gap) between individual items in the rating component. Accepts any valid CSS length unit (e.g., `px`, `rem`, `em`) to adjust the distance between rating elements.
13
- * @cssproperty [--wje-rate-color=var(--wje-color-contrast-11)] - Specifies the default color of the rating items. Accepts any valid CSS color value, including named colors, hex values, RGB, or CSS variables.
14
- * @cssproperty [--wje-rate-selected-color=var(--wje-color-danger-9)] - Sets the color for selected or highlighted rating items. This property helps visually distinguish selected ratings. Accepts any valid CSS color value.
15
- * @tag wje-rate
16
- */
17
- export default class Rate extends WJElement {
18
- /**
19
- * Returns the CSS styles for the component.
20
- * @static
21
- * @returns {CSSStyleSheet}
22
- */
23
- static get cssStyleSheet(): CSSStyleSheet;
24
- /**
25
- * Returns the list of attributes to observe for changes.
26
- * @static
27
- * @returns {Array<string>}
28
- */
29
- static get observedAttributes(): string[];
30
- /**
31
- * Sets the precision of the rating component.
32
- * @param {number} value The value to set.
33
- */
34
- set precision(value: number);
35
- /**
36
- * Gets the precision of the rating component.
37
- * @returns {number} The value of the precision.
38
- */
39
- get precision(): number;
40
- /**
41
- * Sets the maximum value of the rating component.
42
- * @param {number} value The value to set.
43
- */
44
- set max(value: number);
45
- /**
46
- * Gets the maximum value of the rating component.
47
- * @returns {number} The value of the maximum value.
48
- */
49
- get max(): number;
50
- /**
51
- * Sets the icons of the rating component.
52
- * @param {Array<string>} value The value to set.
53
- */
54
- set icons(value: string[]);
55
- /**
56
- * Gets the icons of the rating component.
57
- * @returns {Array<string>} The value of the icons.
58
- */
59
- get icons(): string[];
60
- /**
61
- * Sets the value of the rating component.
62
- * @param {number} value The value to set.
63
- */
64
- set value(value: number);
65
- /**
66
- * Gets the value of the rating component.
67
- * @returns {number} The value of the rating component.
68
- */
69
- get value(): number;
70
- /**
71
- * Called when an attribute changes.
72
- * @param {string} name The name of the attribute that changed.
73
- * @param {string} old The old value of the attribute.
74
- * @param {string} newName The new value of the attribute.
75
- */
76
- attributeChangedCallback(name: string, old: string, newName: string): void;
77
- /**
78
- * Draws the component for the rating component.
79
- * @returns {DocumentFragment}
80
- */
81
- draw(): DocumentFragment;
82
- native: HTMLDivElement;
83
- /**
84
- * Adds event listeners after the component is drawn.
85
- */
86
- afterDraw(): void;
87
- /**
88
- * Creates the icons for the rating component.
89
- * @param {number} i The index of the icon.
90
- * @returns {Element} The icon element.
91
- */
92
- createIcons(i: number): Element;
93
- /**
94
- * Changes the rate of the rating component.
95
- */
96
- changeRate(): void;
97
- /**
98
- * Event handler for the mouse enter event.
99
- * @param {Event} e The event.
100
- */
101
- onMouseEnter: (e: Event) => void;
102
- hoverValue: any;
103
- /**
104
- * Event handler for the mouse leave event.
105
- * @param {Event} e The event.
106
- */
107
- onMouseLeave: (e: Event) => void;
108
- /**
109
- * Event handler for the mouse move event.
110
- * @param {Event} e The event.
111
- */
112
- onMouseMove: (e: Event) => void;
113
- /**
114
- * Event handler for the touch start event.
115
- * @param {Event} e The event.
116
- */
117
- onTouchStart: (e: Event) => void;
118
- /**
119
- * Event handler for the touch end event.
120
- * @param {Event} e The event.
121
- */
122
- onTouchEnd: (e: Event) => void;
123
- /**
124
- * Event handler for the touch move event.
125
- * @param {Event} e The event.
126
- */
127
- onTouchMove: (e: Event) => void;
128
- /**
129
- * Event handler for the click event.
130
- * @param {Event} e The event.
131
- */
132
- onClick: (e: Event) => void;
133
- /**
134
- * Returns the icons for the rating component.
135
- * @param {number} index The index of the icon.
136
- * @returns {Element} The icon element.
137
- */
138
- getIcons(index: number): Element;
139
- /**
140
- * Returns the value from the x position.
141
- * @param {number} coordinate The x coordinate.
142
- * @returns {number} The value from the x position.
143
- */
144
- getValueFromXPosition(coordinate: number): number;
145
- /**
146
- * Rounds a given number to the nearest specified precision.
147
- * @param {number} numberToRound The number to be rounded.
148
- * @param {number} [precision] The precision to which the number should be rounded.
149
- * @returns {number} - The rounded number.
150
- * @example
151
- * roundToPrecision(2.3); // Returns 2.5
152
- * roundToPrecision(2.3, 0.1); // Returns 2.3
153
- * roundToPrecision(2.6, 1); // Returns 3
154
- */
155
- roundToPrecision(numberToRound: number, precision?: number): number;
156
- }
@@ -1,2 +0,0 @@
1
- import { default as RelativeTime } from './relative-time.element.js';
2
- export default RelativeTime;
@@ -1,55 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- import { Localizer } from '../utils/localize.js';
3
- /**
4
- * `RelativeTime` is a custom web component that represents a relative time component.
5
- * @summary This element represents a relative time component.
6
- * @documentation https://elements.webjet.sk/components/relative-time
7
- * @status stable
8
- * @augments WJElement
9
- * @csspart native - The native part of the relative time component.
10
- * @tag wje-relative-time
11
- */
12
- export default class RelativeTime extends WJElement {
13
- /**
14
- * Returns the list of attributes to observe for changes.
15
- * @static
16
- * @returns {Array<string>}
17
- */
18
- static get observedAttributes(): string[];
19
- localizer: Localizer;
20
- /**
21
- * Sets the date of the relative time component.
22
- * @param value
23
- */
24
- set date(value: string);
25
- /**
26
- * Gets the date of the relative time component.
27
- * @returns {string}
28
- */
29
- get date(): string;
30
- /**
31
- * Sets the object date of the relative time component.
32
- * @param value
33
- */
34
- set objectDate(value: Date);
35
- /**
36
- * Gets the object date of the relative time component.
37
- * @returns {Date}
38
- */
39
- get objectDate(): Date;
40
- /**
41
- * Draws the component for the relative time.
42
- * @returns {DocumentFragment}
43
- */
44
- draw(): DocumentFragment;
45
- /**
46
- * Returns the relative time string for the given date.
47
- */
48
- getRelativeTimeString(lang?: string): string;
49
- /**
50
- * Checks if the given string is an ISO date.
51
- * @param {string} str The string to check.
52
- * @returns {boolean} True if the string is an ISO date, false otherwise.
53
- */
54
- isISODate(str: string): boolean;
55
- }
@@ -1,2 +0,0 @@
1
- import { default as Reorder } from './reorder.element.js';
2
- export default Reorder;
@@ -1,119 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Reorder` is a custom web component that represents a reorder.
4
- * It extends from `WJElement`.
5
- * @summary This element represents a reorder.
6
- * @documentation https://elements.webjet.sk/components/reorder
7
- * @status stable
8
- * @augments WJElement
9
- * @csspart native - The native part of the reorder.
10
- * @slot - The default slot for the reorder.
11
- * // @fires wje-reorder:change - Event fired when the reorder is changed.
12
- * @tag wje-reorder
13
- */
14
- export default class Reorder extends WJElement {
15
- /**
16
- * Returns the CSS styles for the component.
17
- * @static
18
- * @returns {CSSStyleSheet}
19
- */
20
- static get cssStyleSheet(): CSSStyleSheet;
21
- /**
22
- * Returns the list of attributes to observe for changes.
23
- * @static
24
- * @returns {Array<string>}
25
- */
26
- static get observedAttributes(): string[];
27
- dragEl: Element;
28
- items: any[];
29
- originalIndex: number;
30
- isDragging: boolean;
31
- offsetX: number;
32
- offsetY: number;
33
- cloneEl: Node;
34
- /**
35
- * Draws the component after it is connected to the DOM.
36
- * @returns {DocumentFragment}
37
- */
38
- draw(): DocumentFragment;
39
- container: HTMLDivElement;
40
- /**
41
- * Adds event listeners after the component is drawn.
42
- */
43
- afterDraw(): void;
44
- /**
45
- * Attaches event listeners to the element.
46
- * @param element
47
- */
48
- attachEventListeners(element: any): void;
49
- /**
50
- * Handles the mouse down event.
51
- * @param {object} e
52
- */
53
- mouseDown(e: object): void;
54
- /**
55
- * Handles the touch start event.
56
- * @param e
57
- */
58
- touchStart(e: any): void;
59
- /**
60
- * Initializes the dragging process for a reorderable item.
61
- * @param {number} clientX The x-coordinate of the mouse pointer when the drag starts.
62
- * @param {number} clientY The y-coordinate of the mouse pointer when the drag starts.
63
- * @param {HTMLElement} target The target element where the drag event originated.
64
- */
65
- startDragging(clientX: number, clientY: number, target: HTMLElement): void;
66
- originalParent: ParentNode;
67
- /**
68
- * Handles the mouse move event.
69
- * @param e
70
- */
71
- mouseMove(e: any): void;
72
- /**
73
- * Handles the `touchmove` event and updates the position of the dragged element.
74
- * @param {TouchEvent} e The touch event containing touch position data.
75
- */
76
- touchMove(e: TouchEvent): void;
77
- /**
78
- * Updates the position of the dragged element and handles reordering logic based on the mouse position.
79
- * @param {number} pageX The x-coordinate of the mouse pointer relative to the viewport during the move event.
80
- * @param {number} pageY The y-coordinate of the mouse pointer relative to the viewport during the move event.
81
- */
82
- moveElement(pageX: number, pageY: number): void;
83
- /**
84
- * Handles the mouse up event.
85
- */
86
- mouseUp(): void;
87
- /**
88
- * Handles the touch end event.
89
- */
90
- touchEnd(): void;
91
- /**
92
- * Stops dragging the element.
93
- */
94
- stopDragging(): void;
95
- /**
96
- * Prevents the default behavior of the `dragstart` event.
97
- * @param {DragEvent} e The drag event triggered when a drag operation starts.
98
- */
99
- dragStart(e: DragEvent): void;
100
- /**
101
- * Creates a clone of the element.
102
- */
103
- createClone(): void;
104
- /**
105
- * Checks if the dragged element is moving down.
106
- * @param droppedElement
107
- * @returns {boolean}
108
- */
109
- isMovingDown(droppedElement: any): boolean;
110
- /**
111
- * Dispatches a custom event to signal that a reordering operation has occurred.
112
- * @param {number} from The original index of the dragged item.
113
- * @param {number} to The new index of the dragged item after reordering.
114
- * @param {Array<number>} order The updated order of items after the reordering.
115
- * // @fires wje-reorder:change - Dispatched when the reordering is completed.
116
- * The event includes details about the initial position, the new position, and the new order.
117
- */
118
- dispatchChange(from: number, to: number, order: Array<number>): void;
119
- }
@@ -1,2 +0,0 @@
1
- import { default as ReorderDropzone } from './reorder-dropzone.element';
2
- export default ReorderDropzone;
@@ -1,23 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `ReorderDropzone` is a custom web component that represents a reorder dropzone.
4
- * @summary This element represents a reorder dropzone.
5
- * @documentation https://elements.webjet.sk/components/reorder-dropzone
6
- * @status stable
7
- * @augments WJElement
8
- * @csspart native - The native part of the reorder dropzone.
9
- * @slot - The default slot for the reorder dropzone.
10
- * @tag wje-reorder-dropzone
11
- */
12
- export default class ReorderDropzone extends WJElement {
13
- /**
14
- * Returns the CSS stylesheet for the component.
15
- * @returns {CSSStyleSheet} The CSS stylesheet.
16
- */
17
- static get cssStyleSheet(): CSSStyleSheet;
18
- /**
19
- * Returns the list of observed attributes.
20
- * @returns {DocumentFragment}
21
- */
22
- draw(): DocumentFragment;
23
- }
@@ -1,2 +0,0 @@
1
- import { default as ReorderHandle } from './reorder-handle.element.js';
2
- export default ReorderHandle;
@@ -1,75 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `ReorderHandle` is a custom web component that represents a reorder handle.
4
- * @summary This element represents a reorder handle.
5
- * @documentation https://elements.webjet.sk/components/reorder-handle
6
- * @status stable
7
- * @augments WJElement
8
- * @csspart native - The native part of the reorder handle.
9
- * @slot - The default slot for the reorder handle.
10
- * @tag wje-reorder-handle
11
- */
12
- export default class ReorderHandle extends WJElement {
13
- /**
14
- * Returns the CSS styles for the component.
15
- * @returns {*}
16
- */
17
- static get cssStyleSheet(): any;
18
- /**
19
- * Returns the list of attributes to observe for changes.
20
- * @returns {string[]}
21
- */
22
- static get observedAttributes(): string[];
23
- /**
24
- * Draws the component.
25
- * @returns {DocumentFragment}
26
- */
27
- draw(): DocumentFragment;
28
- /**
29
- * Draws the component after it is connected to the DOM.
30
- */
31
- afterDraw(): void;
32
- /**
33
- * Handles the attribute changes.
34
- * @param {DragEvent} event
35
- */
36
- startDrag(event: DragEvent): void;
37
- /**
38
- * Handles the touch start event.
39
- * @param {TouchEvent} event
40
- */
41
- startTouchDrag(event: TouchEvent): void;
42
- /**
43
- * Initiates the drag-and-drop action for a sortable element.
44
- * @param {number} clientX The x-coordinate of the mouse pointer at the start of the drag action.
45
- * @param {number} clientY The y-coordinate of the mouse pointer at the start of the drag action.
46
- */
47
- startDragAction(clientX: number, clientY: number): void;
48
- /**
49
- * Retrieves the dropzone associated with the given element.
50
- * @param {HTMLElement} element The element from which to search for the closest dropzone.
51
- * @returns {HTMLElement|null} - The closest dropzone element matching the `dropzone` attribute, or the parent element if no dropzone is found.
52
- */
53
- getDropzone(element: HTMLElement): HTMLElement | null;
54
- /**
55
- * Retrieves the closest dropzone element at the specified coordinates.
56
- * @param {number} clientX The x-coordinate relative to the viewport.
57
- * @param {number} clientY The y-coordinate relative to the viewport.
58
- * @returns {HTMLElement|null} - The closest dropzone element matching the `dropzone` attribute, or `null` if none is found.
59
- */
60
- getClosestDropzone(clientX: number, clientY: number): HTMLElement | null;
61
- /**
62
- * Retrieves all elements at the specified coordinates, including those within shadow DOMs.
63
- * @param {number} x The x-coordinate relative to the viewport.
64
- * @param {number} y The y-coordinate relative to the viewport.
65
- * @param {Document|ShadowRoot} [root] The root context in which to search. Defaults to the main document.
66
- * @param {Set<Node>} [visited] A set of already visited nodes to avoid infinite recursion in nested shadow DOMs.
67
- * @returns {HTMLElement[]} An array of all elements found at the specified coordinates, including shadow DOM elements.
68
- */
69
- getElementsFromPointAll(x: number, y: number, root?: Document | ShadowRoot, visited?: Set<Node>): HTMLElement[];
70
- /**
71
- * Re-indexes the items in the container.
72
- * @param container
73
- */
74
- reIndexItems(container: any): void;
75
- }
@@ -1,2 +0,0 @@
1
- import { default as ReorderItem } from './reorder-item.element.js';
2
- export default ReorderItem;
@@ -1,24 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `ReorderItem` is a custom web component that represents a reorder item.
4
- * @summary This element represents a reorder item.
5
- * @documentation https://elements.webjet.sk/components/reorder-item
6
- * @status stable
7
- * @augments WJElement
8
- * @csspart native-reorder-item - The native part of the reorder item.
9
- * @csspart handle-part - The handle part of the reorder item when the handle slot is present.
10
- * @slot - The default slot for the reorder item.
11
- * @tag wje-reorder-item
12
- */
13
- export default class ReorderItem extends WJElement {
14
- /**
15
- * Returns the CSS stylesheet for the component.
16
- * @returns {CSSStyleSheet} The CSS stylesheet.
17
- */
18
- static get cssStyleSheet(): CSSStyleSheet;
19
- /**
20
- * Returns the list of observed attributes.
21
- * @returns {DocumentFragment}
22
- */
23
- draw(): DocumentFragment;
24
- }
@@ -1,2 +0,0 @@
1
- import { default as Route } from './route.element.js';
2
- export default Route;
@@ -1,22 +0,0 @@
1
- import { default as WJElement } from '../wje-element/element.js';
2
- /**
3
- * `Route` is a custom web component that represents a route in a routing system.
4
- * @summary This element represents a route in a routing system.
5
- * @documentation https://elements.webjet.sk/components/route
6
- * @status stable
7
- * @augments WJElement
8
- * @tag wje-route
9
- */
10
- export default class Route extends WJElement {
11
- /**
12
- * Returns the list of attributes to observe for changes.
13
- * @static
14
- * @returns {Array<string>}
15
- */
16
- static get observedAttributes(): string[];
17
- /**
18
- * Draws the component for the route.
19
- * @returns {DocumentFragment}
20
- */
21
- draw(): DocumentFragment;
22
- }
@@ -1,2 +0,0 @@
1
- import { default as Routerx } from './router.element.js';
2
- export default Routerx;