@fastkit/vui 0.6.6 → 0.6.10
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/dist/vui.cjs.js +27 -30
- package/dist/vui.cjs.prod.js +27 -30
- package/dist/vui.d.ts +2 -6
- package/dist/vui.esm-bundler.js +28 -29
- package/package.json +8 -8
package/dist/vui.cjs.js
CHANGED
|
@@ -23,7 +23,33 @@ const VUI_RADIO_GROUP_SYMBOL = 'vui-radio-group';
|
|
|
23
23
|
const VUI_RADIO_SYMBOL = 'vui-radio';
|
|
24
24
|
const VUI_SWITCH_GROUP_SYMBOL = 'vui-switch-group';
|
|
25
25
|
const VUI_SWITCH_SYMBOL = 'vui-switch';
|
|
26
|
-
const VUI_FORM_SYMBOL = 'vui-form';
|
|
26
|
+
const VUI_FORM_SYMBOL = 'vui-form';
|
|
27
|
+
function useVui() {
|
|
28
|
+
const vui = vue.inject(VuiInjectionKey);
|
|
29
|
+
if (!vui) {
|
|
30
|
+
throw new Error('missing vui service');
|
|
31
|
+
}
|
|
32
|
+
return vui;
|
|
33
|
+
}
|
|
34
|
+
function useVuiColorProvider() {
|
|
35
|
+
const parent = vue.inject(VuiColorProviderInjectionKey, null);
|
|
36
|
+
if (parent) {
|
|
37
|
+
return parent;
|
|
38
|
+
}
|
|
39
|
+
const vui = useVui();
|
|
40
|
+
const primary = vue.computed(() => vui.color('primary'));
|
|
41
|
+
const error = vue.computed(() => vui.color('error'));
|
|
42
|
+
const provider = {
|
|
43
|
+
primary,
|
|
44
|
+
error,
|
|
45
|
+
className: (type) => {
|
|
46
|
+
const scope = provider[type].value;
|
|
47
|
+
return `${scope}-scope`;
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
vue.provide(VuiColorProviderInjectionKey, provider);
|
|
51
|
+
return provider;
|
|
52
|
+
}
|
|
27
53
|
|
|
28
54
|
function createControlProps() {
|
|
29
55
|
return vueKit.createPropsOptions({
|
|
@@ -207,33 +233,6 @@ function defineFormSelectorComponent(opts) {
|
|
|
207
233
|
});
|
|
208
234
|
}
|
|
209
235
|
|
|
210
|
-
function useVui() {
|
|
211
|
-
const vui = vue.inject(VuiInjectionKey);
|
|
212
|
-
if (!vui) {
|
|
213
|
-
throw new Error('missing vui service');
|
|
214
|
-
}
|
|
215
|
-
return vui;
|
|
216
|
-
}
|
|
217
|
-
function useVuiColorProvider() {
|
|
218
|
-
const parent = vue.inject(VuiColorProviderInjectionKey, null);
|
|
219
|
-
if (parent) {
|
|
220
|
-
return parent;
|
|
221
|
-
}
|
|
222
|
-
const vui = useVui();
|
|
223
|
-
const primary = vue.computed(() => vui.color('primary'));
|
|
224
|
-
const error = vue.computed(() => vui.color('error'));
|
|
225
|
-
const provider = {
|
|
226
|
-
primary,
|
|
227
|
-
error,
|
|
228
|
-
className: (type) => {
|
|
229
|
-
const scope = provider[type].value;
|
|
230
|
-
return `${scope}-scope`;
|
|
231
|
-
},
|
|
232
|
-
};
|
|
233
|
-
vue.provide(VuiColorProviderInjectionKey, provider);
|
|
234
|
-
return provider;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
236
|
const VIcon = vue.defineComponent({
|
|
238
237
|
name: 'VIcon',
|
|
239
238
|
props: {
|
|
@@ -1175,8 +1174,6 @@ exports.defineFormSelectorComponent = defineFormSelectorComponent;
|
|
|
1175
1174
|
exports.installVuiPlugin = installVuiPlugin;
|
|
1176
1175
|
exports.useControl = useControl;
|
|
1177
1176
|
exports.useControlField = useControlField;
|
|
1178
|
-
exports.useVui = useVui;
|
|
1179
|
-
exports.useVuiColorProvider = useVuiColorProvider;
|
|
1180
1177
|
for (var k in vueKit) {
|
|
1181
1178
|
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = vueKit[k];
|
|
1182
1179
|
}
|
package/dist/vui.cjs.prod.js
CHANGED
|
@@ -23,7 +23,33 @@ const VUI_RADIO_GROUP_SYMBOL = 'vui-radio-group';
|
|
|
23
23
|
const VUI_RADIO_SYMBOL = 'vui-radio';
|
|
24
24
|
const VUI_SWITCH_GROUP_SYMBOL = 'vui-switch-group';
|
|
25
25
|
const VUI_SWITCH_SYMBOL = 'vui-switch';
|
|
26
|
-
const VUI_FORM_SYMBOL = 'vui-form';
|
|
26
|
+
const VUI_FORM_SYMBOL = 'vui-form';
|
|
27
|
+
function useVui() {
|
|
28
|
+
const vui = vue.inject(VuiInjectionKey);
|
|
29
|
+
if (!vui) {
|
|
30
|
+
throw new Error('missing vui service');
|
|
31
|
+
}
|
|
32
|
+
return vui;
|
|
33
|
+
}
|
|
34
|
+
function useVuiColorProvider() {
|
|
35
|
+
const parent = vue.inject(VuiColorProviderInjectionKey, null);
|
|
36
|
+
if (parent) {
|
|
37
|
+
return parent;
|
|
38
|
+
}
|
|
39
|
+
const vui = useVui();
|
|
40
|
+
const primary = vue.computed(() => vui.color('primary'));
|
|
41
|
+
const error = vue.computed(() => vui.color('error'));
|
|
42
|
+
const provider = {
|
|
43
|
+
primary,
|
|
44
|
+
error,
|
|
45
|
+
className: (type) => {
|
|
46
|
+
const scope = provider[type].value;
|
|
47
|
+
return `${scope}-scope`;
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
vue.provide(VuiColorProviderInjectionKey, provider);
|
|
51
|
+
return provider;
|
|
52
|
+
}
|
|
27
53
|
|
|
28
54
|
function createControlProps() {
|
|
29
55
|
return vueKit.createPropsOptions({
|
|
@@ -207,33 +233,6 @@ function defineFormSelectorComponent(opts) {
|
|
|
207
233
|
});
|
|
208
234
|
}
|
|
209
235
|
|
|
210
|
-
function useVui() {
|
|
211
|
-
const vui = vue.inject(VuiInjectionKey);
|
|
212
|
-
if (!vui) {
|
|
213
|
-
throw new Error('missing vui service');
|
|
214
|
-
}
|
|
215
|
-
return vui;
|
|
216
|
-
}
|
|
217
|
-
function useVuiColorProvider() {
|
|
218
|
-
const parent = vue.inject(VuiColorProviderInjectionKey, null);
|
|
219
|
-
if (parent) {
|
|
220
|
-
return parent;
|
|
221
|
-
}
|
|
222
|
-
const vui = useVui();
|
|
223
|
-
const primary = vue.computed(() => vui.color('primary'));
|
|
224
|
-
const error = vue.computed(() => vui.color('error'));
|
|
225
|
-
const provider = {
|
|
226
|
-
primary,
|
|
227
|
-
error,
|
|
228
|
-
className: (type) => {
|
|
229
|
-
const scope = provider[type].value;
|
|
230
|
-
return `${scope}-scope`;
|
|
231
|
-
},
|
|
232
|
-
};
|
|
233
|
-
vue.provide(VuiColorProviderInjectionKey, provider);
|
|
234
|
-
return provider;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
236
|
const VIcon = vue.defineComponent({
|
|
238
237
|
name: 'VIcon',
|
|
239
238
|
props: {
|
|
@@ -1175,8 +1174,6 @@ exports.defineFormSelectorComponent = defineFormSelectorComponent;
|
|
|
1175
1174
|
exports.installVuiPlugin = installVuiPlugin;
|
|
1176
1175
|
exports.useControl = useControl;
|
|
1177
1176
|
exports.useControlField = useControlField;
|
|
1178
|
-
exports.useVui = useVui;
|
|
1179
|
-
exports.useVuiColorProvider = useVuiColorProvider;
|
|
1180
1177
|
for (var k in vueKit) {
|
|
1181
1178
|
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = vueKit[k];
|
|
1182
1179
|
}
|
package/dist/vui.d.ts
CHANGED
|
@@ -406,10 +406,6 @@ export declare interface UseControlProviderOptions {
|
|
|
406
406
|
defaultSize?: ControlSize;
|
|
407
407
|
}
|
|
408
408
|
|
|
409
|
-
export declare function useVui(): VuiService;
|
|
410
|
-
|
|
411
|
-
export declare function useVuiColorProvider(): VuiColorProvider;
|
|
412
|
-
|
|
413
409
|
declare const ValidateCancelSymbol = "__ValidateCancelSymbol__";
|
|
414
410
|
|
|
415
411
|
declare interface ValidationError {
|
|
@@ -2258,7 +2254,7 @@ export declare const VTextarea: DefineComponent<{
|
|
|
2258
2254
|
variant?: "flat" | "outlined" | "filled" | undefined;
|
|
2259
2255
|
size?: "sm" | "md" | "lg" | undefined;
|
|
2260
2256
|
"v-slots"?: ResolveRawSlots<FormControlSlots & InputBoxSlots> | undefined;
|
|
2261
|
-
mask?:
|
|
2257
|
+
mask?: any;
|
|
2262
2258
|
}> & {
|
|
2263
2259
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
2264
2260
|
onChange?: ((value: string) => any) | undefined;
|
|
@@ -2513,7 +2509,7 @@ export declare const VTextField: DefineComponent<{
|
|
|
2513
2509
|
variant?: "flat" | "outlined" | "filled" | undefined;
|
|
2514
2510
|
size?: "sm" | "md" | "lg" | undefined;
|
|
2515
2511
|
"v-slots"?: ResolveRawSlots<FormControlSlots & InputBoxSlots> | undefined;
|
|
2516
|
-
mask?:
|
|
2512
|
+
mask?: any;
|
|
2517
2513
|
}> & {
|
|
2518
2514
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
|
2519
2515
|
onChange?: ((value: string) => any) | undefined;
|
package/dist/vui.esm-bundler.js
CHANGED
|
@@ -21,7 +21,33 @@ const VUI_RADIO_GROUP_SYMBOL = 'vui-radio-group';
|
|
|
21
21
|
const VUI_RADIO_SYMBOL = 'vui-radio';
|
|
22
22
|
const VUI_SWITCH_GROUP_SYMBOL = 'vui-switch-group';
|
|
23
23
|
const VUI_SWITCH_SYMBOL = 'vui-switch';
|
|
24
|
-
const VUI_FORM_SYMBOL = 'vui-form';
|
|
24
|
+
const VUI_FORM_SYMBOL = 'vui-form';
|
|
25
|
+
function useVui() {
|
|
26
|
+
const vui = inject(VuiInjectionKey);
|
|
27
|
+
if (!vui) {
|
|
28
|
+
throw new Error('missing vui service');
|
|
29
|
+
}
|
|
30
|
+
return vui;
|
|
31
|
+
}
|
|
32
|
+
function useVuiColorProvider() {
|
|
33
|
+
const parent = inject(VuiColorProviderInjectionKey, null);
|
|
34
|
+
if (parent) {
|
|
35
|
+
return parent;
|
|
36
|
+
}
|
|
37
|
+
const vui = useVui();
|
|
38
|
+
const primary = computed(() => vui.color('primary'));
|
|
39
|
+
const error = computed(() => vui.color('error'));
|
|
40
|
+
const provider = {
|
|
41
|
+
primary,
|
|
42
|
+
error,
|
|
43
|
+
className: (type) => {
|
|
44
|
+
const scope = provider[type].value;
|
|
45
|
+
return `${scope}-scope`;
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
provide(VuiColorProviderInjectionKey, provider);
|
|
49
|
+
return provider;
|
|
50
|
+
}
|
|
25
51
|
|
|
26
52
|
function createControlProps() {
|
|
27
53
|
return createPropsOptions({
|
|
@@ -205,33 +231,6 @@ function defineFormSelectorComponent(opts) {
|
|
|
205
231
|
});
|
|
206
232
|
}
|
|
207
233
|
|
|
208
|
-
function useVui() {
|
|
209
|
-
const vui = inject(VuiInjectionKey);
|
|
210
|
-
if (!vui) {
|
|
211
|
-
throw new Error('missing vui service');
|
|
212
|
-
}
|
|
213
|
-
return vui;
|
|
214
|
-
}
|
|
215
|
-
function useVuiColorProvider() {
|
|
216
|
-
const parent = inject(VuiColorProviderInjectionKey, null);
|
|
217
|
-
if (parent) {
|
|
218
|
-
return parent;
|
|
219
|
-
}
|
|
220
|
-
const vui = useVui();
|
|
221
|
-
const primary = computed(() => vui.color('primary'));
|
|
222
|
-
const error = computed(() => vui.color('error'));
|
|
223
|
-
const provider = {
|
|
224
|
-
primary,
|
|
225
|
-
error,
|
|
226
|
-
className: (type) => {
|
|
227
|
-
const scope = provider[type].value;
|
|
228
|
-
return `${scope}-scope`;
|
|
229
|
-
},
|
|
230
|
-
};
|
|
231
|
-
provide(VuiColorProviderInjectionKey, provider);
|
|
232
|
-
return provider;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
234
|
const VIcon = defineComponent({
|
|
236
235
|
name: 'VIcon',
|
|
237
236
|
props: {
|
|
@@ -1143,4 +1142,4 @@ function installVuiPlugin(app, opts) {
|
|
|
1143
1142
|
return app.use(VuiPlugin, opts);
|
|
1144
1143
|
}
|
|
1145
1144
|
|
|
1146
|
-
export { CONTROL_FIELD_VARIANTS, CONTROL_SIZES, VApp, VCheckbox, VCheckboxGroup, VForm, VIcon, VOption, VOptionGroup, VRadio, VRadioGroup, VSelect, VSwitch, VSwitchGroup, VTextField, VTextarea, VuiInjectionKey, VuiPlugin, VuiService, createControlFieldProviderProps, createControlProps, defineFormSelectorComponent, installVuiPlugin, useControl, useControlField
|
|
1145
|
+
export { CONTROL_FIELD_VARIANTS, CONTROL_SIZES, VApp, VCheckbox, VCheckboxGroup, VForm, VIcon, VOption, VOptionGroup, VRadio, VRadioGroup, VSelect, VSwitch, VSwitchGroup, VTextField, VTextarea, VuiInjectionKey, VuiPlugin, VuiService, createControlFieldProviderProps, createControlProps, defineFormSelectorComponent, installVuiPlugin, useControl, useControlField };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.10",
|
|
4
4
|
"description": "@fastkit/vui",
|
|
5
5
|
"buildOptions": {
|
|
6
6
|
"name": "Vui",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/dadajam4/fastkit/tree/dev/packages/vui#readme",
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"vite": "^2.6.
|
|
31
|
-
"vue": "^3.2.
|
|
30
|
+
"vite": "^2.6.14",
|
|
31
|
+
"vue": "^3.2.23"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@fastkit/color-scheme": "0.6.
|
|
35
|
-
"@fastkit/icon-font": "0.6.
|
|
36
|
-
"@fastkit/tiny-logger": "0.6.
|
|
37
|
-
"@fastkit/vite-kit": "0.6.
|
|
38
|
-
"@fastkit/vue-kit": "0.6.
|
|
34
|
+
"@fastkit/color-scheme": "0.6.10",
|
|
35
|
+
"@fastkit/icon-font": "0.6.10",
|
|
36
|
+
"@fastkit/tiny-logger": "0.6.10",
|
|
37
|
+
"@fastkit/vite-kit": "0.6.10",
|
|
38
|
+
"@fastkit/vue-kit": "0.6.10",
|
|
39
39
|
"eta": "^1.12.3",
|
|
40
40
|
"fs-extra": "^9.1.0"
|
|
41
41
|
}
|