@fastkit/vui 0.6.40 → 0.6.44

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.
@@ -7,8 +7,8 @@ export interface ViteVuiPluginOptions extends Partial<Pick<VuiServiceOptions, 'u
7
7
  mediaMatch?: string;
8
8
  iconFont?: RawIconFontEntry[];
9
9
  iconFontDefaults?: IconFontSettings;
10
- onBooted?: () => any;
11
- onBootError?: (err: unknown) => any;
10
+ onBooted?: (() => any) | (() => Promise<any>);
11
+ onBootError?: ((err: unknown) => any) | ((err: unknown) => Promise<any>);
12
12
  __dev?: boolean;
13
13
  }
14
14
  export interface ViteVuiPluginResultSettings extends Pick<VuiServiceOptions, 'uiSettings' | 'icons'> {
@@ -1 +1 @@
1
- {"version":3,"file":"vite-plugin.d.ts","sourceRoot":"","sources":["../../../../../../../packages/vui/src/tool/vite-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAK9B,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AA+F/C,MAAM,WAAW,oBACf,SAAQ,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC9B,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC;IACrB,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,GAAG,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAGD,MAAM,WAAW,2BACf,SAAQ,IAAI,CA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ACjB;AAGD,MAAM,WAAW,2BACf,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,GAAG,OAAO,CAAC;IACvD,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,2BAA2B,CAAC;IACtC,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EAAE,CAAC;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,aAAa,CAC3B,OAAO,GAAE,oBAAyB,GACjC,mBAAmB,CAuJrB"}
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
- mediaMatch.MEDIA_MATCH_CONDITIONS.forEach(({
318
- key
319
- }) => {
320
- const v = attrs[key];
321
- delete attrs[key];
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
@@ -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
- mediaMatch.MEDIA_MATCH_CONDITIONS.forEach(({
318
- key
319
- }) => {
320
- const v = attrs[key];
321
- delete attrs[key];
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>;
@@ -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
- MEDIA_MATCH_CONDITIONS.forEach(({
313
- key
314
- }) => {
315
- const v = attrs[key];
316
- delete attrs[key];
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.40",
3
+ "version": "0.6.44",
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.40",
36
- "@fastkit/icon-font": "0.6.40",
37
- "@fastkit/tiny-logger": "0.6.40",
38
- "@fastkit/vite-kit": "0.6.40",
39
- "@fastkit/vue-kit": "0.6.40",
35
+ "@fastkit/color-scheme": "0.6.44",
36
+ "@fastkit/icon-font": "0.6.44",
37
+ "@fastkit/tiny-logger": "0.6.44",
38
+ "@fastkit/vite-kit": "0.6.44",
39
+ "@fastkit/vue-kit": "0.6.44",
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, PropType, computed } from 'vue';
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
- MediaMatchKey,
26
- PropType<GridItemSizeValue | undefined>
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
- const v = attrs[key];
85
- delete attrs[key];
86
- if (v != null) {
87
- classes.push(`grid-size-${v}--${key}`);
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,
@@ -50,7 +50,7 @@ $props-map: (
50
50
  }
51
51
 
52
52
  @for $level from 1 through 6 {
53
- .text-h#{$level} {
53
+ .text-h#{$level}#{$breakpoint-suffix} {
54
54
  margin: var(--typo-h#{$level}-margin);
55
55
  font-size: var(--typo-h#{$level}-size);
56
56
  font-weight: var(--typo-h#{$level}-weight);
@@ -68,7 +68,7 @@ $props-map: (
68
68
  $selector: map-get($value-info, selector);
69
69
  $value: map-get($value-info, value);
70
70
 
71
- .#{selector}#{$breakpoint-suffix} {
71
+ .#{$selector}#{$breakpoint-suffix} {
72
72
  #{$prop}: unquote($value);
73
73
  }
74
74
  }
@@ -77,7 +77,7 @@ $props-map: (
77
77
  @for $i from 1 through 9 {
78
78
  $weight: $i * 100;
79
79
 
80
- .font-weight-#{$i}#{$breakpoint-suffix} {
80
+ .font-weight-#{$weight}#{$breakpoint-suffix} {
81
81
  font-weight: $weight;
82
82
  }
83
83
  }
@@ -106,8 +106,8 @@ export interface ViteVuiPluginOptions
106
106
  mediaMatch?: string;
107
107
  iconFont?: RawIconFontEntry[];
108
108
  iconFontDefaults?: IconFontSettings;
109
- onBooted?: () => any;
110
- onBootError?: (err: unknown) => any;
109
+ onBooted?: (() => any) | (() => Promise<any>);
110
+ onBootError?: ((err: unknown) => any) | ((err: unknown) => Promise<any>);
111
111
  __dev?: boolean;
112
112
  }
113
113