@ganpatiinfo/gids-web-dom-reference 12.0.0 → 14.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 +131 -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/GidsCrossTable/GidsCrossTable.d.ts +18 -0
- package/dist/components/GidsCrossTable/GidsCrossTable.d.ts.map +1 -0
- package/dist/components/GidsCrossTable/GidsCrossTable.js +141 -0
- package/dist/components/GidsCrossTable/GidsCrossTable.js.map +1 -0
- package/dist/components/GidsCrossTableBody/GidsCrossTableBody.d.ts +13 -0
- package/dist/components/GidsCrossTableBody/GidsCrossTableBody.d.ts.map +1 -0
- package/dist/components/GidsCrossTableBody/GidsCrossTableBody.js +79 -0
- package/dist/components/GidsCrossTableBody/GidsCrossTableBody.js.map +1 -0
- package/dist/components/GidsCrossTableRow/GidsCrossTableRow.d.ts +13 -0
- package/dist/components/GidsCrossTableRow/GidsCrossTableRow.d.ts.map +1 -0
- package/dist/components/GidsCrossTableRow/GidsCrossTableRow.js +128 -0
- package/dist/components/GidsCrossTableRow/GidsCrossTableRow.js.map +1 -0
- package/dist/components/GidsDialog/GidsDialog.d.ts +13 -0
- package/dist/components/GidsDialog/GidsDialog.d.ts.map +1 -0
- package/dist/components/GidsDialog/GidsDialog.js +102 -0
- package/dist/components/GidsDialog/GidsDialog.js.map +1 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts +32 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts.map +1 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.js +75 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.js.map +1 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +32 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts.map +1 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js +75 -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/GidsMenu/GidsMenu.d.ts +1 -1
- package/dist/components/GidsMenu/GidsMenu.d.ts.map +1 -1
- package/dist/components/GidsMenu/GidsMenu.js +10 -1
- package/dist/components/GidsMenu/GidsMenu.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/GidsSkeleton/GidsSkeleton.d.ts +8 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.d.ts.map +1 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.js +16 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.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 +121 -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 +53 -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 +99 -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 +49 -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/GidsTransferList/GidsTransferList.d.ts +8 -0
- package/dist/components/GidsTransferList/GidsTransferList.d.ts.map +1 -0
- package/dist/components/GidsTransferList/GidsTransferList.js +25 -0
- package/dist/components/GidsTransferList/GidsTransferList.js.map +1 -0
- package/dist/components/_GidsDialogControl/GidsDialogControl.d.ts +10 -0
- package/dist/components/_GidsDialogControl/GidsDialogControl.d.ts.map +1 -0
- package/dist/components/_GidsDialogControl/GidsDialogControl.js +133 -0
- package/dist/components/_GidsDialogControl/GidsDialogControl.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 +118 -97
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +118 -97
- 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/GidsCrossTable/GidsCrossTable.ts +259 -0
- package/src/components/GidsCrossTableBody/GidsCrossTableBody.ts +171 -0
- package/src/components/GidsCrossTableRow/GidsCrossTableRow.ts +230 -0
- package/src/components/GidsDialog/GidsDialog.ts +161 -0
- package/src/components/GidsMatrixTable/GidsMatrixTable.ts +187 -0
- package/src/components/GidsMatrixTableBody/GidsMatrixTableBody.ts +185 -0
- package/src/components/GidsMdTable/GidsMdTable.ts +14 -2
- package/src/components/GidsMenu/GidsMenu.ts +15 -0
- 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/GidsSkeleton/GidsSkeleton.ts +40 -0
- package/src/components/GidsTable/GidsTable.ts +240 -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 +119 -0
- package/src/components/GidsTableFooterControl/GidsTableFooterControl.ts +166 -0
- package/src/components/GidsTableHeader/GidsTableHeader.ts +112 -0
- package/src/components/GidsTableRow/GidsTableRow.ts +152 -0
- package/src/components/GidsTableToolbar/GidsTableToolbar.ts +180 -0
- package/src/components/GidsTransferList/GidsTransferList.ts +58 -0
- package/src/components/_GidsDialogControl/GidsDialogControl.ts +198 -0
- package/src/components/_GidsPaginationItem/GidsPaginationItem.ts +14 -2
- package/src/index.ts +118 -97
- 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
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { GidsTableFooterControlWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { appendAsChildren } from '../../utils/domUtils';
|
|
3
|
+
import { GidsPaginatorDom } from '../GidsPaginator/GidsPaginator';
|
|
4
|
+
import { GidsDropdownFieldDom } from '../GidsDropdownField/GidsDropdownField';
|
|
5
|
+
import { GidsDropdownMenuGroupDom } from '../GidsDropdownMenuGroup/GidsDropdownMenuGroup';
|
|
6
|
+
import { GidsDropdownMenuDom } from '../GidsDropdownMenu/GidsDropdownMenu';
|
|
7
|
+
import { GidsDropdownItemDom } from '../GidsDropdownItem/GidsDropdownItem';
|
|
8
|
+
const { getGidsTableFooterControlClassNames } = GidsTableFooterControlWebUtils;
|
|
9
|
+
export const GidsTableFooterControlDom = ({ appearance = 'surface-default', children, bulkStatus, rangeStatus, tableViewControllerSettings, paginatorSettings, tableViewControllerVisible, paginatorVisible, extraClasses, }) => {
|
|
10
|
+
const tableFooterControl = document.createElement('div');
|
|
11
|
+
tableFooterControl.className = getGidsTableFooterControlClassNames({ appearance }, extraClasses);
|
|
12
|
+
if (appearance) {
|
|
13
|
+
tableFooterControl.setAttribute('control-appearance', appearance);
|
|
14
|
+
}
|
|
15
|
+
if (isValidChildren(children)) {
|
|
16
|
+
appendAsChildren(tableFooterControl, children);
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
const mainContainer = document.createElement('div');
|
|
20
|
+
mainContainer.className = 'gids-table-footer-control__main-container';
|
|
21
|
+
const informativeContainer = document.createElement('div');
|
|
22
|
+
informativeContainer.className =
|
|
23
|
+
'gids-table-footer-control__informative-container';
|
|
24
|
+
// Table View Controller
|
|
25
|
+
if (tableViewControllerVisible &&
|
|
26
|
+
tableViewControllerSettings &&
|
|
27
|
+
Object.keys(tableViewControllerSettings).length > 0) {
|
|
28
|
+
const { tableViewControllerOptions, ...restTableViewControllerSettings } = tableViewControllerSettings;
|
|
29
|
+
if (tableViewControllerOptions && tableViewControllerOptions.length) {
|
|
30
|
+
const sectionsCount = tableViewControllerOptions.length;
|
|
31
|
+
informativeContainer.append(GidsDropdownFieldDom({
|
|
32
|
+
...restTableViewControllerSettings,
|
|
33
|
+
inputProps: {
|
|
34
|
+
...restTableViewControllerSettings.inputProps,
|
|
35
|
+
placeholder: restTableViewControllerSettings?.inputProps?.placeholder ??
|
|
36
|
+
'Rows per page',
|
|
37
|
+
},
|
|
38
|
+
children: GidsDropdownMenuGroupDom({
|
|
39
|
+
type: 'default',
|
|
40
|
+
children: Array.from({ length: sectionsCount }, (_, sectionIndex) => {
|
|
41
|
+
const section = tableViewControllerOptions[sectionIndex];
|
|
42
|
+
const items = section?.items ?? [];
|
|
43
|
+
return GidsDropdownMenuDom({
|
|
44
|
+
sectionLabel: section?.label,
|
|
45
|
+
children: Array.from({ length: items.length }, (_, optionIndex) => {
|
|
46
|
+
const item = items[optionIndex];
|
|
47
|
+
return GidsDropdownItemDom({
|
|
48
|
+
...item,
|
|
49
|
+
id: item?.id ?? `${optionIndex + 1}`,
|
|
50
|
+
});
|
|
51
|
+
}),
|
|
52
|
+
});
|
|
53
|
+
}),
|
|
54
|
+
}),
|
|
55
|
+
}));
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
// Range Status
|
|
59
|
+
if (rangeStatus && rangeStatus !== '') {
|
|
60
|
+
const rangeStatusLabel = document.createElement('span');
|
|
61
|
+
rangeStatusLabel.className =
|
|
62
|
+
'gids-table-footer-control__range-status-label';
|
|
63
|
+
rangeStatusLabel.textContent = rangeStatus;
|
|
64
|
+
appendAsChildren(informativeContainer, rangeStatusLabel);
|
|
65
|
+
}
|
|
66
|
+
// Bulk Status
|
|
67
|
+
if (bulkStatus && bulkStatus !== '') {
|
|
68
|
+
const bulkStatusLabel = document.createElement('span');
|
|
69
|
+
bulkStatusLabel.className =
|
|
70
|
+
'gids-table-footer-control__bulk-status-label';
|
|
71
|
+
bulkStatusLabel.textContent = bulkStatus;
|
|
72
|
+
informativeContainer.append(bulkStatusLabel);
|
|
73
|
+
appendAsChildren(informativeContainer, bulkStatusLabel);
|
|
74
|
+
}
|
|
75
|
+
appendAsChildren(mainContainer, informativeContainer);
|
|
76
|
+
// Paginator
|
|
77
|
+
if (paginatorVisible &&
|
|
78
|
+
paginatorSettings &&
|
|
79
|
+
Object.keys(paginatorSettings).length > 0) {
|
|
80
|
+
const paginatorContainer = document.createElement('div');
|
|
81
|
+
paginatorContainer.className =
|
|
82
|
+
'gids-table-footer-control__paginator-container';
|
|
83
|
+
paginatorContainer.append(GidsPaginatorDom({
|
|
84
|
+
...paginatorSettings,
|
|
85
|
+
size: paginatorSettings?.size ?? 'md',
|
|
86
|
+
shape: paginatorSettings?.shape ?? 'rounded',
|
|
87
|
+
variant: paginatorSettings?.variant ?? 'default',
|
|
88
|
+
showFirstPageBtn: paginatorSettings?.showFirstPageBtn ?? true,
|
|
89
|
+
showLastPageBtn: paginatorSettings?.showLastPageBtn ?? true,
|
|
90
|
+
showNextBtn: paginatorSettings?.showNextBtn ?? true,
|
|
91
|
+
showPreviousBtn: paginatorSettings?.showPreviousBtn ?? true,
|
|
92
|
+
}));
|
|
93
|
+
appendAsChildren(mainContainer, paginatorContainer);
|
|
94
|
+
}
|
|
95
|
+
appendAsChildren(tableFooterControl, mainContainer);
|
|
96
|
+
}
|
|
97
|
+
return tableFooterControl;
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=GidsTableFooterControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTableFooterControl.js","sourceRoot":"","sources":["../../../src/components/GidsTableFooterControl/GidsTableFooterControl.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,8BAA8B,EAC9B,eAAe,GACf,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,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E,iBAAiB,EAAE,WAAW,IAAI,IAAI;gBACnD,eAAe,EAAE,iBAAiB,EAAE,eAAe,IAAI,IAAI;aAC3D,CAAC,CACF,CAAC;YAEF,gBAAgB,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAAC;QACrD,CAAC;QAED,gBAAgB,CAAC,kBAAkB,EAAE,aAAa,CAAC,CAAC;IACrD,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GidsTableEntryTypographyStyle, GidsTableHeaderWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsTableHeaderActionEvent } from '@ganpatiinfo/gids-core-shared';
|
|
3
|
+
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
4
|
+
import { DomChildren } from '../../utils/domUtils';
|
|
5
|
+
type GidsTableHeaderBaseWebProps = GidsTableHeaderWebProps<GidsTableEntryTypographyStyle, IconName, IconAppearance, DomChildren>;
|
|
6
|
+
export type GidsTableHeaderActionBaseEvent = GidsTableHeaderActionEvent<Event, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
|
|
7
|
+
export interface GidsTableHeaderDomProps extends GidsTableHeaderBaseWebProps {
|
|
8
|
+
extraClasses?: string;
|
|
9
|
+
onHeaderAction?: (event: GidsTableHeaderActionBaseEvent) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const GidsTableHeaderDom: ({ headerItems, appearance, labelTypography, textAlignment, onHeaderAction, extraClasses, entryAlignment, colorSwatchLabelColor, colorSwatchLabelPosition, colorSwatchLabelTypography, colorSwatchSize, colorSwatchShape, colorSwatchShadow, colorSwatchBorderRadius, colorSwatchApplyBorders, colorSwatchBorderWidth, progressBarSize, progressBarEndCap, avatarSize, avatarGroupAppearance, avatarGroupLayout, statusTagAppearance, statusTagSize, progressBarContainerMinWidth, displayTagsOrientation, statusTagsOrientation, progressBarsOrientation, colorSwatchesOrientation, badgesOrientation, children, }: GidsTableHeaderDomProps) => HTMLTableSectionElement;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=GidsTableHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableHeader/GidsTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAC7B,uBAAuB,EAGvB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIrE,KAAK,2BAA2B,GAAG,uBAAuB,CACzD,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,CACtE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,kBAAkB,GAAI,olBA+BhC,uBAAuB,4BA6CzB,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { GidsTableHeaderWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsTableRowDom } from '../GidsTableRow/GidsTableRow';
|
|
3
|
+
import { appendAsChildren } from '../../utils/domUtils';
|
|
4
|
+
const { getGidsTableHeaderClassNames } = GidsTableHeaderWebUtils;
|
|
5
|
+
export const GidsTableHeaderDom = ({ headerItems = [], appearance = 'none', labelTypography = 'label-medium', textAlignment = 'center', onHeaderAction, extraClasses, entryAlignment = 'center', colorSwatchLabelColor = 'default', colorSwatchLabelPosition = 'left', colorSwatchLabelTypography = 'label-medium', colorSwatchSize = 'sm', colorSwatchShape = 'oval', colorSwatchShadow = 'shadow-overlay', colorSwatchBorderRadius = 'none', colorSwatchApplyBorders = true, colorSwatchBorderWidth = 'thick', progressBarSize = 'sm', progressBarEndCap = true, avatarSize = 'sm', avatarGroupAppearance = 'spread', avatarGroupLayout = 'wrap', statusTagAppearance = 'subtle', statusTagSize = 'sm', progressBarContainerMinWidth = 200, displayTagsOrientation = 'horizontal', statusTagsOrientation = 'horizontal', progressBarsOrientation = 'horizontal', colorSwatchesOrientation = 'horizontal', badgesOrientation = 'horizontal', children, }) => {
|
|
6
|
+
const tableHeader = document.createElement('thead');
|
|
7
|
+
tableHeader.className = getGidsTableHeaderClassNames(extraClasses);
|
|
8
|
+
if (isValidChildren(children)) {
|
|
9
|
+
appendAsChildren(tableHeader, children);
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
if (headerItems && headerItems.length > 0) {
|
|
13
|
+
const rowContent = GidsTableRowDom({
|
|
14
|
+
rows: headerItems,
|
|
15
|
+
rowType: 'header',
|
|
16
|
+
entryAlignment,
|
|
17
|
+
colorSwatchLabelColor,
|
|
18
|
+
colorSwatchLabelPosition,
|
|
19
|
+
colorSwatchLabelTypography,
|
|
20
|
+
colorSwatchSize,
|
|
21
|
+
colorSwatchShape,
|
|
22
|
+
colorSwatchShadow,
|
|
23
|
+
colorSwatchBorderRadius,
|
|
24
|
+
colorSwatchApplyBorders,
|
|
25
|
+
colorSwatchBorderWidth,
|
|
26
|
+
progressBarSize,
|
|
27
|
+
progressBarEndCap,
|
|
28
|
+
avatarSize,
|
|
29
|
+
avatarGroupAppearance,
|
|
30
|
+
avatarGroupLayout,
|
|
31
|
+
statusTagAppearance,
|
|
32
|
+
statusTagSize,
|
|
33
|
+
progressBarContainerMinWidth,
|
|
34
|
+
displayTagsOrientation,
|
|
35
|
+
statusTagsOrientation,
|
|
36
|
+
progressBarsOrientation,
|
|
37
|
+
colorSwatchesOrientation,
|
|
38
|
+
badgesOrientation,
|
|
39
|
+
textAlignment,
|
|
40
|
+
labelTypography,
|
|
41
|
+
appearance,
|
|
42
|
+
onRowAction: onHeaderAction,
|
|
43
|
+
});
|
|
44
|
+
tableHeader.append(rowContent);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return tableHeader;
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=GidsTableHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTableHeader.js","sourceRoot":"","sources":["../../../src/components/GidsTableHeader/GidsTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,uBAAuB,EACvB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAM/D,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AAErE,MAAM,EAAE,4BAA4B,EAAE,GAAG,uBAAuB,CAAC;AAqBjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,MAAM,EACnB,eAAe,GAAG,cAAc,EAChC,aAAa,GAAG,QAAQ,EACxB,cAAc,EACd,YAAY,EACZ,cAAc,GAAG,QAAQ,EACzB,qBAAqB,GAAG,SAAS,EACjC,wBAAwB,GAAG,MAAM,EACjC,0BAA0B,GAAG,cAAc,EAC3C,eAAe,GAAG,IAAI,EACtB,gBAAgB,GAAG,MAAM,EACzB,iBAAiB,GAAG,gBAAgB,EACpC,uBAAuB,GAAG,MAAM,EAChC,uBAAuB,GAAG,IAAI,EAC9B,sBAAsB,GAAG,OAAO,EAChC,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,IAAI,EACxB,UAAU,GAAG,IAAI,EACjB,qBAAqB,GAAG,QAAQ,EAChC,iBAAiB,GAAG,MAAM,EAC1B,mBAAmB,GAAG,QA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type GidsTableRowWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
3
|
+
import { GidsTableRowActionEvent } from '@ganpatiinfo/gids-core-shared';
|
|
4
|
+
import { DomChildren } from '../../utils/domUtils.js';
|
|
5
|
+
type GidsTableRowBaseWebProps = GidsTableRowWebProps<GidsTableEntryTypographyStyle, IconName, IconAppearance, DomChildren>;
|
|
6
|
+
export type GidsTableRowActionBaseEvent = GidsTableRowActionEvent<Event, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
|
|
7
|
+
export interface GidsTableRowDomProps extends GidsTableRowBaseWebProps {
|
|
8
|
+
extraClasses?: string;
|
|
9
|
+
onRowAction?: (event: GidsTableRowActionBaseEvent) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const GidsTableRowDom: ({ rows, rowType, onRowAction, textAlignment, appearance, labelTypography, entryAlignment, colorSwatchLabelColor, colorSwatchLabelPosition, colorSwatchLabelTypography, colorSwatchSize, colorSwatchShape, colorSwatchShadow, colorSwatchBorderRadius, colorSwatchApplyBorders, colorSwatchBorderWidth, progressBarSize, progressBarEndCap, avatarSize, avatarGroupAppearance, avatarGroupLayout, statusTagAppearance, statusTagSize, progressBarContainerMinWidth, displayTagsOrientation, statusTagsOrientation, progressBarsOrientation, colorSwatchesOrientation, badgesOrientation, actionsBackgroundColor, actionsContentColor, backgroundColor, contentColor, children, extraClasses, }: GidsTableRowDomProps) => HTMLElement | DocumentFragment;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=GidsTableRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTableRow.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableRow/GidsTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAC7B,KAAK,oBAAoB,EAGzB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAoB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIxE,KAAK,wBAAwB,GAAG,oBAAoB,CACnD,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAChE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,eAAe,GAAI,+pBAoC7B,oBAAoB,KAAG,WAAW,GAAG,gBA8EvC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { GidsTableRowWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsTableEntryDom, } from '../GidsTableEntry/GidsTableEntry.js';
|
|
3
|
+
import { appendAsChildren } from '../../utils/domUtils.js';
|
|
4
|
+
const { getGidsTableRowClassNames } = GidsTableRowWebUtils;
|
|
5
|
+
export const GidsTableRowDom = ({ rows, rowType = 'body', onRowAction, textAlignment = 'center', appearance = 'none', labelTypography = 'label-medium', entryAlignment = 'center', colorSwatchLabelColor = 'default', colorSwatchLabelPosition = 'left', colorSwatchLabelTypography = 'label-medium', colorSwatchSize = 'sm', colorSwatchShape = 'oval', colorSwatchShadow = 'shadow-overlay', colorSwatchBorderRadius = 'none', colorSwatchApplyBorders = true, colorSwatchBorderWidth = 'thick', progressBarSize = 'sm', progressBarEndCap = true, avatarSize = 'sm', avatarGroupAppearance, avatarGroupLayout, statusTagAppearance = 'subtle', statusTagSize = 'sm', progressBarContainerMinWidth = 200, displayTagsOrientation = 'horizontal', statusTagsOrientation = 'horizontal', progressBarsOrientation = 'horizontal', colorSwatchesOrientation = 'horizontal', badgesOrientation = 'horizontal', actionsBackgroundColor, actionsContentColor, backgroundColor, contentColor, children, extraClasses, }) => {
|
|
6
|
+
const rowClassName = getGidsTableRowClassNames(extraClasses);
|
|
7
|
+
// 3. Handling Horizontal Layout (Standard Single Row)
|
|
8
|
+
const tableRow = document.createElement('tr');
|
|
9
|
+
tableRow.className = rowClassName;
|
|
10
|
+
if (isValidChildren(children)) {
|
|
11
|
+
appendAsChildren(tableRow, children);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
function onEntryActionBtnClick({ event, entryIndex, }) {
|
|
15
|
+
if (onRowAction) {
|
|
16
|
+
onRowAction({
|
|
17
|
+
...event,
|
|
18
|
+
details: {
|
|
19
|
+
...event.details,
|
|
20
|
+
entryIndex,
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
if (rows && rows.length > 0) {
|
|
26
|
+
rows.forEach((row, indexJ) => {
|
|
27
|
+
const rowLabel = row?.label;
|
|
28
|
+
tableRow.append(GidsTableEntryDom({
|
|
29
|
+
...row,
|
|
30
|
+
actionsBackgroundColor,
|
|
31
|
+
actionsContentColor,
|
|
32
|
+
backgroundColor,
|
|
33
|
+
contentColor,
|
|
34
|
+
label: rowLabel,
|
|
35
|
+
entryType: rowType,
|
|
36
|
+
leadingActions: row?.leadingActions ?? [],
|
|
37
|
+
trailingActions: row?.trailingActions ?? [],
|
|
38
|
+
entryAlignment,
|
|
39
|
+
colorSwatchLabelColor,
|
|
40
|
+
colorSwatchLabelPosition,
|
|
41
|
+
colorSwatchLabelTypography,
|
|
42
|
+
colorSwatchSize,
|
|
43
|
+
colorSwatchShape,
|
|
44
|
+
colorSwatchShadow,
|
|
45
|
+
colorSwatchBorderRadius,
|
|
46
|
+
colorSwatchApplyBorders,
|
|
47
|
+
colorSwatchBorderWidth,
|
|
48
|
+
progressBarSize,
|
|
49
|
+
progressBarEndCap,
|
|
50
|
+
avatarSize,
|
|
51
|
+
avatarGroupAppearance,
|
|
52
|
+
avatarGroupLayout,
|
|
53
|
+
statusTagAppearance,
|
|
54
|
+
statusTagSize,
|
|
55
|
+
progressBarContainerMinWidth,
|
|
56
|
+
displayTagsOrientation,
|
|
57
|
+
statusTagsOrientation,
|
|
58
|
+
progressBarsOrientation,
|
|
59
|
+
colorSwatchesOrientation,
|
|
60
|
+
badgesOrientation,
|
|
61
|
+
textAlignment,
|
|
62
|
+
labelTypography,
|
|
63
|
+
appearance,
|
|
64
|
+
onEntryAction: (event) => onEntryActionBtnClick({ event, entryIndex: indexJ }),
|
|
65
|
+
}));
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
return tableRow;
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=GidsTableRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTableRow.js","sourceRoot":"","sources":["../../../src/components/GidsTableRow/GidsTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,oBAAoB,EACpB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,iBAAiB,GACjB,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EAAE,gBAAgB,EAAe,MAAM,yBAAyB,CAAC;AAExE,MAAM,EAAE,yBAAyB,EAAE,GAAG,oBAAoB,CAAC;AAoB3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC/B,IAAI,EACJ,OAAO,GAAG,MAAM,EAChB,WAAW,EACX,aAAa,GAAG,QAAQ,EACxB,UAAU,GAAG,MAAM,EACnB,eAAe,GAAG,cAAc,EAChC,cAAc,GAAG,QAAQ,EACzB,qBAAqB,GAAG,SAAS,EACjC,wBAAwB,GAAG,MAAM,EACjC,0BAA0B,GAAG,cAAc,EAC3C,eAAe,GAAG,IAAI,EACtB,gBAAgB,GAAG,MAAM,EACzB,iBAAiB,GAAG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5B,QAAQ,CAAC,MAAM,CACd,iBAAiB,CAAC;oBACjB,GAAG,GAAG;oBACN,sBAAsB;oBACtB,mBAAmB;oBACnB,eAAe;oBACf,YAAY;oBACZ,KAAK,EAAE,QAAQ;oBACf,SAAS,EAAE,OAAO;oBAClB,cAAc,EAAE,GAAG,EAAE,cAAc,IAAI,EAAE;oBACzC,eAAe,EAAE,GAAG,EAAE,eAAe,IAAI,EAAE;oBAC3C,cAAc;oBACd,qBAAqB;oBACrB,wBAAwB;oBACxB,0BAA0B;oBAC1B,eAAe;oBACf,gBAAgB;oBAChB,iBAAiB;oBACjB,uBAAuB;oBACvB,uBAAuB;oBACvB,sBAAsB;oBACtB,eAAe;oBACf,iBAAiB;oBACjB,UAAU;oBACV,qBAAqB;oBACrB,iBAAiB;oBACjB,mBAAmB;oBACnB,aAAa;oBACb,4BAA4B;oBAC5B,sBAAsB;oBACtB,qBAAqB;oBACrB,uBAAuB;oBACvB,wBAAwB;oBACxB,iBAAiB;oBACjB,aAAa;oBACb,eAAe;oBACf,UAAU;oBACV,aAAa,EAAE,CAAC,KAAoC,EAAE,EAAE,CACvD,qBAAqB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;iBACrD,CAAC,CACF,CAAC;YACH,CAAC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type GidsTableToolbarWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import type { HtmlInputAttributes } from '../GidsInput/GidsInput';
|
|
3
|
+
import { GidsSearchBarDomProps } from '../GidsSearchBar/GidsSearchBar';
|
|
4
|
+
import { DomChildren } from '../../utils/domUtils';
|
|
5
|
+
type GidsTableToolbarBaseWebProps = GidsTableToolbarWebProps<DomChildren, Event, Element, HtmlInputAttributes> & Pick<GidsSearchBarDomProps, 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'onGidsSearchBarClear'>;
|
|
6
|
+
export interface GidsTableToolbarDomProps extends GidsTableToolbarBaseWebProps {
|
|
7
|
+
extraClasses?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const GidsTableToolbarDom: ({ 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, tableToolbarAppearance, extraClasses, ...restProps }: GidsTableToolbarDomProps) => HTMLElement;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=GidsTableToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTableToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableToolbar/GidsTableToolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,wBAAwB,EAE7B,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,4BAA4B,GAAG,wBAAwB,CAC3D,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,wBAAyB,SAAQ,4BAA4B;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,GAAI,4yBA6CjC,wBAAwB,KAAG,WAuG7B,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { GidsTableToolbarWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { GidsSearchBarDom, } from '../GidsSearchBar/GidsSearchBar';
|
|
3
|
+
import { appendAsChildren } from '../../utils/domUtils';
|
|
4
|
+
import { GidsActionBarDom } from '../GidsActionBar/GidsActionBar';
|
|
5
|
+
import { GidsTabDom } from '../GidsTab/GidsTab';
|
|
6
|
+
import { GidsTabItemDom } from '../GidsTabItem/GidsTabItem';
|
|
7
|
+
const { getGidsTableToolbarClassNames } = GidsTableToolbarWebUtils;
|
|
8
|
+
export const GidsTableToolbarDom = ({ 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, tableToolbarAppearance = 'surface-default', extraClasses, ...restProps }) => {
|
|
9
|
+
const tableToolbar = document.createElement('div');
|
|
10
|
+
tableToolbar.className = getGidsTableToolbarClassNames({ borderSides, borderRadiusSides, tableToolbarAppearance }, extraClasses);
|
|
11
|
+
tableToolbar.setAttribute('table-toolbar-appearance', tableToolbarAppearance);
|
|
12
|
+
const tableToolbarContent = document.createElement('div');
|
|
13
|
+
tableToolbarContent.className = 'gids-table-toolbar__content-wrapper';
|
|
14
|
+
if (tabVisible && tabProps?.tabItems && tabProps.tabItems.length > 0) {
|
|
15
|
+
const tabItemsData = tabProps.tabItems;
|
|
16
|
+
const tabAppearance = tabProps?.appearance ?? 'underlined';
|
|
17
|
+
const tabWidth = tabProps?.width ?? 'full';
|
|
18
|
+
tableToolbarContent.append(GidsTabDom({
|
|
19
|
+
appearance: tabAppearance,
|
|
20
|
+
width: tabWidth,
|
|
21
|
+
activeTabId: tabProps?.activeTabId ?? undefined,
|
|
22
|
+
onPressGidsTab: tabProps?.onPressGidsTab,
|
|
23
|
+
children: Array.from({ length: tabItemsData.length }, (_, index) => {
|
|
24
|
+
const tabItem = tabItemsData[index];
|
|
25
|
+
return GidsTabItemDom({
|
|
26
|
+
...tabItem,
|
|
27
|
+
itemId: tabItem?.itemId ?? `${index + 1}`,
|
|
28
|
+
});
|
|
29
|
+
}),
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
if (children && childrenPosition === 'top-most') {
|
|
33
|
+
const childrenContainer = document.createElement('div');
|
|
34
|
+
childrenContainer.className = 'gids-table-toolbar__children-container';
|
|
35
|
+
appendAsChildren(childrenContainer, children);
|
|
36
|
+
appendAsChildren(tableToolbarContent, childrenContainer);
|
|
37
|
+
}
|
|
38
|
+
if (searchVisible) {
|
|
39
|
+
tableToolbarContent.append(GidsSearchBarDom({
|
|
40
|
+
...restProps,
|
|
41
|
+
type: 'default',
|
|
42
|
+
appearance: 'default',
|
|
43
|
+
status: 'default',
|
|
44
|
+
leadingIcon,
|
|
45
|
+
leadingLabel,
|
|
46
|
+
trailingLabel,
|
|
47
|
+
loading,
|
|
48
|
+
readOnly,
|
|
49
|
+
onGidsSearchBarClear,
|
|
50
|
+
onChange,
|
|
51
|
+
onInput,
|
|
52
|
+
onFocus,
|
|
53
|
+
onBlur,
|
|
54
|
+
value,
|
|
55
|
+
disabled: searchDisabled,
|
|
56
|
+
inputProps,
|
|
57
|
+
}));
|
|
58
|
+
}
|
|
59
|
+
if (filtersVisible) {
|
|
60
|
+
tableToolbarContent.append(GidsActionBarDom({
|
|
61
|
+
actionGroup,
|
|
62
|
+
allFiltersTabVisible,
|
|
63
|
+
moreFiltersTabVisible,
|
|
64
|
+
clearAllFiltersVisible,
|
|
65
|
+
clearAllFiltersButtonAppearance,
|
|
66
|
+
primaryFilters,
|
|
67
|
+
secondaryFilters,
|
|
68
|
+
filterSize,
|
|
69
|
+
filterAllIsDefaultSelected,
|
|
70
|
+
dropdownDividerVisible,
|
|
71
|
+
onToggleActionBarAllFilter,
|
|
72
|
+
onToggleActionBarDropdownFilter,
|
|
73
|
+
onToggleActionBarMoreFilter,
|
|
74
|
+
onToggleActionBarNoneFilter,
|
|
75
|
+
onDropdownSelectionActionBarFilterChange,
|
|
76
|
+
onMoreSelectionActionBarFilterChange,
|
|
77
|
+
onClearAllFiltersButton,
|
|
78
|
+
disabled: actionBarDisabled,
|
|
79
|
+
allFiltersData,
|
|
80
|
+
moreFiltersData,
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
if (children && childrenPosition === 'bottom-most') {
|
|
84
|
+
const childrenContainer = document.createElement('div');
|
|
85
|
+
childrenContainer.className = 'gids-table-toolbar__children-container';
|
|
86
|
+
appendAsChildren(childrenContainer, children);
|
|
87
|
+
appendAsChildren(tableToolbarContent, childrenContainer);
|
|
88
|
+
}
|
|
89
|
+
appendAsChildren(tableToolbar, tableToolbarContent);
|
|
90
|
+
return tableToolbar;
|
|
91
|
+
};
|
|
92
|
+
//# sourceMappingURL=GidsTableToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTableToolbar.js","sourceRoot":"","sources":["../../../src/components/GidsTableToolbar/GidsTableToolbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,wBAAw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AQ,CAAC,CAAC;QAC9C,gBAAgB,CAAC,mBAAmB,EAAE,iBAAiB,CAAC,CAAC;IAC1D,CAAC;IAED,gBAAgB,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC;IAEpD,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GidsTransferListWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
type GidsTransferListBaseWebProps = GidsTransferListWebProps<Event>;
|
|
3
|
+
export interface GidsTransferListDomProps extends GidsTransferListBaseWebProps {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsTransferListDom: ({ leftListHeading, rightListHeading, moveAllVisible, transferListType, leftListItems, rightListItems, onTransferAction, onTransferListSelect, listsMaxHeight, extraClasses, }: GidsTransferListDomProps) => HTMLElement;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=GidsTransferList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTransferList.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTransferList/GidsTransferList.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,wBAAwB,EAE7B,MAAM,8BAA8B,CAAC;AAItC,KAAK,4BAA4B,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAIpE,MAAM,WAAW,wBAAyB,SAAQ,4BAA4B;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,GAAI,+KAWjC,wBAAwB,KAAG,WA+B7B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GidsTransferListWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsTransferListClassNames } = GidsTransferListWebUtils;
|
|
3
|
+
export const GidsTransferListDom = ({ leftListHeading = 'Choices', rightListHeading = 'Choosen', moveAllVisible = false, transferListType = 'basic', leftListItems = [], rightListItems = [], onTransferAction, onTransferListSelect, listsMaxHeight = '200px', extraClasses, }) => {
|
|
4
|
+
const transferList = document.createElement('gids-transfer-list');
|
|
5
|
+
transferList.transferListType = transferListType;
|
|
6
|
+
if (transferListType === 'enhanced' && leftListHeading) {
|
|
7
|
+
transferList.leftListHeading = leftListHeading;
|
|
8
|
+
}
|
|
9
|
+
if (transferListType === 'enhanced' && rightListHeading) {
|
|
10
|
+
transferList.rightListHeading = rightListHeading;
|
|
11
|
+
}
|
|
12
|
+
transferList.moveAllVisible = moveAllVisible;
|
|
13
|
+
transferList.leftListItems = leftListItems;
|
|
14
|
+
transferList.rightListItems = rightListItems;
|
|
15
|
+
transferList.listsMaxHeight = listsMaxHeight;
|
|
16
|
+
transferList.className = getGidsTransferListClassNames(extraClasses);
|
|
17
|
+
if (onTransferAction) {
|
|
18
|
+
transferList.onTransferAction = onTransferAction;
|
|
19
|
+
}
|
|
20
|
+
if (onTransferListSelect) {
|
|
21
|
+
transferList.onTransferListSelect = onTransferListSelect;
|
|
22
|
+
}
|
|
23
|
+
return transferList;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=GidsTransferList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTransferList.js","sourceRoot":"","sources":["../../../src/components/GidsTransferList/GidsTransferList.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,wBAAwB,GACxB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,EAAE,6BAA6B,EAAE,GAAG,wBAAwB,CAAC;AAUnE,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EACnC,eAAe,GAAG,SAAS,EAC3B,gBAAgB,GAAG,SAAS,EAC5B,cAAc,GAAG,KAAK,EACtB,gBAAgB,GAAG,OAAO,EAC1B,aAAa,GAAG,EAAE,EAClB,cAAc,GAAG,EAAE,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,cAAc,GAAG,OAAO,EACxB,YAAY,GACc,EAAe,EAAE;IAC3C,MAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAC1C,oBAAoB,CACO,CAAC;IAE7B,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAEjD,IAAI,gBAAgB,KAAK,UAAU,IAAI,eAAe,EAAE,CAAC;QACxD,YAAY,CAAC,eAAe,GAAG,eAAe,CAAC;IAChD,CAAC;IAED,IAAI,gBAAgB,KAAK,UAAU,IAAI,gBAAgB,EAAE,CAAC;QACzD,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAClD,CAAC;IAED,YAAY,CAAC,cAAc,GAAG,cAAc,CAAC;IAC7C,YAAY,CAAC,aAAa,GAAG,aAAa,CAAC;IAC3C,YAAY,CAAC,cAAc,GAAG,cAAc,CAAC;IAC7C,YAAY,CAAC,cAAc,GAAG,cAAc,CAAC;IAE7C,YAAY,CAAC,SAAS,GAAG,6BAA6B,CAAC,YAAY,CAAC,CAAC;IAErE,IAAI,gBAAgB,EAAE,CAAC;QACtB,YAAY,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAClD,CAAC;IAED,IAAI,oBAAoB,EAAE,CAAC;QAC1B,YAAY,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IAC1D,CAAC;IAED,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { GidsDialogControlWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { DomNodeOrString } from '../../utils/domUtils';
|
|
3
|
+
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
4
|
+
type GidsDialogControlBaseWebProps = GidsDialogControlWebProps<DomNodeOrString, Event, IconName, IconAppearance>;
|
|
5
|
+
export interface GidsDialogControlDomProps extends GidsDialogControlBaseWebProps {
|
|
6
|
+
extraClasses?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const GidsDialogControlDom: ({ variant, maxWidth, scrollMode, draggable, headerTitle, closeVisible, children, footerActions, onCloseDialogControl, headerDividerVisible, footerDividerVisible, onDialogControlFooterAction, extraClasses, }: GidsDialogControlDomProps) => HTMLDialogElement;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=GidsDialogControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsDialogControl.d.ts","sourceRoot":"","sources":["../../../src/components/_GidsDialogControl/GidsDialogControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,yBAAyB,EAEzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAGN,eAAe,EACf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAO/C,KAAK,6BAA6B,GAAG,yBAAyB,CAC7D,eAAe,EACf,KAAK,EACL,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,yBAA0B,SAAQ,6BAA6B;IAC/E,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,oBAAoB,GAAI,gNAclC,yBAAyB,KAAG,iBAyJ9B,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { GidsDialogControlWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { appendAsChildren, } from '../../utils/domUtils';
|
|
3
|
+
import { GidsIconDom } from '../GidsIcon/GidsIcon';
|
|
4
|
+
import { GidsButtonDom } from '../GidsButton/GidsButton';
|
|
5
|
+
const { getGidsDialogControlClassNames, setupDialogControlDraggable } = GidsDialogControlWebUtils;
|
|
6
|
+
export const GidsDialogControlDom = ({ variant = 'alert', maxWidth = 'sm', scrollMode = 'paper', draggable = false, headerTitle, closeVisible = true, children, footerActions = [], onCloseDialogControl, headerDividerVisible = false, footerDividerVisible = false, onDialogControlFooterAction, extraClasses, }) => {
|
|
7
|
+
const dialogControl = document.createElement('dialog');
|
|
8
|
+
dialogControl.className = getGidsDialogControlClassNames({ variant, maxWidth, scrollMode }, extraClasses);
|
|
9
|
+
dialogControl.setAttribute('dialog-variant', variant);
|
|
10
|
+
dialogControl.setAttribute('max-width', maxWidth);
|
|
11
|
+
dialogControl.setAttribute('scroll-mode', scrollMode);
|
|
12
|
+
if (headerTitle) {
|
|
13
|
+
dialogControl.setAttribute('header-title', headerTitle);
|
|
14
|
+
}
|
|
15
|
+
if (draggable) {
|
|
16
|
+
dialogControl.setAttribute('dialog-draggable', 'true');
|
|
17
|
+
}
|
|
18
|
+
else {
|
|
19
|
+
dialogControl.removeAttribute('dialog-draggable');
|
|
20
|
+
}
|
|
21
|
+
if (closeVisible) {
|
|
22
|
+
dialogControl.setAttribute('close-visible', 'true');
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
dialogControl.removeAttribute('close-visible');
|
|
26
|
+
}
|
|
27
|
+
// Dialog control header
|
|
28
|
+
const header = document.createElement('div');
|
|
29
|
+
header.className = headerDividerVisible
|
|
30
|
+
? 'gids-dialog-control__header gids-dialog-control__header-divider'
|
|
31
|
+
: 'gids-dialog-control__header';
|
|
32
|
+
if (headerTitle !== undefined) {
|
|
33
|
+
const headerTitleEl = document.createElement('h2');
|
|
34
|
+
headerTitleEl.className = 'gids-dialog-control__title';
|
|
35
|
+
headerTitleEl.textContent = headerTitle;
|
|
36
|
+
header.appendChild(headerTitleEl);
|
|
37
|
+
}
|
|
38
|
+
function onDialogControlClose(event) {
|
|
39
|
+
if (onCloseDialogControl) {
|
|
40
|
+
onCloseDialogControl({
|
|
41
|
+
originalEvent: event,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
// Render structural Close Icon layout button if visible setting rule matches
|
|
46
|
+
if (closeVisible) {
|
|
47
|
+
const closeButton = GidsButtonDom({
|
|
48
|
+
appearance: 'subtle',
|
|
49
|
+
size: 'md',
|
|
50
|
+
width: 'intrinsic',
|
|
51
|
+
leadingIcon: GidsIconDom({ name: 'cross', size: 'md' }),
|
|
52
|
+
onClick: onDialogControlClose,
|
|
53
|
+
});
|
|
54
|
+
header.appendChild(closeButton);
|
|
55
|
+
}
|
|
56
|
+
dialogControl.appendChild(header);
|
|
57
|
+
// Dialog control body
|
|
58
|
+
if (children) {
|
|
59
|
+
const body = document.createElement('div');
|
|
60
|
+
body.className = 'gids-dialog-control__body';
|
|
61
|
+
appendAsChildren(body, children);
|
|
62
|
+
dialogControl.appendChild(body);
|
|
63
|
+
}
|
|
64
|
+
// Dialog control footer
|
|
65
|
+
if (footerActions !== undefined && footerActions.length > 0) {
|
|
66
|
+
const footer = document.createElement('div');
|
|
67
|
+
footer.className = footerDividerVisible
|
|
68
|
+
? 'gids-dialog-control__footer gids-dialog-control__footer-divider'
|
|
69
|
+
: 'gids-dialog-control__footer';
|
|
70
|
+
footerActions.forEach((action, indexI) => {
|
|
71
|
+
const buttonChildren = [];
|
|
72
|
+
// Append leading decorative graphic nodes safely if defined
|
|
73
|
+
if (action.leadingIconName) {
|
|
74
|
+
buttonChildren.push(GidsIconDom({
|
|
75
|
+
name: action.leadingIconName,
|
|
76
|
+
size: action?.leadingIconSize ?? 'md',
|
|
77
|
+
appearance: action?.leadingIconAppearance ?? 'filled',
|
|
78
|
+
}));
|
|
79
|
+
}
|
|
80
|
+
// Map textual action titles cleanly
|
|
81
|
+
if (action.buttonLabel) {
|
|
82
|
+
const labelSpan = document.createElement('span');
|
|
83
|
+
labelSpan.textContent = action.buttonLabel;
|
|
84
|
+
buttonChildren.push(labelSpan);
|
|
85
|
+
}
|
|
86
|
+
// Append trailing decorative graphic nodes safely if defined
|
|
87
|
+
if (action.trailingIconName) {
|
|
88
|
+
buttonChildren.push(GidsIconDom({
|
|
89
|
+
name: action.trailingIconName,
|
|
90
|
+
size: action.trailingIconSize,
|
|
91
|
+
appearance: action.trailingIconAppearance,
|
|
92
|
+
}));
|
|
93
|
+
}
|
|
94
|
+
const actionBtnAppearance = action?.appearance ?? 'default';
|
|
95
|
+
const actionBtnSize = action?.size ?? 'md';
|
|
96
|
+
const actionBtnWidth = action?.width ?? 'intrinsic';
|
|
97
|
+
const isDestructive = action?.destructive ?? false;
|
|
98
|
+
const isDisabled = action?.disabled ?? false;
|
|
99
|
+
const isLoading = action?.loading ?? false;
|
|
100
|
+
const isPositive = action?.positive ?? false;
|
|
101
|
+
const actionButton = GidsButtonDom({
|
|
102
|
+
appearance: actionBtnAppearance,
|
|
103
|
+
destructive: isDestructive,
|
|
104
|
+
disabled: isDisabled,
|
|
105
|
+
loading: isLoading,
|
|
106
|
+
positive: isPositive,
|
|
107
|
+
size: actionBtnSize,
|
|
108
|
+
width: actionBtnWidth,
|
|
109
|
+
children: buttonChildren,
|
|
110
|
+
onClick: (event) => onDialogControlFooterAction?.({
|
|
111
|
+
originalEvent: event,
|
|
112
|
+
appearance: actionBtnAppearance,
|
|
113
|
+
destructive: isDestructive,
|
|
114
|
+
disabled: isDisabled,
|
|
115
|
+
buttonLabel: action?.buttonLabel,
|
|
116
|
+
positive: isPositive,
|
|
117
|
+
size: actionBtnSize,
|
|
118
|
+
width: actionBtnWidth,
|
|
119
|
+
buttonId: action?.buttonId,
|
|
120
|
+
index: indexI,
|
|
121
|
+
}),
|
|
122
|
+
});
|
|
123
|
+
footer.appendChild(actionButton);
|
|
124
|
+
});
|
|
125
|
+
dialogControl.appendChild(footer);
|
|
126
|
+
}
|
|
127
|
+
// 5. Initialize Drag Rules Engine (Excludes layout-breaking fullscreen options)
|
|
128
|
+
if (draggable && variant !== 'full-screen') {
|
|
129
|
+
setupDialogControlDraggable(dialogControl, header);
|
|
130
|
+
}
|
|
131
|
+
return dialogControl;
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=GidsDialogControl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsDialogControl.js","sourceRoot":"","sources":["../../../src/components/_GidsDialogControl/GidsDialogControl.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,yBAAyB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO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