@ganpatiinfo/gids-react-web 15.0.0 → 16.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 (70) hide show
  1. package/dist/components/GidsCrossTable/GidsCrossTable.d.ts +17 -0
  2. package/dist/components/GidsCrossTable/GidsCrossTable.d.ts.map +1 -0
  3. package/dist/components/GidsCrossTable/GidsCrossTable.js +73 -0
  4. package/dist/components/GidsCrossTable/GidsCrossTable.js.map +1 -0
  5. package/dist/components/GidsCrossTableBody/GidsCrossTableBody.d.ts +12 -0
  6. package/dist/components/GidsCrossTableBody/GidsCrossTableBody.d.ts.map +1 -0
  7. package/dist/components/GidsCrossTableBody/GidsCrossTableBody.js +65 -0
  8. package/dist/components/GidsCrossTableBody/GidsCrossTableBody.js.map +1 -0
  9. package/dist/components/GidsCrossTableRow/GidsCrossTableRow.d.ts +12 -0
  10. package/dist/components/GidsCrossTableRow/GidsCrossTableRow.d.ts.map +1 -0
  11. package/dist/components/GidsCrossTableRow/GidsCrossTableRow.js +34 -0
  12. package/dist/components/GidsCrossTableRow/GidsCrossTableRow.js.map +1 -0
  13. package/dist/components/GidsDialog/GidsDialog.d.ts +13 -0
  14. package/dist/components/GidsDialog/GidsDialog.d.ts.map +1 -0
  15. package/dist/components/GidsDialog/GidsDialog.js +111 -0
  16. package/dist/components/GidsDialog/GidsDialog.js.map +1 -0
  17. package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts +22 -0
  18. package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts.map +1 -1
  19. package/dist/components/GidsMatrixTable/GidsMatrixTable.js +7 -0
  20. package/dist/components/GidsMatrixTable/GidsMatrixTable.js.map +1 -1
  21. package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +22 -0
  22. package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts.map +1 -1
  23. package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js +7 -0
  24. package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js.map +1 -1
  25. package/dist/components/GidsMenu/GidsMenu.d.ts.map +1 -1
  26. package/dist/components/GidsMenu/GidsMenu.js +6 -3
  27. package/dist/components/GidsMenu/GidsMenu.js.map +1 -1
  28. package/dist/components/GidsTable/GidsTable.d.ts +1 -1
  29. package/dist/components/GidsTable/GidsTable.d.ts.map +1 -1
  30. package/dist/components/GidsTable/GidsTable.js +11 -5
  31. package/dist/components/GidsTable/GidsTable.js.map +1 -1
  32. package/dist/components/GidsTableFooter/GidsTableFooter.d.ts +2 -2
  33. package/dist/components/GidsTableFooter/GidsTableFooter.d.ts.map +1 -1
  34. package/dist/components/GidsTableFooter/GidsTableFooter.js +4 -24
  35. package/dist/components/GidsTableFooter/GidsTableFooter.js.map +1 -1
  36. package/dist/components/GidsTableFooterControl/GidsTableFooterControl.d.ts +1 -1
  37. package/dist/components/GidsTableFooterControl/GidsTableFooterControl.d.ts.map +1 -1
  38. package/dist/components/GidsTableFooterControl/GidsTableFooterControl.js +9 -8
  39. package/dist/components/GidsTableFooterControl/GidsTableFooterControl.js.map +1 -1
  40. package/dist/components/GidsTableHeader/GidsTableHeader.d.ts +1 -1
  41. package/dist/components/GidsTableHeader/GidsTableHeader.d.ts.map +1 -1
  42. package/dist/components/GidsTableHeader/GidsTableHeader.js +2 -2
  43. package/dist/components/GidsTableHeader/GidsTableHeader.js.map +1 -1
  44. package/dist/components/GidsTableRow/GidsTableRow.d.ts +1 -1
  45. package/dist/components/GidsTableRow/GidsTableRow.d.ts.map +1 -1
  46. package/dist/components/GidsTableRow/GidsTableRow.js +2 -2
  47. package/dist/components/GidsTableRow/GidsTableRow.js.map +1 -1
  48. package/dist/components/GidsTableToolbar/GidsTableToolbar.js +2 -2
  49. package/dist/components/GidsTableToolbar/GidsTableToolbar.js.map +1 -1
  50. package/dist/components/_GidsDialogControl/GidsDialogControl.d.ts +8 -0
  51. package/dist/components/_GidsDialogControl/GidsDialogControl.d.ts.map +1 -0
  52. package/dist/components/_GidsDialogControl/GidsDialogControl.js +79 -0
  53. package/dist/components/_GidsDialogControl/GidsDialogControl.js.map +1 -0
  54. package/dist/components/stencil-generated/components.d.ts +2 -0
  55. package/dist/components/stencil-generated/components.d.ts.map +1 -1
  56. package/dist/components/stencil-generated/components.js +2 -0
  57. package/dist/components/stencil-generated/components.js.map +1 -1
  58. package/dist/components/stencil-generated/gids-skeleton.d.ts +10 -0
  59. package/dist/components/stencil-generated/gids-skeleton.d.ts.map +1 -0
  60. package/dist/components/stencil-generated/gids-skeleton.js +13 -0
  61. package/dist/components/stencil-generated/gids-skeleton.js.map +1 -0
  62. package/dist/components/stencil-generated/gids-transfer-list.d.ts +10 -0
  63. package/dist/components/stencil-generated/gids-transfer-list.d.ts.map +1 -0
  64. package/dist/components/stencil-generated/gids-transfer-list.js +13 -0
  65. package/dist/components/stencil-generated/gids-transfer-list.js.map +1 -0
  66. package/dist/index.d.ts +101 -95
  67. package/dist/index.d.ts.map +1 -1
  68. package/dist/index.js +101 -95
  69. package/dist/index.js.map +1 -1
  70. package/package.json +5 -5
