vuiii 1.0.0-beta.7 → 1.0.0-beta.70

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 (119) hide show
  1. package/README.md +11 -10
  2. package/dist/arrow-narrow-down-ki8P0y5z.js +23 -0
  3. package/dist/arrow-narrow-left-Wgy0qoPB.js +23 -0
  4. package/dist/arrow-narrow-right-5V1guLFO.js +23 -0
  5. package/dist/arrow-narrow-up-Q1iPBhGB.js +23 -0
  6. package/dist/arrow-up-tray-mirG-3ug.js +22 -0
  7. package/dist/caret-sort-BY6i3v7u.js +22 -0
  8. package/dist/check-wmkB-ThF.js +23 -0
  9. package/dist/chevron-down-nuhEYGeY.js +23 -0
  10. package/dist/chevron-left-5gfMekdI.js +23 -0
  11. package/dist/chevron-right-biTtM4FJ.js +23 -0
  12. package/dist/chevron-up-iqhIysA-.js +23 -0
  13. package/dist/components/Breadcrumbs.vue.d.ts +17 -68
  14. package/dist/components/Button.vue.d.ts +50 -89
  15. package/dist/components/ButtonGroup.vue.d.ts +9 -0
  16. package/dist/components/Checkbox.vue.d.ts +66 -21
  17. package/dist/components/CheckboxGroup.vue.d.ts +61 -46
  18. package/dist/components/Dropdown.vue.d.ts +126 -0
  19. package/dist/components/DropdownMenu.vue.d.ts +172 -0
  20. package/dist/components/FormFields.vue.d.ts +75 -50
  21. package/dist/components/FormGroup.vue.d.ts +26 -73
  22. package/dist/components/Icon.vue.d.ts +8 -52
  23. package/dist/components/IconButton.vue.d.ts +20 -0
  24. package/dist/components/Input.vue.d.ts +66 -107
  25. package/dist/components/RadioButtonGroup.vue.d.ts +63 -0
  26. package/dist/components/RadioGroup.vue.d.ts +94 -0
  27. package/dist/components/Select.vue.d.ts +104 -135
  28. package/dist/components/Table.vue.d.ts +212 -70
  29. package/dist/components/Textarea.vue.d.ts +37 -77
  30. package/dist/components/Typography.vue.d.ts +24 -0
  31. package/dist/components/dialogStack/DialogLayout.vue.d.ts +64 -0
  32. package/dist/components/dialogStack/DialogStack.vue.d.ts +2 -0
  33. package/dist/components/snackbar/SnackbarStack.vue.d.ts +1 -19
  34. package/dist/components/transitions/FadeTransition.vue.d.ts +36 -0
  35. package/dist/composables/useAttrsWithoutClass.d.ts +3 -0
  36. package/dist/composables/useCursor.d.ts +11 -0
  37. package/dist/composables/useFilteredProps.d.ts +3 -0
  38. package/dist/composables/useLoadData.d.ts +38 -0
  39. package/dist/composables/useLoadPaginatedData.d.ts +16 -0
  40. package/dist/composables/useOnClickOutside.d.ts +2 -0
  41. package/dist/composables/useOnFocusOutside.d.ts +2 -0
  42. package/dist/composables/useOnKeyPress.d.ts +1 -0
  43. package/dist/composables/usePopper.d.ts +5 -0
  44. package/dist/composables/useRouteQuery.d.ts +20 -0
  45. package/dist/composables/useSubmitAction.d.ts +46 -0
  46. package/dist/composables/useValidation.d.ts +10 -0
  47. package/dist/dialogStack.d.ts +313 -0
  48. package/dist/exclamation-6Nez0eHx.js +23 -0
  49. package/dist/icons/arrow-narrow-down.vue.d.ts +1 -1
  50. package/dist/icons/arrow-narrow-left.vue.d.ts +1 -1
  51. package/dist/icons/arrow-narrow-right.vue.d.ts +1 -1
  52. package/dist/icons/arrow-narrow-up.vue.d.ts +1 -1
  53. package/dist/icons/arrow-up-tray.vue.d.ts +2 -0
  54. package/dist/icons/caret-sort.vue.d.ts +2 -0
  55. package/dist/icons/check.vue.d.ts +1 -1
  56. package/dist/icons/chevron-down.vue.d.ts +2 -0
  57. package/dist/icons/chevron-left.vue.d.ts +1 -1
  58. package/dist/icons/chevron-right.vue.d.ts +1 -1
  59. package/dist/icons/chevron-up.vue.d.ts +2 -0
  60. package/dist/icons/exclamation.vue.d.ts +1 -1
  61. package/dist/icons/mail.vue.d.ts +2 -0
  62. package/dist/icons/minus.vue.d.ts +1 -1
  63. package/dist/icons/pencil.vue.d.ts +2 -0
  64. package/dist/icons/plus.vue.d.ts +1 -1
  65. package/dist/icons/search.vue.d.ts +1 -1
  66. package/dist/icons/spinner.vue.d.ts +1 -1
  67. package/dist/icons/trash.vue.d.ts +1 -1
  68. package/dist/icons/triangle-down.vue.d.ts +2 -0
  69. package/dist/icons/triangle-left.vue.d.ts +2 -0
  70. package/dist/icons/triangle-right.vue.d.ts +2 -0
  71. package/dist/icons/triangle-up.vue.d.ts +2 -0
  72. package/dist/icons/x.vue.d.ts +1 -1
  73. package/dist/index-zdldEVCf.js +2501 -0
  74. package/dist/index.d.ts +26 -13
  75. package/dist/mail-esQOWGuL.js +23 -0
  76. package/dist/minus-19kTle-x.js +23 -0
  77. package/dist/pencil-zKuX6DzM.js +23 -0
  78. package/dist/plus-M5zC0dfm.js +23 -0
  79. package/dist/search-Xz0TK11F.js +23 -0
  80. package/dist/snackbar.d.ts +8 -9
  81. package/dist/spinner-daPsAniJ.js +24 -0
  82. package/dist/stories/assets/iconSizes.d.ts +2 -0
  83. package/dist/stories/assets/icons.d.ts +1 -0
  84. package/dist/stories/assets/inputSizes.d.ts +2 -0
  85. package/dist/stories/assets/options.d.ts +12 -0
  86. package/dist/stories/assets/tableItems.d.ts +8 -0
  87. package/dist/stories/helpers/components/DumpValue.vue.d.ts +17 -0
  88. package/dist/style.css +1 -1
  89. package/dist/trash-h7ogIefW.js +23 -0
  90. package/dist/triangle-down--lYIaNoq.js +20 -0
  91. package/dist/triangle-left-7zGTY-CH.js +20 -0
  92. package/dist/triangle-right-Scyivk0x.js +20 -0
  93. package/dist/triangle-up-fiVBa8Yl.js +20 -0
  94. package/dist/types.d.ts +85 -15
  95. package/dist/utils/createTypeParser.d.ts +2 -0
  96. package/dist/utils/iconsResolver.d.ts +3 -3
  97. package/dist/utils/normalizeOptions.d.ts +21 -3
  98. package/dist/utils/transformInputAttrs.d.ts +3 -3
  99. package/dist/vuiii.js +42 -0
  100. package/dist/x-fnwtwzH6.js +24 -0
  101. package/package.json +52 -37
  102. package/dist/components/Form.vue.d.ts +0 -87
  103. package/dist/components/Radio.vue.d.ts +0 -94
  104. package/dist/components/modal/ModalLayout.vue.d.ts +0 -39
  105. package/dist/components/modal/ModalLayoutDialog.vue.d.ts +0 -36
  106. package/dist/components/modal/ModalStack.vue.d.ts +0 -28
  107. package/dist/hooks/useLoadData.d.ts +0 -21
  108. package/dist/hooks/useOnClickOutside.d.ts +0 -2
  109. package/dist/hooks/useOnKeyPress.d.ts +0 -1
  110. package/dist/hooks/useRouteQuery.d.ts +0 -17
  111. package/dist/hooks/useSubmitAction.d.ts +0 -33
  112. package/dist/icons/check-circle.vue.d.ts +0 -2
  113. package/dist/icons/exclamation-circle.vue.d.ts +0 -2
  114. package/dist/modal.d.ts +0 -69
  115. package/dist/stories/Button.stories.d.ts +0 -449
  116. package/dist/stories/Icon.stories.d.ts +0 -128
  117. package/dist/utils/resolveGlobImport.d.ts +0 -3
  118. package/dist/vuiii.mjs +0 -1550
  119. package/dist/vuiii.umd.js +0 -1
