@ganpatiinfo/gids-web-dom-reference 14.1.0 → 15.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @ganpatiinfo/gids-web-dom-reference
2
2
 
3
+ ## 15.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 6ee0f79: - Fixed selection issue in `GidsProfileMenu` and `GidsProfile` web components for all web platforms
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [6ee0f79]
12
+ - @ganpatiinfo/gids-core-shared@15.0.0
13
+ - @ganpatiinfo/gids-web-shared@13.1.1
14
+
3
15
  ## 14.1.0
4
16
 
5
17
  ### Minor Changes
@@ -3,5 +3,5 @@ export type GidsProfileMenuBaseWebProps = GidsProfileMenuWebProps<Event, string>
3
3
  export interface GidsProfileMenuDomProps extends GidsProfileMenuBaseWebProps {
4
4
  extraClasses?: string;
5
5
  }
6
- export declare const GidsProfileMenuDom: ({ headerItem, headerVisible, profileMenuItems, listSectionDividerVisible, headerDividerVisible, onHeaderAvatarPress, onHeaderTitlePress, onHeaderSupportingTextPress, onProfileMenuItemPress, extraClasses, }: GidsProfileMenuDomProps) => HTMLElement;
6
+ export declare const GidsProfileMenuDom: ({ headerItem, headerVisible, profileMenuItems, selectedProfileMenuItemId, listSectionDividerVisible, headerDividerVisible, onHeaderAvatarPress, onHeaderTitlePress, onHeaderSupportingTextPress, onProfileMenuItemPress, extraClasses, }: GidsProfileMenuDomProps) => HTMLElement;
7
7
  //# sourceMappingURL=GidsProfileMenu.d.ts.map
@@ -1 +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"}
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,0OAYhC,uBAAuB,KAAG,WA+B5B,CAAC"}
@@ -1,12 +1,13 @@
1
1
  import { GidsProfileMenuWebUtils, } from '@ganpatiinfo/gids-web-shared';
2
2
  const { getGidsProfileMenuClassNames } = GidsProfileMenuWebUtils;
3
- export const GidsProfileMenuDom = ({ headerItem, headerVisible = false, profileMenuItems = [], listSectionDividerVisible = false, headerDividerVisible = true, onHeaderAvatarPress, onHeaderTitlePress, onHeaderSupportingTextPress, onProfileMenuItemPress, extraClasses, }) => {
3
+ export const GidsProfileMenuDom = ({ headerItem, headerVisible = false, profileMenuItems = [], selectedProfileMenuItemId, listSectionDividerVisible = false, headerDividerVisible = true, onHeaderAvatarPress, onHeaderTitlePress, onHeaderSupportingTextPress, onProfileMenuItemPress, extraClasses, }) => {
4
4
  const profileMenu = document.createElement('gids-profile-menu');
5
5
  profileMenu.headerItem = headerItem;
6
6
  profileMenu.headerVisible = headerVisible;
7
7
  profileMenu.profileMenuItems = profileMenuItems;
8
8
  profileMenu.listSectionDividerVisible = listSectionDividerVisible;
9
9
  profileMenu.headerDividerVisible = headerDividerVisible;
10
+ profileMenu.selectedProfileMenuItemId = selectedProfileMenuItemId;
10
11
  profileMenu.className = getGidsProfileMenuClassNames(extraClasses);
11
12
  if (onHeaderAvatarPress) {
12
13
  profileMenu.onHeaderAvatarPress = onHeaderAvatarPress;
@@ -1 +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"}
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,EACzB,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;IACxD,WAAW,CAAC,yBAAyB,GAAG,yBAAyB,CAAC;IAElE,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganpatiinfo/gids-web-dom-reference",
3
- "version": "14.1.0",
3
+ "version": "15.0.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.1.0",
28
- "@ganpatiinfo/gids-web-shared": "13.1.0"
27
+ "@ganpatiinfo/gids-core-shared": "15.0.0",
28
+ "@ganpatiinfo/gids-web-shared": "13.1.1"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@ganpatiinfo/gids-web-theme-interface": "7.0.0",
@@ -20,6 +20,7 @@ export const GidsProfileMenuDom = ({
20
20
  headerItem,
21
21
  headerVisible = false,
22
22
  profileMenuItems = [],
23
+ selectedProfileMenuItemId,
23
24
  listSectionDividerVisible = false,
24
25
  headerDividerVisible = true,
25
26
  onHeaderAvatarPress,
@@ -37,6 +38,7 @@ export const GidsProfileMenuDom = ({
37
38
  profileMenu.profileMenuItems = profileMenuItems;
38
39
  profileMenu.listSectionDividerVisible = listSectionDividerVisible;
39
40
  profileMenu.headerDividerVisible = headerDividerVisible;
41
+ profileMenu.selectedProfileMenuItemId = selectedProfileMenuItemId;
40
42
 
41
43
  profileMenu.className = getGidsProfileMenuClassNames(extraClasses);
42
44