@hina-ui/vue 1.6.0 → 1.7.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/dist/index.js +3170 -461
- package/dist/index.js.map +1 -1
- package/dist/types/components/anchor/Anchor.vue.d.ts +26 -10
- package/dist/types/components/anchor/Anchor.vue.d.ts.map +1 -1
- package/dist/types/components/anchor/composables/useAnchor.d.ts +15 -0
- package/dist/types/components/anchor/composables/useAnchor.d.ts.map +1 -0
- package/dist/types/components/anchor/composables/useScrollSpy.d.ts.map +1 -1
- package/dist/types/components/anchor/types.d.ts +9 -0
- package/dist/types/components/anchor/types.d.ts.map +1 -0
- package/dist/types/components/app-shell/AppShell.vue.d.ts.map +1 -1
- package/dist/types/components/app-shell/composables/useSidebarScrollUpdates.d.ts +4 -0
- package/dist/types/components/app-shell/composables/useSidebarScrollUpdates.d.ts.map +1 -0
- package/dist/types/components/combobox/Combobox.vue.d.ts +1 -0
- package/dist/types/components/combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/types/components/data-table/DataTable.vue.d.ts +58 -0
- package/dist/types/components/data-table/DataTable.vue.d.ts.map +1 -0
- package/dist/types/components/data-table/DataTableAction.vue.d.ts +18 -0
- package/dist/types/components/data-table/DataTableAction.vue.d.ts.map +1 -0
- package/dist/types/components/data-table/DataTableDragPreview.vue.d.ts +24 -0
- package/dist/types/components/data-table/DataTableDragPreview.vue.d.ts.map +1 -0
- package/dist/types/components/data-table/DataTableEditor.vue.d.ts +24 -0
- package/dist/types/components/data-table/DataTableEditor.vue.d.ts.map +1 -0
- package/dist/types/components/data-table/DataTableHead.vue.d.ts +32 -0
- package/dist/types/components/data-table/DataTableHead.vue.d.ts.map +1 -0
- package/dist/types/components/data-table/DataTableRow.vue.d.ts +39 -0
- package/dist/types/components/data-table/DataTableRow.vue.d.ts.map +1 -0
- package/dist/types/components/data-table/DataTableSelection.vue.d.ts +15 -0
- package/dist/types/components/data-table/DataTableSelection.vue.d.ts.map +1 -0
- package/dist/types/components/data-table/DataTableText.vue.d.ts +8 -0
- package/dist/types/components/data-table/DataTableText.vue.d.ts.map +1 -0
- package/dist/types/components/data-table/Slot.d.ts +8 -0
- package/dist/types/components/data-table/Slot.d.ts.map +1 -0
- package/dist/types/components/data-table/column-sizing.d.ts +22 -0
- package/dist/types/components/data-table/column-sizing.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useDataTable.d.ts +80 -0
- package/dist/types/components/data-table/composables/useDataTable.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useTableColumns.d.ts +51 -0
- package/dist/types/components/data-table/composables/useTableColumns.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useTableDrag.d.ts +53 -0
- package/dist/types/components/data-table/composables/useTableDrag.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useTableEditing.d.ts +27 -0
- package/dist/types/components/data-table/composables/useTableEditing.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useTableExport.d.ts +3 -0
- package/dist/types/components/data-table/composables/useTableExport.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useTableResize.d.ts +42 -0
- package/dist/types/components/data-table/composables/useTableResize.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useTableResizeHandles.d.ts +8 -0
- package/dist/types/components/data-table/composables/useTableResizeHandles.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useTableText.d.ts +6 -0
- package/dist/types/components/data-table/composables/useTableText.d.ts.map +1 -0
- package/dist/types/components/data-table/composables/useTableVirtual.d.ts +55 -0
- package/dist/types/components/data-table/composables/useTableVirtual.d.ts.map +1 -0
- package/dist/types/components/data-table/features.d.ts +16 -0
- package/dist/types/components/data-table/features.d.ts.map +1 -0
- package/dist/types/components/data-table/types.d.ts +225 -0
- package/dist/types/components/data-table/types.d.ts.map +1 -0
- package/dist/types/components/data-table/utils.d.ts +10 -0
- package/dist/types/components/data-table/utils.d.ts.map +1 -0
- package/dist/types/components/form/composables/useForm.d.ts.map +1 -1
- package/dist/types/components/sidebar/DrawerScope.d.ts +13 -2
- package/dist/types/components/sidebar/DrawerScope.d.ts.map +1 -1
- package/dist/types/components/sidebar/Sidebar.vue.d.ts +4 -1
- package/dist/types/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/types/components/sidebar/context.d.ts +1 -0
- package/dist/types/components/sidebar/context.d.ts.map +1 -1
- package/dist/types/components/sidebar/sidebar.variants.d.ts +3 -3
- package/dist/types/components/table/TableHead.vue.d.ts +2 -2
- package/dist/types/components/table/TableHead.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +3 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/locale/en-US.d.ts.map +1 -1
- package/dist/types/locale/types.d.ts +12 -0
- package/dist/types/locale/types.d.ts.map +1 -1
- package/dist/types/locale/zh-CN.d.ts.map +1 -1
- package/package.json +14 -12
- package/src/components/anchor/Anchor.vue +15 -19
- package/src/components/anchor/composables/useAnchor.ts +19 -0
- package/src/components/anchor/composables/useScrollSpy.ts +6 -1
- package/src/components/anchor/types.ts +8 -0
- package/src/components/app-shell/AppShell.vue +5 -2
- package/src/components/app-shell/composables/useSidebarScrollUpdates.ts +52 -0
- package/src/components/combobox/Combobox.vue +11 -1
- package/src/components/data-table/DataTable.vue +340 -0
- package/src/components/data-table/DataTableAction.vue +15 -0
- package/src/components/data-table/DataTableDragPreview.vue +72 -0
- package/src/components/data-table/DataTableEditor.vue +59 -0
- package/src/components/data-table/DataTableHead.vue +181 -0
- package/src/components/data-table/DataTableRow.vue +255 -0
- package/src/components/data-table/DataTableSelection.vue +51 -0
- package/src/components/data-table/DataTableText.vue +20 -0
- package/src/components/data-table/Slot.ts +12 -0
- package/src/components/data-table/column-sizing.ts +101 -0
- package/src/components/data-table/composables/useDataTable.ts +425 -0
- package/src/components/data-table/composables/useTableColumns.ts +253 -0
- package/src/components/data-table/composables/useTableDrag.ts +345 -0
- package/src/components/data-table/composables/useTableEditing.ts +184 -0
- package/src/components/data-table/composables/useTableExport.ts +44 -0
- package/src/components/data-table/composables/useTableResize.ts +292 -0
- package/src/components/data-table/composables/useTableResizeHandles.ts +72 -0
- package/src/components/data-table/composables/useTableText.ts +13 -0
- package/src/components/data-table/composables/useTableVirtual.ts +109 -0
- package/src/components/data-table/features.ts +32 -0
- package/src/components/data-table/types.ts +218 -0
- package/src/components/data-table/utils.ts +75 -0
- package/src/components/form/composables/useForm.ts +44 -8
- package/src/components/sidebar/DrawerScope.ts +12 -4
- package/src/components/sidebar/Sidebar.vue +27 -7
- package/src/components/sidebar/context.ts +1 -0
- package/src/components/sidebar/sidebar.variants.ts +1 -1
- package/src/components/table/TableHead.vue +1 -1
- package/src/index.ts +26 -1
- package/src/locale/en-US.ts +13 -0
- package/src/locale/types.ts +13 -0
- package/src/locale/zh-CN.ts +13 -0
- package/src/styles/data-table.css +331 -0
- package/src/styles/tokens.css +1 -0
- package/src/styles/typography.css +3 -0
|
@@ -1,14 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import type { AnchorItem, AnchorSlotItem } from './types';
|
|
2
|
+
export type { AnchorItem } from './types';
|
|
3
|
+
declare const __VLS_export: <T extends AnchorItem = AnchorItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
items: T[];
|
|
6
|
+
label?: string;
|
|
7
|
+
class?: string;
|
|
8
|
+
}> & (typeof globalThis extends {
|
|
9
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
10
|
+
} ? P : {});
|
|
11
|
+
expose: (exposed: {}) => void;
|
|
12
|
+
attrs: any;
|
|
13
|
+
slots: {
|
|
14
|
+
trailing?(props: {
|
|
15
|
+
item: AnchorSlotItem<T>;
|
|
16
|
+
active: boolean;
|
|
17
|
+
}): unknown;
|
|
18
|
+
};
|
|
19
|
+
emit: {};
|
|
20
|
+
}>) => import("vue").VNode & {
|
|
21
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
10
22
|
};
|
|
11
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
23
|
declare const _default: typeof __VLS_export;
|
|
13
24
|
export default _default;
|
|
25
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
26
|
+
[K in keyof T]: T[K];
|
|
27
|
+
} : {
|
|
28
|
+
[K in keyof T as K]: T[K];
|
|
29
|
+
}) & {};
|
|
14
30
|
//# sourceMappingURL=Anchor.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/anchor/Anchor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Anchor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/anchor/Anchor.vue"],"names":[],"mappings":"AAgFE,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAEzD,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,UAAU,GAAG,UAAU,EACzD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAwJO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB;eApJ5C,CAAC,EAAE;gBACF,MAAM;gBACN,MAAM;MAkJwD,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;yBA/IU;YAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;YAAC,MAAM,EAAE,OAAO,CAAA;SAAE,GAAG,OAAO;;UAiJpE,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AnchorItem, AnchorSlotItem } from '../types';
|
|
2
|
+
export declare function useAnchor<T extends AnchorItem>(items: () => T[]): {
|
|
3
|
+
visible: import("vue").ShallowRef<ReadonlySet<string>, ReadonlySet<string>>;
|
|
4
|
+
covered: import("vue").ComputedRef<import("./useScrollSpy").SpyEntry[]>;
|
|
5
|
+
current: import("vue").ComputedRef<string>;
|
|
6
|
+
span: import("vue").ComputedRef<string | undefined>;
|
|
7
|
+
jump: (event: MouseEvent, id: string) => void;
|
|
8
|
+
entries: import("vue").ComputedRef<{
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
depth: number;
|
|
12
|
+
item: AnchorSlotItem<T>;
|
|
13
|
+
}[]>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=useAnchor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/components/anchor/composables/useAnchor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAG1D,wBAAgB,SAAS,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE;;;;;;;;;;cAGA,cAAc,CAAC,CAAC,CAAC;;EAWhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrollSpy.d.ts","sourceRoot":"","sources":["../../../../../src/components/anchor/composables/useScrollSpy.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,QAAQ,EAAE;;;;;
|
|
1
|
+
{"version":3,"file":"useScrollSpy.d.ts","sourceRoot":"","sources":["../../../../../src/components/anchor/composables/useScrollSpy.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,QAAQ,EAAE;;;;;kBAqD/B,UAAU,MAAM,MAAM;EAU5C"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface AnchorItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
children?: AnchorItem[];
|
|
5
|
+
}
|
|
6
|
+
export type AnchorSlotItem<T extends AnchorItem> = T | (T extends {
|
|
7
|
+
children?: AnchorItem[];
|
|
8
|
+
} ? NonNullable<T['children']>[number] : never);
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/anchor/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CACxB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,UAAU,IAC7C,CAAC,GAAG,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAA;CAAE,GAAG,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/app-shell/AppShell.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AppShell.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/app-shell/AppShell.vue"],"names":[],"mappings":"AAoHE,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAMtE,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAoDN,KAAK,gBAAgB,GAAG;IACx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;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type ScrollArea from '../../scroll-area/ScrollArea.vue';
|
|
3
|
+
export declare function useSidebarScrollUpdates(area: Readonly<Ref<InstanceType<typeof ScrollArea> | undefined>>): (event: TransitionEvent) => void;
|
|
4
|
+
//# sourceMappingURL=useSidebarScrollUpdates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSidebarScrollUpdates.d.ts","sourceRoot":"","sources":["../../../../../src/components/app-shell/composables/useSidebarScrollUpdates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAElE,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAA;AAE9D,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,YAAY,CAAC,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC,CAAC,IA+BxD,OAAO,eAAe,UAe/B"}
|
|
@@ -6,6 +6,7 @@ declare const __VLS_export: <T extends SelectOption = SelectOption>(__VLS_props:
|
|
|
6
6
|
selectedOption?: T | null;
|
|
7
7
|
placeholder?: string;
|
|
8
8
|
ignoreFilter?: boolean;
|
|
9
|
+
loading?: boolean;
|
|
9
10
|
clearable?: boolean;
|
|
10
11
|
variant?: InputVariants["variant"];
|
|
11
12
|
size?: InputVariants["size"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Combobox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/combobox/Combobox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Combobox.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/combobox/Combobox.vue"],"names":[],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AxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { DataTableEdit, DataTableFilter, DataTableKey, DataTableProps, DataTableQuery, DataTableReorder, DataTableSlots, DataTableSort } from './types';
|
|
2
|
+
declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<(DataTableProps<T> & {
|
|
4
|
+
page?: number;
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
sorting?: DataTableSort[];
|
|
7
|
+
filter?: string;
|
|
8
|
+
columnFilters?: DataTableFilter[];
|
|
9
|
+
grouping?: string[];
|
|
10
|
+
selected?: DataTableKey[];
|
|
11
|
+
expanded?: DataTableKey[];
|
|
12
|
+
expandedGroups?: string[];
|
|
13
|
+
hiddenColumns?: string[];
|
|
14
|
+
columnOrder?: string[];
|
|
15
|
+
columnWidths?: Record<string, number>;
|
|
16
|
+
}) & {
|
|
17
|
+
onEdit?: ((edit: DataTableEdit<T>) => any) | undefined;
|
|
18
|
+
onChange?: ((query: DataTableQuery) => any) | undefined;
|
|
19
|
+
"onUpdate:selected"?: ((value: DataTableKey[]) => any) | undefined;
|
|
20
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
21
|
+
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
22
|
+
"onUpdate:expanded"?: ((value: DataTableKey[]) => any) | undefined;
|
|
23
|
+
onRowContextmenu?: ((row: T, event: MouseEvent) => any) | undefined;
|
|
24
|
+
onRowClick?: ((row: T, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
25
|
+
onRowReorder?: ((change: DataTableReorder<T>) => any) | undefined;
|
|
26
|
+
"onUpdate:rows"?: ((rows: T[]) => any) | undefined;
|
|
27
|
+
onEditError?: ((error: unknown, edit: DataTableEdit<T>) => any) | undefined;
|
|
28
|
+
"onUpdate:sorting"?: ((value: DataTableSort[]) => any) | undefined;
|
|
29
|
+
"onUpdate:filter"?: ((value: string) => any) | undefined;
|
|
30
|
+
"onUpdate:columnFilters"?: ((value: DataTableFilter[]) => any) | undefined;
|
|
31
|
+
"onUpdate:grouping"?: ((value: string[]) => any) | undefined;
|
|
32
|
+
"onUpdate:expandedGroups"?: ((value: string[]) => any) | undefined;
|
|
33
|
+
"onUpdate:hiddenColumns"?: ((value: string[]) => any) | undefined;
|
|
34
|
+
"onUpdate:columnOrder"?: ((value: string[]) => any) | undefined;
|
|
35
|
+
"onUpdate:columnWidths"?: ((value: Record<string, number>) => any) | undefined;
|
|
36
|
+
}> & (typeof globalThis extends {
|
|
37
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
38
|
+
} ? P : {});
|
|
39
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<{
|
|
40
|
+
viewport: import("vue").ComputedRef<HTMLElement | undefined>;
|
|
41
|
+
element: import("vue").ShallowRef<HTMLTableElement | undefined, HTMLTableElement | undefined>;
|
|
42
|
+
state: import("vue").ComputedRef<import("./types").DataTableState<T>>;
|
|
43
|
+
api: import("./types").DataTableApi<T>;
|
|
44
|
+
}>) => void;
|
|
45
|
+
attrs: any;
|
|
46
|
+
slots: DataTableSlots<T>;
|
|
47
|
+
emit: (((evt: "edit", edit: DataTableEdit<T>) => void) & ((evt: "change", query: DataTableQuery) => void) & ((evt: "rowContextmenu", row: T, event: MouseEvent) => void) & ((evt: "rowClick", row: T, event: MouseEvent | KeyboardEvent) => void) & ((evt: "rowReorder", change: DataTableReorder<T>) => void) & ((evt: "update:rows", rows: T[]) => void) & ((evt: "editError", error: unknown, edit: DataTableEdit<T>) => void)) & (((event: "update:selected", value: DataTableKey[]) => void) & ((event: "update:pageSize", value: number) => void) & ((event: "update:page", value: number) => void) & ((event: "update:expanded", value: DataTableKey[]) => void) & ((event: "update:sorting", value: DataTableSort[]) => void) & ((event: "update:filter", value: string) => void) & ((event: "update:columnFilters", value: DataTableFilter[]) => void) & ((event: "update:grouping", value: string[]) => void) & ((event: "update:expandedGroups", value: string[]) => void) & ((event: "update:hiddenColumns", value: string[]) => void) & ((event: "update:columnOrder", value: string[]) => void) & ((event: "update:columnWidths", value: Record<string, number>) => void));
|
|
48
|
+
}>) => import("vue").VNode & {
|
|
49
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
50
|
+
};
|
|
51
|
+
declare const _default: typeof __VLS_export;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
54
|
+
[K in keyof T]: T[K];
|
|
55
|
+
} : {
|
|
56
|
+
[K in keyof T as K]: T[K];
|
|
57
|
+
}) & {};
|
|
58
|
+
//# sourceMappingURL=DataTable.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/DataTable.vue"],"names":[],"mappings":"AA4WE,OAAO,KAAK,EACV,aAAa,EACb,eAAe,EACf,YAAY,EACZ,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,SAAS,CAAA;AAEhB,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,EACxC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,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boolean;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_6: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_6) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=DataTableAction.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableAction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/DataTableAction.vue"],"names":[],"mappings":"AAmBE,KAAK,WAAW,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAuC/D,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAK/C,QAAA,MAAM,UAAU,kSAEd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DataTableDrag } from './composables/useTableDrag';
|
|
2
|
+
import type { DataTableLayout } from './composables/useTableColumns';
|
|
3
|
+
declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
drag: DataTableDrag<T>;
|
|
6
|
+
layout: DataTableLayout<T>;
|
|
7
|
+
}> & (typeof globalThis extends {
|
|
8
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
9
|
+
} ? P : {});
|
|
10
|
+
expose: (exposed: {}) => void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {};
|
|
13
|
+
emit: {};
|
|
14
|
+
}>) => import("vue").VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|
|
24
|
+
//# sourceMappingURL=DataTableDragPreview.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableDragPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/DataTableDragPreview.vue"],"names":[],"mappings":"AA4EE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,EACxC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WA0HO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB;cAzH5B,aAAa,CAAC,CAAC,CAAC;gBAAU,eAAe,CAAC,CAAC,CAAC;MAyHG,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;WACH,EAAE;UACH,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DataTableEditorContext, DataTableSlots } from './types';
|
|
2
|
+
declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
4
|
+
context: DataTableEditorContext<T>;
|
|
5
|
+
slots: DataTableSlots<T>;
|
|
6
|
+
cell: boolean;
|
|
7
|
+
}> & (typeof globalThis extends {
|
|
8
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
9
|
+
} ? P : {});
|
|
10
|
+
expose: (exposed: {}) => void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {};
|
|
13
|
+
emit: {};
|
|
14
|
+
}>) => import("vue").VNode & {
|
|
15
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
20
|
+
[K in keyof T]: T[K];
|
|
21
|
+
} : {
|
|
22
|
+
[K in keyof T as K]: T[K];
|
|
23
|
+
}) & {};
|
|
24
|
+
//# sourceMappingURL=DataTableEditor.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableEditor.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/DataTableEditor.vue"],"names":[],"mappings":"AAqEE,OAAO,KAAK,EAAE,sBAAsB,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AACrE,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,EACxC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WA6LO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB;iBA5LzB,sBAAsB,CAAC,CAAC,CAAC;eAAS,cAAc,CAAC,CAAC,CAAC;cAAQ,OAAO;MA4LtB,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;WACH,EAAE;UACH,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { DataTableProps, DataTableSlots } from './types';
|
|
2
|
+
import type { DataTableController, DataTableModels } from './composables/useDataTable';
|
|
3
|
+
import type { DataTableLayout } from './composables/useTableColumns';
|
|
4
|
+
import type { DataTableDrag } from './composables/useTableDrag';
|
|
5
|
+
declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
7
|
+
config: DataTableProps<T>;
|
|
8
|
+
ctl: DataTableController<T>;
|
|
9
|
+
models: DataTableModels;
|
|
10
|
+
layout: DataTableLayout<T>;
|
|
11
|
+
drag: DataTableDrag<T>;
|
|
12
|
+
controls: string[];
|
|
13
|
+
trailing: number;
|
|
14
|
+
slots: DataTableSlots<T>;
|
|
15
|
+
}> & (typeof globalThis extends {
|
|
16
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
17
|
+
} ? P : {});
|
|
18
|
+
expose: (exposed: {}) => void;
|
|
19
|
+
attrs: any;
|
|
20
|
+
slots: {};
|
|
21
|
+
emit: {};
|
|
22
|
+
}>) => import("vue").VNode & {
|
|
23
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
24
|
+
};
|
|
25
|
+
declare const _default: typeof __VLS_export;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
28
|
+
[K in keyof T]: T[K];
|
|
29
|
+
} : {
|
|
30
|
+
[K in keyof T as K]: T[K];
|
|
31
|
+
}) & {};
|
|
32
|
+
//# sourceMappingURL=DataTableHead.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableHead.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/DataTableHead.vue"],"names":[],"mappings":"AA+LE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,EACxC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAoZO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB;gBAlZ3C,cAAc,CAAC,CAAC,CAAC;aACpB,mBAAmB,CAAC,CAAC,CAAC;gBACnB,eAAe;gBACf,eAAe,CAAC,CAAC,CAAC;cACpB,aAAa,CAAC,CAAC,CAAC;kBACZ,MAAM,EAAE;kBACR,MAAM;eACT,cAAc,CAAC,CAAC,CAAC;MA2Y8C,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC1I,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;WACH,EAAE;UACH,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { DataTableProps, DataTableSlots } from './types';
|
|
2
|
+
import type { DataTableController } from './composables/useDataTable';
|
|
3
|
+
import type { DataTableLayout } from './composables/useTableColumns';
|
|
4
|
+
import type { DataTableDrag } from './composables/useTableDrag';
|
|
5
|
+
import type { DataTableEditing } from './composables/useTableEditing';
|
|
6
|
+
import type { DataTableRenderEntry } from './composables/useTableVirtual';
|
|
7
|
+
declare const __VLS_export: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
8
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<{
|
|
9
|
+
item: DataTableRenderEntry<T>;
|
|
10
|
+
config: DataTableProps<T>;
|
|
11
|
+
ctl: DataTableController<T>;
|
|
12
|
+
layout: DataTableLayout<T>;
|
|
13
|
+
drag: DataTableDrag<T>;
|
|
14
|
+
editing: DataTableEditing<T>;
|
|
15
|
+
slots: DataTableSlots<T>;
|
|
16
|
+
controls: string[];
|
|
17
|
+
colspan: number;
|
|
18
|
+
name: string;
|
|
19
|
+
measure: (element: unknown) => void;
|
|
20
|
+
} & {
|
|
21
|
+
onRowContextmenu?: ((row: T, event: MouseEvent) => any) | undefined;
|
|
22
|
+
}> & (typeof globalThis extends {
|
|
23
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
24
|
+
} ? P : {});
|
|
25
|
+
expose: (exposed: {}) => void;
|
|
26
|
+
attrs: any;
|
|
27
|
+
slots: {};
|
|
28
|
+
emit: (evt: "rowContextmenu", row: T, event: MouseEvent) => void;
|
|
29
|
+
}>) => import("vue").VNode & {
|
|
30
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
31
|
+
};
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
35
|
+
[K in keyof T]: T[K];
|
|
36
|
+
} : {
|
|
37
|
+
[K in keyof T as K]: T[K];
|
|
38
|
+
}) & {};
|
|
39
|
+
//# sourceMappingURL=DataTableRow.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/DataTableRow.vue"],"names":[],"mappings":"AA6QE,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACzE,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,EACxC,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAmsBO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;cAjsB9C,oBAAoB,CAAC,CAAC,CAAC;gBACrB,cAAc,CAAC,CAAC,CAAC;aACpB,mBAAmB,CAAC,CAAC,CAAC;gBACnB,eAAe,CAAC,CAAC,CAAC;cACpB,aAAa,CAAC,CAAC,CAAC;iBACb,gBAAgB,CAAC,CAAC,CAAC;eACrB,cAAc,CAAC,CAAC,CAAC;kBACd,MAAM,EAAE;iBACT,MAAM;cACT,MAAM;iBACH,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI;;;KAurBoD,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;WACH,EAAE;;EAGN,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
single?: boolean;
|
|
3
|
+
checked: boolean | 'indeterminate';
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
label: string;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
change: (value: boolean) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
//# sourceMappingURL=DataTableSelection.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/DataTableSelection.vue"],"names":[],"mappings":"AAyDE,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,GAAG,eAAe,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;CACb,CAAC;AA+HJ,QAAA,MAAM,YAAY;;;;kFAGhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
value: string | number;
|
|
3
|
+
truncate?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=DataTableText.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DataTableText.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/DataTableText.vue"],"names":[],"mappings":"AA0BE,KAAK,WAAW,GAAG;IAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AA4CpE,QAAA,MAAM,YAAY,kSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type SetupContext } from 'vue';
|
|
2
|
+
export default function DataTableSlot(props: {
|
|
3
|
+
render?: (context: never) => unknown;
|
|
4
|
+
context?: unknown;
|
|
5
|
+
}, { slots }: SetupContext): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=Slot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slot.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/Slot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,YAAY,EAAmB,MAAM,KAAK,CAAA;AAE/E,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,KAAK,EAAE;IAAE,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,KAAK,OAAO,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,EAClE,EAAE,KAAK,EAAE,EAAE,YAAY;;GAOxB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DataTableColumn } from './types';
|
|
2
|
+
export declare function pixelWidth(value: number | string | undefined, fallback: number): number;
|
|
3
|
+
export declare function columnBounds<T extends object>(column: DataTableColumn<T>): {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
};
|
|
7
|
+
export declare function clampWidth<T extends object>(column: DataTableColumn<T>, width: number): number;
|
|
8
|
+
export declare function allocateWidths<T extends object>(columns: DataTableColumn<T>[], overrides: Record<string, number>, available: number): {
|
|
9
|
+
[k: string]: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function resizeBoundary<T extends object>(columns: DataTableColumn<T>[], column: DataTableColumn<T>, mode: 'fit' | 'expand'): {
|
|
12
|
+
readonly side: "end" | "start";
|
|
13
|
+
readonly neighbor: DataTableColumn<T> | undefined;
|
|
14
|
+
} | undefined;
|
|
15
|
+
export declare function resizeBounds<T extends object>(column: DataTableColumn<T>, neighbor: DataTableColumn<T> | undefined, widths: Record<string, number>, minimumTotalWidth?: number, maximumWidth?: number): {
|
|
16
|
+
min: number;
|
|
17
|
+
max: number;
|
|
18
|
+
};
|
|
19
|
+
export declare function resizeWidths<T extends object>(column: DataTableColumn<T>, neighbor: DataTableColumn<T> | undefined, widths: Record<string, number>, value: number, minimumTotalWidth?: number, maximumWidth?: number): {
|
|
20
|
+
[x: string]: number;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=column-sizing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column-sizing.d.ts","sourceRoot":"","sources":["../../../../src/components/data-table/column-sizing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,UAM9E;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;;;EAGxE;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,UAGrF;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAC7C,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,EAC7B,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EACjC,SAAS,EAAE,MAAM;;EAoBlB;AAED,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,EAC7C,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,EAC7B,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAC1B,IAAI,EAAE,KAAK,GAAG,QAAQ;;;cASvB;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAC3C,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAC1B,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,iBAAiB,SAAI,EACrB,YAAY,SAAW;;;EAoBxB;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,EAC3C,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAC1B,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EACxC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,iBAAiB,SAAI,EACrB,YAAY,SAAW;;EAQxB"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { DataTableApi, DataTableColumn, DataTableFilter, DataTableGroupContext, DataTableKey, DataTableProps, DataTableQuery, DataTableSort, DataTableState } from '../types';
|
|
3
|
+
export interface DataTableModels {
|
|
4
|
+
page: Ref<number>;
|
|
5
|
+
pageSize: Ref<number>;
|
|
6
|
+
sorting: Ref<DataTableSort[]>;
|
|
7
|
+
filter: Ref<string>;
|
|
8
|
+
columnFilters: Ref<DataTableFilter[]>;
|
|
9
|
+
grouping: Ref<string[]>;
|
|
10
|
+
selected: Ref<DataTableKey[]>;
|
|
11
|
+
expanded: Ref<DataTableKey[]>;
|
|
12
|
+
expandedGroups: Ref<string[]>;
|
|
13
|
+
hiddenColumns: Ref<string[]>;
|
|
14
|
+
columnOrder: Ref<string[]>;
|
|
15
|
+
columnWidths: Ref<Record<string, number>>;
|
|
16
|
+
}
|
|
17
|
+
export declare function useDataTable<T extends object>(props: DataTableProps<T>, models: DataTableModels, onChange: (query: DataTableQuery) => void, onRowClick: (row: T, event: MouseEvent | KeyboardEvent) => void): {
|
|
18
|
+
api: DataTableApi<T>;
|
|
19
|
+
table: import("@tanstack/vue-table").VueTable<{
|
|
20
|
+
columnFilteringFeature: import("@tanstack/vue-table").TableFeature;
|
|
21
|
+
columnVisibilityFeature: import("@tanstack/vue-table").TableFeature;
|
|
22
|
+
columnGroupingFeature: import("@tanstack/vue-table").TableFeature;
|
|
23
|
+
rowExpandingFeature: import("@tanstack/vue-table").TableFeature;
|
|
24
|
+
globalFilteringFeature: import("@tanstack/vue-table").TableFeature;
|
|
25
|
+
rowPaginationFeature: import("@tanstack/vue-table").TableFeature;
|
|
26
|
+
rowSelectionFeature: import("@tanstack/vue-table").TableFeature;
|
|
27
|
+
rowSortingFeature: import("@tanstack/vue-table").TableFeature;
|
|
28
|
+
filteredRowModel: (table: import("@tanstack/vue-table").Table<any, any>) => () => import("@tanstack/vue-table").RowModel<any, any>;
|
|
29
|
+
groupedRowModel: (table: import("@tanstack/vue-table").Table<any, any>) => () => import("@tanstack/vue-table").RowModel<any, any>;
|
|
30
|
+
sortedRowModel: (table: import("@tanstack/vue-table").Table<any, any>) => () => import("@tanstack/vue-table").RowModel<any, any>;
|
|
31
|
+
expandedRowModel: (table: import("@tanstack/vue-table").Table<any, any>) => () => import("@tanstack/vue-table").RowModel<any, any>;
|
|
32
|
+
paginatedRowModel: (table: import("@tanstack/vue-table").Table<any, any>) => () => import("@tanstack/vue-table").RowModel<any, any>;
|
|
33
|
+
}, T>;
|
|
34
|
+
blocked: import("vue").ComputedRef<boolean>;
|
|
35
|
+
page: import("vue").ComputedRef<number>;
|
|
36
|
+
pageSize: import("vue").ComputedRef<number>;
|
|
37
|
+
total: import("vue").ComputedRef<number>;
|
|
38
|
+
knownTotal: import("vue").ComputedRef<boolean>;
|
|
39
|
+
canNext: import("vue").ComputedRef<boolean>;
|
|
40
|
+
rows: import("vue").ComputedRef<{
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
group: DataTableGroupContext<T> | undefined;
|
|
44
|
+
row: T;
|
|
45
|
+
key: DataTableKey;
|
|
46
|
+
index: number;
|
|
47
|
+
depth: number;
|
|
48
|
+
selected: boolean;
|
|
49
|
+
indeterminate: boolean;
|
|
50
|
+
selectable: boolean;
|
|
51
|
+
expanded: boolean;
|
|
52
|
+
expandable: boolean;
|
|
53
|
+
toggleSelected: (selected?: boolean) => void;
|
|
54
|
+
toggleExpanded: (expanded?: boolean) => void;
|
|
55
|
+
startEdit: (column?: string) => void;
|
|
56
|
+
}[]>;
|
|
57
|
+
leaves: import("vue").ComputedRef<DataTableColumn<T>[]>;
|
|
58
|
+
visibleColumns: import("vue").ComputedRef<DataTableColumn<T>[]>;
|
|
59
|
+
pageSelection: import("vue").ComputedRef<boolean | "indeterminate">;
|
|
60
|
+
selectionDisabled: import("vue").ComputedRef<boolean>;
|
|
61
|
+
state: import("vue").ComputedRef<DataTableState<T>>;
|
|
62
|
+
valueOf: (row: T, column: DataTableColumn<T>) => unknown;
|
|
63
|
+
displayValue: (row: T, column: DataTableColumn<T>) => string | number;
|
|
64
|
+
togglePage: (selected: boolean | "indeterminate") => void;
|
|
65
|
+
activate: (row: T, event: MouseEvent | KeyboardEvent) => void;
|
|
66
|
+
headerContext: (column: DataTableColumn<T>) => {
|
|
67
|
+
column: DataTableColumn<T>;
|
|
68
|
+
sorting: false | import("@tanstack/vue-table").SortDirection;
|
|
69
|
+
sortIndex: number;
|
|
70
|
+
filterValue: unknown;
|
|
71
|
+
setFilter: (value: unknown) => void;
|
|
72
|
+
nextLabel: string;
|
|
73
|
+
ariaSort: "ascending" | "descending" | undefined;
|
|
74
|
+
toggleSort: (multi?: boolean) => void;
|
|
75
|
+
};
|
|
76
|
+
keyOf: (row: T) => DataTableKey;
|
|
77
|
+
labelOf: (row: T) => string;
|
|
78
|
+
};
|
|
79
|
+
export type DataTableController<T extends object> = ReturnType<typeof useDataTable<T>>;
|
|
80
|
+
//# sourceMappingURL=useDataTable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDataTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-table/composables/useDataTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,KAAK,GAAG,EAAE,MAAM,KAAK,CAAA;AAa/C,OAAO,KAAK,EACV,YAAY,EAC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Ae,CAAC,CAAC,CAAC;2BApI1B,OAAO,GAAG,eAAe;oBA+HhC,CAAC,SAAS,UAAU,GAAG,aAAa;4BA3G5B,eAAe,CAAC,CAAC,CAAC;;;;;2BAW1B,OAAO;;;;;iBAhPV,CAAC;mBAEC,CAAC;EA8WxB;AACD,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,MAAM,IAAI,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type Ref, type CSSProperties } from 'vue';
|
|
2
|
+
import type { DataTableColumn, DataTableHeader, DataTableProps } from '../types';
|
|
3
|
+
import type { DataTableController, DataTableModels } from './useDataTable';
|
|
4
|
+
export declare function useTableColumns<T extends object>(props: DataTableProps<T>, models: DataTableModels, ctl: DataTableController<T>, element: Ref<HTMLTableElement | undefined>, viewport: Ref<HTMLElement | undefined>, leading: Ref<number>, trailing: Ref<number>): {
|
|
5
|
+
width: (column: DataTableColumn<T>) => number;
|
|
6
|
+
update: () => void;
|
|
7
|
+
handleStyle: (column: DataTableColumn<T>) => CSSProperties;
|
|
8
|
+
handleVisible: (column: DataTableColumn<T>) => boolean;
|
|
9
|
+
resizing: import("vue").ShallowRef<string | undefined, string | undefined>;
|
|
10
|
+
guide: import("vue").ShallowRef<{
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
height: number;
|
|
14
|
+
columns: {
|
|
15
|
+
key: string;
|
|
16
|
+
label: string;
|
|
17
|
+
width: number;
|
|
18
|
+
}[];
|
|
19
|
+
labelX: number;
|
|
20
|
+
} | undefined, {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
height: number;
|
|
24
|
+
columns: {
|
|
25
|
+
key: string;
|
|
26
|
+
label: string;
|
|
27
|
+
width: number;
|
|
28
|
+
}[];
|
|
29
|
+
labelX: number;
|
|
30
|
+
} | undefined>;
|
|
31
|
+
boundary: (column: DataTableColumn<T>) => {
|
|
32
|
+
readonly side: "end" | "start";
|
|
33
|
+
readonly neighbor: DataTableColumn<T> | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
bounds: (column: DataTableColumn<T>) => {
|
|
36
|
+
min: number;
|
|
37
|
+
max: number;
|
|
38
|
+
};
|
|
39
|
+
canResize: (column: DataTableColumn<T>) => boolean | undefined;
|
|
40
|
+
resizeLabel: (column: DataTableColumn<T>) => string;
|
|
41
|
+
resizeValueText: (column: DataTableColumn<T>) => string;
|
|
42
|
+
resize: (column: DataTableColumn<T>, event: PointerEvent) => void;
|
|
43
|
+
resizeKey: (column: DataTableColumn<T>, event: KeyboardEvent) => void;
|
|
44
|
+
setWidth: (key: string, value: number) => void;
|
|
45
|
+
headerRows: import("vue").ComputedRef<DataTableHeader<T>[][]>;
|
|
46
|
+
tableStyle: import("vue").ComputedRef<CSSProperties>;
|
|
47
|
+
cellStyle: (column: DataTableColumn<T>, head?: boolean) => CSSProperties;
|
|
48
|
+
controlStyle: (side: "start" | "end", index: number, head?: boolean) => CSSProperties;
|
|
49
|
+
};
|
|
50
|
+
export type DataTableLayout<T extends object> = ReturnType<typeof useTableColumns<T>>;
|
|
51
|
+
//# sourceMappingURL=useTableColumns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTableColumns.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-table/composables/useTableColumns.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,GAAG,EACR,KAAK,aAAa,EACnB,MAAM,KAAK,CAAA;AAKZ,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAE1E,wBAAgB,eAAe,CAAC,CAAC,SAAS,MAAM,EAC9C,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,EACxB,MAAM,EAAE,eAAe,EACvB,GAAG,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAC3B,OAAO,EAAE,GAAG,CAAC,gBAAgB,GAAG,SAAS,CAAC,EAC1C,QAAQ,EAAE,GAAG,CAAC,WAAW,GAAG,SAAS,CAAC,EACtC,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EACpB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC;oBAwEE,eAAe,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyBd,eAAe,CAAC,CAAC,CAAC,qBAAiB,aAAa;yBAQ/C,OAAO,GAAG,KAAK,SAAS,MAAM,qBAAiB,aAAa;EA0HzF;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,IAAI,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAA"}
|