@ganpatiinfo/gids-web-dom-reference 13.0.0 → 14.1.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 +67 -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/GidsHeaderNavigation/GidsHeaderNavigation.d.ts +8 -0
- package/dist/components/GidsHeaderNavigation/GidsHeaderNavigation.d.ts.map +1 -0
- package/dist/components/GidsHeaderNavigation/GidsHeaderNavigation.js +29 -0
- package/dist/components/GidsHeaderNavigation/GidsHeaderNavigation.js.map +1 -0
- package/dist/components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts +8 -0
- package/dist/components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.d.ts.map +1 -0
- package/dist/components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.js +57 -0
- package/dist/components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.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/GidsProfile/GidsProfile.d.ts +8 -0
- package/dist/components/GidsProfile/GidsProfile.d.ts.map +1 -0
- package/dist/components/GidsProfile/GidsProfile.js +58 -0
- package/dist/components/GidsProfile/GidsProfile.js.map +1 -0
- package/dist/components/GidsProfileMenu/GidsProfileMenu.d.ts +7 -0
- package/dist/components/GidsProfileMenu/GidsProfileMenu.d.ts.map +1 -0
- package/dist/components/GidsProfileMenu/GidsProfileMenu.js +25 -0
- package/dist/components/GidsProfileMenu/GidsProfileMenu.js.map +1 -0
- package/dist/components/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts +7 -0
- package/dist/components/GidsProfileMenuHeader/GidsProfileMenuHeader.d.ts.map +1 -0
- package/dist/components/GidsProfileMenuHeader/GidsProfileMenuHeader.js +24 -0
- package/dist/components/GidsProfileMenuHeader/GidsProfileMenuHeader.js.map +1 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.d.ts +8 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.d.ts.map +1 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.js +16 -0
- package/dist/components/GidsSkeleton/GidsSkeleton.js.map +1 -0
- package/dist/components/GidsTable/GidsTable.d.ts +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 +120 -108
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +120 -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/GidsHeaderNavigation/GidsHeaderNavigation.ts +75 -0
- package/src/components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.ts +103 -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/GidsProfile/GidsProfile.ts +120 -0
- package/src/components/GidsProfileMenu/GidsProfileMenu.ts +60 -0
- package/src/components/GidsProfileMenuHeader/GidsProfileMenuHeader.ts +66 -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 +120 -108
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GidsHeaderNavigationWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
3
|
+
export type GidsHeaderNavigationBaseWebProps = GidsHeaderNavigationWebProps<Event, IconName>;
|
|
4
|
+
export interface GidsHeaderNavigationDomProps extends GidsHeaderNavigationBaseWebProps {
|
|
5
|
+
extraClasses?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const GidsHeaderNavigationDom: ({ type, navMenus, appearance, selectionAppearance, applyShadow, borderRadius, mode, applySeparators, size, selectionType, defaultNavItemId, defaultNavMenuId, defaultNavMenuItemId, onHeaderNavigationItemChange, extraClasses, }: GidsHeaderNavigationDomProps) => HTMLElement;
|
|
8
|
+
//# sourceMappingURL=GidsHeaderNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsHeaderNavigation.d.ts","sourceRoot":"","sources":["../../../src/components/GidsHeaderNavigation/GidsHeaderNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,4BAA4B,EAE5B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,uCAAuC,CAAC;AAIjE,MAAM,MAAM,gCAAgC,GAAG,4BAA4B,CAC1E,KAAK,EACL,QAAQ,CACR,CAAC;AAKF,MAAM,WAAW,4BAA6B,SAAQ,gCAAgC;IACrF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,uBAAuB,GAAI,mOAgBrC,4BAA4B,KAAG,WAsCjC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GidsHeaderNavigationWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsHeaderNavigationClassNames } = GidsHeaderNavigationWebUtils;
|
|
3
|
+
export const GidsHeaderNavigationDom = ({ type = 'gap', navMenus = [], appearance = 'default', selectionAppearance = 'default', applyShadow = false, borderRadius = 'none', mode = 'wrap', applySeparators = false, size = 'md', selectionType = 'single-deselection-not-allowed', defaultNavItemId, defaultNavMenuId, defaultNavMenuItemId, onHeaderNavigationItemChange, extraClasses, }) => {
|
|
4
|
+
const headerNavigation = document.createElement('gids-header-navigation');
|
|
5
|
+
headerNavigation.setAttribute('header-nav-appearance', appearance);
|
|
6
|
+
headerNavigation.setAttribute('header-nav-size', size);
|
|
7
|
+
headerNavigation.setAttribute('header-nav-selection-appearance', selectionAppearance);
|
|
8
|
+
headerNavigation.setAttribute('header-nav-type', type);
|
|
9
|
+
headerNavigation.navMenus = navMenus;
|
|
10
|
+
headerNavigation.appearance = appearance;
|
|
11
|
+
headerNavigation.selectionAppearance = selectionAppearance;
|
|
12
|
+
headerNavigation.applyShadow = applyShadow;
|
|
13
|
+
headerNavigation.borderRadius = borderRadius;
|
|
14
|
+
headerNavigation.mode = mode;
|
|
15
|
+
headerNavigation.applySeparators = applySeparators;
|
|
16
|
+
headerNavigation.size = size;
|
|
17
|
+
headerNavigation.type = type;
|
|
18
|
+
headerNavigation.selectionType = selectionType;
|
|
19
|
+
headerNavigation.defaultNavItemId = defaultNavItemId;
|
|
20
|
+
headerNavigation.defaultNavMenuId = defaultNavMenuId;
|
|
21
|
+
headerNavigation.defaultNavMenuItemId = defaultNavMenuItemId;
|
|
22
|
+
headerNavigation.className = getGidsHeaderNavigationClassNames({ mode, type }, extraClasses);
|
|
23
|
+
if (onHeaderNavigationItemChange) {
|
|
24
|
+
headerNavigation.onHeaderNavigationItemChange =
|
|
25
|
+
onHeaderNavigationItemChange;
|
|
26
|
+
}
|
|
27
|
+
return headerNavigation;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=GidsHeaderNavigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsHeaderNavigation.js","sourceRoot":"","sources":["../../../src/components/GidsHeaderNavigation/GidsHeaderNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,4BAA4B,GAC5B,MAAM,8BAA8B,CAAC;AAGtC,MAAM,EAAE,iCAAiC,EAAE,GAAG,4BAA4B,CAAC;AAc3E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,EACvC,IAAI,GAAG,KAAK,EACZ,QAAQ,GAAG,EAAE,EACb,UAAU,GAAG,SAAS,EACtB,mBAAmB,GAAG,SAAS,EAC/B,WAAW,GAAG,KAAK,EACnB,YAAY,GAAG,MAAM,EACrB,IAAI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AI,4BAA4B,EAAE,CAAC;QAClC,gBAAgB,CAAC,4BAA4B;YAC5C,4BAA4B,CAAC;IAC/B,CAAC;IAED,OAAO,gBAAgB,CAAC;AACzB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GidsHeaderNavigationItemWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { DomChildren } from '../../utils/domUtils';
|
|
3
|
+
export type GidsHeaderNavigationItemBaseWebProps = GidsHeaderNavigationItemWebProps<Event, DomChildren>;
|
|
4
|
+
export interface GidsHeaderNavigationItemDomProps extends GidsHeaderNavigationItemBaseWebProps {
|
|
5
|
+
extraClasses?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const GidsHeaderNavigationItemDom: ({ id, menuId, appearance, selectionAppearance, expanded, selected, selectedMenuItemId, label, leadingIcon, menuItems, size, borderRadius, applyShadow, selectionType, onPressNavigationItem, onMenuItemChange, extraClasses, }: GidsHeaderNavigationItemDomProps) => HTMLElement;
|
|
8
|
+
//# sourceMappingURL=GidsHeaderNavigationItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsHeaderNavigationItem.d.ts","sourceRoot":"","sources":["../../../src/components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gCAAgC,EAEhC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAgB,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAKjE,MAAM,MAAM,oCAAoC,GAC/C,gCAAgC,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;AAKtD,MAAM,WAAW,gCAAiC,SAAQ,oCAAoC;IAC7F,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,2BAA2B,GAAI,gOAkBzC,gCAAgC,KAAG,WAiErC,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { GidsHeaderNavigationItemWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { assignToSlot } from '../../utils/domUtils';
|
|
3
|
+
const { getGidsHeaderNavigationItemClassNames } = GidsHeaderNavigationItemWebUtils;
|
|
4
|
+
export const GidsHeaderNavigationItemDom = ({ id, menuId, appearance = 'default', selectionAppearance = 'default', expanded = false, selected = false, selectedMenuItemId, label, leadingIcon, menuItems = [], size = 'sm', borderRadius = 'none', applyShadow = false, selectionType = 'single-deselection-allowed', onPressNavigationItem, onMenuItemChange, extraClasses, }) => {
|
|
5
|
+
const headerNavigationItem = document.createElement('gids-header-navigation-item');
|
|
6
|
+
headerNavigationItem.setAttribute('id', id);
|
|
7
|
+
headerNavigationItem.setAttribute('header-nav-item-appearance', appearance);
|
|
8
|
+
headerNavigationItem.setAttribute('header-nav-item-size', size);
|
|
9
|
+
headerNavigationItem.setAttribute('header-nav-item-selection-appearance', selectionAppearance);
|
|
10
|
+
if (menuId) {
|
|
11
|
+
headerNavigationItem.setAttribute('menu-id', menuId);
|
|
12
|
+
}
|
|
13
|
+
if (selected) {
|
|
14
|
+
headerNavigationItem.setAttribute('header-nav-item-selected', 'true');
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
headerNavigationItem.removeAttribute('header-nav-item-selected');
|
|
18
|
+
}
|
|
19
|
+
if (expanded) {
|
|
20
|
+
headerNavigationItem.setAttribute('header-nav-item-expanded', 'true');
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
headerNavigationItem.removeAttribute('header-nav-item-expanded');
|
|
24
|
+
}
|
|
25
|
+
headerNavigationItem.id = id;
|
|
26
|
+
headerNavigationItem.appearance = appearance;
|
|
27
|
+
headerNavigationItem.selectionAppearance = selectionAppearance;
|
|
28
|
+
headerNavigationItem.selected = selected;
|
|
29
|
+
headerNavigationItem.label = label;
|
|
30
|
+
headerNavigationItem.menuItems = menuItems;
|
|
31
|
+
headerNavigationItem.size = size;
|
|
32
|
+
headerNavigationItem.expanded = expanded;
|
|
33
|
+
headerNavigationItem.borderRadius = borderRadius;
|
|
34
|
+
headerNavigationItem.applyShadow = applyShadow;
|
|
35
|
+
headerNavigationItem.selectedMenuItemId = selectedMenuItemId;
|
|
36
|
+
headerNavigationItem.selectionType = selectionType;
|
|
37
|
+
if (leadingIcon) {
|
|
38
|
+
// @ts-expect-error error expected
|
|
39
|
+
assignToSlot(headerNavigationItem, 'headerNavItemLeadingIcon', leadingIcon);
|
|
40
|
+
}
|
|
41
|
+
headerNavigationItem.className = getGidsHeaderNavigationItemClassNames({
|
|
42
|
+
selected,
|
|
43
|
+
appearance,
|
|
44
|
+
selectionAppearance,
|
|
45
|
+
size,
|
|
46
|
+
applyShadow,
|
|
47
|
+
borderRadius,
|
|
48
|
+
}, extraClasses);
|
|
49
|
+
if (onPressNavigationItem) {
|
|
50
|
+
headerNavigationItem.onPressNavigationItem = onPressNavigationItem;
|
|
51
|
+
}
|
|
52
|
+
if (onMenuItemChange) {
|
|
53
|
+
headerNavigationItem.onMenuItemChange = onMenuItemChange;
|
|
54
|
+
}
|
|
55
|
+
return headerNavigationItem;
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=GidsHeaderNavigationItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsHeaderNavigationItem.js","sourceRoot":"","sources":["../../../src/components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,gCAAgC,GAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,YAAY,EAAe,MAAM,sBAAsB,CAAC;AAEjE,MAAM,EAAE,qCAAqC,EAAE,GAC9C,gCAAgC,CAAC;AAYlC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,EAC3C,EAAE,EACF,MAAM,EACN,UAAU,GAAG,SAAS,EACtB,mBAAmB,GAAG,SAAS,EAC/B,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,kBAAkB,EAClB,KAAK,EACL,WA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AC,SAAS,GAAG,SAAS,CAAC;IAC3C,oBAAoB,CAAC,IAAI,GAAG,IAAI,CAAC;IACjC,oBAAoB,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzC,oBAAoB,CAAC,YAAY,GAAG,YAAY,CAAC;IACjD,oBAAoB,CAAC,WAAW,GAAG,WAAW,CAAC;IAC/C,oBAAoB,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC7D,oBAAoB,CAAC,aAAa,GAAG,aAAa,CAAC;IAEnD,IAAI,WAAW,EAAE,CAAC;QACjB,kCAAkC;QAClC,YAAY,CAAC,oBAAoB,EAAE,0BAA0B,EAAE,WAAW,CAAC,CAAC;IAC7E,CAAC;IAED,oBAAoB,CAAC,SAAS,GAAG,qCAAqC,CACrE;QACC,QAAQ;QACR,UAAU;QACV,mBAAmB;QACnB,IAAI;QACJ,WAAW;QACX,YAAY;KACZ,EACD,YAAY,CACZ,CAAC;IAEF,IAAI,qBAAqB,EAAE,CAAC;QAC3B,oBAAoB,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;IACpE,CAAC;IAED,IAAI,gBAAgB,EAAE,CAAC;QACtB,oBAAoB,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC1D,CAAC;IAED,OAAO,oBAAoB,CAAC;AAC7B,CAAC,CAAC"}
|
|
@@ -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,EACpC,2BAA2B,EAC3B,sBAAsB,GAAG,MAAM,EAC/B,2BAA2B,GAAG,cAAc,EAC5C,yBAAyB,GAAG,MAAM,EAClC,oCAAoC,GAAG,EAAE,EACzC,sCAAsC,GAAG,EAAE,EAC3C,YAAY,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IjD;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,GAAG,MAAM,EACtB,kBAAkB,GAAG,cAAc,EACnC,gBAAgB,GAAG,QAAQ,EAC3B,sBAAsB,GAAG,MAAM,EAC/B,2BAA2B,GAAG,cAAc,EAC5C,yBAAyB,GAAG,QAAQ,EACpC,2BAA2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AAU,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,IAAI,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,EAAE,CAAC;QAC7D,CAAC,cAAc,KAAK,SAAS;YAC5B,cAAc,KAAK,IAAI;YACvB,cAAc,KAAK,EAAE,CAAC,EACtB,CAAC;QACF,IAAI,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AC;QAC7D,CAAC,cAAc,KAAK,SAAS;YAC5B,cAAc,KAAK,IAAI;YACvB,cAAc,KAAK,EAAE,CAAC,EACtB,CAAC;QACF,IAAI,CAAC,MAAM,CACV,cAAc,CAAC;YACd,OAAO;YACP,cAAc;YACd,wBAAwB,EAAE,wBAAwB,IAAI,gBAAgB;YACtE,GAAG,SAAS;SACZ,CAAC,CACF,CAAC;IACH,CAAC;IAED,IAAI,sBAAsB,EAAE,CAAC;QAC5B,MAAM,gBAAgB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACvD,gBAAgB,CAAC,SAAS,GAAG,2BAA2B,CAAC;QAEzD,gBAAgB,CAAC,MAAM,CACtB,cAAc,CAAC;YACd,WAAW,EAAE,YAAY;SACzB,CAAC,CACF,CAAC;QAEF,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;QACjD,MAAM,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QACxD,iBAAiB,CAAC,SAAS,GAAG,qBAAqB,CAAC;QACpD,gBAAgB,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC;QAC9C,gBAAgB,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAC3C,CAAC;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GidsProfileWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
import { IconAppearance, IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
3
|
+
export type GidsProfileBaseWebProps = GidsProfileWebProps<Event, IconName, IconAppearance, string>;
|
|
4
|
+
export interface GidsProfileDomProps extends GidsProfileBaseWebProps {
|
|
5
|
+
extraClasses?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const GidsProfileDom: ({ id, menuId, profileControlAppearance, profileControlAvatarProps, profileControlAvatarVisible, profileControlAvatarBadgeVisible, profileControlBorderRadius, profileControlLeadingIcon, profileControlShadow, profileControlSupportingText, profileControlTitle, profileControlTrailingIcon, profileMenuItems, headerDividerVisible, headerVisible, headerItem, expanded, listSectionDividerVisible, profileControlLeadingIconSize, profileControlTrailingIconSize, profileControlLeadingIconAppearance, profileControlTrailingIconAppearance, onHeaderAvatarPress, onHeaderSupportingTextPress, onHeaderTitlePress, onProfileMenuItemPress, onPressProfileControl, extraClasses, }: GidsProfileDomProps) => HTMLElement;
|
|
8
|
+
//# sourceMappingURL=GidsProfile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsProfile.d.ts","sourceRoot":"","sources":["../../../src/components/GidsProfile/GidsProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,mBAAmB,EAEnB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACN,cAAc,EACd,QAAQ,EACR,MAAM,uCAAuC,CAAC;AAI/C,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,CACxD,KAAK,EACL,QAAQ,EACR,cAAc,EACd,MAAM,CACN,CAAC;AAIF,MAAM,WAAW,mBAAoB,SAAQ,uBAAuB;IACnE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,cAAc,GAAI,spBA6B5B,mBAAmB,KAAG,WAkExB,CAAC"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { GidsProfileWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsProfileClassNames } = GidsProfileWebUtils;
|
|
3
|
+
export const GidsProfileDom = ({ id, menuId, profileControlAppearance = 'default', profileControlAvatarProps, profileControlAvatarVisible = true, profileControlAvatarBadgeVisible = true, profileControlBorderRadius = 'none', profileControlLeadingIcon, profileControlShadow = 'none', profileControlSupportingText, profileControlTitle, profileControlTrailingIcon, profileMenuItems = [], headerDividerVisible = false, headerVisible = false, headerItem, expanded = false, listSectionDividerVisible = false, profileControlLeadingIconSize = 'sm', profileControlTrailingIconSize = 'sm', profileControlLeadingIconAppearance = 'filled', profileControlTrailingIconAppearance = 'filled', onHeaderAvatarPress, onHeaderSupportingTextPress, onHeaderTitlePress, onProfileMenuItemPress, onPressProfileControl, extraClasses, }) => {
|
|
4
|
+
const profile = document.createElement('gids-profile');
|
|
5
|
+
profile.setAttribute('id', id);
|
|
6
|
+
if (expanded) {
|
|
7
|
+
profile.setAttribute('menu-expanded', 'true');
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
profile.removeAttribute('menu-expanded');
|
|
11
|
+
}
|
|
12
|
+
profile.id = id;
|
|
13
|
+
profile.menuId = menuId;
|
|
14
|
+
profile.expanded = expanded;
|
|
15
|
+
profile.profileControlAppearance = profileControlAppearance;
|
|
16
|
+
profile.profileControlBorderRadius = profileControlBorderRadius;
|
|
17
|
+
profile.profileControlShadow = profileControlShadow;
|
|
18
|
+
profile.profileControlAvatarProps = profileControlAvatarProps;
|
|
19
|
+
profile.profileControlAvatarVisible = profileControlAvatarVisible;
|
|
20
|
+
profile.profileControlLeadingIcon = profileControlLeadingIcon;
|
|
21
|
+
profile.profileControlLeadingIconSize = profileControlLeadingIconSize;
|
|
22
|
+
profile.profileControlTrailingIconSize = profileControlTrailingIconSize;
|
|
23
|
+
profile.profileControlLeadingIconAppearance =
|
|
24
|
+
profileControlLeadingIconAppearance;
|
|
25
|
+
profile.profileControlTrailingIconAppearance =
|
|
26
|
+
profileControlTrailingIconAppearance;
|
|
27
|
+
profile.profileControlSupportingText = profileControlSupportingText;
|
|
28
|
+
profile.profileControlTitle = profileControlTitle;
|
|
29
|
+
profile.profileControlTrailingIcon = profileControlTrailingIcon;
|
|
30
|
+
profile.profileMenuItems = profileMenuItems;
|
|
31
|
+
profile.headerDividerVisible = headerDividerVisible;
|
|
32
|
+
profile.headerVisible = headerVisible;
|
|
33
|
+
profile.headerItem = headerItem;
|
|
34
|
+
profile.listSectionDividerVisible = listSectionDividerVisible;
|
|
35
|
+
profile.profileControlAvatarBadgeVisible = profileControlAvatarBadgeVisible;
|
|
36
|
+
profile.className = getGidsProfileClassNames({
|
|
37
|
+
profileControlAppearance,
|
|
38
|
+
profileControlBorderRadius,
|
|
39
|
+
profileControlShadow,
|
|
40
|
+
}, extraClasses);
|
|
41
|
+
if (onHeaderAvatarPress) {
|
|
42
|
+
profile.onHeaderAvatarPress = onHeaderAvatarPress;
|
|
43
|
+
}
|
|
44
|
+
if (onHeaderTitlePress) {
|
|
45
|
+
profile.onHeaderTitlePress = onHeaderTitlePress;
|
|
46
|
+
}
|
|
47
|
+
if (onHeaderSupportingTextPress) {
|
|
48
|
+
profile.onHeaderSupportingTextPress = onHeaderSupportingTextPress;
|
|
49
|
+
}
|
|
50
|
+
if (onProfileMenuItemPress) {
|
|
51
|
+
profile.onProfileMenuItemPress = onProfileMenuItemPress;
|
|
52
|
+
}
|
|
53
|
+
if (onPressProfileControl) {
|
|
54
|
+
profile.onPressProfileControl = onPressProfileControl;
|
|
55
|
+
}
|
|
56
|
+
return profile;
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=GidsProfile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsProfile.js","sourceRoot":"","sources":["../../../src/components/GidsProfile/GidsProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,mBAAmB,GACnB,MAAM,8BAA8B,CAAC;AAMtC,MAAM,EAAE,wBAAwB,EAAE,GAAG,mBAAmB,CAAC;AAezD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC9B,EAAE,EACF,MAAM,EACN,wBAAwB,GAAG,SAAS,EACpC,yBAAyB,EACzB,2BAA2B,GAAG,IAAI,EAClC,gCAAgC,GAAG,IAAI,EACvC,0BAA0B,GAAG,MAAM,EACnC,yBAAyB,EACzB,oBAAoB,GAAG,MAAM,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,0BAA0B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AAC,oCAAoC;QAC3C,oCAAoC,CAAC;IACtC,OAAO,CAAC,4BAA4B,GAAG,4BAA4B,CAAC;IACpE,OAAO,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IAClD,OAAO,CAAC,0BAA0B,GAAG,0BAA0B,CAAC;IAChE,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAC5C,OAAO,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IACpD,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;IACtC,OAAO,CAAC,UAAU,GAAG,UAAU,CAAC;IAChC,OAAO,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;IAC9D,OAAO,CAAC,gCAAgC,GAAG,gCAAgC,CAAC;IAE5E,OAAO,CAAC,SAAS,GAAG,wBAAwB,CAC3C;QACC,wBAAwB;QACxB,0BAA0B;QAC1B,oBAAoB;KACpB,EACD,YAAY,CACZ,CAAC;IAEF,IAAI,mBAAmB,EAAE,CAAC;QACzB,OAAO,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACnD,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACxB,OAAO,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IACjD,CAAC;IAED,IAAI,2BAA2B,EAAE,CAAC;QACjC,OAAO,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;IACnE,CAAC;IAED,IAAI,sBAAsB,EAAE,CAAC;QAC5B,OAAO,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;IACzD,CAAC;IAED,IAAI,qBAAqB,EAAE,CAAC;QAC3B,OAAO,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;IACvD,CAAC;IAED,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GidsProfileMenuWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
export type GidsProfileMenuBaseWebProps = GidsProfileMenuWebProps<Event, string>;
|
|
3
|
+
export interface GidsProfileMenuDomProps extends GidsProfileMenuBaseWebProps {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsProfileMenuDom: ({ headerItem, headerVisible, profileMenuItems, listSectionDividerVisible, headerDividerVisible, onHeaderAvatarPress, onHeaderTitlePress, onHeaderSupportingTextPress, onProfileMenuItemPress, extraClasses, }: GidsProfileMenuDomProps) => HTMLElement;
|
|
7
|
+
//# sourceMappingURL=GidsProfileMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsProfileMenu.d.ts","sourceRoot":"","sources":["../../../src/components/GidsProfileMenu/GidsProfileMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EAEvB,MAAM,8BAA8B,CAAC;AAItC,MAAM,MAAM,2BAA2B,GAAG,uBAAuB,CAChE,KAAK,EACL,MAAM,CACN,CAAC;AAIF,MAAM,WAAW,uBAAwB,SAAQ,2BAA2B;IAC3E,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,kBAAkB,GAAI,+MAWhC,uBAAuB,KAAG,WA8B5B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { GidsProfileMenuWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsProfileMenuClassNames } = GidsProfileMenuWebUtils;
|
|
3
|
+
export const GidsProfileMenuDom = ({ headerItem, headerVisible = false, profileMenuItems = [], listSectionDividerVisible = false, headerDividerVisible = true, onHeaderAvatarPress, onHeaderTitlePress, onHeaderSupportingTextPress, onProfileMenuItemPress, extraClasses, }) => {
|
|
4
|
+
const profileMenu = document.createElement('gids-profile-menu');
|
|
5
|
+
profileMenu.headerItem = headerItem;
|
|
6
|
+
profileMenu.headerVisible = headerVisible;
|
|
7
|
+
profileMenu.profileMenuItems = profileMenuItems;
|
|
8
|
+
profileMenu.listSectionDividerVisible = listSectionDividerVisible;
|
|
9
|
+
profileMenu.headerDividerVisible = headerDividerVisible;
|
|
10
|
+
profileMenu.className = getGidsProfileMenuClassNames(extraClasses);
|
|
11
|
+
if (onHeaderAvatarPress) {
|
|
12
|
+
profileMenu.onHeaderAvatarPress = onHeaderAvatarPress;
|
|
13
|
+
}
|
|
14
|
+
if (onHeaderTitlePress) {
|
|
15
|
+
profileMenu.onHeaderTitlePress = onHeaderTitlePress;
|
|
16
|
+
}
|
|
17
|
+
if (onHeaderSupportingTextPress) {
|
|
18
|
+
profileMenu.onHeaderSupportingTextPress = onHeaderSupportingTextPress;
|
|
19
|
+
}
|
|
20
|
+
if (onProfileMenuItemPress) {
|
|
21
|
+
profileMenu.onProfileMenuItemPress = onProfileMenuItemPress;
|
|
22
|
+
}
|
|
23
|
+
return profileMenu;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=GidsProfileMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsProfileMenu.js","sourceRoot":"","sources":["../../../src/components/GidsProfileMenu/GidsProfileMenu.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,uBAAuB,GACvB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,EAAE,4BAA4B,EAAE,GAAG,uBAAuB,CAAC;AAajE,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,UAAU,EACV,aAAa,GAAG,KAAK,EACrB,gBAAgB,GAAG,EAAE,EACrB,yBAAyB,GAAG,KAAK,EACjC,oBAAoB,GAAG,IAAI,EAC3B,mBAAmB,EACnB,kBAAkB,EAClB,2BAA2B,EAC3B,sBAAsB,EACtB,YAAY,GACa,EAAe,EAAE;IAC1C,MAAM,WAAW,GAAG,QAAQ,CAAC,aAAa,CACzC,mBAAmB,CACO,CAAC;IAE5B,WAAW,CAAC,UAAU,GAAG,UAAU,CAAC;IACpC,WAAW,CAAC,aAAa,GAAG,aAAa,CAAC;IAC1C,WAAW,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;IAChD,WAAW,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;IAClE,WAAW,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IAExD,WAAW,CAAC,SAAS,GAAG,4BAA4B,CAAC,YAAY,CAAC,CAAC;IAEnE,IAAI,mBAAmB,EAAE,CAAC;QACzB,WAAW,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IACvD,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACxB,WAAW,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IACrD,CAAC;IAED,IAAI,2BAA2B,EAAE,CAAC;QACjC,WAAW,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;IACvE,CAAC;IAED,IAAI,sBAAsB,EAAE,CAAC;QAC5B,WAAW,CAAC,sBAAsB,GAAG,sBAAsB,CAAC;IAC7D,CAAC;IAED,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GidsProfileMenuHeaderWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
export type GidsProfileMenuHeaderBaseWebProps = GidsProfileMenuHeaderWebProps<Event, string>;
|
|
3
|
+
export interface GidsProfileMenuHeaderDomProps extends GidsProfileMenuHeaderBaseWebProps {
|
|
4
|
+
extraClasses?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const GidsProfileMenuHeaderDom: ({ avatarProps, avatarVisible, avatarBadgeVisible, headerItemsPosition, headerTitle, headerSupportingText, onHeaderAvatarPress, onHeaderSupportingTextPress, onHeaderTitlePress, extraClasses, }: GidsProfileMenuHeaderDomProps) => HTMLElement;
|
|
7
|
+
//# sourceMappingURL=GidsProfileMenuHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsProfileMenuHeader.d.ts","sourceRoot":"","sources":["../../../src/components/GidsProfileMenuHeader/GidsProfileMenuHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,6BAA6B,EAE7B,MAAM,8BAA8B,CAAC;AAItC,MAAM,MAAM,iCAAiC,GAAG,6BAA6B,CAC5E,KAAK,EACL,MAAM,CACN,CAAC;AAKF,MAAM,WAAW,6BAA8B,SAAQ,iCAAiC;IACvF,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,wBAAwB,GAAI,iMAWtC,6BAA6B,KAAG,WAmClC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { GidsProfileMenuHeaderWebUtils, } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
const { getGidsProfileMenuHeaderClassNames } = GidsProfileMenuHeaderWebUtils;
|
|
3
|
+
export const GidsProfileMenuHeaderDom = ({ avatarProps, avatarVisible = true, avatarBadgeVisible = false, headerItemsPosition = 'default', headerTitle, headerSupportingText, onHeaderAvatarPress, onHeaderSupportingTextPress, onHeaderTitlePress, extraClasses, }) => {
|
|
4
|
+
const profileMenuHeader = document.createElement('gids-profile-menu-header');
|
|
5
|
+
profileMenuHeader.setAttribute('profile-menu-header-position', headerItemsPosition);
|
|
6
|
+
profileMenuHeader.avatarProps = avatarProps;
|
|
7
|
+
profileMenuHeader.headerItemsPosition = headerItemsPosition;
|
|
8
|
+
profileMenuHeader.headerTitle = headerTitle;
|
|
9
|
+
profileMenuHeader.headerSupportingText = headerSupportingText;
|
|
10
|
+
profileMenuHeader.avatarVisible = avatarVisible;
|
|
11
|
+
profileMenuHeader.avatarBadgeVisible = avatarBadgeVisible;
|
|
12
|
+
profileMenuHeader.className = getGidsProfileMenuHeaderClassNames({ headerItemsPosition }, extraClasses);
|
|
13
|
+
if (onHeaderAvatarPress) {
|
|
14
|
+
profileMenuHeader.onHeaderAvatarPress = onHeaderAvatarPress;
|
|
15
|
+
}
|
|
16
|
+
if (onHeaderSupportingTextPress) {
|
|
17
|
+
profileMenuHeader.onHeaderSupportingTextPress = onHeaderSupportingTextPress;
|
|
18
|
+
}
|
|
19
|
+
if (onHeaderTitlePress) {
|
|
20
|
+
profileMenuHeader.onHeaderTitlePress = onHeaderTitlePress;
|
|
21
|
+
}
|
|
22
|
+
return profileMenuHeader;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=GidsProfileMenuHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GidsProfileMenuHeader.js","sourceRoot":"","sources":["../../../src/components/GidsProfileMenuHeader/GidsProfileMenuHeader.ts"],"names":[],"mappings":"AAAA,OAAO,EAEN,6BAA6B,GAC7B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,EAAE,kCAAkC,EAAE,GAAG,6BAA6B,CAAC;AAc7E,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,EACxC,WAAW,EACX,aAAa,GAAG,IAAI,EACpB,kBAAkB,GAAG,KAAK,EAC1B,mBAAmB,GAAG,SAAS,EAC/B,WAAW,EACX,oBAAoB,EACpB,mBAAmB,EACnB,2BAA2B,EAC3B,kBAAkB,EAClB,YAAY,GACmB,EAAe,EAAE;IAChD,MAAM,iBAAiB,GAAG,QAAQ,CAAC,aAAa,CAC/C,0BAA0B,CACM,CAAC;IAElC,iBAAiB,CAAC,YAAY,CAC7B,8BAA8B,EAC9B,mBAAmB,CACnB,CAAC;IAEF,iBAAiB,CAAC,WAAW,GAAG,WAAW,CAAC;IAC5C,iBAAiB,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IAC5D,iBAAiB,CAAC,WAAW,GAAG,WAAW,CAAC;IAC5C,iBAAiB,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;IAC9D,iBAAiB,CAAC,aAAa,GAAG,aAAa,CAAC;IAChD,iBAAiB,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAE1D,iBAAiB,CAAC,SAAS,GAAG,kCAAkC,CAC/D,EAAE,mBAAmB,EAAE,EACvB,YAAY,CACZ,CAAC;IAEF,IAAI,mBAAmB,EAAE,CAAC;QACzB,iBAAiB,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;IAC7D,CAAC;IAED,IAAI,2BAA2B,EAAE,CAAC;QACjC,iBAAiB,CAAC,2BAA2B,GAAG,2BAA2B,CAAC;IAC7E,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACxB,iBAAiB,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC3D,CAAC;IAED,OAAO,iBAAiB,CAAC;AAC1B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type GidsSkeletonWebProps } from '@ganpatiinfo/gids-web-shared';
|
|
2
|
+
type GidsSkeletonBaseWebProps = GidsSkeletonWebProps;
|
|
3
|
+
export interface GidsSkeletonDomProps 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
|