@wikicasa-dev/components 1.2.11 → 1.2.13

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 (76) hide show
  1. package/README.md +46 -46
  2. package/dist/UIKit/AccessibleSelect.vue.d.ts +73 -0
  3. package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +45 -0
  4. package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +59 -0
  5. package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +29 -0
  6. package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +71 -0
  7. package/dist/UIKit/BaseAlert.vue.d.ts +41 -0
  8. package/dist/UIKit/BaseAutocomplete.vue.d.ts +110 -0
  9. package/dist/UIKit/BaseBadge.vue.d.ts +36 -0
  10. package/dist/UIKit/BaseBtModal.vue.d.ts +172 -0
  11. package/dist/UIKit/BaseButton.vue.d.ts +16 -16
  12. package/dist/UIKit/BaseCard.vue.d.ts +41 -0
  13. package/dist/UIKit/BaseComplexToggle.vue.d.ts +83 -0
  14. package/dist/UIKit/BaseDropDown.vue.d.ts +123 -0
  15. package/dist/UIKit/BaseFloatingLabel.vue.d.ts +44 -0
  16. package/dist/UIKit/BaseIcon.vue.d.ts +2 -2
  17. package/dist/UIKit/BaseInput.vue.d.ts +143 -0
  18. package/dist/UIKit/BaseNavItem.vue.d.ts +43 -0
  19. package/dist/UIKit/BasePagination.vue.d.ts +65 -0
  20. package/dist/UIKit/BasePaper.vue.d.ts +2 -0
  21. package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +54 -0
  22. package/dist/UIKit/BaseSlider.vue.d.ts +42 -0
  23. package/dist/UIKit/BaseSnackbar.vue.d.ts +56 -0
  24. package/dist/UIKit/BaseTab.vue.d.ts +60 -0
  25. package/dist/UIKit/BaseTextarea.vue.d.ts +82 -0
  26. package/dist/UIKit/BaseToggle.vue.d.ts +36 -0
  27. package/dist/UIKit/BaseTooltip.vue.d.ts +56 -0
  28. package/dist/UIKit/BaseUploadFile.vue.d.ts +37 -0
  29. package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +92 -0
  30. package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +78 -0
  31. package/dist/UIKit/Radio/RadioButton.vue.d.ts +26 -0
  32. package/dist/UIKit/Radio/RadioGroup.vue.d.ts +37 -0
  33. package/dist/UIKit/StaticSpinner.vue.d.ts +12 -12
  34. package/dist/Views/AccordionSection.vue.d.ts +2 -0
  35. package/dist/Views/AlertSection.vue.d.ts +2 -0
  36. package/dist/Views/AutocompleteSection.vue.d.ts +2 -0
  37. package/dist/Views/BadgeSection.vue.d.ts +2 -0
  38. package/dist/Views/ButtonsSection.vue.d.ts +2 -0
  39. package/dist/Views/CardSection.vue.d.ts +2 -0
  40. package/dist/Views/CheckboxSection.vue.d.ts +6 -0
  41. package/dist/Views/DropdownSection.vue.d.ts +35 -0
  42. package/dist/Views/ModalSection.vue.d.ts +4 -0
  43. package/dist/Views/PaginationSection.vue.d.ts +2 -0
  44. package/dist/Views/PaperSection.vue.d.ts +2 -0
  45. package/dist/Views/RadioSection.vue.d.ts +9 -0
  46. package/dist/Views/SliderSection.vue.d.ts +9 -0
  47. package/dist/Views/SnackbarSection.vue.d.ts +2 -0
  48. package/dist/Views/TabSection.vue.d.ts +2 -0
  49. package/dist/Views/TextInputSection.vue.d.ts +2 -0
  50. package/dist/Views/TextareaSection.vue.d.ts +6 -0
  51. package/dist/Views/ToggleSection.vue.d.ts +2 -0
  52. package/dist/Views/TooltipSection.vue.d.ts +2 -0
  53. package/dist/Views/UiKitSidebar.vue.d.ts +18 -0
  54. package/dist/Views/UploadBtnSection.vue.d.ts +2 -0
  55. package/dist/Views/WikicasaUiKit.vue.d.ts +19 -0
  56. package/dist/components/HelloWorld.vue.d.ts +2 -0
  57. package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +8 -8
  58. package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +11 -11
  59. package/dist/components/Pera.vue.d.ts +14 -0
  60. package/dist/components/base/BaseEmptyButton.vue.d.ts +35 -0
  61. package/dist/components/base/StaticSpinner.vue.d.ts +23 -0
  62. package/dist/components/carousel/SwiperCarousel.vue.d.ts +13 -13
  63. package/dist/components/input/TripleSelect.vue.d.ts +26 -0
  64. package/dist/components/insert/QualityScore.vue.d.ts +16 -0
  65. package/dist/components.js +33 -5
  66. package/dist/components.umd.cjs +13 -6
  67. package/dist/{index-Brcl3KsS.js → index-1oh628Cu.js} +2 -2
  68. package/dist/index-BYiujdKM.js +4872 -0
  69. package/dist/index.d.ts +34 -5
  70. package/dist/stories/Button.stories.d.ts +6 -6
  71. package/dist/stories/Button.vue.d.ts +64 -0
  72. package/dist/stories/Header.vue.d.ts +28 -0
  73. package/dist/stories/Page.vue.d.ts +3 -0
  74. package/dist/style.css +1 -1
  75. package/package.json +2 -1
  76. package/dist/index-4TomfCph.js +0 -2444
