vuiii 1.0.0-beta.2 → 1.0.0-beta.20

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 (104) hide show
  1. package/dist/arrow-narrow-down-dec6d60c.mjs +23 -0
  2. package/dist/arrow-narrow-left-0a7d340d.mjs +23 -0
  3. package/dist/arrow-narrow-right-45640685.mjs +23 -0
  4. package/dist/arrow-narrow-up-273c8202.mjs +23 -0
  5. package/dist/arrow-up-tray-2a72d94e.mjs +22 -0
  6. package/dist/check-1fd9d132.mjs +23 -0
  7. package/dist/chevron-down-691580cd.mjs +23 -0
  8. package/dist/chevron-left-f7d529ce.mjs +23 -0
  9. package/dist/chevron-right-3bcbe1ff.mjs +23 -0
  10. package/dist/chevron-up-65196b35.mjs +23 -0
  11. package/dist/components/Breadcrumbs.vue.d.ts +7 -7
  12. package/dist/components/Button.vue.d.ts +49 -52
  13. package/dist/components/Checkbox.vue.d.ts +57 -26
  14. package/dist/components/CheckboxGroup.vue.d.ts +28 -40
  15. package/dist/components/FormFields.vue.d.ts +21 -38
  16. package/dist/components/FormGroup.vue.d.ts +32 -30
  17. package/dist/components/Icon.vue.d.ts +11 -8
  18. package/dist/components/Input.vue.d.ts +46 -41
  19. package/dist/components/RadioGroup.vue.d.ts +56 -0
  20. package/dist/components/Select.vue.d.ts +69 -56
  21. package/dist/components/Table.vue.d.ts +74 -38
  22. package/dist/components/Textarea.vue.d.ts +18 -13
  23. package/dist/components/modal/ModalLayout.vue.d.ts +52 -22
  24. package/dist/components/modal/ModalStack.vue.d.ts +1 -27
  25. package/dist/components/snackbar/SnackbarStack.vue.d.ts +1 -19
  26. package/dist/composables/useLoadData.d.ts +29 -0
  27. package/dist/composables/useLoadPaginatedData.d.ts +16 -0
  28. package/dist/composables/useOnClickOutside.d.ts +2 -0
  29. package/dist/composables/useOnKeyPress.d.ts +1 -0
  30. package/dist/composables/useRouteQuery.d.ts +19 -0
  31. package/dist/composables/useSubmitAction.d.ts +44 -0
  32. package/dist/composables/useValidator.d.ts +7 -0
  33. package/dist/exclamation-078540fb.mjs +23 -0
  34. package/dist/icons/arrow-narrow-down.vue.d.ts +1 -1
  35. package/dist/icons/arrow-narrow-left.vue.d.ts +1 -1
  36. package/dist/icons/arrow-narrow-right.vue.d.ts +1 -1
  37. package/dist/icons/arrow-narrow-up.vue.d.ts +1 -1
  38. package/dist/icons/arrow-up-tray.vue.d.ts +2 -0
  39. package/dist/icons/check.vue.d.ts +1 -1
  40. package/dist/icons/chevron-down.vue.d.ts +2 -0
  41. package/dist/icons/chevron-left.vue.d.ts +1 -1
  42. package/dist/icons/chevron-right.vue.d.ts +1 -1
  43. package/dist/icons/chevron-up.vue.d.ts +2 -0
  44. package/dist/icons/exclamation.vue.d.ts +1 -1
  45. package/dist/icons/mail.vue.d.ts +2 -0
  46. package/dist/icons/minus.vue.d.ts +1 -1
  47. package/dist/icons/pencil.vue.d.ts +2 -0
  48. package/dist/icons/plus.vue.d.ts +1 -1
  49. package/dist/icons/search.vue.d.ts +1 -1
  50. package/dist/icons/spinner.vue.d.ts +1 -1
  51. package/dist/icons/trash.vue.d.ts +1 -1
  52. package/dist/icons/triangle-down.vue.d.ts +2 -0
  53. package/dist/icons/triangle-left.vue.d.ts +2 -0
  54. package/dist/icons/triangle-right.vue.d.ts +2 -0
  55. package/dist/icons/triangle-up.vue.d.ts +2 -0
  56. package/dist/icons/x.vue.d.ts +1 -1
  57. package/dist/index-1063c6c2.mjs +1190 -0
  58. package/dist/index.d.ts +29 -24
  59. package/dist/mail-6dac22ce.mjs +23 -0
  60. package/dist/minus-ac6ca395.mjs +23 -0
  61. package/dist/modal.d.ts +276 -23
  62. package/dist/pencil-c36b340c.mjs +23 -0
  63. package/dist/plus-3674506e.mjs +23 -0
  64. package/dist/search-7d284b60.mjs +23 -0
  65. package/dist/snackbar.d.ts +8 -8
  66. package/dist/spinner-710428dc.mjs +24 -0
  67. package/dist/stories/Button.stories.d.ts +567 -0
  68. package/dist/stories/Checkbox.stories.d.ts +356 -0
  69. package/dist/stories/CheckboxGroup.stories.d.ts +94 -0
  70. package/dist/stories/FormFields.stories.d.ts +71 -0
  71. package/dist/stories/Icon.stories.d.ts +38 -0
  72. package/dist/stories/Input.stories.d.ts +579 -0
  73. package/dist/stories/Modal.stories.d.ts +6 -0
  74. package/dist/stories/Radio.stories.d.ts +346 -0
  75. package/dist/stories/Select.stories.d.ts +288 -0
  76. package/dist/stories/Snackbar.stories.d.ts +6 -0
  77. package/dist/stories/icons.d.ts +1 -0
  78. package/dist/stories/options.d.ts +11 -0
  79. package/dist/style.css +1 -1
  80. package/dist/trash-6cc98195.mjs +23 -0
  81. package/dist/triangle-down-9f798fda.mjs +20 -0
  82. package/dist/triangle-left-d1c4e959.mjs +20 -0
  83. package/dist/triangle-right-06c9418f.mjs +20 -0
  84. package/dist/triangle-up-bf1cdbee.mjs +20 -0
  85. package/dist/utils/generateId.d.ts +1 -0
  86. package/dist/utils/iconsResolver.d.ts +5 -0
  87. package/dist/utils/normalizeOptions.d.ts +21 -8
  88. package/dist/utils/transformInputAttrs.d.ts +3 -3
  89. package/dist/utils/useAttrsWithoutClass.d.ts +3 -0
  90. package/dist/validations/validator.d.ts +2 -0
  91. package/dist/vuiii.mjs +34 -0
  92. package/dist/vuiii.umd.js +1 -1
  93. package/dist/x-808bde6f.mjs +24 -0
  94. package/package.json +38 -17
  95. package/dist/components/Form.vue.d.ts +0 -87
  96. package/dist/components/Radio.vue.d.ts +0 -64
  97. package/dist/components/modal/ModalLayoutDialog.vue.d.ts +0 -36
  98. package/dist/hooks/useLoadData.d.ts +0 -21
  99. package/dist/hooks/useSubmitAction.d.ts +0 -38
  100. package/dist/icons/check-circle.vue.d.ts +0 -2
  101. package/dist/icons/exclamation-circle.vue.d.ts +0 -2
  102. package/dist/types.d.ts +0 -4
  103. package/dist/utils/resolveGlobImport.d.ts +0 -3
  104. package/dist/vuiii.es.js +0 -1881
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M16 17l-4 4m0 0l-4-4m4 4V3"
14
+ }, null, -1), l = [
15
+ c
16
+ ];
17
+ function _(i, a) {
18
+ return o(), e("svg", s, l);
19
+ }
20
+ const w = /* @__PURE__ */ r(n, [["render", _]]);
21
+ export {
22
+ w as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M7 16l-4-4m0 0l4-4m-4 4h18"
14
+ }, null, -1), l = [
15
+ c
16
+ ];
17
+ function _(i, a) {
18
+ return o(), e("svg", s, l);
19
+ }
20
+ const p = /* @__PURE__ */ r(n, [["render", _]]);
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M17 8l4 4m0 0l-4 4m4-4H3"
14
+ }, null, -1), i = [
15
+ c
16
+ ];
17
+ function l(_, a) {
18
+ return o(), e("svg", s, i);
19
+ }
20
+ const f = /* @__PURE__ */ r(n, [["render", l]]);
21
+ export {
22
+ f as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M8 7l4-4m0 0l4 4m-4-4v18"
14
+ }, null, -1), l = [
15
+ c
16
+ ];
17
+ function _(i, a) {
18
+ return o(), e("svg", s, l);
19
+ }
20
+ const f = /* @__PURE__ */ r(n, [["render", _]]);
21
+ export {
22
+ f as default
23
+ };
@@ -0,0 +1,22 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ fill: "none",
6
+ stroke: "currentColor",
7
+ viewBox: "0 0 24 24",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ }, c = /* @__PURE__ */ t("path", {
10
+ "stroke-linecap": "round",
11
+ "stroke-linejoin": "round",
12
+ d: "M3 16.5v2.25A2.25 2.25 0 005.25 21h13.5A2.25 2.25 0 0021 18.75V16.5m-13.5-9L12 3m0 0l4.5 4.5M12 3v13.5"
13
+ }, null, -1), _ = [
14
+ c
15
+ ];
16
+ function l(i, a) {
17
+ return o(), e("svg", s, _);
18
+ }
19
+ const f = /* @__PURE__ */ r(n, [["render", l]]);
20
+ export {
21
+ f as default
22
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, c = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, s = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M5 13l4 4L19 7"
14
+ }, null, -1), _ = [
15
+ s
16
+ ];
17
+ function i(l, d) {
18
+ return e(), o("svg", c, _);
19
+ }
20
+ const f = /* @__PURE__ */ r(n, [["render", i]]);
21
+ export {
22
+ f as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as n } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const r = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
14
+ }, null, -1), _ = [
15
+ c
16
+ ];
17
+ function i(l, d) {
18
+ return o(), e("svg", s, _);
19
+ }
20
+ const f = /* @__PURE__ */ n(r, [["render", i]]);
21
+ export {
22
+ f as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M15 19l-7-7 7-7"
14
+ }, null, -1), _ = [
15
+ c
16
+ ];
17
+ function i(l, d) {
18
+ return e(), o("svg", s, _);
19
+ }
20
+ const p = /* @__PURE__ */ r(n, [["render", i]]);
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M9 5l7 7-7 7"
14
+ }, null, -1), i = [
15
+ c
16
+ ];
17
+ function _(l, d) {
18
+ return o(), e("svg", s, i);
19
+ }
20
+ const p = /* @__PURE__ */ r(n, [["render", _]]);
21
+ export {
22
+ p as default
23
+ };
@@ -0,0 +1,23 @@
1
+ import { openBlock as o, createElementBlock as e, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-1063c6c2.mjs";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ xmlns: "http://www.w3.org/2000/svg",
6
+ fill: "none",
7
+ viewBox: "0 0 24 24",
8
+ stroke: "currentColor",
9
+ "stroke-width": "2"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ "stroke-linecap": "round",
12
+ "stroke-linejoin": "round",
13
+ d: "M4.5 15.75l7.5-7.5 7.5 7.5"
14
+ }, null, -1), _ = [
15
+ c
16
+ ];
17
+ function i(l, d) {
18
+ return o(), e("svg", s, _);
19
+ }
20
+ const f = /* @__PURE__ */ r(n, [["render", i]]);
21
+ export {
22
+ f as default
23
+ };
@@ -1,17 +1,17 @@
1
- import { PropType } from 'vue';
2
- import { RouteLocationRaw } from 'vue-router';
3
- export declare type BreadcrumbItems = Record<string, RouteLocationRaw>;
1
+ import type { BreadcrumbItems } from '@/types';
4
2
  declare const _default: import("vue").DefineComponent<{
5
3
  breadcrumbs: {
6
- type: PropType<BreadcrumbItems>;
4
+ type: import("vue").PropType<BreadcrumbItems>;
5
+ required: true;
7
6
  default: () => {};
8
7
  };
9
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
9
  breadcrumbs: {
11
- type: PropType<BreadcrumbItems>;
10
+ type: import("vue").PropType<BreadcrumbItems>;
11
+ required: true;
12
12
  default: () => {};
13
13
  };
14
14
  }>>, {
15
15
  breadcrumbs: BreadcrumbItems;
16
- }>;
16
+ }, {}>;
17
17
  export default _default;
