@ganpatiinfo/gids-web-dom-reference 12.0.0 → 13.0.0
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/CHANGELOG.md +84 -2
- package/dist/components/GidsAdvancedTooltip/GidsAdvancedTooltip.d.ts +8 -0
- package/dist/components/GidsAdvancedTooltip/GidsAdvancedTooltip.d.ts.map +1 -0
- package/dist/components/GidsAdvancedTooltip/GidsAdvancedTooltip.js +14 -0
- package/dist/components/GidsAdvancedTooltip/GidsAdvancedTooltip.js.map +1 -0
- package/dist/components/GidsBasicTableBody/GidsBasicTableBody.d.ts +26 -3
- package/dist/components/GidsBasicTableBody/GidsBasicTableBody.d.ts.map +1 -1
- package/dist/components/GidsBasicTableBody/GidsBasicTableBody.js +22 -3
- package/dist/components/GidsBasicTableBody/GidsBasicTableBody.js.map +1 -1
- package/dist/components/GidsBasicTableHead/GidsBasicTableHead.d.ts +15 -0
- package/dist/components/GidsBasicTableHead/GidsBasicTableHead.d.ts.map +1 -1
- package/dist/components/GidsBasicTableHead/GidsBasicTableHead.js +5 -0
- package/dist/components/GidsBasicTableHead/GidsBasicTableHead.js.map +1 -1
- package/dist/components/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +26 -3
- package/dist/components/GidsBasicTableHeader/GidsBasicTableHeader.d.ts.map +1 -1
- package/dist/components/GidsBasicTableHeader/GidsBasicTableHeader.js +9 -1
- package/dist/components/GidsBasicTableHeader/GidsBasicTableHeader.js.map +1 -1
- package/dist/components/GidsBasicTableRow/GidsBasicTableRow.d.ts +22 -3
- package/dist/components/GidsBasicTableRow/GidsBasicTableRow.d.ts.map +1 -1
- package/dist/components/GidsBasicTableRow/GidsBasicTableRow.js +27 -6
- package/dist/components/GidsBasicTableRow/GidsBasicTableRow.js.map +1 -1
- package/dist/components/GidsBsTable/GidsBsTable.d.ts +26 -3
- package/dist/components/GidsBsTable/GidsBsTable.d.ts.map +1 -1
- package/dist/components/GidsBsTable/GidsBsTable.js +36 -14
- package/dist/components/GidsBsTable/GidsBsTable.js.map +1 -1
- package/dist/components/GidsChartLegendItem/GidsChartLegendItem.d.ts +1 -1
- package/dist/components/GidsChartLegendItem/GidsChartLegendItem.d.ts.map +1 -1
- package/dist/components/GidsChartLegendItem/GidsChartLegendItem.js +2 -1
- package/dist/components/GidsChartLegendItem/GidsChartLegendItem.js.map +1 -1
- package/dist/components/GidsColorSwatch/GidsColorSwatch.d.ts +8 -0
- package/dist/components/GidsColorSwatch/GidsColorSwatch.d.ts.map +1 -0
- package/dist/components/GidsColorSwatch/GidsColorSwatch.js +62 -0
- package/dist/components/GidsColorSwatch/GidsColorSwatch.js.map +1 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts +12 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts.map +1 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.js +70 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.js.map +1 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +12 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts.map +1 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js +70 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js.map +1 -0
- package/dist/components/GidsMdTable/GidsMdTable.d.ts +11 -2
- package/dist/components/GidsMdTable/GidsMdTable.d.ts.map +1 -1
- package/dist/components/GidsMdTable/GidsMdTable.js +3 -0
- package/dist/components/GidsMdTable/GidsMdTable.js.map +1 -1
- package/dist/components/GidsPagination/GidsPagination.d.ts +10 -0
- package/dist/components/GidsPagination/GidsPagination.d.ts.map +1 -1
- package/dist/components/GidsPagination/GidsPagination.js +5 -0
- package/dist/components/GidsPagination/GidsPagination.js.map +1 -1
- package/dist/components/GidsPaginator/GidsPaginator.d.ts +8 -0
- package/dist/components/GidsPaginator/GidsPaginator.d.ts.map +1 -0
- package/dist/components/GidsPaginator/GidsPaginator.js +154 -0
- package/dist/components/GidsPaginator/GidsPaginator.js.map +1 -0
- package/dist/components/GidsPaginatorItem/GidsPaginatorItem.d.ts +9 -0
- package/dist/components/GidsPaginatorItem/GidsPaginatorItem.d.ts.map +1 -0
- package/dist/components/GidsPaginatorItem/GidsPaginatorItem.js +33 -0
- package/dist/components/GidsPaginatorItem/GidsPaginatorItem.js.map +1 -0
- package/dist/components/GidsTable/GidsTable.d.ts +18 -0
- package/dist/components/GidsTable/GidsTable.d.ts.map +1 -0
- package/dist/components/GidsTable/GidsTable.js +96 -0
- package/dist/components/GidsTable/GidsTable.js.map +1 -0
- package/dist/components/GidsTableBody/GidsTableBody.d.ts +13 -0
- package/dist/components/GidsTableBody/GidsTableBody.d.ts.map +1 -0
- package/dist/components/GidsTableBody/GidsTableBody.js +61 -0
- package/dist/components/GidsTableBody/GidsTableBody.js.map +1 -0
- package/dist/components/GidsTableCell/GidsTableCell.d.ts +28 -0
- package/dist/components/GidsTableCell/GidsTableCell.d.ts.map +1 -0
- package/dist/components/GidsTableCell/GidsTableCell.js +146 -0
- package/dist/components/GidsTableCell/GidsTableCell.js.map +1 -0
- package/dist/components/GidsTableEntry/GidsTableEntry.d.ts +13 -0
- package/dist/components/GidsTableEntry/GidsTableEntry.d.ts.map +1 -0
- package/dist/components/GidsTableEntry/GidsTableEntry.js +305 -0
- package/dist/components/GidsTableEntry/GidsTableEntry.js.map +1 -0
- package/dist/components/GidsTableFooter/GidsTableFooter.d.ts +13 -0
- package/dist/components/GidsTableFooter/GidsTableFooter.d.ts.map +1 -0
- package/dist/components/GidsTableFooter/GidsTableFooter.js +75 -0
- package/dist/components/GidsTableFooter/GidsTableFooter.js.map +1 -0
- package/dist/components/GidsTableFooterControl/GidsTableFooterControl.d.ts +11 -0
- package/dist/components/GidsTableFooterControl/GidsTableFooterControl.d.ts.map +1 -0
- package/dist/components/GidsTableFooterControl/GidsTableFooterControl.js +97 -0
- package/dist/components/GidsTableFooterControl/GidsTableFooterControl.js.map +1 -0
- package/dist/components/GidsTableHeader/GidsTableHeader.d.ts +13 -0
- package/dist/components/GidsTableHeader/GidsTableHeader.d.ts.map +1 -0
- package/dist/components/GidsTableHeader/GidsTableHeader.js +51 -0
- package/dist/components/GidsTableHeader/GidsTableHeader.js.map +1 -0
- package/dist/components/GidsTableRow/GidsTableRow.d.ts +13 -0
- package/dist/components/GidsTableRow/GidsTableRow.d.ts.map +1 -0
- package/dist/components/GidsTableRow/GidsTableRow.js +71 -0
- package/dist/components/GidsTableRow/GidsTableRow.js.map +1 -0
- package/dist/components/GidsTableToolbar/GidsTableToolbar.d.ts +11 -0
- package/dist/components/GidsTableToolbar/GidsTableToolbar.d.ts.map +1 -0
- package/dist/components/GidsTableToolbar/GidsTableToolbar.js +92 -0
- package/dist/components/GidsTableToolbar/GidsTableToolbar.js.map +1 -0
- package/dist/components/_GidsPaginationItem/GidsPaginationItem.d.ts +10 -0
- package/dist/components/_GidsPaginationItem/GidsPaginationItem.d.ts.map +1 -1
- package/dist/components/_GidsPaginationItem/GidsPaginationItem.js +5 -0
- package/dist/components/_GidsPaginationItem/GidsPaginationItem.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/GidsAdvancedTooltip/GidsAdvancedTooltip.ts +42 -0
- package/src/components/GidsBasicTableBody/GidsBasicTableBody.ts +66 -5
- package/src/components/GidsBasicTableHead/GidsBasicTableHead.ts +15 -0
- package/src/components/GidsBasicTableHeader/GidsBasicTableHeader.ts +45 -5
- package/src/components/GidsBasicTableRow/GidsBasicTableRow.ts +65 -7
- package/src/components/GidsBsTable/GidsBsTable.ts +81 -19
- package/src/components/GidsChartLegendItem/GidsChartLegendItem.ts +2 -0
- package/src/components/GidsColorSwatch/GidsColorSwatch.ts +107 -0
- package/src/components/GidsMatrixTable/GidsMatrixTable.ts +167 -0
- package/src/components/GidsMatrixTableBody/GidsMatrixTableBody.ts +164 -0
- package/src/components/GidsMdTable/GidsMdTable.ts +14 -2
- package/src/components/GidsPagination/GidsPagination.ts +14 -2
- package/src/components/GidsPaginator/GidsPaginator.ts +241 -0
- package/src/components/GidsPaginatorItem/GidsPaginatorItem.ts +72 -0
- package/src/components/GidsTable/GidsTable.ts +203 -0
- package/src/components/GidsTableBody/GidsTableBody.ts +137 -0
- package/src/components/GidsTableCell/GidsTableCell.ts +276 -0
- package/src/components/GidsTableEntry/GidsTableEntry.ts +515 -0
- package/src/components/GidsTableFooter/GidsTableFooter.ts +157 -0
- package/src/components/GidsTableFooterControl/GidsTableFooterControl.ts +159 -0
- package/src/components/GidsTableHeader/GidsTableHeader.ts +116 -0
- package/src/components/GidsTableRow/GidsTableRow.ts +154 -0
- package/src/components/GidsTableToolbar/GidsTableToolbar.ts +180 -0
- package/src/components/_GidsPaginationItem/GidsPaginationItem.ts +14 -2
- package/src/index.ts +15 -1
- package/dist/components/GidsBasicTableCell/GidsBasicTableCell.d.ts +0 -9
- package/dist/components/GidsBasicTableCell/GidsBasicTableCell.d.ts.map +0 -1
- package/dist/components/GidsBasicTableCell/GidsBasicTableCell.js +0 -48
- package/dist/components/GidsBasicTableCell/GidsBasicTableCell.js.map +0 -1
- package/src/components/GidsBasicTableCell/GidsBasicTableCell.ts +0 -99
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,87 @@
|
|
|
1
1
|
# @ganpatiinfo/gids-web-dom-reference
|
|
2
2
|
|
|
3
|
+
## 13.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 80f5f36: - Marked `GidsBasicTableRow` component as `Deprecated`
|
|
8
|
+
- 80f5f36: - Marked `GidsBasicTableBody` component as `Deprecated`
|
|
9
|
+
- 80f5f36: - Marked `GidsBasicTableHeader` component as `Deprecated`
|
|
10
|
+
- 80f5f36: - Marked `GidsBsTable` component as `Deprecated`
|
|
11
|
+
- 80f5f36: - Marked `GidsPagination` component as `Deprecated`
|
|
12
|
+
- 86cd593: - Breaking Changes:- Added ability to have any number of bars in `GidsBarChart`
|
|
13
|
+
- 86cd593: - Added ability to have points and information in `GidsBarChart` web component
|
|
14
|
+
- 80f5f36: - Marked `_GidsPaginationItem` private component as `Deprecated`
|
|
15
|
+
- 86cd593: - Added ability to have points and information in `GidsLineChart` web component
|
|
16
|
+
- 80f5f36: - Marked `GidsTableCell` component as `Deprecated`
|
|
17
|
+
- 86cd593: Themes changes added new data colors
|
|
18
|
+
- a070c87: - Marked `GidsMdTable` as deprecated
|
|
19
|
+
- 80f5f36: - Marked `GidsBasicTableHead` component as `Deprecated`
|
|
20
|
+
- 86cd593: - Breaking Changes:- Added ability to have any number of lines in `GidsLineChart`
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- 10c63d7: - Added action buttons capability to `GidsBasicTableBody` component for all web platforms
|
|
25
|
+
- 10c63d7: - Added action buttons capability to `GidsBasicTableRow` component for all web platforms
|
|
26
|
+
- 80f5f36: - Developed `GidsTableToolbar` component for all web platforms
|
|
27
|
+
- a070c87: - Developed `GidsMatrixTableBody` component for all web platforms
|
|
28
|
+
- 86cd593: - Developed `GidsAdvancedTooltip` web component for all web platforms
|
|
29
|
+
- 80f5f36: - Developed `GidsTable` component for all web platforms
|
|
30
|
+
- 80f5f36: - Developed `GidsTableEntry` component for all web platforms
|
|
31
|
+
- 80f5f36: - Developed `GidsPaginatorItem` component for all web platforms
|
|
32
|
+
- 10c63d7: - Added action buttons capability to `GidsTableCell` component for all web platforms
|
|
33
|
+
- 80f5f36: - Developed `GidsPaginator` component for all web platforms
|
|
34
|
+
- 80f5f36: - Developed `GidsTableFooterControl` component for all web platforms
|
|
35
|
+
- 10c63d7: - Added action buttons capability to `GidsBsTable` component for all web platforms
|
|
36
|
+
- 10c63d7: - Added action buttons capability to `GidsBasicTableHeader` component for all web platforms
|
|
37
|
+
- 86cd593: - Fixed `GidsChartLegendItem` component to support dynamic colors
|
|
38
|
+
- 35b194c: - Developed `GidsColorSwatch` component for all web platforms
|
|
39
|
+
- 80f5f36: - Developed `GidsTableHeader` component for all web platforms
|
|
40
|
+
- 80f5f36: - Developed `GidsTableFooter` component for all web platforms
|
|
41
|
+
- 80f5f36: - Developed `GidsTableBody` component for all web platforms
|
|
42
|
+
- 80f5f36: - Developed `GidsTableRow` component for all web platforms
|
|
43
|
+
- 837a153: - Developed `GidsMatrixTable` component for all web platforms
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Updated dependencies [10c63d7]
|
|
48
|
+
- Updated dependencies [10c63d7]
|
|
49
|
+
- Updated dependencies [80f5f36]
|
|
50
|
+
- Updated dependencies [80f5f36]
|
|
51
|
+
- Updated dependencies [80f5f36]
|
|
52
|
+
- Updated dependencies [a070c87]
|
|
53
|
+
- Updated dependencies [80f5f36]
|
|
54
|
+
- Updated dependencies [86cd593]
|
|
55
|
+
- Updated dependencies [80f5f36]
|
|
56
|
+
- Updated dependencies [80f5f36]
|
|
57
|
+
- Updated dependencies [80f5f36]
|
|
58
|
+
- Updated dependencies [80f5f36]
|
|
59
|
+
- Updated dependencies [80f5f36]
|
|
60
|
+
- Updated dependencies [10c63d7]
|
|
61
|
+
- Updated dependencies [86cd593]
|
|
62
|
+
- Updated dependencies [80f5f36]
|
|
63
|
+
- Updated dependencies [86cd593]
|
|
64
|
+
- Updated dependencies [80f5f36]
|
|
65
|
+
- Updated dependencies [80f5f36]
|
|
66
|
+
- Updated dependencies [86cd593]
|
|
67
|
+
- Updated dependencies [10c63d7]
|
|
68
|
+
- Updated dependencies [10c63d7]
|
|
69
|
+
- Updated dependencies [86cd593]
|
|
70
|
+
- Updated dependencies [80f5f36]
|
|
71
|
+
- Updated dependencies [35b194c]
|
|
72
|
+
- Updated dependencies [80f5f36]
|
|
73
|
+
- Updated dependencies [86cd593]
|
|
74
|
+
- Updated dependencies [80f5f36]
|
|
75
|
+
- Updated dependencies [80f5f36]
|
|
76
|
+
- Updated dependencies [a070c87]
|
|
77
|
+
- Updated dependencies [80f5f36]
|
|
78
|
+
- Updated dependencies [80f5f36]
|
|
79
|
+
- Updated dependencies [837a153]
|
|
80
|
+
- Updated dependencies [86cd593]
|
|
81
|
+
- @ganpatiinfo/gids-core-shared@13.0.0
|
|
82
|
+
- @ganpatiinfo/gids-web-shared@12.0.0
|
|
83
|
+
- @ganpatiinfo/gids-web-theme-interface@7.0.0
|
|
84
|
+
|
|
3
85
|
## 12.0.0
|
|
4
86
|
|
|
5
87
|
### Major Changes
|
|
@@ -10,7 +92,7 @@
|
|
|
10
92
|
|
|
11
93
|
- c917d8d: - Added new functionality of having display tags in `GidsBsTable` component for all web platforms
|
|
12
94
|
- c917d8d: - Added new functionality of having display tags in `GidsMdTableC` component for all web platforms
|
|
13
|
-
- c917d8d: - Added new functionality of having display tags in `
|
|
95
|
+
- c917d8d: - Added new functionality of having display tags in `GidsTableCell` component for all web platforms
|
|
14
96
|
- c917d8d: - Added new functionality of having display tags in `GidsBasicTableRow` component for all web platforms
|
|
15
97
|
- c917d8d: - Added new functionality of having display tags in `GidsBasicTableHeader` component for all web platforms
|
|
16
98
|
- c917d8d: - Added new functionality of having display tags in `GidsBasicTableBody` component for all web platforms
|
|
@@ -40,7 +122,7 @@
|
|
|
40
122
|
|
|
41
123
|
### Minor Changes
|
|
42
124
|
|
|
43
|
-
- d31b4ed: - Developed `
|
|
125
|
+
- d31b4ed: - Developed `GidsTableCell` component for all web platforms
|
|
44
126
|
- d31b4ed: - Developed `GidsBasicTableRow` web component for all web platforms
|
|
45
127
|
- d31b4ed: - Developed `GidsBasicTableBody` component for all web platforms
|
|
46
128
|
- d31b4ed: - Developed `GidsBsTable` web component for all web platforms
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GidsAdvancedTooltipWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
type GidsAdvancedTooltipBaseWebProps = GidsAdvancedTooltipWebProps;
|
|
3
|
+
export interface GidsAdvancedTooltipDomProps extends GidsAdvancedTooltipBaseWebProps {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsAdvancedTooltipDom: ({ visible, x, y, placement, offset, items, extraClasses, }: GidsAdvancedTooltipDomProps) => HTMLElement;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=GidsAdvancedTooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsAdvancedTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/GidsAdvancedTooltip/GidsAdvancedTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,2BAA2B,EAE3B,MAAM,8BAA8B,CAAC;AAItC,KAAK,+BAA+B,GAAG,2BAA2B,CAAC;AAInE,MAAM,WAAW,2BAA4B,SAAQ,+BAA+B;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,sBAAsB,GAAI,4DAQpC,2BAA2B,KAAG,WAkBhC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { GidsAdvancedTooltipWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsAdvancedTooltipClassNames } = GidsAdvancedTooltipWebUtils;
|
|
3
|
+
export const GidsAdvancedTooltipDom = ({ visible = false, x = 0, y = 0, placement = 'top', offset = 12, items = [], extraClasses, }) => {
|
|
4
|
+
const advancedTooltip = document.createElement('gids-advanced-tooltip');
|
|
5
|
+
advancedTooltip.visible = visible;
|
|
6
|
+
advancedTooltip.x = x;
|
|
7
|
+
advancedTooltip.y = y;
|
|
8
|
+
advancedTooltip.placement = placement;
|
|
9
|
+
advancedTooltip.offset = offset;
|
|
10
|
+
advancedTooltip.items = items;
|
|
11
|
+
advancedTooltip.className = getGidsAdvancedTooltipClassNames({ visible }, extraClasses);
|
|
12
|
+
return advancedTooltip;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=GidsAdvancedTooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsAdvancedTooltip.js","sourceRoot":"","sources":["../../../src/components/GidsAdvancedTooltip/GidsAdvancedTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,2BAA2B,GAC3B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,EAAE,gCAAgC,EAAE,GAAG,2BAA2B,CAAC;AAUzE,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACtC,OAAO,GAAG,KAAK,EACf,CAAC,GAAG,CAAC,EACL,CAAC,GAAG,CAAC,EACL,SAAS,GAAG,KAAK,EACjB,MAAM,GAAG,EAAE,EACX,KAAK,GAAG,EAAE,EACV,YAAY,GACiB,EAAe,EAAE;IAC9C,MAAM,eAAe,GAAG,QAAQ,CAAC,aAAa,CAC7C,uBAAuB,CACO,CAAC;IAEhC,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC;IAClC,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC;IACtB,eAAe,CAAC,CAAC,GAAG,CAAC,CAAC;IACtB,eAAe,CAAC,SAAS,GAAG,SAAS,CAAC;IACtC,eAAe,CAAC,MAAM,GAAG,MAAM,CAAC;IAChC,eAAe,CAAC,KAAK,GAAG,KAAK,CAAC;IAE9B,eAAe,CAAC,SAAS,GAAG,gCAAgC,CAC3D,EAAE,OAAO,EAAE,EACX,YAAY,CACZ,CAAC;IAEF,OAAO,eAAe,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
import { GidsBasicTableBodyWebProps,
|
|
1
|
+
import { GidsBasicTableBodyWebProps, GidsTableCellTypographyStyle } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
3
|
-
|
|
3
|
+
import { GidsBasicTableBodyActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*
|
|
7
|
+
* Use `GidsTableBody` and its props and functions instead.
|
|
8
|
+
*/
|
|
9
|
+
type GidsBasicTableBodyBaseWebProps = GidsBasicTableBodyWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*
|
|
13
|
+
* Use `GidsTableBody` and its props and functions instead.
|
|
14
|
+
*/
|
|
15
|
+
export type GidsBasicTableBodyActionButtonBaseEvent = GidsBasicTableBodyActionButtonEvent<Event, GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
*
|
|
19
|
+
* Use `GidsTableBody` and its props and functions instead.
|
|
20
|
+
*/
|
|
4
21
|
export interface GidsBasicTableBodyDomProps extends GidsBasicTableBodyBaseWebProps {
|
|
5
22
|
extraClasses?: string;
|
|
23
|
+
onClickBodyCellActionBtn?: (event: GidsBasicTableBodyActionButtonBaseEvent) => void;
|
|
6
24
|
}
|
|
7
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*
|
|
28
|
+
* Use `GidsTableBody` and its props and functions instead.
|
|
29
|
+
*/
|
|
30
|
+
export declare const GidsBasicTableBodyDom: ({ width, tableBodyData, tableBorders, rowAppearance, rowLabelTypography, rowTextAlignment, tableBodyCellPrimaryActionButtons, tableBodyCellSecondaryActionButtons, onClickBodyCellActionBtn, extraClasses, }: GidsBasicTableBodyDomProps) => HTMLElement;
|
|
8
31
|
export {};
|
|
9
32
|
//# sourceMappingURL=GidsBasicTableBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBasicTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBasicTableBody/GidsBasicTableBody.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,0BAA0B,EAE1B,
|
|
1
|
+
{"version":3,"file":"GidsBasicTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBasicTableBody/GidsBasicTableBody.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,0BAA0B,EAE1B,4BAA4B,EAC5B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,mCAAmC,EAAE,MAAM,+BAA+B,CAAC;AAKpF;;;;GAIG;AACH,KAAK,8BAA8B,GAAG,0BAA0B,CAC/D,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,uCAAuC,GAClD,mCAAmC,CAClC,KAAK,EACL,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,0BAA2B,SAAQ,8BAA8B;IACjF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,wBAAwB,CAAC,EAAE,CAC1B,KAAK,EAAE,uCAAuC,KAC1C,IAAI,CAAC;CACV;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,8MAWnC,0BAA0B,KAAG,WA0D/B,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { GidsBasicTableBodyWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
-
import { GidsBasicTableRowDom } from '../GidsBasicTableRow/GidsBasicTableRow';
|
|
2
|
+
import { GidsBasicTableRowDom, } from '../GidsBasicTableRow/GidsBasicTableRow';
|
|
3
3
|
const { getGidsBasicTableBodyClassNames, getConstructedTableBodyData } = GidsBasicTableBodyWebUtils;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*
|
|
7
|
+
* Use `GidsTableBody` and its props and functions instead.
|
|
8
|
+
*/
|
|
9
|
+
export const GidsBasicTableBodyDom = ({ width = 'full', tableBodyData = [], tableBorders = 'none', rowAppearance = 'none', rowLabelTypography = 'label-medium', rowTextAlignment = 'center', tableBodyCellPrimaryActionButtons = [], tableBodyCellSecondaryActionButtons = [], onClickBodyCellActionBtn, extraClasses, }) => {
|
|
5
10
|
const tableBody = document.createElement('tbody');
|
|
6
11
|
tableBody.className = getGidsBasicTableBodyClassNames({ width }, extraClasses);
|
|
7
12
|
if (tableBodyData && tableBodyData.length > 0) {
|
|
@@ -12,13 +17,27 @@ export const GidsBasicTableBodyDom = ({ width = 'full', tableBodyData = [], tabl
|
|
|
12
17
|
tableBodyData,
|
|
13
18
|
tableBorders,
|
|
14
19
|
});
|
|
15
|
-
|
|
20
|
+
function onRowActionBtnClick({ event, rowIndex, }) {
|
|
21
|
+
if (onClickBodyCellActionBtn) {
|
|
22
|
+
onClickBodyCellActionBtn({
|
|
23
|
+
...event,
|
|
24
|
+
details: {
|
|
25
|
+
...event.details,
|
|
26
|
+
rowIndex,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
constructedBodyData.forEach((constructedBody, indexI) => {
|
|
16
32
|
const constructedBodyRowItems = constructedBody?.rowItems ?? [];
|
|
17
33
|
tableBody.append(GidsBasicTableRowDom({
|
|
18
34
|
width,
|
|
19
35
|
layout: 'horizontal',
|
|
20
36
|
isHeaderRow: false,
|
|
21
37
|
rows: constructedBodyRowItems,
|
|
38
|
+
cellPrimaryActionButtons: tableBodyCellPrimaryActionButtons,
|
|
39
|
+
cellSecondaryActionButtons: tableBodyCellSecondaryActionButtons,
|
|
40
|
+
onClickRowActionBtn: (event) => onRowActionBtnClick({ event, rowIndex: indexI }),
|
|
22
41
|
}));
|
|
23
42
|
});
|
|
24
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBasicTableBody.js","sourceRoot":"","sources":["../../../src/components/GidsBasicTableBody/GidsBasicTableBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,0BAA0B,GAE1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"GidsBasicTableBody.js","source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,EAAE,QAAQ,IAAI,EAAE,CAAC;YAEhE,SAAS,CAAC,MAAM,CACf,oBAAoB,CAAC;gBACpB,KAAK;gBACL,MAAM,EAAE,YAAY;gBACpB,WAAW,EAAE,KAAK;gBAClB,IAAI,EAAE,uBAAuB;gBAC7B,wBAAwB,EAAE,iCAAiC;gBAC3D,0BAA0B,EAAE,mCAAmC;gBAC/D,mBAAmB,EAAE,CACpB,KAA6C,EAC5C,EAAE,CAAC,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;aACrD,CAAC,CACF,CAAC;QACH,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -2,10 +2,25 @@ import { type GidsBasicTableHeadWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
|
2
2
|
import type { HtmlInputAttributes } from '../GidsInput/GidsInput';
|
|
3
3
|
import { GidsSearchBarDomProps } from '../GidsSearchBar/GidsSearchBar';
|
|
4
4
|
import { DomChildren } from '../../utils/domUtils';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*
|
|
8
|
+
* Use `GidsTableToolbarDom` and its props.
|
|
9
|
+
*/
|
|
5
10
|
type GidsBasicTableHeadBaseWebProps = GidsBasicTableHeadWebProps<DomChildren, Event, Element, HtmlInputAttributes> & Pick<GidsSearchBarDomProps, 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'onGidsSearchBarClear'>;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated
|
|
13
|
+
*
|
|
14
|
+
* Use `GidsTableToolbarDom` and its props.
|
|
15
|
+
*/
|
|
6
16
|
export interface GidsBasicTableHeadDomProps extends GidsBasicTableHeadBaseWebProps {
|
|
7
17
|
extraClasses?: string;
|
|
8
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*
|
|
22
|
+
* Use `GidsTableToolbarDom` and its props.
|
|
23
|
+
*/
|
|
9
24
|
export declare const GidsBasicTableHeadDom: ({ actionGroup, allFiltersTabVisible, moreFiltersTabVisible, clearAllFiltersVisible, clearAllFiltersButtonAppearance, primaryFilters, secondaryFilters, filterSize, filterAllIsDefaultSelected, dropdownDividerVisible, onToggleActionBarAllFilter, onToggleActionBarDropdownFilter, onToggleActionBarMoreFilter, onToggleActionBarNoneFilter, onDropdownSelectionActionBarFilterChange, onMoreSelectionActionBarFilterChange, onClearAllFiltersButton, actionBarDisabled, searchDisabled, allFiltersData, moreFiltersData, children, searchVisible, filtersVisible, childrenPosition, tabVisible, tabProps, borderSides, borderRadiusSides, leadingIcon, leadingLabel, trailingLabel, loading, readOnly, onGidsSearchBarClear, onChange, onInput, onFocus, onBlur, value, inputProps, headAppearance, extraClasses, ...restProps }: GidsBasicTableHeadDomProps) => HTMLElement;
|
|
10
25
|
export {};
|
|
11
26
|
//# sourceMappingURL=GidsBasicTableHead.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBasicTableHead.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBasicTableHead/GidsBasicTableHead.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,0BAA0B,EAE/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAEN,qBAAqB,EACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOrE,KAAK,8BAA8B,GAAG,0BAA0B,CAC/D,WAAW,EACX,KAAK,EACL,OAAO,EACP,mBAAmB,CACnB,GACA,IAAI,CACH,qBAAqB,EACrB,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,sBAAsB,CACtE,CAAC;AAEH,MAAM,WAAW,0BAA2B,SAAQ,8BAA8B;IACjF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,qBAAqB,GAAI,oyBA6CnC,0BAA0B,KAAG,WA+F/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"GidsBasicTableHead.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBasicTableHead/GidsBasicTableHead.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,0BAA0B,EAE/B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAEN,qBAAqB,EACrB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAOrE;;;;GAIG;AACH,KAAK,8BAA8B,GAAG,0BAA0B,CAC/D,WAAW,EACX,KAAK,EACL,OAAO,EACP,mBAAmB,CACnB,GACA,IAAI,CACH,qBAAqB,EACrB,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,sBAAsB,CACtE,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,0BAA2B,SAAQ,8BAA8B;IACjF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,oyBA6CnC,0BAA0B,KAAG,WA+F/B,CAAC"}
|
|
@@ -5,6 +5,11 @@ import { GidsActionBarDom } from '../GidsActionBar/GidsActionBar';
|
|
|
5
5
|
import { GidsTabDom } from '../GidsTab/GidsTab';
|
|
6
6
|
import { GidsTabItemDom } from '../GidsTabItem/GidsTabItem';
|
|
7
7
|
const { getGidsBasicTableHeadClassNames } = GidsBasicTableHeadWebUtils;
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated
|
|
10
|
+
*
|
|
11
|
+
* Use `GidsTableToolbarDom` and its props.
|
|
12
|
+
*/
|
|
8
13
|
export const GidsBasicTableHeadDom = ({ actionGroup = false, allFiltersTabVisible = false, moreFiltersTabVisible = false, clearAllFiltersVisible = true, clearAllFiltersButtonAppearance = 'primary', primaryFilters = [], secondaryFilters = [], filterSize = 'xs', filterAllIsDefaultSelected = true, dropdownDividerVisible, onToggleActionBarAllFilter, onToggleActionBarDropdownFilter, onToggleActionBarMoreFilter, onToggleActionBarNoneFilter, onDropdownSelectionActionBarFilterChange, onMoreSelectionActionBarFilterChange, onClearAllFiltersButton, actionBarDisabled = false, searchDisabled = false, allFiltersData, moreFiltersData, children, searchVisible = true, filtersVisible = true, childrenPosition = 'top-most', tabVisible = false, tabProps, borderSides = [], borderRadiusSides = [], leadingIcon, leadingLabel, trailingLabel, loading, readOnly, onGidsSearchBarClear, onChange, onInput, onFocus, onBlur, value = '', inputProps, headAppearance = 'surface-default', extraClasses, ...restProps }) => {
|
|
9
14
|
const basicTableHead = document.createElement('div');
|
|
10
15
|
basicTableHead.className = getGidsBasicTableHeadClassNames({ borderSides, borderRadiusSides, headAppearance }, extraClasses);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBasicTableHead.js","sourceRoot":"","sources":["../../../src/components/GidsBasicTableHead/GidsBasicTableHead.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,0BAA0B,GAC1B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,gBAAgB,GAEhB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,EAAE,+BAA+B,EAAE,GAAG,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsBasicTableHead.js","sourceRoot":"","sources":["../../../src/components/GidsBasicTableHead/GidsBasicTableHead.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,0BAA0B,GAC1B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,gBAAgB,GAEhB,M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,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,aAAa,EAAE,CAAC;QACnB,qBAAqB,CAAC,MAAM,CAC3B,gBAAgB,CAAC;YAChB,GAAG,SAAS;YACZ,IAAI,EAAE,SAAS;YACf,UAAU,EAAE,SAAS;YACrB,MAAM,EAAE,SAAS;YACjB,WAAW;YACX,YAAY;YACZ,aAAa;YACb,OAAO;YACP,QAAQ;YACR,oBAAoB;YACpB,QAAQ;YACR,OAAO;YACP,OAAO;YACP,MAAM;YACN,KAAK;YACL,QAAQ,EAAE,cAAc;YACxB,UAAU;SACV,CAAC,CACF,CAAC;IACH,CAAC;IAED,IAAI,cAAc,EAAE,CAAC;QACpB,qBAAqB,CAAC,MAAM,CAC3B,gBAAgB,CAAC;YAChB,WAAW;YACX,oBAAoB;YACpB,qBAAqB;YACrB,sBAAsB;YACtB,+BAA+B;YAC/B,cAAc;YACd,gBAAgB;YAChB,UAAU;YACV,0BAA0B;YAC1B,sBAAsB;YACtB,0BAA0B;YAC1B,+BAA+B;YAC/B,2BAA2B;YAC3B,2BAA2B;YAC3B,wCAAwC;YACxC,oCAAoC;YACpC,uBAAuB;YACvB,QAAQ,EAAE,iBAAiB;YAC3B,cAAc;YACd,eAAe;SACf,CAAC,CACF,CAAC;IACH,CAAC;IAED,IAAI,QAAQ,IAAI,gBAAgB,KAAK,aAAa,EAAE,CAAC;QACpD,gBAAgB,CAAC,qBAAqB,EAAE,QAAQ,CAAC,CAAC;IACnD,CAAC;IAED,gBAAgB,CAAC,cAAc,EAAE,qBAAqB,CAAC,CAAC;IAExD,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GidsTableCellTypographyStyle, GidsBasicTableHeaderWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsBasicTableHeaderActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
|
|
2
3
|
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
3
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*
|
|
7
|
+
* Use `GidsTableHeader` and its props and functions instead.
|
|
8
|
+
*/
|
|
9
|
+
type GidsBasicTableHeaderBaseWebProps = GidsBasicTableHeaderWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*
|
|
13
|
+
* Use `GidsTableHeader` and its props and functions instead.
|
|
14
|
+
*/
|
|
15
|
+
export type GidsBasicTableHeaderActionButtonBaseEvent = GidsBasicTableHeaderActionButtonEvent<Event, GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
*
|
|
19
|
+
* Use `GidsTableHeader` and its props and functions instead.
|
|
20
|
+
*/
|
|
4
21
|
export interface GidsBasicTableHeaderDomProps extends GidsBasicTableHeaderBaseWebProps {
|
|
5
22
|
extraClasses?: string;
|
|
23
|
+
onClickHeaderActionBtn?: (event: GidsBasicTableHeaderActionButtonBaseEvent) => void;
|
|
6
24
|
}
|
|
7
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*
|
|
28
|
+
* Use `GidsTableHeader` and its props and functions instead.
|
|
29
|
+
*/
|
|
30
|
+
export declare const GidsBasicTableHeaderDom: ({ width, headerCells, appearance, labelTypography, textAlignment, layout, cellPrimaryActionButtons, cellSecondaryActionButtons, onClickHeaderActionBtn, extraClasses, }: GidsBasicTableHeaderDomProps) => HTMLTableSectionElement;
|
|
8
31
|
export {};
|
|
9
32
|
//# sourceMappingURL=GidsBasicTableHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBasicTableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBasicTableHeader/GidsBasicTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,
|
|
1
|
+
{"version":3,"file":"GidsBasicTableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBasicTableHeader/GidsBasicTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,4BAA4B,EAC5B,4BAA4B,EAE5B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,qCAAqC,EAErC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAI/C;;;;GAIG;AACH,KAAK,gCAAgC,GAAG,4BAA4B,CACnE,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,yCAAyC,GACpD,qCAAqC,CACpC,KAAK,EACL,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,4BAA6B,SAAQ,gCAAgC;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,CACxB,KAAK,EAAE,yCAAyC,KAC5C,IAAI,CAAC;CACV;AAED;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAAI,yKAWrC,4BAA4B,4BA2C9B,CAAC"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { GidsBasicTableHeaderWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { GidsBasicTableRowDom } from '../GidsBasicTableRow/GidsBasicTableRow';
|
|
3
3
|
const { getGidsBasicTableHeaderClassNames } = GidsBasicTableHeaderWebUtils;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*
|
|
7
|
+
* Use `GidsTableHeader` and its props and functions instead.
|
|
8
|
+
*/
|
|
9
|
+
export const GidsBasicTableHeaderDom = ({ width = 'full', headerCells = [], appearance = 'none', labelTypography = 'label-medium', textAlignment = 'center', layout = 'horizontal', cellPrimaryActionButtons, cellSecondaryActionButtons, onClickHeaderActionBtn, extraClasses, }) => {
|
|
5
10
|
const basicTableHeader = document.createElement('thead');
|
|
6
11
|
basicTableHeader.className = getGidsBasicTableHeaderClassNames({ width }, extraClasses);
|
|
7
12
|
if (headerCells && headerCells.length > 0) {
|
|
@@ -18,6 +23,9 @@ export const GidsBasicTableHeaderDom = ({ width = 'full', headerCells = [], appe
|
|
|
18
23
|
layout,
|
|
19
24
|
rows: mappedHeaderCells,
|
|
20
25
|
isHeaderRow: true,
|
|
26
|
+
cellPrimaryActionButtons,
|
|
27
|
+
cellSecondaryActionButtons,
|
|
28
|
+
onClickRowActionBtn: onClickHeaderActionBtn,
|
|
21
29
|
});
|
|
22
30
|
basicTableHeader.append(rowContent);
|
|
23
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBasicTableHeader.js","sourceRoot":"","sources":["../../../src/components/GidsBasicTableHeader/GidsBasicTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,4BAA4B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsBasicTableHeader.js","sourceRoot":"","sources":["../../../src/components/GidsBasicTableHeader/GidsBasicTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,4BAA4B,GAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAU9E,MAAM,EAAE,iCAAiC,EAAE,GAAG,4BAA4B,CAAC;AAsC3E;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACvC,KAAK,GAAG,MAAM,EACd,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,MAAM,EACnB,eAAe,GAAG,cAAc,EAChC,aAAa,GAAG,QAAQ,EACxB,MAAM,GAAG,YAAY,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,YAAY,GACkB,EAAE,EAAE;IAClC,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACzD,gBAAgB,CAAC,SAAS,GAAG,iCAAiC,CAC7D,EAAE,KAAK,EAAE,EACT,YAAY,CACZ,CAAC;IAEF,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC3C,8EAA8E;QAC9E,MAAM,iBAAiB,GAIjB,WAAW,CAAC,GAAG,CACpB,CACC,IAAI,EAKH,EAAE,CAAC,CAAC;YACL,UAAU,EAAE,0CAA0C;YACtD,eAAe,EAAE,0CAA0C;YAC3D,aAAa,EAAE,8CAA8C;YAC7D,GAAG,IAAI,EAAE,2EAA2E;SACpF,CAAC,CACF,CAAC;QAEF,iEAAiE;QACjE,MAAM,UAAU,GAAG,oBAAoB,CAAC;YACvC,KAAK;YACL,MAAM;YACN,IAAI,EAAE,iBAAiB;YACvB,WAAW,EAAE,IAAI;YACjB,wBAAwB;YACxB,0BAA0B;YAC1B,mBAAmB,EAAE,sBAAsB;SAC3C,CAAC,CAAC;QAEH,gBAAgB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACrC,CAAC;IAED,OAAO,gBAAgB,CAAC;AACzB,CAAC,CAAC"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GidsTableCellTypographyStyle, type GidsBasicTableRowWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
3
|
-
|
|
3
|
+
import { GidsBasicTableRowActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
* Use `GidsTableRow` and its props and functions instead.
|
|
7
|
+
*/
|
|
8
|
+
type GidsBasicTableRowBaseWebProps = GidsBasicTableRowWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
* Use `GidsTableRow` and its props and functions instead.
|
|
12
|
+
*/
|
|
13
|
+
export type GidsBasicTableRowActionButtonBaseEvent = GidsBasicTableRowActionButtonEvent<Event, GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
* Use `GidsTableRow` and its props and functions instead.
|
|
17
|
+
*/
|
|
4
18
|
export interface GidsBasicTableRowDomProps extends GidsBasicTableRowBaseWebProps {
|
|
5
19
|
extraClasses?: string;
|
|
20
|
+
onClickRowActionBtn?: (event: GidsBasicTableRowActionButtonBaseEvent) => void;
|
|
6
21
|
}
|
|
7
|
-
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
* Use `GidsTableRow` and its props and functions instead.
|
|
25
|
+
*/
|
|
26
|
+
export declare const GidsBasicTableRowDom: ({ width, layout, rows, isHeaderRow, cellPrimaryActionButtons, cellSecondaryActionButtons, onClickRowActionBtn, extraClasses, }: GidsBasicTableRowDomProps) => HTMLElement | DocumentFragment;
|
|
8
27
|
export {};
|
|
9
28
|
//# sourceMappingURL=GidsBasicTableRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBasicTableRow.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBasicTableRow/GidsBasicTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,
|
|
1
|
+
{"version":3,"file":"GidsBasicTableRow.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBasicTableRow/GidsBasicTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,4BAA4B,EAC5B,KAAK,yBAAyB,EAE9B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,kCAAkC,EAAE,MAAM,+BAA+B,CAAC;AAInF;;;GAGG;AACH,KAAK,6BAA6B,GAAG,yBAAyB,CAC7D,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sCAAsC,GACjD,kCAAkC,CACjC,KAAK,EACL,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,6BAA6B;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,sCAAsC,KAAK,IAAI,CAAC;CAC9E;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAAI,gIASlC,yBAAyB,KAAG,WAAW,GAAG,gBA2E5C,CAAC"}
|
|
@@ -1,21 +1,39 @@
|
|
|
1
1
|
import { GidsBasicTableRowWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
-
import {
|
|
2
|
+
import { GidsTableCellDom, } from '../GidsTableCell/GidsTableCell.js';
|
|
3
3
|
const { getGidsBasicTableRowClassNames } = GidsBasicTableRowWebUtils;
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
* Use `GidsTableRow` and its props and functions instead.
|
|
7
|
+
*/
|
|
8
|
+
export const GidsBasicTableRowDom = ({ width = 'full', layout = 'horizontal', rows, isHeaderRow = false, cellPrimaryActionButtons, cellSecondaryActionButtons, onClickRowActionBtn, extraClasses, }) => {
|
|
5
9
|
const rowClassName = getGidsBasicTableRowClassNames({ width }, extraClasses);
|
|
10
|
+
function onCellActionBtnClick({ event, cellIndex, }) {
|
|
11
|
+
if (onClickRowActionBtn) {
|
|
12
|
+
onClickRowActionBtn({
|
|
13
|
+
...event,
|
|
14
|
+
details: {
|
|
15
|
+
...event.details,
|
|
16
|
+
cellIndex,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
6
21
|
// 2. Handling Vertical Layout
|
|
7
22
|
if (layout === 'vertical' && rows && rows.length > 0) {
|
|
8
23
|
const fragment = document.createDocumentFragment();
|
|
9
|
-
rows.forEach((tableRow) => {
|
|
24
|
+
rows.forEach((tableRow, indexI) => {
|
|
10
25
|
// Create a clean, independent <tr> wrapper for each vertical entry
|
|
11
26
|
const singleRowEl = document.createElement('tr');
|
|
12
27
|
singleRowEl.className = rowClassName;
|
|
13
28
|
const rowLabel = tableRow?.label;
|
|
14
|
-
singleRowEl.append(
|
|
29
|
+
singleRowEl.append(GidsTableCellDom({
|
|
15
30
|
...tableRow,
|
|
16
31
|
width: width,
|
|
17
32
|
label: rowLabel,
|
|
18
33
|
isHeaderCell: isHeaderRow,
|
|
34
|
+
cellPrimaryActionButtons,
|
|
35
|
+
cellSecondaryActionButtons,
|
|
36
|
+
onClickCellActionBtn: (event) => onCellActionBtnClick({ event, cellIndex: indexI }),
|
|
19
37
|
}));
|
|
20
38
|
// Append the constructed row directly to the fragment tree
|
|
21
39
|
fragment.append(singleRowEl);
|
|
@@ -26,13 +44,16 @@ export const GidsBasicTableRowDom = ({ width = 'full', layout = 'horizontal', ro
|
|
|
26
44
|
const basicTableRow = document.createElement('tr');
|
|
27
45
|
basicTableRow.className = rowClassName;
|
|
28
46
|
if (rows && rows.length > 0) {
|
|
29
|
-
rows.forEach((tableRow) => {
|
|
47
|
+
rows.forEach((tableRow, indexJ) => {
|
|
30
48
|
const rowLabel = tableRow?.label;
|
|
31
|
-
basicTableRow.append(
|
|
49
|
+
basicTableRow.append(GidsTableCellDom({
|
|
32
50
|
...tableRow,
|
|
33
51
|
width: width,
|
|
34
52
|
label: rowLabel,
|
|
35
53
|
isHeaderCell: isHeaderRow,
|
|
54
|
+
cellPrimaryActionButtons,
|
|
55
|
+
cellSecondaryActionButtons,
|
|
56
|
+
onClickCellActionBtn: (event) => onCellActionBtnClick({ event, cellIndex: indexJ }),
|
|
36
57
|
}));
|
|
37
58
|
});
|
|
38
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBasicTableRow.js","sourceRoot":"","sources":["../../../src/components/GidsBasicTableRow/GidsBasicTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,yBAAyB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"GidsBasicTableRow.js","sourceRoot":"","sources":["../../../src/components/GidsBasicTableRow/GidsBasicTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,yBAAyB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,gBAAgB,GAChB,MAAM,mCAAmC,CAAC;AAO3C,MAAM,EAAE,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;AAiCrE;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,EACpC,KAAK,GAAG,MAAM,EACd,MAAM,GAAG,YAAY,EACrB,IAAI,EACJ,WAAW,GAAG,KAAK,EACnB,wBAAwB,EACxB,0BAA0B,EAC1B,mBAAmB,EACnB,YAAY,GACe,EAAkC,EAAE;IAC/D,MAAM,YAAY,GAAG,8BAA8B,CAAC,EAAE,KAAK,EAAE,EAAE,YAAY,CAAC,CAAC;IAE7E,SAAS,oBAAoB,CAAC,EAC7B,KAAK,EACL,SAAS,GAIT;QACA,IAAI,mBAAmB,EAAE,CAAC;YACzB,mBAAmB,CAAC;gBACnB,GAAG,KAAK;gBACR,OAAO,EAAE;oBACR,GAAG,KAAK,CAAC,OAAO;oBAChB,SAAS;iBACT;aACD,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,8BAA8B;IAC9B,IAAI,MAAM,KAAK,UAAU,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtD,MAAM,QAAQ,GAAG,QAAQ,CAAC,sBAAsB,EAAE,CAAC;QAEnD,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE;YACjC,mEAAmE;YACnE,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CA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AAC"}
|
|
@@ -1,12 +1,35 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GidsTableCellTypographyStyle, GidsBsTableWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { DomChildren } from '../../utils/domUtils';
|
|
3
3
|
import { HtmlInputAttributes } from '../GidsInput/GidsInput';
|
|
4
4
|
import { GidsBasicTableHeadDomProps } from '../GidsBasicTableHead/GidsBasicTableHead';
|
|
5
5
|
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
6
|
-
|
|
6
|
+
import { GidsBsTableActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated
|
|
9
|
+
*
|
|
10
|
+
* Use `GidsTable` and its props and functions instead.
|
|
11
|
+
*/
|
|
12
|
+
type GidsBsTableBaseWebProps = GidsBsTableWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance, DomChildren, Event, Element, HtmlInputAttributes> & Pick<GidsBasicTableHeadDomProps, 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'onGidsSearchBarClear'>;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*
|
|
16
|
+
* Use `GidsTable` and its props and functions instead.
|
|
17
|
+
*/
|
|
18
|
+
type GidsBsTableActionButtonBaseEvent = GidsBsTableActionButtonEvent<Event, GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*
|
|
22
|
+
* Use `GidsTable` and its props and functions instead.
|
|
23
|
+
*/
|
|
7
24
|
export interface GidsBsTableDomProps extends GidsBsTableBaseWebProps {
|
|
8
25
|
extraClasses?: string;
|
|
26
|
+
onClickBsTableActionBtn?: (event: GidsBsTableActionButtonBaseEvent) => void;
|
|
9
27
|
}
|
|
10
|
-
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated
|
|
30
|
+
*
|
|
31
|
+
* Use `GidsTable` and its props and functions instead.
|
|
32
|
+
*/
|
|
33
|
+
export declare const GidsBsTableDom: ({ topHeaderCells, tableBody, width, isTopHeaderVisible, isHeadVisible, topHeaderAppearance, topHeaderLabelTypography, topHeaderTextAlignment, rowAppearance, rowLabelTypography, rowTextAlignment, tableBorders, tableBorderRadius, tableBodyMaxHeight, tableBodyPrimaryActionButtons, tableBodySecondaryActionButtons, topHeaderPrimaryActionButtons, topHeaderSecondaryActionButtons, onClickBsTableActionBtn, extraClasses, actionGroup, allFiltersTabVisible, moreFiltersTabVisible, clearAllFiltersVisible, clearAllFiltersButtonAppearance, primaryFilters, secondaryFilters, filterSize, filterAllIsDefaultSelected, dropdownDividerVisible, onToggleActionBarAllFilter, onToggleActionBarDropdownFilter, onToggleActionBarMoreFilter, onToggleActionBarNoneFilter, onDropdownSelectionActionBarFilterChange, onMoreSelectionActionBarFilterChange, onClearAllFiltersButton, actionBarDisabled, searchDisabled, allFiltersData, moreFiltersData, children, searchVisible, filtersVisible, childrenPosition, tabVisible, tabProps, headBorderSides, headBorderRadiusSides, leadingIcon, leadingLabel, trailingLabel, loading, readOnly, onGidsSearchBarClear, onChange, onInput, onFocus, onBlur, headValue, inputProps, headAppearance, ...restProps }: GidsBsTableDomProps) => HTMLDivElement;
|
|
11
34
|
export {};
|
|
12
35
|
//# sourceMappingURL=GidsBsTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsBsTable.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBsTable/GidsBsTable.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,
|
|
1
|
+
{"version":3,"file":"GidsBsTable.d.ts","sourceRoot":"","sources":["../../../src/components/GidsBsTable/GidsBsTable.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,4BAA4B,EAC5B,mBAAmB,EAEnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAEN,0BAA0B,EAC1B,MAAM,0CAA0C,CAAC;AASlD,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAS7E;;;;GAIG;AACH,KAAK,uBAAuB,GAAG,mBAAmB,CACjD,4BAA4B,EAC5B,QAAQ,EACR,cAAc,EACd,WAAW,EACX,KAAK,EACL,OAAO,EACP,mBAAmB,CACnB,GACA,IAAI,CACH,0BAA0B,EAC1B,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,sBAAsB,CACtE,CAAC;AAEH;;;;GAIG;AACH,KAAK,gCAAgC,GAAG,4BAA4B,CACnE,KAAK,EACL,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;CAC5E;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,+rCAmE5B,mBAAmB,KAAG,cA+IxB,CAAC"}
|