@wikicasa-dev/components 1.7.37 → 1.7.38

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 (51) hide show
  1. package/dist/BaseAutocomplete.js +1 -1
  2. package/dist/BasePagination.js +1 -1
  3. package/dist/BaseSlider.js +4 -8
  4. package/dist/BaseSnackbar.js +55 -53
  5. package/dist/BaseUploadFile.js +1 -1
  6. package/dist/CheckboxGroup.js +1 -1
  7. package/dist/SwiperCarousel.js +1 -1
  8. package/dist/UIKit/AccessibleSelect.vue.d.ts +21 -19
  9. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +15 -13
  10. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +17 -15
  11. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -8
  12. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +26 -24
  13. package/dist/UIKit/BaseAlert.vue.d.ts +8 -6
  14. package/dist/UIKit/BaseAutocomplete.vue.d.ts +11 -9
  15. package/dist/UIKit/BaseBadge.vue.d.ts +6 -4
  16. package/dist/UIKit/BaseButton.vue.d.ts +32 -30
  17. package/dist/UIKit/BaseCard.vue.d.ts +17 -15
  18. package/dist/UIKit/BaseComplexToggle.vue.d.ts +13 -9
  19. package/dist/UIKit/BaseDropDown.vue.d.ts +47 -45
  20. package/dist/UIKit/BaseInput.vue.d.ts +17 -15
  21. package/dist/UIKit/BaseModal.vue.d.ts +43 -41
  22. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +14 -12
  23. package/dist/UIKit/BaseSnackbar.vue.d.ts +8 -8
  24. package/dist/UIKit/BaseToggle.vue.d.ts +7 -5
  25. package/dist/UIKit/BaseTooltip.vue.d.ts +19 -17
  26. package/dist/UIKit/BaseUploadFile.vue.d.ts +20 -18
  27. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +24 -22
  28. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +31 -29
  29. package/dist/UIKit/Radio/RadioButton.vue.d.ts +2 -2
  30. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +26 -24
  31. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -4
  32. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +8 -8
  33. package/dist/UIKit/StaticSpinner.vue.d.ts +4 -4
  34. package/dist/UIKit/Tab/BaseTab.vue.d.ts +10 -8
  35. package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +8 -6
  36. package/dist/assets/BaseSnackbar.css +1 -1
  37. package/dist/chart/composables/useChartjsModules.d.ts +2 -2
  38. package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.DqwIqwC2.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.D_AZtW3a.js} +1 -2
  39. package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.DslSstg9.js → BasePagination.vue_vue_type_script_setup_true_lang.m1hcl9Ft.js} +1 -2
  40. package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.1Uo4HnFM.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Dj2egDaT.js} +1 -2
  41. package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.TNbYVnnF.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.Bn9HoCj4.js} +1 -2
  42. package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.DydGEHWv.js → SwiperCarousel.vue_vue_type_style_index_0_lang.7z9WGfLj.js} +19 -30
  43. package/dist/chunks/{index.C2AlqfUw.js → index.DUnHxi5U.js} +30 -58
  44. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -8
  45. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +9 -7
  46. package/dist/components/carousel/SwiperCarousel.vue.d.ts +6 -4
  47. package/dist/components/carousel/SwiperSlide.vue.d.ts +4 -2
  48. package/dist/index.js +5 -5
  49. package/dist/useChartjsModules.js +5 -10
  50. package/dist/useKeyboardController.js +2 -4
  51. package/package.json +15 -15
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.DqwIqwC2.js";
1
+ import { _ as f } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.D_AZtW3a.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.DslSstg9.js";
1
+ import { _ as f } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.m1hcl9Ft.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -92,13 +92,11 @@ const I = c({
92
92
  },
93
93
  methods: {
94
94
  handleInputChange(t, i) {
95
- if (!this.fromSlider || !this.toSlider)
96
- return;
95
+ if (!this.fromSlider || !this.toSlider) return;
97
96
  i || (i = "0");
98
97
  const e = parseInt(i, 10);
99
98
  if (t == "min-input") {
100
- if (e >= this.maxValue)
101
- return;
99
+ if (e >= this.maxValue) return;
102
100
  this.minValue = e, this.controlFromInput(this.toSlider);
103
101
  return;
104
102
  }
@@ -167,8 +165,7 @@ const I = c({
167
165
  u(this.maxValue, t), s <= r ? this.sliderMaxValue = r : this.sliderMaxValue = s;
168
166
  },
169
167
  controlFromSlider(t, i) {
170
- if (!this.toSlider)
171
- return;
168
+ if (!this.toSlider) return;
172
169
  const [e, l] = p(t, i), s = this.getCurrentValue(e);
173
170
  m(
174
171
  e,
@@ -183,8 +180,7 @@ const I = c({
183
180
  ), e > l ? (t.value = `${l}`, this.sliderMinValue = l, this.minValue = l) : (this.sliderMinValue = e, this.minValue = s);
184
181
  },
185
182
  controlToSlider(t, i) {
186
- if (!this.toSlider)
187
- return;
183
+ if (!this.toSlider) return;
188
184
  const [e, l] = p(t, i), s = this.getCurrentValue(l);
189
185
  m(
190
186
  this.sliderMinValue,
@@ -1,11 +1,11 @@
1
- import { defineComponent as b, ref as u, onBeforeMount as f, openBlock as i, createElementBlock as e, createElementVNode as o, normalizeClass as h, withModifiers as l, createCommentVNode as a, createVNode as y, unref as x } from "vue";
2
- import { l as _ } from "./chunks/CloseIcon._moEkaop.js";
1
+ import { defineComponent as b, ref as u, onBeforeMount as f, openBlock as i, createBlock as h, Teleport as y, createElementVNode as e, normalizeClass as x, withModifiers as l, createElementBlock as a, createCommentVNode as s, createVNode as _, unref as v } from "vue";
2
+ import { l as g } from "./chunks/CloseIcon._moEkaop.js";
3
3
  import "./chunks/DownloadIcon.DHCHRETy.js";
4
- import { _ as v } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
5
- import './assets/BaseSnackbar.css';const g = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, C = ["data-cy"], w = ["src", "alt"], L = {
4
+ import { _ as C } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
5
+ import './assets/BaseSnackbar.css';const T = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, w = ["data-cy"], B = ["src", "alt"], L = {
6
6
  key: 1,
7
7
  class: "snackbar-type-icon uikit-bg-contain uikit-bg-no-repeat"
8
- }, M = { class: "snackbar-text uikit-px-4 uikit-py-0 uikit-text uikit-font-regular max-sm:uikit-max-w-[80%] max-sm:uikit-pr-0 sm:uikit-text-16" }, T = ["innerHTML"], B = ["innerHTML"], S = /* @__PURE__ */ b({
8
+ }, M = { class: "snackbar-text uikit-px-4 uikit-py-0 uikit-text uikit-font-regular max-sm:uikit-max-w-[80%] max-sm:uikit-pr-0 sm:uikit-text-16" }, S = ["innerHTML"], H = ["innerHTML"], E = /* @__PURE__ */ b({
9
9
  inheritAttrs: !1,
10
10
  __name: "BaseSnackbar",
11
11
  props: {
@@ -13,13 +13,13 @@ import './assets/BaseSnackbar.css';const g = { class: "snackbar-container uikit-
13
13
  title: {},
14
14
  body: {},
15
15
  icon: {},
16
- timeout: { default: 55e3 },
16
+ timeout: { default: 55e4 },
17
17
  cb: { default: null }
18
18
  },
19
19
  emits: ["snackbar-hidden"],
20
20
  setup(k, { emit: m }) {
21
- const s = k, d = m, n = u(null), r = u(null), p = () => {
22
- n.value && n.value();
21
+ const n = k, d = m, o = u(null), r = u(null), p = () => {
22
+ o.value && o.value();
23
23
  }, c = () => {
24
24
  const t = r.value;
25
25
  t && (t.classList.remove("snackbar-active"), t.classList.add("snackbar-hidden"), setTimeout(() => {
@@ -27,54 +27,56 @@ import './assets/BaseSnackbar.css';const g = { class: "snackbar-container uikit-
27
27
  }, 300));
28
28
  };
29
29
  return f(() => {
30
- s.cb && (n.value = s.cb), setTimeout(() => {
30
+ n.cb && (o.value = n.cb), setTimeout(() => {
31
31
  c();
32
- }, s.timeout);
33
- }), (t, H) => (i(), e("div", g, [
34
- o("div", {
35
- ref_key: "snackbar",
36
- ref: r,
37
- "data-cy": t.$attrs["data-cy"],
38
- class: h(["snackbar snackbar-active uikit-flex uikit-items-center uikit-rounded-[5px] uikit-px-4 uikit-py-10px uikit-font-medium uikit-shadow hover:uikit-cursor-pointer max-sm:uikit-relative max-sm:uikit-mx-10px max-sm:uikit-my-0", t.type]),
39
- onClick: l(p, ["stop"])
40
- }, [
41
- t.icon ? (i(), e("img", {
42
- key: 0,
43
- src: t.icon.src,
44
- alt: `${t.icon.alt}`,
45
- width: "20",
46
- height: "20"
47
- }, null, 8, w)) : a("", !0),
48
- t.type && !t.icon ? (i(), e("span", L)) : a("", !0),
49
- o("div", M, [
50
- t.title ? (i(), e("p", {
51
- key: 0,
52
- class: "uikit-m-0",
53
- innerHTML: t.title
54
- }, null, 8, T)) : a("", !0),
55
- t.body ? (i(), e("p", {
56
- key: 1,
57
- class: "uikit-m-0",
58
- innerHTML: t.body
59
- }, null, 8, B)) : a("", !0)
60
- ]),
61
- o("button", {
62
- type: "button",
63
- "data-cy": "base-snackbar-close-btn",
64
- class: "uikit-bg-transparent max-sm:uikit-absolute max-sm:uikit-right-5",
65
- onClick: l(c, ["stop"])
32
+ }, n.timeout);
33
+ }), (t, N) => (i(), h(y, { to: "body" }, [
34
+ e("div", T, [
35
+ e("div", {
36
+ ref_key: "snackbar",
37
+ ref: r,
38
+ "data-cy": t.$attrs["data-cy"],
39
+ class: x(["snackbar snackbar-active uikit-flex uikit-items-center uikit-rounded-[5px] uikit-px-4 uikit-py-10px uikit-font-medium uikit-shadow hover:uikit-cursor-pointer max-sm:uikit-relative max-sm:uikit-mx-10px max-sm:uikit-my-0", t.type]),
40
+ onClick: l(p, ["stop"])
66
41
  }, [
67
- y(x(_), {
68
- class: "snackbar-close-icon",
69
- width: 20,
70
- height: 20,
71
- "stroke-color": "#000"
72
- })
73
- ])
74
- ], 10, C)
42
+ t.icon ? (i(), a("img", {
43
+ key: 0,
44
+ src: t.icon.src,
45
+ alt: `${t.icon.alt}`,
46
+ width: "20",
47
+ height: "20"
48
+ }, null, 8, B)) : s("", !0),
49
+ t.type && !t.icon ? (i(), a("span", L)) : s("", !0),
50
+ e("div", M, [
51
+ t.title ? (i(), a("p", {
52
+ key: 0,
53
+ class: "uikit-m-0",
54
+ innerHTML: t.title
55
+ }, null, 8, S)) : s("", !0),
56
+ t.body ? (i(), a("p", {
57
+ key: 1,
58
+ class: "uikit-m-0",
59
+ innerHTML: t.body
60
+ }, null, 8, H)) : s("", !0)
61
+ ]),
62
+ e("button", {
63
+ type: "button",
64
+ "data-cy": "base-snackbar-close-btn",
65
+ class: "uikit-bg-transparent max-sm:uikit-absolute max-sm:uikit-right-5",
66
+ onClick: l(c, ["stop"])
67
+ }, [
68
+ _(v(g), {
69
+ class: "snackbar-close-icon",
70
+ width: 20,
71
+ height: 20,
72
+ "stroke-color": "#000"
73
+ })
74
+ ])
75
+ ], 10, w)
76
+ ])
75
77
  ]));
76
78
  }
77
- }), $ = /* @__PURE__ */ v(S, [["__scopeId", "data-v-1288e108"]]);
79
+ }), I = /* @__PURE__ */ C(E, [["__scopeId", "data-v-ac8cba3f"]]);
78
80
  export {
79
- $ as default
81
+ I as default
80
82
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.1Uo4HnFM.js";
1
+ import { _ as f } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.Dj2egDaT.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.TNbYVnnF.js";
1
+ import { _ as f } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.Bn9HoCj4.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.DydGEHWv.js";
1
+ import { _ as f } from "./chunks/SwiperCarousel.vue_vue_type_style_index_0_lang.7z9WGfLj.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,21 +1,24 @@
1
1
  import { AccessibleSelectOptions } from '@wikicasa-dev/types';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
- label?: string | undefined;
5
- dropdownPosition?: "bottom" | "top" | undefined;
3
+ declare function __VLS_template(): {
4
+ lefticon?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
+ label?: string;
8
+ dropdownPosition?: "top" | "bottom";
6
9
  namespace: string;
7
10
  options: AccessibleSelectOptions[];
8
- modelValue?: AccessibleSelectOptions | undefined;
9
- isValid?: boolean | null | undefined;
11
+ modelValue?: AccessibleSelectOptions;
12
+ isValid?: boolean | null;
10
13
  feedback?: Partial<{
11
14
  valid: string;
12
15
  invalid: string;
13
- }> | undefined;
16
+ }>;
14
17
  /**
15
18
  * If true, we will close the dropdown when we touch the body of the document
16
19
  */
17
- closeOnBodyPressed?: boolean | undefined;
18
- border?: boolean | undefined;
20
+ closeOnBodyPressed?: boolean;
21
+ border?: boolean;
19
22
  }>, {
20
23
  modelValue: () => {
21
24
  id: string;
@@ -29,21 +32,21 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
29
32
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
33
  "update:modelValue": (args_0: AccessibleSelectOptions) => void;
31
34
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
32
- label?: string | undefined;
33
- dropdownPosition?: "bottom" | "top" | undefined;
35
+ label?: string;
36
+ dropdownPosition?: "top" | "bottom";
34
37
  namespace: string;
35
38
  options: AccessibleSelectOptions[];
36
- modelValue?: AccessibleSelectOptions | undefined;
37
- isValid?: boolean | null | undefined;
39
+ modelValue?: AccessibleSelectOptions;
40
+ isValid?: boolean | null;
38
41
  feedback?: Partial<{
39
42
  valid: string;
40
43
  invalid: string;
41
- }> | undefined;
44
+ }>;
42
45
  /**
43
46
  * If true, we will close the dropdown when we touch the body of the document
44
47
  */
45
- closeOnBodyPressed?: boolean | undefined;
46
- border?: boolean | undefined;
48
+ closeOnBodyPressed?: boolean;
49
+ border?: boolean;
47
50
  }>, {
48
51
  modelValue: () => {
49
52
  id: string;
@@ -61,11 +64,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
61
64
  border: boolean;
62
65
  isValid: boolean | null;
63
66
  modelValue: AccessibleSelectOptions;
64
- dropdownPosition: "bottom" | "top";
67
+ dropdownPosition: "top" | "bottom";
65
68
  closeOnBodyPressed: boolean;
66
- }, {}>, {
67
- lefticon?(_: {}): any;
68
- }>;
69
+ }, {}>;
70
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
69
71
  export default _default;
70
72
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
71
73
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,26 +1,28 @@
1
1
  import { AccordionItem } from '@wikicasa-dev/types';
2
2
 
3
3
  type AccordionItemDecorated<T> = Record<string | number, T & Partial<AccordionItem>>;
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
- autoClose?: boolean | undefined;
4
+ declare function __VLS_template(): {
5
+ default?(_: {
6
+ updatePrev: <T>(a: AccordionItem, _accordionItems: AccordionItemDecorated<T>) => void;
7
+ prev: {
8
+ title?: string;
9
+ id: string | number;
10
+ active?: boolean;
11
+ } | null;
12
+ }): any;
13
+ };
14
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
15
+ autoClose?: boolean;
6
16
  }>, {
7
17
  autoClose: boolean;
8
18
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
- autoClose?: boolean | undefined;
19
+ autoClose?: boolean;
10
20
  }>, {
11
21
  autoClose: boolean;
12
22
  }>>>, {
13
23
  autoClose: boolean;
14
- }, {}>, {
15
- default?(_: {
16
- updatePrev: <T>(a: AccordionItem, _accordionItems: AccordionItemDecorated<T>) => void;
17
- prev: {
18
- title?: string | undefined;
19
- id: string | number;
20
- active?: boolean | undefined;
21
- } | null;
22
- }): any;
23
- }>;
24
+ }, {}>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
24
26
  export default _default;
25
27
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
28
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,8 +1,16 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare function __VLS_template(): {
2
+ custom_content?(_: {}): any;
3
+ custom_btn?(_: {
4
+ btnId: string;
5
+ isOpen: boolean;
6
+ toggleAccordion: () => void;
7
+ }): any;
8
+ };
9
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
10
  id: string | number;
3
- arrowWidth?: number | undefined;
4
- onContainerClickExpand?: boolean | undefined;
5
- accordionOpen?: boolean | undefined;
11
+ arrowWidth?: number;
12
+ onContainerClickExpand?: boolean;
13
+ accordionOpen?: boolean;
6
14
  toggleAccordion: () => void;
7
15
  }>, {
8
16
  accordionOpen: boolean;
@@ -12,9 +20,9 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
12
20
  click: () => void;
13
21
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
14
22
  id: string | number;
15
- arrowWidth?: number | undefined;
16
- onContainerClickExpand?: boolean | undefined;
17
- accordionOpen?: boolean | undefined;
23
+ arrowWidth?: number;
24
+ onContainerClickExpand?: boolean;
25
+ accordionOpen?: boolean;
18
26
  toggleAccordion: () => void;
19
27
  }>, {
20
28
  accordionOpen: boolean;
@@ -26,14 +34,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
26
34
  arrowWidth: number;
27
35
  accordionOpen: boolean;
28
36
  onContainerClickExpand: boolean;
29
- }, {}>, {
30
- custom_content?(_: {}): any;
31
- custom_btn?(_: {
32
- btnId: string;
33
- isOpen: boolean;
34
- toggleAccordion: () => void;
35
- }): any;
36
- }>;
37
+ }, {}>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
39
  export default _default;
38
40
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
41
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,17 +1,19 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- id: string | number;
3
- accordionOpen: boolean;
4
- }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
- id: string | number;
6
- accordionOpen: boolean;
7
- }>>>, {}, {}>, {
1
+ declare function __VLS_template(): {
8
2
  custom_accordion_content?(_: {
9
3
  isOpen: boolean;
10
4
  }): any;
11
5
  default?(_: {
12
6
  isOpen: boolean;
13
7
  }): any;
14
- }>;
8
+ };
9
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
10
+ id: string | number;
11
+ accordionOpen: boolean;
12
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
13
+ id: string | number;
14
+ accordionOpen: boolean;
15
+ }>>>, {}, {}>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
15
17
  export default _default;
16
18
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
19
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,8 +1,27 @@
1
1
  import { AccordionItem } from '@wikicasa-dev/types';
2
2
 
3
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AccordionItem & {
4
- arrowWidth?: number | undefined;
5
- onContainerClickExpand?: boolean | undefined;
3
+ declare function __VLS_template(): {
4
+ custom_content?(_: {}): any;
5
+ custom_btn?(_: {
6
+ btnId: string;
7
+ isOpen: boolean;
8
+ toggleAccordion: () => void;
9
+ }): any;
10
+ custom_accordion?(_: {
11
+ id: string | number;
12
+ isOpen: boolean;
13
+ toggleAccordion: () => void;
14
+ }): any;
15
+ custom_accordion_content?(_: {
16
+ isOpen: boolean;
17
+ }): any;
18
+ default?(_: {
19
+ isOpen: boolean;
20
+ }): any;
21
+ };
22
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AccordionItem & {
23
+ arrowWidth?: number;
24
+ onContainerClickExpand?: boolean;
6
25
  }>, {
7
26
  active: boolean;
8
27
  arrowWidth: number;
@@ -13,8 +32,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
13
32
  accordionClosed: (a: AccordionItem) => void;
14
33
  "update:accordionState": (args_0: boolean) => void;
15
34
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<AccordionItem & {
16
- arrowWidth?: number | undefined;
17
- onContainerClickExpand?: boolean | undefined;
35
+ arrowWidth?: number;
36
+ onContainerClickExpand?: boolean;
18
37
  }>, {
19
38
  active: boolean;
20
39
  arrowWidth: number;
@@ -28,25 +47,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
28
47
  active: boolean;
29
48
  arrowWidth: number;
30
49
  onContainerClickExpand: boolean;
31
- }, {}>, {
32
- custom_content?(_: {}): any;
33
- custom_btn?(_: {
34
- btnId: string;
35
- isOpen: boolean;
36
- toggleAccordion: () => void;
37
- }): any;
38
- custom_accordion?(_: {
39
- id: string | number;
40
- isOpen: boolean;
41
- toggleAccordion: () => void;
42
- }): any;
43
- custom_accordion_content?(_: {
44
- isOpen: boolean;
45
- }): any;
46
- default?(_: {
47
- isOpen: boolean;
48
- }): any;
49
- }>;
50
+ }, {}>;
51
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
50
52
  export default _default;
51
53
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
54
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -3,19 +3,21 @@ import { TwPrefix } from 'lib/types';
3
3
  type AlertClassPrefix = "alert-";
4
4
  type AlertColors = "w-primary" | "w-danger";
5
5
  type AlertClass = `${TwPrefix}${AlertClassPrefix}${AlertColors}` | "";
6
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
- alertClass?: AlertClass | undefined;
6
+ declare function __VLS_template(): {
7
+ default?(_: {}): any;
8
+ };
9
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
+ alertClass?: AlertClass;
8
11
  }>, {
9
12
  alertClass: string;
10
13
  }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
11
- alertClass?: AlertClass | undefined;
14
+ alertClass?: AlertClass;
12
15
  }>, {
13
16
  alertClass: string;
14
17
  }>>>, {
15
18
  alertClass: AlertClass;
16
- }, {}>, {
17
- default?(_: {}): any;
18
- }>;
19
+ }, {}>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
19
21
  export default _default;
20
22
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
21
23
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,8 +1,14 @@
1
1
  import { AccessibleSelectOptions, Nullable, BaseAutocompleteThemes } from '@wikicasa-dev/types';
2
2
 
3
3
  type ModelValueType<T = unknown> = AccessibleSelectOptions<T>;
4
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
5
- modelValue: import('vue').PropType<ModelValueType<unknown> | undefined>;
4
+ declare function __VLS_template(): {
5
+ lefticon?(_: {}): any;
6
+ righticon?(_: {
7
+ handleClean: () => void;
8
+ }): any;
9
+ };
10
+ declare const __VLS_component: import('vue').DefineComponent<{
11
+ modelValue: import('vue').PropType<ModelValueType | undefined>;
6
12
  label: {
7
13
  type: import('vue').PropType<string>;
8
14
  default: string;
@@ -56,7 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
56
62
  "update:dropdownState": (args_0: boolean) => void;
57
63
  changedValue: (args_0: string) => void;
58
64
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
59
- modelValue: import('vue').PropType<ModelValueType<unknown> | undefined>;
65
+ modelValue: import('vue').PropType<ModelValueType | undefined>;
60
66
  label: {
61
67
  type: import('vue').PropType<string>;
62
68
  default: string;
@@ -118,12 +124,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
118
124
  onOptionSelectedCb: Nullable<(v: AccessibleSelectOptions) => void>;
119
125
  cleanupOnClose: boolean;
120
126
  closeDropdownOnBodyPressed: boolean;
121
- }, {}>, {
122
- lefticon?(_: {}): any;
123
- righticon?(_: {
124
- handleClean: () => void;
125
- }): any;
126
- }>;
127
+ }, {}>;
128
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
127
129
  export default _default;
128
130
  type __VLS_WithTemplateSlots<T, S> = T & {
129
131
  new (): {
@@ -1,4 +1,7 @@
1
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
5
  badgeClass: "uikit-badge-w-warning" | "uikit-badge-w-lavender" | "uikit-badge-outline-tag" | "uikit-badge-w-primary-sm" | "uikit-badge-outline-tag-listing" | "uikit-badge-w-dark-primary";
3
6
  }>, {
4
7
  badgeClass: string;
@@ -8,9 +11,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
8
11
  badgeClass: string;
9
12
  }>>>, {
10
13
  badgeClass: "uikit-badge-w-warning" | "uikit-badge-w-lavender" | "uikit-badge-outline-tag" | "uikit-badge-w-primary-sm" | "uikit-badge-outline-tag-listing" | "uikit-badge-w-dark-primary";
11
- }, {}>, {
12
- default?(_: {}): any;
13
- }>;
14
+ }, {}>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
14
16
  export default _default;
15
17
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
18
  type __VLS_TypePropsToRuntimeProps<T> = {