yuyeon 0.1.0-rc.20 → 0.1.0-rc.22

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.
Files changed (42) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/yuyeon.js +2660 -2591
  3. package/dist/yuyeon.umd.cjs +11 -11
  4. package/lib/components/index.mjs +1 -0
  5. package/lib/components/index.mjs.map +1 -1
  6. package/lib/components/menu/YMenu.mjs +2 -1
  7. package/lib/components/menu/YMenu.mjs.map +1 -1
  8. package/lib/components/panel/YDividePanel.scss +1 -1
  9. package/lib/components/snackbar/YSnackbar.mjs +42 -37
  10. package/lib/components/snackbar/YSnackbar.mjs.map +1 -1
  11. package/lib/components/table/YDataTableRow.mjs +5 -2
  12. package/lib/components/table/YDataTableRow.mjs.map +1 -1
  13. package/lib/components/table/composibles/header.mjs +1 -1
  14. package/lib/components/table/composibles/header.mjs.map +1 -1
  15. package/lib/components/table/composibles/sorting.mjs.map +1 -1
  16. package/lib/components/text-interpolation/YTi.mjs +46 -0
  17. package/lib/components/text-interpolation/YTi.mjs.map +1 -0
  18. package/lib/components/text-interpolation/index.mjs +2 -0
  19. package/lib/components/text-interpolation/index.mjs.map +1 -0
  20. package/lib/components/tooltip/YTooltip.mjs +1 -0
  21. package/lib/components/tooltip/YTooltip.mjs.map +1 -1
  22. package/lib/util/parser.mjs +31 -0
  23. package/lib/util/parser.mjs.map +1 -0
  24. package/lib/util/string.mjs +30 -0
  25. package/lib/util/string.mjs.map +1 -1
  26. package/package.json +2 -1
  27. package/types/components/dropdown/YDropdown.d.ts +19 -7
  28. package/types/components/index.d.ts +1 -0
  29. package/types/components/layer/scroll-strategies.d.ts +2 -2
  30. package/types/components/menu/YMenu.d.ts +20 -11
  31. package/types/components/select/YSelect.d.ts +162 -111
  32. package/types/components/snackbar/YSnackbar.d.ts +483 -20
  33. package/types/components/table/YDataTable.d.ts +176 -14
  34. package/types/components/table/YDataTableServer.d.ts +176 -14
  35. package/types/components/table/composibles/header.d.ts +95 -5
  36. package/types/components/table/composibles/sorting.d.ts +22 -4
  37. package/types/components/text-interpolation/YTi.d.ts +20 -0
  38. package/types/components/text-interpolation/index.d.ts +1 -0
  39. package/types/components/tooltip/YTooltip.d.ts +14 -8
  40. package/types/shims.d.ts +2 -1
  41. package/types/util/parser.d.ts +4 -0
  42. package/types/util/string.d.ts +4 -0
