@open-xamu-co/ui-components-vue 1.0.0
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.
- package/CHANGELOG.md +8 -0
- package/LICENSE +7 -0
- package/README.md +3 -0
- package/dist/_virtual/chunk_h.cjs.js +1 -0
- package/dist/_virtual/chunk_h.es.js +4372 -0
- package/dist/_virtual/index.cjs.js +1 -0
- package/dist/_virtual/index.es.js +39 -0
- package/dist/_virtual/lodash.cjs.js +27 -0
- package/dist/_virtual/lodash.es.js +3686 -0
- package/dist/_virtual/nanoid.cjs.js +1 -0
- package/dist/_virtual/nanoid.es.js +4 -0
- package/dist/_virtual/sweetalert2.cjs.js +65 -0
- package/dist/_virtual/sweetalert2.es.js +1415 -0
- package/dist/_virtual/validator.cjs.js +7 -0
- package/dist/_virtual/validator.es.js +4508 -0
- package/dist/components/Dropdown.vue.cjs +1 -0
- package/dist/components/Dropdown.vue.d.ts +64 -0
- package/dist/components/Dropdown.vue.mjs +9 -0
- package/dist/components/Modal.vue.cjs +1 -0
- package/dist/components/Modal.vue.d.ts +112 -0
- package/dist/components/Modal.vue.mjs +9 -0
- package/dist/components/Slider.vue.cjs +1 -0
- package/dist/components/Slider.vue.d.ts +110 -0
- package/dist/components/Slider.vue.mjs +9 -0
- package/dist/components/Table.vue.cjs +1 -0
- package/dist/components/Table.vue.d.ts +98 -0
- package/dist/components/Table.vue.mjs +9 -0
- package/dist/components/action/Button.vue.cjs +1 -0
- package/dist/components/action/Button.vue.d.ts +149 -0
- package/dist/components/action/Button.vue.mjs +9 -0
- package/dist/components/action/ButtonLink.vue.cjs +1 -0
- package/dist/components/action/ButtonLink.vue.d.ts +155 -0
- package/dist/components/action/ButtonLink.vue.mjs +9 -0
- package/dist/components/action/ButtonToggle.vue.cjs +1 -0
- package/dist/components/action/ButtonToggle.vue.d.ts +155 -0
- package/dist/components/action/ButtonToggle.vue.mjs +9 -0
- package/dist/components/action/Link.vue.cjs +1 -0
- package/dist/components/action/Link.vue.d.ts +155 -0
- package/dist/components/action/Link.vue.mjs +9 -0
- package/dist/components/base/Action.vue.cjs +1 -0
- package/dist/components/base/Action.vue.d.ts +95 -0
- package/dist/components/base/Action.vue.mjs +9 -0
- package/dist/components/base/Img.vue.cjs +1 -0
- package/dist/components/base/Img.vue.d.ts +48 -0
- package/dist/components/base/Img.vue.mjs +9 -0
- package/dist/components/base/Input.vue.cjs +1 -0
- package/dist/components/base/Input.vue.d.ts +71 -0
- package/dist/components/base/Input.vue.mjs +9 -0
- package/dist/components/base/Select.vue.cjs +1 -0
- package/dist/components/base/Select.vue.d.ts +61 -0
- package/dist/components/base/Select.vue.mjs +9 -0
- package/dist/components/base/Wrapper.vue.cjs +1 -0
- package/dist/components/base/Wrapper.vue.d.ts +42 -0
- package/dist/components/base/Wrapper.vue.mjs +9 -0
- package/dist/components/box/Action.vue.cjs +1 -0
- package/dist/components/box/Action.vue.d.ts +170 -0
- package/dist/components/box/Action.vue.mjs +9 -0
- package/dist/components/box/Message.vue.cjs +1 -0
- package/dist/components/box/Message.vue.d.ts +143 -0
- package/dist/components/box/Message.vue.mjs +9 -0
- package/dist/components/form/Input.vue.cjs +1 -0
- package/dist/components/form/Input.vue.d.ts +49 -0
- package/dist/components/form/Input.vue.mjs +9 -0
- package/dist/components/form/InputCountriesAPI.vue.d.ts +45 -0
- package/dist/components/form/InputLoop.vue.d.ts +44 -0
- package/dist/components/form/InputNValues.vue.d.ts +34 -0
- package/dist/components/form/InputOptions.vue.d.ts +22 -0
- package/dist/components/form/Simple.vue.cjs +1 -0
- package/dist/components/form/Simple.vue.d.ts +45 -0
- package/dist/components/form/Simple.vue.mjs +9 -0
- package/dist/components/form/Stages.vue.cjs +1 -0
- package/dist/components/form/Stages.vue.d.ts +77 -0
- package/dist/components/form/Stages.vue.mjs +9 -0
- package/dist/components/icon/Fa.vue.cjs +1 -0
- package/dist/components/icon/Fa.vue.d.ts +47 -0
- package/dist/components/icon/Fa.vue.mjs +9 -0
- package/dist/components/icon/Simple.vue.cjs +1 -0
- package/dist/components/icon/Simple.vue.d.ts +29 -0
- package/dist/components/icon/Simple.vue.mjs +9 -0
- package/dist/components/index.cjs +1 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/index.mjs +40 -0
- package/dist/components/input/Color.vue.d.ts +88 -0
- package/dist/components/input/File.vue.cjs +1 -0
- package/dist/components/input/File.vue.d.ts +135 -0
- package/dist/components/input/File.vue.mjs +9 -0
- package/dist/components/input/Text.vue.cjs +1 -0
- package/dist/components/input/Text.vue.d.ts +128 -0
- package/dist/components/input/Text.vue.mjs +9 -0
- package/dist/components/input/Toggle.vue.cjs +1 -0
- package/dist/components/input/Toggle.vue.d.ts +113 -0
- package/dist/components/input/Toggle.vue.mjs +9 -0
- package/dist/components/loader/Content.vue.cjs +1 -0
- package/dist/components/loader/Content.vue.d.ts +73 -0
- package/dist/components/loader/Content.vue.mjs +9 -0
- package/dist/components/loader/ContentFetch.vue.cjs +1 -0
- package/dist/components/loader/ContentFetch.vue.d.ts +60 -0
- package/dist/components/loader/ContentFetch.vue.mjs +9 -0
- package/dist/components/loader/Simple.vue.cjs +1 -0
- package/dist/components/loader/Simple.vue.d.ts +47 -0
- package/dist/components/loader/Simple.vue.mjs +9 -0
- package/dist/components/pagination/Content.vue.cjs +1 -0
- package/dist/components/pagination/Content.vue.d.ts +66 -0
- package/dist/components/pagination/Content.vue.mjs +9 -0
- package/dist/components/pagination/Simple.vue.cjs +1 -0
- package/dist/components/pagination/Simple.vue.d.ts +41 -0
- package/dist/components/pagination/Simple.vue.mjs +9 -0
- package/dist/components/select/Filter.vue.cjs +1 -0
- package/dist/components/select/Filter.vue.d.ts +110 -0
- package/dist/components/select/Filter.vue.mjs +9 -0
- package/dist/components/select/Simple.vue.cjs +1 -0
- package/dist/components/select/Simple.vue.d.ts +88 -0
- package/dist/components/select/Simple.vue.mjs +9 -0
- package/dist/components/value/Complex.vue.cjs +1 -0
- package/dist/components/value/Complex.vue.d.ts +80 -0
- package/dist/components/value/Complex.vue.mjs +9 -0
- package/dist/components/value/Simple.vue.cjs +1 -0
- package/dist/components/value/Simple.vue.d.ts +50 -0
- package/dist/components/value/Simple.vue.mjs +9 -0
- package/dist/composables/browser.d.ts +11 -0
- package/dist/composables/countries.d.ts +21 -0
- package/dist/composables/fetch.d.ts +10 -0
- package/dist/composables/helpers.d.ts +2 -0
- package/dist/composables/input.d.ts +9 -0
- package/dist/composables/modifiers.d.ts +9 -0
- package/dist/composables/state.d.ts +9 -0
- package/dist/composables/theme.d.ts +28 -0
- package/dist/composables/uuid.d.ts +9 -0
- package/dist/plugin.cjs +1 -0
- package/dist/plugin.d.ts +8 -0
- package/dist/plugin.mjs +36 -0
- package/dist/types/countries.d.ts +12 -0
- package/dist/types/props.d.ts +77 -0
- package/dist/vite.svg +22 -0
- package/package.json +162 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import type { IconName } from "@fortawesome/fontawesome-common-types";
|
|
2
|
+
import type { iFormIconProps, iSelectOption } from "@open-xamu-co/ui-common-types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
icon: {
|
|
5
|
+
type: import("vue").PropType<IconName>;
|
|
6
|
+
};
|
|
7
|
+
iconProps: {
|
|
8
|
+
type: import("vue").PropType<iFormIconProps>;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: import("vue").PropType<string | number>;
|
|
12
|
+
};
|
|
13
|
+
options: {
|
|
14
|
+
type: import("vue").PropType<(string | number | iSelectOption)[]>;
|
|
15
|
+
};
|
|
16
|
+
multiple: {
|
|
17
|
+
type: import("vue").PropType<boolean>;
|
|
18
|
+
};
|
|
19
|
+
id: {
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
21
|
+
};
|
|
22
|
+
name: {
|
|
23
|
+
type: import("vue").PropType<string>;
|
|
24
|
+
};
|
|
25
|
+
placeholder: {
|
|
26
|
+
type: import("vue").PropType<string>;
|
|
27
|
+
};
|
|
28
|
+
title: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
};
|
|
31
|
+
required: {
|
|
32
|
+
type: import("vue").PropType<boolean>;
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
type: import("vue").PropType<boolean>;
|
|
36
|
+
};
|
|
37
|
+
hidden: {
|
|
38
|
+
type: import("vue").PropType<import("@open-xamu-co/ui-common-types").tPropsModifier<string>>;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: import("vue").PropType<string | number>;
|
|
42
|
+
};
|
|
43
|
+
active: {
|
|
44
|
+
type: import("vue").PropType<boolean>;
|
|
45
|
+
};
|
|
46
|
+
invalid: {
|
|
47
|
+
type: import("vue").PropType<boolean>;
|
|
48
|
+
};
|
|
49
|
+
state: {
|
|
50
|
+
type: import("vue").PropType<Record<string, boolean>>;
|
|
51
|
+
};
|
|
52
|
+
theme: {
|
|
53
|
+
type: import("vue").PropType<import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier>>;
|
|
54
|
+
};
|
|
55
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
56
|
+
icon: {
|
|
57
|
+
type: import("vue").PropType<IconName>;
|
|
58
|
+
};
|
|
59
|
+
iconProps: {
|
|
60
|
+
type: import("vue").PropType<iFormIconProps>;
|
|
61
|
+
};
|
|
62
|
+
modelValue: {
|
|
63
|
+
type: import("vue").PropType<string | number>;
|
|
64
|
+
};
|
|
65
|
+
options: {
|
|
66
|
+
type: import("vue").PropType<(string | number | iSelectOption)[]>;
|
|
67
|
+
};
|
|
68
|
+
multiple: {
|
|
69
|
+
type: import("vue").PropType<boolean>;
|
|
70
|
+
};
|
|
71
|
+
id: {
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
73
|
+
};
|
|
74
|
+
name: {
|
|
75
|
+
type: import("vue").PropType<string>;
|
|
76
|
+
};
|
|
77
|
+
placeholder: {
|
|
78
|
+
type: import("vue").PropType<string>;
|
|
79
|
+
};
|
|
80
|
+
title: {
|
|
81
|
+
type: import("vue").PropType<string>;
|
|
82
|
+
};
|
|
83
|
+
required: {
|
|
84
|
+
type: import("vue").PropType<boolean>;
|
|
85
|
+
};
|
|
86
|
+
disabled: {
|
|
87
|
+
type: import("vue").PropType<boolean>;
|
|
88
|
+
};
|
|
89
|
+
hidden: {
|
|
90
|
+
type: import("vue").PropType<import("@open-xamu-co/ui-common-types").tPropsModifier<string>>;
|
|
91
|
+
};
|
|
92
|
+
size: {
|
|
93
|
+
type: import("vue").PropType<string | number>;
|
|
94
|
+
};
|
|
95
|
+
active: {
|
|
96
|
+
type: import("vue").PropType<boolean>;
|
|
97
|
+
};
|
|
98
|
+
invalid: {
|
|
99
|
+
type: import("vue").PropType<boolean>;
|
|
100
|
+
};
|
|
101
|
+
state: {
|
|
102
|
+
type: import("vue").PropType<Record<string, boolean>>;
|
|
103
|
+
};
|
|
104
|
+
theme: {
|
|
105
|
+
type: import("vue").PropType<import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier>>;
|
|
106
|
+
};
|
|
107
|
+
}>> & {
|
|
108
|
+
"onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
}, {}, {}>;
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { B as e } from "../../_virtual/chunk_h.es.js";
|
|
2
|
+
import "../../_virtual/lodash.es.js";
|
|
3
|
+
import "../../_virtual/sweetalert2.es.js";
|
|
4
|
+
import "vue";
|
|
5
|
+
import "../../_virtual/validator.es.js";
|
|
6
|
+
import "../../_virtual/nanoid.es.js";
|
|
7
|
+
export {
|
|
8
|
+
e as default
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../../_virtual/chunk_h.cjs.js");require("../../_virtual/lodash.cjs.js");require("../../_virtual/sweetalert2.cjs.js");require("vue");require("../../_virtual/validator.cjs.js");require("../../_virtual/nanoid.cjs.js");module.exports=e._sfc_main$27;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
options: {
|
|
3
|
+
type: import("vue").PropType<(string | number | import("@open-xamu-co/ui-common-types").iSelectOption)[]>;
|
|
4
|
+
};
|
|
5
|
+
multiple: {
|
|
6
|
+
type: import("vue").PropType<boolean>;
|
|
7
|
+
};
|
|
8
|
+
id: {
|
|
9
|
+
type: import("vue").PropType<string>;
|
|
10
|
+
};
|
|
11
|
+
name: {
|
|
12
|
+
type: import("vue").PropType<string>;
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: import("vue").PropType<string>;
|
|
19
|
+
};
|
|
20
|
+
required: {
|
|
21
|
+
type: import("vue").PropType<boolean>;
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
type: import("vue").PropType<boolean>;
|
|
25
|
+
};
|
|
26
|
+
hidden: {
|
|
27
|
+
type: import("vue").PropType<import("@open-xamu-co/ui-common-types").tPropsModifier<string>>;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
type: import("vue").PropType<string | number>;
|
|
31
|
+
};
|
|
32
|
+
active: {
|
|
33
|
+
type: import("vue").PropType<boolean>;
|
|
34
|
+
};
|
|
35
|
+
invalid: {
|
|
36
|
+
type: import("vue").PropType<boolean>;
|
|
37
|
+
};
|
|
38
|
+
state: {
|
|
39
|
+
type: import("vue").PropType<Record<string, boolean>>;
|
|
40
|
+
};
|
|
41
|
+
theme: {
|
|
42
|
+
type: import("vue").PropType<import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier>>;
|
|
43
|
+
};
|
|
44
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
45
|
+
options: {
|
|
46
|
+
type: import("vue").PropType<(string | number | import("@open-xamu-co/ui-common-types").iSelectOption)[]>;
|
|
47
|
+
};
|
|
48
|
+
multiple: {
|
|
49
|
+
type: import("vue").PropType<boolean>;
|
|
50
|
+
};
|
|
51
|
+
id: {
|
|
52
|
+
type: import("vue").PropType<string>;
|
|
53
|
+
};
|
|
54
|
+
name: {
|
|
55
|
+
type: import("vue").PropType<string>;
|
|
56
|
+
};
|
|
57
|
+
placeholder: {
|
|
58
|
+
type: import("vue").PropType<string>;
|
|
59
|
+
};
|
|
60
|
+
title: {
|
|
61
|
+
type: import("vue").PropType<string>;
|
|
62
|
+
};
|
|
63
|
+
required: {
|
|
64
|
+
type: import("vue").PropType<boolean>;
|
|
65
|
+
};
|
|
66
|
+
disabled: {
|
|
67
|
+
type: import("vue").PropType<boolean>;
|
|
68
|
+
};
|
|
69
|
+
hidden: {
|
|
70
|
+
type: import("vue").PropType<import("@open-xamu-co/ui-common-types").tPropsModifier<string>>;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: import("vue").PropType<string | number>;
|
|
74
|
+
};
|
|
75
|
+
active: {
|
|
76
|
+
type: import("vue").PropType<boolean>;
|
|
77
|
+
};
|
|
78
|
+
invalid: {
|
|
79
|
+
type: import("vue").PropType<boolean>;
|
|
80
|
+
};
|
|
81
|
+
state: {
|
|
82
|
+
type: import("vue").PropType<Record<string, boolean>>;
|
|
83
|
+
};
|
|
84
|
+
theme: {
|
|
85
|
+
type: import("vue").PropType<import("@open-xamu-co/ui-common-types").tThemeTuple | import("@open-xamu-co/ui-common-types").tProp<import("@open-xamu-co/ui-common-types").tThemeModifier>>;
|
|
86
|
+
};
|
|
87
|
+
}>>, {}, {}>;
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { C as e } from "../../_virtual/chunk_h.es.js";
|
|
2
|
+
import "../../_virtual/lodash.es.js";
|
|
3
|
+
import "../../_virtual/sweetalert2.es.js";
|
|
4
|
+
import "vue";
|
|
5
|
+
import "../../_virtual/validator.es.js";
|
|
6
|
+
import "../../_virtual/nanoid.es.js";
|
|
7
|
+
export {
|
|
8
|
+
e as default
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../../_virtual/chunk_h.cjs.js");require("../../_virtual/lodash.cjs.js");require("../../_virtual/sweetalert2.cjs.js");require("vue");require("../../_virtual/validator.cjs.js");require("../../_virtual/nanoid.cjs.js");module.exports=e._sfc_main$30;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { RendererElement } from "vue";
|
|
2
|
+
import type { iSelectOption, tProp, tProps, tThemeModifier, tThemeTuple } from "@open-xamu-co/ui-common-types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
value: {
|
|
5
|
+
type: import("vue").PropType<unknown>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
property: {
|
|
9
|
+
type: import("vue").PropType<iSelectOption>;
|
|
10
|
+
};
|
|
11
|
+
node: {
|
|
12
|
+
type: import("vue").PropType<Record<string, unknown>>;
|
|
13
|
+
};
|
|
14
|
+
readOnly: {
|
|
15
|
+
type: import("vue").PropType<boolean>;
|
|
16
|
+
};
|
|
17
|
+
readFn: {
|
|
18
|
+
type: import("vue").PropType<() => Promise<boolean>>;
|
|
19
|
+
};
|
|
20
|
+
createFn: {
|
|
21
|
+
type: import("vue").PropType<() => Promise<boolean>>;
|
|
22
|
+
};
|
|
23
|
+
deleteFn: {
|
|
24
|
+
type: import("vue").PropType<() => Promise<boolean>>;
|
|
25
|
+
};
|
|
26
|
+
classes: {
|
|
27
|
+
type: import("vue").PropType<tProps<string>>;
|
|
28
|
+
};
|
|
29
|
+
refresh: {
|
|
30
|
+
type: import("vue").PropType<() => unknown>;
|
|
31
|
+
};
|
|
32
|
+
modalTarget: {
|
|
33
|
+
type: import("vue").PropType<string | RendererElement>;
|
|
34
|
+
};
|
|
35
|
+
modalTheme: {
|
|
36
|
+
type: import("vue").PropType<tThemeTuple | tProp<tThemeModifier>>;
|
|
37
|
+
};
|
|
38
|
+
theme: {
|
|
39
|
+
type: import("vue").PropType<tThemeTuple | tProp<tThemeModifier>>;
|
|
40
|
+
};
|
|
41
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
value: {
|
|
43
|
+
type: import("vue").PropType<unknown>;
|
|
44
|
+
required: true;
|
|
45
|
+
};
|
|
46
|
+
property: {
|
|
47
|
+
type: import("vue").PropType<iSelectOption>;
|
|
48
|
+
};
|
|
49
|
+
node: {
|
|
50
|
+
type: import("vue").PropType<Record<string, unknown>>;
|
|
51
|
+
};
|
|
52
|
+
readOnly: {
|
|
53
|
+
type: import("vue").PropType<boolean>;
|
|
54
|
+
};
|
|
55
|
+
readFn: {
|
|
56
|
+
type: import("vue").PropType<() => Promise<boolean>>;
|
|
57
|
+
};
|
|
58
|
+
createFn: {
|
|
59
|
+
type: import("vue").PropType<() => Promise<boolean>>;
|
|
60
|
+
};
|
|
61
|
+
deleteFn: {
|
|
62
|
+
type: import("vue").PropType<() => Promise<boolean>>;
|
|
63
|
+
};
|
|
64
|
+
classes: {
|
|
65
|
+
type: import("vue").PropType<tProps<string>>;
|
|
66
|
+
};
|
|
67
|
+
refresh: {
|
|
68
|
+
type: import("vue").PropType<() => unknown>;
|
|
69
|
+
};
|
|
70
|
+
modalTarget: {
|
|
71
|
+
type: import("vue").PropType<string | RendererElement>;
|
|
72
|
+
};
|
|
73
|
+
modalTheme: {
|
|
74
|
+
type: import("vue").PropType<tThemeTuple | tProp<tThemeModifier>>;
|
|
75
|
+
};
|
|
76
|
+
theme: {
|
|
77
|
+
type: import("vue").PropType<tThemeTuple | tProp<tThemeModifier>>;
|
|
78
|
+
};
|
|
79
|
+
}>>, {}, {}>;
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { F as e } from "../../_virtual/chunk_h.es.js";
|
|
2
|
+
import "../../_virtual/lodash.es.js";
|
|
3
|
+
import "../../_virtual/sweetalert2.es.js";
|
|
4
|
+
import "vue";
|
|
5
|
+
import "../../_virtual/validator.es.js";
|
|
6
|
+
import "../../_virtual/nanoid.es.js";
|
|
7
|
+
export {
|
|
8
|
+
e as default
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../../_virtual/chunk_h.cjs.js");require("../../_virtual/lodash.cjs.js");require("../../_virtual/sweetalert2.cjs.js");require("vue");require("../../_virtual/validator.cjs.js");require("../../_virtual/nanoid.cjs.js");module.exports=e._sfc_main$31;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { RendererElement } from "vue";
|
|
2
|
+
import type { iSelectOption, tProps, tThemeTuple, tProp, tThemeModifier } from "@open-xamu-co/ui-common-types";
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
value: {
|
|
5
|
+
type: import("vue").PropType<unknown>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
property: {
|
|
9
|
+
type: import("vue").PropType<iSelectOption>;
|
|
10
|
+
};
|
|
11
|
+
readOnly: {
|
|
12
|
+
type: import("vue").PropType<boolean>;
|
|
13
|
+
};
|
|
14
|
+
classes: {
|
|
15
|
+
type: import("vue").PropType<tProps<string>>;
|
|
16
|
+
};
|
|
17
|
+
modalTarget: {
|
|
18
|
+
type: import("vue").PropType<string | RendererElement>;
|
|
19
|
+
};
|
|
20
|
+
modalTheme: {
|
|
21
|
+
type: import("vue").PropType<tThemeTuple | tProp<tThemeModifier>>;
|
|
22
|
+
};
|
|
23
|
+
theme: {
|
|
24
|
+
type: import("vue").PropType<tThemeTuple | tProp<tThemeModifier>>;
|
|
25
|
+
};
|
|
26
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
value: {
|
|
28
|
+
type: import("vue").PropType<unknown>;
|
|
29
|
+
required: true;
|
|
30
|
+
};
|
|
31
|
+
property: {
|
|
32
|
+
type: import("vue").PropType<iSelectOption>;
|
|
33
|
+
};
|
|
34
|
+
readOnly: {
|
|
35
|
+
type: import("vue").PropType<boolean>;
|
|
36
|
+
};
|
|
37
|
+
classes: {
|
|
38
|
+
type: import("vue").PropType<tProps<string>>;
|
|
39
|
+
};
|
|
40
|
+
modalTarget: {
|
|
41
|
+
type: import("vue").PropType<string | RendererElement>;
|
|
42
|
+
};
|
|
43
|
+
modalTheme: {
|
|
44
|
+
type: import("vue").PropType<tThemeTuple | tProp<tThemeModifier>>;
|
|
45
|
+
};
|
|
46
|
+
theme: {
|
|
47
|
+
type: import("vue").PropType<tThemeTuple | tProp<tThemeModifier>>;
|
|
48
|
+
};
|
|
49
|
+
}>>, {}, {}>;
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { G as e } from "../../_virtual/chunk_h.es.js";
|
|
2
|
+
import "../../_virtual/lodash.es.js";
|
|
3
|
+
import "../../_virtual/sweetalert2.es.js";
|
|
4
|
+
import "vue";
|
|
5
|
+
import "../../_virtual/validator.es.js";
|
|
6
|
+
import "../../_virtual/nanoid.es.js";
|
|
7
|
+
export {
|
|
8
|
+
e as default
|
|
9
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { iCity, iCountry, iState } from "../types/countries";
|
|
2
|
+
/**
|
|
3
|
+
* Countries composable
|
|
4
|
+
*
|
|
5
|
+
* @composable
|
|
6
|
+
*/
|
|
7
|
+
export default function useCountries(): {
|
|
8
|
+
defaultCountry: string | undefined;
|
|
9
|
+
fallbackCountry: iCountry & {
|
|
10
|
+
states?: iState[] | undefined;
|
|
11
|
+
};
|
|
12
|
+
getCountries: () => Promise<iCountry[]>;
|
|
13
|
+
getCountry: (country: string) => Promise<iCountry & {
|
|
14
|
+
states: iState[];
|
|
15
|
+
}>;
|
|
16
|
+
getCountryStates: (country: string) => Promise<iState[]>;
|
|
17
|
+
getState: (country: string, state: string) => Promise<iState & {
|
|
18
|
+
cities: iCity[];
|
|
19
|
+
}>;
|
|
20
|
+
getStateCities: (country: string, state: string) => Promise<iCity[]>;
|
|
21
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { tHydrate } from "@open-xamu-co/ui-common-types";
|
|
2
|
+
/**
|
|
3
|
+
* Fetch composable
|
|
4
|
+
*
|
|
5
|
+
* @composable
|
|
6
|
+
*/
|
|
7
|
+
export default function useFetch(): {
|
|
8
|
+
getUrlParams: (params?: Record<string, string>) => URLSearchParams;
|
|
9
|
+
unHydrate: <T, P extends unknown[]>(fn: (...p: P) => Promise<T>) => (_hydrate: tHydrate<T>, ...args: P) => Promise<T>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { iFormInput, tFormAutocomplete, tTextInputType } from "@open-xamu-co/ui-common-types";
|
|
2
|
+
export default function useInput({ input }: {
|
|
3
|
+
input: iFormInput;
|
|
4
|
+
}): {
|
|
5
|
+
getInputError: () => string;
|
|
6
|
+
getInputAutocomplete: () => tFormAutocomplete;
|
|
7
|
+
getInputPlaceholder: (index?: number) => string;
|
|
8
|
+
getInputTextType: () => tTextInputType;
|
|
9
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { tThemeModifier } from "@open-xamu-co/ui-common-types";
|
|
2
|
+
import { iUseThemeProps, iUseThemeTooltipProps } from "../types/props";
|
|
3
|
+
type tThemes = [tThemeModifier, tThemeModifier];
|
|
4
|
+
interface iAllUseThemeProps extends iUseThemeProps, iUseThemeTooltipProps {
|
|
5
|
+
/**
|
|
6
|
+
* Theme as union
|
|
7
|
+
* @private
|
|
8
|
+
*/
|
|
9
|
+
themeAsUnion?: boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Theme composable
|
|
13
|
+
*
|
|
14
|
+
* @composable
|
|
15
|
+
*/
|
|
16
|
+
export default function useTheme(props: iAllUseThemeProps): {
|
|
17
|
+
themeValues: import("vue").ComputedRef<tThemes>;
|
|
18
|
+
themeClasses: import("vue").ComputedRef<string[]>;
|
|
19
|
+
tooltipAttributes: import("vue").ComputedRef<{
|
|
20
|
+
"arial-label": string;
|
|
21
|
+
"data-tooltip": string;
|
|
22
|
+
"data-tooltip-position": "right" | "left" | "bottom" | "top" | undefined;
|
|
23
|
+
"data-tooltip-text": boolean;
|
|
24
|
+
"data-tooltip-bg": tThemeModifier;
|
|
25
|
+
"data-tooltip-color": tThemeModifier | undefined;
|
|
26
|
+
} | null>;
|
|
27
|
+
};
|
|
28
|
+
export {};
|
package/dist/plugin.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("vue"),m=require("./_virtual/lodash.cjs.js"),s=require("./_virtual/chunk_h.cjs.js"),p=require("./_virtual/index.cjs.js");require("./_virtual/sweetalert2.cjs.js");require("./_virtual/validator.cjs.js");require("./_virtual/nanoid.cjs.js");const f={install(o,e){e={globalComponents:!0,componentPrefix:"xamu",mediaQueryPixels:{laptop:1080,tablet:768,mobile:576},locale:s.enLocale,lang:"en",first:10,...e};const{globalComponents:n,componentPrefix:a,webComponents:i}=e;if(o.provide("xamu",e),!n)return;(Array.isArray(n)?n:s.componentNames).forEach(t=>{const r=m._.capitalize(m._.camelCase(a))+t,c=p.components[t];if(i){const l=u.defineCustomElement(c);customElements.define(r,l)}else o.component(r,c)})}};exports.xamuPlugin=f;
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Plugin, Component as VueComponent, DefineComponent, FunctionalComponent } from "vue";
|
|
2
|
+
import type { tPropertyMapping, iPluginOptions } from "@open-xamu-co/ui-common-types";
|
|
3
|
+
import * as components from "./components";
|
|
4
|
+
export declare const xamuPlugin: Plugin<iPluginOptions<VueComponent | FunctionalComponent | DefineComponent>>;
|
|
5
|
+
declare module "@vue/runtime-core" {
|
|
6
|
+
interface GlobalComponents extends tPropertyMapping<typeof components, "xamu"> {
|
|
7
|
+
}
|
|
8
|
+
}
|
package/dist/plugin.mjs
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineCustomElement as i } from "vue";
|
|
2
|
+
import { _ as a } from "./_virtual/lodash.es.js";
|
|
3
|
+
import { e as l, c as f } from "./_virtual/chunk_h.es.js";
|
|
4
|
+
import { c as u } from "./_virtual/index.es.js";
|
|
5
|
+
import "./_virtual/sweetalert2.es.js";
|
|
6
|
+
import "./_virtual/validator.es.js";
|
|
7
|
+
import "./_virtual/nanoid.es.js";
|
|
8
|
+
const w = {
|
|
9
|
+
install(n, e) {
|
|
10
|
+
e = {
|
|
11
|
+
// Set plugin defaults
|
|
12
|
+
globalComponents: !0,
|
|
13
|
+
componentPrefix: "xamu",
|
|
14
|
+
mediaQueryPixels: { laptop: 1080, tablet: 768, mobile: 576 },
|
|
15
|
+
locale: l,
|
|
16
|
+
lang: "en",
|
|
17
|
+
first: 10,
|
|
18
|
+
// override defaults
|
|
19
|
+
...e
|
|
20
|
+
};
|
|
21
|
+
const { globalComponents: o, componentPrefix: c, webComponents: s } = e;
|
|
22
|
+
if (n.provide("xamu", e), !o)
|
|
23
|
+
return;
|
|
24
|
+
(Array.isArray(o) ? o : f).forEach((m) => {
|
|
25
|
+
const t = a.capitalize(a.camelCase(c)) + m, r = u[m];
|
|
26
|
+
if (s) {
|
|
27
|
+
const p = i(r);
|
|
28
|
+
customElements.define(t, p);
|
|
29
|
+
} else
|
|
30
|
+
n.component(t, r);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export {
|
|
35
|
+
w as xamuPlugin
|
|
36
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { iSelectOption, tFormAutocomplete, tProp, tProps, tPropsModifier, tThemeModifier, tThemeTuple } from "@open-xamu-co/ui-common-types";
|
|
2
|
+
export interface iUseModifiersProps {
|
|
3
|
+
hidden?: string | tPropsModifier<string>;
|
|
4
|
+
size?: string | number;
|
|
5
|
+
}
|
|
6
|
+
export interface iUseStateProps {
|
|
7
|
+
/**
|
|
8
|
+
* Active state: Mostly useful on actions
|
|
9
|
+
* Included here to make his usage less verbose
|
|
10
|
+
*
|
|
11
|
+
* @state
|
|
12
|
+
* @example is--active
|
|
13
|
+
*/
|
|
14
|
+
active?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Invalid state: Mostly useful on inputs
|
|
17
|
+
* Included here to make his usage less verbose
|
|
18
|
+
*
|
|
19
|
+
* @state
|
|
20
|
+
* @example is--invalid
|
|
21
|
+
*/
|
|
22
|
+
invalid?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Component states
|
|
25
|
+
*
|
|
26
|
+
* @example invalid, active, alert
|
|
27
|
+
*/
|
|
28
|
+
state?: Record<string, boolean>;
|
|
29
|
+
}
|
|
30
|
+
export interface iUseThemeProps {
|
|
31
|
+
theme?: tThemeTuple | tProp<tThemeModifier>;
|
|
32
|
+
}
|
|
33
|
+
export interface iUseThemeTooltipProps {
|
|
34
|
+
tooltip?: tProp;
|
|
35
|
+
tooltipPosition?: "right" | "left" | "bottom" | "top";
|
|
36
|
+
tooltipAsText?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface iActionProps {
|
|
39
|
+
to?: string | Record<string, unknown>;
|
|
40
|
+
href?: string;
|
|
41
|
+
target?: string;
|
|
42
|
+
tel?: string;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
mailto?: string;
|
|
45
|
+
type?: "button" | "submit" | "reset";
|
|
46
|
+
tag?: string;
|
|
47
|
+
toggle?: tProp<"dropdown" | "list">;
|
|
48
|
+
round?: string | tPropsModifier<string>;
|
|
49
|
+
toggleState?: tProps<string>;
|
|
50
|
+
indicative?: `${string}+${number}`;
|
|
51
|
+
whatsapp?: boolean;
|
|
52
|
+
download?: string;
|
|
53
|
+
}
|
|
54
|
+
interface iInputLikeProps {
|
|
55
|
+
id?: string;
|
|
56
|
+
name?: string;
|
|
57
|
+
placeholder?: string;
|
|
58
|
+
title?: string;
|
|
59
|
+
required?: boolean;
|
|
60
|
+
disabled?: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface iInputProps extends iInputLikeProps {
|
|
63
|
+
/**
|
|
64
|
+
* Input type
|
|
65
|
+
* TODO?: limit types
|
|
66
|
+
*/
|
|
67
|
+
type?: string;
|
|
68
|
+
autocomplete?: tFormAutocomplete;
|
|
69
|
+
}
|
|
70
|
+
export interface iSelectProps extends iInputLikeProps {
|
|
71
|
+
options?: Array<string | number | iSelectOption>;
|
|
72
|
+
/**
|
|
73
|
+
* Multiple fields
|
|
74
|
+
*/
|
|
75
|
+
multiple?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export {};
|