@fastkit/vui 0.6.40 → 0.6.41
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 +12 -12
- package/dist/vui.cjs.prod.js +12 -12
- package/dist/vui.d.ts +7 -7
- package/dist/vui.esm-bundler.js +12 -12
- package/package.json +6 -6
- package/src/components/VGrid/VGridItem.tsx +19 -15
package/dist/vui.cjs.js
CHANGED
|
@@ -9,7 +9,6 @@ var vueUtils = require('@fastkit/vue-utils');
|
|
|
9
9
|
var vueScroller = require('@fastkit/vue-scroller');
|
|
10
10
|
var vueColorScheme = require('@fastkit/vue-color-scheme');
|
|
11
11
|
var vueLoading = require('@fastkit/vue-loading');
|
|
12
|
-
var mediaMatch = require('@fastkit/media-match');
|
|
13
12
|
var iconFont = require('@fastkit/icon-font');
|
|
14
13
|
var helpers = require('@fastkit/helpers');
|
|
15
14
|
var vueAppLayout = require('@fastkit/vue-app-layout');
|
|
@@ -292,7 +291,8 @@ const VGridItem = vue.defineComponent({
|
|
|
292
291
|
type: String,
|
|
293
292
|
default: 'div'
|
|
294
293
|
},
|
|
295
|
-
...undefined,
|
|
294
|
+
// ...(undefined as unknown as MQSizeProps),
|
|
295
|
+
size: undefined,
|
|
296
296
|
align: undefined,
|
|
297
297
|
justify: undefined,
|
|
298
298
|
order: undefined
|
|
@@ -304,26 +304,26 @@ const VGridItem = vue.defineComponent({
|
|
|
304
304
|
const attrs = { ...ctx.attrs
|
|
305
305
|
};
|
|
306
306
|
const {
|
|
307
|
+
size,
|
|
307
308
|
align,
|
|
308
309
|
justify,
|
|
309
310
|
order
|
|
310
311
|
} = props;
|
|
312
|
+
delete attrs.size;
|
|
311
313
|
delete attrs.align;
|
|
312
314
|
delete attrs.justify;
|
|
313
315
|
delete attrs.order;
|
|
316
|
+
size != null && classes.push(extractRawGridValueClasses(size, 'grid-size-'));
|
|
314
317
|
align && classes.push(extractRawGridValueClasses(align, 'self-align-'));
|
|
315
318
|
justify && classes.push(extractRawGridValueClasses(justify, 'self-justify-'));
|
|
316
|
-
order != null && classes.push(extractRawGridValueClasses(order, 'order-'));
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
319
|
+
order != null && classes.push(extractRawGridValueClasses(order, 'order-')); // MEDIA_MATCH_CONDITIONS.forEach(({ key }) => {
|
|
320
|
+
// const v = attrs[key];
|
|
321
|
+
// delete attrs[key];
|
|
322
|
+
// if (v != null) {
|
|
323
|
+
// classes.push(`grid-size-${v}--${key}`);
|
|
324
|
+
// }
|
|
325
|
+
// });
|
|
322
326
|
|
|
323
|
-
if (v != null) {
|
|
324
|
-
classes.push(`grid-size-${v}--${key}`);
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
327
|
return {
|
|
328
328
|
classes,
|
|
329
329
|
attrs
|
package/dist/vui.cjs.prod.js
CHANGED
|
@@ -9,7 +9,6 @@ var vueUtils = require('@fastkit/vue-utils');
|
|
|
9
9
|
var vueScroller = require('@fastkit/vue-scroller');
|
|
10
10
|
var vueColorScheme = require('@fastkit/vue-color-scheme');
|
|
11
11
|
var vueLoading = require('@fastkit/vue-loading');
|
|
12
|
-
var mediaMatch = require('@fastkit/media-match');
|
|
13
12
|
var iconFont = require('@fastkit/icon-font');
|
|
14
13
|
var helpers = require('@fastkit/helpers');
|
|
15
14
|
var vueAppLayout = require('@fastkit/vue-app-layout');
|
|
@@ -292,7 +291,8 @@ const VGridItem = vue.defineComponent({
|
|
|
292
291
|
type: String,
|
|
293
292
|
default: 'div'
|
|
294
293
|
},
|
|
295
|
-
...undefined,
|
|
294
|
+
// ...(undefined as unknown as MQSizeProps),
|
|
295
|
+
size: undefined,
|
|
296
296
|
align: undefined,
|
|
297
297
|
justify: undefined,
|
|
298
298
|
order: undefined
|
|
@@ -304,26 +304,26 @@ const VGridItem = vue.defineComponent({
|
|
|
304
304
|
const attrs = { ...ctx.attrs
|
|
305
305
|
};
|
|
306
306
|
const {
|
|
307
|
+
size,
|
|
307
308
|
align,
|
|
308
309
|
justify,
|
|
309
310
|
order
|
|
310
311
|
} = props;
|
|
312
|
+
delete attrs.size;
|
|
311
313
|
delete attrs.align;
|
|
312
314
|
delete attrs.justify;
|
|
313
315
|
delete attrs.order;
|
|
316
|
+
size != null && classes.push(extractRawGridValueClasses(size, 'grid-size-'));
|
|
314
317
|
align && classes.push(extractRawGridValueClasses(align, 'self-align-'));
|
|
315
318
|
justify && classes.push(extractRawGridValueClasses(justify, 'self-justify-'));
|
|
316
|
-
order != null && classes.push(extractRawGridValueClasses(order, 'order-'));
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
319
|
+
order != null && classes.push(extractRawGridValueClasses(order, 'order-')); // MEDIA_MATCH_CONDITIONS.forEach(({ key }) => {
|
|
320
|
+
// const v = attrs[key];
|
|
321
|
+
// delete attrs[key];
|
|
322
|
+
// if (v != null) {
|
|
323
|
+
// classes.push(`grid-size-${v}--${key}`);
|
|
324
|
+
// }
|
|
325
|
+
// });
|
|
322
326
|
|
|
323
|
-
if (v != null) {
|
|
324
|
-
classes.push(`grid-size-${v}--${key}`);
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
327
|
return {
|
|
328
328
|
classes,
|
|
329
329
|
attrs
|
package/dist/vui.d.ts
CHANGED
|
@@ -3574,14 +3574,14 @@ export declare const VGridContainer: DefineComponent<{
|
|
|
3574
3574
|
}>;
|
|
3575
3575
|
|
|
3576
3576
|
export declare const VGridItem: DefineComponent<{
|
|
3577
|
-
align: RawGridValueProp<GridItemAlignValue>;
|
|
3578
|
-
justify: RawGridValueProp<GridItemJustifyValue>;
|
|
3579
|
-
order: RawGridValueProp<string | number>;
|
|
3580
|
-
__MediaMatchKey__: PropType<GridItemSizeValue | undefined>;
|
|
3581
3577
|
tag: {
|
|
3582
3578
|
type: StringConstructor;
|
|
3583
3579
|
default: string;
|
|
3584
3580
|
};
|
|
3581
|
+
size: RawGridValueProp<GridItemSizeValue>;
|
|
3582
|
+
align: RawGridValueProp<GridItemAlignValue>;
|
|
3583
|
+
justify: RawGridValueProp<GridItemJustifyValue>;
|
|
3584
|
+
order: RawGridValueProp<string | number>;
|
|
3585
3585
|
innerHTML: PropType<string | undefined>;
|
|
3586
3586
|
class: PropType<any>;
|
|
3587
3587
|
style: PropType<StyleValue | undefined>;
|
|
@@ -3753,11 +3753,11 @@ export declare const VGridItem: DefineComponent<{
|
|
|
3753
3753
|
onTransitionend: PropType<((payload: TransitionEvent) => void) | undefined>;
|
|
3754
3754
|
onTransitionstart: PropType<((payload: TransitionEvent) => void) | undefined>;
|
|
3755
3755
|
}, () => JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, Record<string, any>, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{
|
|
3756
|
+
tag?: unknown;
|
|
3757
|
+
size?: unknown;
|
|
3756
3758
|
align?: unknown;
|
|
3757
3759
|
justify?: unknown;
|
|
3758
3760
|
order?: unknown;
|
|
3759
|
-
__MediaMatchKey__?: unknown;
|
|
3760
|
-
tag?: unknown;
|
|
3761
3761
|
innerHTML?: unknown;
|
|
3762
3762
|
class?: unknown;
|
|
3763
3763
|
style?: unknown;
|
|
@@ -3931,7 +3931,6 @@ export declare const VGridItem: DefineComponent<{
|
|
|
3931
3931
|
} & {
|
|
3932
3932
|
tag: string;
|
|
3933
3933
|
} & {
|
|
3934
|
-
__MediaMatchKey__?: GridItemSizeValue | undefined;
|
|
3935
3934
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
3936
3935
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
3937
3936
|
onPaste?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -4102,6 +4101,7 @@ export declare const VGridItem: DefineComponent<{
|
|
|
4102
4101
|
"aria-valuemin"?: (string | number) | undefined;
|
|
4103
4102
|
"aria-valuenow"?: (string | number) | undefined;
|
|
4104
4103
|
"aria-valuetext"?: string | undefined;
|
|
4104
|
+
size?: RawGridValue<GridItemSizeValue>;
|
|
4105
4105
|
align?: RawGridValue<GridItemAlignValue>;
|
|
4106
4106
|
justify?: RawGridValue<GridItemJustifyValue>;
|
|
4107
4107
|
order?: RawGridValue<string | number>;
|
package/dist/vui.esm-bundler.js
CHANGED
|
@@ -8,7 +8,6 @@ import { getDocumentScroller as getDocumentScroller$1 } from '@fastkit/vue-scrol
|
|
|
8
8
|
import { useScopeColorClass, colorSchemeProps, useColorClasses, toScopeColorClass } from '@fastkit/vue-color-scheme';
|
|
9
9
|
import { VProgressCircular } from '@fastkit/vue-loading';
|
|
10
10
|
export * from '@fastkit/vue-loading';
|
|
11
|
-
import { MEDIA_MATCH_CONDITIONS } from '@fastkit/media-match';
|
|
12
11
|
export { ICON_NAMES } from '@fastkit/icon-font';
|
|
13
12
|
import { isPromise } from '@fastkit/helpers';
|
|
14
13
|
import { VAppContainer, VAppLayoutControl } from '@fastkit/vue-app-layout';
|
|
@@ -287,7 +286,8 @@ const VGridItem = defineComponent({
|
|
|
287
286
|
type: String,
|
|
288
287
|
default: 'div'
|
|
289
288
|
},
|
|
290
|
-
...undefined,
|
|
289
|
+
// ...(undefined as unknown as MQSizeProps),
|
|
290
|
+
size: undefined,
|
|
291
291
|
align: undefined,
|
|
292
292
|
justify: undefined,
|
|
293
293
|
order: undefined
|
|
@@ -299,26 +299,26 @@ const VGridItem = defineComponent({
|
|
|
299
299
|
const attrs = { ...ctx.attrs
|
|
300
300
|
};
|
|
301
301
|
const {
|
|
302
|
+
size,
|
|
302
303
|
align,
|
|
303
304
|
justify,
|
|
304
305
|
order
|
|
305
306
|
} = props;
|
|
307
|
+
delete attrs.size;
|
|
306
308
|
delete attrs.align;
|
|
307
309
|
delete attrs.justify;
|
|
308
310
|
delete attrs.order;
|
|
311
|
+
size != null && classes.push(extractRawGridValueClasses(size, 'grid-size-'));
|
|
309
312
|
align && classes.push(extractRawGridValueClasses(align, 'self-align-'));
|
|
310
313
|
justify && classes.push(extractRawGridValueClasses(justify, 'self-justify-'));
|
|
311
|
-
order != null && classes.push(extractRawGridValueClasses(order, 'order-'));
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
314
|
+
order != null && classes.push(extractRawGridValueClasses(order, 'order-')); // MEDIA_MATCH_CONDITIONS.forEach(({ key }) => {
|
|
315
|
+
// const v = attrs[key];
|
|
316
|
+
// delete attrs[key];
|
|
317
|
+
// if (v != null) {
|
|
318
|
+
// classes.push(`grid-size-${v}--${key}`);
|
|
319
|
+
// }
|
|
320
|
+
// });
|
|
317
321
|
|
|
318
|
-
if (v != null) {
|
|
319
|
-
classes.push(`grid-size-${v}--${key}`);
|
|
320
|
-
}
|
|
321
|
-
});
|
|
322
322
|
return {
|
|
323
323
|
classes,
|
|
324
324
|
attrs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.41",
|
|
4
4
|
"description": "@fastkit/vui",
|
|
5
5
|
"buildOptions": {
|
|
6
6
|
"name": "Vui",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"vue": "^3.2.20"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@fastkit/color-scheme": "0.6.
|
|
36
|
-
"@fastkit/icon-font": "0.6.
|
|
37
|
-
"@fastkit/tiny-logger": "0.6.
|
|
38
|
-
"@fastkit/vite-kit": "0.6.
|
|
39
|
-
"@fastkit/vue-kit": "0.6.
|
|
35
|
+
"@fastkit/color-scheme": "0.6.41",
|
|
36
|
+
"@fastkit/icon-font": "0.6.41",
|
|
37
|
+
"@fastkit/tiny-logger": "0.6.41",
|
|
38
|
+
"@fastkit/vite-kit": "0.6.41",
|
|
39
|
+
"@fastkit/vue-kit": "0.6.41",
|
|
40
40
|
"eta": "^1.12.3",
|
|
41
41
|
"fs-extra": "^9.1.0",
|
|
42
42
|
"@tiptap/extension-link": "^2.0.0-beta.33",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './VGridItem.scss';
|
|
2
2
|
|
|
3
|
-
import { defineComponent,
|
|
4
|
-
import { MediaMatchKey, MEDIA_MATCH_CONDITIONS } from '@fastkit/media-match';
|
|
3
|
+
import { defineComponent, computed } from 'vue';
|
|
4
|
+
// import { MediaMatchKey, MEDIA_MATCH_CONDITIONS } from '@fastkit/media-match';
|
|
5
5
|
import { htmlAttributesPropOptions } from '@fastkit/vue-utils';
|
|
6
6
|
import { RawGridValueProp, extractRawGridValueClasses } from './schemes';
|
|
7
7
|
|
|
@@ -21,10 +21,10 @@ export type GridItemNumberSizeValue =
|
|
|
21
21
|
|
|
22
22
|
export type GridItemSizeValue = GridItemNumberSizeValue | 'auto';
|
|
23
23
|
|
|
24
|
-
type MQSizeProps = Record<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
>;
|
|
24
|
+
// type MQSizeProps = Record<
|
|
25
|
+
// MediaMatchKey,
|
|
26
|
+
// PropType<GridItemSizeValue | undefined>
|
|
27
|
+
// >;
|
|
28
28
|
|
|
29
29
|
export type GridItemAlignValue =
|
|
30
30
|
| 'flex-start'
|
|
@@ -55,7 +55,8 @@ export const VGridItem = defineComponent({
|
|
|
55
55
|
type: String,
|
|
56
56
|
default: 'div',
|
|
57
57
|
},
|
|
58
|
-
...(undefined as unknown as MQSizeProps),
|
|
58
|
+
// ...(undefined as unknown as MQSizeProps),
|
|
59
|
+
size: undefined as unknown as RawGridValueProp<GridItemSizeValue>,
|
|
59
60
|
align: undefined as unknown as RawGridValueProp<GridItemAlignValue>,
|
|
60
61
|
justify: undefined as unknown as RawGridValueProp<GridItemJustifyValue>,
|
|
61
62
|
order: undefined as unknown as RawGridValueProp<number | string>,
|
|
@@ -68,25 +69,28 @@ export const VGridItem = defineComponent({
|
|
|
68
69
|
...ctx.attrs,
|
|
69
70
|
};
|
|
70
71
|
|
|
71
|
-
const { align, justify, order } = props;
|
|
72
|
+
const { size, align, justify, order } = props;
|
|
72
73
|
|
|
74
|
+
delete attrs.size;
|
|
73
75
|
delete attrs.align;
|
|
74
76
|
delete attrs.justify;
|
|
75
77
|
delete attrs.order;
|
|
76
78
|
|
|
79
|
+
size != null &&
|
|
80
|
+
classes.push(extractRawGridValueClasses(size, 'grid-size-'));
|
|
77
81
|
align && classes.push(extractRawGridValueClasses(align, 'self-align-'));
|
|
78
82
|
justify &&
|
|
79
83
|
classes.push(extractRawGridValueClasses(justify, 'self-justify-'));
|
|
80
84
|
order != null &&
|
|
81
85
|
classes.push(extractRawGridValueClasses(order, 'order-'));
|
|
82
86
|
|
|
83
|
-
MEDIA_MATCH_CONDITIONS.forEach(({ key }) => {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
});
|
|
87
|
+
// MEDIA_MATCH_CONDITIONS.forEach(({ key }) => {
|
|
88
|
+
// const v = attrs[key];
|
|
89
|
+
// delete attrs[key];
|
|
90
|
+
// if (v != null) {
|
|
91
|
+
// classes.push(`grid-size-${v}--${key}`);
|
|
92
|
+
// }
|
|
93
|
+
// });
|
|
90
94
|
|
|
91
95
|
return {
|
|
92
96
|
classes,
|