@wikicasa-dev/components 2.6.13 → 2.6.14

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 (215) hide show
  1. package/dist/UIKit/AccessibleSelect.js +5 -5
  2. package/dist/UIKit/AccessibleSelect.vue.js +217 -205
  3. package/dist/UIKit/Accordion/AccordionContentPrimitive.js +5 -4
  4. package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +19 -21
  5. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +5 -4
  6. package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +18 -20
  7. package/dist/UIKit/Accordion/AccordionItemPrimitive.js +5 -4
  8. package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +21 -23
  9. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +5 -4
  10. package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +19 -21
  11. package/dist/UIKit/Accordion/BaseAccordion.js +5 -4
  12. package/dist/UIKit/Accordion/BaseAccordion.vue.js +38 -36
  13. package/dist/UIKit/Accordion/BaseAccordionItem.js +5 -5
  14. package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +64 -81
  15. package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +5 -5
  16. package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +232 -226
  17. package/dist/UIKit/BaseAlert.js +5 -5
  18. package/dist/UIKit/BaseAlert.vue.js +14 -18
  19. package/dist/UIKit/BaseAutocomplete.js +5 -5
  20. package/dist/UIKit/BaseAutocomplete.vue.js +197 -194
  21. package/dist/UIKit/BaseBadge.js +5 -5
  22. package/dist/UIKit/BaseBadge.vue.js +17 -17
  23. package/dist/UIKit/BaseBreadcrumb.js +5 -4
  24. package/dist/UIKit/BaseBreadcrumb.vue.js +39 -56
  25. package/dist/UIKit/BaseButton.js +5 -4
  26. package/dist/UIKit/BaseButton.vue.js +93 -87
  27. package/dist/UIKit/BaseComplexToggle.js +5 -6
  28. package/dist/UIKit/BaseComplexToggle.vue.js +87 -105
  29. package/dist/UIKit/BaseDropDown.js +5 -5
  30. package/dist/UIKit/BaseDropDown.vue.js +171 -152
  31. package/dist/UIKit/BaseFloatingLabel.js +6 -7
  32. package/dist/UIKit/BaseFloatingLabel.vue.js +43 -39
  33. package/dist/UIKit/BaseInput.js +6 -7
  34. package/dist/UIKit/BaseInput.vue.js +191 -210
  35. package/dist/UIKit/BaseModal.js +5 -5
  36. package/dist/UIKit/BaseModal.vue.js +160 -169
  37. package/dist/UIKit/BasePagination.js +5 -4
  38. package/dist/UIKit/BasePagination.vue.js +192 -229
  39. package/dist/UIKit/BaseSelect/SelectItem.js +5 -4
  40. package/dist/UIKit/BaseSelect/SelectItem.vue.js +34 -41
  41. package/dist/UIKit/BaseSlider.js +6 -7
  42. package/dist/UIKit/BaseSlider.vue.js +153 -203
  43. package/dist/UIKit/BaseSnackbar.js +5 -5
  44. package/dist/UIKit/BaseSnackbar.vue.js +144 -146
  45. package/dist/UIKit/BaseTextarea.js +5 -6
  46. package/dist/UIKit/BaseTextarea.vue.js +118 -126
  47. package/dist/UIKit/BaseToggle.js +5 -4
  48. package/dist/UIKit/BaseToggle.vue.js +37 -38
  49. package/dist/UIKit/BaseTooltip.js +6 -7
  50. package/dist/UIKit/BaseTooltip.vue.js +31 -40
  51. package/dist/UIKit/BaseUploadFile.js +5 -4
  52. package/dist/UIKit/BaseUploadFile.vue.js +63 -70
  53. package/dist/UIKit/Card/BaseCard.js +5 -5
  54. package/dist/UIKit/Card/BaseCard.vue.js +23 -36
  55. package/dist/UIKit/Card/CardDescriptionPrimitive.js +9 -11
  56. package/dist/UIKit/Card/CardImagePrimitive.js +5 -4
  57. package/dist/UIKit/Card/CardImagePrimitive.vue.js +11 -15
  58. package/dist/UIKit/Card/CardRootPrimitive.js +5 -5
  59. package/dist/UIKit/Card/CardRootPrimitive.vue.js +22 -26
  60. package/dist/UIKit/Card/type.js +4 -4
  61. package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -5
  62. package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +76 -81
  63. package/dist/UIKit/Checkbox/CheckboxGroup.js +5 -4
  64. package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +137 -116
  65. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +5 -4
  66. package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +71 -77
  67. package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +5 -4
  68. package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +32 -34
  69. package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +5 -4
  70. package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +32 -34
  71. package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +5 -4
  72. package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +15 -15
  73. package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +5 -4
  74. package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +29 -31
  75. package/dist/UIKit/Radio/RadioButton.js +5 -4
  76. package/dist/UIKit/Radio/RadioButton.vue.js +51 -59
  77. package/dist/UIKit/Radio/RadioGroup.js +5 -4
  78. package/dist/UIKit/Radio/RadioGroup.vue.js +67 -63
  79. package/dist/UIKit/Radio/v2/RadioButtonGroup.js +5 -4
  80. package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +38 -47
  81. package/dist/UIKit/Radio/v2/RadioButtonItem.js +5 -5
  82. package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +42 -44
  83. package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +5 -4
  84. package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +28 -30
  85. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +6 -7
  86. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +19 -19
  87. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +5 -4
  88. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +41 -30
  89. package/dist/UIKit/Slider/SimpleSlider.js +6 -7
  90. package/dist/UIKit/Slider/SimpleSlider.vue.js +74 -81
  91. package/dist/UIKit/StaticSpinner.js +6 -7
  92. package/dist/UIKit/StaticSpinner.vue.js +24 -26
  93. package/dist/UIKit/Tab/BaseTab.js +5 -4
  94. package/dist/UIKit/Tab/BaseTab.vue.js +14 -14
  95. package/dist/UIKit/Tab/BaseTabList.js +5 -4
  96. package/dist/UIKit/Tab/BaseTabList.vue.js +45 -44
  97. package/dist/UIKit/Tab/BaseTabPanel.js +5 -4
  98. package/dist/UIKit/Tab/BaseTabPanel.vue.js +27 -24
  99. package/dist/UIKit/Tab/BaseTabView.js +5 -4
  100. package/dist/UIKit/Tab/BaseTabView.vue.js +107 -105
  101. package/dist/UIKit/Tab/v2/BaseTabs.js +5 -5
  102. package/dist/UIKit/Tab/v2/BaseTabs.vue.js +34 -38
  103. package/dist/UIKit/Tab/v2/BaseTabsContent.js +5 -4
  104. package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +21 -23
  105. package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +5 -5
  106. package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +24 -33
  107. package/dist/UIKit/Tab/v2/BaseTabsList.js +5 -4
  108. package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +20 -22
  109. package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +5 -4
  110. package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +21 -30
  111. package/dist/UIKit/types.js +0 -1
  112. package/dist/_virtual/_plugin-vue_export-helper.js +7 -8
  113. package/dist/assets/AccessibleSelect.css +1 -1
  114. package/dist/assets/BaseAccordionItem.css +1 -1
  115. package/dist/assets/BaseAutocomplete.css +1 -1
  116. package/dist/assets/BaseBadge.css +1 -1
  117. package/dist/assets/BaseComplexToggle2.css +1 -1
  118. package/dist/assets/BaseDropDown.css +1 -1
  119. package/dist/assets/BaseFloatingLabel2.css +1 -1
  120. package/dist/assets/BaseInput2.css +1 -1
  121. package/dist/assets/BaseShimmerLoader.css +1 -1
  122. package/dist/assets/BaseSlider2.css +1 -1
  123. package/dist/assets/BaseSnackbar.css +1 -1
  124. package/dist/assets/BaseTabs.css +1 -1
  125. package/dist/assets/BaseTextarea2.css +1 -1
  126. package/dist/assets/BaseTooltip2.css +1 -1
  127. package/dist/assets/CheckboxBtn.css +1 -1
  128. package/dist/assets/ClearableAutocomplete.css +1 -1
  129. package/dist/assets/RadioButtonItem.css +1 -1
  130. package/dist/assets/StaticSpinner.css +1 -1
  131. package/dist/assets/SwiperCarousel.css +1 -1
  132. package/dist/assets/baseAlert.css +1 -1
  133. package/dist/assets/baseCard.css +1 -1
  134. package/dist/assets/baseComplexToggle.css +1 -1
  135. package/dist/assets/baseFloatingLabel.css +1 -1
  136. package/dist/assets/baseInput.css +1 -1
  137. package/dist/assets/baseModal.css +1 -1
  138. package/dist/assets/baseSlider.css +1 -1
  139. package/dist/assets/baseSpinner.css +1 -1
  140. package/dist/assets/baseTextarea.css +1 -1
  141. package/dist/assets/baseTooltip.css +1 -1
  142. package/dist/assets/swiper-free-mode.css +1 -1
  143. package/dist/assets/swiper-navigation.css +1 -1
  144. package/dist/assets/swiper-pagination.css +1 -1
  145. package/dist/assets/swiper-swiper.css +1 -1
  146. package/dist/assets/swiper-thumbs.css +1 -0
  147. package/dist/assets/swiper-zoom.css +1 -1
  148. package/dist/assets/swiperPaginationBullet.css +1 -1
  149. package/dist/assets/tailwind.css +1 -1
  150. package/dist/chart/DoughnutChart.js +5 -4
  151. package/dist/chart/DoughnutChart.vue.js +25 -25
  152. package/dist/chart/LineChart.js +5 -4
  153. package/dist/chart/LineChart.vue.js +27 -29
  154. package/dist/components/IntersectionObserver/IntersectionObservable.js +5 -4
  155. package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +24 -23
  156. package/dist/components/IntersectionObserver/IntersectionObserver.js +5 -4
  157. package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +55 -49
  158. package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +5 -4
  159. package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +43 -38
  160. package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +5 -4
  161. package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +27 -30
  162. package/dist/components/IntersectionObserver/v2/types.js +4 -6
  163. package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +5 -4
  164. package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +30 -38
  165. package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +5 -4
  166. package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +28 -32
  167. package/dist/components/carousel/Primitive/SwiperPrimitive.js +5 -4
  168. package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +16 -20
  169. package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -10
  170. package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +82 -112
  171. package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +5 -5
  172. package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +44 -39
  173. package/dist/components/carousel/SwiperCarousel.js +6 -7
  174. package/dist/components/carousel/SwiperCarousel.vue.js +195 -229
  175. package/dist/components/carousel/SwiperSlide.js +9 -13
  176. package/dist/composables/mock.js +50 -48
  177. package/dist/composables/useFloatingLabel.js +32 -32
  178. package/dist/composables/useValidator.js +5 -7
  179. package/dist/index.js +67 -150
  180. package/dist/lazyModules/ChartJs/Chart.js +2 -4
  181. package/dist/lazyModules/ChartJs/DoughnutChart/core.js +5 -6
  182. package/dist/lazyModules/ChartJs/LineChart/cartesian.js +5 -6
  183. package/dist/lazyModules/ChartJs/LineChart/core.js +5 -6
  184. package/dist/lazyModules/ChartJs/Plugins/Legend.js +4 -2
  185. package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +4 -2
  186. package/dist/lazyModules/ChartJs/Plugins/Title.js +4 -2
  187. package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +4 -2
  188. package/dist/lazyModules/Swiper/Autoplay/factory.js +6 -8
  189. package/dist/lazyModules/Swiper/Autoplay/index.js +3 -6
  190. package/dist/lazyModules/Swiper/Controller/factory.js +6 -6
  191. package/dist/lazyModules/Swiper/Controller/index.js +3 -6
  192. package/dist/lazyModules/Swiper/FreeMode/factory.js +6 -8
  193. package/dist/lazyModules/Swiper/FreeMode/index.js +3 -6
  194. package/dist/lazyModules/Swiper/Keyboard/factory.js +6 -8
  195. package/dist/lazyModules/Swiper/Keyboard/index.js +3 -6
  196. package/dist/lazyModules/Swiper/Navigation/factory.js +6 -8
  197. package/dist/lazyModules/Swiper/Navigation/index.js +3 -6
  198. package/dist/lazyModules/Swiper/Pagination/factory.js +6 -6
  199. package/dist/lazyModules/Swiper/Pagination/index.js +3 -6
  200. package/dist/lazyModules/Swiper/Thumbs/factory.js +6 -6
  201. package/dist/lazyModules/Swiper/Thumbs/index.js +3 -6
  202. package/dist/lazyModules/Swiper/Zoom/factory.js +6 -8
  203. package/dist/lazyModules/Swiper/Zoom/index.js +3 -6
  204. package/dist/lazyModules/Swiper/factory.js +9 -12
  205. package/dist/lazyModules/Swiper/index.js +2 -4
  206. package/dist/lazyModules/Swiper/swiper-css.d.js +0 -1
  207. package/dist/lazyModules/Swiper/types.js +0 -1
  208. package/dist/lazyModules/VueChartJs/Doughnut/factory.js +8 -11
  209. package/dist/lazyModules/VueChartJs/Doughnut/index.js +2 -5
  210. package/dist/lazyModules/VueChartJs/Line/factory.js +8 -13
  211. package/dist/lazyModules/VueChartJs/Line/index.js +2 -5
  212. package/dist/types/index.js +0 -1
  213. package/dist/types.js +0 -1
  214. package/dist/utils.js +4 -5
  215. package/package.json +6 -6
