@admin-layout/tailwind-design-pro 10.0.4-alpha.19

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.
Files changed (161) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/lib/cdm-locales/en/common.json +30 -0
  4. package/lib/cdm-locales/en/menu.json +115 -0
  5. package/lib/cdm-locales/en/pages.json +56 -0
  6. package/lib/cdm-locales/en/settings.json +19 -0
  7. package/lib/cdm-locales/es/common.json +30 -0
  8. package/lib/cdm-locales/es/menu.json +115 -0
  9. package/lib/cdm-locales/es/pages.json +56 -0
  10. package/lib/cdm-locales/es/settings.json +19 -0
  11. package/lib/components/LanguageMenu/LanguageMenu.d.ts +2 -0
  12. package/lib/components/LanguageMenu/LanguageMenu.d.ts.map +1 -0
  13. package/lib/components/LanguageMenu/LanguageMenu.js +95 -0
  14. package/lib/components/LanguageMenu/LanguageMenu.js.map +1 -0
  15. package/lib/components/LanguageMenu/index.d.ts +2 -0
  16. package/lib/components/LanguageMenu/index.d.ts.map +1 -0
  17. package/lib/components/Layout/BasicLayout/index.d.ts +19 -0
  18. package/lib/components/Layout/BasicLayout/index.d.ts.map +1 -0
  19. package/lib/components/Layout/BasicLayout/index.js +203 -0
  20. package/lib/components/Layout/BasicLayout/index.js.map +1 -0
  21. package/lib/components/Layout/BasicLayout/utils.d.ts +14 -0
  22. package/lib/components/Layout/BasicLayout/utils.d.ts.map +1 -0
  23. package/lib/components/Layout/BasicLayout/utils.js +130 -0
  24. package/lib/components/Layout/BasicLayout/utils.js.map +1 -0
  25. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts +12 -0
  26. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.d.ts.map +1 -0
  27. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js +72 -0
  28. package/lib/components/Layout/GlobalFooter/BottomMenuDropdown.js.map +1 -0
  29. package/lib/components/Layout/GlobalFooter/Copyright.d.ts +5 -0
  30. package/lib/components/Layout/GlobalFooter/Copyright.d.ts.map +1 -0
  31. package/lib/components/Layout/GlobalFooter/Copyright.js +8 -0
  32. package/lib/components/Layout/GlobalFooter/Copyright.js.map +1 -0
  33. package/lib/components/Layout/GlobalFooter/Footer.d.ts +5 -0
  34. package/lib/components/Layout/GlobalFooter/Footer.d.ts.map +1 -0
  35. package/lib/components/Layout/GlobalFooter/Footer.js +22 -0
  36. package/lib/components/Layout/GlobalFooter/Footer.js.map +1 -0
  37. package/lib/components/Layout/GlobalHeader/Header.d.ts +18 -0
  38. package/lib/components/Layout/GlobalHeader/Header.d.ts.map +1 -0
  39. package/lib/components/Layout/GlobalHeader/Header.js +74 -0
  40. package/lib/components/Layout/GlobalHeader/Header.js.map +1 -0
  41. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts +16 -0
  42. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.d.ts.map +1 -0
  43. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js +73 -0
  44. package/lib/components/Layout/GlobalHeader/OrganizationDropdown.js.map +1 -0
  45. package/lib/components/Layout/GlobalHeader/RightContent.d.ts +18 -0
  46. package/lib/components/Layout/GlobalHeader/RightContent.d.ts.map +1 -0
  47. package/lib/components/Layout/GlobalHeader/styles.d.ts +2 -0
  48. package/lib/components/Layout/GlobalHeader/styles.d.ts.map +1 -0
  49. package/lib/components/Layout/ProTailwindLayout.d.ts +23 -0
  50. package/lib/components/Layout/ProTailwindLayout.d.ts.map +1 -0
  51. package/lib/components/Layout/ProTailwindLayout.js +95 -0
  52. package/lib/components/Layout/ProTailwindLayout.js.map +1 -0
  53. package/lib/components/Layout/Sidebar/Divider.d.ts +33 -0
  54. package/lib/components/Layout/Sidebar/Divider.d.ts.map +1 -0
  55. package/lib/components/Layout/Sidebar/Divider.js +47 -0
  56. package/lib/components/Layout/Sidebar/Divider.js.map +1 -0
  57. package/lib/components/Layout/Sidebar/Sidebar.d.ts +15 -0
  58. package/lib/components/Layout/Sidebar/Sidebar.d.ts.map +1 -0
  59. package/lib/components/Layout/Sidebar/Sidebar.js +139 -0
  60. package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -0
  61. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts +6 -0
  62. package/lib/components/Layout/Sidebar/SidebarMenu.d.ts.map +1 -0
  63. package/lib/components/Layout/Sidebar/SidebarMenu.js +89 -0
  64. package/lib/components/Layout/Sidebar/SidebarMenu.js.map +1 -0
  65. package/lib/components/Layout/TailwindLayout.d.ts +12 -0
  66. package/lib/components/Layout/TailwindLayout.d.ts.map +1 -0
  67. package/lib/components/Layout/TailwindLayout.js +42 -0
  68. package/lib/components/Layout/TailwindLayout.js.map +1 -0
  69. package/lib/components/Layout/getPageTitle.d.ts +26 -0
  70. package/lib/components/Layout/getPageTitle.d.ts.map +1 -0
  71. package/lib/components/Layout/getPageTitle.js +56 -0
  72. package/lib/components/Layout/getPageTitle.js.map +1 -0
  73. package/lib/components/Layout/slot-fill/Footer.d.ts +4 -0
  74. package/lib/components/Layout/slot-fill/Footer.d.ts.map +1 -0
  75. package/lib/components/Layout/slot-fill/Footer.js +7 -0
  76. package/lib/components/Layout/slot-fill/Footer.js.map +1 -0
  77. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts +4 -0
  78. package/lib/components/Layout/slot-fill/HeaderNotice.d.ts.map +1 -0
  79. package/lib/components/Layout/slot-fill/index.d.ts +3 -0
  80. package/lib/components/Layout/slot-fill/index.d.ts.map +1 -0
  81. package/lib/components/Layout/util.d.ts +6 -0
  82. package/lib/components/Layout/util.d.ts.map +1 -0
  83. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts +8 -0
  84. package/lib/components/SettingDrawer/CheckBoxTheme.d.ts.map +1 -0
  85. package/lib/components/SettingDrawer/CheckBoxTheme.js +48 -0
  86. package/lib/components/SettingDrawer/CheckBoxTheme.js.map +1 -0
  87. package/lib/components/SettingDrawer/LayoutChange.d.ts +7 -0
  88. package/lib/components/SettingDrawer/LayoutChange.d.ts.map +1 -0
  89. package/lib/components/SettingDrawer/LayoutChange.js +69 -0
  90. package/lib/components/SettingDrawer/LayoutChange.js.map +1 -0
  91. package/lib/components/SettingDrawer/RegionalSettings.d.ts +8 -0
  92. package/lib/components/SettingDrawer/RegionalSettings.d.ts.map +1 -0
  93. package/lib/components/SettingDrawer/RegionalSettings.js +95 -0
  94. package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -0
  95. package/lib/components/SettingDrawer/SettingDrawer.d.ts +27 -0
  96. package/lib/components/SettingDrawer/SettingDrawer.d.ts.map +1 -0
  97. package/lib/components/SettingDrawer/SettingDrawer.js +392 -0
  98. package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -0
  99. package/lib/components/SettingDrawer/Switch/index.d.ts +9 -0
  100. package/lib/components/SettingDrawer/Switch/index.d.ts.map +1 -0
  101. package/lib/components/SettingDrawer/Switch/index.js +39 -0
  102. package/lib/components/SettingDrawer/Switch/index.js.map +1 -0
  103. package/lib/components/SettingDrawer/ThemeColor.d.ts +8 -0
  104. package/lib/components/SettingDrawer/ThemeColor.d.ts.map +1 -0
  105. package/lib/components/SettingDrawer/ThemeColor.js +32 -0
  106. package/lib/components/SettingDrawer/ThemeColor.js.map +1 -0
  107. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.d.ts +2 -0
  108. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.d.ts.map +1 -0
  109. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.js +1 -0
  110. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.js.map +1 -0
  111. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts +6 -0
  112. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.d.ts.map +1 -0
  113. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js +4 -0
  114. package/lib/components/UpdateSettingsResource/UpdateSettingsResource.server.js.map +1 -0
  115. package/lib/components/defaultSettings.d.ts +4 -0
  116. package/lib/components/defaultSettings.d.ts.map +1 -0
  117. package/lib/components/defaultSettings.js +14 -0
  118. package/lib/components/defaultSettings.js.map +1 -0
  119. package/lib/components/typings.d.ts +73 -0
  120. package/lib/components/typings.d.ts.map +1 -0
  121. package/lib/compute.d.ts +4 -0
  122. package/lib/compute.d.ts.map +1 -0
  123. package/lib/compute.js +36 -0
  124. package/lib/compute.js.map +1 -0
  125. package/lib/config/env-config.d.ts +4 -0
  126. package/lib/config/env-config.d.ts.map +1 -0
  127. package/lib/config/env-config.js +7 -0
  128. package/lib/config/env-config.js.map +1 -0
  129. package/lib/helpers/DynamicIcon.d.ts +12 -0
  130. package/lib/helpers/DynamicIcon.d.ts.map +1 -0
  131. package/lib/index.d.ts +7 -0
  132. package/lib/index.d.ts.map +1 -0
  133. package/lib/index.js +2 -0
  134. package/lib/index.js.map +1 -0
  135. package/lib/index.server.d.ts +2 -0
  136. package/lib/index.server.d.ts.map +1 -0
  137. package/lib/index.server.js +1 -0
  138. package/lib/index.server.js.map +1 -0
  139. package/lib/module.d.ts +6 -0
  140. package/lib/module.d.ts.map +1 -0
  141. package/lib/module.js +22 -0
  142. package/lib/module.js.map +1 -0
  143. package/lib/routes.json +41 -0
  144. package/lib/styles/index.css +51 -0
  145. package/lib/utils/index.d.ts +2 -0
  146. package/lib/utils/index.d.ts.map +1 -0
  147. package/lib/utils/index.js +13 -0
  148. package/lib/utils/index.js.map +1 -0
  149. package/lib/utils/isBrowser/index.d.ts +3 -0
  150. package/lib/utils/isBrowser/index.d.ts.map +1 -0
  151. package/lib/utils/isBrowser/index.js +7 -0
  152. package/lib/utils/isBrowser/index.js.map +1 -0
  153. package/lib/utils/menu.d.ts +4 -0
  154. package/lib/utils/menu.d.ts.map +1 -0
  155. package/lib/utils/test-utils.d.ts +12 -0
  156. package/lib/utils/test-utils.d.ts.map +1 -0
  157. package/lib/utils/utils/index.d.ts +14 -0
  158. package/lib/utils/utils/index.d.ts.map +1 -0
  159. package/lib/utils/utils/index.js +3 -0
  160. package/lib/utils/utils/index.js.map +1 -0
  161. package/package.json +65 -0
