@dcodegroup-au/dsg-vue 1.0.7-next → 1.0.9-next
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/{DsgTablePerPage.vue_vue_type_style_index_0_lang-CcSyXBr6.js → DsgTablePerPage.vue_vue_type_style_index_0_lang-CaBn8JMp.js} +3195 -3163
- package/dist/{DsgTablePerPage.vue_vue_type_style_index_0_lang-DncMp8KQ.cjs → DsgTablePerPage.vue_vue_type_style_index_0_lang-DQk8doWV.cjs} +1200 -1200
- package/dist/components/Table/DsgTable.vue.d.ts +30 -2
- package/dist/components/Table/DsgTableComponent.vue.d.ts +6 -0
- package/dist/components/Table/DsgTableFilter.vue.d.ts +18 -0
- package/dist/components/Table/DsgTableRowHeader.vue.d.ts +2 -0
- package/dist/dsg-vue.cjs +1 -1
- package/dist/dsg-vue.css +1 -1
- package/dist/dsg-vue.esm.js +1 -1
- package/dist/dsg-vue.table.cjs +2 -2
- package/dist/dsg-vue.table.esm.js +561 -517
- package/dist/main.d.ts +10 -0
- package/dist/table.d.ts +46 -2
- package/dist/utilities/URL.d.ts +5 -0
- package/package.json +1 -6
|
@@ -14,6 +14,10 @@ export interface DsgTableProps {
|
|
|
14
14
|
displayPaginationInfo?: boolean;
|
|
15
15
|
reloadOnChangeTimer?: boolean;
|
|
16
16
|
selectable?: boolean;
|
|
17
|
+
/** Width of the selection checkbox column (e.g. "4rem", "64px"). */
|
|
18
|
+
selectableColumnWidth?: string;
|
|
19
|
+
/** Width of the expandable toggle column when expandable rows are enabled (e.g. "3rem", "48px"). */
|
|
20
|
+
expandableColumnWidth?: string;
|
|
17
21
|
/** Custom CSS colour for the Shift+Hover range highlight. Defaults to primary-50. */
|
|
18
22
|
shiftSelectHighlight?: string;
|
|
19
23
|
/** Custom CSS colour for the selected row background. Defaults to gray-50. */
|
|
@@ -29,6 +33,14 @@ export interface DsgTableProps {
|
|
|
29
33
|
filterSearchEndpoint?: string;
|
|
30
34
|
tableLayout?: "fixed" | "auto";
|
|
31
35
|
autoSortFilters?: boolean;
|
|
36
|
+
/** Show the "Save as default" action on the built-in filter panel. Defaults to `false`. */
|
|
37
|
+
showSaveAsDefault?: boolean;
|
|
38
|
+
/** Label for the "Save as default" filter header action. */
|
|
39
|
+
saveAsDefaultLabel?: string;
|
|
40
|
+
/** Show the "Clear all" action on the built-in filter panel when filters are selected. Defaults to `true`. */
|
|
41
|
+
showClearAll?: boolean;
|
|
42
|
+
/** Label for the "Clear all" filter header action. */
|
|
43
|
+
clearAllLabel?: string;
|
|
32
44
|
data?: {
|
|
33
45
|
[key: string]: any;
|
|
34
46
|
}[] | null;
|
|
@@ -195,6 +207,8 @@ declare function __VLS_template(): {
|
|
|
195
207
|
readonly fieldPrefix?: string | undefined;
|
|
196
208
|
readonly eventPrefix?: string | undefined;
|
|
197
209
|
readonly selectable?: boolean | undefined;
|
|
210
|
+
readonly selectableColumnWidth?: string | undefined;
|
|
211
|
+
readonly expandableColumnWidth?: string | undefined;
|
|
198
212
|
readonly shiftSelectHighlight?: string | undefined;
|
|
199
213
|
readonly selectedRowHighlight?: string | undefined;
|
|
200
214
|
readonly replaceState?: boolean | undefined;
|
|
@@ -257,6 +271,8 @@ declare function __VLS_template(): {
|
|
|
257
271
|
collapseAllRows: () => void;
|
|
258
272
|
getExpandedRows: () => Set<any>;
|
|
259
273
|
isRowExpanded: (item: any) => boolean;
|
|
274
|
+
getSelection: () => any[];
|
|
275
|
+
clearSelection: () => void;
|
|
260
276
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
261
277
|
"update:filterParams": (value: any) => any;
|
|
262
278
|
"update:perPage": (value: any) => any;
|
|
@@ -309,7 +325,7 @@ declare function __VLS_template(): {
|
|
|
309
325
|
"onDsg-table:row-collapsed"?: ((rowData: Record<string, any>, rowIndex: number) => any) | undefined;
|
|
310
326
|
"onUpdate:filterParams"?: ((value: any) => any) | undefined;
|
|
311
327
|
"onUpdate:perPage"?: ((value: any) => any) | undefined;
|
|
312
|
-
}>, "changePage" | "reload" | "getData" | "setData" | "setLoading" | "expandRow" | "collapseRow" | "toggleRowExpand" | "expandAllRows" | "collapseAllRows" | "getExpandedRows" | "isRowExpanded"> & {
|
|
328
|
+
}>, "changePage" | "reload" | "getData" | "setData" | "setLoading" | "expandRow" | "collapseRow" | "toggleRowExpand" | "expandAllRows" | "collapseAllRows" | "getExpandedRows" | "isRowExpanded" | "getSelection" | "clearSelection"> & {
|
|
313
329
|
changePage: (page: "next" | "prev" | number) => void;
|
|
314
330
|
reload: () => void;
|
|
315
331
|
getData: () => any[] | null;
|
|
@@ -322,6 +338,8 @@ declare function __VLS_template(): {
|
|
|
322
338
|
collapseAllRows: () => void;
|
|
323
339
|
getExpandedRows: () => Set<any>;
|
|
324
340
|
isRowExpanded: (item: any) => boolean;
|
|
341
|
+
getSelection: () => any[];
|
|
342
|
+
clearSelection: () => void;
|
|
325
343
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
326
344
|
$slots: Partial<Record<string, (_: {
|
|
327
345
|
rowData: any;
|
|
@@ -414,6 +432,8 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
414
432
|
expandAllRows: () => void;
|
|
415
433
|
collapseAllRows: () => void;
|
|
416
434
|
getExpandedRows: () => Set<any>;
|
|
435
|
+
getSelection: () => any[];
|
|
436
|
+
clearSelection: () => void;
|
|
417
437
|
changePage: (page: any) => void;
|
|
418
438
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
419
439
|
"dsg-table:action-edit": (ev: Event, rowData: Record<string, any>) => any;
|
|
@@ -423,6 +443,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
423
443
|
"dsg-table:link-clicked": (ev: Event, actionId: string | number, rowData: Record<string, any>) => any;
|
|
424
444
|
"dsg-table:term-changed": (term: string | null) => any;
|
|
425
445
|
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
|
|
446
|
+
"dsg-table:save-as-default": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
|
|
426
447
|
"dsg-table:rows-selected": (rows: any) => any;
|
|
427
448
|
"dsg-table:row-clicked": (ev: Event, rowIndex: number, rowData: Record<string, any>) => any;
|
|
428
449
|
"dsg-table:row-hover": (ev: Event, rowIndex: number, rowData: Record<string, any>) => any;
|
|
@@ -438,6 +459,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
438
459
|
"onDsg-table:link-clicked"?: ((ev: Event, actionId: string | number, rowData: Record<string, any>) => any) | undefined;
|
|
439
460
|
"onDsg-table:term-changed"?: ((term: string | null) => any) | undefined;
|
|
440
461
|
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
|
|
462
|
+
"onDsg-table:save-as-default"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
|
|
441
463
|
"onDsg-table:rows-selected"?: ((rows: any) => any) | undefined;
|
|
442
464
|
"onDsg-table:row-clicked"?: ((ev: Event, rowIndex: number, rowData: Record<string, any>) => any) | undefined;
|
|
443
465
|
"onDsg-table:row-hover"?: ((ev: Event, rowIndex: number, rowData: Record<string, any>) => any) | undefined;
|
|
@@ -496,6 +518,8 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
496
518
|
readonly fieldPrefix?: string | undefined;
|
|
497
519
|
readonly eventPrefix?: string | undefined;
|
|
498
520
|
readonly selectable?: boolean | undefined;
|
|
521
|
+
readonly selectableColumnWidth?: string | undefined;
|
|
522
|
+
readonly expandableColumnWidth?: string | undefined;
|
|
499
523
|
readonly shiftSelectHighlight?: string | undefined;
|
|
500
524
|
readonly selectedRowHighlight?: string | undefined;
|
|
501
525
|
readonly replaceState?: boolean | undefined;
|
|
@@ -558,6 +582,8 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
558
582
|
collapseAllRows: () => void;
|
|
559
583
|
getExpandedRows: () => Set<any>;
|
|
560
584
|
isRowExpanded: (item: any) => boolean;
|
|
585
|
+
getSelection: () => any[];
|
|
586
|
+
clearSelection: () => void;
|
|
561
587
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
562
588
|
"update:filterParams": (value: any) => any;
|
|
563
589
|
"update:perPage": (value: any) => any;
|
|
@@ -610,7 +636,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
610
636
|
"onDsg-table:row-collapsed"?: ((rowData: Record<string, any>, rowIndex: number) => any) | undefined;
|
|
611
637
|
"onUpdate:filterParams"?: ((value: any) => any) | undefined;
|
|
612
638
|
"onUpdate:perPage"?: ((value: any) => any) | undefined;
|
|
613
|
-
}>, "changePage" | "reload" | "getData" | "setData" | "setLoading" | "expandRow" | "collapseRow" | "toggleRowExpand" | "expandAllRows" | "collapseAllRows" | "getExpandedRows" | "isRowExpanded"> & {
|
|
639
|
+
}>, "changePage" | "reload" | "getData" | "setData" | "setLoading" | "expandRow" | "collapseRow" | "toggleRowExpand" | "expandAllRows" | "collapseAllRows" | "getExpandedRows" | "isRowExpanded" | "getSelection" | "clearSelection"> & {
|
|
614
640
|
changePage: (page: "next" | "prev" | number) => void;
|
|
615
641
|
reload: () => void;
|
|
616
642
|
getData: () => any[] | null;
|
|
@@ -623,6 +649,8 @@ declare const __VLS_component: import('vue').DefineComponent<DsgTableProps, {
|
|
|
623
649
|
collapseAllRows: () => void;
|
|
624
650
|
getExpandedRows: () => Set<any>;
|
|
625
651
|
isRowExpanded: (item: any) => boolean;
|
|
652
|
+
getSelection: () => any[];
|
|
653
|
+
clearSelection: () => void;
|
|
626
654
|
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
627
655
|
$slots: Partial<Record<string, (_: {
|
|
628
656
|
rowData: any;
|
|
@@ -102,6 +102,10 @@ export interface DsgTableComponentProp {
|
|
|
102
102
|
fieldPrefix?: string;
|
|
103
103
|
eventPrefix?: string;
|
|
104
104
|
selectable?: boolean;
|
|
105
|
+
/** Width of the selection checkbox column (e.g. "4rem", "64px"). */
|
|
106
|
+
selectableColumnWidth?: string;
|
|
107
|
+
/** Width of the expandable toggle column (e.g. "3rem", "48px"). */
|
|
108
|
+
expandableColumnWidth?: string;
|
|
105
109
|
/** Custom CSS colour for the Shift+Hover range highlight background. Defaults to `var(--color-primary-50)`. */
|
|
106
110
|
shiftSelectHighlight?: string;
|
|
107
111
|
/** Custom CSS colour for the selected row background. Defaults to `var(--color-gray-50)`. */
|
|
@@ -156,6 +160,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
156
160
|
collapseAllRows: () => void;
|
|
157
161
|
getExpandedRows: () => Set<any>;
|
|
158
162
|
isRowExpanded: (item: any) => boolean;
|
|
163
|
+
getSelection: () => any[];
|
|
164
|
+
clearSelection: () => void;
|
|
159
165
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
160
166
|
"update:filterParams": (value: any) => any;
|
|
161
167
|
"update:perPage": (value: any) => any;
|
|
@@ -19,6 +19,22 @@ export interface DsgTableFilterProps {
|
|
|
19
19
|
replaceState?: boolean;
|
|
20
20
|
replaceStrategy?: "window" | "inertia";
|
|
21
21
|
autoSort?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Show the "Save as default" header action. Defaults to `false`.
|
|
24
|
+
*/
|
|
25
|
+
showSaveAsDefault?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Label for the "Save as default" header action.
|
|
28
|
+
*/
|
|
29
|
+
saveAsDefaultLabel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Show the "Clear all" header action when filters are selected. Defaults to `true`.
|
|
32
|
+
*/
|
|
33
|
+
showClearAll?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Label for the "Clear all" header action.
|
|
36
|
+
*/
|
|
37
|
+
clearAllLabel?: string;
|
|
22
38
|
}
|
|
23
39
|
export interface DsgTableSearchRefine {
|
|
24
40
|
count?: number;
|
|
@@ -582,8 +598,10 @@ declare function __VLS_template(): {
|
|
|
582
598
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
583
599
|
declare const __VLS_component: import('vue').DefineComponent<DsgTableFilterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
584
600
|
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
|
|
601
|
+
"dsg-table:save-as-default": (params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any;
|
|
585
602
|
}, string, import('vue').PublicProps, Readonly<DsgTableFilterProps> & Readonly<{
|
|
586
603
|
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
|
|
604
|
+
"onDsg-table:save-as-default"?: ((params: any, payload: any, activeFacet: DsgTableSearchFacet | null | undefined) => any) | undefined;
|
|
587
605
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
588
606
|
dsgTableFilter: HTMLDivElement;
|
|
589
607
|
floatingVueFilterDropdownEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -15,6 +15,8 @@ export interface DsgTableRowHeaderProps {
|
|
|
15
15
|
hasSelectAll?: boolean;
|
|
16
16
|
showExpandDetail?: boolean;
|
|
17
17
|
tableDataLength?: number;
|
|
18
|
+
selectableColumnWidth?: string;
|
|
19
|
+
expandableColumnWidth?: string;
|
|
18
20
|
}
|
|
19
21
|
type __VLS_Props = DsgTableRowHeaderProps;
|
|
20
22
|
type __VLS_PublicProps = {
|
package/dist/dsg-vue.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const M=require("./DsgTablePerPage.vue_vue_type_style_index_0_lang-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const M=require("./DsgTablePerPage.vue_vue_type_style_index_0_lang-DQk8doWV.cjs"),f=require("vue"),Ha=require("./DsgLabel.vue_vue_type_style_index_0_lang-BTfTmByq.cjs"),It=f.defineComponent({__name:"DsgMiscIcon",props:{theme:{default:"brand"},type:{default:"light-outline"},size:{default:"lg"},icon:{}},setup(t){return(e,r)=>(f.openBlock(),f.createElementBlock("div",{class:f.normalizeClass(`
|
|
2
2
|
dsg-misc-icon
|
|
3
3
|
dsg-misc-icon--${t.theme}
|
|
4
4
|
dsg-misc-icon--${t.type}
|