@ganpatiinfo/gids-web-dom-reference 11.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.
Files changed (132) hide show
  1. package/CHANGELOG.md +108 -1
  2. package/dist/components/GidsAdvancedTooltip/GidsAdvancedTooltip.d.ts +8 -0
  3. package/dist/components/GidsAdvancedTooltip/GidsAdvancedTooltip.d.ts.map +1 -0
  4. package/dist/components/GidsAdvancedTooltip/GidsAdvancedTooltip.js +14 -0
  5. package/dist/components/GidsAdvancedTooltip/GidsAdvancedTooltip.js.map +1 -0
  6. package/dist/components/GidsBasicTableBody/GidsBasicTableBody.d.ts +27 -3
  7. package/dist/components/GidsBasicTableBody/GidsBasicTableBody.d.ts.map +1 -1
  8. package/dist/components/GidsBasicTableBody/GidsBasicTableBody.js +22 -3
  9. package/dist/components/GidsBasicTableBody/GidsBasicTableBody.js.map +1 -1
  10. package/dist/components/GidsBasicTableHead/GidsBasicTableHead.d.ts +15 -0
  11. package/dist/components/GidsBasicTableHead/GidsBasicTableHead.d.ts.map +1 -1
  12. package/dist/components/GidsBasicTableHead/GidsBasicTableHead.js +5 -0
  13. package/dist/components/GidsBasicTableHead/GidsBasicTableHead.js.map +1 -1
  14. package/dist/components/GidsBasicTableHeader/GidsBasicTableHeader.d.ts +27 -3
  15. package/dist/components/GidsBasicTableHeader/GidsBasicTableHeader.d.ts.map +1 -1
  16. package/dist/components/GidsBasicTableHeader/GidsBasicTableHeader.js +9 -1
  17. package/dist/components/GidsBasicTableHeader/GidsBasicTableHeader.js.map +1 -1
  18. package/dist/components/GidsBasicTableRow/GidsBasicTableRow.d.ts +23 -3
  19. package/dist/components/GidsBasicTableRow/GidsBasicTableRow.d.ts.map +1 -1
  20. package/dist/components/GidsBasicTableRow/GidsBasicTableRow.js +27 -6
  21. package/dist/components/GidsBasicTableRow/GidsBasicTableRow.js.map +1 -1
  22. package/dist/components/GidsBsTable/GidsBsTable.d.ts +27 -3
  23. package/dist/components/GidsBsTable/GidsBsTable.d.ts.map +1 -1
  24. package/dist/components/GidsBsTable/GidsBsTable.js +36 -14
  25. package/dist/components/GidsBsTable/GidsBsTable.js.map +1 -1
  26. package/dist/components/GidsChartLegendItem/GidsChartLegendItem.d.ts +1 -1
  27. package/dist/components/GidsChartLegendItem/GidsChartLegendItem.d.ts.map +1 -1
  28. package/dist/components/GidsChartLegendItem/GidsChartLegendItem.js +2 -1
  29. package/dist/components/GidsChartLegendItem/GidsChartLegendItem.js.map +1 -1
  30. package/dist/components/GidsColorSwatch/GidsColorSwatch.d.ts +8 -0
  31. package/dist/components/GidsColorSwatch/GidsColorSwatch.d.ts.map +1 -0
  32. package/dist/components/GidsColorSwatch/GidsColorSwatch.js +62 -0
  33. package/dist/components/GidsColorSwatch/GidsColorSwatch.js.map +1 -0
  34. package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts +12 -0
  35. package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts.map +1 -0
  36. package/dist/components/GidsMatrixTable/GidsMatrixTable.js +70 -0
  37. package/dist/components/GidsMatrixTable/GidsMatrixTable.js.map +1 -0
  38. package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +12 -0
  39. package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts.map +1 -0
  40. package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js +70 -0
  41. package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js.map +1 -0
  42. package/dist/components/GidsMdTable/GidsMdTable.d.ts +12 -2
  43. package/dist/components/GidsMdTable/GidsMdTable.d.ts.map +1 -1
  44. package/dist/components/GidsMdTable/GidsMdTable.js +3 -0
  45. package/dist/components/GidsMdTable/GidsMdTable.js.map +1 -1
  46. package/dist/components/GidsPagination/GidsPagination.d.ts +10 -0
  47. package/dist/components/GidsPagination/GidsPagination.d.ts.map +1 -1
  48. package/dist/components/GidsPagination/GidsPagination.js +5 -0
  49. package/dist/components/GidsPagination/GidsPagination.js.map +1 -1
  50. package/dist/components/GidsPaginator/GidsPaginator.d.ts +8 -0
  51. package/dist/components/GidsPaginator/GidsPaginator.d.ts.map +1 -0
  52. package/dist/components/GidsPaginator/GidsPaginator.js +154 -0
  53. package/dist/components/GidsPaginator/GidsPaginator.js.map +1 -0
  54. package/dist/components/GidsPaginatorItem/GidsPaginatorItem.d.ts +9 -0
  55. package/dist/components/GidsPaginatorItem/GidsPaginatorItem.d.ts.map +1 -0
  56. package/dist/components/GidsPaginatorItem/GidsPaginatorItem.js +33 -0
  57. package/dist/components/GidsPaginatorItem/GidsPaginatorItem.js.map +1 -0
  58. package/dist/components/GidsTable/GidsTable.d.ts +18 -0
  59. package/dist/components/GidsTable/GidsTable.d.ts.map +1 -0
  60. package/dist/components/GidsTable/GidsTable.js +96 -0
  61. package/dist/components/GidsTable/GidsTable.js.map +1 -0
  62. package/dist/components/GidsTableBody/GidsTableBody.d.ts +13 -0
  63. package/dist/components/GidsTableBody/GidsTableBody.d.ts.map +1 -0
  64. package/dist/components/GidsTableBody/GidsTableBody.js +61 -0
  65. package/dist/components/GidsTableBody/GidsTableBody.js.map +1 -0
  66. package/dist/components/GidsTableCell/GidsTableCell.d.ts +28 -0
  67. package/dist/components/GidsTableCell/GidsTableCell.d.ts.map +1 -0
  68. package/dist/components/GidsTableCell/GidsTableCell.js +146 -0
  69. package/dist/components/GidsTableCell/GidsTableCell.js.map +1 -0
  70. package/dist/components/GidsTableEntry/GidsTableEntry.d.ts +13 -0
  71. package/dist/components/GidsTableEntry/GidsTableEntry.d.ts.map +1 -0
  72. package/dist/components/GidsTableEntry/GidsTableEntry.js +305 -0
  73. package/dist/components/GidsTableEntry/GidsTableEntry.js.map +1 -0
  74. package/dist/components/GidsTableFooter/GidsTableFooter.d.ts +13 -0
  75. package/dist/components/GidsTableFooter/GidsTableFooter.d.ts.map +1 -0
  76. package/dist/components/GidsTableFooter/GidsTableFooter.js +75 -0
  77. package/dist/components/GidsTableFooter/GidsTableFooter.js.map +1 -0
  78. package/dist/components/GidsTableFooterControl/GidsTableFooterControl.d.ts +11 -0
  79. package/dist/components/GidsTableFooterControl/GidsTableFooterControl.d.ts.map +1 -0
  80. package/dist/components/GidsTableFooterControl/GidsTableFooterControl.js +97 -0
  81. package/dist/components/GidsTableFooterControl/GidsTableFooterControl.js.map +1 -0
  82. package/dist/components/GidsTableHeader/GidsTableHeader.d.ts +13 -0
  83. package/dist/components/GidsTableHeader/GidsTableHeader.d.ts.map +1 -0
  84. package/dist/components/GidsTableHeader/GidsTableHeader.js +51 -0
  85. package/dist/components/GidsTableHeader/GidsTableHeader.js.map +1 -0
  86. package/dist/components/GidsTableRow/GidsTableRow.d.ts +13 -0
  87. package/dist/components/GidsTableRow/GidsTableRow.d.ts.map +1 -0
  88. package/dist/components/GidsTableRow/GidsTableRow.js +71 -0
  89. package/dist/components/GidsTableRow/GidsTableRow.js.map +1 -0
  90. package/dist/components/GidsTableToolbar/GidsTableToolbar.d.ts +11 -0
  91. package/dist/components/GidsTableToolbar/GidsTableToolbar.d.ts.map +1 -0
  92. package/dist/components/GidsTableToolbar/GidsTableToolbar.js +92 -0
  93. package/dist/components/GidsTableToolbar/GidsTableToolbar.js.map +1 -0
  94. package/dist/components/_GidsPaginationItem/GidsPaginationItem.d.ts +10 -0
  95. package/dist/components/_GidsPaginationItem/GidsPaginationItem.d.ts.map +1 -1
  96. package/dist/components/_GidsPaginationItem/GidsPaginationItem.js +5 -0
  97. package/dist/components/_GidsPaginationItem/GidsPaginationItem.js.map +1 -1
  98. package/dist/index.d.ts +15 -1
  99. package/dist/index.d.ts.map +1 -1
  100. package/dist/index.js +15 -1
  101. package/dist/index.js.map +1 -1
  102. package/package.json +4 -4
  103. package/src/components/GidsAdvancedTooltip/GidsAdvancedTooltip.ts +42 -0
  104. package/src/components/GidsBasicTableBody/GidsBasicTableBody.ts +78 -4
  105. package/src/components/GidsBasicTableHead/GidsBasicTableHead.ts +15 -0
  106. package/src/components/GidsBasicTableHeader/GidsBasicTableHeader.ts +69 -12
  107. package/src/components/GidsBasicTableRow/GidsBasicTableRow.ts +73 -6
  108. package/src/components/GidsBsTable/GidsBsTable.ts +101 -18
  109. package/src/components/GidsChartLegendItem/GidsChartLegendItem.ts +2 -0
  110. package/src/components/GidsColorSwatch/GidsColorSwatch.ts +107 -0
  111. package/src/components/GidsMatrixTable/GidsMatrixTable.ts +167 -0
  112. package/src/components/GidsMatrixTableBody/GidsMatrixTableBody.ts +164 -0
  113. package/src/components/GidsMdTable/GidsMdTable.ts +22 -1
  114. package/src/components/GidsPagination/GidsPagination.ts +14 -2
  115. package/src/components/GidsPaginator/GidsPaginator.ts +241 -0
  116. package/src/components/GidsPaginatorItem/GidsPaginatorItem.ts +72 -0
  117. package/src/components/GidsTable/GidsTable.ts +203 -0
  118. package/src/components/GidsTableBody/GidsTableBody.ts +137 -0
  119. package/src/components/GidsTableCell/GidsTableCell.ts +276 -0
  120. package/src/components/GidsTableEntry/GidsTableEntry.ts +515 -0
  121. package/src/components/GidsTableFooter/GidsTableFooter.ts +157 -0
  122. package/src/components/GidsTableFooterControl/GidsTableFooterControl.ts +159 -0
  123. package/src/components/GidsTableHeader/GidsTableHeader.ts +116 -0
  124. package/src/components/GidsTableRow/GidsTableRow.ts +154 -0
  125. package/src/components/GidsTableToolbar/GidsTableToolbar.ts +180 -0
  126. package/src/components/_GidsPaginationItem/GidsPaginationItem.ts +14 -2
  127. package/src/index.ts +15 -1
  128. package/dist/components/GidsBasicTableCell/GidsBasicTableCell.d.ts +0 -8
  129. package/dist/components/GidsBasicTableCell/GidsBasicTableCell.d.ts.map +0 -1
  130. package/dist/components/GidsBasicTableCell/GidsBasicTableCell.js +0 -16
  131. package/dist/components/GidsBasicTableCell/GidsBasicTableCell.js.map +0 -1
  132. package/src/components/GidsBasicTableCell/GidsBasicTableCell.ts +0 -45