@@ -0,0 +1,17 @@
1
+ import React, { MouseEvent, type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import { GidsCrossTableActionEvent, GidsCrossTableToolbarSettings, GidsInputStatus } from '@ganpatiinfo/gids-core-shared';
3
+ import { GidsCrossTableWebProps, GidsTableEntryTypographyStyle } from '@ganpatiinfo/gids-web-shared';
4
+ import { GidsTableToolbarProps } from '../GidsTableToolbar/GidsTableToolbar';
5
+ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
6
+ type GidsCrossTableNativeInputProps = Omit<ComponentPropsWithoutRef<'input'>, 'ref'>;
7
+ export type GidsCrossTableToolbarBaseSettings = Omit<GidsCrossTableToolbarSettings<ReactNode, MouseEvent, ReactNode, GidsCrossTableNativeInputProps, GidsInputStatus>, 'inputProps'> & Pick<GidsTableToolbarProps, 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'onGidsSearchBarClear' | 'inputProps'>;
8
+ interface GidsCrossTableBaseWebProps extends Omit<GidsCrossTableWebProps<ReactNode, GidsTableEntryTypographyStyle, IconName, IconAppearance, ReactNode, MouseEvent, ReactNode, GidsCrossTableNativeInputProps>, 'toolbarSettings'>, Pick<ComponentPropsWithoutRef<'div'>, 'className'> {
9
+ toolbarSettings?: GidsCrossTableToolbarBaseSettings;
10
+ }
11
+ type GidsCrossTableActionBaseEvent = GidsCrossTableActionEvent<MouseEvent, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
12
+ export interface GidsCrossTableProps extends GidsCrossTableBaseWebProps {
13
+ onCrossTableAction?: (event: GidsCrossTableActionBaseEvent) => void;
14
+ }
15
+ export declare const GidsCrossTable: ({ toolbar, toolbarChildren, headerItems, bodyContent, isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight, horizontalScroll, crossHeaderSettings, onCrossTableAction, footerItems, footerSettings, isFooterVisible, isFooterControlVisible, footerControlSettings, footerControl, children, className, }: GidsCrossTableProps) => React.JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=GidsCrossTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCrossTable.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCrossTable/GidsCrossTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,UAAU,EACV,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EACN,yBAAyB,EACzB,6BAA6B,EAC7B,eAAe,EACf,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACN,sBAAsB,EAEtB,6BAA6B,EAE7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,qBAAqB,EACrB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAoB/C,KAAK,8BAA8B,GAAG,IAAI,CACzC,wBAAwB,CAAC,OAAO,CAAC,EACjC,KAAK,CACL,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG,IAAI,CACnD,6BAA6B,CAC5B,SAAS,EACT,UAAU,EACV,SAAS,EACT,8BAA8B,EAC9B,eAAe,CACf,EACD,YAAY,CACZ,GACA,IAAI,CACH,qBAAqB,EACnB,UAAU,GACV,SAAS,GACT,SAAS,GACT,QAAQ,GACR,sBAAsB,GACtB,YAAY,CACd,CAAC;AAEH,UAAU,0BACT,SACC,IAAI,CACH,sBAAsB,CACrB,SAAS,EACT,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,SAAS,EACT,UAAU,EACV,SAAS,EACT,8BAA8B,CAC9B,EACD,iBAAiB,CACjB,EACD,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IACnD,eAAe,CAAC,EAAE,iCAAiC,CAAC;CACpD;AAED,KAAK,6BAA6B,GAAG,yBAAyB,CAC7D,UAAU,EACV,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,mBAAoB,SAAQ,0BAA0B;IACtE,kBAAkB,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,IAAI,CAAC;CACpE;AAED,eAAO,MAAM,cAAc,GAAI,4XAwB5B,mBAAmB,sBAmIrB,CAAC"}
@@ -0,0 +1,73 @@
1
+ import React from 'react';
2
+ import { GidsCrossTableWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsTableToolbar, } from '../GidsTableToolbar/GidsTableToolbar';
4
+ import clsx from 'clsx';
5
+ import { GidsTableHeader, } from '../GidsTableHeader/GidsTableHeader';
6
+ import { GidsCrossTableBody, } from '../GidsCrossTableBody/GidsCrossTableBody';
7
+ import { GidsTableFooter } from '../GidsTableFooter/GidsTableFooter';
8
+ import { GidsTableFooterControl } from '../GidsTableFooterControl/GidsTableFooterControl';
9
+ const { getGidsCrossTableClassNames, getCustomisedCrossTableHeaderEntries, getCustomisedCrossTableFooterEntries, getCrossTableBodyBorder, } = GidsCrossTableWebUtils;
10
+ export const GidsCrossTable = ({ toolbar, toolbarChildren, headerItems = [], bodyContent = [], isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight = 200, horizontalScroll = false, crossHeaderSettings, onCrossTableAction, footerItems = [], footerSettings, isFooterVisible = false, isFooterControlVisible = false, footerControlSettings, footerControl, children, className, }) => {
11
+ const scrollContainerClassName = clsx('gids-cross-table__scroll-container', {
12
+ 'gids-cross-table__scroll-container--horizontal-scroll': horizontalScroll,
13
+ });
14
+ const scrollContainerStyle = tableBodyMaxHeight
15
+ ? {
16
+ maxHeight: `${tableBodyMaxHeight}px`,
17
+ }
18
+ : undefined;
19
+ function onActionBtnClick(event) {
20
+ if (onCrossTableAction) {
21
+ onCrossTableAction({
22
+ ...event,
23
+ details: {
24
+ ...event.details,
25
+ columnIndex: event?.details?.entryIndex,
26
+ },
27
+ });
28
+ }
29
+ }
30
+ const renderTableToolbar = () => {
31
+ /*
32
+ * Toolbar
33
+ */
34
+ if (isValidChildren(toolbar)) {
35
+ return toolbar;
36
+ }
37
+ else if (isToolbarVisible) {
38
+ return (React.createElement(GidsTableToolbar, { ...toolbarSettings, onBlur: toolbarSettings?.onBlur, onChange: toolbarSettings?.onChange, onFocus: toolbarSettings?.onFocus, onInput: toolbarSettings?.onInput, onGidsSearchBarClear: toolbarSettings?.onGidsSearchBarClear }, toolbarChildren));
39
+ }
40
+ return undefined;
41
+ };
42
+ const renderFooterControl = () => {
43
+ /*
44
+ * Footer Control
45
+ */
46
+ if (isFooterControlVisible || isValidChildren(footerControl)) {
47
+ return (React.createElement(GidsTableFooterControl, { ...footerControlSettings, tableViewControllerSettings: footerControlSettings?.tableViewControllerSettings }, footerControl));
48
+ }
49
+ return undefined;
50
+ };
51
+ return (React.createElement("div", { className: getGidsCrossTableClassNames({ tableBorders, tableBorderRadius }, className) },
52
+ renderTableToolbar(),
53
+ isValidChildren(children) ? (React.createElement("div", { className: scrollContainerClassName, style: scrollContainerStyle },
54
+ React.createElement("table", { className: clsx('gids-cross-table__main-table', {
55
+ 'gids-cross-table__main-table--horizontal-scroll': horizontalScroll,
56
+ }) }, children))) : (React.createElement("div", { className: scrollContainerClassName, style: scrollContainerStyle },
57
+ React.createElement("table", { className: clsx('gids-cross-table__main-table', {
58
+ 'gids-cross-table__main-table--horizontal-scroll': horizontalScroll,
59
+ }) },
60
+ isHeaderVisible && headerItems && headerItems.length > 0 ? (React.createElement(GidsTableHeader, { ...headerSettings, headerItems: getCustomisedCrossTableHeaderEntries({
61
+ headerItems: [{}, ...headerItems],
62
+ tableBorders,
63
+ }), onHeaderAction: onActionBtnClick })) : undefined,
64
+ bodyContent && bodyContent.length > 0 ? (React.createElement(GidsCrossTableBody, { bodyBorder: getCrossTableBodyBorder({
65
+ tableBorders,
66
+ }), bodyContent: bodyContent, bodySettings: bodySettings, crossHeaderSettings: crossHeaderSettings, onCrossTableBodyAction: onActionBtnClick })) : undefined,
67
+ isFooterVisible && footerItems && footerItems.length > 0 ? (React.createElement(GidsTableFooter, { ...footerSettings, footerItems: getCustomisedCrossTableFooterEntries({
68
+ footerItems: [{}, ...footerItems],
69
+ tableBorders,
70
+ }), onFooterAction: onActionBtnClick })) : undefined))),
71
+ renderFooterControl()));
72
+ };
73
+ //# sourceMappingURL=GidsCrossTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCrossTable.js","sourceRoot":"","sources":["../../../src/components/GidsCrossTable/GidsCrossTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AAMf,OAAO,EAEN,sBAAsB,EAEtB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,GAEhB,MAAM,sCAAsC,CAAC;AAK9C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EACN,eAA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EAChD,gBAAgB;iBACjB,CAAC;gBAED,eAAe,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC3D,oBAAC,eAAe,OACX,cAAc,EAClB,WAAW,EAAE,oCAAoC,CAAC;wBACjD,WAAW,EAAE,CAAC,EAAE,EAAE,GAAG,WAAW,CAAC;wBACjC,YAAY;qBACZ,CAAC,EACF,cAAc,EAAE,gBAAgB,GAC/B,CACF,CAAC,CAAC,CAAC,SAAS;gBACZ,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CACxC,oBAAC,kBAAkB,IAClB,UAAU,EAAE,uBAAuB,CAAC;wBACnC,YAAY;qBACZ,CAAC,EACF,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,sBAAsB,EAAE,gBAAgB,GACvC,CACF,CAAC,CAAC,CAAC,SAAS;gBACZ,eAAe,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC3D,oBAAC,eAAe,OACX,cAAc,EAClB,WAAW,EAAE,oCAAoC,CAAC;wBACjD,WAAW,EAAE,CAAC,EAAE,EAAE,GAAG,WAAW,CAAC;wBACjC,YAAY;qBACZ,CAAC,EACF,cAAc,EAAE,gBAAgB,GAC/B,CACF,CAAC,CAAC,CAAC,SAAS,CACN,CACH,CACN;QACA,mBAAmB,EAAE,CACjB,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React, { type MouseEvent, type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import { GidsCrossTableBodyActionEvent } from '@ganpatiinfo/gids-core-shared';
3
+ import { GidsCrossTableBodyWebProps, GidsTableEntryTypographyStyle } from '@ganpatiinfo/gids-web-shared';
4
+ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
5
+ type GidsCrossTableBodyBaseWebProps = GidsCrossTableBodyWebProps<GidsTableEntryTypographyStyle, IconName, IconAppearance, ReactNode> & Pick<ComponentPropsWithoutRef<'tbody'>, 'className'>;
6
+ export type GidsCrossTableBodyActionBaseEvent = GidsCrossTableBodyActionEvent<MouseEvent, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
7
+ export interface GidsCrossTableBodyProps extends GidsCrossTableBodyBaseWebProps {
8
+ onCrossTableBodyAction?: (event: GidsCrossTableBodyActionBaseEvent) => void;
9
+ }
10
+ export declare const GidsCrossTableBody: ({ bodySettings, bodyContent, bodyBorder, crossHeaderSettings, onCrossTableBodyAction, className, children, }: GidsCrossTableBodyProps) => React.JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=GidsCrossTableBody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCrossTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCrossTableBody/GidsCrossTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EACN,0BAA0B,EAE1B,6BAA6B,EAE7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAa/C,KAAK,8BAA8B,GAAG,0BAA0B,CAC/D,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,SAAS,CACT,GACA,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,CAAC;AAEtD,MAAM,MAAM,iCAAiC,GAAG,6BAA6B,CAC5E,UAAU,EACV,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,8BAA8B;IAC9E,sBAAsB,CAAC,EAAE,CAAC,KAAK,EAAE,iCAAiC,KAAK,IAAI,CAAC;CAC5E;AAED,eAAO,MAAM,kBAAkB,GAAI,8GAQhC,uBAAuB,sBA+GzB,CAAC"}
@@ -0,0 +1,65 @@
1
+ import React from 'react';
2
+ import { GidsCrossTableBodyWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsCrossTableRow } from '../GidsCrossTableRow/GidsCrossTableRow';
4
+ const { getGidsCrossTableBodyClassNames, getConstructedCrossTableBodyContent, getCrossTableBodyRowEntryBackgroundColor, getCrossTableBodyRowEntryContentColor, getCrossTableBodyRowEntryActionsBackgroundColor, getCrossTableBodyRowEntryActionsContentColor, } = GidsCrossTableBodyWebUtils;
5
+ export const GidsCrossTableBody = ({ bodySettings, bodyContent = [], bodyBorder = 'none', crossHeaderSettings, onCrossTableBodyAction, className, children, }) => {
6
+ const constructedCrossTableBodyContent = getConstructedCrossTableBodyContent({
7
+ bodyContent,
8
+ bodyBorder,
9
+ });
10
+ function onCrossTableRowActionBtnClick({ event, rowIndex, }) {
11
+ if (onCrossTableBodyAction) {
12
+ onCrossTableBodyAction({
13
+ ...event,
14
+ details: {
15
+ ...event.details,
16
+ rowIndex,
17
+ },
18
+ });
19
+ }
20
+ }
21
+ return (React.createElement("tbody", { className: getGidsCrossTableBodyClassNames(className) }, isValidChildren(children)
22
+ ? children
23
+ : constructedCrossTableBodyContent.map((constructedCrossTableBody, indexI) => {
24
+ const constructedBodyRowItems = constructedCrossTableBody?.rowItems ?? [];
25
+ const rowBgColor = getCrossTableBodyRowEntryBackgroundColor({
26
+ bodySettings,
27
+ rowIndex: indexI,
28
+ });
29
+ const rowContentColor = getCrossTableBodyRowEntryContentColor({
30
+ bodySettings,
31
+ rowIndex: indexI,
32
+ });
33
+ const rowActionsBgColor = getCrossTableBodyRowEntryActionsBackgroundColor({
34
+ bodySettings,
35
+ rowIndex: indexI,
36
+ });
37
+ const rowActionsContentColor = getCrossTableBodyRowEntryActionsContentColor({
38
+ bodySettings,
39
+ rowIndex: indexI,
40
+ });
41
+ return (React.createElement(GidsCrossTableRow, { ...bodySettings, key: `${indexI + 1}`, rows: constructedBodyRowItems,
42
+ /*
43
+ * Cross Header
44
+ *
45
+ * sideHeaderItem = actual content
46
+ * for this specific row.
47
+ */
48
+ crossHeaderItem: constructedCrossTableBody?.crossHeaderItem,
49
+ /*
50
+ * Cross Header Settings
51
+ *
52
+ * Shared configuration/style for
53
+ * all side-header cells.
54
+ */
55
+ crossHeaderSettings: crossHeaderSettings,
56
+ /*
57
+ * Body row styling
58
+ */
59
+ backgroundColor: rowBgColor, contentColor: rowContentColor, actionsBackgroundColor: rowActionsBgColor, actionsContentColor: rowActionsContentColor, onCrossTableRowAction: (event) => onCrossTableRowActionBtnClick({
60
+ event,
61
+ rowIndex: indexI,
62
+ }) }));
63
+ })));
64
+ };
65
+ //# sourceMappingURL=GidsCrossTableBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCrossTableBody.js","sourceRoot":"","sources":["../../../src/components/GidsCrossTableBody/GidsCrossTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AAEf,OAAO,EAEN,0BAA0B,EAE1B,eAAe,GACf,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE3E,MAAM,EACL,+BAA+B,EAC/B,mCAAmC,EACnC,wCAAwC,EACxC,qCAAqC,EACrC,+CAA+C,EAC/C,4CAA4C,GAC5C,GAAG,0BAA0B,CAAC;AAqB/B,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,YAAY,EACZ,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,MAAM,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,SAAS,EACT,QAAQ,GACiB,EAAE,EAAE;IAC7B,MAAM,gCAAgC,GAAG,mCAAmC,CAAC;QAC5E,WAAW;QACX,UAAU;KACV,CAAC,CAAC;IAEH,SAAS,6BAA6B,CAAC,EAC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AqB,EAAE,CACtB,KAAuC,EACtC,EAAE,CACH,6BAA6B,CAAC;oBAC7B,KAAK;oBACL,QAAQ,EAAE,MAAM;iBAChB,CAAC,GAEF,CACF,CAAC;QACH,CAAC,CACD,CACI,CACR,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import React, { type MouseEvent, type ComponentPropsWithoutRef, type ReactNode } from 'react';
2
+ import { GidsCrossTableRowActionEvent } from '@ganpatiinfo/gids-core-shared';
3
+ import { GidsCrossTableRowWebProps, GidsTableEntryTypographyStyle } from '@ganpatiinfo/gids-web-shared';
4
+ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
5
+ type GidsCrossTableRowBaseWebProps = GidsCrossTableRowWebProps<GidsTableEntryTypographyStyle, IconName, IconAppearance, ReactNode> & Omit<ComponentPropsWithoutRef<'tr'>, 'children' | 'onClick'>;
6
+ export type GidsCrossTableRowActionBaseEvent = GidsCrossTableRowActionEvent<MouseEvent, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
7
+ export interface GidsCrossTableRowProps extends GidsCrossTableRowBaseWebProps {
8
+ onCrossTableRowAction?: (event: GidsCrossTableRowActionBaseEvent) => void;
9
+ }
10
+ export declare const GidsCrossTableRow: ({ rows, crossHeaderItem, crossHeaderSettings, onCrossTableRowAction, 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, className, }: GidsCrossTableRowProps) => React.JSX.Element;
11
+ export {};
12
+ //# sourceMappingURL=GidsCrossTableRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCrossTableRow.d.ts","sourceRoot":"","sources":["../../../src/components/GidsCrossTableRow/GidsCrossTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,4BAA4B,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EACN,yBAAyB,EAEzB,6BAA6B,EAE7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAM/C,KAAK,6BAA6B,GAAG,yBAAyB,CAC7D,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,SAAS,CACT,GACA,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAC9D,MAAM,MAAM,gCAAgC,GAAG,4BAA4B,CAC1E,UAAU,EACV,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,sBAAuB,SAAQ,6BAA6B;IAC5E,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,gCAAgC,KAAK,IAAI,CAAC;CAC1E;AAED,eAAO,MAAM,iBAAiB,GAAI,msBAqC/B,sBAAsB,sBAwJxB,CAAC"}
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { GidsCrossTableRowWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
3
+ import { GidsTableEntry } from '../GidsTableEntry/GidsTableEntry';
4
+ const { getGidsCrossTableRowClassNames } = GidsCrossTableRowWebUtils;
5
+ export const GidsCrossTableRow = ({ rows = [], crossHeaderItem, crossHeaderSettings, onCrossTableRowAction, 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, className, }) => {
6
+ function onEntryActionBtnClick({ event, entryIndex, }) {
7
+ if (onCrossTableRowAction) {
8
+ onCrossTableRowAction({
9
+ ...event,
10
+ details: {
11
+ ...event.details,
12
+ entryIndex,
13
+ },
14
+ });
15
+ }
16
+ }
17
+ if (isValidChildren(children)) {
18
+ return (React.createElement("tr", { className: getGidsCrossTableRowClassNames(className) }, children));
19
+ }
20
+ return (React.createElement("tr", { className: getGidsCrossTableRowClassNames(className) },
21
+ crossHeaderItem && Object.keys(crossHeaderItem).length > 0 ? (React.createElement(GidsTableEntry, { ...crossHeaderItem, ...crossHeaderSettings, label: crossHeaderItem?.label, entryType: "header", leadingActions: crossHeaderItem?.leadingActions ?? [], trailingActions: crossHeaderItem?.trailingActions ?? [], entryAlignment: crossHeaderSettings?.entryAlignment ?? 'center', colorSwatchLabelColor: crossHeaderSettings?.colorSwatchLabelColor ?? 'default', colorSwatchLabelPosition: crossHeaderSettings?.colorSwatchLabelPosition ?? 'left', colorSwatchLabelTypography: crossHeaderSettings?.colorSwatchLabelTypography ?? 'label-medium', colorSwatchSize: crossHeaderSettings?.colorSwatchSize ?? 'sm', colorSwatchShape: crossHeaderSettings?.colorSwatchShape ?? 'oval', colorSwatchShadow: crossHeaderSettings?.colorSwatchShadow ?? 'shadow-overlay', colorSwatchBorderRadius: crossHeaderSettings?.colorSwatchBorderRadius ?? 'none', colorSwatchApplyBorders: crossHeaderSettings?.colorSwatchApplyBorders ?? true, colorSwatchBorderWidth: crossHeaderSettings?.colorSwatchBorderWidth ?? 'thick', progressBarSize: crossHeaderSettings?.progressBarSize ?? 'sm', progressBarEndCap: crossHeaderSettings?.progressBarEndCap ?? true, avatarSize: crossHeaderSettings?.avatarSize ?? 'sm', avatarGroupAppearance: crossHeaderSettings?.avatarGroupAppearance ?? 'spread', avatarGroupLayout: crossHeaderSettings?.avatarGroupLayout ?? 'wrap', statusTagAppearance: crossHeaderSettings?.statusTagAppearance ?? 'subtle', statusTagSize: crossHeaderSettings?.statusTagSize ?? 'sm', progressBarContainerMinWidth: crossHeaderSettings?.progressBarContainerMinWidth ?? 200, displayTagsOrientation: crossHeaderSettings?.displayTagsOrientation ?? 'horizontal', statusTagsOrientation: crossHeaderSettings?.statusTagsOrientation ?? 'horizontal', progressBarsOrientation: crossHeaderSettings?.progressBarsOrientation ?? 'horizontal', colorSwatchesOrientation: crossHeaderSettings?.colorSwatchesOrientation ?? 'horizontal', badgesOrientation: crossHeaderSettings?.badgesOrientation ?? 'horizontal', textAlignment: crossHeaderSettings?.textAlignment ?? 'center', labelTypography: crossHeaderSettings?.labelTypography ?? 'label-medium', appearance: crossHeaderSettings?.appearance ?? 'none', onEntryAction: (event) => onEntryActionBtnClick({
22
+ event,
23
+ entryIndex: -1,
24
+ }) })) : undefined,
25
+ rows && rows.length > 0
26
+ ? rows.map((row, index) => {
27
+ return (React.createElement(GidsTableEntry, { ...row, key: `${index + 1}`, entryType: "body", leadingActions: row?.leadingActions ?? [], trailingActions: row?.trailingActions ?? [], entryAlignment: entryAlignment, colorSwatchLabelColor: colorSwatchLabelColor, colorSwatchLabelPosition: colorSwatchLabelPosition, colorSwatchLabelTypography: colorSwatchLabelTypography, colorSwatchSize: colorSwatchSize, colorSwatchShape: colorSwatchShape, colorSwatchShadow: colorSwatchShadow, colorSwatchBorderRadius: colorSwatchBorderRadius, colorSwatchApplyBorders: colorSwatchApplyBorders, colorSwatchBorderWidth: colorSwatchBorderWidth, progressBarSize: progressBarSize, progressBarEndCap: progressBarEndCap, avatarSize: avatarSize, avatarGroupAppearance: avatarGroupAppearance, avatarGroupLayout: avatarGroupLayout, statusTagAppearance: statusTagAppearance, statusTagSize: statusTagSize, progressBarContainerMinWidth: progressBarContainerMinWidth, displayTagsOrientation: displayTagsOrientation, statusTagsOrientation: statusTagsOrientation, progressBarsOrientation: progressBarsOrientation, colorSwatchesOrientation: colorSwatchesOrientation, badgesOrientation: badgesOrientation, textAlignment: textAlignment, labelTypography: labelTypography, appearance: appearance, backgroundColor: backgroundColor, contentColor: contentColor, actionsBackgroundColor: actionsBackgroundColor, actionsContentColor: actionsContentColor, onEntryAction: (event) => onEntryActionBtnClick({
28
+ event,
29
+ entryIndex: index,
30
+ }) }));
31
+ })
32
+ : undefined));
33
+ };
34
+ //# sourceMappingURL=GidsCrossTableRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsCrossTableRow.js","sourceRoot":"","sources":["../../../src/components/GidsCrossTableRow/GidsCrossTableRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AAEf,OAAO,EAEN,yBAAyB,EAEzB,eAAe,GACf,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,EAAE,8BAA8B,EAAE,GAAG,yBAAyB,CAAC;AAoBrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EACjC,IAAI,GAAG,EAAE,EACT,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,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,G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,EAC1D,sBAAsB,EAAE,sBAAsB,EAC9C,qBAAqB,EAAE,qBAAqB,EAC5C,uBAAuB,EAAE,uBAAuB,EAChD,wBAAwB,EAAE,wBAAwB,EAClD,iBAAiB,EAAE,iBAAiB,EACpC,aAAa,EAAE,aAAa,EAC5B,eAAe,EAAE,eAAe,EAChC,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,eAAe,EAChC,YAAY,EAAE,YAAY,EAC1B,sBAAsB,EAAE,sBAAsB,EAC9C,mBAAmB,EAAE,mBAAmB,EACxC,aAAa,EAAE,CAAC,KAAoC,EAAE,EAAE,CACvD,qBAAqB,CAAC;wBACrB,KAAK;wBACL,UAAU,EAAE,KAAK;qBACjB,CAAC,GAEF,CACF,CAAC;YACH,CAAC,CAAC;YACH,CAAC,CAAC,SAAS,CACR,CACL,CAAC;AACH,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+ import { type GidsDialogWebProps } from '@ganpatiinfo/gids-web-shared';
3
+ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
4
+ type GidsDialogBaseWebProps = GidsDialogWebProps<React.ReactNode | string, React.MouseEvent | Event, IconName, IconAppearance>;
5
+ export type GidsDialogCustomElement = Omit<HTMLDivElement, 'open'> & {
6
+ element: HTMLDialogElement;
7
+ open: (parent?: HTMLElement) => void;
8
+ close: () => void;
9
+ };
10
+ export type GidsDialogProps = GidsDialogBaseWebProps;
11
+ export declare const GidsDialog: React.ForwardRefExoticComponent<GidsDialogBaseWebProps & React.RefAttributes<GidsDialogCustomElement>>;
12
+ export {};
13
+ //# sourceMappingURL=GidsDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDialog.d.ts","sourceRoot":"","sources":["../../../src/components/GidsDialog/GidsDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAEN,KAAK,kBAAkB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAM/C,KAAK,sBAAsB,GAAG,kBAAkB,CAC/C,KAAK,CAAC,SAAS,GAAG,MAAM,EACxB,KAAK,CAAC,UAAU,GAAG,KAAK,EACxB,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,GAAG;IACpE,OAAO,EAAE,iBAAiB,CAAC;IAC3B,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IACrC,KAAK,EAAE,MAAM,IAAI,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,sBAAsB,CAAC;AAErD,eAAO,MAAM,UAAU,wGA6KtB,CAAC"}
@@ -0,0 +1,111 @@
1
+ import * as React from 'react';
2
+ import { useImperativeHandle, useRef, useState, useEffect } from 'react';
3
+ import { GidsDialogWebUtils, } from '@ganpatiinfo/gids-web-shared';
4
+ import { GidsDialogControl } from '../_GidsDialogControl/GidsDialogControl.js';
5
+ const { getGidsDialogClassNames } = GidsDialogWebUtils;
6
+ export const GidsDialog = React.forwardRef(({ variant = 'alert', maxWidth = 'sm', scrollMode = 'paper', draggable = false, headerTitle, closeVisible = true, children, footerActions = [], headerDividerVisible = false, footerDividerVisible = false, transition = 'none', cancellable, onCloseDialog, onDialogFooterAction, }, ref) => {
7
+ const wrapperRef = useRef(null);
8
+ const [isActive, setIsActive] = useState(false);
9
+ const nativeClose = HTMLDialogElement.prototype.close;
10
+ const getInnerDialog = () => {
11
+ if (!wrapperRef.current)
12
+ return null;
13
+ return wrapperRef.current.querySelector('dialog');
14
+ };
15
+ function executeClose(event) {
16
+ if (onCloseDialog) {
17
+ onCloseDialog({ originalEvent: event?.originalEvent });
18
+ }
19
+ const innerDialog = getInnerDialog();
20
+ if (innerDialog) {
21
+ nativeClose.call(innerDialog);
22
+ }
23
+ if (scrollMode === 'body') {
24
+ document.body.style.overflow = '';
25
+ }
26
+ setIsActive(false);
27
+ }
28
+ useEffect(() => {
29
+ const el = getInnerDialog();
30
+ if (!el)
31
+ return;
32
+ const handleNativeClose = () => {
33
+ if (scrollMode === 'body') {
34
+ document.body.style.overflow = '';
35
+ }
36
+ setIsActive(false);
37
+ };
38
+ el.addEventListener('close', handleNativeClose);
39
+ return () => el.removeEventListener('close', handleNativeClose);
40
+ }, [isActive, scrollMode]);
41
+ // 1. Expose orchestration contracts cleanly to your parent trigger references
42
+ useImperativeHandle(ref, () => {
43
+ const wrapperEl = wrapperRef.current;
44
+ const interfaceMock = {};
45
+ interfaceMock.open = (parent = document.body) => {
46
+ if (wrapperRef.current) {
47
+ if (!wrapperRef.current.isConnected) {
48
+ parent.appendChild(wrapperRef.current);
49
+ }
50
+ setIsActive(true);
51
+ const innerDialog = getInnerDialog();
52
+ if (innerDialog) {
53
+ // 2. BODY SCROLL PROTECTION: Inject layout protections inline immediately
54
+ if (scrollMode === 'body') {
55
+ innerDialog.style.setProperty('position', 'absolute', 'important');
56
+ innerDialog.style.setProperty('max-height', 'none', 'important');
57
+ innerDialog.style.setProperty('overflow', 'visible', 'important');
58
+ }
59
+ // 3. RESTORED: Backdrop click tracking rule natively bounded inside the script
60
+ if (cancellable) {
61
+ innerDialog.onclick = (event) => {
62
+ if (event.target === innerDialog) {
63
+ const rect = innerDialog.getBoundingClientRect();
64
+ const isOutside = event.clientX < rect.left ||
65
+ event.clientX > rect.right ||
66
+ event.clientY < rect.top ||
67
+ event.clientY > rect.bottom;
68
+ if (isOutside) {
69
+ executeClose({ originalEvent: event });
70
+ }
71
+ }
72
+ };
73
+ }
74
+ if (scrollMode === 'body') {
75
+ document.body.style.overflow = 'hidden';
76
+ }
77
+ void innerDialog.offsetHeight;
78
+ innerDialog.showModal();
79
+ }
80
+ }
81
+ };
82
+ interfaceMock.close = () => {
83
+ if (scrollMode === 'body') {
84
+ document.body.style.overflow = '';
85
+ }
86
+ const innerDialog = getInnerDialog();
87
+ if (innerDialog) {
88
+ nativeClose.call(innerDialog);
89
+ }
90
+ setIsActive(false);
91
+ };
92
+ Object.defineProperty(interfaceMock, 'element', {
93
+ get: () => getInnerDialog() || wrapperEl,
94
+ configurable: true,
95
+ });
96
+ return interfaceMock;
97
+ }, [transition, cancellable, scrollMode]);
98
+ // 4. Assemble look and feel design class lists cleanly
99
+ const dialogClasses = ['gids-dialog'];
100
+ const transitionClasses = getGidsDialogClassNames({ transition });
101
+ if (transitionClasses) {
102
+ transitionClasses.split(' ').forEach((className) => {
103
+ if (className.trim())
104
+ dialogClasses.push(className.trim());
105
+ });
106
+ }
107
+ return (React.createElement("div", { ref: wrapperRef, style: !isActive ? { display: 'none' } : { display: 'contents' } },
108
+ React.createElement(GidsDialogControl, { className: dialogClasses.join(' '), variant: variant, maxWidth: maxWidth, scrollMode: scrollMode, draggable: draggable, headerTitle: headerTitle, closeVisible: closeVisible, footerActions: footerActions, headerDividerVisible: headerDividerVisible, footerDividerVisible: footerDividerVisible, onCloseDialogControl: executeClose, onDialogControlFooterAction: onDialogFooterAction }, children)));
109
+ });
110
+ GidsDialog.displayName = 'GidsDialog';
111
+ //# sourceMappingURL=GidsDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GidsDialog.js","sourceRoot":"","sources":["../../../src/components/GidsDialog/GidsDialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACN,kBAAkB,GAElB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAG/E,MAAM,EAAE,uBAAuB,EAAE,GAAG,kBAAkB,CAAC;AAiBvD,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAIzC,CACC,EACC,OAAO,GA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AC;AAEF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC"}
@@ -2,11 +2,33 @@ import React, { MouseEvent, type ComponentPropsWithoutRef } from 'react';
2
2
  import { GidsMatrixTableBodyActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
3
3
  import { GidsMatrixTableWebProps, GidsTableCellTypographyStyle } from '@ganpatiinfo/gids-web-shared';
4
4
  import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
5
+ /**
6
+ * @deprecated
7
+ *
8
+ * Use `GidsCrossTable` and its props and functions instead.
9
+ */
5
10
  type GidsMatrixTableBaseWebProps = GidsMatrixTableWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance>;
11
+ /**
12
+ * @deprecated
13
+ *
14
+ * Use `GidsCrossTable` and its props and functions instead.
15
+ */
6
16
  type GidsMatrixTableActionButtonBaseEvent = GidsMatrixTableBodyActionButtonEvent<MouseEvent, GidsTableCellTypographyStyle, IconName, IconAppearance>;
17
+ /**
18
+ * @deprecated
19
+ *
20
+ * Use `GidsCrossTable` and its props and functions instead.
21
+ */
7
22
  export interface GidsMatrixTableProps extends GidsMatrixTableBaseWebProps, Omit<ComponentPropsWithoutRef<'div'>, 'children' | 'onClick' | 'onChange'> {
8
23
  onClickMatrixTableActionBtn?: (event: GidsMatrixTableActionButtonBaseEvent) => void;
9
24
  }
25
+ /**
26
+ * This is React implementation of `GidsMatrixTable` component.
27
+ *
28
+ * @deprecated
29
+ *
30
+ * Use `GidsCrossTable` and its props and functions instead.
31
+ */
10
32
  export declare const GidsMatrixTable: ({ topHeaderCells, tableBodyItems, width, isTopHeaderVisible, topHeaderAppearance, topHeaderLabelTypography, topHeaderTextAlignment, rowAppearance, rowLabelTypography, rowTextAlignment, tableBorders, tableBorderRadius, tableBodyMaxHeight, rowCellPrimaryActionButtons, rowCellSecondaryActionButtons, topHeaderPrimaryActionButtons, topHeaderSecondaryActionButtons, onClickMatrixTableActionBtn, matrixHeaderAppearance, matrixHeaderLabelTypography, matrixHeaderTextAlignment, matrixHeaderCellPrimaryActionButtons, matrixHeaderCellSecondaryActionButtons, className, }: GidsMatrixTableProps) => React.JSX.Element;
11
33
  export {};
12
34
  //# sourceMappingURL=GidsMatrixTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GidsMatrixTable.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMatrixTable/GidsMatrixTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,oCAAoC,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EACN,uBAAuB,EAEvB,4BAA4B,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAc/C,KAAK,2BAA2B,GAAG,uBAAuB,CACzD,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,KAAK,oCAAoC,GACxC,oCAAoC,CACnC,UAAU,EACV,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH,MAAM,WAAW,oBAChB,SACC,2BAA2B,EAC3B,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IAC3E,2BAA2B,CAAC,EAAE,CAC7B,KAAK,EAAE,oCAAoC,KACvC,IAAI,CAAC;CACV;AAED,eAAO,MAAM,eAAe,GAAI,mjBAyB7B,oBAAoB,sBAoFtB,CAAC"}
1
+ {"version":3,"file":"GidsMatrixTable.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMatrixTable/GidsMatrixTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,oCAAoC,EAAE,MAAM,+BAA+B,CAAC;AACrF,OAAO,EACN,uBAAuB,EAEvB,4BAA4B,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAc/C;;;;GAIG;AACH,KAAK,2BAA2B,GAAG,uBAAuB,CACzD,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF;;;;GAIG;AACH,KAAK,oCAAoC,GACxC,oCAAoC,CACnC,UAAU,EACV,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,oBAChB,SACC,2BAA2B,EAC3B,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,UAAU,CAAC;IAC3E,2BAA2B,CAAC,EAAE,CAC7B,KAAK,EAAE,oCAAoC,KACvC,IAAI,CAAC;CACV;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAAI,mjBAyB7B,oBAAoB,sBAoFtB,CAAC"}
@@ -3,6 +3,13 @@ import { GidsMatrixTableWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
3
  import { GidsBasicTableHeader, } from '../GidsBasicTableHeader/GidsBasicTableHeader';
4
4
  import { GidsMatrixTableBody } from '../GidsMatrixTableBody/GidsMatrixTableBody';
5
5
  const { getGidsMatrixTableClassNames, getCustomisedTopHeaderMatrixTableCells, getMatrixTableBodyBorder, getMatrixTableClasses, } = GidsMatrixTableWebUtils;
6
+ /**
7
+ * This is React implementation of `GidsMatrixTable` component.
8
+ *
9
+ * @deprecated
10
+ *
11
+ * Use `GidsCrossTable` and its props and functions instead.
12
+ */
6
13
  export const GidsMatrixTable = ({ topHeaderCells = [], tableBodyItems = [], width = 'full', isTopHeaderVisible = false, topHeaderAppearance = 'none', topHeaderLabelTypography = 'eyebrow-small', topHeaderTextAlignment = 'left', rowAppearance = 'none', rowLabelTypography = 'label-small', rowTextAlignment = 'left', tableBorders = 'none', tableBorderRadius = [], tableBodyMaxHeight = 200, rowCellPrimaryActionButtons = [], rowCellSecondaryActionButtons = [], topHeaderPrimaryActionButtons = [], topHeaderSecondaryActionButtons = [], onClickMatrixTableActionBtn, matrixHeaderAppearance = 'none', matrixHeaderLabelTypography = 'label-medium', matrixHeaderTextAlignment = 'left', matrixHeaderCellPrimaryActionButtons = [], matrixHeaderCellSecondaryActionButtons = [], className, }) => {
7
14
  function onTopHeaderActionBtnClick(event) {
8
15
  if (onClickMatrixTableActionBtn) {
@@ -1 +1 @@
1
- {"version":3,"file":"GidsMatrixTable.js","sourceRoot":"","sources":["../../../src/components/GidsMatrixTable/GidsMatrixTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAEzE,OAAO,EAEN,uBAAuB,GAEvB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACN,oBAAoB,GAEpB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AAEjF,MAAM,EACL,4BAA4B,EAC5B,sCAAsC,EACtC,wBAAwB,EACxB,qBAAqB,GACrB,GAAG,uBAAuB,CAAC;AAyB5B,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC/B,cAAc,GAAG,EAAE,EACnB,cAAc,GAAG,EAAE,EACnB,KAAK,GAAG,MAAM,EACd,kBAAkB,GAAG,KAAK,EAC1B,mBAAmB,GAAG,MAAM,EAC5B,wBAAwB,GAAG,eAAe,EAC1C,sBAAsB,GAAG,MAAM,EAC/B,aAAa,GAAG,MAAM,EACtB,kBAAkB,GAAG,aAAa,EAClC,gBAAgB,GAAG,MAAM,EACzB,YAAY,GAAG,MAAM,EACrB,iBAAiB,GAAG,EAAE,EACtB,kBAAkB,GAAG,GAAG,EACxB,2BAA2B,GAAG,EAAE,EAChC,6BAA6B,GAAG,EAAE,EAClC,6BAA6B,GAAG,EAAE,EAClC,+BAA+B,GAAG,EAAE,EACpC,2BAA2B,EAC3B,sBAAsB,GAAG,MAAM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AAU,EAAE,mBAAmB,EAC/B,eAAe,EAAE,wBAAwB,EACzC,aAAa,EAAE,sBAAsB,EACrC,SAAS,EAAC,8BAA8B,EACxC,WAAW,EAAE,sCAAsC,CAIjD;wBACD,cAAc;wBACd,YAAY;qBACZ,CAAC,EACF,KAAK,EAAE,KAAK,EACZ,wBAAwB,EAAE,6BAA6B,EACvD,0BAA0B,EAAE,+BAA+B,EAC3D,sBAAsB,EAAE,yBAAyB,GAChD,CACF,CAAC,CAAC,CAAC,SAAS;gBACZ,cAAc,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAC9C,oBAAC,mBAAmB,IACnB,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,wBAAwB,CAIpC,EAAE,YAAY,EAAE,CAAC,EACnB,aAAa,EAAE,aAAa,EAC5B,kBAAkB,EAAE,kBAAkB,EACtC,gBAAgB,EAAE,gBAAgB,EAClC,sBAAsB,EAAE,sBAAsB,EAC9C,2BAA2B,EAAE,2BAA2B,EACxD,yBAAyB,EAAE,yBAAyB,EACpD,2BAA2B,EAAE,2BAA2B,EACxD,6BAA6B,EAAE,6BAA6B,EAC5D,oCAAoC,EACnC,oCAAoC,EAErC,sCAAsC,EACrC,sCAAsC,EAEvC,8BAA8B,EAAE,2BAA2B,GAC1D,CACF,CAAC,CAAC,CAAC,SAAS,CACN,CACH,CACD,CACN,CAAC;AACH,CAAC,CAAC"}
@@ -2,11 +2,33 @@ import React, { MouseEvent, type ComponentPropsWithoutRef } from 'react';
2
2
  import { GidsMatrixTableBodyWebProps, GidsTableCellTypographyStyle } from '@ganpatiinfo/gids-web-shared';
3
3
  import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
4
4
  import { GidsMatrixTableBodyActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
5
+ /**
6
+ * @deprecated
7
+ *
8
+ * Use `GidsCrossTableBody` and its props and functions instead.
9
+ */
5
10
  type GidsMatrixTableBodyBaseWebProps = GidsMatrixTableBodyWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance>;
11
+ /**
12
+ * @deprecated
13
+ *
14
+ * Use `GidsCrossTableBody` and its props and functions instead.
15
+ */
6
16
  export type GidsMatrixTableBodyActionButtonBaseEvent = GidsMatrixTableBodyActionButtonEvent<MouseEvent, GidsTableCellTypographyStyle, IconName, IconAppearance>;
17
+ /**
18
+ * @deprecated
19
+ *
20
+ * Use `GidsCrossTableBody` and its props and functions instead.
21
+ */
7
22
  export interface GidsMatrixTableBodyProps extends GidsMatrixTableBodyBaseWebProps, Omit<ComponentPropsWithoutRef<'tbody'>, 'children'> {
8
23
  onClickMatrixBodyCellActionBtn?: (event: GidsMatrixTableBodyActionButtonBaseEvent) => void;
9
24
  }
25
+ /**
26
+ * This is React implementation of `GidsMatrixTableBody` component.
27
+ *
28
+ * @deprecated
29
+ *
30
+ * Use `GidsCrossTableBody` and its props and functions instead.
31
+ */
10
32
  export declare const GidsMatrixTableBody: ({ width, tableBodyItems, tableBorders, rowAppearance, rowLabelTypography, rowTextAlignment, matrixHeaderAppearance, matrixHeaderLabelTypography, matrixHeaderTextAlignment, rowCellPrimaryActionButtons, rowCellSecondaryActionButtons, matrixHeaderCellPrimaryActionButtons, matrixHeaderCellSecondaryActionButtons, onClickMatrixBodyCellActionBtn, className, }: GidsMatrixTableBodyProps) => React.JSX.Element;
11
33
  export {};
12
34
  //# sourceMappingURL=GidsMatrixTableBody.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GidsMatrixTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMatrixTableBody/GidsMatrixTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACN,2BAA2B,EAE3B,4BAA4B,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACN,oCAAoC,EAGpC,MAAM,+BAA+B,CAAC;AASvC,KAAK,+BAA+B,GAAG,2BAA2B,CACjE,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AACF,MAAM,MAAM,wCAAwC,GACnD,oCAAoC,CACnC,UAAU,EACV,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH,MAAM,WAAW,wBAChB,SACC,+BAA+B,EAC/B,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IACpD,8BAA8B,CAAC,EAAE,CAChC,KAAK,EAAE,wCAAwC,KAC3C,IAAI,CAAC;CACV;AAED,eAAO,MAAM,mBAAmB,GAAI,oWAgBjC,wBAAwB,sBAyG1B,CAAC"}
1
+ {"version":3,"file":"GidsMatrixTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMatrixTableBody/GidsMatrixTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EACN,2BAA2B,EAE3B,4BAA4B,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACN,oCAAoC,EAGpC,MAAM,+BAA+B,CAAC;AASvC;;;;GAIG;AACH,KAAK,+BAA+B,GAAG,2BAA2B,CACjE,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,wCAAwC,GACnD,oCAAoC,CACnC,UAAU,EACV,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,wBAChB,SACC,+BAA+B,EAC/B,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;IACpD,8BAA8B,CAAC,EAAE,CAChC,KAAK,EAAE,wCAAwC,KAC3C,IAAI,CAAC;CACV;AAED;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAAI,oWAgBjC,wBAAwB,sBAyG1B,CAAC"}
@@ -2,6 +2,13 @@ import React from 'react';
2
2
  import { GidsMatrixTableBodyWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
3
  import { GidsTableCell, } from '../GidsTableCell/GidsTableCell';
4
4
  const { getGidsMatrixTableBodyClassNames, getConstructedMatrixTableBodyItems } = GidsMatrixTableBodyWebUtils;
5
+ /**
6
+ * This is React implementation of `GidsMatrixTableBody` component.
7
+ *
8
+ * @deprecated
9
+ *
10
+ * Use `GidsCrossTableBody` and its props and functions instead.
11
+ */
5
12
  export const GidsMatrixTableBody = ({ width = 'full', tableBodyItems = [], tableBorders = 'none', rowAppearance = 'none', rowLabelTypography = 'label-medium', rowTextAlignment = 'center', matrixHeaderAppearance = 'none', matrixHeaderLabelTypography = 'label-medium', matrixHeaderTextAlignment = 'center', rowCellPrimaryActionButtons = [], rowCellSecondaryActionButtons = [], matrixHeaderCellPrimaryActionButtons = [], matrixHeaderCellSecondaryActionButtons = [], onClickMatrixBodyCellActionBtn, className, }) => {
6
13
  const constructedTableBodyItems = getConstructedMatrixTableBodyItems({
7
14
  rowAppearance,
@@ -1 +1 @@
1
- {"version":3,"file":"GidsMatrixTableBody.js","sourceRoot":"","sources":["../../../src/components/GidsMatrixTableBody/GidsMatrixTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,EAEN,2BAA2B,GAE3B,MAAM,8BAA8B,CAAC;AAUtC,OAAO,EACN,aAAa,GAEb,MAAM,gCAAgC,CAAC;AAExC,MAAM,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,GAC7E,2BAA2B,CAAC;AAwB7B,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EACnC,KAAK,GAAG,MAAM,EACd,cAAc,GAAG,E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E,QAAQ,IAAI,IAAI,EAC1C,wBAAwB,EAAE,oCAAoC,EAC9D,0BAA0B,EACzB,sCAAsC,EAEvC,oBAAoB,EAAE,CACrB,KAAyC,EACxC,EAAE,CACH,8BAA8B,CAAC;oBAC9B,KAAK;oBACL,QAAQ,EAAE,MAAM;oBAChB,WAAW,EAAE,SAAS;oBACtB,IAAI,EAAE,UAAU;iBAChB,CAAC,GAEF;YACD,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACjC,OAAO,CACN,oBAAC,aAAa,OACT,OAAO,EACX,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,OAAO,EAAE,QAAQ,IAAI,KAAK,EACxC,wBAAwB,EAAE,2BAA2B,EACrD,0BAA0B,EAAE,6BAA6B,EACzD,oBAAoB,EAAE,CACrB,KAAyC,EACxC,EAAE,CACH,8BAA8B,CAAC;wBAC9B,KAAK;wBACL,QAAQ,EAAE,MAAM;wBAChB,WAAW,EAAE,MAAM;wBACnB,IAAI,EAAE,OAAO;qBACb,CAAC,GAEF,CACF,CAAC;YACH,CAAC,CAAC,CACE,CACL,CAAC;IACH,CAAC,CAAC,CACK,CACR,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"GidsMatrixTableBody.js","sourceRoot":"","sources":["../../../src/components/GidsMatrixTableBody/GidsMatrixTableBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,EAEN,2BAA2B,GAE3B,MAAM,8BAA8B,CAAC;AAUtC,OAAO,EACN,aAAa,GAEb,MAAM,gCAAgC,CAAC;AAExC,MAAM,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,GAC7E,2BAA2B,CAAC;AAwC7B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,EACnC,KAAK,GAAG,MAAM,EACd,cAAc,GAAG,EAAE,EACnB,YAAY,GAAG,MAAM,EACrB,aAAa,GAAG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AAoC,EAC9D,0BAA0B,EACzB,sCAAsC,EAEvC,oBAAoB,EAAE,CACrB,KAAyC,EACxC,EAAE,CACH,8BAA8B,CAAC;oBAC9B,KAAK;oBACL,QAAQ,EAAE,MAAM;oBAChB,WAAW,EAAE,SAAS;oBACtB,IAAI,EAAE,UAAU;iBAChB,CAAC,GAEF;YACD,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACjC,OAAO,CACN,oBAAC,aAAa,OACT,OAAO,EACX,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,OAAO,EAAE,QAAQ,IAAI,KAAK,EACxC,wBAAwB,EAAE,2BAA2B,EACrD,0BAA0B,EAAE,6BAA6B,EACzD,oBAAoB,EAAE,CACrB,KAAyC,EACxC,EAAE,CACH,8BAA8B,CAAC;wBAC9B,KAAK;wBACL,QAAQ,EAAE,MAAM;wBAChB,WAAW,EAAE,MAAM;wBACnB,IAAI,EAAE,OAAO;qBACb,CAAC,GAEF,CACF,CAAC;YACH,CAAC,CAAC,CACE,CACL,CAAC;IACH,CAAC,CAAC,CACK,CACR,CAAC;AACH,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GidsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,EAAE,EACP,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EACN,gBAAgB,EAEhB,MAAM,8BAA8B,CAAC;AAKtC,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,GAC1E,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/D,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CA4BtC,CAAC"}
1
+ {"version":3,"file":"GidsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.tsx"],"names":[],"mappings":"AAAA,OAAc,EACb,KAAK,EAAE,EACP,KAAK,wBAAwB,EAC7B,KAAK,SAAS,EACd,MAAM,OAAO,CAAC;AACf,OAAO,EACN,gBAAgB,EAEhB,MAAM,8BAA8B,CAAC;AAMtC,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAAC,GAC1E,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAE/D,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAmCtC,CAAC"}
@@ -1,13 +1,16 @@
1
1
  import React from 'react';
2
2
  import { GidsMenuWebUtils, } from '@ganpatiinfo/gids-web-shared';
3
3
  import { GidsHeading } from '../GidsHeading/GidsHeading.js';
4
+ import { GidsDivider } from '../GidsDivider/GidsDivider.js';
4
5
  const { getGidsMenuClassNames } = GidsMenuWebUtils;
5
- export const GidsMenu = ({ children, heading, supportingText, supportingTextTypography, className, ...restProps }) => {
6
- return (React.createElement("div", { className: getGidsMenuClassNames(className) },
6
+ export const GidsMenu = ({ children, heading, supportingText, level, supportingTextTypography, isHeaderDividerVisible = false, className, ...restProps }) => {
7
+ return (React.createElement("div", { className: getGidsMenuClassNames(className), ...restProps },
7
8
  (heading !== undefined && heading !== null && heading !== '') ||
8
9
  (supportingText !== undefined &&
9
10
  supportingText !== null &&
10
- supportingText !== '') ? (React.createElement(GidsHeading, { heading: heading, supportingText: supportingText, supportingTextTypography: supportingTextTypography ?? 'eyebrow-medium', ...restProps })) : null,
11
+ supportingText !== '') ? (React.createElement(GidsHeading, { heading: heading, supportingText: supportingText, supportingTextTypography: supportingTextTypography ?? 'eyebrow-medium', level: level })) : null,
12
+ isHeaderDividerVisible ? (React.createElement("div", { className: "gids-menu__header-divider" },
13
+ React.createElement(GidsDivider, { orientation: "horizontal" }))) : undefined,
11
14
  children !== undefined && children !== null ? (React.createElement("div", { className: "gids-menu__children" }, children)) : null));
12
15
  };
13
16
  //# sourceMappingURL=GidsMenu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GidsMenu.js","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,MAAM,OAAO,CAAC;AACf,OAAO,EAEN,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAE5D,MAAM,EAAE,qBAAqB,EAAE,GAAG,gBAAgB,CAAC;AAKnD,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,EAC3C,QAAQ,EACR,OAAO,EACP,cAAc,EACd,wBAAwB,EACxB,SAAS,EACT,GAAG,SAAS,EACG,EAAE,EAAE;IACnB,OAAO,CACN,6BAAK,SAAS,EAAE,qBAAqB,CAAC,SAAS,CAAC;QAC9C,CAAC,OAAO,KAAK,SAAS,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,EAAE,CAAC;YAC9D,CAAC,cAAc,KAAK,SAAS;gBAC5B,cAAc,KAAK,IAAI;gBACvB,cAAc,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CACzB,oBAAC,WAAW,IACX,OAAO,EAAE,OAAO,EAChB,cAAc,EAAE,cAAc,EAC9B,wBAAwB,EACvB,wBAAwB,IAAI,gBAAgB,KAEzC,SAAS,GACZ,CACF,CAAC,CAAC,CAAC,IAAI;QACP,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,CAC9C,6BAAK,SAAS,EAAC,qBAAqB,IAAE,QAAQ,CAAO,CACrD,CAAC,CAAC,CAAC,IAAI,CACH,CACN,CAAC;AACH,CAAC,CAAC"}
1
+ {"version":3,"file":"GidsMenu.js","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAIN,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seEvent, GidsTableEntryT
11
11
  export interface GidsTableProps extends GidsTableBaseWebProps {
12
12
  onTableAction?: (event: GidsTableActionBaseEvent) => void;
13
13
  }
14
- export declare const GidsTable: ({ toolbar, headerItems, bodyContent, isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight, toolbarChildren, onTableAction, horizontalScroll, children, className, ...restProps }: GidsTableProps) => React.JSX.Element;
14
+ export declare const GidsTable: ({ toolbar, headerItems, bodyContent, isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight, toolbarChildren, onTableAction, horizontalScroll, footerItems, footerSettings, isFooterVisible, isFooterControlVisible, footerControlSettings, footerControl, children, className, ...restProps }: GidsTableProps) => React.JSX.Element;
15
15
  export {};
16
16
  //# sourceMappingURL=GidsTable.d.ts.map