@wikicasa-dev/components 1.7.26 → 1.7.28

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 (89) hide show
  1. package/dist/AccessibleSelect.js +1 -1
  2. package/dist/BaseAutocomplete.js +1 -1
  3. package/dist/BaseComplexToggle.js +1 -2
  4. package/dist/BaseFloatingLabel.js +1 -2
  5. package/dist/BaseIcon.js +1 -2
  6. package/dist/BaseInput.js +1 -2
  7. package/dist/BaseModal.js +1 -1
  8. package/dist/BaseNavItem.js +1 -2
  9. package/dist/BasePagination.js +1 -1
  10. package/dist/BasePaper.js +1 -2
  11. package/dist/BaseShimmerLoader.js +13 -0
  12. package/dist/BaseSlider.js +6 -7
  13. package/dist/BaseSnackbar.js +1 -2
  14. package/dist/BaseTextarea.js +1 -2
  15. package/dist/BaseToggle.js +1 -2
  16. package/dist/BaseTooltip.js +1 -2
  17. package/dist/CheckboxBtn.js +1 -2
  18. package/dist/CheckboxGroup.js +1 -1
  19. package/dist/LineChart.js +1 -1
  20. package/dist/ShimmerMultiLine.js +24 -0
  21. package/dist/StaticSpinner.js +1 -2
  22. package/dist/SwiperCarousel.js +1 -1
  23. package/dist/UIKit/AccessibleSelect.vue.d.ts +10 -4
  24. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +4 -3
  25. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +3 -3
  26. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +2 -2
  27. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +5 -4
  28. package/dist/UIKit/BaseAlert.vue.d.ts +4 -3
  29. package/dist/UIKit/BaseAutocomplete.vue.d.ts +29 -28
  30. package/dist/UIKit/BaseBadge.vue.d.ts +2 -2
  31. package/dist/UIKit/BaseButton.vue.d.ts +5 -4
  32. package/dist/UIKit/BaseCard.vue.d.ts +3 -3
  33. package/dist/UIKit/BaseComplexToggle.vue.d.ts +18 -17
  34. package/dist/UIKit/BaseDropDown.vue.d.ts +3 -3
  35. package/dist/UIKit/BaseFloatingLabel.vue.d.ts +4 -3
  36. package/dist/UIKit/BaseIcon.vue.d.ts +2 -2
  37. package/dist/UIKit/BaseInput.vue.d.ts +19 -18
  38. package/dist/UIKit/BaseModal.vue.d.ts +3 -3
  39. package/dist/UIKit/BaseNavItem.vue.d.ts +2 -2
  40. package/dist/UIKit/BasePagination.vue.d.ts +2 -2
  41. package/dist/UIKit/BasePaper.vue.d.ts +1 -1
  42. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +3 -3
  43. package/dist/UIKit/BaseSlider.vue.d.ts +4 -3
  44. package/dist/UIKit/BaseSnackbar.vue.d.ts +5 -4
  45. package/dist/UIKit/BaseTextarea.vue.d.ts +15 -14
  46. package/dist/UIKit/BaseToggle.vue.d.ts +8 -8
  47. package/dist/UIKit/BaseTooltip.vue.d.ts +2 -2
  48. package/dist/UIKit/BaseUploadFile.vue.d.ts +5 -4
  49. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +5 -4
  50. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +5 -4
  51. package/dist/UIKit/Radio/RadioButton.vue.d.ts +3 -3
  52. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +5 -5
  53. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +9 -0
  54. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +38 -0
  55. package/dist/UIKit/StaticSpinner.vue.d.ts +2 -2
  56. package/dist/UIKit/Tab/BaseTab.vue.d.ts +2 -2
  57. package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +2 -2
  58. package/dist/UIKit/Tab/BaseTabView.vue.d.ts +10 -9
  59. package/dist/assets/BaseCard.css +1 -1
  60. package/dist/assets/BaseShimmerLoader.css +1 -0
  61. package/dist/assets/BaseSlider.css +1 -1
  62. package/dist/assets/BaseTooltip.css +1 -1
  63. package/dist/assets/index.css +1 -1
  64. package/dist/chart/DoughnutChart.vue.d.ts +4 -3
  65. package/dist/chart/LineChart.vue.d.ts +4 -3
  66. package/dist/chart/composables/useChartjsModules.d.ts +4 -3
  67. package/dist/chunks/{AccessibleSelect.vue_vue_type_script_setup_true_lang.5pqk7vlZ.js → AccessibleSelect.vue_vue_type_script_setup_true_lang.BQ4qQ7zr.js} +97 -86
  68. package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js +1 -2
  69. package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.CVffB0Ai.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.CoHhyD4i.js} +1 -1
  70. package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js +1 -2
  71. package/dist/chunks/BaseCard.vue_vue_type_style_index_0_lang.w5aEohzG.js +1 -2
  72. package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.Cz2Kd5zD.js → BaseModal.vue_vue_type_style_index_0_lang.DmbmvbJg.js} +2 -3
  73. package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.DDtN9_Bg.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.TNbYVnnF.js} +1 -1
  74. package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js +37 -0
  75. package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.DDYbH2A1.js → SwiperCarousel.vue_vue_type_style_index_0_lang.DydGEHWv.js} +162 -155
  76. package/dist/chunks/{index.DXfsARH3.js → index.C2AlqfUw.js} +316 -311
  77. package/dist/chunks/js.cookie.CkZE2oaL.js +95 -0
  78. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +2 -2
  79. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +3 -3
  80. package/dist/components/carousel/SwiperCarousel.vue.d.ts +6 -7
  81. package/dist/components/carousel/SwiperSlide.vue.d.ts +1 -1
  82. package/dist/composables/useFloatingLabel.d.ts +3 -2
  83. package/dist/composables/useKeyboardController.d.ts +2 -1
  84. package/dist/composables/useValidator.d.ts +2 -1
  85. package/dist/index.d.ts +40 -39
  86. package/dist/index.js +7 -8
  87. package/package.json +3 -3
  88. package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.D1HsyTJq.js +0 -36
  89. package/dist/chunks/js.cookie.BQua9eWh.js +0 -101