@@ -1,27 +1,25 @@
1
- import { defineComponent as t, openBlock as o, createElementBlock as s, createElementVNode as n } from "vue";
2
- const c = {
3
- viewBox: "0 0 128 128",
4
- class: "icon-spin uikit-h-6 uikit-w-6"
5
- }, i = ["stroke", "stroke-width"], k = /* @__PURE__ */ t({
6
- __name: "StaticSpinner",
7
- props: {
8
- thickness: { default: 9 },
9
- strokeColor: { default: "#fff" }
10
- },
11
- setup(e) {
12
- return (r, l) => (o(), s("svg", c, [
13
- n("circle", {
14
- class: "path",
15
- cx: "64",
16
- cy: "64",
17
- r: "42",
18
- fill: "none",
19
- stroke: e.strokeColor,
20
- "stroke-width": e.thickness
21
- }, null, 8, i)
22
- ]));
23
- }
1
+ import { createElementBlock as e, createElementVNode as t, defineComponent as n, openBlock as r } from "vue";
2
+ import '../assets/StaticSpinner.css';//#region lib/UIKit/StaticSpinner.vue?vue&type=script&setup=true&lang.ts
3
+ var i = {
4
+ viewBox: "0 0 128 128",
5
+ class: "icon-spin uikit-h-6 uikit-w-6"
6
+ }, a = ["stroke", "stroke-width"], o = /*@__PURE__*/ n({
7
+ __name: "StaticSpinner",
8
+ props: {
9
+ thickness: { default: 9 },
10
+ strokeColor: { default: "#fff" }
11
+ },
12
+ setup(n) {
13
+ return (o, s) => (r(), e("svg", i, [t("circle", {
14
+ class: "path",
15
+ cx: "64",
16
+ cy: "64",
17
+ r: "42",
18
+ fill: "none",
19
+ stroke: n.strokeColor,
20
+ "stroke-width": n.thickness
21
+ }, null, 8, a)]));
22
+ }
24
23
  });
25
- export {
26
- k as default
27
- };
24
+ //#endregion
25
+ export { o as default };
@@ -1,4 +1,5 @@
1
- import f from "./BaseTab.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./BaseTab.vue.js";
2
+ //#region lib/UIKit/Tab/BaseTab.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,15 +1,15 @@
1
- import { defineComponent as a, renderSlot as r } from "vue";
2
- const o = /* @__PURE__ */ a({
3
- __name: "BaseTab",
4
- props: {
5
- activeTabPanelIdx: {},
6
- headerTitle: {},
7
- tabPanelClasses: {}
8
- },
9
- setup(t) {
10
- return (e, s) => r(e.$slots, "header");
11
- }
1
+ import { defineComponent as e, renderSlot as t } from "vue";
2
+ //#region lib/UIKit/Tab/BaseTab.vue?vue&type=script&setup=true&lang.ts
3
+ var n = /*@__PURE__*/ e({
4
+ __name: "BaseTab",
5
+ props: {
6
+ activeTabPanelIdx: {},
7
+ headerTitle: {},
8
+ tabPanelClasses: {}
9
+ },
10
+ setup(e) {
11
+ return (e, n) => t(e.$slots, "header");
12
+ }
12
13
  });
13
- export {
14
- o as default
15
- };
14
+ //#endregion
15
+ export { n as default };
@@ -1,4 +1,5 @@
1
- import f from "./BaseTabList.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./BaseTabList.vue.js";
2
+ //#region lib/UIKit/Tab/BaseTabList.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,45 +1,46 @@
1
- import { defineComponent as m, inject as l, openBlock as a, createElementBlock as r, normalizeClass as c, Fragment as y, renderList as C, unref as i, toDisplayString as h, createBlock as p, resolveDynamicComponent as f, createCommentVNode as _ } from "vue";
2
- const v = ["aria-labelledby", "data-cy"], B = ["id", "data-cy", "aria-selected", "aria-controls", "tabindex", "onClick"], F = { key: 0 }, $ = /* @__PURE__ */ m({
3
- __name: "BaseTabList",
4
- props: {
5
- dataCy: {},
6
- uid: {},
7
- tabListClasses: {}
8
- },
9
- emits: ["tabClick"],
10
- setup(n, { emit: o }) {
11
- const d = l("tabs"), s = l("isTabActive"), b = l("handleClick"), u = o;
12
- return (L, g) => (a(), r("div", {
13
- role: "tablist",
14
- "aria-labelledby": `tablist-${n.uid}`,
15
- class: c(n.tabListClasses),
16
- "data-cy": n.dataCy
17
- }, [
18
- (a(!0), r(y, null, C(i(d), (e, t) => (a(), r("button", {
19
- id: e.tabId,
20
- key: t,
21
- "data-cy": e["data-cy"],
22
- type: "button",
23
- role: "tab",
24
- "aria-selected": i(s)(t),
25
- "aria-controls": `base-tab-panel-${t}-${n.uid}`,
26
- tabindex: i(s)(t) ? void 0 : -1,
27
- class: c([
28
- "uikit-bg-transparent uikit-p-5px",
29
- {
30
- "uikit-border-b-2 uikit-border-solid uikit-border-w-primary uikit-font-semibold": i(s)(t)
31
- },
32
- e.class
33
- ]),
34
- onClick: (k) => {
35
- i(b)(t, e), u("tabClick", k, t, e);
36
- }
37
- }, [
38
- e["header-title"] ? (a(), r("span", F, h(e["header-title"]), 1)) : e.renderFn.children && e.renderFn.children.header ? (a(), p(f(e.renderFn.children.header), { key: 1 })) : _("", !0)
39
- ], 10, B))), 128))
40
- ], 10, v));
41
- }
1
+ import { Fragment as e, createBlock as t, createCommentVNode as n, createElementBlock as r, defineComponent as i, inject as a, normalizeClass as o, openBlock as s, renderList as c, resolveDynamicComponent as l, toDisplayString as u, unref as d } from "vue";
2
+ //#region lib/UIKit/Tab/BaseTabList.vue?vue&type=script&setup=true&lang.ts
3
+ var f = ["aria-labelledby", "data-cy"], p = [
4
+ "id",
5
+ "data-cy",
6
+ "aria-selected",
7
+ "aria-controls",
8
+ "tabindex",
9
+ "onClick"
10
+ ], m = { key: 0 }, h = /*@__PURE__*/ i({
11
+ __name: "BaseTabList",
12
+ props: {
13
+ dataCy: {},
14
+ uid: {},
15
+ tabListClasses: {}
16
+ },
17
+ emits: ["tabClick"],
18
+ setup(i, { emit: h }) {
19
+ let g = a("tabs"), _ = a("isTabActive"), v = a("handleClick"), y = h;
20
+ return (a, h) => (s(), r("div", {
21
+ role: "tablist",
22
+ "aria-labelledby": `tablist-${i.uid}`,
23
+ class: o(i.tabListClasses),
24
+ "data-cy": i.dataCy
25
+ }, [(s(!0), r(e, null, c(d(g), (e, a) => (s(), r("button", {
26
+ id: e.tabId,
27
+ key: a,
28
+ "data-cy": e["data-cy"],
29
+ type: "button",
30
+ role: "tab",
31
+ "aria-selected": d(_)(a),
32
+ "aria-controls": `base-tab-panel-${a}-${i.uid}`,
33
+ tabindex: d(_)(a) ? void 0 : -1,
34
+ class: o([
35
+ "uikit-bg-transparent uikit-p-5px",
36
+ { "uikit-border-b-2 uikit-border-solid uikit-border-w-primary uikit-font-semibold": d(_)(a) },
37
+ e.class
38
+ ]),
39
+ onClick: (t) => {
40
+ d(v)(a, e), y("tabClick", t, a, e);
41
+ }
42
+ }, [e["header-title"] ? (s(), r("span", m, u(e["header-title"]), 1)) : e.renderFn.children && e.renderFn.children.header ? (s(), t(l(e.renderFn.children.header), { key: 1 })) : n("", !0)], 10, p))), 128))], 10, f));
43
+ }
42
44
  });
43
- export {
44
- $ as default
45
- };
45
+ //#endregion
46
+ export { h as default };
@@ -1,4 +1,5 @@
1
- import f from "./BaseTabPanel.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./BaseTabPanel.vue.js";
2
+ //#region lib/UIKit/Tab/BaseTabPanel.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,25 +1,28 @@
1
- import { defineComponent as l, withDirectives as t, openBlock as i, createElementBlock as d, normalizeClass as n, renderSlot as o, vShow as s } from "vue";
2
- const c = ["id", "aria-labelledby", "data-active"], v = /* @__PURE__ */ l({
3
- __name: "BaseTabPanel",
4
- props: {
5
- id: {},
6
- active: { type: Boolean, default: !1 },
7
- labelledBy: {}
8
- },
9
- setup(e) {
10
- return (a, r) => t((i(), d("div", {
11
- id: e.id,
12
- role: "tabpanel",
13
- "aria-labelledby": e.labelledBy,
14
- class: n(a.$attrs.class),
15
- "data-active": e.active
16
- }, [
17
- o(a.$slots, "default")
18
- ], 10, c)), [
19
- [s, e.active]
20
- ]);
21
- }
1
+ import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, renderSlot as i, vShow as a, withDirectives as o } from "vue";
2
+ //#region lib/UIKit/Tab/BaseTabPanel.vue?vue&type=script&setup=true&lang.ts
3
+ var s = [
4
+ "id",
5
+ "aria-labelledby",
6
+ "data-active"
7
+ ], c = /*@__PURE__*/ t({
8
+ __name: "BaseTabPanel",
9
+ props: {
10
+ id: {},
11
+ active: {
12
+ type: Boolean,
13
+ default: !1
14
+ },
15
+ labelledBy: {}
16
+ },
17
+ setup(t) {
18
+ return (c, l) => o((r(), e("div", {
19
+ id: t.id,
20
+ role: "tabpanel",
21
+ "aria-labelledby": t.labelledBy,
22
+ class: n(c.$attrs.class),
23
+ "data-active": t.active
24
+ }, [i(c.$slots, "default")], 10, s)), [[a, t.active]]);
25
+ }
22
26
  });
23
- export {
24
- v as default
25
- };
27
+ //#endregion
28
+ export { c as default };
@@ -1,4 +1,5 @@
1
- import f from "./BaseTabView.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./BaseTabView.vue.js";
2
+ //#region lib/UIKit/Tab/BaseTabView.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,106 +1,108 @@
1
- import { defineComponent as S, useModel as z, ref as T, useId as j, useSlots as q, computed as G, provide as v, watch as x, openBlock as l, createElementBlock as f, normalizeClass as k, createElementVNode as H, unref as m, toDisplayString as J, createBlock as o, createCommentVNode as u, Fragment as I, renderList as K, withCtx as O, resolveDynamicComponent as Q, mergeModels as g } from "vue";
2
- import R from "./BaseTabPanel.vue.js";
3
- import P from "./BaseTabList.vue.js";
4
- const U = ["data-cy"], W = ["id"], ae = /* @__PURE__ */ S({
5
- inheritAttrs: !1,
6
- __name: "BaseTabView",
7
- props: /* @__PURE__ */ g({
8
- tabsPosition: { default: "top" },
9
- tabViewDescription: {},
10
- tabListClasses: {},
11
- dataCy: {}
12
- }, {
13
- activeIdx: { default: 0 },
14
- activeIdxModifiers: {}
15
- }),
16
- emits: /* @__PURE__ */ g(["tabClicked"], ["update:activeIdx"]),
17
- setup(s, { emit: $ }) {
18
- const B = $, c = z(s, "activeIdx"), A = T(""), b = T(null), d = j(), y = q(), r = (e) => e.props ?? null, h = (e) => e.type.__name === "BaseTab", p = (e, a) => ({
19
- renderFn: e,
20
- tabId: C(a),
21
- "active-tab-panel-idx": r(e)?.["active-tab-panel-idx"] ?? a,
22
- "header-title": r(e)?.["header-title"] || "",
23
- class: r(e)?.class || "",
24
- "tab-panel-classes": r(e)?.["tab-panel-classes"] || "",
25
- "data-cy": r(e)?.["data-cy"] || ""
26
- }), i = G(() => y.default ? y.default().reduce((e, a) => (a.children && Array.isArray(a.children) ? a.children.forEach((t) => {
27
- h(t) && e.push(p(t, e.length));
28
- }) : h(a) && e.push(p(a, e.length)), e), []) : []);
29
- v("tabs", i), v("isTabActive", (e) => c.value === e);
30
- const F = (e = -1) => b.value === e, C = (e) => `base-tab-${e}-${d}`, V = (e = -1) => `base-tab-panel-${e}-${d}`, w = (e = -1) => {
31
- const a = i.value.reduce(
32
- (t, n, N) => (n["active-tab-panel-idx"] !== e || t.push({ tab: n, idx: N }), t),
33
- []
34
- );
35
- return a && a.length === 1 ? a[0].tab.tabId : a.find((t) => t.idx === c.value)?.tab.tabId;
36
- }, D = (e) => {
37
- A.value = C(e);
38
- }, L = (e) => {
39
- const a = i.value.at(e ?? -1);
40
- b.value = a?.["active-tab-panel-idx"] ?? null;
41
- };
42
- v("handleClick", (e, a) => {
43
- D(e), c.value = e, B("tabClicked", { tabIdx: e, tabElement: a });
44
- }), x(
45
- c,
46
- (e) => {
47
- L(e ?? -1);
48
- },
49
- {
50
- immediate: !0
51
- }
52
- );
53
- const E = (e, a) => {
54
- for (let t = 0; t < e.length; t++)
55
- if (e[t] !== a[t]) return t;
56
- return null;
57
- }, M = (e = -1) => i.value.find((a) => a["active-tab-panel-idx"] === e);
58
- return x(
59
- () => i.value.map((e) => e["active-tab-panel-idx"]),
60
- (e, a) => {
61
- const t = E(e, a);
62
- if (t === null) return;
63
- const n = i.value[t]["active-tab-panel-idx"];
64
- c.value !== t || n === void 0 || (b.value = n);
65
- }
66
- ), (e, a) => (l(), f("div", {
67
- ref: "root",
68
- class: k(e.$attrs.class),
69
- "data-cy": s.dataCy
70
- }, [
71
- H("span", {
72
- id: `tablist-${m(d)}`,
73
- class: "uikit-sr-only"
74
- }, J(s.tabViewDescription), 9, W),
75
- s.tabsPosition === "top" ? (l(), o(P, {
76
- key: 0,
77
- uid: m(d),
78
- "tab-list-classes": s.tabListClasses,
79
- "data-cy": s.dataCy ? `${s.dataCy}-tab-list` : ""
80
- }, null, 8, ["uid", "tab-list-classes", "data-cy"])) : u("", !0),
81
- (l(!0), f(I, null, K(i.value, (t, n) => (l(), f(I, { key: n }, [
82
- M(n) ? (l(), o(R, {
83
- key: 0,
84
- id: V(t["active-tab-panel-idx"]),
85
- "labelled-by": w(n) ?? "",
86
- active: F(n),
87
- class: k(t["tab-panel-classes"])
88
- }, {
89
- default: O(() => [
90
- t.renderFn.children && t.renderFn.children.default ? (l(), o(Q(t.renderFn.children.default), { key: 0 })) : u("", !0)
91
- ]),
92
- _: 2
93
- }, 1032, ["id", "labelled-by", "active", "class"])) : u("", !0)
94
- ], 64))), 128)),
95
- s.tabsPosition === "bottom" ? (l(), o(P, {
96
- key: 1,
97
- uid: m(d),
98
- "tab-list-classes": s.tabListClasses,
99
- "data-cy": s.dataCy ? `${s.dataCy}-tab-list` : ""
100
- }, null, 8, ["uid", "tab-list-classes", "data-cy"])) : u("", !0)
101
- ], 10, U));
102
- }
1
+ import e from "./BaseTabPanel.js";
2
+ import t from "./BaseTabList.js";
3
+ import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeModels as l, normalizeClass as u, openBlock as d, provide as f, ref as p, renderList as m, resolveDynamicComponent as h, toDisplayString as g, unref as _, useId as v, useModel as y, useSlots as b, watch as x, withCtx as S } from "vue";
4
+ //#region lib/UIKit/Tab/BaseTabView.vue?vue&type=script&setup=true&lang.ts
5
+ var C = ["data-cy"], w = ["id"], T = /*@__PURE__*/ c({
6
+ inheritAttrs: !1,
7
+ __name: "BaseTabView",
8
+ props: /*@__PURE__*/ l({
9
+ tabsPosition: { default: "top" },
10
+ tabViewDescription: {},
11
+ tabListClasses: {},
12
+ dataCy: {}
13
+ }, {
14
+ activeIdx: { default: 0 },
15
+ activeIdxModifiers: {}
16
+ }),
17
+ emits: /*@__PURE__*/ l(["tabClicked"], ["update:activeIdx"]),
18
+ setup(c, { emit: l }) {
19
+ let T = l, E = y(c, "activeIdx"), D = p(""), O = p(null), k = v(), A = b(), j = (e) => e.props ?? null, M = (e) => e.type.__name === "BaseTab", N = (e, t) => ({
20
+ renderFn: e,
21
+ tabId: I(t),
22
+ "active-tab-panel-idx": j(e)?.["active-tab-panel-idx"] ?? t,
23
+ "header-title": j(e)?.["header-title"] || "",
24
+ class: j(e)?.class || "",
25
+ "tab-panel-classes": j(e)?.["tab-panel-classes"] || "",
26
+ "data-cy": j(e)?.["data-cy"] || ""
27
+ }), P = r(() => A.default ? A.default().reduce((e, t) => (t.children && Array.isArray(t.children) ? t.children.forEach((t) => {
28
+ M(t) && e.push(N(t, e.length));
29
+ }) : M(t) && e.push(N(t, e.length)), e), []) : []);
30
+ f("tabs", P), f("isTabActive", (e) => E.value === e);
31
+ let F = (e = -1) => O.value === e, I = (e) => `base-tab-${e}-${k}`, L = (e = -1) => `base-tab-panel-${e}-${k}`, R = (e = -1) => {
32
+ let t = P.value.reduce((t, n, r) => (n["active-tab-panel-idx"] === e && t.push({
33
+ tab: n,
34
+ idx: r
35
+ }), t), []);
36
+ return t && t.length === 1 ? t[0].tab.tabId : t.find((e) => e.idx === E.value)?.tab.tabId;
37
+ }, z = (e) => {
38
+ D.value = I(e);
39
+ }, B = (e) => {
40
+ let t = P.value.at(e ?? -1);
41
+ O.value = t?.["active-tab-panel-idx"] ?? null;
42
+ };
43
+ f("handleClick", (e, t) => {
44
+ z(e), E.value = e, T("tabClicked", {
45
+ tabIdx: e,
46
+ tabElement: t
47
+ });
48
+ }), x(E, (e) => {
49
+ B(e ?? -1);
50
+ }, { immediate: !0 });
51
+ let V = (e, t) => {
52
+ for (let n = 0; n < e.length; n++) if (e[n] !== t[n]) return n;
53
+ return null;
54
+ }, H = (e = -1) => P.value.find((t) => t["active-tab-panel-idx"] === e);
55
+ return x(() => P.value.map((e) => e["active-tab-panel-idx"]), (e, t) => {
56
+ let n = V(e, t);
57
+ if (n === null) return;
58
+ let r = P.value[n]["active-tab-panel-idx"];
59
+ E.value !== n || r === void 0 || (O.value = r);
60
+ }), (r, l) => (d(), o("div", {
61
+ ref: "root",
62
+ class: u(r.$attrs.class),
63
+ "data-cy": c.dataCy
64
+ }, [
65
+ s("span", {
66
+ id: `tablist-${_(k)}`,
67
+ class: "uikit-sr-only"
68
+ }, g(c.tabViewDescription), 9, w),
69
+ c.tabsPosition === "top" ? (d(), i(t, {
70
+ key: 0,
71
+ uid: _(k),
72
+ "tab-list-classes": c.tabListClasses,
73
+ "data-cy": c.dataCy ? `${c.dataCy}-tab-list` : ""
74
+ }, null, 8, [
75
+ "uid",
76
+ "tab-list-classes",
77
+ "data-cy"
78
+ ])) : a("", !0),
79
+ (d(!0), o(n, null, m(P.value, (t, r) => (d(), o(n, { key: r }, [H(r) ? (d(), i(e, {
80
+ key: 0,
81
+ id: L(t["active-tab-panel-idx"]),
82
+ "labelled-by": R(r) ?? "",
83
+ active: F(r),
84
+ class: u(t["tab-panel-classes"])
85
+ }, {
86
+ default: S(() => [t.renderFn.children && t.renderFn.children.default ? (d(), i(h(t.renderFn.children.default), { key: 0 })) : a("", !0)]),
87
+ _: 2
88
+ }, 1032, [
89
+ "id",
90
+ "labelled-by",
91
+ "active",
92
+ "class"
93
+ ])) : a("", !0)], 64))), 128)),
94
+ c.tabsPosition === "bottom" ? (d(), i(t, {
95
+ key: 1,
96
+ uid: _(k),
97
+ "tab-list-classes": c.tabListClasses,
98
+ "data-cy": c.dataCy ? `${c.dataCy}-tab-list` : ""
99
+ }, null, 8, [
100
+ "uid",
101
+ "tab-list-classes",
102
+ "data-cy"
103
+ ])) : a("", !0)
104
+ ], 10, C));
105
+ }
103
106
  });
104
- export {
105
- ae as default
106
- };
107
+ //#endregion
108
+ export { T as default };
@@ -1,5 +1,5 @@
1
- import o from "./BaseTabs.vue.js";
2
- import '../../../assets/BaseTabs.css';/* empty css */
3
- export {
4
- o as default
5
- };
1
+ import e from "./BaseTabs.vue.js";
2
+ //#region lib/UIKit/Tab/v2/BaseTabs.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };
@@ -1,39 +1,35 @@
1
- import { defineComponent as l, createPropsRestProxy as i, shallowRef as m, provide as d, onMounted as p, openBlock as c, createBlock as f, unref as y, mergeProps as C, withCtx as B, renderSlot as M } from "vue";
2
- import { TabsRoot as V } from "reka-ui";
3
- const v = /* @__PURE__ */ l({
4
- __name: "BaseTabs",
5
- props: {
6
- dataCy: {},
7
- defaultValue: {},
8
- orientation: {},
9
- dir: {},
10
- activationMode: {},
11
- modelValue: {},
12
- unmountOnHide: { type: Boolean },
13
- asChild: { type: Boolean },
14
- as: {}
15
- },
16
- emits: ["update:modelValue", "mounted"],
17
- setup(t, { emit: s }) {
18
- const r = i(t, ["dataCy"]), o = s, a = m(!1);
19
- return d("indicatorMounted", a), d("setIndicatorMounted", () => {
20
- a.value = !0;
21
- }), p(() => {
22
- o("mounted");
23
- }), (u, n) => (c(), f(y(V), C(r, {
24
- "data-cy": t.dataCy,
25
- class: "uikit-base-tabs",
26
- "onUpdate:modelValue": n[0] || (n[0] = (e) => o("update:modelValue", e))
27
- }), {
28
- default: B(({ modelValue: e }) => [
29
- M(u.$slots, "default", {
30
- modelValue: e
31
- })
32
- ]),
33
- _: 3
34
- }, 16, ["data-cy"]));
35
- }
1
+ import { createBlock as e, createPropsRestProxy as t, defineComponent as n, mergeProps as r, onMounted as i, openBlock as a, provide as o, renderSlot as s, shallowRef as c, unref as l, withCtx as u } from "vue";
2
+ import { TabsRoot as d } from "reka-ui";
3
+ import '../../../assets/BaseTabs.css';//#region lib/UIKit/Tab/v2/BaseTabs.vue?vue&type=script&setup=true&lang.ts
4
+ var f = /*@__PURE__*/ n({
5
+ __name: "BaseTabs",
6
+ props: {
7
+ dataCy: {},
8
+ defaultValue: {},
9
+ orientation: {},
10
+ dir: {},
11
+ activationMode: {},
12
+ modelValue: {},
13
+ unmountOnHide: { type: Boolean },
14
+ asChild: { type: Boolean },
15
+ as: {}
16
+ },
17
+ emits: ["update:modelValue", "mounted"],
18
+ setup(n, { emit: f }) {
19
+ let p = t(n, ["dataCy"]), m = f, h = c(!1);
20
+ return o("indicatorMounted", h), o("setIndicatorMounted", () => {
21
+ h.value = !0;
22
+ }), i(() => {
23
+ m("mounted");
24
+ }), (t, i) => (a(), e(l(d), r(p, {
25
+ "data-cy": n.dataCy,
26
+ class: "uikit-base-tabs",
27
+ "onUpdate:modelValue": i[0] ||= (e) => m("update:modelValue", e)
28
+ }), {
29
+ default: u(({ modelValue: e }) => [s(t.$slots, "default", { modelValue: e })]),
30
+ _: 3
31
+ }, 16, ["data-cy"]));
32
+ }
36
33
  });
37
- export {
38
- v as default
39
- };
34
+ //#endregion
35
+ export { f as default };
@@ -1,4 +1,5 @@
1
- import f from "./BaseTabsContent.vue.js";
2
- export {
3
- f as default
4
- };
1
+ import e from "./BaseTabsContent.vue.js";
2
+ //#region lib/UIKit/Tab/v2/BaseTabsContent.vue
3
+ var t = e;
4
+ //#endregion
5
+ export { t as default };