@@ -1,72 +1,69 @@
1
- import '../assets/css/button.css';
2
- import { PropType } from 'vue';
3
- import { ButtonSize, ButtonVariant } from '../types';
4
- declare const _default: import("vue").DefineComponent<{
1
+ import '@/assets/css/button.css';
2
+ import type { ButtonVariant, InputSize } from '@/types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
5
4
  size: {
6
- type: PropType<"small" | "normal">;
7
- default: string;
8
- validator: (value: ButtonSize) => boolean;
5
+ type: import("vue").PropType<InputSize>;
9
6
  };
10
7
  variant: {
11
- type: PropType<"default" | "primary" | "secondary" | "danger">;
12
- default: string;
13
- validator: (value: ButtonVariant) => boolean;
8
+ type: import("vue").PropType<ButtonVariant>;
14
9
  };
15
10
  prefixIcon: {
16
- type: StringConstructor;
17
- default: string;
11
+ type: import("vue").PropType<string>;
18
12
  };
19
13
  suffixIcon: {
20
- type: StringConstructor;
21
- default: string;
14
+ type: import("vue").PropType<string>;
22
15
  };
23
16
  label: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- active: BooleanConstructor;
28
- loading: BooleanConstructor;
29
- block: BooleanConstructor;
30
- disabled: BooleanConstructor;
31
- }, unknown, unknown, {
32
- component(): string;
33
- classModifiers(): string[];
34
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
+ type: import("vue").PropType<string>;
18
+ };
19
+ block: {
20
+ type: import("vue").PropType<boolean>;
21
+ };
22
+ loading: {
23
+ type: import("vue").PropType<boolean>;
24
+ };
25
+ active: {
26
+ type: import("vue").PropType<boolean>;
27
+ };
28
+ outlined: {
29
+ type: import("vue").PropType<boolean>;
30
+ };
31
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
32
  size: {
36
- type: PropType<"small" | "normal">;
37
- default: string;
38
- validator: (value: ButtonSize) => boolean;
33
+ type: import("vue").PropType<InputSize>;
39
34
  };