@@ -0,0 +1,20 @@
1
+ import { PropType } from 'vue';
2
+
3
+ export declare const YTi: import('vue').DefineComponent<{
4
+ text: StringConstructor;
5
+ item: ObjectConstructor;
6
+ tag: {
7
+ type: PropType<keyof HTMLElementTagNameMap>;
8
+ default: string;
9
+ };
10
+ }, void, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
+ text: StringConstructor;
12
+ item: ObjectConstructor;
13
+ tag: {
14
+ type: PropType<keyof HTMLElementTagNameMap>;
15
+ default: string;
16
+ };
17
+ }>>, {
18
+ tag: keyof HTMLElementTagNameMap;
19
+ }, {}>;
20
+ export type YTi = InstanceType<typeof YTi>;
@@ -0,0 +1 @@
1
+ export * from './YTi';
@@ -16,17 +16,20 @@ export declare const YTooltip: import('vue').DefineComponent<{
16
16
  minHeight: PropType<string | number>;
17
17
  height: PropType<string | number>;
18
18
  maxHeight: PropType<string | number>;
19
- scrollStrategy: {
19
+ scrollStrategy: Omit<{
20
20
  type: PropType<"close" | "none" | "block" | ((data: import('../layer/scroll-strategies').ScrollStrategyData, props: import('../layer/scroll-strategies').StrategyProps, scope: import('vue').EffectScope) => void) | "reposition">;
21
21
  default: string;
22
22
  validator: (val: any) => boolean;
23
+ }, "default" | "type"> & {
24
+ type: PropType<NonNullable<"close" | "none" | "block" | ((data: import('../layer/scroll-strategies').ScrollStrategyData, props: import('../layer/scroll-strategies').StrategyProps, scope: import('vue').EffectScope) => void) | "reposition">>;
25
+ default: NonNullable<"close" | "none" | "block" | ((data: import('../layer/scroll-strategies').ScrollStrategyData, props: import('../layer/scroll-strategies').StrategyProps, scope: import('vue').EffectScope) => void) | "reposition">;
23
26
  };
24
27
  coordinateStrategy: Omit<{
25
28
  type: PropType<"levitation" | "arrangement" | import('../../composables/coordinate').CoordinateStrategyFn>;
26
29
  default: string;
27
30
  }, "default" | "type"> & {
28
- type: PropType<string | import('../../composables/coordinate').CoordinateStrategyFn>;
29
- default: string | import('../../composables/coordinate').CoordinateStrategyFn;
31
+ type: PropType<NonNullable<"levitation" | "arrangement" | import('../../composables/coordinate').CoordinateStrategyFn>>;
32
+ default: NonNullable<"levitation" | "arrangement" | import('../../composables/coordinate').CoordinateStrategyFn>;
30
33
  };
31
34
  position: {
32
35
  type: PropType<"default" | "top" | "bottom" | "start" | "end" | "left" | "right">;
@@ -3794,17 +3797,20 @@ export declare const YTooltip: import('vue').DefineComponent<{
3794
3797
  minHeight: PropType<string | number>;
3795
3798
  height: PropType<string | number>;
3796
3799
  maxHeight: PropType<string | number>;
3797
- scrollStrategy: {
3800
+ scrollStrategy: Omit<{
3798
3801
  type: PropType<"close" | "none" | "block" | ((data: import('../layer/scroll-strategies').ScrollStrategyData, props: import('../layer/scroll-strategies').StrategyProps, scope: import('vue').EffectScope) => void) | "reposition">;
3799
3802
  default: string;
3800
3803
  validator: (val: any) => boolean;
3804
+ }, "default" | "type"> & {
3805
+ type: PropType<NonNullable<"close" | "none" | "block" | ((data: import('../layer/scroll-strategies').ScrollStrategyData, props: import('../layer/scroll-strategies').StrategyProps, scope: import('vue').EffectScope) => void) | "reposition">>;
3806
+ default: NonNullable<"close" | "none" | "block" | ((data: import('../layer/scroll-strategies').ScrollStrategyData, props: import('../layer/scroll-strategies').StrategyProps, scope: import('vue').EffectScope) => void) | "reposition">;
3801
3807
  };
3802
3808
  coordinateStrategy: Omit<{
3803
3809
  type: PropType<"levitation" | "arrangement" | import('../../composables/coordinate').CoordinateStrategyFn>;
3804
3810
  default: string;
3805
3811
  }, "default" | "type"> & {
3806
- type: PropType<string | import('../../composables/coordinate').CoordinateStrategyFn>;
3807
- default: string | import('../../composables/coordinate').CoordinateStrategyFn;
3812
+ type: PropType<NonNullable<"levitation" | "arrangement" | import('../../composables/coordinate').CoordinateStrategyFn>>;
3813
+ default: NonNullable<"levitation" | "arrangement" | import('../../composables/coordinate').CoordinateStrategyFn>;
3808
3814
  };
3809
3815
  position: {
3810
3816
  type: PropType<"default" | "top" | "bottom" | "start" | "end" | "left" | "right">;
@@ -3903,12 +3909,12 @@ export declare const YTooltip: import('vue').DefineComponent<{
3903
3909
  is?: import('vue').Component | undefined;
3904
3910
  });
3905
3911
  offset: NonNullable<string | number | number[]>;
3906
- coordinateStrategy: string | import('../../composables/coordinate').CoordinateStrategyFn;
3912
+ coordinateStrategy: NonNullable<"levitation" | "arrangement" | import('../../composables/coordinate').CoordinateStrategyFn>;
3907
3913
  position: "default" | "top" | "bottom" | "start" | "end" | "left" | "right";
3908
3914
  origin: string;
3909
3915
  viewportMargin: string | number | unknown[];
3910
3916
  zIndex: string | number;
3911
- scrollStrategy: "close" | "none" | "block" | ((data: import('../layer/scroll-strategies').ScrollStrategyData, props: import('../layer/scroll-strategies').StrategyProps, scope: import('vue').EffectScope) => void) | "reposition";
3917
+ scrollStrategy: NonNullable<"close" | "none" | "block" | ((data: import('../layer/scroll-strategies').ScrollStrategyData, props: import('../layer/scroll-strategies').StrategyProps, scope: import('vue').EffectScope) => void) | "reposition">;
3912
3918
  contentStyles: import('vue').CSSProperties;
3913
3919
  openOnHover: boolean;
3914
3920
  contained: boolean;
package/types/shims.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { YAlert, YApp, YBadge, YButton, YCard, YCardBody, YCardFooter, YCardHeader, YCheckbox, YChip, YDataTable, YDataTableServer, YDateCalendar, YDatePicker, YDialog, YDividePanel, YDivider, YDropdown, YExpandHTransition, YExpandVTransition, YFieldInput, YForm, YHover, YIcon, YInput, YInputCheckbox, YIpv4Field, YLayer, YList, YListItem, YMenu, YMonthPicker, YPagination, YProgressBar, YSelect, YSnackbar, YSpinnerRing, YSwitch, YTab, YTable, YTabs, YTextarea, YTooltip, YTreeView, YTreeViewNode } from 'yuyeon/components';
1
+ import { YAlert, YApp, YBadge, YButton, YCard, YCardBody, YCardFooter, YCardHeader, YCheckbox, YChip, YDataTable, YDataTableServer, YDateCalendar, YDatePicker, YDialog, YDividePanel, YDivider, YDropdown, YExpandHTransition, YExpandVTransition, YFieldInput, YForm, YHover, YIcon, YInput, YInputCheckbox, YIpv4Field, YLayer, YList, YListItem, YMenu, YMonthPicker, YPagination, YProgressBar, YSelect, YSnackbar, YSpinnerRing, YSwitch, YTab, YTable, YTabs, YTextarea, YTooltip, YTreeView, YTreeViewNode, YTi } from 'yuyeon/components';
2
2
 
3
3
 
4
4
  declare module '@vue/runtime-core' {
@@ -49,5 +49,6 @@ declare module '@vue/runtime-core' {
49
49
  YBadge: typeof YBadge;
50
50
  YIpv4Field: typeof YIpv4Field;
51
51
  YHover: typeof YHover;
52
+ YTi: typeof YTi;
52
53
  }
53
54
  }
@@ -0,0 +1,4 @@
1
+ export declare function simpleBraceParse(input: string): {
2
+ type: string;
3
+ content: string;
4
+ }[];
@@ -2,3 +2,7 @@ export declare function camelToPascal(str: string): string;
2
2
  export declare function toKebabCase(str: string, from?: 'camel' | 'pascal'): string;
3
3
  export declare function kebabToCamel(str: string): string;
4
4
  export declare function randomCharOne(str: string): string;
5
+ export declare function simpleBraceParse(input: string): {
6
+ type: string;
7
+ content: string;
8
+ }[];