@@ -0,0 +1,95 @@
1
+ let g;
2
+ const y = new Uint8Array(16);
3
+ function h() {
4
+ if (!g && (g = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !g))
5
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6
+ return g(y);
7
+ }
8
+ const o = [];
9
+ for (let e = 0; e < 256; ++e)
10
+ o.push((e + 256).toString(16).slice(1));
11
+ function f(e, n = 0) {
12
+ return o[e[n + 0]] + o[e[n + 1]] + o[e[n + 2]] + o[e[n + 3]] + "-" + o[e[n + 4]] + o[e[n + 5]] + "-" + o[e[n + 6]] + o[e[n + 7]] + "-" + o[e[n + 8]] + o[e[n + 9]] + "-" + o[e[n + 10]] + o[e[n + 11]] + o[e[n + 12]] + o[e[n + 13]] + o[e[n + 14]] + o[e[n + 15]];
13
+ }
14
+ const x = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), U = {
15
+ randomUUID: x
16
+ };
17
+ function C(e, n, u) {
18
+ if (U.randomUUID && !n && !e)
19
+ return U.randomUUID();
20
+ e = e || {};
21
+ const c = e.random || (e.rng || h)();
22
+ return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, f(c);
23
+ }
24
+ C();
25
+ /*! js-cookie v3.0.5 | MIT */
26
+ function l(e) {
27
+ for (var n = 1; n < arguments.length; n++) {
28
+ var u = arguments[n];
29
+ for (var c in u)
30
+ e[c] = u[c];
31
+ }
32
+ return e;
33
+ }
34
+ var a = {
35
+ read: function(e) {
36
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
37
+ },
38
+ write: function(e) {
39
+ return encodeURIComponent(e).replace(
40
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
41
+ decodeURIComponent
42
+ );
43
+ }
44
+ };
45
+ function v(e, n) {
46
+ function u(t, p, r) {
47
+ if (!(typeof document > "u")) {
48
+ r = l({}, n, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
49
+ var i = "";
50
+ for (var d in r)
51
+ r[d] && (i += "; " + d, r[d] !== !0 && (i += "=" + r[d].split(";")[0]));
52
+ return document.cookie = t + "=" + e.write(p, t) + i;
53
+ }
54
+ }
55
+ function c(t) {
56
+ if (!(typeof document > "u" || arguments.length && !t)) {
57
+ for (var p = document.cookie ? document.cookie.split("; ") : [], r = {}, i = 0; i < p.length; i++) {
58
+ var d = p[i].split("="), s = d.slice(1).join("=");
59
+ try {
60
+ var m = decodeURIComponent(d[0]);
61
+ if (r[m] = e.read(s, m), t === m)
62
+ break;
63
+ } catch {
64
+ }
65
+ }
66
+ return t ? r[t] : r;
67
+ }
68
+ }
69
+ return Object.create(
70
+ {
71
+ set: u,
72
+ get: c,
73
+ remove: function(t, p) {
74
+ u(
75
+ t,
76
+ "",
77
+ l({}, p, {
78
+ expires: -1
79
+ })
80
+ );
81
+ },
82
+ withAttributes: function(t) {
83
+ return v(this.converter, l({}, this.attributes, t));
84
+ },
85
+ withConverter: function(t) {
86
+ return v(l({}, this.converter, t), this.attributes);
87
+ }
88
+ },
89
+ {
90
+ attributes: { value: Object.freeze(n) },
91
+ converter: { value: Object.freeze(e) }
92
+ }
93
+ );
94
+ }
95
+ v(a, { path: "/" });
@@ -1,10 +1,10 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
2
  observer?: IntersectionObserver | null | undefined;
3
3
  isVisible?: boolean | undefined;
4
4
  }>, {
5
5
  isVisible: boolean;
6
6
  observer: null;
7
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
8
8
  observer?: IntersectionObserver | null | undefined;
9
9
  isVisible?: boolean | undefined;
10
10
  }>, {
@@ -3,13 +3,13 @@ interface IntersectionObserverProps {
3
3
  skip?: boolean;
4
4
  threshold?: number;
5
5
  }
6
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IntersectionObserverProps>, {
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IntersectionObserverProps>, {
7
7
  observeOnce: boolean;
8
8
  skip: boolean;
9
9
  threshold: number;
10
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
11
  intersection: () => void;
12
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IntersectionObserverProps>, {
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IntersectionObserverProps>, {
13
13
  observeOnce: boolean;
14
14
  skip: boolean;
15
15
  threshold: number;
@@ -1,7 +1,6 @@
1
- import { Image } from "@wikicasa-dev/types";
2
- import type { SwiperOptions } from "swiper/types";
3
- import "swiper/css/bundle";
4
- import "swiper/css/zoom";
1
+ import { Image } from '@wikicasa-dev/types';
2
+ import { SwiperOptions } from 'swiper/types';
3
+
5
4
  interface SwiperCarouselProps {
6
5
  id: string;
7
6
  swiperOptions: SwiperOptions;
@@ -15,19 +14,19 @@ interface SwiperCarouselProps {
15
14
  }>;
16
15
  shiftFirstImage?: boolean;
17
16
  }
18
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwiperCarouselProps>, {
17
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwiperCarouselProps>, {
19
18
  lazyLoadImages: boolean;
20
19
  backgroundImage: boolean;
21
20
  shiftFirstImage: boolean;
22
21
  }>, {
23
22
  moveTo(index: number, speed?: number, runCallbacks?: boolean): void;
24
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
24
  moved: (args_0: {
26
25
  activeIndex: number;
27
26
  }) => void;
28
27
  click: () => void;
29
28
  firstSlideLoaded: () => void;
30
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwiperCarouselProps>, {
29
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SwiperCarouselProps>, {
31
30
  lazyLoadImages: boolean;
32
31
  backgroundImage: boolean;
33
32
  shiftFirstImage: boolean;
@@ -1,4 +1,4 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>, {
2
2
  default?(_: {}): any;
3
3
  }>;
4
4
  export default _default;
@@ -1,5 +1,6 @@
1
- import type { Ref } from "vue";
2
- import { LabelState } from "@wikicasa-dev/types";
1
+ import { Ref } from 'vue';
2
+ import { LabelState } from '@wikicasa-dev/types';
3
+
3
4
  interface UsableFloatingLabel {
4
5
  labelState: Ref<LabelState>;
5
6
  setInitialLabelState: <T>(value: T) => void;
@@ -1,4 +1,5 @@
1
- import type { Ref } from "vue";
1
+ import { Ref } from 'vue';
2
+
2
3
  interface KeyboardControllerProps {
3
4
  optionsLength: Ref<number> | number;
4
5
  isDropdownOpen: Ref<boolean>;
@@ -1,4 +1,5 @@
1
- import { Nullable } from "@wikicasa-dev/types";
1
+ import { Nullable } from '@wikicasa-dev/types';
2
+
2
3
  interface UsableValidator {
3
4
  isValid: (validator?: {
4
5
  $error: boolean;
package/dist/index.d.ts CHANGED
@@ -1,41 +1,42 @@
1
- import BaseAccordion from './UIKit/Accordion/BaseAccordion.vue';
2
- import BaseAccordionBtn from './UIKit/Accordion/BaseAccordionBtn.vue';
3
- import BaseAccordionContent from './UIKit/Accordion/BaseAccordionContent.vue';
4
- import BaseAccordionItem from './UIKit/Accordion/BaseAccordionItem.vue';
5
- import SelectItem from './UIKit/BaseSelect/SelectItem.vue';
6
- import CheckboxBtn from './UIKit/Checkbox/CheckboxBtn.vue';
7
- import CheckboxGroup from './UIKit/Checkbox/CheckboxGroup.vue';
8
- import BaseTab from './UIKit/Tab/BaseTab.vue';
9
- import BaseTabView from './UIKit/Tab/BaseTabView.vue';
10
- import RadioButton from './UIKit/Radio/RadioButton.vue';
11
- import RadioGroup from './UIKit/Radio/RadioGroup.vue';
12
- import AccessibleSelect from './UIKit/AccessibleSelect.vue';
13
- import BaseAlert from './UIKit/BaseAlert.vue';
14
- import BaseAutocomplete from './UIKit/BaseAutocomplete.vue';
15
- import BaseBadge from './UIKit/BaseBadge.vue';
16
- import BaseButton from './UIKit/BaseButton.vue';
17
- import BaseCard from './UIKit/BaseCard.vue';
18
- import BaseComplexToggle from './UIKit/BaseComplexToggle.vue';
19
- import BaseDropDown from './UIKit/BaseDropDown.vue';
20
- import BaseFloatingLabel from './UIKit/BaseFloatingLabel.vue';
21
- import BaseIcon from './UIKit/BaseIcon.vue';
22
- import BaseInput from './UIKit/BaseInput.vue';
23
- import BaseNavItem from './UIKit/BaseNavItem.vue';
24
- import BasePagination from './UIKit/BasePagination.vue';
25
- import BasePaper from './UIKit/BasePaper.vue';
26
- import BaseSlider from './UIKit/BaseSlider.vue';
27
- import BaseTextarea from './UIKit/BaseTextarea.vue';
28
- import BaseToggle from './UIKit/BaseToggle.vue';
29
- import BaseTooltip from './UIKit/BaseTooltip.vue';
30
- import BaseUploadFile from './UIKit/BaseUploadFile.vue';
31
- import BaseModal from './UIKit/BaseModal.vue';
32
- import BaseSnackbar from './UIKit/BaseSnackbar.vue';
33
- import DoughnutChart from './chart/DoughnutChart.vue';
34
- import LineChart from './chart/LineChart.vue';
35
- import IntersectionObservable from './components/IntersectionObserver/IntersectionObservable.vue';
36
- import IntersectionObserver from './components/IntersectionObserver/IntersectionObserver.vue';
37
- import SwiperCarousel from './components/carousel/SwiperCarousel.vue';
38
- import SwiperSlide from './components/carousel/SwiperSlide.vue';
1
+ import { default as BaseAccordion } from './UIKit/Accordion/BaseAccordion.vue';
2
+ import { default as BaseAccordionBtn } from './UIKit/Accordion/BaseAccordionBtn.vue';
3
+ import { default as BaseAccordionContent } from './UIKit/Accordion/BaseAccordionContent.vue';
4
+ import { default as BaseAccordionItem } from './UIKit/Accordion/BaseAccordionItem.vue';
5
+ import { default as SelectItem } from './UIKit/BaseSelect/SelectItem.vue';
6
+ import { default as CheckboxBtn } from './UIKit/Checkbox/CheckboxBtn.vue';
7
+ import { default as CheckboxGroup } from './UIKit/Checkbox/CheckboxGroup.vue';
8
+ import { default as BaseTab } from './UIKit/Tab/BaseTab.vue';
9
+ import { default as BaseTabView } from './UIKit/Tab/BaseTabView.vue';
10
+ import { default as RadioButton } from './UIKit/Radio/RadioButton.vue';
11
+ import { default as RadioGroup } from './UIKit/Radio/RadioGroup.vue';
12
+ import { default as AccessibleSelect } from './UIKit/AccessibleSelect.vue';
13
+ import { default as BaseAlert } from './UIKit/BaseAlert.vue';
14
+ import { default as BaseAutocomplete } from './UIKit/BaseAutocomplete.vue';
15
+ import { default as BaseBadge } from './UIKit/BaseBadge.vue';
16
+ import { default as BaseButton } from './UIKit/BaseButton.vue';
17
+ import { default as BaseCard } from './UIKit/BaseCard.vue';
18
+ import { default as BaseComplexToggle } from './UIKit/BaseComplexToggle.vue';
19
+ import { default as BaseDropDown } from './UIKit/BaseDropDown.vue';
20
+ import { default as BaseFloatingLabel } from './UIKit/BaseFloatingLabel.vue';
21
+ import { default as BaseIcon } from './UIKit/BaseIcon.vue';
22
+ import { default as BaseInput } from './UIKit/BaseInput.vue';
23
+ import { default as BaseNavItem } from './UIKit/BaseNavItem.vue';
24
+ import { default as BasePagination } from './UIKit/BasePagination.vue';
25
+ import { default as BasePaper } from './UIKit/BasePaper.vue';
26
+ import { default as BaseSlider } from './UIKit/BaseSlider.vue';
27
+ import { default as BaseTextarea } from './UIKit/BaseTextarea.vue';
28
+ import { default as BaseToggle } from './UIKit/BaseToggle.vue';
29
+ import { default as BaseTooltip } from './UIKit/BaseTooltip.vue';
30
+ import { default as BaseUploadFile } from './UIKit/BaseUploadFile.vue';
31
+ import { default as BaseModal } from './UIKit/BaseModal.vue';
32
+ import { default as BaseSnackbar } from './UIKit/BaseSnackbar.vue';
33
+ import { default as DoughnutChart } from './chart/DoughnutChart.vue';
34
+ import { default as LineChart } from './chart/LineChart.vue';
35
+ import { default as IntersectionObservable } from './components/IntersectionObserver/IntersectionObservable.vue';
36
+ import { default as IntersectionObserver } from './components/IntersectionObserver/IntersectionObserver.vue';
37
+ import { default as SwiperCarousel } from './components/carousel/SwiperCarousel.vue';
38
+ import { default as SwiperSlide } from './components/carousel/SwiperSlide.vue';
39
39
  import { useValidator } from './composables/useValidator';
40
- export type { ChartOptions, ChartData } from "chart.js";
40
+
41
+ export type { ChartOptions, ChartData } from 'chart.js';
41
42
  export { DoughnutChart, LineChart, BaseAccordion, BaseAccordionBtn, BaseAccordionContent, BaseAccordionItem, SelectItem, BaseAlert, BaseAutocomplete, BaseBadge, BaseButton, AccessibleSelect, BaseComplexToggle, BaseDropDown, BaseFloatingLabel, BaseCard, BaseIcon, BaseInput, BaseNavItem, BasePagination, BasePaper, BaseSlider, BaseTab, BaseTextarea, BaseToggle, BaseTooltip, BaseUploadFile, CheckboxBtn, CheckboxGroup, RadioButton, RadioGroup, SwiperCarousel, SwiperSlide, IntersectionObservable, IntersectionObserver, useValidator, BaseModal, BaseSnackbar, BaseTabView, };
package/dist/index.js CHANGED
@@ -1,18 +1,17 @@
1
- import './assets/index.css';
2
1
  import { _ as a } from "./chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.CoE2D2rV.js";
3
2
  import { _ as t } from "./chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.CrVwjQqr.js";
4
3
  import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.8ErZghvk.js";
5
4
  import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.cWFIcTGL.js";
6
5
  import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.Colhxc7n.js";
7
6
  import { default as d } from "./CheckboxBtn.js";
8
- import { _ } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.DDtN9_Bg.js";
7
+ import { _ } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.TNbYVnnF.js";
9
8
  import { _ as i } from "./chunks/BaseTab.vue_vue_type_script_setup_true_lang.BRubYI9e.js";
10
9
  import { _ as b } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DRECN-Oz.js";
11
10
  import { _ as C } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.DR6a7QAi.js";
12
11
  import { _ as I } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BYlMCUWP.js";
13
- import { _ as T } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.5pqk7vlZ.js";
12
+ import { _ as T } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.BQ4qQ7zr.js";
14
13
  import { _ as w } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js";
15
- import { _ as v } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.CVffB0Ai.js";
14
+ import { _ as v } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.CoHhyD4i.js";
16
15
  import { _ as F } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
17
16
  import { _ as L } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.BwONsejV.js";
18
17
  import { _ as P } from "./chunks/BaseCard.vue_vue_type_style_index_0_lang.w5aEohzG.js";
@@ -29,16 +28,16 @@ import { default as ee } from "./BaseTextarea.js";
29
28
  import { default as ae } from "./BaseToggle.js";
30
29
  import { default as te } from "./BaseTooltip.js";
31
30
  import { _ as fe } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.1Uo4HnFM.js";
32
- import { _ as me } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.Cz2Kd5zD.js";
31
+ import { _ as me } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.DmbmvbJg.js";
33
32
  import { default as le } from "./BaseSnackbar.js";
34
33
  import { _ as de } from "./chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.C4QPaUsI.js";
35
- import { _ as _e } from "./chunks/LineChart.vue_vue_type_script_setup_true_lang.D1HsyTJq.js";
34
+ import { _ as _e } from "./chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js";
36
35
  import { _ as ie } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js";
37
36
  import { _ as be } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js";
38
- import { _ as Ce } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.DDYbH2A1.js";
37
+ import { _ as Ce } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.DydGEHWv.js";
39
38
  import { default as Ie } from "./SwiperSlide.js";
40
39
  import { useValidator as Te } from "./useValidator.js";
41
- export {
40
+ import './assets/index.css';export {
42
41
  T as AccessibleSelect,
43
42
  a as BaseAccordion,
44
43
  t as BaseAccordionBtn,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.7.26",
3
+ "version": "1.7.28",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -53,10 +53,10 @@
53
53
  "@types/node": "^20.5.0",
54
54
  "@vitejs/plugin-vue": "^5.0.4",
55
55
  "@wikicasa-dev/svg-icons": "^0.0.1",
56
- "@wikicasa-dev/types": "^1.0.9",
56
+ "@wikicasa-dev/tailwind-plugins": "^0.0.2",
57
+ "@wikicasa-dev/types": "^1.2.9",
57
58
  "@wikicasa-dev/utilities": "^0.2.1",
58
59
  "@wikicasa-dev/vue-composables": "^0.0.4",
59
- "@wikicasa-dev/tailwind-plugins": "^0.0.2",
60
60
  "autoprefixer": "^10.4.15",
61
61
  "chromatic": "^11.2.0",
62
62
  "eslint": "^8.57.0",
@@ -1,36 +0,0 @@
1
- import { defineComponent as p, onBeforeMount as m, unref as o, openBlock as c, createBlock as l, createCommentVNode as u } from "vue";
2
- import { Line as d } from "vue-chartjs";
3
- import { Chart as f, LineController as C, LineElement as g, PointElement as L, CategoryScale as _, LinearScale as h } from "chart.js";
4
- import { useChartJsModules as k } from "../useChartjsModules.js";
5
- const P = /* @__PURE__ */ p({
6
- __name: "LineChart",
7
- props: {
8
- options: {},
9
- data: {}
10
- },
11
- setup(t) {
12
- f.register(
13
- C,
14
- g,
15
- L,
16
- _,
17
- h
18
- );
19
- const r = t, {
20
- registerPlugins: n,
21
- registerTimeCartesianAxis: a,
22
- executeRegistration: i,
23
- resolved: s
24
- } = k(r.options);
25
- return m(async () => {
26
- await i(n, a);
27
- }), (e, y) => o(s) ? (c(), l(o(d), {
28
- key: 0,
29
- options: e.options,
30
- data: e.data
31
- }, null, 8, ["options", "data"])) : u("", !0);
32
- }
33
- });
34
- export {
35
- P as _
36
- };
@@ -1,101 +0,0 @@
1
- let g;
2
- const h = new Uint8Array(16);
3
- function s() {
4
- if (!g && (g = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !g))
5
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6
- return g(h);
7
- }
8
- const o = [];
9
- for (let n = 0; n < 256; ++n)
10
- o.push((n + 256).toString(16).slice(1));
11
- function x(n, e = 0) {
12
- return o[n[e + 0]] + o[n[e + 1]] + o[n[e + 2]] + o[n[e + 3]] + "-" + o[n[e + 4]] + o[n[e + 5]] + "-" + o[n[e + 6]] + o[n[e + 7]] + "-" + o[n[e + 8]] + o[n[e + 9]] + "-" + o[n[e + 10]] + o[n[e + 11]] + o[n[e + 12]] + o[n[e + 13]] + o[n[e + 14]] + o[n[e + 15]];
13
- }
14
- const C = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), U = {
15
- randomUUID: C
16
- };
17
- function a(n, e, c) {
18
- if (U.randomUUID && !e && !n)
19
- return U.randomUUID();
20
- n = n || {};
21
- const i = n.random || (n.rng || s)();
22
- if (i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, e) {
23
- c = c || 0;
24
- for (let r = 0; r < 16; ++r)
25
- e[c + r] = i[r];
26
- return e;
27
- }
28
- return x(i);
29
- }
30
- a();
31
- /*! js-cookie v3.0.5 | MIT */
32
- function l(n) {
33
- for (var e = 1; e < arguments.length; e++) {
34
- var c = arguments[e];
35
- for (var i in c)
36
- n[i] = c[i];
37
- }
38
- return n;
39
- }
40
- var I = {
41
- read: function(n) {
42
- return n[0] === '"' && (n = n.slice(1, -1)), n.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
43
- },
44
- write: function(n) {
45
- return encodeURIComponent(n).replace(
46
- /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
47
- decodeURIComponent
48
- );
49
- }
50
- };
51
- function v(n, e) {
52
- function c(r, p, t) {
53
- if (!(typeof document > "u")) {
54
- t = l({}, e, t), typeof t.expires == "number" && (t.expires = new Date(Date.now() + t.expires * 864e5)), t.expires && (t.expires = t.expires.toUTCString()), r = encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
55
- var d = "";
56
- for (var u in t)
57
- t[u] && (d += "; " + u, t[u] !== !0 && (d += "=" + t[u].split(";")[0]));
58
- return document.cookie = r + "=" + n.write(p, r) + d;
59
- }
60
- }
61
- function i(r) {
62
- if (!(typeof document > "u" || arguments.length && !r)) {
63
- for (var p = document.cookie ? document.cookie.split("; ") : [], t = {}, d = 0; d < p.length; d++) {
64
- var u = p[d].split("="), y = u.slice(1).join("=");
65
- try {
66
- var m = decodeURIComponent(u[0]);
67
- if (t[m] = n.read(y, m), r === m)
68
- break;
69
- } catch {
70
- }
71
- }
72
- return r ? t[r] : t;
73
- }
74
- }
75
- return Object.create(
76
- {
77
- set: c,
78
- get: i,
79
- remove: function(r, p) {
80
- c(
81
- r,
82
- "",
83
- l({}, p, {
84
- expires: -1
85
- })
86
- );
87
- },
88
- withAttributes: function(r) {
89
- return v(this.converter, l({}, this.attributes, r));
90
- },
91
- withConverter: function(r) {
92
- return v(l({}, this.converter, r), this.attributes);
93
- }
94
- },
95
- {
96
- attributes: { value: Object.freeze(e) },
97
- converter: { value: Object.freeze(n) }
98
- }
99
- );
100
- }
101
- v(I, { path: "/" });