guava-ui 0.3.0 → 0.3.2

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.
@@ -1,33 +1,52 @@
1
1
  import { AllowDropFunction } from 'element-plus/es/components/tree/src/tree.type';
2
+ import { AllowedComponentProps } from 'vue';
2
3
  import { App } from 'vue';
4
+ import { Attrs } from 'vue';
3
5
  import { ButtonType } from 'element-plus';
4
6
  import { CascaderOption } from 'element-plus';
7
+ import { ComponentCustomProperties } from 'vue';
8
+ import { ComponentCustomProps } from 'vue';
5
9
  import { ComponentInternalInstance } from 'vue';
6
10
  import { ComponentOptions } from 'vue';
11
+ import { ComponentOptionsBase } from 'vue';
7
12
  import { ComponentOptionsMixin } from 'vue';
8
13
  import { ComponentProvideOptions } from 'vue';
14
+ import { ComponentPublicInstance } from 'vue';
9
15
  import { ComponentSize } from 'element-plus';
10
16
  import { Composer } from '../vue-i18n/dist/vue-i18n.cjs.js';
11
17
  import { ComputedOptions } from 'vue';
12
18
  import { CSSProperties } from 'vue';
13
19
  import { DatePickerType } from 'element-plus';
20
+ import { DebuggerEvent } from 'vue';
14
21
  import { DefineComponent } from 'vue';
22
+ import { DialogBeforeCloseFn } from 'element-plus';
23
+ import { DialogTransition } from 'element-plus';
24
+ import { DrawerProps } from 'element-plus';
15
25
  import { ExtractPropTypes } from 'vue';
16
26
  import { FilterNodeMethodFunction } from 'element-plus/es/components/tree/src/tree.type';
17
27
  import { FormInstance } from 'element-plus';
28
+ import { GlobalComponents } from 'vue';
29
+ import { GlobalDirectives } from 'vue';
30
+ import { IconPropType } from 'element-plus/es/utils/vue/icon';
18
31
  import { JSX } from 'vue/jsx-runtime';
19
32
  import { LoadFunction } from 'element-plus/es/components/tree/src/tree.type';
20
33
  import { MethodOptions } from 'vue';
34
+ import { nextTick } from 'vue';
35
+ import { OnCleanup } from '@vue/reactivity';
21
36
  import { Pinia } from 'pinia';
22
37
  import { PropType } from 'vue';
23
38
  import { PublicProps } from 'vue';
24
39
  import { RenderContentFunction } from 'element-plus/es/components/tree/src/tree.type';
40
+ import { Slot } from 'vue';
25
41
  import { TableInstance } from 'element-plus';
26
42
  import { TreeComponentProps } from 'element-plus/es/components/tree/src/tree.type';
27
43
  import { TreeOptionProps } from 'element-plus';
28
44
  import { ValidatorFunction } from 'vue-types/dist/types';
45
+ import { VNodeProps } from 'vue';
29
46
  import { VueTypesInterface } from 'vue-types';
30
47
  import { VueTypeValidableDef } from 'vue-types';
48
+ import { WatchOptions } from 'vue';
49
+ import { WatchStopHandle } from 'vue';
31
50
 
