@ganpatiinfo/gids-web-dom-reference 13.0.0 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist/components/GidsCrossTable/GidsCrossTable.d.ts +18 -0
- package/dist/components/GidsCrossTable/GidsCrossTable.d.ts.map +1 -0
- package/dist/components/GidsCrossTable/GidsCrossTable.js +141 -0
- package/dist/components/GidsCrossTable/GidsCrossTable.js.map +1 -0
- package/dist/components/GidsCrossTableBody/GidsCrossTableBody.d.ts +13 -0
- package/dist/components/GidsCrossTableBody/GidsCrossTableBody.d.ts.map +1 -0
- package/dist/components/GidsCrossTableBody/GidsCrossTableBody.js +79 -0
- package/dist/components/GidsCrossTableBody/GidsCrossTableBody.js.map +1 -0
- package/dist/components/GidsCrossTableRow/GidsCrossTableRow.d.ts +13 -0
- package/dist/components/GidsCrossTableRow/GidsCrossTableRow.d.ts.map +1 -0
- package/dist/components/GidsCrossTableRow/GidsCrossTableRow.js +128 -0
- package/dist/components/GidsCrossTableRow/GidsCrossTableRow.js.map +1 -0
- package/dist/components/GidsDialog/GidsDialog.d.ts +13 -0
- package/dist/components/GidsDialog/GidsDialog.d.ts.map +1 -0
- package/dist/components/GidsDialog/GidsDialog.js +102 -0
- package/dist/components/GidsDialog/GidsDialog.js.map +1 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts +20 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.d.ts.map +1 -1
- package/dist/components/GidsMatrixTable/GidsMatrixTable.js +5 -0
- package/dist/components/GidsMatrixTable/GidsMatrixTable.js.map +1 -1
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts +20 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.d.ts.map +1 -1
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js +5 -0
- package/dist/components/GidsMatrixTableBody/GidsMatrixTableBody.js.map +1 -1
- package/dist/components/GidsMenu/GidsMenu.d.ts +1 -1
- package/dist/components/GidsMenu/GidsMenu.d.ts.map +1 -1
- package/dist/components/GidsMenu/GidsMenu.js +10 -1
- package/dist/components/GidsMenu/GidsMenu.js.map +1 -1
- package/dist/components/GidsSkeleton/GidsSkeleton.d.ts +8 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.d.ts.map +1 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.js +16 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.js.map +1 -0
- package/dist/components/GidsTable/GidsTable.d.ts +1 -1
- package/dist/components/GidsTable/GidsTable.d.ts.map +1 -1
- package/dist/components/GidsTable/GidsTable.js +27 -2
- package/dist/components/GidsTable/GidsTable.js.map +1 -1
- package/dist/components/GidsTableFooter/GidsTableFooter.d.ts +2 -2
- package/dist/components/GidsTableFooter/GidsTableFooter.d.ts.map +1 -1
- package/dist/components/GidsTableFooter/GidsTableFooter.js +2 -24
- package/dist/components/GidsTableFooter/GidsTableFooter.js.map +1 -1
- package/dist/components/GidsTableFooterControl/GidsTableFooterControl.d.ts +1 -1
- package/dist/components/GidsTableFooterControl/GidsTableFooterControl.d.ts.map +1 -1
- package/dist/components/GidsTableFooterControl/GidsTableFooterControl.js +5 -3
- package/dist/components/GidsTableFooterControl/GidsTableFooterControl.js.map +1 -1
- package/dist/components/GidsTableHeader/GidsTableHeader.d.ts +1 -1
- package/dist/components/GidsTableHeader/GidsTableHeader.d.ts.map +1 -1
- package/dist/components/GidsTableHeader/GidsTableHeader.js +1 -3
- package/dist/components/GidsTableHeader/GidsTableHeader.js.map +1 -1
- package/dist/components/GidsTableRow/GidsTableRow.d.ts +1 -1
- package/dist/components/GidsTableRow/GidsTableRow.d.ts.map +1 -1
- package/dist/components/GidsTableRow/GidsTableRow.js +3 -3
- package/dist/components/GidsTableRow/GidsTableRow.js.map +1 -1
- package/dist/components/GidsTransferList/GidsTransferList.d.ts +8 -0
- package/dist/components/GidsTransferList/GidsTransferList.d.ts.map +1 -0
- package/dist/components/GidsTransferList/GidsTransferList.js +25 -0
- package/dist/components/GidsTransferList/GidsTransferList.js.map +1 -0
- package/dist/components/_GidsDialogControl/GidsDialogControl.d.ts +10 -0
- package/dist/components/_GidsDialogControl/GidsDialogControl.d.ts.map +1 -0
- package/dist/components/_GidsDialogControl/GidsDialogControl.js +133 -0
- package/dist/components/_GidsDialogControl/GidsDialogControl.js.map +1 -0
- package/dist/index.d.ts +115 -108
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +115 -108
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/GidsCrossTable/GidsCrossTable.ts +259 -0
- package/src/components/GidsCrossTableBody/GidsCrossTableBody.ts +171 -0
- package/src/components/GidsCrossTableRow/GidsCrossTableRow.ts +230 -0
- package/src/components/GidsDialog/GidsDialog.ts +161 -0
- package/src/components/GidsMatrixTable/GidsMatrixTable.ts +20 -0
- package/src/components/GidsMatrixTableBody/GidsMatrixTableBody.ts +21 -0
- package/src/components/GidsMenu/GidsMenu.ts +15 -0
- package/src/components/GidsSkeleton/GidsSkeleton.ts +40 -0
- package/src/components/GidsTable/GidsTable.ts +41 -4
- package/src/components/GidsTableFooter/GidsTableFooter.ts +1 -39
- package/src/components/GidsTableFooterControl/GidsTableFooterControl.ts +9 -2
- package/src/components/GidsTableHeader/GidsTableHeader.ts +0 -4
- package/src/components/GidsTableRow/GidsTableRow.ts +2 -4
- package/src/components/GidsTransferList/GidsTransferList.ts +58 -0
- package/src/components/_GidsDialogControl/GidsDialogControl.ts +198 -0
- package/src/index.ts +115 -108
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
import { GidsMatrixTableBodyActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
|
|
2
2
|
import { GidsMatrixTableWebProps, GidsTableCellTypographyStyle } from '@ganpatiinfo/gids-web-shared';
|
|
3
3
|
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*
|
|
7
|
+
* Use `GidsCrossTable` and its props and functions instead.
|
|
8
|
+
*/
|
|
4
9
|
type GidsMatrixTableBaseWebProps = GidsMatrixTableWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*
|
|
13
|
+
* Use `GidsCrossTable` and its props and functions instead.
|
|
14
|
+
*/
|
|
5
15
|
type GidsMatrixTableActionButtonBaseEvent = GidsMatrixTableBodyActionButtonEvent<Event, GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
*
|
|
19
|
+
* Use `GidsCrossTable` and its props and functions instead.
|
|
20
|
+
*/
|
|
6
21
|
export interface GidsMatrixTableDomProps extends GidsMatrixTableBaseWebProps {
|
|
7
22
|
extraClasses?: string;
|
|
8
23
|
onClickMatrixTableActionBtn?: (event: GidsMatrixTableActionButtonBaseEvent) => void;
|
|
9
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*
|
|
28
|
+
* Use `GidsCrossTable` and its props and functions instead.
|
|
29
|
+
*/
|
|
10
30
|
export declare const GidsMatrixTableDom: ({ topHeaderCells, tableBodyItems, width, isTopHeaderVisible, topHeaderAppearance, topHeaderLabelTypography, topHeaderTextAlignment, rowAppearance, rowLabelTypography, rowTextAlignment, tableBorders, tableBorderRadius, tableBodyMaxHeight, rowCellPrimaryActionButtons, rowCellSecondaryActionButtons, topHeaderPrimaryActionButtons, topHeaderSecondaryActionButtons, onClickMatrixTableActionBtn, matrixHeaderAppearance, matrixHeaderLabelTypography, matrixHeaderTextAlignment, matrixHeaderCellPrimaryActionButtons, matrixHeaderCellSecondaryActionButtons, extraClasses, }: GidsMatrixTableDomProps) => HTMLElement;
|
|
11
31
|
export {};
|
|
12
32
|
//# sourceMappingURL=GidsMatrixTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMatrixTable.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMatrixTable/GidsMatrixTable.ts"],"names":[],"mappings":"AAAA,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,KAAK,EACL,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B,CAAC,EAAE,CAC7B,KAAK,EAAE,oCAAoC,KACvC,IAAI,CAAC;CACV;AAED,eAAO,MAAM,kBAAkB,GAAI,sjBAyBhC,uBAAuB,KAAG,WAiG5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"GidsMatrixTable.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMatrixTable/GidsMatrixTable.ts"],"names":[],"mappings":"AAAA,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,KAAK,EACL,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B,CAAC,EAAE,CAC7B,KAAK,EAAE,oCAAoC,KACvC,IAAI,CAAC;CACV;AAED;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,GAAI,sjBAyBhC,uBAAuB,KAAG,WAiG5B,CAAC"}
|
|
@@ -2,6 +2,11 @@ import { GidsMatrixTableWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
|
2
2
|
import { GidsBasicTableHeaderDom, } from '../GidsBasicTableHeader/GidsBasicTableHeader';
|
|
3
3
|
import { GidsMatrixTableBodyDom } from '../GidsMatrixTableBody/GidsMatrixTableBody';
|
|
4
4
|
const { getGidsMatrixTableClassNames, getCustomisedTopHeaderMatrixTableCells, getMatrixTableBodyBorder, getMatrixTableClasses, } = GidsMatrixTableWebUtils;
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*
|
|
8
|
+
* Use `GidsCrossTable` and its props and functions instead.
|
|
9
|
+
*/
|
|
5
10
|
export const GidsMatrixTableDom = ({ 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 = [], extraClasses, }) => {
|
|
6
11
|
const matrixTableDiv = document.createElement('div');
|
|
7
12
|
matrixTableDiv.className = getGidsMatrixTableClassNames({ width, tableBorders, tableBorderRadius }, extraClasses);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMatrixTable.js","sourceRoot":"","sources":["../../../src/components/GidsMatrixTable/GidsMatrixTable.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,uBAAuB,GAEvB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAEN,uBAAuB,GACvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,MAAM,EACL,4BAA4B,EAC5B,sCAAsC,EACtC,wBAAwB,EACxB,qBAAqB,GACrB,GAAG,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsMatrixTable.js","sourceRoot":"","sources":["../../../src/components/GidsMatrixTable/GidsMatrixTable.ts"],"names":[],"mappings":"AACA,OAAO,EAEN,uBAAuB,GAEvB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAEN,uBAAuB,GACvB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAEpF,MAAM,EACL,4BAA4B,EAC5B,sCAAsC,EACtC,wBAAwB,EACxB,qBAAqB,GACrB,GAAG,uBAAuB,CAAC;AAsC5B;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,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,E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AAM,CACjB,uBAAuB,CAAC;YACvB,UAAU,EAAE,mBAAmB;YAC/B,eAAe,EAAE,wBAAwB;YACzC,aAAa,EAAE,sBAAsB;YACrC,YAAY,EAAE,8BAA8B;YAC5C,WAAW,EAAE,sCAAsC,CAIjD;gBACD,cAAc;gBACd,YAAY;aACZ,CAAC;YACF,KAAK;YACL,wBAAwB,EAAE,6BAA6B;YACvD,0BAA0B,EAAE,+BAA+B;YAC3D,sBAAsB,EAAE,yBAAyB;SACjD,CAAC,CACF,CAAC;IACH,CAAC;IAED,IAAI,cAAc,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACjD,WAAW,CAAC,MAAM,CACjB,sBAAsB,CAAC;YACtB,KAAK;YACL,cAAc;YACd,YAAY,EAAE,wBAAwB,CAIpC,EAAE,YAAY,EAAE,CAAC;YACnB,aAAa;YACb,kBAAkB;YAClB,gBAAgB;YAChB,sBAAsB;YACtB,2BAA2B;YAC3B,yBAAyB;YACzB,2BAA2B;YAC3B,6BAA6B;YAC7B,oCAAoC;YACpC,sCAAsC;YACtC,8BAA8B,EAAE,2BAA2B;SAC3D,CAAC,CACF,CAAC;IACH,CAAC;IAED,+EAA+E;IAC/E,0BAA0B,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IACpD,cAAc,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAAC;IAEvD,OAAO,cAAc,CAAC;AACvB,CAAC,CAAC"}
|
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
import { GidsMatrixTableBodyWebProps, GidsTableCellTypographyStyle } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
3
3
|
import { GidsMatrixTableBodyActionButtonEvent } from '@ganpatiinfo/gids-core-shared';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*
|
|
7
|
+
* Use `GidsCrossTableBody` and its props and functions instead.
|
|
8
|
+
*/
|
|
4
9
|
type GidsMatrixTableBodyBaseWebProps = GidsMatrixTableBodyWebProps<GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated
|
|
12
|
+
*
|
|
13
|
+
* Use `GidsCrossTableBody` and its props and functions instead.
|
|
14
|
+
*/
|
|
5
15
|
export type GidsMatrixTableBodyActionButtonBaseEvent = GidsMatrixTableBodyActionButtonEvent<Event, GidsTableCellTypographyStyle, IconName, IconAppearance>;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
*
|
|
19
|
+
* Use `GidsCrossTableBody` and its props and functions instead.
|
|
20
|
+
*/
|
|
6
21
|
export interface GidsMatrixTableBodyDomProps extends GidsMatrixTableBodyBaseWebProps {
|
|
7
22
|
extraClasses?: string;
|
|
8
23
|
onClickMatrixBodyCellActionBtn?: (event: GidsMatrixTableBodyActionButtonBaseEvent) => void;
|
|
9
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*
|
|
28
|
+
* Use `GidsCrossTableBody` and its props and functions instead.
|
|
29
|
+
*/
|
|
10
30
|
export declare const GidsMatrixTableBodyDom: ({ width, tableBodyItems, tableBorders, rowAppearance, rowLabelTypography, rowTextAlignment, matrixHeaderAppearance, matrixHeaderLabelTypography, matrixHeaderTextAlignment, rowCellPrimaryActionButtons, rowCellSecondaryActionButtons, matrixHeaderCellPrimaryActionButtons, matrixHeaderCellSecondaryActionButtons, onClickMatrixBodyCellActionBtn, extraClasses, }: GidsMatrixTableBodyDomProps) => HTMLElement;
|
|
11
31
|
export {};
|
|
12
32
|
//# sourceMappingURL=GidsMatrixTableBody.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMatrixTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMatrixTableBody/GidsMatrixTableBody.ts"],"names":[],"mappings":"AAAA,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;
|
|
1
|
+
{"version":3,"file":"GidsMatrixTableBody.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMatrixTableBody/GidsMatrixTableBody.ts"],"names":[],"mappings":"AAAA,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,KAAK,EACL,4BAA4B,EAC5B,QAAQ,EACR,cAAc,CACd,CAAC;AAEH;;;;GAIG;AACH,MAAM,WAAW,2BAA4B,SAAQ,+BAA+B;IACnF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B,CAAC,EAAE,CAChC,KAAK,EAAE,wCAAwC,KAC3C,IAAI,CAAC;CACV;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,uWAgBpC,2BAA2B,KAAG,WAyGhC,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { GidsMatrixTableBodyWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { GidsTableCellDom, } from '../GidsTableCell/GidsTableCell';
|
|
3
3
|
const { getGidsMatrixTableBodyClassNames, getConstructedMatrixTableBodyItems } = GidsMatrixTableBodyWebUtils;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*
|
|
7
|
+
* Use `GidsCrossTableBody` and its props and functions instead.
|
|
8
|
+
*/
|
|
4
9
|
export const GidsMatrixTableBodyDom = ({ width = 'full', tableBodyItems = [], tableBorders = 'none', rowAppearance = 'none', rowLabelTypography = 'label-medium', rowTextAlignment = 'center', matrixHeaderAppearance = 'none', matrixHeaderLabelTypography = 'label-medium', matrixHeaderTextAlignment = 'center', rowCellPrimaryActionButtons = [], rowCellSecondaryActionButtons = [], matrixHeaderCellPrimaryActionButtons = [], matrixHeaderCellSecondaryActionButtons = [], onClickMatrixBodyCellActionBtn, extraClasses, }) => {
|
|
5
10
|
const matrixTableBody = document.createElement('tbody');
|
|
6
11
|
matrixTableBody.className = getGidsMatrixTableBodyClassNames({ width }, extraClasses);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMatrixTableBody.js","sourceRoot":"","sources":["../../../src/components/GidsMatrixTableBody/GidsMatrixTableBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,2BAA2B,GAE3B,MAAM,8BAA8B,CAAC;AAUtC,OAAO,EAEN,gBAAgB,GAChB,MAAM,gCAAgC,CAAC;AAExC,MAAM,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,GAC7E,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsMatrixTableBody.js","sourceRoot":"","sources":["../../../src/components/GidsMatrixTableBody/GidsMatrixTableBody.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,2BAA2B,GAE3B,MAAM,8BAA8B,CAAC;AAUtC,OAAO,EAEN,gBAAgB,GAChB,MAAM,gCAAgC,CAAC;AAExC,MAAM,EAAE,gCAAgC,EAAE,kCAAkC,EAAE,GAC7E,2BAA2B,CAAC;AAsC7B;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,EACtC,KAAK,GAAG,MAAM,EACd,cAAc,GAAG,EAAE,EACnB,YAAY,GAAG,MAAM,EACrB,aAAa,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C/D,MAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;YAEhD,UAAU,CAAC,MAAM,CAChB,gBAAgB,CAAC;gBAChB,GAAG,UAAU;gBACb,KAAK;gBACL,YAAY,EAAE,UAAU,EAAE,QAAQ,IAAI,IAAI;gBAC1C,wBAAwB,EAAE,oCAAoC;gBAC9D,0BAA0B,EAAE,sCAAsC;gBAClE,oBAAoB,EAAE,CAAC,KAAyC,EAAE,EAAE,CACnE,8BAA8B,CAAC;oBAC9B,KAAK;oBACL,QAAQ,EAAE,MAAM;oBAChB,WAAW,EAAE,SAAS;oBACtB,IAAI,EAAE,UAAU;iBAChB,CAAC;aACH,CAAC,CACF,CAAC;YAEF,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACpC,UAAU,CAAC,MAAM,CAChB,gBAAgB,CAAC;oBAChB,GAAG,OAAO;oBACV,KAAK;oBACL,YAAY,EAAE,OAAO,EAAE,QAAQ,IAAI,KAAK;oBACxC,wBAAwB,EAAE,2BAA2B;oBACrD,0BAA0B,EAAE,6BAA6B;oBACzD,oBAAoB,EAAE,CAAC,KAAyC,EAAE,EAAE,CACnE,8BAA8B,CAAC;wBAC9B,KAAK;wBACL,QAAQ,EAAE,MAAM;wBAChB,WAAW,EAAE,MAAM;wBACnB,IAAI,EAAE,OAAO;qBACb,CAAC;iBACH,CAAC,CACF,CAAC;YACH,CAAC,CAAC,CAAC;YAEH,eAAe,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,eAAe,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -3,5 +3,5 @@ import { DomChildren, DomNodeOrString } from '../../utils/domUtils.js';
|
|
|
3
3
|
export interface GidsMenuDomProps extends GidsMenuWebProps<DomChildren, DomNodeOrString> {
|
|
4
4
|
extraClasses?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare const GidsMenuDom: ({ children, extraClasses, heading, supportingText, supportingTextTypography, ...restProps }: GidsMenuDomProps) => HTMLDivElement;
|
|
6
|
+
export declare const GidsMenuDom: ({ children, extraClasses, heading, supportingText, supportingTextTypography, isHeaderDividerVisible, ...restProps }: GidsMenuDomProps) => HTMLDivElement;
|
|
7
7
|
//# sourceMappingURL=GidsMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAEhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,WAAW,EACX,eAAe,EACf,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAEhB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,WAAW,EACX,eAAe,EACf,MAAM,yBAAyB,CAAC;AAMjC,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB,CACzD,WAAW,EACX,eAAe,CACf;IACA,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,GAAI,qHAQzB,gBAAgB,KAAG,cAyCrB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { GidsMenuWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { appendAsChildren, } from '../../utils/domUtils.js';
|
|
3
3
|
import { GidsHeadingDom } from '../GidsHeading/GidsHeading.js';
|
|
4
|
+
import { GidsDividerDom } from '../GidsDivider/GidsDivider.js';
|
|
4
5
|
const { getGidsMenuClassNames } = GidsMenuWebUtils;
|
|
5
|
-
export const GidsMenuDom = ({ children, extraClasses, heading, supportingText, supportingTextTypography, ...restProps }) => {
|
|
6
|
+
export const GidsMenuDom = ({ children, extraClasses, heading, supportingText, supportingTextTypography, isHeaderDividerVisible = false, ...restProps }) => {
|
|
6
7
|
const menu = document.createElement('div');
|
|
7
8
|
menu.className = getGidsMenuClassNames(extraClasses);
|
|
8
9
|
if ((heading !== undefined && heading !== null && heading !== '') ||
|
|
@@ -16,6 +17,14 @@ export const GidsMenuDom = ({ children, extraClasses, heading, supportingText, s
|
|
|
16
17
|
...restProps,
|
|
17
18
|
}));
|
|
18
19
|
}
|
|
20
|
+
if (isHeaderDividerVisible) {
|
|
21
|
+
const dividerContainer = document.createElement('div');
|
|
22
|
+
dividerContainer.className = 'gids-menu__header-divider';
|
|
23
|
+
dividerContainer.append(GidsDividerDom({
|
|
24
|
+
orientation: 'horizontal',
|
|
25
|
+
}));
|
|
26
|
+
menu.append(dividerContainer);
|
|
27
|
+
}
|
|
19
28
|
if (children !== undefined && children !== null) {
|
|
20
29
|
const childrenContainer = document.createElement('div');
|
|
21
30
|
childrenContainer.className = 'gids-menu__children';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsMenu.js","sourceRoot":"","sources":["../../../src/components/GidsMenu/GidsMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,gBAAgB,GAGhB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAE/D,MAAM,EAAE,qBAAqB,EAAE,GAAG,gBAAgB,CAAC;AASnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC3B,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,cAAc,EACd,wBAAwB,EACxB,GAAG,SAAS,EACM,EAAkB,EAAE;IACtC,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC3C,IAAI,CAAC,SAAS,GAAG,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAErD,IACC,CAAC,OAAO,KAAK,SAAS,I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Props extends GidsSkeletonBaseWebProps {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsSkeletonDom: ({ variant, animation, width, height, extraClasses, }: GidsSkeletonDomProps) => HTMLElement;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=GidsSkeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsSkeleton.d.ts","sourceRoot":"","sources":["../../../src/components/GidsSkeleton/GidsSkeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,oBAAoB,EAEzB,MAAM,8BAA8B,CAAC;AAItC,KAAK,wBAAwB,GAAG,oBAAoB,CAAC;AAIrD,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,eAAe,GAAI,sDAM7B,oBAAoB,KAAG,WAkBzB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GidsSkeletonWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsSkeletonClassNames } = GidsSkeletonWebUtils;
|
|
3
|
+
export const GidsSkeletonDom = ({ variant = 'text', animation = 'none', width, height, extraClasses, }) => {
|
|
4
|
+
const skeleton = document.createElement('gids-skeleton');
|
|
5
|
+
skeleton.variant = variant;
|
|
6
|
+
skeleton.animation = animation;
|
|
7
|
+
if (width) {
|
|
8
|
+
skeleton.width = width;
|
|
9
|
+
}
|
|
10
|
+
if (height) {
|
|
11
|
+
skeleton.height = height;
|
|
12
|
+
}
|
|
13
|
+
skeleton.className = getGidsSkeletonClassNames(extraClasses);
|
|
14
|
+
return skeleton;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=GidsSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsSkeleton.js","sourceRoot":"","sources":["../../../src/components/GidsSkeleton/GidsSkeleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,oBAAoB,GACpB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,EAAE,yBAAyB,EAAE,GAAG,oBAAoB,CAAC;AAU3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC/B,OAAO,GAAG,MAAM,EAChB,SAAS,GAAG,MAAM,EAClB,KAAK,EACL,MAAM,EACN,YAAY,GACU,EAAe,EAAE;IACvC,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CACtC,eAAe,CACQ,CAAC;IAEzB,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,QAAQ,CAAC,SAAS,GAAG,SAAS,CAAC;IAE/B,IAAI,KAAK,EAAE,CAAC;QACX,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;IACxB,CAAC;IACD,IAAI,MAAM,EAAE,CAAC;QACZ,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;IAC1B,CAAC;IAED,QAAQ,CAAC,SAAS,GAAG,yBAAyB,CAAC,YAAY,CAAC,CAAC;IAE7D,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -13,6 +13,6 @@ export interface GidsTableDomProps extends GidsTableBaseWebProps {
|
|
|
13
13
|
extraClasses?: string;
|
|
14
14
|
onTableAction?: (event: GidsTableActionBaseEvent) => void;
|
|
15
15
|
}
|
|
16
|
-
export declare const GidsTableDom: ({ toolbar, toolbarChildren, children, headerItems, bodyContent, isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight, horizontalScroll, onTableAction, extraClasses, }: GidsTableDomProps) => HTMLDivElement;
|
|
16
|
+
export declare const GidsTableDom: ({ toolbar, toolbarChildren, children, headerItems, bodyContent, isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight, horizontalScroll, onTableAction, footerItems, footerSettings, isFooterVisible, isFooterControlVisible, footerControlSettings, footerControl, extraClasses, }: GidsTableDomProps) => HTMLDivElement;
|
|
17
17
|
export {};
|
|
18
18
|
//# sourceMappingURL=GidsTable.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAmB9C,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,qWAuB1B,iBAAiB,KAAG,cAyItB,CAAC"}
|
|
@@ -3,8 +3,10 @@ import { appendAsChildren } from '../../utils/domUtils';
|
|
|
3
3
|
import { GidsTableToolbarDom, } from '../GidsTableToolbar/GidsTableToolbar';
|
|
4
4
|
import { GidsTableHeaderDom, } from '../GidsTableHeader/GidsTableHeader';
|
|
5
5
|
import { GidsTableBodyDom, } from '../GidsTableBody/GidsTableBody';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
import { GidsTableFooterDom } from '../GidsTableFooter/GidsTableFooter';
|
|
7
|
+
import { GidsTableFooterControlDom } from '../GidsTableFooterControl/GidsTableFooterControl';
|
|
8
|
+
const { getGidsTableClassNames, getCustomisedTableHeaderEntries, getCustomisedTableFooterEntries, getTableBodyBorder, } = GidsTableWebUtils;
|
|
9
|
+
export const GidsTableDom = ({ toolbar, toolbarChildren, children, headerItems = [], bodyContent = [], isHeaderVisible, isToolbarVisible, bodySettings, toolbarSettings, headerSettings, tableBorders, tableBorderRadius, tableBodyMaxHeight = 200, horizontalScroll = false, onTableAction, footerItems = [], footerSettings, isFooterVisible = false, isFooterControlVisible = false, footerControlSettings, footerControl, extraClasses, }) => {
|
|
8
10
|
const tableDiv = document.createElement('div');
|
|
9
11
|
tableDiv.className = getGidsTableClassNames({ tableBorders, tableBorderRadius }, extraClasses);
|
|
10
12
|
/*
|
|
@@ -81,6 +83,19 @@ export const GidsTableDom = ({ toolbar, toolbarChildren, children, headerItems,
|
|
|
81
83
|
onBodyAction: onActionBtnClick,
|
|
82
84
|
}));
|
|
83
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Footer
|
|
88
|
+
*/
|
|
89
|
+
if (isFooterVisible && footerItems && footerItems.length > 0) {
|
|
90
|
+
table.append(GidsTableFooterDom({
|
|
91
|
+
...footerSettings,
|
|
92
|
+
footerItems: getCustomisedTableFooterEntries({
|
|
93
|
+
footerItems,
|
|
94
|
+
tableBorders,
|
|
95
|
+
}),
|
|
96
|
+
onFooterAction: onActionBtnClick,
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
84
99
|
}
|
|
85
100
|
/*
|
|
86
101
|
* Final DOM:
|
|
@@ -91,6 +106,16 @@ export const GidsTableDom = ({ toolbar, toolbarChildren, children, headerItems,
|
|
|
91
106
|
*/
|
|
92
107
|
tableScrollContainer.appendChild(table);
|
|
93
108
|
tableDiv.appendChild(tableScrollContainer);
|
|
109
|
+
/*
|
|
110
|
+
* Table Footer Control
|
|
111
|
+
*/
|
|
112
|
+
if (isFooterControlVisible || isValidChildren(footerControl)) {
|
|
113
|
+
tableDiv.append(GidsTableFooterControlDom({
|
|
114
|
+
...footerControlSettings,
|
|
115
|
+
tableViewControllerSettings: footerControlSettings?.tableViewControllerSettings,
|
|
116
|
+
children: footerControl,
|
|
117
|
+
}));
|
|
118
|
+
}
|
|
94
119
|
return tableDiv;
|
|
95
120
|
};
|
|
96
121
|
//# sourceMappingURL=GidsTable.js.map
|
|
@@ -1 +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;
|
|
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;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAE7F,MAAM,EACL,sBAAsB,EACtB,+BAA+B,EAC/B,+BAA+B,EAC/B,kBAAkB,GAClB,GAAG,iBAAiB,CAAC;AA0CtB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC5B,OAAO,EACP,eAAe,EACf,QAAQ,EACR,WAAW,GAAG,EAAE,EAChB,WAAW,GAAG,EAAE,EAChB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GAAG,GAAG,EACxB,gBAAgB,GAAG,KAAK,EACxB,aAAa,EACb,WAAW,GAAG,EAAE,EAChB,cAAc,EACd,eAAe,GAAG,KAAK,EACvB,sBAAsB,GAAG,KAAK,EAC9B,qBAAqB,EACrB,aAAa,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AC;YACzB,GAAG,qBAAqB;YACxB,2BAA2B,EAC1B,qBAAqB,EAAE,2BAA2B;YACnD,QAAQ,EAAE,aAAa;SACvB,CAAC,CACF,CAAC;IACH,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -3,11 +3,11 @@ import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface'
|
|
|
3
3
|
import { DomChildren } from '../../utils/domUtils';
|
|
4
4
|
import { GidsTableFooterActionEvent } from '@ganpatiinfo/gids-core-shared';
|
|
5
5
|
export type GidsTableFooterNativeInputForwardedDomProps = Partial<Omit<HTMLInputElement, 'value' | 'readOnly' | 'name' | 'disabled'>>;
|
|
6
|
-
export type GidsTableFooterBaseWebProps = GidsTableFooterWebProps<GidsTableEntryTypographyStyle, IconName, IconAppearance, DomChildren
|
|
6
|
+
export type GidsTableFooterBaseWebProps = GidsTableFooterWebProps<GidsTableEntryTypographyStyle, IconName, IconAppearance, DomChildren>;
|
|
7
7
|
export type GidsTableFooterActionBaseEvent = GidsTableFooterActionEvent<Event, GidsTableEntryTypographyStyle, IconName, IconAppearance>;
|
|
8
8
|
export interface GidsTableFooterDomProps extends GidsTableFooterBaseWebProps {
|
|
9
9
|
extraClasses?: string;
|
|
10
10
|
onFooterAction?: (event: GidsTableFooterActionBaseEvent) => void;
|
|
11
11
|
}
|
|
12
|
-
export declare const GidsTableFooterDom: ({ appearance, labelTypography, textAlignment,
|
|
12
|
+
export declare const GidsTableFooterDom: ({ appearance, labelTypography, textAlignment, entryAlignment, colorSwatchLabelColor, colorSwatchLabelPosition, colorSwatchLabelTypography, colorSwatchSize, colorSwatchShape, colorSwatchShadow, colorSwatchBorderRadius, colorSwatchApplyBorders, colorSwatchBorderWidth, progressBarSize, progressBarEndCap, avatarSize, avatarGroupAppearance, avatarGroupLayout, statusTagAppearance, statusTagSize, progressBarContainerMinWidth, displayTagsOrientation, statusTagsOrientation, progressBarsOrientation, colorSwatchesOrientation, badgesOrientation, children, footerItems, onFooterAction, extraClasses, }: GidsTableFooterDomProps) => HTMLTableSectionElement;
|
|
13
13
|
//# sourceMappingURL=GidsTableFooter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTableFooter.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableFooter/GidsTableFooter.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAG7B,KAAK,uBAAuB,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsTableFooter.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableFooter/GidsTableFooter.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAG7B,KAAK,uBAAuB,EAC5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAK3E,MAAM,MAAM,2CAA2C,GAAG,OAAO,CAChE,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,CAClE,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAChE,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,CACtE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,kBAAkB,GAAI,olBAkChC,uBAAuB,4BA6CzB,CAAC"}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { GidsTableFooterWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-shared';
|
|
2
2
|
import { appendAsChildren } from '../../utils/domUtils';
|
|
3
3
|
import { GidsTableRowDom } from '../GidsTableRow/GidsTableRow';
|
|
4
|
-
import { GidsTableFooterControlDom } from '../GidsTableFooterControl/GidsTableFooterControl';
|
|
5
|
-
import { GidsTableEntryDom } from '../GidsTableEntry/GidsTableEntry';
|
|
6
4
|
const { getGidsTableFooterClassNames } = GidsTableFooterWebUtils;
|
|
7
5
|
export const GidsTableFooterDom = ({
|
|
8
6
|
// Table Entry Props
|
|
9
|
-
appearance = 'none', labelTypography = 'label-medium', textAlignment = 'center',
|
|
7
|
+
appearance = 'none', labelTypography = 'label-medium', textAlignment = 'center', entryAlignment = 'center', colorSwatchLabelColor = 'default', colorSwatchLabelPosition = 'left', colorSwatchLabelTypography = 'label-medium', colorSwatchSize = 'sm', colorSwatchShape = 'oval', colorSwatchShadow = 'shadow-overlay', colorSwatchBorderRadius = 'none', colorSwatchApplyBorders = true, colorSwatchBorderWidth = 'thick', progressBarSize = 'sm', progressBarEndCap = true, avatarSize = 'sm', avatarGroupAppearance = 'spread', avatarGroupLayout = 'wrap', statusTagAppearance = 'subtle', statusTagSize = 'sm', progressBarContainerMinWidth = 200, displayTagsOrientation = 'horizontal', statusTagsOrientation = 'horizontal', progressBarsOrientation = 'horizontal', colorSwatchesOrientation = 'horizontal', badgesOrientation = 'horizontal',
|
|
10
8
|
// Footer Props
|
|
11
|
-
|
|
9
|
+
children, footerItems, onFooterAction, extraClasses, }) => {
|
|
12
10
|
const tableFooter = document.createElement('tfoot');
|
|
13
11
|
tableFooter.className = getGidsTableFooterClassNames(extraClasses);
|
|
14
12
|
if (isValidChildren(children)) {
|
|
@@ -19,8 +17,6 @@ footerControlSettings, footerControlChildren, children, footerItems, onFooterAct
|
|
|
19
17
|
const rowContent = GidsTableRowDom({
|
|
20
18
|
rows: footerItems,
|
|
21
19
|
rowType: 'footer',
|
|
22
|
-
leadingActions,
|
|
23
|
-
trailingActions,
|
|
24
20
|
entryAlignment,
|
|
25
21
|
colorSwatchLabelColor,
|
|
26
22
|
colorSwatchLabelPosition,
|
|
@@ -52,24 +48,6 @@ footerControlSettings, footerControlChildren, children, footerItems, onFooterAct
|
|
|
52
48
|
tableFooter.append(rowContent);
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
|
-
const isValidFooterChildren = isValidChildren(footerControlChildren);
|
|
56
|
-
if (isValidFooterChildren ||
|
|
57
|
-
(footerControlSettings && Object.keys(footerControlSettings).length > 0)) {
|
|
58
|
-
const colSpan = footerItems?.length ?? 1;
|
|
59
|
-
tableFooter.append(GidsTableRowDom({
|
|
60
|
-
appearance,
|
|
61
|
-
rowType: 'footer',
|
|
62
|
-
children: GidsTableEntryDom({
|
|
63
|
-
appearance,
|
|
64
|
-
colSpan,
|
|
65
|
-
entryType: 'footer',
|
|
66
|
-
children: GidsTableFooterControlDom({
|
|
67
|
-
...footerControlSettings,
|
|
68
|
-
children: footerControlChildren,
|
|
69
|
-
}),
|
|
70
|
-
}),
|
|
71
|
-
}));
|
|
72
|
-
}
|
|
73
51
|
return tableFooter;
|
|
74
52
|
};
|
|
75
53
|
//# sourceMappingURL=GidsTableFooter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTableFooter.js","sourceRoot":"","sources":["../../../src/components/GidsTableFooter/GidsTableFooter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,uBAAuB,EACvB,eAAe,GAEf,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"GidsTableFooter.js","sourceRoot":"","sources":["../../../src/components/GidsTableFooter/GidsTableFooter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,uBAAuB,EACvB,eAAe,GAEf,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,MAAM,EAAE,4BAA4B,EAAE,GAAG,uBAAuB,CAAC;AAyBjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;AAClC,oBAAoB;AACpB,UAAU,GAAG,MAAM,EACnB,eAAe,GAAG,cAAc,EAChC,aAAa,GAAG,QAAQ,EACxB,cAAc,GAAG,QAAQ,EACzB,qBAAqB,GAAG,SAAS,EACjC,wBAAwB,GAAG,MAAM,EACjC,0BAA0B,GAAG,cAAc,EAC3C,eAAe,GAAG,IAAI,EACtB,gBAAgB,GAAG,MAAM,EACzB,iBAAiB,GAAG,gBAAgB,EACpC,uBAAuB,GAAG,MAAM,EAChC,uBAAuB,GAAG,IAAI,EAC9B,sBAAsB,GAAG,OAAO,EAChC,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,IAAI,EACxB,UAAU,GAAG,IAAI,EACjB,qBAAqB,GAAG,QAAQ,EAChC,iBAAiB,GAAG,MAAM,EAC1B,mBAAmB,GAAG,QAAQ,EAC9B,aAAa,GAAG,IAAI,EACpB,4BAA4B,GAAG,GAAG,EAClC,sBAAsB,GAAG,YAAY,EACrC,qBAAqB,GAAG,YAAY,EACpC,uBAAuB,GAAG,YAAY,EACtC,wBAAwB,GAAG,YAAY,EACvC,iBAAiB,GAAG,YAAY;AAEhC,eAAe;AACf,QAAQ,EACR,WAAW,EACX,cAAc,EACd,YAAY,GACa,EAAE,EAAE;IAC7B,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACpD,WAAW,CAAC,SAAS,GAAG,4BAA4B,CAAC,YAAY,CAAC,CAAC;IAEnE,IAAI,eAAe,CAAc,QAAQ,CAAC,EAAE,CAAC;QAC5C,gBAAgB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACzC,CAAC;SAAM,CAAC;QACP,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3C,MAAM,UAAU,GAAG,eAAe,CAAC;gBAClC,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,QAAQ;gBACjB,cAAc;gBACd,qBAAqB;gBACrB,wBAAwB;gBACxB,0BAA0B;gBAC1B,eAAe;gBACf,gBAAgB;gBAChB,iBAAiB;gBACjB,uBAAuB;gBACvB,uBAAuB;gBACvB,sBAAsB;gBACtB,eAAe;gBACf,iBAAiB;gBACjB,UAAU;gBACV,qBAAqB;gBACrB,iBAAiB;gBACjB,mBAAmB;gBACnB,aAAa;gBACb,4BAA4B;gBAC5B,sBAAsB;gBACtB,qBAAqB;gBACrB,uBAAuB;gBACvB,wBAAwB;gBACxB,iBAAiB;gBACjB,aAAa;gBACb,eAAe;gBACf,UAAU;gBACV,WAAW,EAAE,cAAc;aAC3B,CAAC,CAAC;YAEH,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAChC,CAAC;IACF,CAAC;IAED,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -6,6 +6,6 @@ export type GidsTableFooterControlBaseWebProps = GidsTableFooterControlWebProps<
|
|
|
6
6
|
export interface GidsTableFooterControlDomProps extends GidsTableFooterControlBaseWebProps {
|
|
7
7
|
extraClasses?: string;
|
|
8
8
|
}
|
|
9
|
-
export declare const GidsTableFooterControlDom: ({ children, bulkStatus, rangeStatus, tableViewControllerSettings, paginatorSettings, tableViewControllerVisible, paginatorVisible, extraClasses, }: GidsTableFooterControlDomProps) => HTMLDivElement;
|
|
9
|
+
export declare const GidsTableFooterControlDom: ({ appearance, children, bulkStatus, rangeStatus, tableViewControllerSettings, paginatorSettings, tableViewControllerVisible, paginatorVisible, extraClasses, }: GidsTableFooterControlDomProps) => HTMLDivElement;
|
|
10
10
|
export {};
|
|
11
11
|
//# sourceMappingURL=GidsTableFooterControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTableFooterControl.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableFooterControl/GidsTableFooterControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,8BAA8B,EAGnC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AASrE,KAAK,yBAAyB,GAAG,OAAO,CACvC,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,CAClE,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,8BAA8B,CAC9E,QAAQ,EACR,WAAW,EACX,yBAAyB,EACzB,WAAW,EACX,KAAK,CACL,CAAC;AAEF,MAAM,WAAW,8BAA+B,SAAQ,kCAAkC;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,yBAAyB,GAAI,
|
|
1
|
+
{"version":3,"file":"GidsTableFooterControl.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableFooterControl/GidsTableFooterControl.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,8BAA8B,EAGnC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AACjE,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AASrE,KAAK,yBAAyB,GAAG,OAAO,CACvC,IAAI,CAAC,gBAAgB,EAAE,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC,CAClE,CAAC;AAEF,MAAM,MAAM,kCAAkC,GAAG,8BAA8B,CAC9E,QAAQ,EACR,WAAW,EACX,yBAAyB,EACzB,WAAW,EACX,KAAK,CACL,CAAC;AAEF,MAAM,WAAW,8BAA+B,SAAQ,kCAAkC;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,yBAAyB,GAAI,gKAUvC,8BAA8B,KAAG,cA4HnC,CAAC"}
|
|
@@ -6,10 +6,12 @@ import { GidsDropdownMenuGroupDom } from '../GidsDropdownMenuGroup/GidsDropdownM
|
|
|
6
6
|
import { GidsDropdownMenuDom } from '../GidsDropdownMenu/GidsDropdownMenu';
|
|
7
7
|
import { GidsDropdownItemDom } from '../GidsDropdownItem/GidsDropdownItem';
|
|
8
8
|
const { getGidsTableFooterControlClassNames } = GidsTableFooterControlWebUtils;
|
|
9
|
-
export const GidsTableFooterControlDom = ({ children, bulkStatus, rangeStatus, tableViewControllerSettings, paginatorSettings, tableViewControllerVisible, paginatorVisible, extraClasses, }) => {
|
|
9
|
+
export const GidsTableFooterControlDom = ({ appearance = 'surface-default', children, bulkStatus, rangeStatus, tableViewControllerSettings, paginatorSettings, tableViewControllerVisible, paginatorVisible, extraClasses, }) => {
|
|
10
10
|
const tableFooterControl = document.createElement('div');
|
|
11
|
-
tableFooterControl.className =
|
|
12
|
-
|
|
11
|
+
tableFooterControl.className = getGidsTableFooterControlClassNames({ appearance }, extraClasses);
|
|
12
|
+
if (appearance) {
|
|
13
|
+
tableFooterControl.setAttribute('control-appearance', appearance);
|
|
14
|
+
}
|
|
13
15
|
if (isValidChildren(children)) {
|
|
14
16
|
appendAsChildren(tableFooterControl, children);
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTableFooterControl.js","sourceRoot":"","sources":["../../../src/components/GidsTableFooterControl/GidsTableFooterControl.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,8BAA8B,EAC9B,eAAe,GACf,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,MAAM,EAAE,mCAAmC,EAAE,GAAG,8BAA8B,CAAC;AAkB/E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,EACzC,QAAQ,EACR,UAAU,EACV,WAAW,EACX,2BAA2B,EAC3B,iBAAiB,EACjB,0BAA0B,EAC1B,gBAAgB,EAChB,YAAY,GACoB,EAAkB,EAAE;IACpD,MAAM,kBAAkB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACzD,kBAAkB,CAAC,SAAS
|
|
1
|
+
{"version":3,"file":"GidsTableFooterControl.js","sourceRoot":"","sources":["../../../src/components/GidsTableFooterControl/GidsTableFooterControl.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,8BAA8B,EAC9B,eAAe,GACf,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAE3E,MAAM,EAAE,mCAAmC,EAAE,GAAG,8BAA8B,CAAC;AAkB/E,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC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extends GidsTableHeaderBaseWebProps {
|
|
|
8
8
|
extraClasses?: string;
|
|
9
9
|
onHeaderAction?: (event: GidsTableHeaderActionBaseEvent) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare const GidsTableHeaderDom: ({ headerItems, appearance, labelTypography, textAlignment,
|
|
11
|
+
export declare const GidsTableHeaderDom: ({ headerItems, appearance, labelTypography, textAlignment, onHeaderAction, extraClasses, entryAlignment, colorSwatchLabelColor, colorSwatchLabelPosition, colorSwatchLabelTypography, colorSwatchSize, colorSwatchShape, colorSwatchShadow, colorSwatchBorderRadius, colorSwatchApplyBorders, colorSwatchBorderWidth, progressBarSize, progressBarEndCap, avatarSize, avatarGroupAppearance, avatarGroupLayout, statusTagAppearance, statusTagSize, progressBarContainerMinWidth, displayTagsOrientation, statusTagsOrientation, progressBarsOrientation, colorSwatchesOrientation, badgesOrientation, children, }: GidsTableHeaderDomProps) => HTMLTableSectionElement;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=GidsTableHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableHeader/GidsTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAC7B,uBAAuB,EAGvB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIrE,KAAK,2BAA2B,GAAG,uBAAuB,CACzD,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,CACtE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,kBAAkB,GAAI,
|
|
1
|
+
{"version":3,"file":"GidsTableHeader.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableHeader/GidsTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAC7B,uBAAuB,EAGvB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAoB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAIrE,KAAK,2BAA2B,GAAG,uBAAuB,CACzD,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,CACtE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,IAAI,CAAC;CACjE;AAED,eAAO,MAAM,kBAAkB,GAAI,olBA+BhC,uBAAuB,4BA6CzB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { GidsTableHeaderWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web
|
|
|
2
2
|
import { GidsTableRowDom } from '../GidsTableRow/GidsTableRow';
|
|
3
3
|
import { appendAsChildren } from '../../utils/domUtils';
|
|
4
4
|
const { getGidsTableHeaderClassNames } = GidsTableHeaderWebUtils;
|
|
5
|
-
export const GidsTableHeaderDom = ({ headerItems = [], appearance = 'none', labelTypography = 'label-medium', textAlignment = 'center',
|
|
5
|
+
export const GidsTableHeaderDom = ({ headerItems = [], appearance = 'none', labelTypography = 'label-medium', textAlignment = 'center', onHeaderAction, extraClasses, entryAlignment = 'center', colorSwatchLabelColor = 'default', colorSwatchLabelPosition = 'left', colorSwatchLabelTypography = 'label-medium', colorSwatchSize = 'sm', colorSwatchShape = 'oval', colorSwatchShadow = 'shadow-overlay', colorSwatchBorderRadius = 'none', colorSwatchApplyBorders = true, colorSwatchBorderWidth = 'thick', progressBarSize = 'sm', progressBarEndCap = true, avatarSize = 'sm', avatarGroupAppearance = 'spread', avatarGroupLayout = 'wrap', statusTagAppearance = 'subtle', statusTagSize = 'sm', progressBarContainerMinWidth = 200, displayTagsOrientation = 'horizontal', statusTagsOrientation = 'horizontal', progressBarsOrientation = 'horizontal', colorSwatchesOrientation = 'horizontal', badgesOrientation = 'horizontal', children, }) => {
|
|
6
6
|
const tableHeader = document.createElement('thead');
|
|
7
7
|
tableHeader.className = getGidsTableHeaderClassNames(extraClasses);
|
|
8
8
|
if (isValidChildren(children)) {
|
|
@@ -13,8 +13,6 @@ export const GidsTableHeaderDom = ({ headerItems = [], appearance = 'none', labe
|
|
|
13
13
|
const rowContent = GidsTableRowDom({
|
|
14
14
|
rows: headerItems,
|
|
15
15
|
rowType: 'header',
|
|
16
|
-
leadingActions,
|
|
17
|
-
trailingActions,
|
|
18
16
|
entryAlignment,
|
|
19
17
|
colorSwatchLabelColor,
|
|
20
18
|
colorSwatchLabelPosition,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTableHeader.js","sourceRoot":"","sources":["../../../src/components/GidsTableHeader/GidsTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,uBAAuB,EACvB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAM/D,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AAErE,MAAM,EAAE,4BAA4B,EAAE,GAAG,uBAAuB,CAAC;AAqBjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,MAAM,EACnB,eAAe,GAAG,cAAc,EAChC,aAAa,GAAG,QAAQ,EACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"GidsTableHeader.js","sourceRoot":"","sources":["../../../src/components/GidsTableHeader/GidsTableHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,uBAAuB,EACvB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAM/D,OAAO,EAAE,gBAAgB,EAAe,MAAM,sBAAsB,CAAC;AAErE,MAAM,EAAE,4BAA4B,EAAE,GAAG,uBAAuB,CAAC;AAqBjE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,WAAW,GAAG,EAAE,EAChB,UAAU,GAAG,MAAM,EACnB,eAAe,GAAG,cAAc,EAChC,aAAa,GAAG,QAAQ,EACxB,cAAc,EACd,YAAY,EACZ,cAAc,GAAG,QAAQ,EACzB,qBAAqB,GAAG,SAAS,EACjC,wBAAwB,GAAG,MAAM,EACjC,0BAA0B,GAAG,cAAc,EAC3C,eAAe,GAAG,IAAI,EACtB,gBAAgB,GAAG,MAAM,EACzB,iBAAiB,GAAG,gBAAgB,EACpC,uBAAuB,GAAG,MAAM,EAChC,uBAAuB,GAAG,IAAI,EAC9B,sBAAsB,GAAG,OAAO,EAChC,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,IAAI,EACxB,UAAU,GAAG,IAAI,EACjB,qBAAqB,GAAG,QAAQ,EAChC,iBAAiB,GAAG,MAAM,EAC1B,mBAAmB,GAAG,QAAQ,EAC9B,aAAa,GAAG,IAAI,EACpB,4BAA4B,GAAG,GAAG,EAClC,sBAAsB,GAAG,YAAY,EACrC,qBAAqB,GAAG,YAAY,EACpC,uBAAuB,GAAG,YAAY,EACtC,wBAAwB,GAAG,YAAY,EACvC,iBAAiB,GAAG,YAAY,EAChC,QAAQ,GACiB,EAAE,EAAE;IAC7B,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACpD,WAAW,CAAC,SAAS,GAAG,4BAA4B,CAAC,YAAY,CAAC,CAAC;IAEnE,IAAI,eAAe,CAAc,QAAQ,CAAC,EAAE,CAAC;QAC5C,gBAAgB,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACzC,CAAC;SAAM,CAAC;QACP,IAAI,WAAW,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC3C,MAAM,UAAU,GAAG,eAAe,CAAC;gBAClC,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,QAAQ;gBACjB,cAAc;gBACd,qBAAqB;gBACrB,wBAAwB;gBACxB,0BAA0B;gBAC1B,eAAe;gBACf,gBAAgB;gBAChB,iBAAiB;gBACjB,uBAAuB;gBACvB,uBAAuB;gBACvB,sBAAsB;gBACtB,eAAe;gBACf,iBAAiB;gBACjB,UAAU;gBACV,qBAAqB;gBACrB,iBAAiB;gBACjB,mBAAmB;gBACnB,aAAa;gBACb,4BAA4B;gBAC5B,sBAAsB;gBACtB,qBAAqB;gBACrB,uBAAuB;gBACvB,wBAAwB;gBACxB,iBAAiB;gBACjB,aAAa;gBACb,eAAe;gBACf,UAAU;gBACV,WAAW,EAAE,cAAc;aAC3B,CAAC,CAAC;YAEH,WAAW,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAChC,CAAC;IACF,CAAC;IAED,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -8,6 +8,6 @@ export interface GidsTableRowDomProps extends GidsTableRowBaseWebProps {
|
|
|
8
8
|
extraClasses?: string;
|
|
9
9
|
onRowAction?: (event: GidsTableRowActionBaseEvent) => void;
|
|
10
10
|
}
|
|
11
|
-
export declare const GidsTableRowDom: ({ rows, rowType,
|
|
11
|
+
export declare const GidsTableRowDom: ({ rows, rowType, onRowAction, textAlignment, appearance, labelTypography, entryAlignment, colorSwatchLabelColor, colorSwatchLabelPosition, colorSwatchLabelTypography, colorSwatchSize, colorSwatchShape, colorSwatchShadow, colorSwatchBorderRadius, colorSwatchApplyBorders, colorSwatchBorderWidth, progressBarSize, progressBarEndCap, avatarSize, avatarGroupAppearance, avatarGroupLayout, statusTagAppearance, statusTagSize, progressBarContainerMinWidth, displayTagsOrientation, statusTagsOrientation, progressBarsOrientation, colorSwatchesOrientation, badgesOrientation, actionsBackgroundColor, actionsContentColor, backgroundColor, contentColor, children, extraClasses, }: GidsTableRowDomProps) => HTMLElement | DocumentFragment;
|
|
12
12
|
export {};
|
|
13
13
|
//# sourceMappingURL=GidsTableRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTableRow.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableRow/GidsTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAC7B,KAAK,oBAAoB,EAGzB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAoB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIxE,KAAK,wBAAwB,GAAG,oBAAoB,CACnD,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAChE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,eAAe,GAAI,
|
|
1
|
+
{"version":3,"file":"GidsTableRow.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTableRow/GidsTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAC7B,KAAK,oBAAoB,EAGzB,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAoB,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAIxE,KAAK,wBAAwB,GAAG,oBAAoB,CACnD,6BAA6B,EAC7B,QAAQ,EACR,cAAc,EACd,WAAW,CACX,CAAC;AACF,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAChE,KAAK,EACL,6BAA6B,EAC7B,QAAQ,EACR,cAAc,CACd,CAAC;AAEF,MAAM,WAAW,oBAAqB,SAAQ,wBAAwB;IACrE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,IAAI,CAAC;CAC3D;AAED,eAAO,MAAM,eAAe,GAAI,+pBAoC7B,oBAAoB,KAAG,WAAW,GAAG,gBA8EvC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { GidsTableRowWebUtils, isValidChildren, } from '@ganpatiinfo/gids-web-sh
|
|
|
2
2
|
import { GidsTableEntryDom, } from '../GidsTableEntry/GidsTableEntry.js';
|
|
3
3
|
import { appendAsChildren } from '../../utils/domUtils.js';
|
|
4
4
|
const { getGidsTableRowClassNames } = GidsTableRowWebUtils;
|
|
5
|
-
export const GidsTableRowDom = ({ rows, rowType = 'body',
|
|
5
|
+
export const GidsTableRowDom = ({ rows, rowType = 'body', onRowAction, textAlignment = 'center', appearance = 'none', labelTypography = 'label-medium', entryAlignment = 'center', colorSwatchLabelColor = 'default', colorSwatchLabelPosition = 'left', colorSwatchLabelTypography = 'label-medium', colorSwatchSize = 'sm', colorSwatchShape = 'oval', colorSwatchShadow = 'shadow-overlay', colorSwatchBorderRadius = 'none', colorSwatchApplyBorders = true, colorSwatchBorderWidth = 'thick', progressBarSize = 'sm', progressBarEndCap = true, avatarSize = 'sm', avatarGroupAppearance, avatarGroupLayout, statusTagAppearance = 'subtle', statusTagSize = 'sm', progressBarContainerMinWidth = 200, displayTagsOrientation = 'horizontal', statusTagsOrientation = 'horizontal', progressBarsOrientation = 'horizontal', colorSwatchesOrientation = 'horizontal', badgesOrientation = 'horizontal', actionsBackgroundColor, actionsContentColor, backgroundColor, contentColor, children, extraClasses, }) => {
|
|
6
6
|
const rowClassName = getGidsTableRowClassNames(extraClasses);
|
|
7
7
|
// 3. Handling Horizontal Layout (Standard Single Row)
|
|
8
8
|
const tableRow = document.createElement('tr');
|
|
@@ -33,8 +33,8 @@ export const GidsTableRowDom = ({ rows, rowType = 'body', leadingActions, traili
|
|
|
33
33
|
contentColor,
|
|
34
34
|
label: rowLabel,
|
|
35
35
|
entryType: rowType,
|
|
36
|
-
leadingActions,
|
|
37
|
-
trailingActions,
|
|
36
|
+
leadingActions: row?.leadingActions ?? [],
|
|
37
|
+
trailingActions: row?.trailingActions ?? [],
|
|
38
38
|
entryAlignment,
|
|
39
39
|
colorSwatchLabelColor,
|
|
40
40
|
colorSwatchLabelPosition,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GidsTableRow.js","sourceRoot":"","sources":["../../../src/components/GidsTableRow/GidsTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,oBAAoB,EACpB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,iBAAiB,GACjB,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EAAE,gBAAgB,EAAe,MAAM,yBAAyB,CAAC;AAExE,MAAM,EAAE,yBAAyB,EAAE,GAAG,oBAAoB,CAAC;AAoB3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC/B,IAAI,EACJ,OAAO,GAAG,MAAM,EAChB,
|
|
1
|
+
{"version":3,"file":"GidsTableRow.js","sourceRoot":"","sources":["../../../src/components/GidsTableRow/GidsTableRow.ts"],"names":[],"mappings":"AAAA,OAAO,EAGN,oBAAoB,EACpB,eAAe,GACf,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAEN,iBAAiB,GACjB,MAAM,qCAAqC,CAAC;AAM7C,OAAO,EAAE,gBAAgB,EAAe,MAAM,yBAAyB,CAAC;AAExE,MAAM,EAAE,yBAAyB,EAAE,GAAG,oBAAoB,CAAC;AAoB3D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC/B,IAAI,EACJ,OAAO,GAAG,MAAM,EAChB,WAAW,EACX,aAAa,GAAG,QAAQ,EACxB,UAAU,GAAG,MAAM,EACnB,eAAe,GAAG,cAAc,EAChC,cAAc,GAAG,QAAQ,EACzB,qBAAqB,GAAG,SAAS,EACjC,wBAAwB,GAAG,MAAM,EACjC,0BAA0B,GAAG,cAAc,EAC3C,eAAe,GAAG,IAAI,EACtB,gBAAgB,GAAG,MAAM,EACzB,iBAAiB,GAAG,gBAAgB,EACpC,uBAAuB,GAAG,MAAM,EAChC,uBAAuB,GAAG,IAAI,EAC9B,sBAAsB,GAAG,OAAO,EAChC,eAAe,GAAG,IAAI,EACtB,iBAAiB,GAAG,IAAI,EACxB,UAAU,GAAG,IAAI,EACjB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,GAAG,QAAQ,EAC9B,aAAa,GAAG,IAAI,EACpB,4BAA4B,GAAG,GAAG,EAClC,sBAAsB,GAAG,YAAY,EACrC,qBAAqB,GAAG,YAAY,EACpC,uBAAuB,GAAG,YAAY,EACtC,wBAAwB,GAAG,YAAY,EACvC,iBAAiB,GAAG,YAAY,EAChC,sBAAsB,EACtB,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,QAAQ,EACR,YAAY,GACU,EAAkC,EAAE;IAC1D,MAAM,YAAY,GAAG,yBAAyB,CAAC,YAAY,CAAC,CAAC;IAE7D,sDAAsD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uBAAuB;oBACvB,wBAAwB;oBACxB,iBAAiB;oBACjB,aAAa;oBACb,eAAe;oBACf,UAAU;oBACV,aAAa,EAAE,CAAC,KAAoC,EAAE,EAAE,CACvD,qBAAqB,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;iBACrD,CAAC,CACF,CAAC;YACH,CAAC,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GidsTransferListWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
type GidsTransferListBaseWebProps = GidsTransferListWebProps<Event>;
|
|
3
|
+
export interface GidsTransferListDomProps extends GidsTransferListBaseWebProps {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsTransferListDom: ({ leftListHeading, rightListHeading, moveAllVisible, transferListType, leftListItems, rightListItems, onTransferAction, onTransferListSelect, listsMaxHeight, extraClasses, }: GidsTransferListDomProps) => HTMLElement;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=GidsTransferList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsTransferList.d.ts","sourceRoot":"","sources":["../../../src/components/GidsTransferList/GidsTransferList.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,wBAAwB,EAE7B,MAAM,8BAA8B,CAAC;AAItC,KAAK,4BAA4B,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAIpE,MAAM,WAAW,wBAAyB,SAAQ,4BAA4B;IAC7E,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,mBAAmB,GAAI,+KAWjC,wBAAwB,KAAG,WA+B7B,CAAC"}
|