@@ -0,0 +1,42 @@
1
+ import {jsx}from'react/jsx-runtime';import {useLayoutSettings}from'@admin-layout/client';import {userSelector}from'@adminide-stack/user-auth0-client';import React__default,{useMemo}from'react';import {connect,useSelector}from'react-redux';import {BasicLayout}from'./BasicLayout/index.js';function BasicLayoutWithAuthorities(props) {
2
+ const userData = useSelector(userSelector);
3
+ const {
4
+ settings,
5
+ setSettings
6
+ } = useLayoutSettings();
7
+ // const { authenticated, user } = isUserAuthenticated();
8
+ const {
9
+ permissions
10
+ } = props;
11
+ const mainHeaderProps = useMemo(() => ({
12
+ picture: userData ? userData?.profile?.picture : null
13
+ }), [userData]);
14
+ const onSettingChange = config => {
15
+ (async () => {
16
+ await setSettings(config);
17
+ })();
18
+ };
19
+ //@ts-ignore
20
+ const {
21
+ routeParams: {
22
+ orgName
23
+ } = {}
24
+ } = props;
25
+ return jsx(BasicLayout, {
26
+ routeParams: orgName,
27
+ authorities: permissions?.resolveConfiguration ?? permissions,
28
+ onSettingChange: onSettingChange,
29
+ mainHeaderProps: mainHeaderProps,
30
+ ...props,
31
+ settings: settings
32
+ });
33
+ }
34
+ const mapState = ({
35
+ settings,
36
+ router
37
+ }) => ({
38
+ settings,
39
+ location: router.location
40
+ });
41
+ const connector = connect(mapState);
42
+ const BasicLayoutEnhanced = connector(React__default.memo(BasicLayoutWithAuthorities));export{BasicLayoutEnhanced as default};//# sourceMappingURL=TailwindLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TailwindLayout.js","sources":["../../../src/components/Layout/TailwindLayout.tsx"],"sourcesContent":[null],"names":[],"mappings":"gSAMA,SAAS,0BAA0B,CAAC,KAAgF,EAAA;AAChH,EAAA,MAAA,WAAiB,WAAA,CAAA,YAAY,CAAA;QACvB;IACN,QAAyD;AACzD,IAAA;AACA,GAAA,GAAA,mBAAqB;AAEb;AACH,EAAA,MACD;AAGJ,IAAA;WACK;AACG,EAAA,MAAA,eAAiB,GAAA,OAAO,CAAA,OAAE;aACzB,QAAA,GAAA,QAAA,EAAA,OAAA,EAAA,OAAA,GAAA;AACT,GAAA,CAAA,EAAE,CAAA,QAAA,CAAA,CAAA;QAEU,eAAA,GAAA,MAAA,IAAA;IACZ,CAAM,YAAa;AACnB,MAAA,MACI,WAAY,CAAA,MAAA,CAAA;AASpB,KAAC,GAAA;AAED,GAAM;;QAEM;AACX,IAAE,WAAA,EAAA;AAMH,MAAM;AAIN,KAAM,GAAA;AAKN,GAAA,GAAA,KAAA;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,26 @@
1
+ import { MenuDataItem } from '../typings';
2
+ import { ProSettings } from '../defaultSettings';
3
+ export interface GetPageTitleProps {
4
+ pathname?: string;
5
+ breadcrumb?: {
6
+ [path: string]: MenuDataItem;
7
+ };
8
+ breadcrumbMap?: Map<string, MenuDataItem>;
9
+ menu?: ProSettings['menu'];
10
+ title?: ProSettings['title'];
11
+ pageName?: string;
12
+ formatMessage?: (data: {
13
+ id: any;
14
+ defaultMessage?: string;
15
+ }) => string;
16
+ }
17
+ export declare const matchParamsPath: (pathname: string, breadcrumb?: {
18
+ [path: string]: MenuDataItem;
19
+ }, breadcrumbMap?: Map<string, MenuDataItem>) => MenuDataItem;
20
+ declare const getPageTitleInfo: (props: GetPageTitleProps, ignoreTile?: boolean) => {
21
+ title: string;
22
+ id: string;
23
+ pageName: string;
24
+ };
25
+ export { getPageTitleInfo };
26
+ //# sourceMappingURL=getPageTitle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPageTitle.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/getPageTitle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,WAAW,iBAAiB;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAA;KAAE,CAAC;IAC9C,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAC1C,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC3B,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,EAAE,EAAE,GAAG,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;CAC1E;AAED,eAAO,MAAM,eAAe,aACd,MAAM,eACH;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,YAAY,CAAA;CAAE,kBAC7B,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,KAC1C,YAQF,CAAC;AAEF,QAAA,MAAM,gBAAgB,UACX,iBAAiB,eACX,OAAO,KACrB;IAEC,KAAK,EAAE,MAAM,CAAC;IAEd,EAAE,EAAE,MAAM,CAAC;IAEX,QAAQ,EAAE,MAAM,CAAC;CAiDpB,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,56 @@
1
+ import pathToRegexp from'path-to-regexp';const matchParamsPath = (pathname, breadcrumb, breadcrumbMap) => {
2
+ // Internal logic use breadcrumbMap to ensure the order
3
+ if (breadcrumbMap) {
4
+ const pathKey = [...breadcrumbMap.keys()].find(key => pathToRegexp(key).test(pathname));
5
+ if (pathKey) {
6
+ return breadcrumbMap.get(pathKey);
7
+ }
8
+ }
9
+ };
10
+ const getPageTitleInfo = (props, ignoreTile) => {
11
+ const {
12
+ pathname = '/',
13
+ breadcrumb,
14
+ breadcrumbMap,
15
+ formatMessage,
16
+ title = 'Ant Design Pro',
17
+ menu = {
18
+ locale: false
19
+ }
20
+ } = props;
21
+ const pageTitle = title || '';
22
+ const currRouterData = matchParamsPath(pathname, breadcrumb, breadcrumbMap);
23
+ if (!currRouterData) {
24
+ return {
25
+ title: pageTitle,
26
+ id: '',
27
+ pageName: pageTitle
28
+ };
29
+ }
30
+ let pageName = currRouterData.name;
31
+ if (menu.locale !== false && currRouterData.locale && formatMessage) {
32
+ pageName = formatMessage({
33
+ id: currRouterData.locale || '',
34
+ defaultMessage: currRouterData.name
35
+ });
36
+ }
37
+ if (!pageName) {
38
+ return {
39
+ title: pageTitle,
40
+ id: currRouterData.locale || '',
41
+ pageName: pageTitle
42
+ };
43
+ }
44
+ if (!title) {
45
+ return {
46
+ title: pageName,
47
+ id: currRouterData.locale || '',
48
+ pageName
49
+ };
50
+ }
51
+ return {
52
+ title: `${pageName} - ${title}`,
53
+ id: currRouterData.locale || '',
54
+ pageName
55
+ };
56
+ };export{getPageTitleInfo,matchParamsPath};//# sourceMappingURL=getPageTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPageTitle.js","sources":["../../../src/components/Layout/getPageTitle.ts"],"sourcesContent":[null],"names":[],"mappings":"yCAca,MAAA,eAAe,GAAG,CAC3B,QAAgB,EAChB,UAA6C,EAC7C,aAAyC,KAC3B;;MAEV,aAAA,EAAa;UACP,OAAA,GAAA,CAAO,GAAG,aAAI,CAAA,IAAc,EAAA,CAAA,CAAI,IAAI,CAAA,GAAI,IAAK,YAAiB,CAAA,GAAA,CAAA,CAAA,IAAI,CAAC,QAAM,CAAA,CAAA;QAC/E,OAAI,EAAA;AACA,MAAA,OAAA,yBAAyB,CAAA;;;AAGrC;AAEA,MAAM,gBAAgB,GAAG,CACrB,KAAwB,EACxB,UAAoB,KAQpB;AACA,EAAA,MAAA;AAOQ,IAAA,QAAA,MAAa;;AAGrB,IAAA,aAAe;IACf,aAAM;IACN,KAAK,GAAc,gBAAG;QAClB,GAAO;AACH,MAAA,MAAA,EAAA;AACA;AACA,GAAA,GAAA,KAAA;iBACF,GAAA,KAAA,IAAA,EAAA;QACL,cAAA,GAAA,eAAA,CAAA,QAAA,EAAA,UAAA,EAAA,aAAA,CAAA;AACD,EAAA,IAAA,CAAA,cAA6B,EAAA;AAE7B,IAAA,OAAQ;WACI,EAAA;AACJ,MAAA,EAAA,EAAA,EAAA;cACc,EAAA;AACjB,KAAA;;MAGD,QAAS,GAAA,cAAG,CAAA,IAAA;UACL,CAAA,MAAA,KAAA,KAAA,IAAA,cAAA,CAAA,MAAA,IAAA,aAAA,EAAA;AACH,IAAA,QAAA,GAAA,aAAgB,CAAA;AAChB,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;AACzB,MAAA,cAAQ,EAAE,cAAS,CAAA;;;AAG3B,EAAA,IAAA,CAAA,QAAc,EAAA;WACH;AACH,MAAA,KAAA,EAAA,SAAe;AACf,MAAA,EAAA,EAAA,cAAI,CAAA,MAAe,IAAA,EAAM;cACjB,EAAA;;;MAGT,CAAA,KAAA,EAAA;AACH,IAAA,OAAA;AACA,MAAA,KAAI,EAAA,QAAA;QACJ,EAAQ,cAAA,CAAA,MAAA,IAAA,EAAA;MACV;AACN,KAAE;AAEF;;;;;;"}
@@ -0,0 +1,4 @@
1
+ export declare const FOOTER_SLOT_FILL_NAME = "footer-slot-fill";
2
+ export declare const FooterSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const FooterCard: (props: any) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=Footer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,qBAAqB,CAAC;AAExD,eAAO,MAAM,UAAU,yDAEtB,CAAC;AAEF,eAAO,MAAM,UAAU,yDAEtB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import {jsx}from'react/jsx-runtime';import {Fill}from'@common-stack/components-pro';const FOOTER_SLOT_FILL_NAME = 'footer-slot-fill';
2
+ const FooterCard = props => {
3
+ return jsx(Fill, {
4
+ ...props,
5
+ name: FOOTER_SLOT_FILL_NAME
6
+ });
7
+ };export{FOOTER_SLOT_FILL_NAME,FooterCard};//# sourceMappingURL=Footer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Footer.js","sources":["../../../../src/components/Layout/slot-fill/Footer.tsx"],"sourcesContent":[null],"names":[],"mappings":"oFAGO,MAAM,qBAAqB,GAAG;;;;;;"}
@@ -0,0 +1,4 @@
1
+ export declare const HEADER_NOTICE_SLOT_FILL_NAME = "header-notice-slot-fill";
2
+ export declare const HeaderNoticeSlot: (props: any) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const HeaderNoticeCard: (props: any) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=HeaderNotice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderNotice.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/HeaderNotice.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,gBAAgB,yDAE5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,yDAE5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './HeaderNotice';
2
+ export * from './Footer';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Layout/slot-fill/index.tsx"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const generateMenuPath: (path: any, params: any) => string;
2
+ export declare const getFormatMessage: () => ((data: {
3
+ id: string;
4
+ defaultMessage?: string;
5
+ }) => string);
6
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../../src/components/Layout/util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,oCAU5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAO,CAAC,CAAC,IAAI,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,KAAK,MAAM,CAQ7F,CAAC"}
@@ -0,0 +1,8 @@
1
+ type ICheckboxThemeProps = {
2
+ list?: any[];
3
+ changeSetting?: (key: string, value: string | boolean | any) => void;
4
+ settings?: any;
5
+ };
6
+ export default function CheckBoxTheme(props: ICheckboxThemeProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=CheckBoxTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckBoxTheme.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"names":[],"mappings":"AAEA,KAAK,mBAAmB,GAAG;IACvB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,KAAK,IAAI,CAAC;IACrE,QAAQ,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,KAAK,EAAE,mBAAmB,2CA+C/D"}
@@ -0,0 +1,48 @@
1
+ import {jsx,jsxs}from'react/jsx-runtime';function CheckBoxTheme(props) {
2
+ const {
3
+ list,
4
+ changeSetting,
5
+ settings
6
+ } = props;
7
+ return jsx("div", {
8
+ className: "flex flex-row",
9
+ children: list.map((themeItems, index) => {
10
+ return jsxs("div", {
11
+ className: "w-16 h-12 shadow-sm rounded cursor-pointer",
12
+ style: {
13
+ boxShadow: '0 1px 2.5px 0 rgb(0 0 0 / 18%)'
14
+ },
15
+ onClick: () => {
16
+ changeSetting('navTheme', themeItems.key);
17
+ changeSetting('primaryColor', settings.primaryColor);
18
+ },
19
+ children: [jsx("div", {
20
+ className: "h-3/10 rounded-t",
21
+ style: {
22
+ backgroundColor: themeItems.key == 'dark' ? 'rgba(6,25,45,1)' : '#ffff'
23
+ }
24
+ }), jsxs("div", {
25
+ className: "flex h-7/10",
26
+ children: [jsx("div", {
27
+ className: "w-3/10 rounded-bl",
28
+ style: {
29
+ backgroundColor: themeItems.key === 'dark' ? 'rgba(13,32,51,1)' : '#ffff'
30
+ }
31
+ }), jsx("div", {
32
+ className: "w-7/10 rounded-br",
33
+ style: {
34
+ backgroundColor: themeItems.key == 'dark' ? 'rgba(38,55,72,1)' : '#f0f2f5'
35
+ }
36
+ })]
37
+ }), settings?.navTheme == themeItems.key ? jsx("svg", {
38
+ className: "relative -bottom-8 left-8 w-4 h-4",
39
+ viewBox: "0 0 24 24",
40
+ fill: "currentColor",
41
+ children: jsx("path", {
42
+ d: "M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"
43
+ })
44
+ }) : '']
45
+ }, `themeItem_${index}`);
46
+ })
47
+ });
48
+ }export{CheckBoxTheme as default};//# sourceMappingURL=CheckBoxTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckBoxTheme.js","sources":["../../../src/components/SettingDrawer/CheckBoxTheme.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"yCAQwB,SAAA,aAAa,CAAC,KAA0B,EAAA;QACtD;AACN,IAAA,IAAA;AAGY,IAAA,aAAA;AAMY,IAAA;AACA,GAAA,GAAA,KAAA;AACJ,EAAA,OAAAA,GAAA,CAAA;AAKQ,IAAA,SAAA,EAAA,eAAA;AACH,IAAA,QAAA,EAAA,IAAA,CAAA,GAAA,CAAA,CAAA,UAEL,EAAA,KAAA,KAAc;AAIF,MAAA,OAAAC,IAAA,CAAA,KAAA,EAAA;AACH,QAAA,SAAA,EAAA,4CAGS;AAEN,QAAA,KAAA,EAAA;;SAavB;AAGb,QAAC,OAAA,EAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ import { ProSettings } from '../defaultSettings';
2
+ export type ILayoutSettingsProps = {
3
+ settings?: Partial<ProSettings>;
4
+ changeSetting?: (key: string, value: string | boolean) => void;
5
+ };
6
+ export default function LayoutChange(props: ILayoutSettingsProps): import("react/jsx-runtime").JSX.Element;
7
+ //# sourceMappingURL=LayoutChange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayoutChange.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;CAClE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,oBAAoB,2CAsE/D"}
@@ -0,0 +1,69 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {useState}from'react';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';function LayoutChange(props) {
2
+ useState();
3
+ const {
4
+ settings,
5
+ changeSetting
6
+ } = props;
7
+ const {
8
+ t
9
+ } = useTranslation('settings');
10
+ const {
11
+ contentWidth,
12
+ splitMenus,
13
+ fixedHeader,
14
+ layout,
15
+ fixSiderbar,
16
+ navTheme
17
+ } = settings;
18
+ return jsxs("div", {
19
+ children: [jsxs("div", {
20
+ className: "flex items-center mt-4",
21
+ children: [jsx("p", {
22
+ className: "mb-0",
23
+ style: {
24
+ color: navTheme == 'dark' ? '#ffff' : 'black'
25
+ },
26
+ children: t('fixed_header')
27
+ }), jsx("div", {
28
+ className: "flex-grow"
29
+ }), jsx(Switch, {
30
+ value: fixedHeader,
31
+ settingKey: "fixedHeader",
32
+ changeSetting: changeSetting,
33
+ settings: settings
34
+ })]
35
+ }), jsxs("div", {
36
+ className: "flex items-center mt-4",
37
+ children: [jsx("p", {
38
+ className: "mb-0",
39
+ style: {
40
+ color: navTheme == 'dark' ? '#ffff' : 'black'
41
+ },
42
+ children: t('fixed_sidebar')
43
+ }), jsx("div", {
44
+ className: "flex-grow"
45
+ }), jsx(Switch, {
46
+ value: fixSiderbar,
47
+ settingKey: "fixSiderbar",
48
+ changeSetting: changeSetting,
49
+ settings: settings
50
+ })]
51
+ }), jsxs("div", {
52
+ className: "flex items-center mt-4",
53
+ children: [jsx("p", {
54
+ className: "mb-0",
55
+ style: {
56
+ color: navTheme == 'dark' ? '#ffff' : 'black'
57
+ },
58
+ children: t('split_menus')
59
+ }), jsx("div", {
60
+ className: "flex-grow"
61
+ }), jsx(Switch, {
62
+ value: splitMenus,
63
+ settingKey: "splitMenus",
64
+ changeSetting: changeSetting,
65
+ settings: settings
66
+ })]
67
+ })]
68
+ });
69
+ }export{LayoutChange as default};//# sourceMappingURL=LayoutChange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LayoutChange.js","sources":["../../../src/components/SettingDrawer/LayoutChange.tsx"],"sourcesContent":[null],"names":[],"mappings":"wJAWwB,SAAA,YAAY,CAAC,KAA2B,EAAA;EAClB,QAAA;AAC1C,EAAA,MAAA;IACA,QAAQ;AACR,IAAA;AACA,GAAA,GAAA,KAAyB;AACrB,EAAA,MAAA;AACJ,IAAA;AAEA,GAAA,GAAA,cA4BQ,CAAA,UAAA,CAAA;AAiCZ,EAAC,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ import { ProSettings } from '../defaultSettings';
2
+ type IRegionalSettingsProps = {
3
+ settings?: Partial<ProSettings>;
4
+ changeSetting?: (key: string, value: string | boolean | any) => void;
5
+ };
6
+ export default function RegionalSettings(props: IRegionalSettingsProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
8
+ //# sourceMappingURL=RegionalSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegionalSettings.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,KAAK,sBAAsB,GAAG;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,GAAG,GAAG,KAAK,IAAI,CAAC;CACxE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,sBAAsB,2CA4DrE"}
@@ -0,0 +1,95 @@
1
+ import {jsxs,jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {Switch}from'./Switch/index.js';function RegionalSettings(props) {
2
+ const {
3
+ settings,
4
+ changeSetting
5
+ } = props;
6
+ const {
7
+ t
8
+ } = useTranslation('settings');
9
+ const {
10
+ showHeader,
11
+ showFooter,
12
+ searchBarRender,
13
+ showMenu,
14
+ menuHeaderRender,
15
+ navTheme
16
+ } = settings;
17
+ return jsxs("div", {
18
+ children: [jsxs("div", {
19
+ className: "flex items-center mb-2",
20
+ children: [jsx("p", {
21
+ style: {
22
+ color: navTheme == 'dark' ? '#ffff' : 'black'
23
+ },
24
+ children: t('header')
25
+ }), jsx("div", {
26
+ className: "flex-grow"
27
+ }), jsx(Switch, {
28
+ settings: settings,
29
+ value: showHeader || showHeader === undefined,
30
+ changeSetting: changeSetting,
31
+ settingKey: "showHeader"
32
+ })]
33
+ }), jsxs("div", {
34
+ className: "flex items-center mb-2",
35
+ children: [jsx("p", {
36
+ style: {
37
+ color: navTheme == 'dark' ? '#ffff' : 'black'
38
+ },
39
+ children: t('footer')
40
+ }), jsx("div", {
41
+ className: "flex-grow"
42
+ }), jsx(Switch, {
43
+ settings: settings,
44
+ value: showFooter || showFooter === undefined,
45
+ changeSetting: changeSetting,
46
+ settingKey: "showFooter"
47
+ })]
48
+ }), jsxs("div", {
49
+ className: "flex items-center mb-2",
50
+ children: [jsx("p", {
51
+ style: {
52
+ color: navTheme == 'dark' ? '#ffff' : 'black'
53
+ },
54
+ children: t('search_bar')
55
+ }), jsx("div", {
56
+ className: "flex-grow"
57
+ }), jsx(Switch, {
58
+ settings: settings,
59
+ value: searchBarRender || searchBarRender === undefined,
60
+ changeSetting: changeSetting,
61
+ settingKey: "searchBarRender"
62
+ })]
63
+ }), jsxs("div", {
64
+ className: "flex items-center mb-2",
65
+ children: [jsx("p", {
66
+ style: {
67
+ color: navTheme == 'dark' ? '#ffff' : 'black'
68
+ },
69
+ children: t('menu')
70
+ }), jsx("div", {
71
+ className: "flex-grow"
72
+ }), jsx(Switch, {
73
+ settings: settings,
74
+ value: showMenu || showMenu === undefined,
75
+ changeSetting: changeSetting,
76
+ settingKey: "showMenu"
77
+ })]
78
+ }), jsxs("div", {
79
+ className: "flex items-center mb-2",
80
+ children: [jsx("p", {
81
+ style: {
82
+ color: navTheme == 'dark' ? '#ffff' : 'black'
83
+ },
84
+ children: t('menu_header')
85
+ }), jsx("div", {
86
+ className: "flex-grow"
87
+ }), jsx(Switch, {
88
+ settings: settings,
89
+ value: menuHeaderRender || menuHeaderRender === undefined,
90
+ changeSetting: changeSetting,
91
+ settingKey: "menuHeaderRender"
92
+ })]
93
+ })]
94
+ });
95
+ }export{RegionalSettings as default};//# sourceMappingURL=RegionalSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegionalSettings.js","sources":["../../../src/components/SettingDrawer/RegionalSettings.tsx"],"sourcesContent":[null],"names":[],"mappings":"2HAUwB,SAAA,gBAAgB,CAAC,KAA6B,EAAA;AAClE,EAAA,MAAA;IACA,QAAQ;AACR,IAAA;MACM,KAAA;AAEN,EAAA,MAAA;AAsDJ,IAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,27 @@
1
+ import * as React from 'react';
2
+ import { ProSettings } from '../defaultSettings';
3
+ export type MergerSettingsType<T> = Partial<T> & {
4
+ primaryColor?: string;
5
+ colorWeak?: boolean;
6
+ };
7
+ interface IShowSettingPanel extends ProSettings {
8
+ showSettingPanel: boolean;
9
+ }
10
+ export interface SettingDrawerProps {
11
+ settings?: MergerSettingsType<IShowSettingPanel>;
12
+ collapse?: boolean;
13
+ getContainer?: any;
14
+ publicPath?: string;
15
+ hideLoading?: boolean;
16
+ hideColors?: boolean;
17
+ hideHintAlert?: boolean;
18
+ prefixCls?: string;
19
+ hideCopyButton?: boolean;
20
+ navTheme?: string;
21
+ primaryColor?: string;
22
+ onCollapseChange?: (collapse: boolean) => void;
23
+ onSettingChange?: (settings: MergerSettingsType<ProSettings>) => void;
24
+ }
25
+ export declare const SettingDrawer: React.FC<SettingDrawerProps>;
26
+ export {};
27
+ //# sourceMappingURL=SettingDrawer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SettingDrawer.d.ts","sourceRoot":"","sources":["../../../src/components/SettingDrawer/SettingDrawer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAmB,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAOlE,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AACF,UAAU,iBAAkB,SAAQ,WAAW;IAC3C,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,kBAAkB;IAC/B,QAAQ,CAAC,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;CACzE;AA6QD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAiNtD,CAAC"}