@dcodegroup-au/dsg-vue 0.0.19 → 0.0.21
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/{DsgDatepicker.vue_vue_type_style_index_0_lang-DDMs4q6M.cjs → DsgTablePerPage.vue_vue_type_style_index_0_lang-CnRogxoI.cjs} +1197 -1192
- package/dist/{DsgDatepicker.vue_vue_type_style_index_0_lang-CMJ0kV_S.js → DsgTablePerPage.vue_vue_type_style_index_0_lang-DvL9jhXe.js} +11920 -9574
- package/dist/components/Editor/DsgEditor.vue.d.ts +1 -0
- package/dist/components/Elements/DsgAlert.vue.d.ts +1 -0
- package/dist/components/Elements/DsgDatepicker.vue.d.ts +2 -2
- package/dist/components/Elements/DsgInputSelect.vue.d.ts +58 -0
- package/dist/components/Elements/DsgModal.vue.d.ts +3 -0
- package/dist/components/Elements/ElementComponents.d.ts +2 -1
- package/dist/components/Table/DsgTable.vue.d.ts +7 -4
- package/dist/components/Table/DsgTableComponent.vue.d.ts +3 -3
- package/dist/components/Table/DsgTableFilter.vue.d.ts +1 -0
- package/dist/dsg-vue.cjs +2 -2
- package/dist/dsg-vue.css +4 -4
- package/dist/dsg-vue.editor.cjs +75 -75
- package/dist/dsg-vue.editor.esm.js +1088 -1076
- package/dist/dsg-vue.esm.js +2907 -1592
- package/dist/dsg-vue.table.cjs +2 -7
- package/dist/dsg-vue.table.esm.js +550 -2857
- package/dist/dsg-vue.tailwind.cjs +1 -1
- package/dist/dsg-vue.tailwind.esm.js +138 -120
- package/dist/main.d.ts +1444 -344
- package/dist/table.d.ts +53 -44
- package/dist/tailwind/plugins/DsgFocusRingPlugin.d.ts +14 -1
- package/dist/tailwind.d.ts +1 -0
- package/package.json +17 -17
- package/tsconfig.json +1 -0
- package/vite.config.ts +1 -0
package/dist/table.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare const DsgTable: {
|
|
|
19
19
|
reloadTable: () => void;
|
|
20
20
|
updateRowTable: (rowData: any) => void;
|
|
21
21
|
termChanged: (term: string | null) => void;
|
|
22
|
+
setFilters: (filters: any) => void;
|
|
22
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
23
24
|
"dsg-table:action-edit": (ev: Event, rowData: Record<string, any>) => any;
|
|
24
25
|
"dsg-table:action-view": (ev: Event, rowData: Record<string, any>) => any;
|
|
@@ -40,12 +41,12 @@ export declare const DsgTable: {
|
|
|
40
41
|
readonly httpMethod?: "get" | "post" | undefined;
|
|
41
42
|
readonly reactiveApiUrl?: boolean | undefined;
|
|
42
43
|
readonly apiMode?: boolean | undefined;
|
|
43
|
-
readonly data?: (Array<any> |
|
|
44
|
+
readonly data?: (Array<any> | null) | undefined;
|
|
44
45
|
readonly dataManager?: (Function | null) | undefined;
|
|
45
46
|
readonly dataPath?: string | undefined;
|
|
46
47
|
readonly tableLayout?: "fixed" | "auto" | undefined;
|
|
47
48
|
readonly paginationPath?: string | undefined;
|
|
48
|
-
readonly queryParams?: import('./
|
|
49
|
+
readonly queryParams?: import('./table').DsgTableComponentQueryParams | undefined;
|
|
49
50
|
readonly httpOptions?: {
|
|
50
51
|
[key: string]: any;
|
|
51
52
|
} | undefined | undefined;
|
|
@@ -63,7 +64,7 @@ export declare const DsgTable: {
|
|
|
63
64
|
readonly detailRowClass?: (string | Function) | undefined;
|
|
64
65
|
readonly detailRowOptions?: Object | undefined;
|
|
65
66
|
readonly trackBy?: string | undefined;
|
|
66
|
-
readonly css?: import('./
|
|
67
|
+
readonly css?: import('./table').DsgTableCustomCss | undefined;
|
|
67
68
|
readonly minRows?: number | undefined;
|
|
68
69
|
readonly noDataTemplate?: string | undefined;
|
|
69
70
|
readonly showSortIcons?: boolean | undefined;
|
|
@@ -162,10 +163,10 @@ export declare const DsgTable: {
|
|
|
162
163
|
$slots: Partial<Record<string, (_: {
|
|
163
164
|
rowData: any;
|
|
164
165
|
rowIndex: number;
|
|
165
|
-
rowField: import('./
|
|
166
|
+
rowField: import('./table').DsgTableField;
|
|
166
167
|
}) => any>> & {
|
|
167
168
|
tableHeader?(_: {
|
|
168
|
-
fields: import('./
|
|
169
|
+
fields: import('./table').DsgTableField[];
|
|
169
170
|
}): any;
|
|
170
171
|
'dsg-table-loading'?(_: {}): any;
|
|
171
172
|
'dsg-table-detail-row'?(_: {
|
|
@@ -175,7 +176,7 @@ export declare const DsgTable: {
|
|
|
175
176
|
}): any;
|
|
176
177
|
'dsg-table-empty-result'?(_: {}): any;
|
|
177
178
|
'dsg-table-footer'?(_: {
|
|
178
|
-
fields: import('./
|
|
179
|
+
fields: import('./table').DsgTableField[];
|
|
179
180
|
data: any[] | null;
|
|
180
181
|
}): any;
|
|
181
182
|
};
|
|
@@ -241,6 +242,7 @@ export declare const DsgTable: {
|
|
|
241
242
|
reloadTable: () => void;
|
|
242
243
|
updateRowTable: (rowData: any) => void;
|
|
243
244
|
termChanged: (term: string | null) => void;
|
|
245
|
+
setFilters: (filters: any) => void;
|
|
244
246
|
}, {}, {}, {}, {}>;
|
|
245
247
|
__isFragment?: never;
|
|
246
248
|
__isTeleport?: never;
|
|
@@ -255,6 +257,7 @@ export declare const DsgTable: {
|
|
|
255
257
|
reloadTable: () => void;
|
|
256
258
|
updateRowTable: (rowData: any) => void;
|
|
257
259
|
termChanged: (term: string | null) => void;
|
|
260
|
+
setFilters: (filters: any) => void;
|
|
258
261
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
259
262
|
"dsg-table:action-edit": (ev: Event, rowData: Record<string, any>) => any;
|
|
260
263
|
"dsg-table:action-view": (ev: Event, rowData: Record<string, any>) => any;
|
|
@@ -264,7 +267,7 @@ export declare const DsgTable: {
|
|
|
264
267
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
265
268
|
$slots: Partial<Record<string, (_: {
|
|
266
269
|
rowData: any;
|
|
267
|
-
rowField: import('./
|
|
270
|
+
rowField: import('./table').DsgTableField;
|
|
268
271
|
rowIndex: number;
|
|
269
272
|
}) => any>> & {
|
|
270
273
|
'dsg-table--pre-header'?(_: {}): any;
|
|
@@ -281,11 +284,12 @@ export declare const DsgTable: {
|
|
|
281
284
|
'dsg-table--search-actions'?(_: {
|
|
282
285
|
data: null;
|
|
283
286
|
}): any;
|
|
287
|
+
'dsg-table--search-navigation'?(_: {}): any;
|
|
284
288
|
'dsg-table-actions'?(_: {
|
|
285
289
|
data: {
|
|
286
290
|
rowData: any;
|
|
287
291
|
rowIndex: number;
|
|
288
|
-
rowField: import('./
|
|
292
|
+
rowField: import('./table').DsgTableField;
|
|
289
293
|
};
|
|
290
294
|
}): any;
|
|
291
295
|
'dsg-table--footer-left'?(_: {
|
|
@@ -867,10 +871,10 @@ export declare const DsgTableActions: {
|
|
|
867
871
|
});
|
|
868
872
|
export declare const DsgTablePerPage: import('vue').DefineComponent<import('./components/Table/DsgTablePerPage.vue').DsgTablePerPageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./components/Table/DsgTablePerPage.vue').DsgTablePerPageProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
869
873
|
export declare const DsgTableFilter: {
|
|
870
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./
|
|
871
|
-
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./
|
|
874
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./main').DsgFilterProps> & Readonly<{
|
|
875
|
+
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any) | undefined;
|
|
872
876
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
873
|
-
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: import('./
|
|
877
|
+
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any;
|
|
874
878
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
875
879
|
dsgTableFilter: HTMLDivElement;
|
|
876
880
|
floatingVueFilterDropdownEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -1369,16 +1373,16 @@ export declare const DsgTableFilter: {
|
|
|
1369
1373
|
C: {};
|
|
1370
1374
|
M: {};
|
|
1371
1375
|
Defaults: {};
|
|
1372
|
-
}, Readonly<import('./
|
|
1373
|
-
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./
|
|
1376
|
+
}, Readonly<import('./main').DsgFilterProps> & Readonly<{
|
|
1377
|
+
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any) | undefined;
|
|
1374
1378
|
}>, {}, {}, {}, {}, {}>;
|
|
1375
1379
|
__isFragment?: never;
|
|
1376
1380
|
__isTeleport?: never;
|
|
1377
1381
|
__isSuspense?: never;
|
|
1378
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./
|
|
1379
|
-
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./
|
|
1382
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./main').DsgFilterProps> & Readonly<{
|
|
1383
|
+
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any) | undefined;
|
|
1380
1384
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
1381
|
-
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: import('./
|
|
1385
|
+
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any;
|
|
1382
1386
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
1383
1387
|
$slots: {
|
|
1384
1388
|
'dsg-table--filter-trigger'?(_: {}): any;
|
|
@@ -1414,26 +1418,26 @@ export declare const DsgTableSearch: import('vue').DefineComponent<import('./tab
|
|
|
1414
1418
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1415
1419
|
export declare const DsgTableRowHeader: import('vue').DefineComponent<{
|
|
1416
1420
|
sortField?: import('./table').DsgTableSortField;
|
|
1417
|
-
selectedRows?: import('./
|
|
1421
|
+
selectedRows?: import('./table').DsgTableField[];
|
|
1418
1422
|
hasSelected?: boolean;
|
|
1419
1423
|
} & import('./components/Table/DsgTableRowHeader.vue').DsgTableRowHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
1420
1424
|
"update:sortField": (value: import('./table').DsgTableSortField) => any;
|
|
1421
|
-
"update:selectedRows": (value: import('./
|
|
1425
|
+
"update:selectedRows": (value: import('./table').DsgTableField[]) => any;
|
|
1422
1426
|
"update:hasSelected": (value: boolean) => any;
|
|
1423
1427
|
} & {
|
|
1424
|
-
"dsg-table:sort-field": (field: import('./
|
|
1428
|
+
"dsg-table:sort-field": (field: import('./table').DsgTableField) => any;
|
|
1425
1429
|
"dsg-table:on-select-all": () => any;
|
|
1426
1430
|
"dsg-table:on-deselect-all": () => any;
|
|
1427
1431
|
}, string, import('vue').PublicProps, Readonly<{
|
|
1428
1432
|
sortField?: import('./table').DsgTableSortField;
|
|
1429
|
-
selectedRows?: import('./
|
|
1433
|
+
selectedRows?: import('./table').DsgTableField[];
|
|
1430
1434
|
hasSelected?: boolean;
|
|
1431
1435
|
} & import('./components/Table/DsgTableRowHeader.vue').DsgTableRowHeaderProps> & Readonly<{
|
|
1432
|
-
"onDsg-table:sort-field"?: ((field: import('./
|
|
1436
|
+
"onDsg-table:sort-field"?: ((field: import('./table').DsgTableField) => any) | undefined;
|
|
1433
1437
|
"onDsg-table:on-select-all"?: (() => any) | undefined;
|
|
1434
1438
|
"onDsg-table:on-deselect-all"?: (() => any) | undefined;
|
|
1435
1439
|
"onUpdate:sortField"?: ((value: import('./table').DsgTableSortField) => any) | undefined;
|
|
1436
|
-
"onUpdate:selectedRows"?: ((value: import('./
|
|
1440
|
+
"onUpdate:selectedRows"?: ((value: import('./table').DsgTableField[]) => any) | undefined;
|
|
1437
1441
|
"onUpdate:hasSelected"?: ((value: boolean) => any) | undefined;
|
|
1438
1442
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
1439
1443
|
/**
|
|
@@ -1444,6 +1448,7 @@ export declare const DsgTableRowHeader: import('vue').DefineComponent<{
|
|
|
1444
1448
|
export type { DsgTableSearchProps } from './components/Table/DsgTableSearch.vue';
|
|
1445
1449
|
export type { DsgTableSearchFacet, DsgTableSearchRefine, DsgTableFilterProps } from './components/Table/DsgTableFilter.vue';
|
|
1446
1450
|
export type { DsgTableSortField } from './components/Table/DsgTableRowHeader.vue';
|
|
1451
|
+
export type { DsgTableField, DsgTableCustomCss, DsgTableComponentQueryParams, DsgTableHttpOptions } from './components/Table/DsgTableComponent.vue';
|
|
1447
1452
|
/**
|
|
1448
1453
|
* --------------------------------------------------------------------------
|
|
1449
1454
|
* Export: Default
|
|
@@ -1461,6 +1466,7 @@ declare const _default: {
|
|
|
1461
1466
|
reloadTable: () => void;
|
|
1462
1467
|
updateRowTable: (rowData: any) => void;
|
|
1463
1468
|
termChanged: (term: string | null) => void;
|
|
1469
|
+
setFilters: (filters: any) => void;
|
|
1464
1470
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
1465
1471
|
"dsg-table:action-edit": (ev: Event, rowData: Record<string, any>) => any;
|
|
1466
1472
|
"dsg-table:action-view": (ev: Event, rowData: Record<string, any>) => any;
|
|
@@ -1482,12 +1488,12 @@ declare const _default: {
|
|
|
1482
1488
|
readonly httpMethod?: "get" | "post" | undefined;
|
|
1483
1489
|
readonly reactiveApiUrl?: boolean | undefined;
|
|
1484
1490
|
readonly apiMode?: boolean | undefined;
|
|
1485
|
-
readonly data?: (Array<any> |
|
|
1491
|
+
readonly data?: (Array<any> | null) | undefined;
|
|
1486
1492
|
readonly dataManager?: (Function | null) | undefined;
|
|
1487
1493
|
readonly dataPath?: string | undefined;
|
|
1488
1494
|
readonly tableLayout?: "fixed" | "auto" | undefined;
|
|
1489
1495
|
readonly paginationPath?: string | undefined;
|
|
1490
|
-
readonly queryParams?: import('./
|
|
1496
|
+
readonly queryParams?: import('./table').DsgTableComponentQueryParams | undefined;
|
|
1491
1497
|
readonly httpOptions?: {
|
|
1492
1498
|
[key: string]: any;
|
|
1493
1499
|
} | undefined | undefined;
|
|
@@ -1505,7 +1511,7 @@ declare const _default: {
|
|
|
1505
1511
|
readonly detailRowClass?: (string | Function) | undefined;
|
|
1506
1512
|
readonly detailRowOptions?: Object | undefined;
|
|
1507
1513
|
readonly trackBy?: string | undefined;
|
|
1508
|
-
readonly css?: import('./
|
|
1514
|
+
readonly css?: import('./table').DsgTableCustomCss | undefined;
|
|
1509
1515
|
readonly minRows?: number | undefined;
|
|
1510
1516
|
readonly noDataTemplate?: string | undefined;
|
|
1511
1517
|
readonly showSortIcons?: boolean | undefined;
|
|
@@ -1604,10 +1610,10 @@ declare const _default: {
|
|
|
1604
1610
|
$slots: Partial<Record<string, (_: {
|
|
1605
1611
|
rowData: any;
|
|
1606
1612
|
rowIndex: number;
|
|
1607
|
-
rowField: import('./
|
|
1613
|
+
rowField: import('./table').DsgTableField;
|
|
1608
1614
|
}) => any>> & {
|
|
1609
1615
|
tableHeader?(_: {
|
|
1610
|
-
fields: import('./
|
|
1616
|
+
fields: import('./table').DsgTableField[];
|
|
1611
1617
|
}): any;
|
|
1612
1618
|
'dsg-table-loading'?(_: {}): any;
|
|
1613
1619
|
'dsg-table-detail-row'?(_: {
|
|
@@ -1617,7 +1623,7 @@ declare const _default: {
|
|
|
1617
1623
|
}): any;
|
|
1618
1624
|
'dsg-table-empty-result'?(_: {}): any;
|
|
1619
1625
|
'dsg-table-footer'?(_: {
|
|
1620
|
-
fields: import('./
|
|
1626
|
+
fields: import('./table').DsgTableField[];
|
|
1621
1627
|
data: any[] | null;
|
|
1622
1628
|
}): any;
|
|
1623
1629
|
};
|
|
@@ -1683,6 +1689,7 @@ declare const _default: {
|
|
|
1683
1689
|
reloadTable: () => void;
|
|
1684
1690
|
updateRowTable: (rowData: any) => void;
|
|
1685
1691
|
termChanged: (term: string | null) => void;
|
|
1692
|
+
setFilters: (filters: any) => void;
|
|
1686
1693
|
}, {}, {}, {}, {}>;
|
|
1687
1694
|
__isFragment?: never;
|
|
1688
1695
|
__isTeleport?: never;
|
|
@@ -1697,6 +1704,7 @@ declare const _default: {
|
|
|
1697
1704
|
reloadTable: () => void;
|
|
1698
1705
|
updateRowTable: (rowData: any) => void;
|
|
1699
1706
|
termChanged: (term: string | null) => void;
|
|
1707
|
+
setFilters: (filters: any) => void;
|
|
1700
1708
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
1701
1709
|
"dsg-table:action-edit": (ev: Event, rowData: Record<string, any>) => any;
|
|
1702
1710
|
"dsg-table:action-view": (ev: Event, rowData: Record<string, any>) => any;
|
|
@@ -1706,7 +1714,7 @@ declare const _default: {
|
|
|
1706
1714
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
1707
1715
|
$slots: Partial<Record<string, (_: {
|
|
1708
1716
|
rowData: any;
|
|
1709
|
-
rowField: import('./
|
|
1717
|
+
rowField: import('./table').DsgTableField;
|
|
1710
1718
|
rowIndex: number;
|
|
1711
1719
|
}) => any>> & {
|
|
1712
1720
|
'dsg-table--pre-header'?(_: {}): any;
|
|
@@ -1723,11 +1731,12 @@ declare const _default: {
|
|
|
1723
1731
|
'dsg-table--search-actions'?(_: {
|
|
1724
1732
|
data: null;
|
|
1725
1733
|
}): any;
|
|
1734
|
+
'dsg-table--search-navigation'?(_: {}): any;
|
|
1726
1735
|
'dsg-table-actions'?(_: {
|
|
1727
1736
|
data: {
|
|
1728
1737
|
rowData: any;
|
|
1729
1738
|
rowIndex: number;
|
|
1730
|
-
rowField: import('./
|
|
1739
|
+
rowField: import('./table').DsgTableField;
|
|
1731
1740
|
};
|
|
1732
1741
|
}): any;
|
|
1733
1742
|
'dsg-table--footer-left'?(_: {
|
|
@@ -2309,10 +2318,10 @@ declare const _default: {
|
|
|
2309
2318
|
});
|
|
2310
2319
|
DsgTablePerPage: import('vue').DefineComponent<import('./components/Table/DsgTablePerPage.vue').DsgTablePerPageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('./components/Table/DsgTablePerPage.vue').DsgTablePerPageProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2311
2320
|
DsgTableFilter: {
|
|
2312
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./
|
|
2313
|
-
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./
|
|
2321
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./main').DsgFilterProps> & Readonly<{
|
|
2322
|
+
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any) | undefined;
|
|
2314
2323
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2315
|
-
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: import('./
|
|
2324
|
+
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any;
|
|
2316
2325
|
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
2317
2326
|
dsgTableFilter: HTMLDivElement;
|
|
2318
2327
|
floatingVueFilterDropdownEl: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -2811,16 +2820,16 @@ declare const _default: {
|
|
|
2811
2820
|
C: {};
|
|
2812
2821
|
M: {};
|
|
2813
2822
|
Defaults: {};
|
|
2814
|
-
}, Readonly<import('./
|
|
2815
|
-
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./
|
|
2823
|
+
}, Readonly<import('./main').DsgFilterProps> & Readonly<{
|
|
2824
|
+
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any) | undefined;
|
|
2816
2825
|
}>, {}, {}, {}, {}, {}>;
|
|
2817
2826
|
__isFragment?: never;
|
|
2818
2827
|
__isTeleport?: never;
|
|
2819
2828
|
__isSuspense?: never;
|
|
2820
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./
|
|
2821
|
-
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./
|
|
2829
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./main').DsgFilterProps> & Readonly<{
|
|
2830
|
+
"onDsg-table:filter-updated"?: ((params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any) | undefined;
|
|
2822
2831
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2823
|
-
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: import('./
|
|
2832
|
+
"dsg-table:filter-updated": (params: any, payload: any, activeFacet: import('./main').DsgSearchFacet | null | undefined) => any;
|
|
2824
2833
|
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
2825
2834
|
$slots: {
|
|
2826
2835
|
'dsg-table--filter-trigger'?(_: {}): any;
|
|
@@ -2856,26 +2865,26 @@ declare const _default: {
|
|
|
2856
2865
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2857
2866
|
DsgTableRowHeader: import('vue').DefineComponent<{
|
|
2858
2867
|
sortField?: import('./table').DsgTableSortField;
|
|
2859
|
-
selectedRows?: import('./
|
|
2868
|
+
selectedRows?: import('./table').DsgTableField[];
|
|
2860
2869
|
hasSelected?: boolean;
|
|
2861
2870
|
} & import('./components/Table/DsgTableRowHeader.vue').DsgTableRowHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2862
2871
|
"update:sortField": (value: import('./table').DsgTableSortField) => any;
|
|
2863
|
-
"update:selectedRows": (value: import('./
|
|
2872
|
+
"update:selectedRows": (value: import('./table').DsgTableField[]) => any;
|
|
2864
2873
|
"update:hasSelected": (value: boolean) => any;
|
|
2865
2874
|
} & {
|
|
2866
|
-
"dsg-table:sort-field": (field: import('./
|
|
2875
|
+
"dsg-table:sort-field": (field: import('./table').DsgTableField) => any;
|
|
2867
2876
|
"dsg-table:on-select-all": () => any;
|
|
2868
2877
|
"dsg-table:on-deselect-all": () => any;
|
|
2869
2878
|
}, string, import('vue').PublicProps, Readonly<{
|
|
2870
2879
|
sortField?: import('./table').DsgTableSortField;
|
|
2871
|
-
selectedRows?: import('./
|
|
2880
|
+
selectedRows?: import('./table').DsgTableField[];
|
|
2872
2881
|
hasSelected?: boolean;
|
|
2873
2882
|
} & import('./components/Table/DsgTableRowHeader.vue').DsgTableRowHeaderProps> & Readonly<{
|
|
2874
|
-
"onDsg-table:sort-field"?: ((field: import('./
|
|
2883
|
+
"onDsg-table:sort-field"?: ((field: import('./table').DsgTableField) => any) | undefined;
|
|
2875
2884
|
"onDsg-table:on-select-all"?: (() => any) | undefined;
|
|
2876
2885
|
"onDsg-table:on-deselect-all"?: (() => any) | undefined;
|
|
2877
2886
|
"onUpdate:sortField"?: ((value: import('./table').DsgTableSortField) => any) | undefined;
|
|
2878
|
-
"onUpdate:selectedRows"?: ((value: import('./
|
|
2887
|
+
"onUpdate:selectedRows"?: ((value: import('./table').DsgTableField[]) => any) | undefined;
|
|
2879
2888
|
"onUpdate:hasSelected"?: ((value: boolean) => any) | undefined;
|
|
2880
2889
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
2881
2890
|
};
|
|
@@ -8,8 +8,21 @@
|
|
|
8
8
|
*
|
|
9
9
|
* --------------------------------------------------------------------------
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Type for focus ring colour config. All values are strings (hex or rgb).
|
|
13
|
+
*/
|
|
14
|
+
export interface FocusRingColourConfig {
|
|
15
|
+
brandColor: string;
|
|
16
|
+
grayColor: string;
|
|
17
|
+
errorColor: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Factory function to create a focus ring plugin with custom colours.
|
|
21
|
+
* Falls back to DsgColoursConfig if not provided.
|
|
22
|
+
*/
|
|
23
|
+
export declare function createFocusRingPlugin(colours?: Partial<FocusRingColourConfig>): {
|
|
12
24
|
handler: import('tailwindcss/types/config').PluginCreator;
|
|
13
25
|
config?: Partial<import('tailwindcss/types/config').Config>;
|
|
14
26
|
};
|
|
27
|
+
declare const FocusRingsPlugin: typeof createFocusRingPlugin;
|
|
15
28
|
export default FocusRingsPlugin;
|
package/dist/tailwind.d.ts
CHANGED
|
@@ -863,3 +863,4 @@ export declare const DsgFontFamilyConfig: {
|
|
|
863
863
|
brand: string[];
|
|
864
864
|
inter: string[];
|
|
865
865
|
};
|
|
866
|
+
export { DsgTypographyPlugin, DsgRadiusPlugin, DsgGradientPlugin, DsgBackdropBlurPlugin, DsgShadowsPlugin, DsgFocusRingsPlugin, DsgContainerPlugin, DsgHeightPlugin, DsgScreenPlugin, DsgSpacingPlugin, DsgWidthPlugin, } from './tailwind/plugins/PluginCore';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcodegroup-au/dsg-vue",
|
|
3
3
|
"description": "Front-end Vue/Tailwind DSG for UntitledUI.",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.21",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"preinstall": "npx only-allow pnpm",
|
|
@@ -94,27 +94,27 @@
|
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@eslint/eslintrc": "^3.3.1",
|
|
97
|
-
"@eslint/js": "^9.
|
|
97
|
+
"@eslint/js": "^9.28.0",
|
|
98
98
|
"@testing-library/vue": "^8.1.0",
|
|
99
99
|
"@types/eslint": "^9.6.1",
|
|
100
|
-
"@types/node": "^22.15.
|
|
100
|
+
"@types/node": "^22.15.30",
|
|
101
101
|
"@types/uuid": "^10.0.0",
|
|
102
102
|
"@vitejs/plugin-vue": "^5.2.4",
|
|
103
103
|
"@vue/eslint-config-typescript": "^14.5.0",
|
|
104
104
|
"@vuepic/vue-datepicker": "^11.0.2",
|
|
105
|
-
"@vueuse/components": "^
|
|
106
|
-
"@vueuse/core": "^
|
|
107
|
-
"@vueuse/integrations": "^13.
|
|
105
|
+
"@vueuse/components": "^13.3.0",
|
|
106
|
+
"@vueuse/core": "^13.3.0",
|
|
107
|
+
"@vueuse/integrations": "^13.3.0",
|
|
108
108
|
"axios": "^1.9.0",
|
|
109
109
|
"card-validator": "^10.0.2",
|
|
110
110
|
"dayjs": "^1.11.13",
|
|
111
|
-
"eslint": "^9.
|
|
112
|
-
"eslint-config-prettier": "^
|
|
113
|
-
"eslint-plugin-prettier": "^5.4.
|
|
111
|
+
"eslint": "^9.28.0",
|
|
112
|
+
"eslint-config-prettier": "^10.1.5",
|
|
113
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
114
114
|
"eslint-plugin-storybook": "^0.12.0",
|
|
115
|
-
"eslint-plugin-vue": "^
|
|
115
|
+
"eslint-plugin-vue": "^10.2.0",
|
|
116
116
|
"floating-vue": "^5.2.2",
|
|
117
|
-
"globals": "^
|
|
117
|
+
"globals": "^16.2.0",
|
|
118
118
|
"hotkeys-js": "^3.13.10",
|
|
119
119
|
"jest": "^29.7.0",
|
|
120
120
|
"jiti": "^2.4.2",
|
|
@@ -122,19 +122,19 @@
|
|
|
122
122
|
"only-allow": "^1.2.1",
|
|
123
123
|
"phone": "^3.1.59",
|
|
124
124
|
"prettier": "^3.5.3",
|
|
125
|
-
"sass": "^1.89.
|
|
126
|
-
"semantic-release": "^24.2.
|
|
125
|
+
"sass": "^1.89.1",
|
|
126
|
+
"semantic-release": "^24.2.5",
|
|
127
127
|
"storybook": "^8.6.14",
|
|
128
128
|
"tailwindcss": "^3.4.17",
|
|
129
129
|
"typescript": "^5.8.3",
|
|
130
|
-
"typescript-eslint": "^8.
|
|
130
|
+
"typescript-eslint": "^8.34.0",
|
|
131
131
|
"ua-parser-js": "^2.0.3",
|
|
132
132
|
"uuid": "^11.1.0",
|
|
133
|
-
"vditor": "^3.11.
|
|
133
|
+
"vditor": "^3.11.1",
|
|
134
134
|
"vite": "^6.3.5",
|
|
135
135
|
"vite-plugin-dts": "^4.5.4",
|
|
136
136
|
"vite-svg-loader": "^5.1.0",
|
|
137
|
-
"vitest": "^3.
|
|
137
|
+
"vitest": "^3.2.3",
|
|
138
138
|
"vue-multiselect": "^3.2.0",
|
|
139
139
|
"vue-tsc": "^2.2.10",
|
|
140
140
|
"vue3-toastify": "^0.2.8"
|
|
@@ -147,4 +147,4 @@
|
|
|
147
147
|
"plugin:storybook/recommended"
|
|
148
148
|
]
|
|
149
149
|
}
|
|
150
|
-
}
|
|
150
|
+
}
|
package/tsconfig.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -49,6 +49,7 @@ export default defineConfig(({ command, mode }) => {
|
|
|
49
49
|
alias: {
|
|
50
50
|
"@": path.resolve(__dirname, "src"),
|
|
51
51
|
"~": path.resolve(__dirname),
|
|
52
|
+
"~nm": path.resolve(__dirname, "./node_modules"),
|
|
52
53
|
"@components": path.resolve(__dirname, "src/components"),
|
|
53
54
|
"@tailwind": path.resolve(__dirname, "src/tailwind"),
|
|
54
55
|
"@tw": path.resolve(__dirname, "src/tailwind"),
|