@@ -0,0 +1,154 @@
1
+ import { GidsPaginatorWebUtils, } from '@ganpatiinfo/gids-web-shared';
2
+ import { GidsPaginatorItemDom, } from '../GidsPaginatorItem/GidsPaginatorItem.js';
3
+ const { getGidsPaginatorClassNames } = GidsPaginatorWebUtils;
4
+ export const GidsPaginatorDom = ({ currentPage = 1, totalPages = 1, size = 'sm', disabled = false, selectColor = 'default', variant = 'default', shape = 'circled', showFirstPageBtn, showLastPageBtn, showNextBtn, showPreviousBtn, onPageChange, extraClasses, }) => {
5
+ const paginator = document.createElement('div');
6
+ paginator.className = getGidsPaginatorClassNames(extraClasses);
7
+ /*
8
+ * Container for pagination items.
9
+ */
10
+ const paginatorItems = document.createElement('div');
11
+ paginatorItems.className =
12
+ variant === 'outlined'
13
+ ? 'gids-paginator__shaped-items'
14
+ : 'gids-paginator__items';
15
+ const createPaginatorItem = ({ children, isIcon = false, iconName, selected = false, disabled: itemDisabled = false, onPaginatorItemClick, ellipsis = false, }) => {
16
+ return GidsPaginatorItemDom({
17
+ children,
18
+ isIcon: ellipsis ? false : isIcon,
19
+ iconName,
20
+ selected: ellipsis ? false : selected,
21
+ disabled: disabled || itemDisabled,
22
+ size,
23
+ selectColor,
24
+ variant: ellipsis ? 'default' : variant,
25
+ shape,
26
+ onPaginatorItemClick,
27
+ });
28
+ };
29
+ const handlePageChange = ({ page, event, }) => {
30
+ if (disabled || page < 1 || page > totalPages || page === currentPage) {
31
+ return;
32
+ }
33
+ if (onPageChange) {
34
+ const pageChangeEventDetail = {
35
+ currentPage: page,
36
+ totalPages,
37
+ size,
38
+ variant,
39
+ shape,
40
+ selectColor,
41
+ };
42
+ onPageChange({
43
+ originalEvent: event?.originalEvent,
44
+ details: pageChangeEventDetail,
45
+ });
46
+ }
47
+ };
48
+ if (showFirstPageBtn) {
49
+ /*
50
+ * First page button
51
+ */
52
+ paginatorItems.appendChild(createPaginatorItem({
53
+ isIcon: true,
54
+ iconName: 'backward',
55
+ disabled: currentPage <= 1,
56
+ onPaginatorItemClick: (event) => {
57
+ handlePageChange({ page: 1, event });
58
+ },
59
+ }));
60
+ }
61
+ if (showPreviousBtn) {
62
+ /*
63
+ * Previous button
64
+ */
65
+ paginatorItems.appendChild(createPaginatorItem({
66
+ isIcon: true,
67
+ iconName: 'chevron-left',
68
+ disabled: currentPage <= 1,
69
+ onPaginatorItemClick: (event) => {
70
+ handlePageChange({ page: currentPage - 1, event });
71
+ },
72
+ }));
73
+ }
74
+ /*
75
+ * Page calculation
76
+ *
77
+ * Example:
78
+ *
79
+ * totalPages = 5
80
+ * currentPage = 3
81
+ *
82
+ * Result:
83
+ *
84
+ * 1 2 3 4 5
85
+ *
86
+ * For larger page counts:
87
+ *
88
+ * 1 2 3 4 ... 10
89
+ */
90
+ const pages = [];
91
+ if (totalPages <= 7) {
92
+ for (let page = 1; page <= totalPages; page++) {
93
+ pages.push(page);
94
+ }
95
+ }
96
+ else if (currentPage <= 4) {
97
+ pages.push(1, 2, 3, 4, 'ellipsis', totalPages);
98
+ }
99
+ else if (currentPage >= totalPages - 3) {
100
+ pages.push(1, 'ellipsis', totalPages - 3, totalPages - 2, totalPages - 1, totalPages);
101
+ }
102
+ else {
103
+ pages.push(1, 'ellipsis', currentPage - 1, currentPage, currentPage + 1, 'ellipsis', totalPages);
104
+ }
105
+ /*
106
+ * Page buttons
107
+ */
108
+ pages.forEach((page) => {
109
+ if (page === 'ellipsis') {
110
+ paginatorItems.appendChild(createPaginatorItem({
111
+ children: '...',
112
+ disabled: true,
113
+ ellipsis: true,
114
+ }));
115
+ return;
116
+ }
117
+ paginatorItems.appendChild(createPaginatorItem({
118
+ children: String(page),
119
+ selected: page === currentPage,
120
+ onPaginatorItemClick: (event) => {
121
+ handlePageChange({ page, event });
122
+ },
123
+ }));
124
+ });
125
+ if (showNextBtn) {
126
+ /*
127
+ * Next button
128
+ */
129
+ paginatorItems.appendChild(createPaginatorItem({
130
+ isIcon: true,
131
+ iconName: 'chevron-right',
132
+ disabled: currentPage >= totalPages,
133
+ onPaginatorItemClick: (event) => {
134
+ handlePageChange({ page: currentPage + 1, event });
135
+ },
136
+ }));
137
+ }
138
+ if (showLastPageBtn) {
139
+ /*
140
+ * Last page button
141
+ */
142
+ paginatorItems.appendChild(createPaginatorItem({
143
+ isIcon: true,
144
+ iconName: 'forward',
145
+ disabled: currentPage >= totalPages,
146
+ onPaginatorItemClick: (event) => {
147
+ handlePageChange({ page: totalPages, event });
148
+ },
149
+ }));
150
+ }
151
+ paginator.appendChild(paginatorItems);
152
+ return paginator;
153
+ };
154
+ //# sourceMappingURL=GidsPaginator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsPaginator.js","sourceRoot":"","sources":["../../../src/components/GidsPaginator/GidsPaginator.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,oBAAoB,GAEpB,MAAM,2CAA2C,CAAC;AAOnD,MAAM,EAAE,0BAA0B,EAAE,GAAG,qBAAqB,CAAC;AAQ7D,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAChC,WAAW,GAAG,CAAC,EACf,UAAU,GAAG,CAAC,EACd,IAAI,GAAG,IAAI,EACX,QAAQ,GAAG,KAAK,EAChB,WAAW,GAAG,SAAS,EACvB,OAAO,GAAG,SAAS,EACnB,KAAK,GAAG,SAAS,EACjB,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,eAAe,EACf,YAAY,EACZ,YAAY,GACW,EAAkB,EAAE;IAC3C,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAChD,SAAS,CAAC,SAAS,GAAG,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAE/D;;OAEG;IACH,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACrD,cAAc,CAAC,SAAS;QACvB,OAAO,KAAK,UAAU;YACrB,CAAC,CAAC,8BAA8B;YAChC,CAAC,CAAC,uBAAuB,CAAC;IAE5B,MAAM,mBAAmB,GAAG,CAAC,EAC5B,QAAQ,EACR,MAAM,GAAG,KAAK,EAC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,EAAE,CAAC,CAAC;YAC/C,CAAC;SACD,CAAC,CACF,CAAC;IACH,CAAC;IAED,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAEtC,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ClassValue, GidsPaginatorItemWebProps } from '@ganpatiinfo/gids-web-shared';
2
+ import { DomChildren } from '../../utils/domUtils.js';
3
+ import { IconName } from '@ganpatiinfo/gids-web-theme-interface';
4
+ export type GidsPaginatorItemBaseWebProps = GidsPaginatorItemWebProps<DomChildren, IconName, Event>;
5
+ export interface GidsPaginatorItemDomProps extends GidsPaginatorItemBaseWebProps {
6
+ extraClasses?: ClassValue;
7
+ }
8
+ export declare const GidsPaginatorItemDom: ({ selectColor, variant, shape, size, children, isIcon, iconName, disabled, selected, extraClasses, onPaginatorItemClick, }: GidsPaginatorItemDomProps) => HTMLButtonElement;
9
+ //# sourceMappingURL=GidsPaginatorItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsPaginatorItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsPaginatorItem/GidsPaginatorItem.ts"],"names":[],"mappings":"AACA,OAAO,EACN,UAAU,EACV,yBAAyB,EAEzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAoB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAExE,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAKjE,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CACpE,WAAW,EACX,QAAQ,EACR,KAAK,CACL,CAAC;AAEF,MAAM,WAAW,yBAA0B,SAAQ,6BAA6B;IAC/E,YAAY,CAAC,EAAE,UAAU,CAAC;CAC1B;AAED,eAAO,MAAM,oBAAoB,GAAI,4HAYlC,yBAAyB,KAAG,iBAoC9B,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { GidsPaginatorItemCommonUtils } from '@ganpatiinfo/gids-core-shared';
2
+ import { GidsPaginatorItemWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
+ import { appendAsChildren } from '../../utils/domUtils.js';
4
+ import { GidsIconDom } from '../GidsIcon/GidsIcon.js';
5
+ const { getGidsPaginatorItemClassNames } = GidsPaginatorItemWebUtils;
6
+ const { getPaginatorItemIconSize } = GidsPaginatorItemCommonUtils;
7
+ export const GidsPaginatorItemDom = ({ selectColor = 'default', variant = 'default', shape = 'circled', size = 'sm', children, isIcon = false, iconName, disabled = false, selected = false, extraClasses, onPaginatorItemClick, }) => {
8
+ const paginatorItem = document.createElement('button');
9
+ paginatorItem.className = getGidsPaginatorItemClassNames({ selectColor, shape, size, variant, disabled, selected }, extraClasses);
10
+ if (!isIcon && children) {
11
+ appendAsChildren(paginatorItem, children);
12
+ }
13
+ if (isIcon &&
14
+ iconName &&
15
+ iconName.toString() !== '' &&
16
+ iconName.toString() !== '(none)') {
17
+ paginatorItem.appendChild(GidsIconDom({
18
+ size: getPaginatorItemIconSize({ size }),
19
+ name: iconName,
20
+ appearance: 'regular',
21
+ alt: '',
22
+ }));
23
+ }
24
+ if (onPaginatorItemClick && !disabled) {
25
+ paginatorItem.addEventListener('click', (event) => {
26
+ onPaginatorItemClick({
27
+ originalEvent: event,
28
+ });
29
+ });
30
+ }
31
+ return paginatorItem;
32
+ };
33
+ //# sourceMappingURL=GidsPaginatorItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsPaginatorItem.js","sourceRoot":"","sources":["../../../src/components/GidsPaginatorItem/GidsPaginatorItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAGN,yBAAyB,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,EAAE,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;AACrE,M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C;AACtB,CAAC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { GidsTableEntryTypographyStyle, GidsTableWebProps } from '@ganpatiinfo/gids-web-shared';
2
+ import { DomChildren } from '../../utils/domUtils';
3
+ import { HtmlInputAttributes } from '../GidsInput/GidsInput';
4
+ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
5
+ import { GidsInputStatus, GidsTableActionEvent, GidsTableToolbarSettings } from '@ganpatiinfo/gids-core-shared';
6
+ import { GidsTableToolbarDomProps } from '../GidsTableToolbar/GidsTableToolbar';
7
+ export type GidsTableToolbarBaseSettings = GidsTableToolbarSettings<DomChildren, Event, Element, HtmlInputAttributes, GidsInputStatus> & Pick<GidsTableToolbarDomProps, 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'onGidsSearchBarClear'>;
8
+ type GidsTableBaseWebProps = Omit<GidsTableWebProps<DomChildren, GidsTableEntryTypographyStyle, IconName, IconAppearance, DomChildren, Event, Element, HtmlInputAttributes>, 'toolbarSettings'> & {
9
+ toolbarSettings?: GidsTableToolbarBaseSettings;
10
+ };
11
+ type GidsTableActionBaseEvent = GidsTableActionEvent<Event, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
12
+ export interface GidsTableDomProps extends GidsTableBaseWebProps {
13
+ extraClasses?: string;
14
+ onTableAction?: (event: GidsTableActionBaseEvent) => void;
15
+ }
16
+ export declare const GidsTableDom: ({ toolbar, toolbarChildren, children, headerItems, bodyContent, isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight, horizontalScroll, onTableAction, extraClasses, }: GidsTableDomProps) => HTMLDivElement;
17
+ export {};
18
+ //# sourceMappingURL=GidsTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTable.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTable/GidsTable.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAC7B,iBAAiB,EAGjB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACN,eAAe,EACf,oBAAoB,EACpB,wBAAwB,EACxB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEN,wBAAwB,EACxB,MAAM,sCAAsC,CAAC;AAgB9C,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,CAClE,WAAW,EACX,KAAK,EACL,OAAO,EACP,mBAAmB,EACnB,eAAe,CACf,GACA,IAAI,CACH,wBAAwB,EACxB,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,sBAAsB,CACtE,CAAC;AAEH,KAAK,qBAAqB,GAAG,IAAI,CAChC,iBAAiB,CAChB,WAAW,EACX,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,EACX,KAAK,EACL,OAAO,EACP,mBAAmB,CACnB,EACD,iBAAiB,CACjB,GAAG;IACH,eAAe,CAAC,EAAE,4BAA4B,CAAC;CAC/C,CAAC;AAEF,KAAK,wBAAwB,GAAG,oBAAoB,CACnD,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,iBAAkB,SAAQ,qBAAqB;IAC/D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,IAAI,CAAC;CAC1D;AAED,eAAO,MAAM,YAAY,GAAI,yPAiB1B,iBAAiB,KAAG,cA6GtB,CAAC"}
@@ -0,0 +1,96 @@
1
+ import { GidsTableWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
2
+ import { appendAsChildren } from '../../utils/domUtils';
3
+ import { GidsTableToolbarDom, } from '../GidsTableToolbar/GidsTableToolbar';
4
+ import { GidsTableHeaderDom, } from '../GidsTableHeader/GidsTableHeader';
5
+ import { GidsTableBodyDom, } from '../GidsTableBody/GidsTableBody';
6
+ const { getGidsTableClassNames, getCustomisedTableHeaderEntries, getTableBodyBorder, } = GidsTableWebUtils;
7
+ export const GidsTableDom = ({ toolbar, toolbarChildren, children, headerItems, bodyContent, isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight = 200, horizontalScroll = false, onTableAction, extraClasses, }) => {
8
+ const tableDiv = document.createElement('div');
9
+ tableDiv.className = getGidsTableClassNames({ tableBorders, tableBorderRadius }, extraClasses);
10
+ /*
11
+ * Toolbar
12
+ */
13
+ if (isValidChildren(toolbar)) {
14
+ appendAsChildren(tableDiv, toolbar);
15
+ }
16
+ else if (isToolbarVisible) {
17
+ tableDiv.append(GidsTableToolbarDom({
18
+ ...toolbarSettings,
19
+ children: toolbarChildren,
20
+ }));
21
+ }
22
+ /*
23
+ * Scroll container
24
+ */
25
+ const tableScrollContainer = document.createElement('div');
26
+ tableScrollContainer.className = [
27
+ 'gids-table__scroll-container',
28
+ horizontalScroll ? 'gids-table__scroll-container--horizontal-scroll' : '',
29
+ ]
30
+ .filter(Boolean)
31
+ .join(' ');
32
+ if (tableBodyMaxHeight) {
33
+ tableScrollContainer.style.maxHeight = `${tableBodyMaxHeight}px`;
34
+ }
35
+ /*
36
+ * Table
37
+ */
38
+ const table = document.createElement('table');
39
+ table.className = 'gids-table--main-table';
40
+ /*
41
+ * Custom children
42
+ */
43
+ if (isValidChildren(children)) {
44
+ appendAsChildren(table, children);
45
+ }
46
+ else {
47
+ function onActionBtnClick(event) {
48
+ if (onTableAction) {
49
+ onTableAction({
50
+ ...event,
51
+ details: {
52
+ ...event.details,
53
+ columnIndex: event?.details?.entryIndex,
54
+ },
55
+ });
56
+ }
57
+ }
58
+ /*
59
+ * Header
60
+ */
61
+ if (isHeaderVisible && headerItems && headerItems.length > 0) {
62
+ table.append(GidsTableHeaderDom({
63
+ ...headerSettings,
64
+ headerItems: getCustomisedTableHeaderEntries({
65
+ headerItems,
66
+ tableBorders,
67
+ }),
68
+ onHeaderAction: onActionBtnClick,
69
+ }));
70
+ }
71
+ /*
72
+ * Body
73
+ */
74
+ if (bodyContent && bodyContent.length > 0) {
75
+ table.append(GidsTableBodyDom({
76
+ bodyBorder: getTableBodyBorder({
77
+ tableBorders,
78
+ }),
79
+ bodyContent,
80
+ bodySettings,
81
+ onBodyAction: onActionBtnClick,
82
+ }));
83
+ }
84
+ }
85
+ /*
86
+ * Final DOM:
87
+ *
88
+ * tableDiv
89
+ * └── scrollContainer
90
+ * └── table
91
+ */
92
+ tableScrollContainer.appendChild(table);
93
+ tableDiv.appendChild(tableScrollContainer);
94
+ return tableDiv;
95
+ };
96
+ //# sourceMappingURL=GidsTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTable.js","sourceRoot":"","sources":["../../../src/components/GidsTable/GidsTable.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,iBAAiB,EACjB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AAWrE,OAAO,EACN,mBAAmB,GAEnB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAEN,kBAAkB,GAClB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEN,gBAAgB,GAChB,MAAM,gCAAgC,CAAC;AAExC,MAAM,EACL,sBAAsB,EACtB,+BAA+B,EAC/B,kBAAkB,GAClB,GAAG,iBAAiB,CAAC;AA0CtB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC5B,OAAO,EACP,eAAe,EACf,QAAQ,EACR,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GAAG,GAAG,EACxB,gBAAgB,GAAG,KAAK,EACxB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AAK;oBACR,OAAO,EAAE;wBACR,GAAG,KAAK,CAAC,OAAO;wBAChB,WAAW,EAAE,KAAK,EAAE,OAAO,EAAE,UAAU;qBACvC;iBACD,CAAC,CAAC;YACJ,CAAC;QACF,CAAC;QAED;;WAEG;QACH,IAAI,eAAe,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC9D,KAAK,CAAC,MAAM,CACX,kBAAkB,CAAC;gBAClB,GAAG,cAAc;gBACjB,WAAW,EAAE,+BAA+B,CAAC;oBAC5C,WAAW;oBACX,YAAY;iBACZ,CAAC;gBACF,cAAc,EAAE,gBAAgB;aAChC,CAAC,CACF,CAAC;QACH,CAAC;QAED;;WAEG;QACH,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3C,KAAK,CAAC,MAAM,CACX,gBAAgB,CAAC;gBAChB,UAAU,EAAE,kBAAkB,CAAC;oBAC9B,YAAY;iBACZ,CAAC;gBACF,WAAW;gBACX,YAAY;gBACZ,YAAY,EAAE,gBAAgB;aAC9B,CAAC,CACF,CAAC;QACH,CAAC;IACF,CAAC;IAED;;;;;;OAMG;IACH,oBAAoB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACxC,QAAQ,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAE3C,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { GidsTableBodyWebProps, GidsTableEntryTypographyStyle } from '@ganpatiinfo/gids-web-shared';
2
+ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
3
+ import { GidsTableBodyActionEvent } from '@ganpatiinfo/gids-core-shared';
4
+ import { DomChildren } from '../../utils/domUtils';
5
+ type GidsTableBodyBaseWebProps = GidsTableBodyWebProps<GidsTableEntryTypographyStyle, IconName, IconAppearance, DomChildren>;
6
+ export type GidsTableBodyActionBaseEvent = GidsTableBodyActionEvent<Event, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
7
+ export interface GidsTableBodyDomProps extends GidsTableBodyBaseWebProps {
8
+ extraClasses?: string;
9
+ onBodyAction?: (event: GidsTableBodyActionBaseEvent) => void;
10
+ }
11
+ export declare const GidsTableBodyDom: ({ bodySettings, bodyContent, bodyBorder, children, onBodyAction, extraClasses, }: GidsTableBodyDomProps) => HTMLElement;
12
+ export {};
13
+ //# sourceMappingURL=GidsTableBody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableBody/GidsTableBody.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EAErB,6BAA6B,EAE7B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAWrE,KAAK,yBAAyB,GAAG,qBAAqB,CACrD,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AACF,MAAM,MAAM,4BAA4B,GAAG,wBAAwB,CAClE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,4BAA4B,KAAK,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,gBAAgB,GAAI,kFAO9B,qBAAqB,KAAG,WAqF1B,CAAC"}
@@ -0,0 +1,61 @@
1
+ import { GidsTableBodyWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
2
+ import { GidsTableRowDom, } from '../GidsTableRow/GidsTableRow';
3
+ import { appendAsChildren } from '../../utils/domUtils';
4
+ const { getGidsTableBodyClassNames, getConstructedTableBodyContent, getTableBodyRowEntryBackgroundColor, getTableBodyRowEntryContentColor, getTableBodyRowEntryActionsBackgroundColor, getTableBodyRowEntryActionsContentColor, } = GidsTableBodyWebUtils;
5
+ export const GidsTableBodyDom = ({ bodySettings, bodyContent = [], bodyBorder = 'none', children, onBodyAction, extraClasses, }) => {
6
+ const tableBody = document.createElement('tbody');
7
+ tableBody.className = getGidsTableBodyClassNames(extraClasses);
8
+ if (isValidChildren(children)) {
9
+ appendAsChildren(tableBody, children);
10
+ }
11
+ else {
12
+ if (bodyContent && bodyContent.length > 0) {
13
+ const constructedTableBodyContent = getConstructedTableBodyContent({
14
+ bodyContent,
15
+ bodyBorder,
16
+ });
17
+ function onRowActionBtnClick({ event, rowIndex, }) {
18
+ if (onBodyAction) {
19
+ onBodyAction({
20
+ ...event,
21
+ details: {
22
+ ...event.details,
23
+ rowIndex,
24
+ },
25
+ });
26
+ }
27
+ }
28
+ constructedTableBodyContent.forEach((constructedBody, indexI) => {
29
+ const constructedBodyRowItems = constructedBody?.rowItems ?? [];
30
+ const rowBgColor = getTableBodyRowEntryBackgroundColor({
31
+ bodySettings,
32
+ rowIndex: indexI,
33
+ });
34
+ const rowContentColor = getTableBodyRowEntryContentColor({
35
+ bodySettings,
36
+ rowIndex: indexI,
37
+ });
38
+ const rowActionsBgColor = getTableBodyRowEntryActionsBackgroundColor({
39
+ bodySettings,
40
+ rowIndex: indexI,
41
+ });
42
+ const rowActionsContentColor = getTableBodyRowEntryActionsContentColor({
43
+ bodySettings,
44
+ rowIndex: indexI,
45
+ });
46
+ tableBody.append(GidsTableRowDom({
47
+ ...bodySettings,
48
+ actionsBackgroundColor: rowActionsBgColor,
49
+ actionsContentColor: rowActionsContentColor,
50
+ backgroundColor: rowBgColor,
51
+ contentColor: rowContentColor,
52
+ rowType: 'body',
53
+ rows: constructedBodyRowItems,
54
+ onRowAction: (event) => onRowActionBtnClick({ event, rowIndex: indexI }),
55
+ }));
56
+ });
57
+ }
58
+ }
59
+ return tableBody;
60
+ };
61
+ //# sourceMappingURL=GidsTableBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTableBody.js","sourceRoot":"","sources":["../../../src/components/GidsTableBody/GidsTableBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,qBAAqB,EAErB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,eAAe,GACf,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AAErE,MAAM,EACL,0BAA0B,EAC1B,8BAA8B,EAC9B,mCAAmC,EACnC,gCAAgC,EAChC,0CAA0C,EAC1C,uCAAuC,GACvC,GAAG,qBAAqB,CAAC;AAoB1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAChC,YAAY,EACZ,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,MAAM,EACnB,QAAQ,EACR,YAAY,EACZ,YAAY,GACW,EAAe,EAAE;IACxC,MAAM,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAClD,SAAS,CAAC,SAAS,GAAG,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAE/D,IAAI,eAAe,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC/B,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IACvC,CAAC;SAAM,CAAC;QACP,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3C,MAAM,2BAA2B,GAAG,8BAA8B,CAAC;gBAClE,WAAW;gBACX,UAAU;aACV,CAAC,CAAC;YAEH,SAAS,mBAAmB,CAAC,EAC5B,KAAK,EACL,QAAQ,GAIR;gBACA,IAAI,YAAY,EAAE,CAAC;oBAClB,YAAY,CAAC;wBACZ,GAAG,KAAK;wBACR,OAAO,EAAE;4BACR,GAAG,KAAK,CAAC,OAAO;4BAChB,QAAQ;yBACR;qBACD,CAAC,CAAC;gBACJ,CAAC;YACF,CAAC;YAED,2BAA2B,CAAC,OAAO,CAAC,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE;gBAC/D,MAAM,uBAAuB,GAAG,eAAe,EAAE,QAAQ,IAAI,EAAE,CAAC;gBAEhE,MAAM,UAAU,GAAG,mCAAmC,CAIpD;oBACD,YAAY;oBACZ,QAAQ,EAAE,MAAM;iBAChB,CAAC,CAAC;gBACH,MAAM,eAAe,GAAG,gCAAgC,CAItD;oBACD,YAAY;oBACZ,QAAQ,EAAE,MAAM;iBAChB,CAAC,CAAC;gBACH,MAAM,iBAAiB,GAAG,0CAA0C,CAIlE;oBACD,YAAY;oBACZ,QAAQ,EAAE,MAAM;iBAChB,CAAC,CAAC;gBACH,MAAM,sBAAsB,GAAG,uCAAuC,CAIpE;oBACD,YAAY;oBACZ,QAAQ,EAAE,MAAM;iBAChB,CAAC,CAAC;gBAEH,SAAS,CAAC,MAAM,CACf,eAAe,CAAC;oBACf,GAAG,YAAY;oBACf,sBAAsB,EAAE,iBAAiB;oBACzC,mBAAmB,EAAE,sBAAsB;oBAC3C,eAAe,EAAE,UAAU;oBAC3B,YAAY,EAAE,eAAe;oBAC7B,OAAO,EAAE,MAAM;oBACf,IAAI,EAAE,uBAAuB;oBAC7B,WAAW,EAAE,CAAC,KAAkC,EAAE,EAAE,CACnD,mBAAmB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC;iBACjD,CAAC,CACF,CAAC;YACH,CAAC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { GidsTableCellTypographyStyle, GidsTableCellWebProps } from '@ganpatiinfo/gids-web-shared';
2
+ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
3
+ import { GidsTableCellActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
4
+ /**
5
+ * @deprecated
6
+ * Use `GidsTableEntry` and its props and functions
7
+ */
8
+ type GidsTableCellBaseWebProps = GidsTableCellWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance>;
9
+ /**
10
+ * @deprecated
11
+ * Use `GidsTableEntry` and its props and functions
12
+ */
13
+ export type GidsTableCellActionButtonBaseEvent = GidsTableCellActionButtonEvent<Event, GidsTableCellTypographyStyle, IconName, IconAppearance>;
14
+ /**
15
+ * @deprecated
16
+ * Use `GidsTableEntry` and its props and functions
17
+ */
18
+ export interface GidsTableCellDomProps extends GidsTableCellBaseWebProps {
19
+ extraClasses?: string;
20
+ onClickCellActionBtn?: (event: GidsTableCellActionButtonBaseEvent) => void;
21
+ }
22
+ /**
23
+ * @deprecated
24
+ * Use `GidsTableEntry` and its props and functions
25
+ */
26
+ export declare const GidsTableCellDom: ({ id, uniqueKey, extraData, label, cellDataType, displayTags, width, borderSides, borderRadiusSides, appearance, textAlignment, labelTypography, isHeaderCell, cellPrimaryActionButtons, cellSecondaryActionButtons, onClickCellActionBtn, extraClasses, }: GidsTableCellDomProps) => HTMLElement;
27
+ export {};
28
+ //# sourceMappingURL=GidsTableCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTableCell.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableCell/GidsTableCell.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,4BAA4B,EAC5B,qBAAqB,EAErB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAEN,8BAA8B,EAI9B,MAAM,+BAA+B,CAAC;AAQvC;;;GAGG;AACH,KAAK,yBAAyB,GAAG,qBAAqB,CACrD,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kCAAkC,GAAG,8BAA8B,CAC9E,KAAK,EACL,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,qBAAsB,SAAQ,yBAAyB;IACvE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,CAAC,KAAK,EAAE,kCAAkC,KAAK,IAAI,CAAC;CAC3E;AAED;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,4PAkB9B,qBAAqB,KAAG,WAqM1B,CAAC"}
@@ -0,0 +1,146 @@
1
+ import { GidsTableCellWebUtils, } from '@ganpatiinfo/gids-web-shared';
2
+ import { appendAsChildren } from '../../utils/domUtils';
3
+ import { GidsDisplayTagDom } from '../GidsDisplayTag/GidsDisplayTag';
4
+ import { GidsIconDom } from '../GidsIcon/GidsIcon';
5
+ import { GidsTableCellCommonUtils, } from '@ganpatiinfo/gids-core-shared';
6
+ import { GidsButtonDom } from '../GidsButton/GidsButton';
7
+ const { getGidsTableCellClassNames, getGidsTableCellLabelTypographyClass } = GidsTableCellWebUtils;
8
+ const { isTableCellActionButtonVisible, getTableCellBtnIcon } = GidsTableCellCommonUtils;
9
+ /**
10
+ * @deprecated
11
+ * Use `GidsTableEntry` and its props and functions
12
+ */
13
+ export const GidsTableCellDom = ({ id, uniqueKey, extraData, label, cellDataType = 'text', displayTags = [], width = 'full', borderSides = [], borderRadiusSides = [], appearance = 'none', textAlignment = 'center', labelTypography = 'label-medium', isHeaderCell = false, cellPrimaryActionButtons = [], cellSecondaryActionButtons = [], onClickCellActionBtn, extraClasses, }) => {
14
+ const cellTag = isHeaderCell ? 'th' : 'td';
15
+ const tableCell = document.createElement(cellTag);
16
+ tableCell.className = getGidsTableCellClassNames({ borderSides, borderRadiusSides, appearance, textAlignment, width }, extraClasses);
17
+ if (id) {
18
+ tableCell.setAttribute('id', id);
19
+ }
20
+ if (uniqueKey) {
21
+ tableCell.setAttribute('unique-key', uniqueKey);
22
+ }
23
+ if (extraData) {
24
+ tableCell.setAttribute('extra-data', JSON.stringify(extraData));
25
+ }
26
+ function makeCellActionBtnIcon({ cellActionBtn, neededIconType = 'leading', }) {
27
+ const tableCellBtnIcon = getTableCellBtnIcon({
28
+ cellActionButton: cellActionBtn,
29
+ neededIconType,
30
+ });
31
+ return tableCellBtnIcon?.cellIconName &&
32
+ tableCellBtnIcon.cellIconName.toString() !== ''
33
+ ? GidsIconDom({
34
+ name: tableCellBtnIcon.cellIconName,
35
+ size: tableCellBtnIcon.cellIconSize,
36
+ appearance: tableCellBtnIcon.cellIconAppearance,
37
+ })
38
+ : undefined;
39
+ }
40
+ function onActionBtnClick({ event, actionBtnIndex, actionBtnPosition, }) {
41
+ if (onClickCellActionBtn) {
42
+ onClickCellActionBtn({
43
+ originalEvent: event,
44
+ details: {
45
+ appearance,
46
+ cellDataType,
47
+ displayTags,
48
+ label,
49
+ id,
50
+ extraData,
51
+ isHeaderCell,
52
+ uniqueKey,
53
+ actionBtnNumber: `action-btn-${actionBtnIndex + 1}`,
54
+ actionBtnIndex: actionBtnIndex,
55
+ actionBtnPosition: actionBtnPosition ?? 'secondary',
56
+ },
57
+ });
58
+ }
59
+ }
60
+ function makeCellActionButton({ cellActionBtn, actionBtnIndex, actionBtnPosition, }) {
61
+ return GidsButtonDom({
62
+ as: 'button',
63
+ appearance: cellActionBtn?.appearance ?? 'default',
64
+ size: cellActionBtn?.size ?? 'md',
65
+ disabled: cellActionBtn?.disabled,
66
+ destructive: cellActionBtn?.destructive,
67
+ positive: cellActionBtn?.positive,
68
+ loading: cellActionBtn?.loading,
69
+ width: cellActionBtn?.width ?? 'intrinsic',
70
+ children: cellActionBtn?.buttonLabel ?? '',
71
+ type: 'button',
72
+ leadingIcon: makeCellActionBtnIcon({
73
+ cellActionBtn,
74
+ neededIconType: 'leading',
75
+ }),
76
+ trailingIcon: makeCellActionBtnIcon({
77
+ cellActionBtn,
78
+ neededIconType: 'trailing',
79
+ }),
80
+ onClick: (event) => onActionBtnClick({ event, actionBtnIndex, actionBtnPosition }),
81
+ });
82
+ }
83
+ if (cellPrimaryActionButtons && cellPrimaryActionButtons.length > 0) {
84
+ const cellPrimaryActionBtnContainer = document.createElement('div');
85
+ cellPrimaryActionBtnContainer.className =
86
+ 'gids-table-cell__primary-action-btn-container';
87
+ Array.from({ length: cellPrimaryActionButtons.length }, (_, indexI) => {
88
+ const cellPrimaryActionBtnIndex = cellPrimaryActionButtons.length - indexI - 1;
89
+ const cellPrimaryActionBtn = cellPrimaryActionButtons[cellPrimaryActionBtnIndex];
90
+ const cellActionBtnVisible = isTableCellActionButtonVisible(cellPrimaryActionBtn);
91
+ if (cellActionBtnVisible) {
92
+ cellPrimaryActionBtnContainer.append(makeCellActionButton({
93
+ cellActionBtn: cellPrimaryActionBtn,
94
+ actionBtnIndex: cellPrimaryActionBtnIndex,
95
+ actionBtnPosition: 'primary',
96
+ }));
97
+ }
98
+ });
99
+ tableCell.appendChild(cellPrimaryActionBtnContainer);
100
+ }
101
+ if (cellDataType === 'text' && label && label !== '') {
102
+ const labelSpan = document.createElement('span');
103
+ labelSpan.textContent = label;
104
+ labelSpan.className = `${getGidsTableCellLabelTypographyClass(labelTypography)}`;
105
+ appendAsChildren(tableCell, labelSpan);
106
+ }
107
+ if (cellDataType === 'display-tag' && displayTags && displayTags.length > 0) {
108
+ const displayTagsContainer = document.createElement('div');
109
+ displayTagsContainer.className = 'gids-table-cell__display-tags-container';
110
+ displayTags.forEach((displayTag) => {
111
+ displayTagsContainer.append(GidsDisplayTagDom({
112
+ label: displayTag?.label ?? '',
113
+ appearance: displayTag?.displayTagAppearance ?? 'subtle',
114
+ size: displayTag?.displayTagSize ?? 'xs',
115
+ icon: displayTag?.displayTagIcon
116
+ ? GidsIconDom({
117
+ name: displayTag.displayTagIcon,
118
+ size: displayTag?.displayTagSize ?? 'xs',
119
+ appearance: displayTag?.displayTagIconAppearance ?? 'regular',
120
+ })
121
+ : undefined,
122
+ color: displayTag?.displayTagColor ?? 'accent-5',
123
+ }));
124
+ });
125
+ appendAsChildren(tableCell, displayTagsContainer);
126
+ }
127
+ if (cellSecondaryActionButtons && cellSecondaryActionButtons.length > 0) {
128
+ const cellSecondaryActionBtnContainer = document.createElement('div');
129
+ cellSecondaryActionBtnContainer.className =
130
+ 'gids-table-cell__secondary-action-btn-container';
131
+ Array.from({ length: cellSecondaryActionButtons.length }, (_, indexJ) => {
132
+ const cellSecondaryActionBtn = cellSecondaryActionButtons[indexJ];
133
+ const cellActionBtnVisible = isTableCellActionButtonVisible(cellSecondaryActionBtn);
134
+ if (cellActionBtnVisible) {
135
+ cellSecondaryActionBtnContainer.append(makeCellActionButton({
136
+ cellActionBtn: cellSecondaryActionBtn,
137
+ actionBtnIndex: indexJ,
138
+ actionBtnPosition: 'secondary',
139
+ }));
140
+ }
141
+ });
142
+ tableCell.appendChild(cellSecondaryActionBtnContainer);
143
+ }
144
+ return tableCell;
145
+ };
146
+ //# sourceMappingURL=GidsTableCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTableCell.js","sourceRoot":"","sources":["../../../src/components/GidsTableCell/GidsTableCell.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,GACrB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAKxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAIN,wBAAwB,GAExB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,EAAE,0BAA0B,EAAE,oCAAoC,EAAE,GACzE,qBAAqB,CAAC;AACvB,MAAM,EAAE,8BAA8B,EAAE,mBAAmB,EAAE,GAC5D,wBAAwB,CAAC;AAgC1B;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAChC,EAAE,EACF,SAAS,EACT,SAAS,EACT,KAAK,EACL,YAAY,GAAG,MAAM,EACrB,WAAW,GAAG,EAAE,EAChB,KAAK,GAAG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oBAAoB,GAAG,8BAA8B,CAGzD,sBAAsB,CAAC,CAAC;YAC1B,IAAI,oBAAoB,EAAE,CAAC;gBAC1B,+BAA+B,CAAC,MAAM,CACrC,oBAAoB,CAAC;oBACpB,aAAa,EAAE,sBAAsB;oBACrC,cAAc,EAAE,MAAM;oBACtB,iBAAiB,EAAE,WAAW;iBAC9B,CAAC,CACF,CAAC;YACH,CAAC;QACF,CAAC,CAAC,CAAC;QAEH,SAAS,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,SAAS,CAAC;AAClB,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { GidsTableEntryTypographyStyle, GidsTableEntryWebProps } from '@ganpatiinfo/gids-web-shared';
2
+ import { DomChildren } from '../../utils/domUtils';
3
+ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
4
+ import { GidsTableEntryActionEvent } from '@ganpatiinfo/gids-core-shared';
5
+ type GidsTableEntryBaseWebProps = GidsTableEntryWebProps<GidsTableEntryTypographyStyle, IconName, IconAppearance, DomChildren>;
6
+ export type GidsTableEntryActionBaseEvent = GidsTableEntryActionEvent<Event, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
7
+ export interface GidsTableEntryDomProps extends GidsTableEntryBaseWebProps {
8
+ extraClasses?: string;
9
+ onEntryAction?: (event: GidsTableEntryActionBaseEvent) => void;
10
+ }
11
+ export declare const GidsTableEntryDom: ({ id, uniqueKey, extraData, colSpan, label, entryDataTypes, displayTags, statusTags, badges, avatars, colorSwatches, progressBars, borderSides, borderRadiusSides, appearance, textAlignment, entryAlignment, labelTypography, entryType, leadingActions, trailingActions, onEntryAction, colorSwatchLabelColor, colorSwatchLabelPosition, colorSwatchLabelTypography, colorSwatchSize, colorSwatchShape, colorSwatchShadow, colorSwatchBorderRadius, colorSwatchApplyBorders, colorSwatchBorderWidth, progressBarSize, progressBarEndCap, avatarSize, avatarGroupAppearance, avatarGroupLayout, statusTagAppearance, statusTagSize, progressBarContainerMinWidth, displayTagsOrientation, statusTagsOrientation, progressBarsOrientation, colorSwatchesOrientation, badgesOrientation, children, backgroundColor, contentColor, actionsBackgroundColor, actionsContentColor, extraClasses, }: GidsTableEntryDomProps) => HTMLTableCellElement;
12
+ export {};
13
+ //# sourceMappingURL=GidsTableEntry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsTableEntry.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableEntry/GidsTableEntry.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAC7B,sBAAsB,EAGtB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAG/C,OAAO,EAEN,yBAAyB,EAIzB,MAAM,+BAA+B,CAAC;AAiBvC,KAAK,0BAA0B,GAAG,sBAAsB,CACvD,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AACF,MAAM,MAAM,6BAA6B,GAAG,yBAAyB,CACpE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,sBAAuB,SAAQ,0BAA0B;IACzE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,IAAI,CAAC;CAC/D;AAED,eAAO,MAAM,iBAAiB,GAAI,+1BAmD/B,sBAAsB,KAAG,oBAyZ3B,CAAC"}