40
35
  variant: {
41
- type: PropType<"default" | "primary" | "secondary" | "danger">;
42
- default: string;
43
- validator: (value: ButtonVariant) => boolean;
36
+ type: import("vue").PropType<ButtonVariant>;
44
37
  };
45
38
  prefixIcon: {
46
- type: StringConstructor;
47
- default: string;
39
+ type: import("vue").PropType<string>;
48
40
  };
49
41
  suffixIcon: {
50
- type: StringConstructor;
51
- default: string;
42
+ type: import("vue").PropType<string>;
52
43
  };
53
44
  label: {
54
- type: StringConstructor;
55
- default: string;
56
- };
57
- active: BooleanConstructor;
58
- loading: BooleanConstructor;
59
- block: BooleanConstructor;
60
- disabled: BooleanConstructor;
61
- }>>, {
62
- label: string;
63
- size: "small" | "normal";
64
- variant: "default" | "primary" | "secondary" | "danger";
65
- prefixIcon: string;
66
- suffixIcon: string;
67
- active: boolean;
68
- loading: boolean;
69
- block: boolean;
70
- disabled: boolean;
45
+ type: import("vue").PropType<string>;
46
+ };
47
+ block: {
48
+ type: import("vue").PropType<boolean>;
49
+ };
50
+ loading: {
51
+ type: import("vue").PropType<boolean>;
52
+ };
53
+ active: {
54
+ type: import("vue").PropType<boolean>;
55
+ };
56
+ outlined: {
57
+ type: import("vue").PropType<boolean>;
58
+ };
59
+ }>>, {}, {}>, {
60
+ prefix?(_: {}): any;
61
+ default?(_: {}): any;
62
+ suffix?(_: {}): any;
71
63
  }>;