package/README.md CHANGED
@@ -1,46 +1,46 @@
1
- # @wikicasa-dev/types
2
-
3
- Libreria condivisa contenente componneti scritte in Vue 3.
4
- La chiave privata per la condivisione è già configurata su tutti i progetti Wikicasa, per l'installazione o l'aggiornamento della libreria basterà quindi eseguire
5
-
6
- yarn add @wikicasa-dev/components
7
-
8
- ## Sviluppo e rilascio
9
-
10
- La libreria fa parte di un monorepo insieme a `@wikicasa-dev/utilities` e `@wikicasa-dev/types`.
11
- Il monorepo è gestito da **[pnpm](https://pnpm.io/it/)**. Il bundler in uso per questa libreria è **[Vite](https://pnpm.io/it/)**.
12
-
13
- I file _index.html_ e _main.ts_ possono essere usati come playground per provare il funzionamento del codice. Per avviare il server di sviluppo basterà eseguire
14
-
15
- pnpm dev
16
-
17
- e collegarsi all'indirizzo corrispondente. Il server di sviluppo è dotato di hot reload, basterà quidni salvare il file modificato. Il file _main.ts_ è escluso dalla build quindi non bisogna preoccuparsi di sporcarlo.
18
-
19
- ### Rilascio
20
-
21
- Come prima cosa bisogna buildare i file con
22
-
23
- pnpm build
24
-
25
- Successivamente bisognerà incrementare la versione. pnpm ha un comando apposito per cui si sconsiglia di andare a modificare a mano la versione nel _package.json_. Il comando è
26
-
27
- pnpm version <major|minor|patch>
28
-
29
- Sta allo sviluppatore scegliere l'incremento di versione più opportuno.
30
- Dopodiché occorrerà eseguire il commit e push delle modifiche (pnpm blocca il rilascio in caso di modifiche non committate) per poi procedere alla pubblicazione con
31
-
32
- pnpm publish
33
-
34
- ## Storybook
35
-
36
- La libreria è configurata con [Storybook](https://storybook.js.org/) per testare le componenti. Per lanciare Storybook in locale basterà eseguire
37
-
38
- pnpm storybook
39
-
40
- L'hot reload funziona anche per le componenti e le stories, occasionalmente sarà necessario aggiornare la pagina.
41
-
42
- Storybook può essere rilasciato su Chromatic, occorre eseguire
43
-
44
- pnpm chromatic
45
-
46
- per generare un link pubblico a Storybook.
1
+ # @wikicasa-dev/types
2
+
3
+ Libreria condivisa contenente componneti scritte in Vue 3.
4
+ La chiave privata per la condivisione è già configurata su tutti i progetti Wikicasa, per l'installazione o l'aggiornamento della libreria basterà quindi eseguire
5
+
6
+ yarn add @wikicasa-dev/components
7
+
8
+ ## Sviluppo e rilascio
9
+
10
+ La libreria fa parte di un monorepo insieme a `@wikicasa-dev/utilities` e `@wikicasa-dev/types`.
11
+ Il monorepo è gestito da **[pnpm](https://pnpm.io/it/)**. Il bundler in uso per questa libreria è **[Vite](https://pnpm.io/it/)**.
12
+
13
+ I file _index.html_ e _main.ts_ possono essere usati come playground per provare il funzionamento del codice. Per avviare il server di sviluppo basterà eseguire
14
+
15
+ pnpm dev
16
+
17
+ e collegarsi all'indirizzo corrispondente. Il server di sviluppo è dotato di hot reload, basterà quidni salvare il file modificato. Il file _main.ts_ è escluso dalla build quindi non bisogna preoccuparsi di sporcarlo.
18
+
19
+ ### Rilascio
20
+
21
+ Come prima cosa bisogna buildare i file con
22
+
23
+ pnpm build
24
+
25
+ Successivamente bisognerà incrementare la versione. pnpm ha un comando apposito per cui si sconsiglia di andare a modificare a mano la versione nel _package.json_. Il comando è
26
+
27
+ pnpm version <major|minor|patch>
28
+
29
+ Sta allo sviluppatore scegliere l'incremento di versione più opportuno.
30
+ Dopodiché occorrerà eseguire il commit e push delle modifiche (pnpm blocca il rilascio in caso di modifiche non committate) per poi procedere alla pubblicazione con
31
+
32
+ pnpm publish
33
+
34
+ ## Storybook
35
+
36
+ La libreria è configurata con [Storybook](https://storybook.js.org/) per testare le componenti. Per lanciare Storybook in locale basterà eseguire
37
+
38
+ pnpm storybook
39
+
40
+ L'hot reload funziona anche per le componenti e le stories, occasionalmente sarà necessario aggiornare la pagina.
41
+
42
+ Storybook può essere rilasciato su Chromatic, occorre eseguire
43
+
44
+ pnpm chromatic
45
+
46
+ per generare un link pubblico a Storybook.
@@ -0,0 +1,73 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ label?: string | undefined;
3
+ dropdownPosition?: "bottom" | "top" | undefined;
4
+ namespace: string;
5
+ options: any[];
6
+ modelValue?: any;
7
+ isValid?: boolean | null | undefined;
8
+ feedback?: Partial<{
9
+ valid: string;
10
+ invalid: string;
11
+ }> | undefined;
12
+ }>, {
13
+ modelValue: () => {
14
+ id: string;
15
+ label: string;
16
+ };
17
+ label: string;
18
+ dropdownPosition: string;
19
+ isValid: null;
20
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (args_0: any) => void;
22
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
23
+ label?: string | undefined;
24
+ dropdownPosition?: "bottom" | "top" | undefined;
25
+ namespace: string;
26
+ options: any[];
27
+ modelValue?: any;
28
+ isValid?: boolean | null | undefined;
29
+ feedback?: Partial<{
30
+ valid: string;
31
+ invalid: string;
32
+ }> | undefined;
33
+ }>, {
34
+ modelValue: () => {
35
+ id: string;
36
+ label: string;
37
+ };
38
+ label: string;
39
+ dropdownPosition: string;
40
+ isValid: null;
41
+ }>>> & {
42
+ "onUpdate:modelValue"?: ((args_0: any) => any) | undefined;
43
+ }, {
44
+ label: string;
45
+ isValid: boolean | null;
46
+ modelValue: any;
47
+ dropdownPosition: "bottom" | "top";
48
+ }, {}>, {
49
+ lefticon?(_: {}): any;
50
+ }>;
51
+ export default _default;
52
+ type __VLS_WithDefaults<P, D> = {
53
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
+ default: D[K];
55
+ }> : P[K];
56
+ };
57
+ type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
60
+ type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
65
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
66
+ type __VLS_TypePropsToOption<T> = {
67
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
68
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
69
+ } : {
70
+ type: import('vue').PropType<T[K]>;
71
+ required: true;
72
+ };
73
+ };
@@ -0,0 +1,45 @@
1
+ import { AccordionItem } from "@wikicasa-dev/types";
2
+ type AccordionItemDecorated<T> = Record<string | number, T & Partial<AccordionItem>>;
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
+ autoClose?: boolean | undefined;
5
+ }>, {
6
+ autoClose: boolean;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
8
+ autoClose?: boolean | undefined;
9
+ }>, {
10
+ autoClose: boolean;
11
+ }>>>, {
12
+ autoClose: boolean;
13
+ }, {}>, {
14
+ default?(_: {
15
+ updatePrev: <T>(a: AccordionItem, _accordionItems: AccordionItemDecorated<T>) => void;
16
+ prev: {
17
+ title?: string | undefined;
18
+ id: string | number;
19
+ active?: boolean | undefined;
20
+ } | null;
21
+ }): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_WithDefaults<P, D> = {
25
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
26
+ default: D[K];
27
+ }> : P[K];
28
+ };
29
+ type __VLS_Prettify<T> = {
30
+ [K in keyof T]: T[K];
31
+ } & {};
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
37
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
+ type __VLS_TypePropsToOption<T> = {
39
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
40
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
+ } : {
42
+ type: import('vue').PropType<T[K]>;
43
+ required: true;
44
+ };
45
+ };
@@ -0,0 +1,59 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ id: string | number;
3
+ arrowWidth?: number | undefined;
4
+ onContainerClickExpand?: boolean | undefined;
5
+ accordionOpen?: boolean | undefined;
6
+ toggleAccordion: () => void;
7
+ }>, {
8
+ accordionOpen: boolean;
9
+ arrowWidth: number;
10
+ onContainerClickExpand: boolean;
11
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ click: () => void;
13
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
14
+ id: string | number;
15
+ arrowWidth?: number | undefined;
16
+ onContainerClickExpand?: boolean | undefined;
17
+ accordionOpen?: boolean | undefined;
18
+ toggleAccordion: () => void;
19
+ }>, {
20
+ accordionOpen: boolean;
21
+ arrowWidth: number;
22
+ onContainerClickExpand: boolean;
23
+ }>>> & {
24
+ onClick?: (() => any) | undefined;
25
+ }, {
26
+ arrowWidth: number;
27
+ onContainerClickExpand: boolean;
28
+ accordionOpen: boolean;
29
+ }, {}>, {
30
+ custom_content?(_: {}): any;
31
+ custom_btn?(_: {
32
+ btnId: string;
33
+ isOpen: boolean;
34
+ toggleAccordion: () => void;
35
+ }): any;
36
+ }>;
37
+ export default _default;
38
+ type __VLS_WithDefaults<P, D> = {
39
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
+ default: D[K];
41
+ }> : P[K];
42
+ };
43
+ type __VLS_Prettify<T> = {
44
+ [K in keyof T]: T[K];
45
+ } & {};
46
+ type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
51
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
+ type __VLS_TypePropsToOption<T> = {
53
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
54
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
55
+ } : {
56
+ type: import('vue').PropType<T[K]>;
57
+ required: true;
58
+ };
59
+ };
@@ -0,0 +1,29 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ id: string | number;
3
+ accordionOpen: boolean;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
+ id: string | number;
6
+ accordionOpen: boolean;
7
+ }>>>, {}, {}>, {
8
+ custom_accordion_content?(_: {
9
+ isOpen: boolean;
10
+ }): any;
11
+ default?(_: {
12
+ isOpen: boolean;
13
+ }): any;
14
+ }>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
21
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
+ type __VLS_TypePropsToOption<T> = {
23
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
24
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
+ } : {
26
+ type: import('vue').PropType<T[K]>;
27
+ required: true;
28
+ };
29
+ };
@@ -0,0 +1,71 @@
1
+ import { AccordionItem } from "@wikicasa-dev/types";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<AccordionItem & {
3
+ arrowWidth?: number | undefined;
4
+ onContainerClickExpand?: boolean | undefined;
5
+ }>, {
6
+ active: boolean;
7
+ arrowWidth: number;
8
+ onContainerClickExpand: boolean;
9
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ click: () => void;
11
+ accordionOpened: (a: AccordionItem) => void;
12
+ accordionClosed: (a: AccordionItem) => void;
13
+ "update:accordionState": (args_0: boolean) => void;
14
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<AccordionItem & {
15
+ arrowWidth?: number | undefined;
16
+ onContainerClickExpand?: boolean | undefined;
17
+ }>, {
18
+ active: boolean;
19
+ arrowWidth: number;
20
+ onContainerClickExpand: boolean;
21
+ }>>> & {
22
+ onClick?: (() => any) | undefined;
23
+ onAccordionOpened?: ((a: AccordionItem) => any) | undefined;
24
+ onAccordionClosed?: ((a: AccordionItem) => any) | undefined;
25
+ "onUpdate:accordionState"?: ((args_0: boolean) => any) | undefined;
26
+ }, {
27
+ arrowWidth: number;
28
+ onContainerClickExpand: boolean;
29
+ active: boolean;
30
+ }, {}>, {
31
+ custom_content?(_: {}): any;
32
+ custom_btn?(_: {
33
+ btnId: string;
34
+ isOpen: boolean;
35
+ toggleAccordion: () => void;
36
+ }): any;
37
+ custom_accordion?(_: {
38
+ id: string | number;
39
+ isOpen: boolean;
40
+ toggleAccordion: () => void;
41
+ }): any;
42
+ custom_accordion_content?(_: {
43
+ isOpen: boolean;
44
+ }): any;
45
+ default?(_: {
46
+ isOpen: boolean;
47
+ }): any;
48
+ }>;
49
+ export default _default;
50
+ type __VLS_WithDefaults<P, D> = {
51
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
+ default: D[K];
53
+ }> : P[K];
54
+ };
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K];
57
+ } & {};
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
63
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
64
+ type __VLS_TypePropsToOption<T> = {
65
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
66
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
67
+ } : {
68
+ type: import('vue').PropType<T[K]>;
69
+ required: true;
70
+ };
71
+ };
@@ -0,0 +1,41 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ text?: string | undefined;
3
+ alrtClass?: string | undefined;
4
+ }>, {
5
+ text: string;
6
+ alrtClass: string;
7
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
8
+ text?: string | undefined;
9
+ alrtClass?: string | undefined;
10
+ }>, {
11
+ text: string;
12
+ alrtClass: string;
13
+ }>>>, {
14
+ text: string;
15
+ alrtClass: string;
16
+ }, {}>, {
17
+ default?(_: {}): any;
18
+ }>;
19
+ export default _default;
20
+ type __VLS_WithDefaults<P, D> = {
21
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
22
+ default: D[K];
23
+ }> : P[K];
24
+ };
25
+ type __VLS_Prettify<T> = {
26
+ [K in keyof T]: T[K];
27
+ } & {};
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
33
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
34
+ type __VLS_TypePropsToOption<T> = {
35
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
36
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
37
+ } : {
38
+ type: import('vue').PropType<T[K]>;
39
+ required: true;
40
+ };
41
+ };
@@ -0,0 +1,110 @@
1
+ import { Nullable } from "@wikicasa-dev/types";
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ modelValue: import("vue").PropType<any>;
4
+ label: {
5
+ type: import("vue").PropType<string>;
6
+ default: string;
7
+ };
8
+ border: {
9
+ type: import("vue").PropType<boolean>;
10
+ default: boolean;
11
+ };
12
+ isValid: {
13
+ type: import("vue").PropType<Nullable<boolean>>;
14
+ default: null;
15
+ };
16
+ theme: {
17
+ type: import("vue").PropType<"" | "bordered" | "all-bordered" | "all-bordered-thick">;
18
+ default: string;
19
+ };
20
+ disableCb: {
21
+ type: import("vue").PropType<boolean>;
22
+ default: boolean;
23
+ };
24
+ onInputChangeCb: {
25
+ type: import("vue").PropType<(v: string) => Promise<any[]>>;
26
+ required: true;
27
+ };
28
+ onOptionSelectedCb: {
29
+ type: import("vue").PropType<Nullable<(v: any) => void>>;
30
+ default: null;
31
+ };
32
+ manualClose: {
33
+ type: import("vue").PropType<boolean>;
34
+ default: boolean;
35
+ };
36
+ keepState: {
37
+ type: import("vue").PropType<Nullable<"closed" | "open">>;
38
+ default: null;
39
+ };
40
+ }, {
41
+ select: () => void;
42
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ "update:modelValue": (modelValue: any) => void;
44
+ click: () => void;
45
+ dropdownClosed: () => void;
46
+ changedValue: (args_0: string) => void;
47
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
48
+ modelValue: import("vue").PropType<any>;
49
+ label: {
50
+ type: import("vue").PropType<string>;
51
+ default: string;
52
+ };
53
+ border: {
54
+ type: import("vue").PropType<boolean>;
55
+ default: boolean;
56
+ };
57
+ isValid: {
58
+ type: import("vue").PropType<Nullable<boolean>>;
59
+ default: null;
60
+ };
61
+ theme: {
62
+ type: import("vue").PropType<"" | "bordered" | "all-bordered" | "all-bordered-thick">;
63
+ default: string;
64
+ };
65
+ disableCb: {
66
+ type: import("vue").PropType<boolean>;
67
+ default: boolean;
68
+ };
69
+ onInputChangeCb: {
70
+ type: import("vue").PropType<(v: string) => Promise<any[]>>;
71
+ required: true;
72
+ };
73
+ onOptionSelectedCb: {
74
+ type: import("vue").PropType<Nullable<(v: any) => void>>;
75
+ default: null;
76
+ };
77
+ manualClose: {
78
+ type: import("vue").PropType<boolean>;
79
+ default: boolean;
80
+ };
81
+ keepState: {
82
+ type: import("vue").PropType<Nullable<"closed" | "open">>;
83
+ default: null;
84
+ };
85
+ }>> & {
86
+ onClick?: (() => any) | undefined;
87
+ "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
88
+ onDropdownClosed?: (() => any) | undefined;
89
+ onChangedValue?: ((args_0: string) => any) | undefined;
90
+ }, {
91
+ label: string;
92
+ border: boolean;
93
+ isValid: Nullable<boolean>;
94
+ theme: "" | "bordered" | "all-bordered" | "all-bordered-thick";
95
+ disableCb: boolean;
96
+ onOptionSelectedCb: Nullable<(v: any) => void>;
97
+ manualClose: boolean;
98
+ keepState: Nullable<"closed" | "open">;
99
+ }, {}>, {
100
+ lefticon?(_: {}): any;
101
+ righticon?(_: {
102
+ handleClean: any;
103
+ }): any;
104
+ }>;
105
+ export default _default;
106
+ type __VLS_WithTemplateSlots<T, S> = T & {
107
+ new (): {
108
+ $slots: S;
109
+ };
110
+ };
@@ -0,0 +1,36 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
+ badgeClass: "uikit-badge-w-primary-sm" | "uikit-badge-w-warning" | "uikit-badge-w-lavender" | "uikit-badge-outline-tag" | "uikit-badge-outline-tag-listing" | "uikit-badge-w-dark-primary";
3
+ }>, {
4
+ badgeClass: string;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
+ badgeClass: "uikit-badge-w-primary-sm" | "uikit-badge-w-warning" | "uikit-badge-w-lavender" | "uikit-badge-outline-tag" | "uikit-badge-outline-tag-listing" | "uikit-badge-w-dark-primary";
7
+ }>, {
8
+ badgeClass: string;
9
+ }>>>, {
10
+ badgeClass: "uikit-badge-w-primary-sm" | "uikit-badge-w-warning" | "uikit-badge-w-lavender" | "uikit-badge-outline-tag" | "uikit-badge-outline-tag-listing" | "uikit-badge-w-dark-primary";
11
+ }, {}>, {
12
+ default?(_: {}): any;
13
+ }>;
14
+ export default _default;
15
+ type __VLS_WithDefaults<P, D> = {
16
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
17
+ default: D[K];
18
+ }> : P[K];
19
+ };
20
+ type __VLS_Prettify<T> = {
21
+ [K in keyof T]: T[K];
22
+ } & {};
23
+ type __VLS_WithTemplateSlots<T, S> = T & {
24
+ new (): {
25
+ $slots: S;
26
+ };
27
+ };
28
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
+ type __VLS_TypePropsToOption<T> = {
30
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
31
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
+ } : {
33
+ type: import('vue').PropType<T[K]>;
34
+ required: true;
35
+ };
36
+ };