vueless 0.0.5 → 0.0.7
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/.eslintrc.js +7 -0
- package/package.json +3 -2
- package/postcss.config.js +1 -1
- package/src/service.tailwind/index.js +2 -3
- package/src/service.ui/index.js +1 -1
- package/src/ui.button/index.vue +2 -3
- package/src/ui.button-link/index.vue +2 -2
- package/src/ui.button-toggle/index.vue +2 -2
- package/src/ui.button-toggle-item/index.vue +1 -1
- package/src/ui.container-modal/index.vue +1 -0
- package/src/ui.container-page/index.vue +4 -0
- package/src/ui.data-list/index.vue +1 -0
- package/src/ui.data-table/index.vue +5 -0
- package/src/ui.dropdown-badge/index.vue +1 -0
- package/src/ui.dropdown-button/index.vue +3 -3
- package/src/ui.dropdown-link/index.vue +1 -0
- package/src/ui.dropdown-list/index.vue +6 -4
- package/src/ui.form-calendar/index.vue +6 -1
- package/src/ui.form-checkbox/index.vue +3 -2
- package/src/ui.form-checkbox-group/index.vue +2 -0
- package/src/ui.form-checkbox-multi-state/index.vue +1 -0
- package/src/ui.form-color-picker/index.vue +3 -0
- package/src/ui.form-date-picker/index.vue +7 -4
- package/src/ui.form-date-picker-range/index.vue +19 -11
- package/src/ui.form-input/index.vue +3 -0
- package/src/ui.form-input-file/index.vue +2 -0
- package/src/ui.form-input-money/index.vue +3 -4
- package/src/ui.form-input-number/index.vue +3 -0
- package/src/ui.form-input-rating/index.vue +1 -0
- package/src/ui.form-input-search/index.vue +3 -0
- package/src/ui.form-radio/index.vue +2 -1
- package/src/ui.form-radio-card/index.vue +1 -0
- package/src/ui.form-radio-group/index.vue +1 -0
- package/src/ui.form-select/index.vue +3 -0
- package/src/ui.form-switch/index.vue +1 -0
- package/src/ui.form-textarea/index.vue +2 -2
- package/src/ui.image-icon/index.vue +1 -1
- package/src/ui.navigation-pagination/index.vue +2 -1
- package/src/ui.navigation-stepper/index.vue +1 -3
- package/src/ui.navigation-tabs/index.vue +1 -1
- package/src/ui.text-alert/index.vue +2 -1
- package/src/ui.text-empty/index.vue +1 -0
- package/src/ui.text-files/index.vue +1 -1
- package/vite.config.mjs +5 -4
- package/web-types.json +1 -1
- package/.web-types-gen/package.json +0 -3
- package/src/library.web-types-gen/index.js +0 -17
- package/src/library.web-types-gen/lib/build.js +0 -252
- package/src/library.web-types-gen/lib/config.js +0 -32
- package/src/library.web-types-gen/package.json +0 -3
- package/src/plugin.vite/index.js +0 -59
- package/src/plugin.vite/services/iconResolver.service.js +0 -291
- package/src/plugin.vite/services/svgLoader.service.js +0 -76
- package/src/plugin.vite/services/tailwindSafelist.service.js +0 -195
- package/src/plugin.vite/services/unpluginComponentsResolver.js +0 -172
package/.eslintrc.js
CHANGED
|
@@ -40,6 +40,13 @@ module.exports = {
|
|
|
40
40
|
"prettier/prettier": ["warn", { printWidth: 100, tabWidth: 2 }],
|
|
41
41
|
},
|
|
42
42
|
overrides: [
|
|
43
|
+
{
|
|
44
|
+
files: ["src/**/default.config.{js,ts}"],
|
|
45
|
+
rules: {
|
|
46
|
+
"vue/max-len": ["error", { code: 140 }],
|
|
47
|
+
"prettier/prettier": ["warn", { printWidth: 120, tabWidth: 2 }],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
43
50
|
{
|
|
44
51
|
files: [".storybook/preview.{js,ts}"],
|
|
45
52
|
rules: {
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Vue Styleless Component Framework.",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
7
7
|
"author": "Johnny Grid",
|
|
8
8
|
"main": "index.js",
|
|
9
|
+
"type": "module",
|
|
9
10
|
"scripts": {
|
|
10
11
|
"lint": "eslint --ext .vue,.js,.ts --no-fix --ignore-path .eslintignore src/ .storybook/ tests/",
|
|
11
12
|
"lint:fix": "eslint --ext .vue,.js,.ts --fix --ignore-path .eslintignore src/ .storybook/ tests/",
|
|
@@ -40,6 +41,7 @@
|
|
|
40
41
|
"@vue/compiler-sfc": "^3.4.19",
|
|
41
42
|
"@vue/eslint-config-prettier": "^9.0.0",
|
|
42
43
|
"@vueless/storybook": "file:../vueless-storybook",
|
|
44
|
+
"@vueless/vite-plugin": "file:../vite-plugin-vueless",
|
|
43
45
|
"autoprefixer": "^10.4.19",
|
|
44
46
|
"eslint": "^8.55.0",
|
|
45
47
|
"eslint-plugin-node": "^11.1.0",
|
|
@@ -54,7 +56,6 @@
|
|
|
54
56
|
"vite": "^5.1.1",
|
|
55
57
|
"vite-plugin-compression": "^0.5.1",
|
|
56
58
|
"vite-plugin-eslint": "^1.8.1",
|
|
57
|
-
"vite-plugin-vueless": "file:../vite-plugin-vueless",
|
|
58
59
|
"vue": "^3.4.19",
|
|
59
60
|
"vue-i18n": "^9.9.1",
|
|
60
61
|
"vue-router": "^4.2.5"
|
package/postcss.config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import colors from "tailwindcss/colors";
|
|
1
|
+
import colors from "tailwindcss/colors.js";
|
|
2
2
|
import forms from "@tailwindcss/forms";
|
|
3
|
-
import vuelessConfig from "../../vueless.config";
|
|
3
|
+
import vuelessConfig from "../../vueless.config.js";
|
|
4
4
|
|
|
5
5
|
export const grayColors = ["slate", "gray", "zinc", "neutral", "stone"];
|
|
6
6
|
export const brandColors = [
|
|
@@ -83,7 +83,6 @@ export default class TailwindServiceDefault {
|
|
|
83
83
|
"./vueless.config.{js,ts}",
|
|
84
84
|
"./node_modules/vueless/**/*.{js,ts,vue}",
|
|
85
85
|
// TODO: remove it after creating the package
|
|
86
|
-
"./.vueless/**/*.{js,ts,vue}",
|
|
87
86
|
"./.vueless-layouts/**/*.{js,ts,vue}",
|
|
88
87
|
"./.vueless-services/**/*.{js,ts,vue}",
|
|
89
88
|
],
|
package/src/service.ui/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { defineConfig } from "cva";
|
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
4
|
import colors from "tailwindcss/colors";
|
|
5
5
|
import { brandColors, grayColors } from "../service.tailwind";
|
|
6
|
-
import vuelessConfig from "/vueless.config";
|
|
6
|
+
import vuelessConfig from "/vueless.config.js";
|
|
7
7
|
|
|
8
8
|
/*
|
|
9
9
|
Export cva (class variance authority) methods extended with tailwind-merge.
|
package/src/ui.button/index.vue
CHANGED
|
@@ -16,13 +16,12 @@
|
|
|
16
16
|
</template>
|
|
17
17
|
|
|
18
18
|
<script setup>
|
|
19
|
-
import UIService, { getRandomId } from "../service.ui";
|
|
20
|
-
|
|
21
19
|
import ULoader from "../ui.other-loader";
|
|
20
|
+
import UIService, { getRandomId } from "../service.ui";
|
|
22
21
|
|
|
22
|
+
import { useAttrs } from "./composables/attrs.composable";
|
|
23
23
|
import defaultConfig from "./configs/default.config";
|
|
24
24
|
import { UButton } from "./constants";
|
|
25
|
-
import { useAttrs } from "./composables/attrs.composable";
|
|
26
25
|
|
|
27
26
|
/* Should be a string for correct web-types gen */
|
|
28
27
|
defineOptions({ name: "UButton", inheritAttrs: false });
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
|
|
51
51
|
<script setup>
|
|
52
52
|
import { computed, useSlots } from "vue";
|
|
53
|
+
|
|
53
54
|
import UIService from "../service.ui";
|
|
54
55
|
|
|
55
56
|
import { useAttrs } from "./composables/attrs.composable";
|
|
56
57
|
import defaultConfig from "./configs/default.config";
|
|
57
58
|
import { ULink } from "./constants";
|
|
58
|
-
import { UButton } from "../ui.button/constants";
|
|
59
59
|
|
|
60
60
|
/* Should be a string for correct web-types gen */
|
|
61
61
|
defineOptions({ name: "ULink", inheritAttrs: false });
|
|
@@ -151,7 +151,7 @@ const props = defineProps({
|
|
|
151
151
|
*/
|
|
152
152
|
block: {
|
|
153
153
|
type: Boolean,
|
|
154
|
-
default: UIService.get(defaultConfig,
|
|
154
|
+
default: UIService.get(defaultConfig, ULink).default.block,
|
|
155
155
|
},
|
|
156
156
|
|
|
157
157
|
/**
|
|
@@ -17,12 +17,12 @@
|
|
|
17
17
|
<script setup>
|
|
18
18
|
import { computed, provide, readonly, ref } from "vue";
|
|
19
19
|
|
|
20
|
+
import UToggleItem from "../ui.button-toggle-item";
|
|
20
21
|
import UIService from "../service.ui";
|
|
21
22
|
|
|
22
23
|
import defaultConfig from "./configs/default.config";
|
|
23
24
|
import { UToggle, TYPE_RADIO, TYPE_CHECKBOX } from "./constants";
|
|
24
25
|
import { useAttrs } from "./composables/attrs.composable";
|
|
25
|
-
import { UButton } from "../ui.button/constants";
|
|
26
26
|
|
|
27
27
|
/* Should be a string for correct web-types gen */
|
|
28
28
|
defineOptions({ name: "UToggle", inheritAttrs: false });
|
|
@@ -74,7 +74,7 @@ const props = defineProps({
|
|
|
74
74
|
*/
|
|
75
75
|
block: {
|
|
76
76
|
type: Boolean,
|
|
77
|
-
default: UIService.get(defaultConfig,
|
|
77
|
+
default: UIService.get(defaultConfig, UToggle).default.block,
|
|
78
78
|
},
|
|
79
79
|
|
|
80
80
|
/**
|
|
@@ -33,9 +33,9 @@ import UIService, { getRandomId } from "../service.ui";
|
|
|
33
33
|
|
|
34
34
|
import { TYPE_RADIO } from "../ui.button-toggle/constants";
|
|
35
35
|
|
|
36
|
+
import { useAttrs } from "./composables/attrs.composable";
|
|
36
37
|
import defaultConfig from "./configs/default.config";
|
|
37
38
|
import { UToggleItem } from "./constants";
|
|
38
|
-
import { useAttrs } from "./composables/attrs.composable";
|
|
39
39
|
|
|
40
40
|
/* Should be a string for correct web-types gen */
|
|
41
41
|
defineOptions({ name: "UToggleItem", inheritAttrs: false });
|
|
@@ -103,6 +103,7 @@ import { computed, useSlots, watch, ref } from "vue";
|
|
|
103
103
|
|
|
104
104
|
import UIService, { getRandomId } from "../service.ui";
|
|
105
105
|
|
|
106
|
+
import ULink from "../ui.button-link";
|
|
106
107
|
import UIcon from "../ui.image-icon";
|
|
107
108
|
import UHeader from "../ui.text-header";
|
|
108
109
|
import UDivider from "../ui.container-divider";
|
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
import { computed, useSlots, onMounted } from "vue";
|
|
69
69
|
import { useStore } from "vuex";
|
|
70
70
|
|
|
71
|
+
import ULink from "../ui.button-link/index.vue";
|
|
72
|
+
import UIcon from "../ui.image-icon/index.vue";
|
|
73
|
+
import UHeader from "../ui.text-header/index.vue";
|
|
74
|
+
|
|
71
75
|
import UIService from "../service.ui";
|
|
72
76
|
|
|
73
77
|
import defaultConfig from "./configs/default.config";
|
|
@@ -273,10 +273,15 @@ import {
|
|
|
273
273
|
onBeforeUnmount,
|
|
274
274
|
} from "vue";
|
|
275
275
|
|
|
276
|
+
import UIcon from "../ui.image-icon";
|
|
277
|
+
import UEmpty from "../ui.text-empty";
|
|
278
|
+
import UDivider from "../ui.container-divider";
|
|
276
279
|
import UCheckbox from "../ui.form-checkbox";
|
|
277
280
|
import ULoaderTop from "../ui.loader-top";
|
|
281
|
+
import UTableCell from "../ui.data-table-cell";
|
|
278
282
|
|
|
279
283
|
import UIService from "../service.ui";
|
|
284
|
+
|
|
280
285
|
import defaultConfig from "./configs/default.config";
|
|
281
286
|
import TableService from "./services/table.service";
|
|
282
287
|
|
|
@@ -47,6 +47,7 @@ import { computed, onMounted, onUnmounted, provide, ref, watch } from "vue";
|
|
|
47
47
|
import UIcon from "../ui.image-icon";
|
|
48
48
|
import UBadge from "../ui.text-badge";
|
|
49
49
|
import UDropdownList from "../ui.dropdown-list";
|
|
50
|
+
|
|
50
51
|
import UIService, { getRandomId } from "../service.ui";
|
|
51
52
|
|
|
52
53
|
import defaultConfig from "./configs/default.config";
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
<script setup>
|
|
48
48
|
import { computed, onMounted, onUnmounted, provide, ref, watch } from "vue";
|
|
49
49
|
|
|
50
|
-
import UIService, { getRandomId } from "../service.ui";
|
|
51
50
|
import UIcon from "../ui.image-icon";
|
|
52
51
|
import UButton from "../ui.button";
|
|
53
52
|
import UDropdownList from "../ui.dropdown-list";
|
|
54
|
-
import { BUTTON_VARIANT } from "../ui.dropdown-button/constants";
|
|
55
53
|
|
|
56
|
-
import {
|
|
54
|
+
import UIService, { getRandomId } from "../service.ui";
|
|
55
|
+
|
|
57
56
|
import defaultConfig from "./configs/default.config";
|
|
57
|
+
import { UDropdownButton, BUTTON_VARIANT } from "./constants";
|
|
58
58
|
import { useAttrs } from "./composables/attrs.composable";
|
|
59
59
|
|
|
60
60
|
/* Should be a string for correct web-types gen */
|
|
@@ -51,6 +51,7 @@ import { computed, onMounted, onUnmounted, provide, ref, watch } from "vue";
|
|
|
51
51
|
import UIcon from "../ui.image-icon";
|
|
52
52
|
import ULink from "../ui.button-link";
|
|
53
53
|
import UDropdownList from "../ui.dropdown-list";
|
|
54
|
+
|
|
54
55
|
import UIService, { getRandomId } from "../service.ui";
|
|
55
56
|
|
|
56
57
|
import { UDropdownLink } from "./constants";
|
|
@@ -88,18 +88,20 @@
|
|
|
88
88
|
<script setup>
|
|
89
89
|
import { computed, ref } from "vue";
|
|
90
90
|
|
|
91
|
-
import
|
|
92
|
-
import
|
|
91
|
+
import UIcon from "../ui.image-icon";
|
|
92
|
+
import UButton from "../ui.button";
|
|
93
93
|
|
|
94
94
|
import UIService, { getRandomId, isMac } from "../service.ui";
|
|
95
95
|
|
|
96
|
+
import usePointer from "./composables/usePointer";
|
|
97
|
+
import useAttrs from "./composables/attrs.composable";
|
|
96
98
|
import defaultConfig from "./configs/default.config.js";
|
|
99
|
+
import { UDropdownList } from "./constants";
|
|
97
100
|
|
|
98
101
|
/* Should be a string for correct web-types gen */
|
|
99
102
|
defineOptions({ name: "UDropdownList", inheritAttrs: false });
|
|
100
103
|
|
|
101
|
-
|
|
102
|
-
|
|
104
|
+
// TODO: Use props and regular modal value
|
|
103
105
|
const modelValue = defineModel({ type: [String, Number, Object], default: "" });
|
|
104
106
|
|
|
105
107
|
const props = defineProps({
|
|
@@ -149,6 +149,11 @@
|
|
|
149
149
|
<script setup>
|
|
150
150
|
import { computed, onMounted, ref, watch } from "vue";
|
|
151
151
|
|
|
152
|
+
import UIcon from "../ui.image-icon";
|
|
153
|
+
import UButton from "../ui.button";
|
|
154
|
+
|
|
155
|
+
import UIService from "../service.ui";
|
|
156
|
+
|
|
152
157
|
import {
|
|
153
158
|
parseDate,
|
|
154
159
|
formatDate,
|
|
@@ -156,6 +161,7 @@ import {
|
|
|
156
161
|
dateIsOutOfRange,
|
|
157
162
|
isNumeric,
|
|
158
163
|
} from "./services/calendar.service";
|
|
164
|
+
|
|
159
165
|
import {
|
|
160
166
|
getUnixTimestampFromDate,
|
|
161
167
|
getDateWithoutTime,
|
|
@@ -164,7 +170,6 @@ import {
|
|
|
164
170
|
addYears,
|
|
165
171
|
getSortedLocale,
|
|
166
172
|
} from "./services/date.service";
|
|
167
|
-
import UIService from "../service.ui";
|
|
168
173
|
|
|
169
174
|
import useAttrs from "./composables/attrs.composable";
|
|
170
175
|
|
|
@@ -36,12 +36,13 @@
|
|
|
36
36
|
import { inject, ref, onMounted, computed } from "vue";
|
|
37
37
|
import { isEqual } from "lodash-es";
|
|
38
38
|
|
|
39
|
+
import UIcon from "../ui.image-icon";
|
|
40
|
+
import ULabel from "../ui.form-label";
|
|
41
|
+
|
|
39
42
|
import UIService, { getRandomId } from "../service.ui";
|
|
40
43
|
|
|
41
44
|
import defaultConfig from "./configs/default.config";
|
|
42
45
|
import { UCheckbox } from "./constants";
|
|
43
|
-
|
|
44
|
-
import UIcon from "../ui.image-icon";
|
|
45
46
|
import { useAttrs } from "./composables/attrs.composable";
|
|
46
47
|
|
|
47
48
|
/* Should be a string for correct web-types gen */
|
|
@@ -34,6 +34,8 @@ import { provide, ref, watch } from "vue";
|
|
|
34
34
|
import { isEqual } from "lodash-es";
|
|
35
35
|
|
|
36
36
|
import UIService, { getRandomId } from "../service.ui";
|
|
37
|
+
|
|
38
|
+
import ULabel from "../ui.form-label";
|
|
37
39
|
import UCheckbox from "../ui.form-checkbox";
|
|
38
40
|
|
|
39
41
|
import { UCheckboxGroup } from "./constants";
|
|
@@ -52,6 +52,9 @@
|
|
|
52
52
|
<script setup>
|
|
53
53
|
import { computed } from "vue";
|
|
54
54
|
|
|
55
|
+
import UIcon from "../ui.image-icon";
|
|
56
|
+
import URadio from "../ui.form-radio";
|
|
57
|
+
import ULabel from "../ui.form-label";
|
|
55
58
|
import UIService, { getRandomId } from "../service.ui";
|
|
56
59
|
|
|
57
60
|
import { UColorPicker } from "./constants";
|
|
@@ -53,16 +53,19 @@
|
|
|
53
53
|
|
|
54
54
|
<script setup>
|
|
55
55
|
import { computed, nextTick, ref } from "vue";
|
|
56
|
+
|
|
57
|
+
import UInput from "../ui.form-input";
|
|
58
|
+
import UCalendar from "../ui.form-calendar";
|
|
59
|
+
import { VIEW } from "../ui.form-calendar/constants";
|
|
60
|
+
|
|
56
61
|
import UIService, { getRandomId } from "../service.ui";
|
|
57
62
|
|
|
58
63
|
import useAttrs from "./composables/attrs.composable";
|
|
59
|
-
|
|
60
64
|
import defaultConfig from "./configs/default.config";
|
|
61
65
|
import { UDatePicker } from "./constants";
|
|
62
66
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
defineOptions({ name: "UDatePicker" });
|
|
67
|
+
/* Should be a string for correct web-types gen */
|
|
68
|
+
defineOptions({ name: "UDatePicker", inheritAttrs: false });
|
|
66
69
|
|
|
67
70
|
const props = defineProps({
|
|
68
71
|
/**
|
|
@@ -177,6 +177,15 @@
|
|
|
177
177
|
|
|
178
178
|
<script setup>
|
|
179
179
|
import { computed, watch, ref, nextTick } from "vue";
|
|
180
|
+
import { useStore } from "vuex";
|
|
181
|
+
|
|
182
|
+
import UIcon from "../ui.image-icon";
|
|
183
|
+
import UInput from "../ui.form-input";
|
|
184
|
+
import UButton from "../ui.button";
|
|
185
|
+
import UCalendar from "../ui.form-calendar";
|
|
186
|
+
import { LOCALE_TYPE } from "../ui.form-calendar/constants";
|
|
187
|
+
|
|
188
|
+
import UIService, { getRandomId } from "../service.ui";
|
|
180
189
|
|
|
181
190
|
import {
|
|
182
191
|
addDays,
|
|
@@ -197,24 +206,22 @@ import {
|
|
|
197
206
|
getStartOfYear,
|
|
198
207
|
getDatesDifference,
|
|
199
208
|
} from "../ui.form-calendar/services/date.service";
|
|
209
|
+
|
|
210
|
+
import {
|
|
211
|
+
dateIsOutOfRange,
|
|
212
|
+
formatDate,
|
|
213
|
+
parseDate,
|
|
214
|
+
} from "../ui.form-calendar/services/calendar.service";
|
|
215
|
+
|
|
200
216
|
import {
|
|
201
217
|
getWeekDateList,
|
|
202
218
|
getYearDateList,
|
|
203
219
|
getQuartersDateList,
|
|
204
220
|
getMonthsDateList,
|
|
205
221
|
} from "./services/dateRange.service";
|
|
206
|
-
import { wrongDateFormat, wrongMonthNumber, wrongDayNumber } from "./services/validation.service";
|
|
207
|
-
import {
|
|
208
|
-
dateIsOutOfRange,
|
|
209
|
-
formatDate,
|
|
210
|
-
parseDate,
|
|
211
|
-
} from "../ui.form-calendar/services/calendar.service";
|
|
212
|
-
import UIService, { getRandomId } from "../service.ui";
|
|
213
222
|
|
|
223
|
+
import { wrongDateFormat, wrongMonthNumber, wrongDayNumber } from "./services/validation.service";
|
|
214
224
|
import useAttrs from "./composables/attrs.composable";
|
|
215
|
-
import { useStore } from "vuex";
|
|
216
|
-
|
|
217
|
-
import { LOCALE_TYPE } from "../ui.form-calendar/constants";
|
|
218
225
|
import defaultConfig from "./configs/default.config";
|
|
219
226
|
import {
|
|
220
227
|
UDatePickerRange,
|
|
@@ -225,7 +232,8 @@ import {
|
|
|
225
232
|
INPUT_RANGE_TYPE,
|
|
226
233
|
} from "./constants";
|
|
227
234
|
|
|
228
|
-
|
|
235
|
+
/* Should be a string for correct web-types gen */
|
|
236
|
+
defineOptions({ name: "UDatePickerRange", inheritAttrs: false });
|
|
229
237
|
|
|
230
238
|
const props = defineProps({
|
|
231
239
|
/**
|
|
@@ -83,6 +83,9 @@ const VALIDATION_RULES_REG_EX = {
|
|
|
83
83
|
|
|
84
84
|
<script setup>
|
|
85
85
|
import { ref, computed, onMounted, useSlots } from "vue";
|
|
86
|
+
|
|
87
|
+
import UIcon from "../ui.image-icon";
|
|
88
|
+
import ULabel from "../ui.form-label";
|
|
86
89
|
import UIService from "../service.ui";
|
|
87
90
|
|
|
88
91
|
import defaultConfig from "./configs/default.config";
|
|
@@ -68,7 +68,9 @@ import DragDrop from "@uppy/vue/src/drag-drop";
|
|
|
68
68
|
import { computed, onBeforeUnmount, onMounted, ref, useSlots, watch } from "vue";
|
|
69
69
|
|
|
70
70
|
import UIcon from "../ui.image-icon";
|
|
71
|
+
import ULabel from "../ui.form-label";
|
|
71
72
|
import UButton from "../ui.button";
|
|
73
|
+
import UFiles from "../ui.text-files";
|
|
72
74
|
|
|
73
75
|
import UIService, { getRandomId } from "../service.ui";
|
|
74
76
|
|
|
@@ -37,16 +37,15 @@
|
|
|
37
37
|
<script setup>
|
|
38
38
|
import { computed, ref, watch, onMounted, nextTick } from "vue";
|
|
39
39
|
|
|
40
|
-
import UIService from "../service.ui";
|
|
41
|
-
import { getRandomId } from "../service.ui";
|
|
40
|
+
import UIService, { getRandomId } from "../service.ui";
|
|
42
41
|
|
|
42
|
+
import UInput from "../ui.form-input";
|
|
43
43
|
import { SYMBOL_MINUS } from "../ui.text-money/constants";
|
|
44
44
|
|
|
45
45
|
import defaultConfig from "./configs/default.config";
|
|
46
|
-
import { UInputMoney } from "./constants";
|
|
47
|
-
|
|
48
46
|
import useAttrs from "./composables/attrs.composable";
|
|
49
47
|
import useFormatCurrency from "./composables/useFormatCurrency";
|
|
48
|
+
import { UInputMoney } from "./constants";
|
|
50
49
|
|
|
51
50
|
/* Should be a string for correct web-types gen */
|
|
52
51
|
defineOptions({ name: "UInputMoney", inheritAttrs: false });
|
|
@@ -62,6 +62,9 @@
|
|
|
62
62
|
<script setup>
|
|
63
63
|
import { computed, useSlots } from "vue";
|
|
64
64
|
|
|
65
|
+
import UIcon from "../ui.image-icon";
|
|
66
|
+
import UInput from "../ui.form-input";
|
|
67
|
+
import UButton from "../ui.button";
|
|
65
68
|
import UIService, { getRandomId } from "../service.ui";
|
|
66
69
|
|
|
67
70
|
import { UInputSearch } from "./constants";
|
|
@@ -30,11 +30,12 @@
|
|
|
30
30
|
<script setup>
|
|
31
31
|
import { inject, onMounted, ref, watchEffect } from "vue";
|
|
32
32
|
|
|
33
|
+
import ULabel from "../ui.form-label";
|
|
33
34
|
import UIService, { getRandomId } from "../service.ui";
|
|
34
35
|
|
|
35
36
|
import defaultConfig from "./configs/default.config";
|
|
36
|
-
import { URadio } from "./constants";
|
|
37
37
|
import { useAttrs } from "./composables/attrs.composable";
|
|
38
|
+
import { URadio } from "./constants";
|
|
38
39
|
|
|
39
40
|
/* Should be a string for correct web-types gen */
|
|
40
41
|
defineOptions({ name: "URadio", inheritAttrs: false });
|
|
@@ -23,6 +23,7 @@ import { computed } from "vue";
|
|
|
23
23
|
import { useStore } from "vuex";
|
|
24
24
|
|
|
25
25
|
import UIcon from "../ui.image-icon";
|
|
26
|
+
import URadio from "../ui.form-radio";
|
|
26
27
|
import UIService, { getRandomId } from "../service.ui";
|
|
27
28
|
|
|
28
29
|
import defaultConfig from "./configs/default.config";
|
|
@@ -205,6 +205,9 @@
|
|
|
205
205
|
import { ref, computed, nextTick, watch, useSlots, onMounted } from "vue";
|
|
206
206
|
import { debounce } from "lodash-es";
|
|
207
207
|
|
|
208
|
+
import UIcon from "../ui.image-icon";
|
|
209
|
+
import ULabel from "../ui.form-label";
|
|
210
|
+
import UDropdownList from "../ui.dropdown-list";
|
|
208
211
|
import UIService, { getRandomId, isMac } from "../service.ui";
|
|
209
212
|
|
|
210
213
|
import SelectService from "./services/select.service";
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
<script setup>
|
|
55
55
|
import { computed, onMounted, ref, useSlots } from "vue";
|
|
56
56
|
|
|
57
|
-
import
|
|
58
|
-
import { getRandomId } from "../service.ui";
|
|
57
|
+
import ULabel from "../ui.form-label";
|
|
58
|
+
import UIService, { getRandomId } from "../service.ui";
|
|
59
59
|
|
|
60
60
|
import { UTextarea } from "./constants";
|
|
61
61
|
import defaultConfig from "./configs/default.config";
|
|
@@ -148,7 +148,7 @@ let generatedIcons = [];
|
|
|
148
148
|
|
|
149
149
|
if (import.meta.env.PROD) {
|
|
150
150
|
generatedIcons = Object.entries(
|
|
151
|
-
import.meta.glob(
|
|
151
|
+
import.meta.glob(`../../../../src/assets/images/.generated/**/*.svg`, {
|
|
152
152
|
eager: true,
|
|
153
153
|
query: "?component",
|
|
154
154
|
}),
|
|
@@ -42,13 +42,11 @@
|
|
|
42
42
|
|
|
43
43
|
<script setup>
|
|
44
44
|
import { computed } from "vue";
|
|
45
|
-
|
|
46
45
|
import colors from "tailwindcss/colors";
|
|
47
|
-
import { grayColors } from "../service.tailwind";
|
|
48
46
|
|
|
49
47
|
import UHeader from "../ui.text-header";
|
|
50
|
-
|
|
51
48
|
import UIService from "../service.ui";
|
|
49
|
+
import { grayColors } from "../service.tailwind";
|
|
52
50
|
|
|
53
51
|
import { UStepper } from "./constants/index";
|
|
54
52
|
import defaultConfig from "./configs/default.config";
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
<script setup>
|
|
18
18
|
import { computed, provide } from "vue";
|
|
19
19
|
|
|
20
|
-
import UIService from "../service.ui";
|
|
21
20
|
import UTab from "../ui.navigation-tab";
|
|
21
|
+
import UIService from "../service.ui";
|
|
22
22
|
|
|
23
23
|
import { UTabs } from "./constants";
|
|
24
24
|
import defaultConfig from "./configs/default.config";
|
|
@@ -24,7 +24,8 @@
|
|
|
24
24
|
<script setup>
|
|
25
25
|
import { onMounted, ref, useSlots } from "vue";
|
|
26
26
|
|
|
27
|
-
import UIcon from "../ui.image-icon
|
|
27
|
+
import UIcon from "../ui.image-icon";
|
|
28
|
+
import UButton from "../ui.button";
|
|
28
29
|
import UIService from "../service.ui";
|
|
29
30
|
|
|
30
31
|
import { UAlert } from "./constatns";
|