72
64
  export default _default;
65
+ type __VLS_WithTemplateSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
@@ -1,28 +1,59 @@
1
- import '../assets/css/input.css';
2
- declare const _default: import("vue").DefineComponent<{
3
- modelValue: BooleanConstructor;
4
- required: BooleanConstructor;
5
- switch: BooleanConstructor;
6
- caption: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- }, unknown, unknown, {}, {}, import("vue").DefineComponent<{}, {}, {}, {
11
- normalizedAttrs(): any;
12
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
13
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
14
- }, {}>, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
- modelValue: BooleanConstructor;
16
- required: BooleanConstructor;
17
- switch: BooleanConstructor;
18
- caption: {
19
- type: StringConstructor;
20
- default: string;
21
- };
22
- }>>, {
23
- required: boolean;
24
- caption: string;
25
- switch: boolean;
26
- modelValue: boolean;
1
+ import '@/assets/css/input.css';
2
+ import type { InputSize } from '@/types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ modelValue: {
5
+ type: import("vue").PropType<boolean>;
6
+ };
7
+ required: {
8
+ type: import("vue").PropType<boolean>;
9
+ };
10
+ disabled: {
11
+ type: import("vue").PropType<boolean>;
12
+ };
13
+ switch: {
14
+ type: import("vue").PropType<boolean>;
15
+ };
16
+ label: {
17
+ type: import("vue").PropType<string>;
18
+ };
19
+ description: {
20
+ type: import("vue").PropType<string>;
21
+ };
22
+ size: {
23
+ type: import("vue").PropType<InputSize>;
24
+ };
25
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
+ "update:model-value": (value: boolean) => void;
27
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ modelValue: {
29
+ type: import("vue").PropType<boolean>;
30
+ };
31
+ required: {
32
+ type: import("vue").PropType<boolean>;
33
+ };
34
+ disabled: {
35
+ type: import("vue").PropType<boolean>;
36
+ };
37
+ switch: {
38
+ type: import("vue").PropType<boolean>;
39
+ };
40
+ label: {
41
+ type: import("vue").PropType<string>;
42
+ };
43
+ description: {
44
+ type: import("vue").PropType<string>;
45
+ };
46
+ size: {
47
+ type: import("vue").PropType<InputSize>;
48
+ };
49
+ }>> & {
50
+ "onUpdate:model-value"?: ((value: boolean) => any) | undefined;
51
+ }, {}, {}>, {
52
+ default?(_: {}): any;
27
53
  }>;