package/dist/types.d.ts CHANGED
@@ -1,31 +1,101 @@
1
- import { RouteLocationRaw } from 'vue-router';
2
- export declare type InputSize = 'small' | 'normal' | 'large' | 'xlarge';
3
- export declare type ButtonSize = InputSize;
4
- export declare type ButtonVariant = 'default' | 'primary' | 'secondary' | 'danger';
5
- export declare type ColumnOptions<T = any> = {
1
+ import type { AsyncComponentLoader, Component } from 'vue';
2
+ import type { RouteLocationRaw } from 'vue-router';
3
+ export type ObjectKeyOrAnyString<T> = (keyof T & string) | (string & {});
4
+ export type MaybePromise<T> = T | Promise<T>;
5
+ export type ConstOrAnyString<T extends string> = T | (string & {});
6
+ export type InputSize = 'small' | 'normal' | 'large';
7
+ export type IconSize = InputSize;
8
+ export type ButtonVariant = 'default' | 'primary' | 'secondary' | 'danger';
9
+ export type DialogLayoutButton = {
10
+ variant?: ButtonVariant;
11
+ label: string;
12
+ icon?: string;
13
+ value?: any;
14
+ disabled?: boolean;
15
+ loading?: boolean;
16
+ };
17
+ export type TableColumn<T = any> = {
18
+ name: ObjectKeyOrAnyString<T>;
6
19
  label?: string;
7
20
  align?: 'left' | 'right' | 'center';
8
21
  width?: string;
9
22
  value?: (item: T) => unknown;
10
- format?: (...params: any[]) => unknown;
23
+ formatter?: (value: any) => unknown;
11
24
  href?: (item: T) => RouteLocationRaw;
25
+ target?: ConstOrAnyString<'_blank'>;
26
+ cellClass?: string | ((cell: {
27
+ item: T;
28
+ value: any;
29
+ }) => string);
30
+ sortable?: boolean;
31
+ sorter?: (a: any, b: any) => number;
12
32
  };
13
- export declare type TableColumns<T = any> = Record<keyof T | string, string | ColumnOptions<T>>;
14
- export declare type Extractor = string | number | ((item: any) => string | number);
15
- export declare type Option<T = any> = {
33
+ export type Extractor = string | number | ((item: any) => string | number);
34
+ export type Option<T = any> = {
16
35
  value: string | number;
17
36
  label: string;
18
37
  disabled?: boolean;
19
38
  description?: string;
39
+ icon?: string;
20
40
  data: T;
21
41
  index?: number;
42
+ isSelected?: boolean;
22
43
  };
23
- export declare type Tabs = Record<string, string>;
24
- export declare type BreadcrumbItems = Record<string, RouteLocationRaw>;
25
- export declare type ValidationErrors<T = any> = {
26
- [key in keyof T]?: any;
44
+ export type OptionGroup<T = any> = {
45
+ label: string;
46
+ options: Option<T>[];
47
+ };
48
+ export type ValueParser<SerializedValueType = any, RawValueType = any> = {
49
+ parse: (serializedValue: SerializedValueType) => RawValueType;
50
+ stringify: (rawValue: RawValueType) => SerializedValueType;
51
+ };
52
+ export type Tabs = Record<string, string>;
53
+ export type BreadcrumbItems = {
54
+ label: string;
55
+ link: string | RouteLocationRaw;
56
+ }[];
57
+ export type FormFieldValue = {
58
+ getter: (modelValue: any) => unknown;
59
+ setter: (value: unknown, modelValue: any) => void;
27
60
  };
28
- export declare type ValidationResults<T = any> = {
61
+ export type FormField<Data extends {} = any> = {
62
+ name: ObjectKeyOrAnyString<Data>;
63
+ label?: string;
64
+ description?: string;
65
+ hint?: string;
66
+ required?: boolean | ((value: any) => boolean);
67
+ disabled?: boolean | ((value: any) => boolean);
68
+ component: string | Component | AsyncComponentLoader;
69
+ props?: Record<string, unknown>;
70
+ value?: FormFieldValue;
71
+ };
72
+ export type Pagination = {
73
+ currentPage: number;
74
+ hasNextPage?: boolean;
75
+ hasPreviousPage?: boolean;
76
+ totalItems: number;
77
+ itemsPerPage: number;
78
+ totalPages: number;
79
+ };
80
+ export type PaginatedData<Item = unknown> = {
81
+ items: Item[];
82
+ pagination: Pagination;
83
+ };
84
+ export interface PaginatedDataSource<Item> {
85
+ (params: {
86
+ page: number;
87
+ itemsPerPage: number;
88
+ }): Promise<PaginatedData<Item>>;
89
+ }
90
+ export type ValidationResults<Rules extends {} = any> = {
29
91
  isValid: boolean;
30
- errors: ValidationErrors<T>;
92
+ isInvalid: boolean;
93
+ errorMessages: Partial<Record<keyof Rules, string>>;
94
+ validatedFields: Record<keyof Rules, ValidationFieldResults>;
95
+ };
96
+ export type ValidationFieldResults = {
97
+ isValid?: boolean;
98
+ isInvalid?: boolean;
99
+ errorMessage: string;
100
+ validators?: any[];
31
101
  };
@@ -0,0 +1,2 @@
1
+ import { ValueParser } from '@/types';
2
+ export declare function createTypeParser(type?: 'string' | 'number' | 'boolean' | 'date'): ValueParser;
@@ -1,5 +1,5 @@
1
- import { Component } from 'vue';
2
- export declare type IconComponent = string | Component | undefined;
3
- export declare type IconResolver = (name: string) => IconComponent;
1
+ import { type Component } from 'vue';
2
+ export type IconComponent = string | Component | undefined;
3
+ export type IconResolver = (name: string) => IconComponent;
4
4
  export declare function registerCustomIconResolver(resolver: IconResolver): void;
5
5
  export declare function resolveIconComponent(name: string): IconComponent;
@@ -1,11 +1,14 @@
1
- import { Extractor, Option } from '../types';
1
+ import type { Extractor, Option, OptionGroup } from '../types';
2
+ type Stringifier = (value: any) => string;
2
3
  export declare function retrieveValue(item: any, extractor?: Extractor): any;
3
4
  export declare function normalizeOption(item: any, extractors?: {
4
5
  value?: Extractor;
5
6
  label?: Extractor;
6
7
  disabled?: Extractor;
7
8
  description?: Extractor;
8
- }): Option;
9
+ icon?: Extractor;
10
+ stringifyValue?: Stringifier;
11
+ }, selectedValue?: any): Option;
9
12
  export declare function normalizeOptions(items: any[] | {
10
13
  [value: string | number]: string;
11
14
  }, extractors?: {
@@ -13,4 +16,19 @@ export declare function normalizeOptions(items: any[] | {
13
16
  label?: Extractor;
14
17
  disabled?: Extractor;
15
18
  description?: Extractor;
16
- }): Option[];
19
+ icon?: Extractor;
20
+ stringifyValue?: Stringifier;
21
+ }, selectedValue?: any): Option[];
22
+ export declare function normalizeGroups(items: any[] | {
23
+ [label: string]: any[];
24
+ }, extractors?: {
25
+ groupLabel?: Extractor;
26
+ groupOptions?: Extractor;
27
+ value?: Extractor;
28
+ label?: Extractor;
29
+ disabled?: Extractor;
30
+ description?: Extractor;
31
+ icon?: Extractor;
32
+ stringifyValue?: Stringifier;
33
+ }, selectedValue?: any): OptionGroup[];
34
+ export {};
@@ -1,5 +1,5 @@
1
1
  export declare const transformInputAttrs: import("vue").DefineComponent<{}, {}, {}, {
2
2
  normalizedAttrs(): any;
3
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
5
- }, {}>;
3
+ }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
4
+ "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
5
+ }, {}, {}>;
package/dist/vuiii.js ADDED
@@ -0,0 +1,42 @@
1
+ import { B as u, a as t, b as r, C as i, c as n, D as c, d, e as l, f as p, n as m, F as k, g as D, I as b, h as g, i as S, j as C, R as F, S as B, k as G, l as O, m as R, V as x, G as y, E as I, y as h, u as w, z as L, o as P, p as T, q as V, r as f, s as v, t as z, v as A, A as E, w as Q, x as j } from "./index-zdldEVCf.js";
2
+ import "vue";
3
+ import "vue-router";
4
+ export {
5
+ u as Breadcrumbs,
6
+ t as Button,
7
+ r as ButtonGroup,
8
+ i as Checkbox,
9
+ n as CheckboxGroup,
10
+ c as DialogLayout,
11
+ d as DialogStack,
12
+ l as Dropdown,
13
+ p as DropdownMenu,
14
+ m as FadeTransition,
15
+ k as FormFields,
16
+ D as FormGroup,
17
+ b as Icon,
18
+ g as IconButton,
19
+ S as Input,
20
+ C as RadioButtonGroup,
21
+ F as RadioGroup,
22
+ B as Select,
23
+ G as SnackbarStack,
24
+ O as Table,
25
+ R as Textarea,
26
+ x as ValidationError,
27
+ y as normalizeOptions,
28
+ I as registerCustomIconResolver,
29
+ h as useCloseDialog,
30
+ w as useCursor,
31
+ L as useDialogStack,
32
+ P as useLoadData,
33
+ T as useLoadPaginatedData,
34
+ V as useOnClickOutside,
35
+ f as useOnFocusOutside,
36
+ v as useOnKeyPress,
37
+ z as usePageFromRouteQuery,
38
+ A as useRouteQuery,
39
+ E as useSnackbar,
40
+ Q as useSubmitAction,
41
+ j as useValidation
42
+ };
@@ -0,0 +1,24 @@
1
+ import { openBlock as e, createElementBlock as o, createElementVNode as t } from "vue";
2
+ import { _ as r } from "./index-zdldEVCf.js";
3
+ import "vue-router";
4
+ const n = {}, s = {
5
+ "aria-hidden": "true",
6
+ fill: "none",
7
+ stroke: "currentColor",
8
+ viewBox: "0 0 24 24",
9
+ xmlns: "http://www.w3.org/2000/svg"
10
+ }, c = /* @__PURE__ */ t("path", {
11
+ d: "M6 18L18 6M6 6l12 12",
12
+ "stroke-linecap": "round",
13
+ "stroke-linejoin": "round",
14
+ "stroke-width": "2"
15
+ }, null, -1), i = [
16
+ c
17
+ ];
18
+ function _(l, d) {
19
+ return e(), o("svg", s, i);
20
+ }
21
+ const f = /* @__PURE__ */ r(n, [["render", _]]);
22
+ export {
23
+ f as default
24
+ };
package/package.json CHANGED
@@ -1,59 +1,74 @@
1
1
  {
2
2
  "name": "vuiii",
3
- "version": "1.0.0-beta.7",
3
+ "repository": {
4
+ "type": "git",
5
+ "url": "git+https://github.com/greegus/vui.git"
6
+ },
7
+ "version": "1.0.0-beta.70",
8
+ "type": "module",
4
9
  "scripts": {
5
10
  "dev": "vite",
6
11
  "build": "vite build && vue-tsc --emitDeclarationOnly --declaration",
7
12
  "preview": "vite preview",
8
- "storybook": "start-storybook -p 6006",
9
- "build-storybook": "build-storybook"
13
+ "build-only": "vite build",
14
+ "type-check": "vue-tsc --build --force",
15
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
16
+ "format": "prettier --write src/",
17
+ "storybook": "storybook dev -p 6006",
18
+ "build-storybook": "storybook build"
10
19
  },
11
20
  "files": [
12
21
  "dist"
13
22
  ],
14
- "main": "./dist/vuiii.umd.js",
15
- "module": "./dist/vuiii.mjs",
16
23
  "exports": {
17
24
  ".": {
18
- "import": "./dist/vuiii.mjs",
19
- "require": "./dist/vuiii.umd.js"
25
+ "import": "./dist/vuiii.js",
26
+ "types": "./dist/index.d.ts"
20
27
  },
21
28
  "./style.css": "./dist/style.css"
22
29
  },
23
- "unpkg": "./dist/vuiii.umd.js",
24
- "jsdelivr": "./dist/vuiii.umd.js",
25
- "types": "./dist/index.d.ts",
26
- "dependencies": {},
30
+ "peerDependencies": {
31
+ "vue": "^3.4.0",
32
+ "vue-router": "^4.2.5"
33
+ },
27
34
  "devDependencies": {
28
35
  "@babel/core": "^7.20.2",
29
36
  "@babel/runtime": "^7.18.3",
30
- "@storybook/addon-actions": "^6.5.13",
31
- "@storybook/addon-essentials": "^6.5.13",
32
- "@storybook/addon-interactions": "^6.5.13",
33
- "@storybook/addon-links": "^6.5.13",
34
- "@storybook/builder-vite": "^0.2.5",
35
- "@storybook/testing-library": "^0.0.13",
36
- "@storybook/vue3": "^6.5.13",
37
- "@types/node": "^17.0.35",
38
- "@typescript-eslint/parser": "^5.25.0",
39
- "@vitejs/plugin-vue": "^2.3.3",
37
+ "@rushstack/eslint-patch": "^1.10.1",
38
+ "@storybook/addon-actions": "^8.0.5",
39
+ "@storybook/addon-essentials": "^8.0.5",
40
+ "@storybook/addon-interactions": "^8.0.5",
41
+ "@storybook/addon-links": "^8.0.5",
42
+ "@storybook/vue3": "^8.0.5",
43
+ "@storybook/vue3-vite": "^8.0.5",
44
+ "@tsconfig/node20": "^20.1.2",
45
+ "@types/node": "^20.11.10",
46
+ "@typescript-eslint/parser": "^5.62.0",
47
+ "@vitejs/plugin-vue": "^5.0.3",
48
+ "@vue/eslint-config-prettier": "^8.0.0",
49
+ "@vue/eslint-config-typescript": "^12.0.0",
40
50
  "autoprefixer": "^10.4.7",
41
51
  "babel-loader": "^8.3.0",
42
- "eslint": "^8.16.0",
43
- "eslint-config-prettier": "^8.5.0",
44
- "eslint-plugin-prettier": "^4.0.0",
45
- "eslint-plugin-simple-import-sort": "^7.0.0",
46
- "eslint-plugin-storybook": "^0.6.7",
47
- "eslint-plugin-vue": "^9.0.1",
48
- "postcss": "^8.4.14",
52
+ "eslint": "^8.57.0",
53
+ "eslint-plugin-simple-import-sort": "^12.0.0",
54
+ "eslint-plugin-storybook": "^0.8.0",
55
+ "eslint-plugin-vue": "^9.17.0",
56
+ "postcss": "^8.4.34",
49
57
  "postcss-import": "^14.1.0",
50
- "postcss-nesting": "^10.1.7",
51
- "prettier": "^2.6.2",
52
- "typescript": "^4.5.4",
53
- "vite": "^3.2.3",
54
- "vue": "^3.2.44",
55
- "vue-loader": "^16.8.3",
56
- "vue-router": "^4.1.6",
57
- "vue-tsc": "^1.0.9"
58
+ "postcss-nesting": "^12.0.2",
59
+ "prettier": "^3.0.3",
60
+ "storybook": "^8.0.5",
61
+ "typescript": "~5.3.0",
62
+ "vite": "^5.0.12",
63
+ "vue": "^3.4.0",
64
+ "vue-loader": "^17.4.2",
65
+ "vue-router": "^4.2.5",
66
+ "vue-tsc": "^1.8.27"
67
+ },
68
+ "engines": {
69
+ "node": ">=18.0.0"
70
+ },
71
+ "dependencies": {
72
+ "@popperjs/core": "^2.11.8"
58
73
  }
59
- }
74
+ }
@@ -1,87 +0,0 @@
1
- export declare type FormStructure<T = any> = {
2
- title?: string;
3
- separator?: boolean;
4
- fields: FormFieldsStructure<T>;
5
- }[];
6
- import { PropType } from 'vue';
7
- import { RouteLocationRaw } from 'vue-router';
8
- import { FormFieldsStructure } from './FormFields.vue';
9
- declare const _default: import("vue").DefineComponent<{
10
- structure: {
11
- type: PropType<FormStructure<any>>;
12
- default: () => {};
13
- };
14
- modelValue: {
15
- type: PropType<any>;
16
- default: () => undefined;
17
- };
18
- errors: {
19
- type: PropType<Record<string, string | boolean | string[]>>;
20
- default: () => {};
21
- };
22
- submit: {
23
- type: PropType<(modelValue: any) => void>;
24
- default: undefined;
25
- };
26
- submitLabel: {
27
- type: PropType<string>;
28
- default: string;
29
- };
30
- cancel: {
31
- type: PropType<RouteLocationRaw | (() => void)>;
32
- default: undefined;
33
- };
34
- cancelLabel: {
35
- type: PropType<string>;
36
- default: string;
37
- };
38
- submitting: BooleanConstructor;
39
- }, unknown, unknown, {}, {
40
- handleSubmit(): void;
41
- handleCancel(): void;
42
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change" | "submit" | "cancel")[], "update:modelValue" | "change" | "submit" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
- structure: {
44
- type: PropType<FormStructure<any>>;
45
- default: () => {};
46
- };
47
- modelValue: {
48
- type: PropType<any>;
49
- default: () => undefined;
50
- };
51
- errors: {
52
- type: PropType<Record<string, string | boolean | string[]>>;
53
- default: () => {};
54
- };
55
- submit: {
56
- type: PropType<(modelValue: any) => void>;
57
- default: undefined;
58
- };
59
- submitLabel: {
60
- type: PropType<string>;
61
- default: string;
62
- };
63
- cancel: {
64
- type: PropType<RouteLocationRaw | (() => void)>;
65
- default: undefined;
66
- };
67
- cancelLabel: {
68
- type: PropType<string>;
69
- default: string;
70
- };
71
- submitting: BooleanConstructor;
72
- }>> & {
73
- onChange?: ((...args: any[]) => any) | undefined;
74
- onSubmit?: ((...args: any[]) => any) | undefined;
75
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
76
- onCancel?: ((...args: any[]) => any) | undefined;
77
- }, {
78
- modelValue: any;
79
- errors: Record<string, string | boolean | string[]>;
80
- submit: (modelValue: any) => void;
81
- cancel: RouteLocationRaw | (() => void);
82
- structure: FormStructure<any>;
83
- submitLabel: string;
84
- cancelLabel: string;
85
- submitting: boolean;
86
- }>;
87
- export default _default;
@@ -1,94 +0,0 @@
1
- import { Extractor } from '../types';
2
- declare const _default: {
3
- new (...args: any[]): {
4
- $: import("vue").ComponentInternalInstance;
5
- $data: {};
6
- $props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
- modelValue: string | number | undefined;
8
- options: any[] | any;
9
- optionLabel?: Extractor | undefined;
10
- optionValue?: Extractor | undefined;
11
- optionDisabled?: Extractor | undefined;
12
- }>>> & {
13
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
14
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
15
- $attrs: {
16
- [x: string]: unknown;
17
- };
18
- $refs: {
19
- [x: string]: unknown;
20
- };
21
- $slots: Readonly<{
22
- [name: string]: import("vue").Slot | undefined;
23
- }>;
24
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
25
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
26
- $emit: (event: "update:modelValue", value: string | number) => void;
27
- $el: any;
28
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
29
- modelValue: string | number | undefined;
30
- options: any[] | any;
31
- optionLabel?: Extractor | undefined;
32
- optionValue?: Extractor | undefined;
33
- optionDisabled?: Extractor | undefined;
34
- }>>> & {
35
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
36
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
- "update:modelValue": (value: string | number) => void;
38
- }, string, {}, {}, string> & {
39
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
40
- created?: ((() => void) | (() => void)[]) | undefined;
41
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
42
- mounted?: ((() => void) | (() => void)[]) | undefined;
43
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
44
- updated?: ((() => void) | (() => void)[]) | undefined;
45
- activated?: ((() => void) | (() => void)[]) | undefined;
46
- deactivated?: ((() => void) | (() => void)[]) | undefined;
47
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
48
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
49
- destroyed?: ((() => void) | (() => void)[]) | undefined;
50
- unmounted?: ((() => void) | (() => void)[]) | undefined;
51
- renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
52
- renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
53
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
54
- };
55
- $forceUpdate: () => void;
56
- $nextTick: typeof import("vue").nextTick;
57
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
58
- } & Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
59
- modelValue: string | number | undefined;
60
- options: any[] | any;
61
- optionLabel?: Extractor | undefined;
62
- optionValue?: Extractor | undefined;
63
- optionDisabled?: Extractor | undefined;
64
- }>>> & {
65
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
66
- } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
67
- __isFragment?: undefined;
68
- __isTeleport?: undefined;
69
- __isSuspense?: undefined;
70
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
71
- modelValue: string | number | undefined;
72
- options: any[] | any;
73
- optionLabel?: Extractor | undefined;
74
- optionValue?: Extractor | undefined;
75
- optionDisabled?: Extractor | undefined;
76
- }>>> & {
77
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
78
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
79
- "update:modelValue": (value: string | number) => void;
80
- }, string, {}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
81
- $slots: {
82
- default: (_: {}) => any;
83
- };
84
- });
85
- export default _default;
86
- declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
87
- declare type __VLS_TypePropsToRuntimeProps<T> = {
88
- [K in keyof T]-?: {} extends Pick<T, K> ? {
89
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
90
- } : {
91
- type: import('vue').PropType<T[K]>;
92
- required: true;
93
- };
94
- };
@@ -1,39 +0,0 @@
1
- import { CSSProperties } from 'vue';
2
- declare const _default: import("vue").DefineComponent<{
3
- title: {
4
- type: StringConstructor;
5
- default: string;
6
- };
7
- width: {
8
- type: (StringConstructor | NumberConstructor)[];
9
- default: number;
10
- };
11
- hideCloser: BooleanConstructor;
12
- scroll: BooleanConstructor;
13
- plain: BooleanConstructor;
14
- }, unknown, unknown, {
15
- hasHeader(): boolean;
16
- hasFooter(): boolean;
17
- computedStyle(): Partial<CSSProperties>;
18
- }, {
19
- close(): void;
20
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
- title: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- width: {
26
- type: (StringConstructor | NumberConstructor)[];
27
- default: number;
28
- };
29
- hideCloser: BooleanConstructor;
30
- scroll: BooleanConstructor;
31
- plain: BooleanConstructor;
32
- }>>, {
33
- title: string;
34
- width: string | number;
35
- hideCloser: boolean;
36
- scroll: boolean;
37
- plain: boolean;
38
- }>;
39
- export default _default;
@@ -1,36 +0,0 @@
1
- import { PropType } from 'vue';
2
- import { ButtonOptions } from '../../modal';
3
- declare const _default: import("vue").DefineComponent<{
4
- title: {
5
- type: StringConstructor;
6
- default: string;
7
- };
8
- message: {
9
- type: StringConstructor;
10
- default: string;
11
- };
12
- buttons: {
13
- type: PropType<ButtonOptions[]>;
14
- default: () => never[];
15
- };
16
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
17
- title: {
18
- type: StringConstructor;
19
- default: string;
20
- };
21
- message: {
22
- type: StringConstructor;
23
- default: string;
24
- };
25
- buttons: {
26
- type: PropType<ButtonOptions[]>;
27
- default: () => never[];
28
- };
29
- }>> & {
30
- onClose?: ((...args: any[]) => any) | undefined;
31
- }, {
32
- title: string;
33
- buttons: ButtonOptions[];
34
- message: string;
35
- }>;
36
- export default _default;
@@ -1,28 +0,0 @@
1
- import { ComponentPublicInstance, PropType } from 'vue';
2
- import { Modal } from '@/modal';
3
- declare const _default: import("vue").DefineComponent<{
4
- modals: {
5
- type: PropType<Modal[]>;
6
- default: () => never[];
7
- };
8
- }, unknown, {
9
- modalInstances: Record<number, ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>>;
10
- registerReference(modalId: number): (instance: ComponentPublicInstance) => ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
11
- }, {
12
- activeModal(): Modal | null;
13
- }, {
14
- closeModal(modal: Modal, result?: any): void;
15
- closeActiveModal(): void;
16
- closeActiveModalByEscapeKey(e: KeyboardEvent): void;
17
- closeModalByBackdropClick(e: MouseEvent, modal: Modal): void;
18
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closeModal"[], "closeModal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
- modals: {
20
- type: PropType<Modal[]>;
21
- default: () => never[];
22
- };
23
- }>> & {
24
- onCloseModal?: ((...args: any[]) => any) | undefined;
25
- }, {
26
- modals: Modal[];
27
- }>;
28
- export default _default;