guava-ui 0.3.0 → 0.3.1
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/README.md +11 -1
- package/lib/guava-ui.es.js +3994 -3840
- package/lib/guava-ui.es.js.map +1 -1
- package/lib/guava-ui.umd.js +2 -2
- package/lib/guava-ui.umd.js.map +1 -1
- package/lib/index.css +1 -1
- package/lib/types/index.d.ts +207 -4
- package/package.json +1 -1
package/lib/types/index.d.ts
CHANGED
|
@@ -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: (
|
|
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:
|
|
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;
|
|
@@ -1377,13 +1396,196 @@ export declare const GvExpandMenu: DefineComponent<ExtractPropTypes< {
|
|
|
1377
1396
|
collapse: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
1378
1397
|
default: boolean;
|
|
1379
1398
|
};
|
|
1399
|
+
isShow: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
1400
|
+
default: boolean;
|
|
1401
|
+
};
|
|
1380
1402
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
1381
1403
|
collapse: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
1382
1404
|
default: boolean;
|
|
1383
1405
|
};
|
|
1406
|
+
isShow: VueTypeValidableDef<boolean, ValidatorFunction<boolean>> & {
|
|
1407
|
+
default: boolean;
|
|
1408
|
+
};
|
|
1384
1409
|
}>> & Readonly<{}>, {
|
|
1385
1410
|
collapse: boolean;
|
|
1386
|
-
|
|
1411
|
+
isShow: boolean;
|
|
1412
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {
|
|
1413
|
+
expandMenuRef: ({
|
|
1414
|
+
$: ComponentInternalInstance;
|
|
1415
|
+
$data: {};
|
|
1416
|
+
$props: {
|
|
1417
|
+
readonly direction?: "ltr" | "rtl" | "ttb" | "btt" | undefined;
|
|
1418
|
+
readonly resizable?: boolean | undefined;
|
|
1419
|
+
readonly size?: string | number | undefined;
|
|
1420
|
+
readonly withHeader?: boolean | undefined;
|
|
1421
|
+
readonly modalFade?: boolean | undefined;
|
|
1422
|
+
readonly headerAriaLevel?: string | undefined;
|
|
1423
|
+
readonly appendToBody?: boolean | undefined;
|
|
1424
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
1425
|
+
readonly beforeClose?: DialogBeforeCloseFn | undefined;
|
|
1426
|
+
readonly destroyOnClose?: boolean | undefined;
|
|
1427
|
+
readonly closeOnClickModal?: boolean | undefined;
|
|
1428
|
+
readonly closeOnPressEscape?: boolean | undefined;
|
|
1429
|
+
readonly lockScroll?: boolean | undefined;
|
|
1430
|
+
readonly modal?: boolean | undefined;
|
|
1431
|
+
readonly modalPenetrable?: boolean | undefined;
|
|
1432
|
+
readonly openDelay?: number | undefined;
|
|
1433
|
+
readonly closeDelay?: number | undefined;
|
|
1434
|
+
readonly top?: string | undefined;
|
|
1435
|
+
readonly modelValue?: boolean | undefined;
|
|
1436
|
+
readonly modalClass?: string | undefined;
|
|
1437
|
+
readonly width?: string | number | undefined;
|
|
1438
|
+
readonly zIndex?: number | undefined;
|
|
1439
|
+
readonly trapFocus?: boolean | undefined;
|
|
1440
|
+
readonly transition?: DialogTransition | undefined;
|
|
1441
|
+
readonly center?: boolean | undefined;
|
|
1442
|
+
readonly alignCenter?: boolean | undefined;
|
|
1443
|
+
readonly closeIcon?: IconPropType | undefined;
|
|
1444
|
+
readonly draggable?: boolean | undefined;
|
|
1445
|
+
readonly overflow?: boolean | undefined;
|
|
1446
|
+
readonly fullscreen?: boolean | undefined;
|
|
1447
|
+
readonly headerClass?: string | undefined;
|
|
1448
|
+
readonly bodyClass?: string | undefined;
|
|
1449
|
+
readonly footerClass?: string | undefined;
|
|
1450
|
+
readonly showClose?: boolean | undefined;
|
|
1451
|
+
readonly title?: string | undefined;
|
|
1452
|
+
readonly ariaLevel?: string | undefined;
|
|
1453
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined | undefined;
|
|
1454
|
+
readonly onResize?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
1455
|
+
readonly onOpen?: (() => any) | undefined | undefined;
|
|
1456
|
+
readonly onClose?: (() => any) | undefined | undefined;
|
|
1457
|
+
readonly onOpened?: (() => any) | undefined | undefined;
|
|
1458
|
+
readonly onClosed?: (() => any) | undefined | undefined;
|
|
1459
|
+
readonly onOpenAutoFocus?: (() => any) | undefined | undefined;
|
|
1460
|
+
readonly onCloseAutoFocus?: (() => any) | undefined | undefined;
|
|
1461
|
+
readonly "onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
1462
|
+
readonly "onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined | undefined;
|
|
1463
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1464
|
+
$attrs: Attrs;
|
|
1465
|
+
$refs: {
|
|
1466
|
+
[x: string]: unknown;
|
|
1467
|
+
};
|
|
1468
|
+
$slots: Readonly<{
|
|
1469
|
+
[name: string]: Slot<any> | undefined;
|
|
1470
|
+
}>;
|
|
1471
|
+
$root: ComponentPublicInstance | null;
|
|
1472
|
+
$parent: ComponentPublicInstance | null;
|
|
1473
|
+
$host: Element | null;
|
|
1474
|
+
$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);
|
|
1475
|
+
$el: any;
|
|
1476
|
+
$options: ComponentOptionsBase<Readonly<DrawerProps> & Readonly<{
|
|
1477
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1478
|
+
onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
1479
|
+
onOpen?: (() => any) | undefined;
|
|
1480
|
+
onClose?: (() => any) | undefined;
|
|
1481
|
+
onOpened?: (() => any) | undefined;
|
|
1482
|
+
onClosed?: (() => any) | undefined;
|
|
1483
|
+
onOpenAutoFocus?: (() => any) | undefined;
|
|
1484
|
+
onCloseAutoFocus?: (() => any) | undefined;
|
|
1485
|
+
"onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
1486
|
+
"onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
1487
|
+
}>, {
|
|
1488
|
+
handleClose: () => void;
|
|
1489
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1490
|
+
"update:modelValue": (value: boolean) => void;
|
|
1491
|
+
resize: (evt: MouseEvent, size: number) => void;
|
|
1492
|
+
open: () => void;
|
|
1493
|
+
close: () => void;
|
|
1494
|
+
opened: () => void;
|
|
1495
|
+
closed: () => void;
|
|
1496
|
+
openAutoFocus: () => void;
|
|
1497
|
+
closeAutoFocus: () => void;
|
|
1498
|
+
"resize-start": (evt: MouseEvent, size: number) => void;
|
|
1499
|
+
"resize-end": (evt: MouseEvent, size: number) => void;
|
|
1500
|
+
}, string, {
|
|
1501
|
+
size: string | number;
|
|
1502
|
+
title: string;
|
|
1503
|
+
direction: "ltr" | "rtl" | "ttb" | "btt";
|
|
1504
|
+
appendTo: string | HTMLElement;
|
|
1505
|
+
transition: DialogTransition;
|
|
1506
|
+
overflow: boolean;
|
|
1507
|
+
closeOnClickModal: boolean;
|
|
1508
|
+
closeOnPressEscape: boolean;
|
|
1509
|
+
lockScroll: boolean;
|
|
1510
|
+
modal: boolean;
|
|
1511
|
+
openDelay: number;
|
|
1512
|
+
closeDelay: number;
|
|
1513
|
+
headerAriaLevel: string;
|
|
1514
|
+
alignCenter: boolean;
|
|
1515
|
+
draggable: boolean;
|
|
1516
|
+
showClose: boolean;
|
|
1517
|
+
ariaLevel: string;
|
|
1518
|
+
withHeader: boolean;
|
|
1519
|
+
modalFade: boolean;
|
|
1520
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1521
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
1522
|
+
created?: (() => void) | (() => void)[];
|
|
1523
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
1524
|
+
mounted?: (() => void) | (() => void)[];
|
|
1525
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
1526
|
+
updated?: (() => void) | (() => void)[];
|
|
1527
|
+
activated?: (() => void) | (() => void)[];
|
|
1528
|
+
deactivated?: (() => void) | (() => void)[];
|
|
1529
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
1530
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
1531
|
+
destroyed?: (() => void) | (() => void)[];
|
|
1532
|
+
unmounted?: (() => void) | (() => void)[];
|
|
1533
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1534
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1535
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1536
|
+
};
|
|
1537
|
+
$forceUpdate: () => void;
|
|
1538
|
+
$nextTick: nextTick;
|
|
1539
|
+
$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;
|
|
1540
|
+
} & Readonly<{
|
|
1541
|
+
size: string | number;
|
|
1542
|
+
title: string;
|
|
1543
|
+
direction: "ltr" | "rtl" | "ttb" | "btt";
|
|
1544
|
+
appendTo: string | HTMLElement;
|
|
1545
|
+
transition: DialogTransition;
|
|
1546
|
+
overflow: boolean;
|
|
1547
|
+
closeOnClickModal: boolean;
|
|
1548
|
+
closeOnPressEscape: boolean;
|
|
1549
|
+
lockScroll: boolean;
|
|
1550
|
+
modal: boolean;
|
|
1551
|
+
openDelay: number;
|
|
1552
|
+
closeDelay: number;
|
|
1553
|
+
headerAriaLevel: string;
|
|
1554
|
+
alignCenter: boolean;
|
|
1555
|
+
draggable: boolean;
|
|
1556
|
+
showClose: boolean;
|
|
1557
|
+
ariaLevel: string;
|
|
1558
|
+
withHeader: boolean;
|
|
1559
|
+
modalFade: boolean;
|
|
1560
|
+
}> & Omit<Readonly<DrawerProps> & Readonly<{
|
|
1561
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1562
|
+
onResize?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
1563
|
+
onOpen?: (() => any) | undefined;
|
|
1564
|
+
onClose?: (() => any) | undefined;
|
|
1565
|
+
onOpened?: (() => any) | undefined;
|
|
1566
|
+
onClosed?: (() => any) | undefined;
|
|
1567
|
+
onOpenAutoFocus?: (() => any) | undefined;
|
|
1568
|
+
onCloseAutoFocus?: (() => any) | undefined;
|
|
1569
|
+
"onResize-start"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
1570
|
+
"onResize-end"?: ((evt: MouseEvent, size: number) => any) | undefined;
|
|
1571
|
+
}>, "size" | "transition" | "title" | "showClose" | "appendTo" | "handleClose" | "direction" | "draggable" | "withHeader" | "modalFade" | "headerAriaLevel" | "closeOnClickModal" | "closeOnPressEscape" | "lockScroll" | "modal" | "openDelay" | "closeDelay" | "alignCenter" | "overflow" | "ariaLevel"> & {
|
|
1572
|
+
handleClose: () => void;
|
|
1573
|
+
} & {} & ComponentCustomProperties & {} & {
|
|
1574
|
+
$slots: {
|
|
1575
|
+
header?: (props: {
|
|
1576
|
+
close: () => void;
|
|
1577
|
+
titleId: string;
|
|
1578
|
+
titleClass: string;
|
|
1579
|
+
}) => any;
|
|
1580
|
+
} & {
|
|
1581
|
+
title?: (props: {}) => any;
|
|
1582
|
+
} & {
|
|
1583
|
+
default?: (props: {}) => any;
|
|
1584
|
+
} & {
|
|
1585
|
+
footer?: (props: {}) => any;
|
|
1586
|
+
};
|
|
1587
|
+
}) | null;
|
|
1588
|
+
}, HTMLDivElement>;
|
|
1387
1589
|
|
|
1388
1590
|
export declare const GvForm: DefineComponent<ExtractPropTypes< {
|
|
1389
1591
|
refForm: {
|
|
@@ -2619,7 +2821,7 @@ type: BooleanConstructor;
|
|
|
2619
2821
|
required: false;
|
|
2620
2822
|
default: boolean;
|
|
2621
2823
|
};
|
|
2622
|
-
}>, () => JSX.Element | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "row-dblclick"[], "row-dblclick", PublicProps, Readonly<ExtractPropTypes< {
|
|
2824
|
+
}>, () => JSX.Element | null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("row-dblclick" | "row-click")[], "row-dblclick" | "row-click", PublicProps, Readonly<ExtractPropTypes< {
|
|
2623
2825
|
refTable: {
|
|
2624
2826
|
type: StringConstructor;
|
|
2625
2827
|
required: false;
|
|
@@ -2777,6 +2979,7 @@ default: boolean;
|
|
|
2777
2979
|
};
|
|
2778
2980
|
}>> & Readonly<{
|
|
2779
2981
|
"onRow-dblclick"?: ((...args: any[]) => any) | undefined;
|
|
2982
|
+
"onRow-click"?: ((...args: any[]) => any) | undefined;
|
|
2780
2983
|
}>, {
|
|
2781
2984
|
size: "" | "small" | "default" | "large";
|
|
2782
2985
|
maxHeight: string | number | undefined;
|