28
54
  export default _default;
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
@@ -1,59 +1,47 @@
1
- import { PropType } from 'vue';
2
- import { Extractor, Option } from '../utils/normalizeOptions';
3
- declare type CheckedValues = Record<Option['value'], boolean>;
1
+ import type { Extractor } from '@/types';
4
2
  declare const _default: import("vue").DefineComponent<{
5
3
  modelValue: {
6
- type: PropType<(string | number)[]>;
7
- default: () => never[];
4
+ type: import("vue").PropType<(string | number)[]>;
8
5
  };
9
6
  options: {
10
- type: (ObjectConstructor | ArrayConstructor)[];
7
+ type: import("vue").PropType<any[] | Record<string, any>>;
11
8
  required: true;
12
9
  };
13
- optionLabelKey: {
14
- type: PropType<Extractor>;
15
- default: undefined;
10
+ optionLabel: {
11
+ type: import("vue").PropType<Extractor>;
16
12
  };
17
- optionValueKey: {
18
- type: PropType<Extractor>;
19
- default: undefined;
13
+ optionValue: {
14
+ type: import("vue").PropType<Extractor>;
20
15
  };
21
- optionDisabledKey: {
22
- type: PropType<Extractor>;
23
- default: undefined;
16
+ optionDisabled: {
17
+ type: import("vue").PropType<Extractor>;
24
18
  };
25
- }, unknown, unknown, {
26
- normalizedOptions(): Option[];
27
- checkedValues(): CheckedValues;
28
- }, {
29
- toggleCheckedValue(value: Option['value']): void;
30
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ optionDescription: {
20
+ type: import("vue").PropType<Extractor>;
21
+ };
22
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ "update:model-value": (value: (string | number)[]) => void;
24
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
25
  modelValue: {
32
- type: PropType<(string | number)[]>;
33
- default: () => never[];
26
+ type: import("vue").PropType<(string | number)[]>;
34
27
  };
35
28
  options: {
36
- type: (ObjectConstructor | ArrayConstructor)[];
29
+ type: import("vue").PropType<any[] | Record<string, any>>;
37
30
  required: true;
38
31
  };
39
- optionLabelKey: {
40
- type: PropType<Extractor>;
41
- default: undefined;
32
+ optionLabel: {
33
+ type: import("vue").PropType<Extractor>;
34
+ };
35
+ optionValue: {
36
+ type: import("vue").PropType<Extractor>;
42
37
  };
43
- optionValueKey: {
44
- type: PropType<Extractor>;
45
- default: undefined;
38
+ optionDisabled: {
39
+ type: import("vue").PropType<Extractor>;
46
40
  };
47
- optionDisabledKey: {
48
- type: PropType<Extractor>;
49
- default: undefined;
41
+ optionDescription: {
42
+ type: import("vue").PropType<Extractor>;
50
43
  };
51
44
  }>> & {
52
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
- }, {
54
- modelValue: (string | number)[];
55
- optionLabelKey: Extractor;
56
- optionValueKey: Extractor;
57
- optionDisabledKey: Extractor;
58
- }>;
45
+ "onUpdate:model-value"?: ((value: (string | number)[]) => any) | undefined;
46
+ }, {}, {}>;
59
47
  export default _default;
@@ -1,52 +1,35 @@
1
- import { AsyncComponentLoader, Component, PropType } from 'vue';
2
- export declare type FormFieldValue = {
3
- getter: (modelValue: any) => unknown;
4
- setter: (value: unknown, modelValue: any) => void;
5
- };
6
- export declare type FormField = {
7
- label?: string;
8
- description?: string;
9
- hint?: string;
10
- required?: boolean;
11
- component: string | Component | AsyncComponentLoader;
12
- props?: Record<string, unknown>;
13
- value?: FormFieldValue;
14
- };
15
- export declare type FormFieldsStructure<T extends any = any> = Record<keyof T | string, FormField>;
1
+ import type { FormFieldsStructure } from '@/types';
16
2
  declare const _default: import("vue").DefineComponent<{
17
- fields: {
18
- type: PropType<FormFieldsStructure<any>>;
19
- default: () => {};
20
- };
21
3
  modelValue: {
22
- type: PropType<any>;
23
- default: () => {};
24
- };
25
- errors: {
26
- type: PropType<Record<string, string | boolean | string[]>>;
27
- default: () => {};
4
+ type: import("vue").PropType<any>;
5
+ required: true;
28
6
  };
29
- }, unknown, unknown, {}, {
30
- getFieldValue(name: string): unknown;
31
- setFieldValue(name: string, value: unknown): void;
32
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
7
  fields: {
34
- type: PropType<FormFieldsStructure<any>>;
8
+ type: import("vue").PropType<FormFieldsStructure<any>>;
9
+ required: true;
10
+ };
11
+ errors: {
12
+ type: import("vue").PropType<Record<string, any>>;
35
13
  default: () => {};
36
14
  };
15
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ "update:model-value": (value: any) => void;
17
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
37
18
  modelValue: {
38
- type: PropType<any>;
39
- default: () => {};
19
+ type: import("vue").PropType<any>;
20
+ required: true;
21
+ };
22
+ fields: {
23
+ type: import("vue").PropType<FormFieldsStructure<any>>;
24
+ required: true;
40
25
  };
41
26
  errors: {
42
- type: PropType<Record<string, string | boolean | string[]>>;
27
+ type: import("vue").PropType<Record<string, any>>;
43
28
  default: () => {};
44
29
  };
45
30
  }>> & {
46
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ "onUpdate:model-value"?: ((value: any) => any) | undefined;
47
32
  }, {
48
- modelValue: any;
49
- fields: FormFieldsStructure<any>;
50
- errors: Record<string, string | boolean | string[]>;
51
- }>;
33
+ errors: Record<string, any>;
34
+ }, {}>;
52
35
  export default _default;