@ganpatiinfo/gids-web-dom-reference 14.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 +20 -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/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/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/GidsHeaderNavigation/GidsHeaderNavigation.ts +75 -0
- package/src/components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.ts +103 -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/index.ts +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @ganpatiinfo/gids-web-dom-reference
|
|
2
2
|
|
|
3
|
+
## 14.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a09b469: - Developed `GidsHeaderNavigation` web component for all web platforms
|
|
8
|
+
- 26a6469: - Developed `GidsProfileMenu` web component for all web platforms
|
|
9
|
+
- a09b469: - Developed `GidsHeaderNavigationItem` web component for all web platforms
|
|
10
|
+
- 26a6469: - Developed `GidsProfileMenuHeader` web component for all web platforms
|
|
11
|
+
- 26a6469: - Developed `GidsProfile` web component for all web platforms
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [a09b469]
|
|
16
|
+
- Updated dependencies [26a6469]
|
|
17
|
+
- Updated dependencies [a09b469]
|
|
18
|
+
- Updated dependencies [26a6469]
|
|
19
|
+
- Updated dependencies [26a6469]
|
|
20
|
+
- @ganpatiinfo/gids-core-shared@14.1.0
|
|
21
|
+
- @ganpatiinfo/gids-web-shared@13.1.0
|
|
22
|
+
|
|
3
23
|
## 14.0.0
|
|
4
24
|
|
|
5
25
|
### Major Changes
|
|
@@ -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,W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I,EAAE,IAAI,EAAE,EACd,YAAY,CACZ,CAAC;IAEF,IAAI,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,Q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AoB,CAAC,KAAK,GAAG,KAAK,CAAC;IACnC,oBAAoB,CAAC,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"}
|
|
@@ -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,EAC1B,gBAAgB,GAAG,EAAE,EACrB,oBAAoB,GAA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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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -71,6 +71,8 @@ export * from './components/GidsExpansionGroup/GidsExpansionGroup.js';
|
|
|
71
71
|
export * from './components/GidsFeedbackBlock/GidsFeedbackBlock.js';
|
|
72
72
|
export * from './components/GidsField/GidsField.js';
|
|
73
73
|
export * from './components/GidsFilter/GidsFilter.js';
|
|
74
|
+
export * from './components/GidsHeaderNavigation/GidsHeaderNavigation.js';
|
|
75
|
+
export * from './components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.js';
|
|
74
76
|
export * from './components/GidsHeading/GidsHeading.js';
|
|
75
77
|
export * from './components/GidsIcon/GidsIcon.js';
|
|
76
78
|
export * from './components/GidsInput/GidsInput.js';
|
|
@@ -98,6 +100,9 @@ export * from './components/GidsPaginatorItem/GidsPaginatorItem.js';
|
|
|
98
100
|
export * from './components/GidsPasswordField/GidsPasswordField.js';
|
|
99
101
|
export * from './components/GidsPieChart/GidsPieChart.js';
|
|
100
102
|
export * from './components/GidsPopover/GidsPopover.js';
|
|
103
|
+
export * from './components/GidsProfile/GidsProfile.js';
|
|
104
|
+
export * from './components/GidsProfileMenu/GidsProfileMenu.js';
|
|
105
|
+
export * from './components/GidsProfileMenuHeader/GidsProfileMenuHeader.js';
|
|
101
106
|
export * from './components/GidsProgressBar/GidsProgressBar.js';
|
|
102
107
|
export * from './components/GidsProgressCircle/GidsProgressCircle.js';
|
|
103
108
|
export * from './components/GidsRadio/GidsRadio.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,0DAA0D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1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAElE;;GAEG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -71,6 +71,8 @@ export * from './components/GidsExpansionGroup/GidsExpansionGroup.js';
|
|
|
71
71
|
export * from './components/GidsFeedbackBlock/GidsFeedbackBlock.js';
|
|
72
72
|
export * from './components/GidsField/GidsField.js';
|
|
73
73
|
export * from './components/GidsFilter/GidsFilter.js';
|
|
74
|
+
export * from './components/GidsHeaderNavigation/GidsHeaderNavigation.js';
|
|
75
|
+
export * from './components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.js';
|
|
74
76
|
export * from './components/GidsHeading/GidsHeading.js';
|
|
75
77
|
export * from './components/GidsIcon/GidsIcon.js';
|
|
76
78
|
export * from './components/GidsInput/GidsInput.js';
|
|
@@ -98,6 +100,9 @@ export * from './components/GidsPaginatorItem/GidsPaginatorItem.js';
|
|
|
98
100
|
export * from './components/GidsPasswordField/GidsPasswordField.js';
|
|
99
101
|
export * from './components/GidsPieChart/GidsPieChart.js';
|
|
100
102
|
export * from './components/GidsPopover/GidsPopover.js';
|
|
103
|
+
export * from './components/GidsProfile/GidsProfile.js';
|
|
104
|
+
export * from './components/GidsProfileMenu/GidsProfileMenu.js';
|
|
105
|
+
export * from './components/GidsProfileMenuHeader/GidsProfileMenuHeader.js';
|
|
101
106
|
export * from './components/GidsProgressBar/GidsProgressBar.js';
|
|
102
107
|
export * from './components/GidsProgressCircle/GidsProgressCircle.js';
|
|
103
108
|
export * from './components/GidsRadio/GidsRadio.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources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9E,cAAc,iDAAiD,CAAC;AAChE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mDAAmD,CAAC;AAClE,cAAc,yCAAyC,CAAC;AACxD,cAAc,qDAAqD,CAAC;AACpE,cAAc,mDAAmD,CAAC;AAElE;;GAEG;AACH,cAAc,qBAAqB,CAAC;AACpC,cAAc,oCAAoC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ganpatiinfo/gids-web-dom-reference",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "DOM for components reference implementations",
|
|
6
6
|
"homepage": "https://ganpatiinfo-design-system.onrender.com/",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"directory": "packages/private/web-dom-reference"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ganpatiinfo/gids-core-shared": "14.
|
|
28
|
-
"@ganpatiinfo/gids-web-shared": "13.
|
|
27
|
+
"@ganpatiinfo/gids-core-shared": "14.1.0",
|
|
28
|
+
"@ganpatiinfo/gids-web-shared": "13.1.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@ganpatiinfo/gids-web-theme-interface": "7.0.0",
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GidsHeaderNavigationWebProps,
|
|
3
|
+
GidsHeaderNavigationWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
import { IconName } from '@ganpatiinfo/gids-web-theme-interface';
|
|
6
|
+
|
|
7
|
+
const { getGidsHeaderNavigationClassNames } = GidsHeaderNavigationWebUtils;
|
|
8
|
+
|
|
9
|
+
export type GidsHeaderNavigationBaseWebProps = GidsHeaderNavigationWebProps<
|
|
10
|
+
Event,
|
|
11
|
+
IconName
|
|
12
|
+
>;
|
|
13
|
+
|
|
14
|
+
type GidsHeaderNavigationElement = HTMLElement &
|
|
15
|
+
GidsHeaderNavigationBaseWebProps;
|
|
16
|
+
|
|
17
|
+
export interface GidsHeaderNavigationDomProps extends GidsHeaderNavigationBaseWebProps {
|
|
18
|
+
extraClasses?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const GidsHeaderNavigationDom = ({
|
|
22
|
+
type = 'gap',
|
|
23
|
+
navMenus = [],
|
|
24
|
+
appearance = 'default',
|
|
25
|
+
selectionAppearance = 'default',
|
|
26
|
+
applyShadow = false,
|
|
27
|
+
borderRadius = 'none',
|
|
28
|
+
mode = 'wrap',
|
|
29
|
+
applySeparators = false,
|
|
30
|
+
size = 'md',
|
|
31
|
+
selectionType = 'single-deselection-not-allowed',
|
|
32
|
+
defaultNavItemId,
|
|
33
|
+
defaultNavMenuId,
|
|
34
|
+
defaultNavMenuItemId,
|
|
35
|
+
onHeaderNavigationItemChange,
|
|
36
|
+
extraClasses,
|
|
37
|
+
}: GidsHeaderNavigationDomProps): HTMLElement => {
|
|
38
|
+
const headerNavigation = document.createElement(
|
|
39
|
+
'gids-header-navigation',
|
|
40
|
+
) as GidsHeaderNavigationElement;
|
|
41
|
+
|
|
42
|
+
headerNavigation.setAttribute('header-nav-appearance', appearance);
|
|
43
|
+
headerNavigation.setAttribute('header-nav-size', size);
|
|
44
|
+
headerNavigation.setAttribute(
|
|
45
|
+
'header-nav-selection-appearance',
|
|
46
|
+
selectionAppearance,
|
|
47
|
+
);
|
|
48
|
+
headerNavigation.setAttribute('header-nav-type', type);
|
|
49
|
+
|
|
50
|
+
headerNavigation.navMenus = navMenus;
|
|
51
|
+
headerNavigation.appearance = appearance;
|
|
52
|
+
headerNavigation.selectionAppearance = selectionAppearance;
|
|
53
|
+
headerNavigation.applyShadow = applyShadow;
|
|
54
|
+
headerNavigation.borderRadius = borderRadius;
|
|
55
|
+
headerNavigation.mode = mode;
|
|
56
|
+
headerNavigation.applySeparators = applySeparators;
|
|
57
|
+
headerNavigation.size = size;
|
|
58
|
+
headerNavigation.type = type;
|
|
59
|
+
headerNavigation.selectionType = selectionType;
|
|
60
|
+
headerNavigation.defaultNavItemId = defaultNavItemId;
|
|
61
|
+
headerNavigation.defaultNavMenuId = defaultNavMenuId;
|
|
62
|
+
headerNavigation.defaultNavMenuItemId = defaultNavMenuItemId;
|
|
63
|
+
|
|
64
|
+
headerNavigation.className = getGidsHeaderNavigationClassNames(
|
|
65
|
+
{ mode, type },
|
|
66
|
+
extraClasses,
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
if (onHeaderNavigationItemChange) {
|
|
70
|
+
headerNavigation.onHeaderNavigationItemChange =
|
|
71
|
+
onHeaderNavigationItemChange;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return headerNavigation;
|
|
75
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GidsHeaderNavigationItemWebProps,
|
|
3
|
+
GidsHeaderNavigationItemWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
import { assignToSlot, DomChildren } from '../../utils/domUtils';
|
|
6
|
+
|
|
7
|
+
const { getGidsHeaderNavigationItemClassNames } =
|
|
8
|
+
GidsHeaderNavigationItemWebUtils;
|
|
9
|
+
|
|
10
|
+
export type GidsHeaderNavigationItemBaseWebProps =
|
|
11
|
+
GidsHeaderNavigationItemWebProps<Event, DomChildren>;
|
|
12
|
+
|
|
13
|
+
type GidsHeaderNavigationItemElement = HTMLElement &
|
|
14
|
+
GidsHeaderNavigationItemBaseWebProps;
|
|
15
|
+
|
|
16
|
+
export interface GidsHeaderNavigationItemDomProps extends GidsHeaderNavigationItemBaseWebProps {
|
|
17
|
+
extraClasses?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const GidsHeaderNavigationItemDom = ({
|
|
21
|
+
id,
|
|
22
|
+
menuId,
|
|
23
|
+
appearance = 'default',
|
|
24
|
+
selectionAppearance = 'default',
|
|
25
|
+
expanded = false,
|
|
26
|
+
selected = false,
|
|
27
|
+
selectedMenuItemId,
|
|
28
|
+
label,
|
|
29
|
+
leadingIcon,
|
|
30
|
+
menuItems = [],
|
|
31
|
+
size = 'sm',
|
|
32
|
+
borderRadius = 'none',
|
|
33
|
+
applyShadow = false,
|
|
34
|
+
selectionType = 'single-deselection-allowed',
|
|
35
|
+
onPressNavigationItem,
|
|
36
|
+
onMenuItemChange,
|
|
37
|
+
extraClasses,
|
|
38
|
+
}: GidsHeaderNavigationItemDomProps): HTMLElement => {
|
|
39
|
+
const headerNavigationItem = document.createElement(
|
|
40
|
+
'gids-header-navigation-item',
|
|
41
|
+
) as GidsHeaderNavigationItemElement;
|
|
42
|
+
|
|
43
|
+
headerNavigationItem.setAttribute('id', id);
|
|
44
|
+
headerNavigationItem.setAttribute('header-nav-item-appearance', appearance);
|
|
45
|
+
headerNavigationItem.setAttribute('header-nav-item-size', size);
|
|
46
|
+
headerNavigationItem.setAttribute(
|
|
47
|
+
'header-nav-item-selection-appearance',
|
|
48
|
+
selectionAppearance,
|
|
49
|
+
);
|
|
50
|
+
if (menuId) {
|
|
51
|
+
headerNavigationItem.setAttribute('menu-id', menuId);
|
|
52
|
+
}
|
|
53
|
+
if (selected) {
|
|
54
|
+
headerNavigationItem.setAttribute('header-nav-item-selected', 'true');
|
|
55
|
+
} else {
|
|
56
|
+
headerNavigationItem.removeAttribute('header-nav-item-selected');
|
|
57
|
+
}
|
|
58
|
+
if (expanded) {
|
|
59
|
+
headerNavigationItem.setAttribute('header-nav-item-expanded', 'true');
|
|
60
|
+
} else {
|
|
61
|
+
headerNavigationItem.removeAttribute('header-nav-item-expanded');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
headerNavigationItem.id = id;
|
|
65
|
+
headerNavigationItem.appearance = appearance;
|
|
66
|
+
headerNavigationItem.selectionAppearance = selectionAppearance;
|
|
67
|
+
headerNavigationItem.selected = selected;
|
|
68
|
+
headerNavigationItem.label = label;
|
|
69
|
+
headerNavigationItem.menuItems = menuItems;
|
|
70
|
+
headerNavigationItem.size = size;
|
|
71
|
+
headerNavigationItem.expanded = expanded;
|
|
72
|
+
headerNavigationItem.borderRadius = borderRadius;
|
|
73
|
+
headerNavigationItem.applyShadow = applyShadow;
|
|
74
|
+
headerNavigationItem.selectedMenuItemId = selectedMenuItemId;
|
|
75
|
+
headerNavigationItem.selectionType = selectionType;
|
|
76
|
+
|
|
77
|
+
if (leadingIcon) {
|
|
78
|
+
// @ts-expect-error error expected
|
|
79
|
+
assignToSlot(headerNavigationItem, 'headerNavItemLeadingIcon', leadingIcon);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
headerNavigationItem.className = getGidsHeaderNavigationItemClassNames(
|
|
83
|
+
{
|
|
84
|
+
selected,
|
|
85
|
+
appearance,
|
|
86
|
+
selectionAppearance,
|
|
87
|
+
size,
|
|
88
|
+
applyShadow,
|
|
89
|
+
borderRadius,
|
|
90
|
+
},
|
|
91
|
+
extraClasses,
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
if (onPressNavigationItem) {
|
|
95
|
+
headerNavigationItem.onPressNavigationItem = onPressNavigationItem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (onMenuItemChange) {
|
|
99
|
+
headerNavigationItem.onMenuItemChange = onMenuItemChange;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return headerNavigationItem;
|
|
103
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GidsProfileWebProps,
|
|
3
|
+
GidsProfileWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
import {
|
|
6
|
+
IconAppearance,
|
|
7
|
+
IconName,
|
|
8
|
+
} from '@ganpatiinfo/gids-web-theme-interface';
|
|
9
|
+
|
|
10
|
+
const { getGidsProfileClassNames } = GidsProfileWebUtils;
|
|
11
|
+
|
|
12
|
+
export type GidsProfileBaseWebProps = GidsProfileWebProps<
|
|
13
|
+
Event,
|
|
14
|
+
IconName,
|
|
15
|
+
IconAppearance,
|
|
16
|
+
string
|
|
17
|
+
>;
|
|
18
|
+
|
|
19
|
+
type GidsProfileElement = HTMLElement & GidsProfileBaseWebProps;
|
|
20
|
+
|
|
21
|
+
export interface GidsProfileDomProps extends GidsProfileBaseWebProps {
|
|
22
|
+
extraClasses?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GidsProfileDom = ({
|
|
26
|
+
id,
|
|
27
|
+
menuId,
|
|
28
|
+
profileControlAppearance = 'default',
|
|
29
|
+
profileControlAvatarProps,
|
|
30
|
+
profileControlAvatarVisible = true,
|
|
31
|
+
profileControlAvatarBadgeVisible = true,
|
|
32
|
+
profileControlBorderRadius = 'none',
|
|
33
|
+
profileControlLeadingIcon,
|
|
34
|
+
profileControlShadow = 'none',
|
|
35
|
+
profileControlSupportingText,
|
|
36
|
+
profileControlTitle,
|
|
37
|
+
profileControlTrailingIcon,
|
|
38
|
+
profileMenuItems = [],
|
|
39
|
+
headerDividerVisible = false,
|
|
40
|
+
headerVisible = false,
|
|
41
|
+
headerItem,
|
|
42
|
+
expanded = false,
|
|
43
|
+
listSectionDividerVisible = false,
|
|
44
|
+
profileControlLeadingIconSize = 'sm',
|
|
45
|
+
profileControlTrailingIconSize = 'sm',
|
|
46
|
+
profileControlLeadingIconAppearance = 'filled',
|
|
47
|
+
profileControlTrailingIconAppearance = 'filled',
|
|
48
|
+
onHeaderAvatarPress,
|
|
49
|
+
onHeaderSupportingTextPress,
|
|
50
|
+
onHeaderTitlePress,
|
|
51
|
+
onProfileMenuItemPress,
|
|
52
|
+
onPressProfileControl,
|
|
53
|
+
extraClasses,
|
|
54
|
+
}: GidsProfileDomProps): HTMLElement => {
|
|
55
|
+
const profile = document.createElement('gids-profile') as GidsProfileElement;
|
|
56
|
+
|
|
57
|
+
profile.setAttribute('id', id);
|
|
58
|
+
|
|
59
|
+
if (expanded) {
|
|
60
|
+
profile.setAttribute('menu-expanded', 'true');
|
|
61
|
+
} else {
|
|
62
|
+
profile.removeAttribute('menu-expanded');
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
profile.id = id;
|
|
66
|
+
profile.menuId = menuId;
|
|
67
|
+
profile.expanded = expanded;
|
|
68
|
+
profile.profileControlAppearance = profileControlAppearance;
|
|
69
|
+
profile.profileControlBorderRadius = profileControlBorderRadius;
|
|
70
|
+
profile.profileControlShadow = profileControlShadow;
|
|
71
|
+
profile.profileControlAvatarProps = profileControlAvatarProps;
|
|
72
|
+
profile.profileControlAvatarVisible = profileControlAvatarVisible;
|
|
73
|
+
profile.profileControlLeadingIcon = profileControlLeadingIcon;
|
|
74
|
+
profile.profileControlLeadingIconSize = profileControlLeadingIconSize;
|
|
75
|
+
profile.profileControlTrailingIconSize = profileControlTrailingIconSize;
|
|
76
|
+
profile.profileControlLeadingIconAppearance =
|
|
77
|
+
profileControlLeadingIconAppearance;
|
|
78
|
+
profile.profileControlTrailingIconAppearance =
|
|
79
|
+
profileControlTrailingIconAppearance;
|
|
80
|
+
profile.profileControlSupportingText = profileControlSupportingText;
|
|
81
|
+
profile.profileControlTitle = profileControlTitle;
|
|
82
|
+
profile.profileControlTrailingIcon = profileControlTrailingIcon;
|
|
83
|
+
profile.profileMenuItems = profileMenuItems;
|
|
84
|
+
profile.headerDividerVisible = headerDividerVisible;
|
|
85
|
+
profile.headerVisible = headerVisible;
|
|
86
|
+
profile.headerItem = headerItem;
|
|
87
|
+
profile.listSectionDividerVisible = listSectionDividerVisible;
|
|
88
|
+
profile.profileControlAvatarBadgeVisible = profileControlAvatarBadgeVisible;
|
|
89
|
+
|
|
90
|
+
profile.className = getGidsProfileClassNames(
|
|
91
|
+
{
|
|
92
|
+
profileControlAppearance,
|
|
93
|
+
profileControlBorderRadius,
|
|
94
|
+
profileControlShadow,
|
|
95
|
+
},
|
|
96
|
+
extraClasses,
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
if (onHeaderAvatarPress) {
|
|
100
|
+
profile.onHeaderAvatarPress = onHeaderAvatarPress;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (onHeaderTitlePress) {
|
|
104
|
+
profile.onHeaderTitlePress = onHeaderTitlePress;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
if (onHeaderSupportingTextPress) {
|
|
108
|
+
profile.onHeaderSupportingTextPress = onHeaderSupportingTextPress;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
if (onProfileMenuItemPress) {
|
|
112
|
+
profile.onProfileMenuItemPress = onProfileMenuItemPress;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
if (onPressProfileControl) {
|
|
116
|
+
profile.onPressProfileControl = onPressProfileControl;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return profile;
|
|
120
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GidsProfileMenuWebProps,
|
|
3
|
+
GidsProfileMenuWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
|
|
6
|
+
const { getGidsProfileMenuClassNames } = GidsProfileMenuWebUtils;
|
|
7
|
+
|
|
8
|
+
export type GidsProfileMenuBaseWebProps = GidsProfileMenuWebProps<
|
|
9
|
+
Event,
|
|
10
|
+
string
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
type GidsProfileMenuElement = HTMLElement & GidsProfileMenuBaseWebProps;
|
|
14
|
+
|
|
15
|
+
export interface GidsProfileMenuDomProps extends GidsProfileMenuBaseWebProps {
|
|
16
|
+
extraClasses?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export const GidsProfileMenuDom = ({
|
|
20
|
+
headerItem,
|
|
21
|
+
headerVisible = false,
|
|
22
|
+
profileMenuItems = [],
|
|
23
|
+
listSectionDividerVisible = false,
|
|
24
|
+
headerDividerVisible = true,
|
|
25
|
+
onHeaderAvatarPress,
|
|
26
|
+
onHeaderTitlePress,
|
|
27
|
+
onHeaderSupportingTextPress,
|
|
28
|
+
onProfileMenuItemPress,
|
|
29
|
+
extraClasses,
|
|
30
|
+
}: GidsProfileMenuDomProps): HTMLElement => {
|
|
31
|
+
const profileMenu = document.createElement(
|
|
32
|
+
'gids-profile-menu',
|
|
33
|
+
) as GidsProfileMenuElement;
|
|
34
|
+
|
|
35
|
+
profileMenu.headerItem = headerItem;
|
|
36
|
+
profileMenu.headerVisible = headerVisible;
|
|
37
|
+
profileMenu.profileMenuItems = profileMenuItems;
|
|
38
|
+
profileMenu.listSectionDividerVisible = listSectionDividerVisible;
|
|
39
|
+
profileMenu.headerDividerVisible = headerDividerVisible;
|
|
40
|
+
|
|
41
|
+
profileMenu.className = getGidsProfileMenuClassNames(extraClasses);
|
|
42
|
+
|
|
43
|
+
if (onHeaderAvatarPress) {
|
|
44
|
+
profileMenu.onHeaderAvatarPress = onHeaderAvatarPress;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (onHeaderTitlePress) {
|
|
48
|
+
profileMenu.onHeaderTitlePress = onHeaderTitlePress;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (onHeaderSupportingTextPress) {
|
|
52
|
+
profileMenu.onHeaderSupportingTextPress = onHeaderSupportingTextPress;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (onProfileMenuItemPress) {
|
|
56
|
+
profileMenu.onProfileMenuItemPress = onProfileMenuItemPress;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return profileMenu;
|
|
60
|
+
};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GidsProfileMenuHeaderWebProps,
|
|
3
|
+
GidsProfileMenuHeaderWebUtils,
|
|
4
|
+
} from '@ganpatiinfo/gids-web-shared';
|
|
5
|
+
|
|
6
|
+
const { getGidsProfileMenuHeaderClassNames } = GidsProfileMenuHeaderWebUtils;
|
|
7
|
+
|
|
8
|
+
export type GidsProfileMenuHeaderBaseWebProps = GidsProfileMenuHeaderWebProps<
|
|
9
|
+
Event,
|
|
10
|
+
string
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
type GidsProfileMenuHeaderElement = HTMLElement &
|
|
14
|
+
GidsProfileMenuHeaderBaseWebProps;
|
|
15
|
+
|
|
16
|
+
export interface GidsProfileMenuHeaderDomProps extends GidsProfileMenuHeaderBaseWebProps {
|
|
17
|
+
extraClasses?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const GidsProfileMenuHeaderDom = ({
|
|
21
|
+
avatarProps,
|
|
22
|
+
avatarVisible = true,
|
|
23
|
+
avatarBadgeVisible = false,
|
|
24
|
+
headerItemsPosition = 'default',
|
|
25
|
+
headerTitle,
|
|
26
|
+
headerSupportingText,
|
|
27
|
+
onHeaderAvatarPress,
|
|
28
|
+
onHeaderSupportingTextPress,
|
|
29
|
+
onHeaderTitlePress,
|
|
30
|
+
extraClasses,
|
|
31
|
+
}: GidsProfileMenuHeaderDomProps): HTMLElement => {
|
|
32
|
+
const profileMenuHeader = document.createElement(
|
|
33
|
+
'gids-profile-menu-header',
|
|
34
|
+
) as GidsProfileMenuHeaderElement;
|
|
35
|
+
|
|
36
|
+
profileMenuHeader.setAttribute(
|
|
37
|
+
'profile-menu-header-position',
|
|
38
|
+
headerItemsPosition,
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
profileMenuHeader.avatarProps = avatarProps;
|
|
42
|
+
profileMenuHeader.headerItemsPosition = headerItemsPosition;
|
|
43
|
+
profileMenuHeader.headerTitle = headerTitle;
|
|
44
|
+
profileMenuHeader.headerSupportingText = headerSupportingText;
|
|
45
|
+
profileMenuHeader.avatarVisible = avatarVisible;
|
|
46
|
+
profileMenuHeader.avatarBadgeVisible = avatarBadgeVisible;
|
|
47
|
+
|
|
48
|
+
profileMenuHeader.className = getGidsProfileMenuHeaderClassNames(
|
|
49
|
+
{ headerItemsPosition },
|
|
50
|
+
extraClasses,
|
|
51
|
+
);
|
|
52
|
+
|
|
53
|
+
if (onHeaderAvatarPress) {
|
|
54
|
+
profileMenuHeader.onHeaderAvatarPress = onHeaderAvatarPress;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (onHeaderSupportingTextPress) {
|
|
58
|
+
profileMenuHeader.onHeaderSupportingTextPress = onHeaderSupportingTextPress;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if (onHeaderTitlePress) {
|
|
62
|
+
profileMenuHeader.onHeaderTitlePress = onHeaderTitlePress;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return profileMenuHeader;
|
|
66
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -71,6 +71,8 @@ export * from './components/GidsExpansionGroup/GidsExpansionGroup.js';
|
|
|
71
71
|
export * from './components/GidsFeedbackBlock/GidsFeedbackBlock.js';
|
|
72
72
|
export * from './components/GidsField/GidsField.js';
|
|
73
73
|
export * from './components/GidsFilter/GidsFilter.js';
|
|
74
|
+
export * from './components/GidsHeaderNavigation/GidsHeaderNavigation.js';
|
|
75
|
+
export * from './components/GidsHeaderNavigationItem/GidsHeaderNavigationItem.js';
|
|
74
76
|
export * from './components/GidsHeading/GidsHeading.js';
|
|
75
77
|
export * from './components/GidsIcon/GidsIcon.js';
|
|
76
78
|
export * from './components/GidsInput/GidsInput.js';
|
|
@@ -98,6 +100,9 @@ export * from './components/GidsPaginatorItem/GidsPaginatorItem.js';
|
|
|
98
100
|
export * from './components/GidsPasswordField/GidsPasswordField.js';
|
|
99
101
|
export * from './components/GidsPieChart/GidsPieChart.js';
|
|
100
102
|
export * from './components/GidsPopover/GidsPopover.js';
|
|
103
|
+
export * from './components/GidsProfile/GidsProfile.js';
|
|
104
|
+
export * from './components/GidsProfileMenu/GidsProfileMenu.js';
|
|
105
|
+
export * from './components/GidsProfileMenuHeader/GidsProfileMenuHeader.js';
|
|
101
106
|
export * from './components/GidsProgressBar/GidsProgressBar.js';
|
|
102
107
|
export * from './components/GidsProgressCircle/GidsProgressCircle.js';
|
|
103
108
|
export * from './components/GidsRadio/GidsRadio.js';
|