32
51
  declare type __VLS_Props = {
33
52
  iconType?: string;
@@ -54,11 +73,11 @@ export { confirm_2 as confirm }
54
73
  export declare const crud: {
55
74
  fetchData: (fetch: AsyncFn, data: any) => Promise<any>;
56
75
  submit: (fetch: AsyncFn, data: any, hasMsg?: boolean, msg?: string) => Promise<any>;
57
- fetchTable: (tabNode: TableInstance, fetch: AsyncFn, data: any) => Promise<{}>;
76
+ fetchTable: (fetch: AsyncFn, data: any, tabNode?: TableInstance | null) => Promise<{}>;
58
77
  save: (fmNode: FormInstance, fetch: AsyncFn, check?: boolean, msg?: string) => Promise<false | Recordable<any> | null>;
59
78
  update: (fmNode: FormInstance, id: number, fetch: Async2Fn, check?: boolean, msg?: string) => Promise<false | Recordable<any>>;
60
79
  search: (fmNode: FormInstance, tabNode: TableInstance, fetch: AsyncFn) => Promise<{}>;
61
- searchNoFm: (tabNode: any, fetch: AsyncFn, data: any) => Promise<{}>;
80
+ searchNoFm: (tabNode: TableInstance, fetch: AsyncFn, data: any) => Promise<{}>;
62
81
  toNewPageSearch: (tabNode: ComponentInternalInstance | null, filterConditions: Recordable<any>, fetch: AsyncFn, pageInfo: PageInfo) => Promise<false | Recordable<any>>;
63
82
  insertResult: (searchData: Recordable<any>, result: any) => boolean | undefined;
64
83
  updateResult: (searchData: any, result: any, rownums: number) => boolean;
@@ -917,7 +936,7 @@ type: StringConstructor;
917
936
  default: undefined;
918
937
  };
919
938
  id: {
920
- type: StringConstructor;
939
+ type: PropType<string | [string, string]>;
921
940
  default: undefined;
922
941
  };
923
942
  modelValue: {
@@ -984,6 +1003,18 @@ unlink: {
984
1003
  type: BooleanConstructor;
985
1004
  default: boolean;
986
1005
  };
1006
+ teleported: {
1007
+ type: BooleanConstructor;
1008
+ default: boolean;
1009
+ };
1010
+ showShortcuts: {
1011
+ type: BooleanConstructor;
1012
+ default: boolean;
1013
+ };
1014
+ singlePanel: {
1015
+ type: BooleanConstructor;
1016
+ default: boolean;
1017
+ };
987
1018
  showWeekNumber: {
988
1019
  type: BooleanConstructor;
989
1020
  default: boolean;
@@ -998,7 +1029,7 @@ type: StringConstructor;
998
1029
  default: undefined;
999
1030
  };
1000
1031
  id: {
1001
- type: StringConstructor;
1032
+ type: PropType<string | [string, string]>;
1002
1033
  default: undefined;
1003
1034
  };
1004
1035
  modelValue: {
@@ -1065,6 +1096,18 @@ unlink: {
1065
1096
  type: BooleanConstructor;
1066
1097
  default: boolean;
1067
1098
  };
1099
+ teleported: {
1100
+ type: BooleanConstructor;
1101
+ default: boolean;
1102
+ };
1103
+ showShortcuts: {
1104
+ type: BooleanConstructor;
1105
+ default: boolean;
1106
+ };
1107
+ singlePanel: {
1108
+ type: BooleanConstructor;
1109
+ default: boolean;
1110
+ };
1068
1111
  showWeekNumber: {
1069
1112
  type: BooleanConstructor;
1070
1113
  default: boolean;
@@ -1082,8 +1125,9 @@ size: TDatePickerSize;
1082
1125
  type: DatePickerType;
1083
1126
  placeholder: string;
1084
1127
  vref: string;
1085
- id: string;
1128
+ id: string | [string, string];
1086
1129
  disabled: boolean;
1130
+ teleported: boolean;
1087
1131
  unlink: boolean;
1088
1132
  modelValue: TDatePickerType;
1089
1133
  clearable: boolean;
@@ -1096,6 +1140,8 @@ valueFormat: string;
1096
1140
  rangeSeparator: string;
1097
1141
  startPlaceholder: string;
1098
1142
  endPlaceholder: string;
1143
+ showShortcuts: boolean;
1144
+ singlePanel: boolean;
1099
1145
  showWeekNumber: boolean;
1100
1146
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1101
1147
 
@@ -1377,13 +1423,196 @@ export declare const GvExpandMenu: DefineComponent<ExtractPropTypes< {
1377
1423
  collapse: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1378
1424
  default: boolean;
1379
1425
  };
1426
+ isShow: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1427
+ default: boolean;
1428
+ };
1380
1429
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
1381
1430
  collapse: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1382
1431
  default: boolean;
1383
1432
  };
1433
+ isShow: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
1434
+ default: boolean;
1435
+ };
1384
1436
  }>> & Readonly<{}>, {
1385
1437
  collapse: boolean;
1386
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
1438
+ isShow: boolean;
1439
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {
1440
+ expandMenuRef: ({
1441
+ $: ComponentInternalInstance;
1442
+ $data: {};
1443
+ $props: {
1444
+ readonly direction?: "ltr" | "rtl" | "ttb" | "btt" | undefined;
1445
+ readonly resizable?: boolean | undefined;
1446
+ readonly size?: string | number | undefined;
1447
+ readonly withHeader?: boolean | undefined;
1448
+ readonly modalFade?: boolean | undefined;
1449
+ readonly headerAriaLevel?: string | undefined;
1450
+ readonly appendToBody?: boolean | undefined;
1451
+ readonly appendTo?: (string | HTMLElement) | undefined;
1452
+ readonly beforeClose?: DialogBeforeCloseFn | undefined;
1453
+ readonly destroyOnClose?: boolean | undefined;
1454
+ readonly closeOnClickModal?: boolean | undefined;
1455
+ readonly closeOnPressEscape?: boolean | undefined;
1456
+ readonly lockScroll?: boolean | undefined;
1457
+ readonly modal?: boolean | undefined;
1458
+ readonly modalPenetrable?: boolean | undefined;
1459
+ readonly openDelay?: number | undefined;
1460
+ readonly closeDelay?: number | undefined;
1461
+ readonly top?: string | undefined;
1462
+ readonly modelValue?: boolean | undefined;
1463
+ readonly modalClass?: string | undefined;
1464
+ readonly width?: string | number | undefined;
1465
+ readonly zIndex?: number | undefined;
1466
+ readonly trapFocus?: boolean | undefined;
1467
+ readonly transition?: DialogTransition | undefined;
1468
+ readonly center?: boolean | undefined;
1469
+ readonly alignCenter?: boolean | undefined;
1470
+ readonly closeIcon?: IconPropType | undefined;
1471
+ readonly draggable?: boolean | undefined;
1472
+ readonly overflow?: boolean | undefined;
1473
+ readonly fullscreen?: boolean | undefined;
1474
+ readonly headerClass?: string | undefined;
1475
+ readonly bodyClass?: string | undefined;
1476
+ readonly footerClass?: string | undefined;
1477
+ readonly showClose?: boolean | undefined;
1478
+ readonly title?: string | undefined;
1479
+ readonly ariaLevel?: string | undefined;
1480
+ readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
1481
+ readonly onResize?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
1482
+ readonly onOpen?: (() => any) | undefined | undefined;
1483
+ readonly onClose?: (() => any) | undefined | undefined;
1484
+ readonly onOpened?: (() => any) | undefined | undefined;
1485
+ readonly onClosed?: (() => any) | undefined | undefined;
1486
+ readonly onOpenAutoFocus?: (() => any) | undefined | undefined;
1487
+ readonly onCloseAutoFocus?: (() => any) | undefined | undefined;
1488
+ readonly "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
1489
+ readonly "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
1490
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1491
+ $attrs: Attrs;
1492
+ $refs: {
1493
+ [x: string]: unknown;
1494
+ };
1495
+ $slots: Readonly<{
1496
+ [name: string]: Slot<any> | undefined;
1497
+ }>;
1498
+ $root: ComponentPublicInstance | null;
1499
+ $parent: ComponentPublicInstance | null;
1500
+ $host: Element | null;
1501
+ $emit: ((event: "close") => void) & ((event: "resize", evt: MouseEvent, size: number) => void) & ((event: "open") => void) & ((event: "update:modelValue", value: boolean) => void) & ((event: "opened") => void) & ((event: "closed") => void) & ((event: "openAutoFocus") => void) & ((event: "closeAutoFocus") => void) & ((event: "resize-start", evt: MouseEvent, size: number) => void) & ((event: "resize-end", evt: MouseEvent, size: number) => void);
1502
+ $el: any;
1503
+ $options: ComponentOptionsBase<Readonly<DrawerProps> & Readonly<{
1504
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1505
+ onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
1506
+ onOpen?: (() => any) | undefined;
1507
+ onClose?: (() => any) | undefined;
1508
+ onOpened?: (() => any) | undefined;
1509
+ onClosed?: (() => any) | undefined;
1510
+ onOpenAutoFocus?: (() => any) | undefined;
1511
+ onCloseAutoFocus?: (() => any) | undefined;
1512
+ "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
1513
+ "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
1514
+ }>, {
1515
+ handleClose: () => void;
1516
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1517
+ "update:modelValue": (value: boolean) => void;
1518
+ resize: (evt: MouseEvent, size: number) => void;
1519
+ open: () => void;
1520
+ close: () => void;
1521
+ opened: () => void;
1522
+ closed: () => void;
1523
+ openAutoFocus: () => void;
1524
+ closeAutoFocus: () => void;
1525
+ "resize-start": (evt: MouseEvent, size: number) => void;
1526
+ "resize-end": (evt: MouseEvent, size: number) => void;
1527
+ }, string, {
1528
+ size: string | number;
1529
+ title: string;
1530
+ direction: "ltr" | "rtl" | "ttb" | "btt";
1531
+ appendTo: string | HTMLElement;
1532
+ transition: DialogTransition;
1533
+ overflow: boolean;
1534
+ closeOnClickModal: boolean;
1535
+ closeOnPressEscape: boolean;
1536
+ lockScroll: boolean;
1537
+ modal: boolean;
1538
+ openDelay: number;
1539
+ closeDelay: number;
1540
+ headerAriaLevel: string;
1541
+ alignCenter: boolean;
1542
+ draggable: boolean;
1543
+ showClose: boolean;
1544
+ ariaLevel: string;
1545
+ withHeader: boolean;
1546
+ modalFade: boolean;
1547
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1548
+ beforeCreate?: (() => void) | (() => void)[];
1549
+ created?: (() => void) | (() => void)[];
1550
+ beforeMount?: (() => void) | (() => void)[];
1551
+ mounted?: (() => void) | (() => void)[];
1552
+ beforeUpdate?: (() => void) | (() => void)[];
1553
+ updated?: (() => void) | (() => void)[];
1554
+ activated?: (() => void) | (() => void)[];
1555
+ deactivated?: (() => void) | (() => void)[];
1556
+ beforeDestroy?: (() => void) | (() => void)[];
1557
+ beforeUnmount?: (() => void) | (() => void)[];
1558
+ destroyed?: (() => void) | (() => void)[];
1559
+ unmounted?: (() => void) | (() => void)[];
1560
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1561
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1562
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1563
+ };
1564
+ $forceUpdate: () => void;
1565
+ $nextTick: nextTick;
1566
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1567
+ } & Readonly<{
1568
+ size: string | number;
1569
+ title: string;
1570
+ direction: "ltr" | "rtl" | "ttb" | "btt";
1571
+ appendTo: string | HTMLElement;
1572
+ transition: DialogTransition;
1573
+ overflow: boolean;
1574
+ closeOnClickModal: boolean;
1575
+ closeOnPressEscape: boolean;
1576
+ lockScroll: boolean;
1577
+ modal: boolean;
1578
+ openDelay: number;
1579
+ closeDelay: number;
1580
+ headerAriaLevel: string;
1581
+ alignCenter: boolean;
1582
+ draggable: boolean;
1583
+ showClose: boolean;
1584
+ ariaLevel: string;
1585
+ withHeader: boolean;
1586
+ modalFade: boolean;
1587
+ }> & Omit<Readonly<DrawerProps> & Readonly<{
1588
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1589
+ onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
1590
+ onOpen?: (() => any) | undefined;
1591
+ onClose?: (() => any) | undefined;
1592
+ onOpened?: (() => any) | undefined;
1593
+ onClosed?: (() => any) | undefined;
1594
+ onOpenAutoFocus?: (() => any) | undefined;
1595
+ onCloseAutoFocus?: (() => any) | undefined;
1596
+ "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
1597
+ "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
1598
+ }>, "size" | "transition" | "title" | "showClose" | "appendTo" | "handleClose" | "direction" | "draggable" | "withHeader" | "modalFade" | "headerAriaLevel" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "alignCenter" | "overflow" | "ariaLevel"> & {
1599
+ handleClose: () => void;
1600
+ } & {} & ComponentCustomProperties & {} & {
1601
+ $slots: {
1602
+ header?: (props: {
1603
+ close: () => void;
1604
+ titleId: string;
1605
+ titleClass: string;
1606
+ }) => any;
1607
+ } & {
1608
+ title?: (props: {}) => any;
1609
+ } & {
1610
+ default?: (props: {}) => any;
1611
+ } & {
1612
+ footer?: (props: {}) => any;
1613
+ };
1614
+ }) | null;
1615
+ }, HTMLDivElement>;
1387
1616
 
1388
1617
  export declare const GvForm: DefineComponent<ExtractPropTypes< {
1389
1618
  refForm: {
@@ -2619,7 +2848,7 @@ type: BooleanConstructor;
2619
2848
  required: false;
2620
2849
  default: boolean;
2621
2850
  };
2622
- }>, () => JSX.Element | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "row-dblclick"[], "row-dblclick", PublicProps, Readonly<ExtractPropTypes< {
2851
+ }>, () => JSX.Element | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("row-dblclick" | "row-click")[], "row-dblclick" | "row-click", PublicProps, Readonly<ExtractPropTypes< {
2623
2852
  refTable: {
2624
2853
  type: StringConstructor;
2625
2854
  required: false;
@@ -2777,6 +3006,7 @@ default: boolean;
2777
3006
  };
2778
3007
  }>> & Readonly<{
2779
3008
  "onRow-dblclick"?: ((...args: any[]) => any) | undefined;
3009
+ "onRow-click"?: ((...args: any[]) => any) | undefined;
2780
3010
  }>, {
2781
3011
  size: "" | "small" | "default" | "large";
2782
3012
  maxHeight: string | number | undefined;
@@ -2842,7 +3072,7 @@ type: BooleanConstructor;
2842
3072
  required: false;
2843
3073
  default: boolean;
2844
3074
  };
2845
- }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "tab-click"[], "tab-click", PublicProps, Readonly<ExtractPropTypes< {
3075
+ }>, () => JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
2846
3076
  name: {
2847
3077
  type: StringConstructor;
2848
3078
  required: false;
@@ -2873,9 +3103,7 @@ type: BooleanConstructor;
2873
3103
  required: false;
2874
3104
  default: boolean;
2875
3105
  };
2876
- }>> & Readonly<{
2877
- "onTab-click"?: ((...args: any[]) => any) | undefined;
2878
- }>, {
3106
+ }>> & Readonly<{}>, {
2879
3107
  name: string;
2880
3108
  disabled: boolean;
2881
3109
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "guava-ui",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "vue3 & element-plus & typesScript & vite UI platform",
5
5
  "author": "Andy <xukaixing@hotmail.com>",
6
6
  "license": "Apache-2.0",