datastake-daf 0.6.682 → 0.6.684

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.
@@ -5984,6 +5984,12 @@ function MobileDrawer({
5984
5984
  }
5985
5985
  });
5986
5986
  };
5987
+ console.log({
5988
+ mod,
5989
+ user,
5990
+ isCollapsed,
5991
+ moduleInterfaceConfig
5992
+ });
5987
5993
  return /*#__PURE__*/jsxRuntime.jsx(Style$5, {
5988
5994
  className: formatClassname([!drawerOpened && 'closed', isUserDropdown && 'user-dropdown']),
5989
5995
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -6052,7 +6058,8 @@ const UserDropdownMenu = ({
6052
6058
  appName = 'app',
6053
6059
  userHelpers = {},
6054
6060
  isDev = false,
6055
- theme = {}
6061
+ theme = {},
6062
+ moduleInterfaceConfig = null
6056
6063
  }) => {
6057
6064
  const resizeContext = useResizeContext();
6058
6065
  const {
@@ -6118,10 +6125,10 @@ const UserDropdownMenu = ({
6118
6125
  logOut: logOut,
6119
6126
  changeNotificationState: changeNotificationState,
6120
6127
  appName: appName,
6121
- theme: theme
6128
+ theme: theme,
6129
+ moduleInterfaceConfig: moduleInterfaceConfig
6122
6130
  })]
6123
6131
  }) : /*#__PURE__*/jsxRuntime.jsx(antd.Dropdown, {
6124
- open: true,
6125
6132
  trigger: "click",
6126
6133
  placement: "bottomLeft",
6127
6134
  rootClassName: formatClassname(['user-dropdown-layout', appName, theme.customHeaderColor && 'custom']),
@@ -8314,7 +8321,8 @@ function AppLayout({
8314
8321
  appName: appName,
8315
8322
  userHelpers: userHelpers,
8316
8323
  isDev: isDev,
8317
- theme: theme
8324
+ theme: theme,
8325
+ moduleInterfaceConfig: moduleInterfaceConfig
8318
8326
  })
8319
8327
  })]
8320
8328
  })]
@@ -1927,16 +1927,8 @@ ul.ant-menu.ant-menu-dark.ant-menu-root.ant-menu-vertical::-webkit-scrollbar-thu
1927
1927
  background-color: var(--base-gray-30) !important;
1928
1928
  }
1929
1929
 
1930
- .ant-dropdown.user-dropdown-layout.custom
1931
- .ant-dropdown-menu-ant-dropdown-menu-vertical.ant-dropdown-menu-light
1932
- .ant-dropdown-menu-item
1933
- .ant-dropdown-menu-title-content
1934
- .drop-header h4,
1935
- .ant-dropdown.user-dropdown-layout.custom
1936
- .ant-dropdown-menu-ant-dropdown-menu-vertical.ant-dropdown-menu-light
1937
- .ant-dropdown-menu-item
1938
- .ant-dropdown-menu-title-content
1939
- .list .list-item
1930
+ .ant-dropdown.user-dropdown-layout.custom .ant-dropdown-menu .ant-dropdown-menu-item .ant-dropdown-menu-title-content .drop-header h4,
1931
+ .ant-dropdown.user-dropdown-layout.custom .list .list-item
1940
1932
  {
1941
1933
  color: var(--header-text-color, white) !important;
1942
1934
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.682",
3
+ "version": "0.6.684",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -153,6 +153,8 @@ export default function MobileDrawer({
153
153
  });
154
154
  };
155
155
 
156
+ console.log({mod, user, isCollapsed, moduleInterfaceConfig})
157
+
156
158
  return (
157
159
  <Style className={formatClassname([!drawerOpened && 'closed', isUserDropdown && 'user-dropdown'])}>
158
160
  <div className="drawer">
@@ -164,9 +166,10 @@ export default function MobileDrawer({
164
166
  ])}
165
167
  style={{ width: isCollapsed ? '70px' : '250px', minWidth: isCollapsed ? 'auto' : '250px' }}
166
168
  >
169
+
167
170
  <div className="flex">
168
171
  <div className="flex-1">
169
- {mod === 'app' || !user ? null : renderModule({
172
+ {(mod === 'app' || !user) ? null : renderModule({
170
173
  isCollapsed,
171
174
  moduleInterfaceConfig
172
175
  })}
@@ -23,6 +23,7 @@ export const UserDropdownMenu = ({
23
23
  userHelpers = {},
24
24
  isDev = false,
25
25
  theme = {},
26
+ moduleInterfaceConfig = null,
26
27
  }) => {
27
28
  const resizeContext = useResizeContext();
28
29
  const { windowWidth } = resizeContext || {};
@@ -85,11 +86,11 @@ export const UserDropdownMenu = ({
85
86
  changeNotificationState={changeNotificationState}
86
87
  appName={appName}
87
88
  theme={theme}
89
+ moduleInterfaceConfig={moduleInterfaceConfig}
88
90
  />
89
91
  </div>
90
92
  ) : (
91
93
  <Dropdown
92
- open={true}
93
94
  trigger="click"
94
95
  placement="bottomLeft"
95
96
  rootClassName={formatClassname(['user-dropdown-layout', appName, theme.customHeaderColor && 'custom'])}
@@ -407,6 +407,7 @@ function AppLayout({
407
407
  userHelpers={userHelpers}
408
408
  isDev={isDev}
409
409
  theme={theme}
410
+ moduleInterfaceConfig={moduleInterfaceConfig}
410
411
  />
411
412
  </div>
412
413
  </div>
@@ -1927,16 +1927,8 @@ ul.ant-menu.ant-menu-dark.ant-menu-root.ant-menu-vertical::-webkit-scrollbar-thu
1927
1927
  background-color: var(--base-gray-30) !important;
1928
1928
  }
1929
1929
 
1930
- .ant-dropdown.user-dropdown-layout.custom
1931
- .ant-dropdown-menu-ant-dropdown-menu-vertical.ant-dropdown-menu-light
1932
- .ant-dropdown-menu-item
1933
- .ant-dropdown-menu-title-content
1934
- .drop-header h4,
1935
- .ant-dropdown.user-dropdown-layout.custom
1936
- .ant-dropdown-menu-ant-dropdown-menu-vertical.ant-dropdown-menu-light
1937
- .ant-dropdown-menu-item
1938
- .ant-dropdown-menu-title-content
1939
- .list .list-item
1930
+ .ant-dropdown.user-dropdown-layout.custom .ant-dropdown-menu .ant-dropdown-menu-item .ant-dropdown-menu-title-content .drop-header h4,
1931
+ .ant-dropdown.user-dropdown-layout.custom .list .list-item
1940
1932
  {
1941
1933
  color: var(--header-text-color, white) !important;
1942
1934
  }