@tuya-sat/sdf-main-sdk 2.0.0-alpha.1 → 2.0.0-alpha.100

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 (48) hide show
  1. package/README.md +83 -2
  2. package/dist/{131.a92447f8.chunk.js → 131.d69c8d2b.chunk.js} +1 -1
  3. package/dist/{131.a92447f8.chunk.js.map → 131.d69c8d2b.chunk.js.map} +1 -1
  4. package/dist/api/urls.d.ts +5 -0
  5. package/dist/components/BLogin/component/VerifyCode/index.d.ts +1 -1
  6. package/dist/components/IconFont/index.d.ts +7 -0
  7. package/dist/components/Layout/antd/Menu/BaseMenu.d.ts +1 -1
  8. package/dist/components/Layout/antd/Menu/HorizontalMenu/EllipsisSvg.d.ts +1 -0
  9. package/dist/components/Layout/antd/Menu/HorizontalMenu/index.d.ts +1 -0
  10. package/dist/components/Layout/antd/Sider/index.d.ts +8 -1
  11. package/dist/components/Layout/antd/components/DynamicNavs/index.d.ts +9 -0
  12. package/dist/components/Layout/antd/components/NavItem/index.d.ts +1 -0
  13. package/dist/components/Layout/antd/components/SwitchTheme/index.d.ts +8 -0
  14. package/dist/components/Layout/antd/index.d.ts +4 -1
  15. package/dist/components/Layout/interface.d.ts +7 -26
  16. package/dist/components/MicroComponent/Header/index.d.ts +1 -0
  17. package/dist/components/PEnterprise/EnterpriseList.d.ts +1 -0
  18. package/dist/components/PEnterprise/index.d.ts +1 -0
  19. package/dist/components/PSetting/AccountSetting.d.ts +2 -0
  20. package/dist/components/PSetting/index.d.ts +1 -2
  21. package/dist/en.json +18 -2
  22. package/dist/hooks/useMultiLanguages.d.ts +8 -0
  23. package/dist/index.d.ts +14 -0
  24. package/dist/lang/utils.d.ts +2 -0
  25. package/dist/main.bundle.js +1 -1
  26. package/dist/main.bundle.js.LICENSE.txt +10 -15
  27. package/dist/main.bundle.js.map +1 -1
  28. package/dist/main.css +842 -216
  29. package/dist/main.css.map +1 -1
  30. package/dist/manifest.json +4 -2
  31. package/dist/pages/home/enterprise/index.d.ts +5 -0
  32. package/dist/qiankun/globalState.d.ts +6 -5
  33. package/dist/qiankun/index.d.ts +1 -2
  34. package/dist/static/img/47a523d0027c7b5af83f.png +0 -0
  35. package/dist/static/img/dd06d35d98047203e715.png +0 -0
  36. package/dist/utils/checkPass.d.ts +4 -0
  37. package/dist/utils/common.d.ts +4 -0
  38. package/dist/utils/index.d.ts +6 -3
  39. package/dist/utils/theme/antd5/InjectCssVariable.d.ts +3 -0
  40. package/dist/utils/theme/antd5/index.d.ts +454 -38
  41. package/dist/utils/theme/antd5/token.d.ts +421 -2
  42. package/dist/utils/theme/base.d.ts +1 -1
  43. package/dist/utils/theme/changeMenuCssVariable.d.ts +1 -1
  44. package/dist/utils/theme/index.d.ts +12 -6
  45. package/dist/utils/theme/store.d.ts +908 -76
  46. package/dist/zh.json +18 -2
  47. package/package.json +8 -4
  48. package/webpack.config.js +1 -0
package/README.md CHANGED
@@ -183,8 +183,31 @@ export default (props: RegisterPageProps) => {
183
183
  }
184
184
  ```
185
185
 
186
+ #### 5. 自定义 `Layout`
187
+ 构建工具会读取 `/src/layout` 目录下的文件,作为自定义布局的实现。其类型定义如下:
188
+ ```tsx
189
+ interface LayoutProps {
190
+ // SaaS 标题
191
+ title: string;
192
+ // SaaS logo
193
+ logo: string;
194
+ bgImage: string;
195
+ currentLanguage: string;
196
+ supportLanguages: Array<{
197
+ label: string;
198
+ value: string;
199
+ }>;
200
+ // SaaS 菜单
201
+ menus: Array<IMenu>;
202
+ }
203
+
204
+ interface Layout extends FC<LayoutProps> {
205
+ Login?: FC<Partial<LayoutProps>>;
206
+ }
207
+ ```
208
+
186
209
  ### 头部自定义配置
187
- ##### 类型定义
210
+ #### 类型定义
188
211
  ```ts
189
212
  type NavProps = {
190
213
  extra?: {
@@ -209,7 +232,7 @@ type NavProps = {
209
232
  };
210
233
  ```
211
234
 
212
- ##### 示例
235
+ #### 示例
213
236
  ```tsx
214
237
  // ./src/nav/index.tsx
215
238
  import { MNav } from "@tuya-sat/sdf-main-sdk";
@@ -219,7 +242,31 @@ export default (props: NavProps) => {
219
242
  }
220
243
  ```
221
244
 
245
+ ### 主题色
246
+ 如果需要修改主题色,可以通过 `useTheme(initConfigs)`。如下:
247
+ ```tsx
248
+ import { ConfigProviderProps } from 'antd';
249
+ import { initialTheme, useTheme } from "@tuya-sat/sdf-main-sdk";
250
+
251
+ // 初始化亮暗色、主题色配置
252
+ initialTheme({
253
+ dark: {},
254
+ light: {},
255
+ });
256
+
257
+ export default function Layout() {
258
+ const { theme, changeTheme } = useTheme();
259
+
260
+ return (
261
+ <>
262
+ {theme}: <button onClick={() => changeTheme()}>切换主题<button>
263
+ </>
264
+ );
265
+ };
266
+ ```
267
+
222
268
  ### 多语言
269
+ #### 1. 新增词条 :bangbang:
223
270
  如果新增了自定义组件,那其多语言需要存放到 `./src/lang` 目录下,并且在组件内部需要引用 sdk 暴露的 i18n 方法进行翻译。如下:
224
271
 
225
272
  ```tsx
@@ -232,3 +279,37 @@ export default function CustomComponent() {
232
279
  )
233
280
  }
234
281
  ```
282
+
283
+ #### 2. 语言切换下拉框
284
+ 主应用 sdk 默认有导出语言下拉框,可以直接使用。方式如下:
285
+ ```tsx
286
+ import { SwitchLangSelect } from "@tuya-sat/sdf-main-sdk";
287
+
288
+ export default function Demo() {
289
+ return (
290
+ <>
291
+ <SwitchLangSelect />
292
+ </>
293
+ );
294
+ }
295
+ ```
296
+
297
+ 如果该组件无法满足需求,还可以通过 hook 方式获取 saas 语言信息,自己编写组件实现逻辑。如下:
298
+
299
+ ```tsx
300
+ import { useMultiLanguages } from "@tuya-sat/sdf-main-sdk";
301
+
302
+ export default function LanguageSelect() {
303
+ const {
304
+ currentLanguage,
305
+ supportLanguages,
306
+ switchLang,
307
+ } = useMultiLanguage();
308
+
309
+ return (
310
+ <>
311
+ {/* ......自定义业务逻辑 */}
312
+ </>
313
+ );
314
+ }
315
+ ```
@@ -1,2 +1,2 @@
1
1
  "use strict";(self.webpackChunk_SDF=self.webpackChunk_SDF||[]).push([[131],{82131:function(e,t,n){n.r(t),n.d(t,{getCLS:function(){return v},getFCP:function(){return g},getFID:function(){return F},getLCP:function(){return k},getTTFB:function(){return C}});var i,a,r,o,u=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v1-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},c=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},f=function(e,t){var n=function n(i){"pagehide"!==i.type&&"hidden"!==document.visibilityState||(e(i),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},s=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},m="function"==typeof WeakSet?new WeakSet:new Set,p=function(e,t,n){var i;return function(){t.value>=0&&(n||m.has(t)||"hidden"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},v=function(e,t){var n,i=u("CLS",0),a=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},r=c("layout-shift",a);r&&(n=p(e,i,t),f((function(){r.takeRecords().map(a),n()})),s((function(){i=u("CLS",0),n=p(e,i,t)})))},d=-1,l=function(){return"hidden"===document.visibilityState?0:1/0},h=function(){f((function(e){var t=e.timeStamp;d=t}),!0)},S=function(){return d<0&&(d=l(),h(),s((function(){setTimeout((function(){d=l(),h()}),0)}))),{get timeStamp(){return d}}},g=function(e,t){var n,i=S(),a=u("FCP"),r=function(e){"first-contentful-paint"===e.name&&(f&&f.disconnect(),e.startTime<i.timeStamp&&(a.value=e.startTime,a.entries.push(e),m.add(a),n()))},o=performance.getEntriesByName("first-contentful-paint")[0],f=o?null:c("paint",r);(o||f)&&(n=p(e,a,t),o&&r(o),s((function(i){a=u("FCP"),n=p(e,a,t),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,m.add(a),n()}))}))})))},y={passive:!0,capture:!0},E=new Date,w=function(e,t){i||(i=t,a=e,r=new Date,b(removeEventListener),L())},L=function(){if(a>=0&&a<r-E){var e={entryType:"first-input",name:i.type,target:i.target,cancelable:i.cancelable,startTime:i.timeStamp,processingStart:i.timeStamp+a};o.forEach((function(t){t(e)})),o=[]}},T=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){w(e,t),a()},i=function(){a()},a=function(){removeEventListener("pointerup",n,y),removeEventListener("pointercancel",i,y)};addEventListener("pointerup",n,y),addEventListener("pointercancel",i,y)}(t,e):w(t,e)}},b=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,T,y)}))},F=function(e,t){var n,r=S(),v=u("FID"),d=function(e){e.startTime<r.timeStamp&&(v.value=e.processingStart-e.startTime,v.entries.push(e),m.add(v),n())},l=c("first-input",d);n=p(e,v,t),l&&f((function(){l.takeRecords().map(d),l.disconnect()}),!0),l&&s((function(){var r;v=u("FID"),n=p(e,v,t),o=[],a=-1,i=null,b(addEventListener),r=d,o.push(r),L()}))},k=function(e,t){var n,i=S(),a=u("LCP"),r=function(e){var t=e.startTime;t<i.timeStamp&&(a.value=t,a.entries.push(e)),n()},o=c("largest-contentful-paint",r);if(o){n=p(e,a,t);var v=function(){m.has(a)||(o.takeRecords().map(r),o.disconnect(),m.add(a),n())};["keydown","click"].forEach((function(e){addEventListener(e,v,{once:!0,capture:!0})})),f(v,!0),s((function(i){a=u("LCP"),n=p(e,a,t),requestAnimationFrame((function(){requestAnimationFrame((function(){a.value=performance.now()-i.timeStamp,m.add(a),n()}))}))}))}},C=function(e){var t,n=u("TTFB");t=function(){try{var t=performance.getEntriesByType("navigation")[0]||function(){var e=performance.timing,t={entryType:"navigation",startTime:0};for(var n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},"complete"===document.readyState?setTimeout(t,0):addEventListener("pageshow",t)}}}]);
2
- //# sourceMappingURL=131.a92447f8.chunk.js.map
2
+ //# sourceMappingURL=131.d69c8d2b.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"131.a92447f8.chunk.js","mappings":"+PAAA,IAAIA,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,SAASJ,EAAEC,GAAG,MAAM,CAACI,KAAKL,EAAEM,WAAM,IAASL,GAAG,EAAEA,EAAEM,MAAM,EAAEC,QAAQ,GAAGC,GAAG,MAAMC,OAAOC,KAAKC,MAAM,KAAKF,OAAOG,KAAKC,MAAM,cAAcD,KAAKE,UAAU,MAAM,EAAEC,EAAE,SAAShB,EAAEC,GAAG,IAAI,GAAGgB,oBAAoBC,oBAAoBC,SAASnB,GAAG,CAAC,GAAG,gBAAgBA,KAAK,2BAA2BoB,MAAM,OAAO,IAAIlB,EAAE,IAAIe,qBAAoB,SAAUjB,GAAG,OAAOA,EAAEqB,aAAaC,IAAIrB,EAAG,IAAG,OAAOC,EAAEqB,QAAQ,CAACC,KAAKxB,EAAEyB,UAAS,IAAKvB,CAAC,CAAW,CAAT,MAAMF,GAAG,CAAC,EAAE0B,EAAE,SAAS1B,EAAEC,GAAG,IAAIC,EAAE,SAASA,EAAEC,GAAG,aAAaA,EAAEqB,MAAM,WAAWG,SAASC,kBAAkB5B,EAAEG,GAAGF,IAAI4B,oBAAoB,mBAAmB3B,GAAE,GAAI2B,oBAAoB,WAAW3B,GAAE,IAAK,EAAE4B,iBAAiB,mBAAmB5B,GAAE,GAAI4B,iBAAiB,WAAW5B,GAAE,EAAG,EAAE6B,EAAE,SAAS/B,GAAG8B,iBAAiB,YAAW,SAAU7B,GAAGA,EAAE+B,WAAWhC,EAAEC,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?-1:t,delta:0,entries:[],id:\"v1-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12)}},r=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if(\"first-input\"===e&&!(\"PerformanceEventTiming\"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},o=function(e,t){var n=function n(i){\"pagehide\"!==i.type&&\"hidden\"!==document.visibilityState||(e(i),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},c=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&e(t)}),!0)},u=\"function\"==typeof WeakSet?new WeakSet:new Set,f=function(e,t,n){var i;return function(){t.value>=0&&(n||u.has(t)||\"hidden\"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},s=function(e,t){var n,i=a(\"CLS\",0),u=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},s=r(\"layout-shift\",u);s&&(n=f(e,i,t),o((function(){s.takeRecords().map(u),n()})),c((function(){i=a(\"CLS\",0),n=f(e,i,t)})))},m=-1,p=function(){return\"hidden\"===document.visibilityState?0:1/0},v=function(){o((function(e){var t=e.timeStamp;m=t}),!0)},d=function(){return m<0&&(m=p(),v(),c((function(){setTimeout((function(){m=p(),v()}),0)}))),{get timeStamp(){return m}}},l=function(e,t){var n,i=d(),o=a(\"FCP\"),s=function(e){\"first-contentful-paint\"===e.name&&(p&&p.disconnect(),e.startTime<i.timeStamp&&(o.value=e.startTime,o.entries.push(e),u.add(o),n()))},m=performance.getEntriesByName(\"first-contentful-paint\")[0],p=m?null:r(\"paint\",s);(m||p)&&(n=f(e,o,t),m&&s(m),c((function(i){o=a(\"FCP\"),n=f(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-i.timeStamp,u.add(o),n()}))}))})))},h={passive:!0,capture:!0},S=new Date,y=function(i,a){e||(e=a,t=i,n=new Date,w(removeEventListener),g())},g=function(){if(t>=0&&t<n-S){var a={entryType:\"first-input\",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+t};i.forEach((function(e){e(a)})),i=[]}},E=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){y(e,t),a()},i=function(){a()},a=function(){removeEventListener(\"pointerup\",n,h),removeEventListener(\"pointercancel\",i,h)};addEventListener(\"pointerup\",n,h),addEventListener(\"pointercancel\",i,h)}(t,e):y(t,e)}},w=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,E,h)}))},L=function(n,s){var m,p=d(),v=a(\"FID\"),l=function(e){e.startTime<p.timeStamp&&(v.value=e.processingStart-e.startTime,v.entries.push(e),u.add(v),m())},h=r(\"first-input\",l);m=f(n,v,s),h&&o((function(){h.takeRecords().map(l),h.disconnect()}),!0),h&&c((function(){var r;v=a(\"FID\"),m=f(n,v,s),i=[],t=-1,e=null,w(addEventListener),r=l,i.push(r),g()}))},T=function(e,t){var n,i=d(),s=a(\"LCP\"),m=function(e){var t=e.startTime;t<i.timeStamp&&(s.value=t,s.entries.push(e)),n()},p=r(\"largest-contentful-paint\",m);if(p){n=f(e,s,t);var v=function(){u.has(s)||(p.takeRecords().map(m),p.disconnect(),u.add(s),n())};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,v,{once:!0,capture:!0})})),o(v,!0),c((function(i){s=a(\"LCP\"),n=f(e,s,t),requestAnimationFrame((function(){requestAnimationFrame((function(){s.value=performance.now()-i.timeStamp,u.add(s),n()}))}))}))}},b=function(e){var t,n=a(\"TTFB\");t=function(){try{var t=performance.getEntriesByType(\"navigation\")[0]||function(){var e=performance.timing,t={entryType:\"navigation\",startTime:0};for(var n in e)\"navigationStart\"!==n&&\"toJSON\"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},\"complete\"===document.readyState?setTimeout(t,0):addEventListener(\"pageshow\",t)};export{s as getCLS,l as getFCP,L as getFID,T as getLCP,b as getTTFB};\n"],"names":["e","t","n","i","a","name","value","delta","entries","id","concat","Date","now","Math","floor","random","r","PerformanceObserver","supportedEntryTypes","includes","self","getEntries","map","observe","type","buffered","o","document","visibilityState","removeEventListener","addEventListener","c","persisted","u","WeakSet","Set","f","has","s","hadRecentInput","push","takeRecords","m","p","v","timeStamp","d","setTimeout","l","disconnect","startTime","add","performance","getEntriesByName","requestAnimationFrame","h","passive","capture","S","y","w","g","entryType","target","cancelable","processingStart","forEach","E","L","T","once","b","getEntriesByType","timing","max","navigationStart","responseStart","readyState"],"sourceRoot":""}
1
+ {"version":3,"file":"131.d69c8d2b.chunk.js","mappings":"+PAAA,IAAIA,EAAEC,EAAEC,EAAEC,EAAEC,EAAE,SAASJ,EAAEC,GAAG,MAAM,CAACI,KAAKL,EAAEM,WAAM,IAASL,GAAG,EAAEA,EAAEM,MAAM,EAAEC,QAAQ,GAAGC,GAAG,MAAMC,OAAOC,KAAKC,MAAM,KAAKF,OAAOG,KAAKC,MAAM,cAAcD,KAAKE,UAAU,MAAM,EAAEC,EAAE,SAAShB,EAAEC,GAAG,IAAI,GAAGgB,oBAAoBC,oBAAoBC,SAASnB,GAAG,CAAC,GAAG,gBAAgBA,KAAK,2BAA2BoB,MAAM,OAAO,IAAIlB,EAAE,IAAIe,qBAAoB,SAAUjB,GAAG,OAAOA,EAAEqB,aAAaC,IAAIrB,EAAG,IAAG,OAAOC,EAAEqB,QAAQ,CAACC,KAAKxB,EAAEyB,UAAS,IAAKvB,CAAC,CAAW,CAAT,MAAMF,GAAG,CAAC,EAAE0B,EAAE,SAAS1B,EAAEC,GAAG,IAAIC,EAAE,SAASA,EAAEC,GAAG,aAAaA,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EAAE2E,cAAc1E,EAAEI,MAAM,EAAE,OAAOJ,EAAEM,QAAQ,CAACP,GAAGD,EAAEE,EAAY,CAAT,MAAMF,GAAG,CAAC,EAAE,aAAa2B,SAASkD,WAAW9B,WAAW9C,EAAE,GAAG6B,iBAAiB,WAAW7B,EAAE,C","sources":["webpack://_SDF/./node_modules/web-vitals/dist/web-vitals.js"],"sourcesContent":["var e,t,n,i,a=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:\"v1-\".concat(Date.now(),\"-\").concat(Math.floor(8999999999999*Math.random())+1e12)}},r=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if(\"first-input\"===e&&!(\"PerformanceEventTiming\"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},o=function(e,t){var n=function n(i){\"pagehide\"!==i.type&&\"hidden\"!==document.visibilityState||(e(i),t&&(removeEventListener(\"visibilitychange\",n,!0),removeEventListener(\"pagehide\",n,!0)))};addEventListener(\"visibilitychange\",n,!0),addEventListener(\"pagehide\",n,!0)},c=function(e){addEventListener(\"pageshow\",(function(t){t.persisted&&e(t)}),!0)},u=\"function\"==typeof WeakSet?new WeakSet:new Set,f=function(e,t,n){var i;return function(){t.value>=0&&(n||u.has(t)||\"hidden\"===document.visibilityState)&&(t.delta=t.value-(i||0),(t.delta||void 0===i)&&(i=t.value,e(t)))}},s=function(e,t){var n,i=a(\"CLS\",0),u=function(e){e.hadRecentInput||(i.value+=e.value,i.entries.push(e),n())},s=r(\"layout-shift\",u);s&&(n=f(e,i,t),o((function(){s.takeRecords().map(u),n()})),c((function(){i=a(\"CLS\",0),n=f(e,i,t)})))},m=-1,p=function(){return\"hidden\"===document.visibilityState?0:1/0},v=function(){o((function(e){var t=e.timeStamp;m=t}),!0)},d=function(){return m<0&&(m=p(),v(),c((function(){setTimeout((function(){m=p(),v()}),0)}))),{get timeStamp(){return m}}},l=function(e,t){var n,i=d(),o=a(\"FCP\"),s=function(e){\"first-contentful-paint\"===e.name&&(p&&p.disconnect(),e.startTime<i.timeStamp&&(o.value=e.startTime,o.entries.push(e),u.add(o),n()))},m=performance.getEntriesByName(\"first-contentful-paint\")[0],p=m?null:r(\"paint\",s);(m||p)&&(n=f(e,o,t),m&&s(m),c((function(i){o=a(\"FCP\"),n=f(e,o,t),requestAnimationFrame((function(){requestAnimationFrame((function(){o.value=performance.now()-i.timeStamp,u.add(o),n()}))}))})))},h={passive:!0,capture:!0},S=new Date,y=function(i,a){e||(e=a,t=i,n=new Date,w(removeEventListener),g())},g=function(){if(t>=0&&t<n-S){var a={entryType:\"first-input\",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+t};i.forEach((function(e){e(a)})),i=[]}},E=function(e){if(e.cancelable){var t=(e.timeStamp>1e12?new Date:performance.now())-e.timeStamp;\"pointerdown\"==e.type?function(e,t){var n=function(){y(e,t),a()},i=function(){a()},a=function(){removeEventListener(\"pointerup\",n,h),removeEventListener(\"pointercancel\",i,h)};addEventListener(\"pointerup\",n,h),addEventListener(\"pointercancel\",i,h)}(t,e):y(t,e)}},w=function(e){[\"mousedown\",\"keydown\",\"touchstart\",\"pointerdown\"].forEach((function(t){return e(t,E,h)}))},L=function(n,s){var m,p=d(),v=a(\"FID\"),l=function(e){e.startTime<p.timeStamp&&(v.value=e.processingStart-e.startTime,v.entries.push(e),u.add(v),m())},h=r(\"first-input\",l);m=f(n,v,s),h&&o((function(){h.takeRecords().map(l),h.disconnect()}),!0),h&&c((function(){var r;v=a(\"FID\"),m=f(n,v,s),i=[],t=-1,e=null,w(addEventListener),r=l,i.push(r),g()}))},T=function(e,t){var n,i=d(),s=a(\"LCP\"),m=function(e){var t=e.startTime;t<i.timeStamp&&(s.value=t,s.entries.push(e)),n()},p=r(\"largest-contentful-paint\",m);if(p){n=f(e,s,t);var v=function(){u.has(s)||(p.takeRecords().map(m),p.disconnect(),u.add(s),n())};[\"keydown\",\"click\"].forEach((function(e){addEventListener(e,v,{once:!0,capture:!0})})),o(v,!0),c((function(i){s=a(\"LCP\"),n=f(e,s,t),requestAnimationFrame((function(){requestAnimationFrame((function(){s.value=performance.now()-i.timeStamp,u.add(s),n()}))}))}))}},b=function(e){var t,n=a(\"TTFB\");t=function(){try{var t=performance.getEntriesByType(\"navigation\")[0]||function(){var e=performance.timing,t={entryType:\"navigation\",startTime:0};for(var n in e)\"navigationStart\"!==n&&\"toJSON\"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();if(n.value=n.delta=t.responseStart,n.value<0)return;n.entries=[t],e(n)}catch(e){}},\"complete\"===document.readyState?setTimeout(t,0):addEventListener(\"pageshow\",t)};export{s as getCLS,l as getFCP,L as getFID,T as getLCP,b as getTTFB};\n"],"names":["e","t","n","i","a","name","value","delta","entries","id","concat","Date","now","Math","floor","random","r","PerformanceObserver","supportedEntryTypes","includes","self","getEntries","map","observe","type","buffered","o","document","visibilityState","removeEventListener","addEventListener","c","persisted","u","WeakSet","Set","f","has","s","hadRecentInput","push","takeRecords","m","p","v","timeStamp","d","setTimeout","l","disconnect","startTime","add","performance","getEntriesByName","requestAnimationFrame","h","passive","capture","S","y","w","g","entryType","target","cancelable","processingStart","forEach","E","L","T","once","b","getEntriesByType","timing","max","navigationStart","responseStart","readyState"],"sourceRoot":""}
@@ -3,6 +3,7 @@ export declare const UNLOGIN_APIS: {
3
3
  CODE: string;
4
4
  TENANDCODE: string;
5
5
  REGISTER: string;
6
+ LOGIN_CAPTCHA: string;
6
7
  CAPTCHA: string;
7
8
  SAAS: string;
8
9
  };
@@ -11,6 +12,7 @@ export declare const URLS: {
11
12
  CODE: string;
12
13
  TENANDCODE: string;
13
14
  REGISTER: string;
15
+ LOGIN_CAPTCHA: string;
14
16
  CAPTCHA: string;
15
17
  SAAS: string;
16
18
  RESET_PWD: string;
@@ -27,6 +29,9 @@ export declare const URLS: {
27
29
  MODIFY_MOBILE: string;
28
30
  MODIFY_EMAIL: string;
29
31
  SAAS_LOCALES: string;
32
+ ENTERPRISES_LIST: string;
33
+ ENTERPRISES_DEFAULT: string;
34
+ ENTERPRISES_SWITCHER: string;
30
35
  LOGIN: string;
31
36
  LOGOUT: string;
32
37
  };
@@ -1,6 +1,6 @@
1
1
  import { FormInstance } from 'antd';
2
2
  declare const VerifyCode: ({ form, action, }: {
3
3
  form: FormInstance;
4
- action: 'forgot' | 'register';
4
+ action: 'forgot' | 'register' | 'login';
5
5
  }) => JSX.Element;
6
6
  export default VerifyCode;
@@ -5,3 +5,10 @@ declare const IconFont: ({ type, className, style }: {
5
5
  style?: {};
6
6
  }) => JSX.Element;
7
7
  export default IconFont;
8
+ export declare function IconUser(props: any): JSX.Element;
9
+ export declare function IconLock(props: any): JSX.Element;
10
+ export declare function IconBell(props: any): JSX.Element;
11
+ export declare function IconMobile(props: any): JSX.Element;
12
+ export declare function IconGlobal(props: any): JSX.Element;
13
+ export declare function IconFullscreenExit(props: any): JSX.Element;
14
+ export declare function IconFullscreenOut(props: any): JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { MenuProps } from "antd";
2
+ import { MenuProps } from 'antd';
3
3
  import { IMenu } from "@/components/BLayout/components/Menu";
4
4
  declare const BaseMenu: React.FC<MenuProps & {
5
5
  items: IMenu[];
@@ -0,0 +1 @@
1
+ export default function EllipsisSvg(): JSX.Element;
@@ -3,5 +3,6 @@ import { MenuProps } from "antd";
3
3
  import { IMenu } from "@/components/BLayout/components/Menu";
4
4
  declare const HorizontalMenu: React.FC<MenuProps & {
5
5
  items: IMenu[];
6
+ showHistory?: boolean;
6
7
  }>;
7
8
  export default HorizontalMenu;
@@ -1 +1,8 @@
1
- export default function LayoutSider(props: any): JSX.Element;
1
+ interface LayoutSiderProps {
2
+ logo: string;
3
+ title: string;
4
+ menus: any[];
5
+ isSubSider?: boolean;
6
+ }
7
+ export default function LayoutSider(props: LayoutSiderProps): JSX.Element;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { PopoverProps } from "antd";
3
+ interface DynamicNavsProps extends Omit<PopoverProps, 'content'> {
4
+ isInAsider?: boolean;
5
+ renderTxt?(): any;
6
+ renderCollapsedTxt?(): any;
7
+ }
8
+ declare const DynamicNavs: React.FC<DynamicNavsProps>;
9
+ export default DynamicNavs;
@@ -8,6 +8,7 @@ interface NavItemProps extends Omit<PopoverProps, 'content'> {
8
8
  menu?: MenuProps;
9
9
  renderTxt?(): React.ReactNode;
10
10
  renderPopupContent?(): React.ReactNode;
11
+ onClick?(): void;
11
12
  }
12
13
  declare const NavItem: React.FC<NavItemProps>;
13
14
  export default NavItem;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface SwitchThemeProps {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ renderTxt?(themeMode: 'dark' | 'light'): React.ReactNode;
6
+ }
7
+ declare const SwitchTheme: React.FC<SwitchThemeProps>;
8
+ export default SwitchTheme;
@@ -1 +1,4 @@
1
- export default function AntdLayout(props: any): JSX.Element;
1
+ import { LayoutProps } from "@/components/Layout/interface";
2
+ export default function AntdLayout(props: Partial<LayoutProps & {
3
+ children: any;
4
+ }>): JSX.Element;
@@ -1,38 +1,19 @@
1
1
  import { IMenu } from "@/components/BLayout/components/Menu";
2
2
  export interface LayoutProps {
3
3
  layoutConfig: {
4
- mode: 'LT' | 'TB' | 'FS';
4
+ mode: 'LR' | 'TB' | 'TL';
5
5
  hideSider: boolean;
6
6
  hideHeader: boolean;
7
+ enableSubSider: boolean;
8
+ hideLayoutPadding: boolean;
7
9
  };
8
10
  title: string;
9
11
  logo: string;
12
+ bgImage: string;
10
13
  menus: Array<IMenu>;
11
- recentlyVisited: Array<IMenu>;
12
- dynamicNavs: Array<{
13
- logo: string;
14
- url: string;
15
- text: string;
16
- }>;
17
- userInfo: {
18
- email: string;
19
- mobile: string;
20
- tenant_code: string;
21
- account_type: number;
22
- user_id: string;
23
- user_name: string;
24
- user_nick_name: string;
25
- roles: {
26
- role_code: string;
27
- role_name: string;
28
- }[];
29
- };
30
- supportNotification: boolean;
14
+ currentLanguage: string;
31
15
  supportLanguages: Array<{
32
- code: string;
33
- name: string;
16
+ label: string;
17
+ value: string;
34
18
  }>;
35
- showAppDownload: boolean;
36
- currentLanguage: string;
37
- currentPhoneRegion: string;
38
19
  }
@@ -5,6 +5,7 @@ export interface BreadcrumbInfo {
5
5
  type?: 'auto' | 'root' | 'menu' | 'c';
6
6
  name?: string;
7
7
  path?: string;
8
+ render?(eleTitle: HTMLDivElement): React.ReactNode;
8
9
  }
9
10
  export type BreadcrumbInfoInput = {
10
11
  type: 'auto' | 'root';
@@ -0,0 +1 @@
1
+ export default function EnterpriseList(): JSX.Element;
@@ -0,0 +1 @@
1
+ export default function PageEnterprise(props: any): JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const AccountSetting: (props: any) => JSX.Element;
2
+ export default AccountSetting;
@@ -1,2 +1 @@
1
- declare const SettingPage: (props: any) => JSX.Element;
2
- export default SettingPage;
1
+ export default function SettingPage(props: any): JSX.Element;
package/dist/en.json CHANGED
@@ -12,6 +12,7 @@
12
12
  "login.form.password.label": "Password",
13
13
  "login.form.password.validate.require": "Please input password",
14
14
  "login.form.password.validate.pattern": "Password length is 8-20 and contains at least three character types (numbers, uppercase letters, lowercase letters and English symbols)",
15
+ "login.form.password.validate.pattern2": "Password length is {{min}}-{{max}} and contains at least three character types (numbers, uppercase letters, lowercase letters and English symbols)",
15
16
  "login.form.password.placeholder": "Please enter password",
16
17
  "login.form.newPassword.label": "New Password",
17
18
  "login.form.phone.label": "Phone number",
@@ -27,7 +28,7 @@
27
28
  "login.form.tenantId.require": "Please enter tenant ID",
28
29
  "login.form.tenantId.pattern": "The tenant ID is 4-16 characters long and must start with a lowercase letter (lowercase letters, numbers, and hyphens are supported)",
29
30
  "login.signIn": "Sign In",
30
- "login.forgot": "Forgot password?",
31
+ "login.forgot": "Forgot password",
31
32
  "login.back2login": "Back to login",
32
33
  "login.resetPwd": "Reset Password",
33
34
  "login.resetPwdSuccess": "Password changed successfully, please use the new password to log in",
@@ -146,6 +147,9 @@
146
147
  "httpCodeText.timeout": "Request timed out",
147
148
  "httpCodeText.abort": "Connection failed",
148
149
  "httpCodeText.callBack": "Network exception",
150
+ "navItem.theme.light": "Light Mode",
151
+ "navItem.theme.dark": "Dark Mode",
152
+ "navItem.app.download": "Download APP",
149
153
  "appHint1": "Scan the QR code with Smart Industry App",
150
154
  "appHint2": "explorer more features",
151
155
  "backLoginPage": "Back to Page Login",
@@ -159,6 +163,7 @@
159
163
  "expirationPage": "The SaaS experience service has expired, please contact the developer to pay",
160
164
  "trial": "Trial Version",
161
165
  "admin": "Administrator",
166
+ "admin.enterprise": "Enterprise Administrator",
162
167
  "forgot.title": "Retrive password",
163
168
  "forgot.resetPwd": "Reset Password",
164
169
  "forgot.tenantRole": "Tenant user",
@@ -189,6 +194,17 @@
189
194
  "microApp.purchaseModal.product2.title": " Option Two",
190
195
  "microApp.purchaseModal.title": "Solution selection",
191
196
  "global.saas.expired.tips1": "Your SaaS service has expired. To continue using it, please visit the Tuya Developer Platform to renew your subscription.",
192
- "global.saas.expired.tips2": "Your SaaS service will expire in {{day}} days. To continue using it, please visit the Tuya Developer Platform to renew your subscription."
197
+ "global.saas.expired.tips2": "Your SaaS service will expire in {{day}} days. To continue using it, please visit the Tuya Developer Platform to renew your subscription.",
198
+ "enterprise.meta.status.current": "Current",
199
+ "enterprise.meta.status.expired": "Expired",
200
+ "enterprise.meta.status.permanent": "Permanent",
201
+ "enterprise.meta.type.brander": "Industry Merchants",
202
+ "enterprise.meta.type.channel": "Channel Partners",
203
+ "enterprise.meta.type.operator": "Service Provider",
204
+ "enterprise.meta.type.other": "Other",
205
+ "enterprise.field.expireDate": "Expiration Date: ",
206
+ "enterprise.field.type": "Type: ",
207
+ "enterprise.field.role": "Roles: ",
208
+ "enterprise.field.loginDefault": "Default Login"
193
209
  }
194
210
  }
@@ -0,0 +1,8 @@
1
+ export default function useMultiLanguages(): {
2
+ currentLanguage: string;
3
+ supportLanguages: Array<{
4
+ label: string;
5
+ value: string;
6
+ }>;
7
+ switchLang(lang: string): void;
8
+ };
package/dist/index.d.ts CHANGED
@@ -2,10 +2,15 @@ import './index.css';
2
2
  import './public-path.js';
3
3
  import { FC } from 'react';
4
4
  import * as _langUtils from './lang/utils';
5
+ import { LayoutProps } from "./components/Layout/interface";
6
+ export { initGlobalState, globalStateActions } from './qiankun/globalState';
7
+ export { LayoutProps } from "./components/Layout/interface";
5
8
  export { api, URLS } from './api';
6
9
  export { useYRule } from './utils/yrule';
10
+ export { initialTheme, useTheme } from "./utils/theme";
7
11
  export { default as i18n } from './lang';
8
12
  export declare const langUtils: typeof _langUtils;
13
+ export { default as useMultiLanguages } from './hooks/useMultiLanguages';
9
14
  export interface IHooks {
10
15
  /**
11
16
  * 功能:SaaS 页面渲染前钩子,主应用生命周期中最早的钩子
@@ -67,6 +72,11 @@ interface IPages {
67
72
  isHideMultiLang?: boolean;
68
73
  isHidePhoneRegionNum?: boolean;
69
74
  showClauseInModal?: boolean;
75
+ disableReLogin?: boolean;
76
+ passwordRules?: {
77
+ min?: number;
78
+ max?: number;
79
+ };
70
80
  };
71
81
  Forget: FC;
72
82
  Register: FC & {
@@ -77,11 +87,15 @@ interface IPages {
77
87
  };
78
88
  [key: string]: FC;
79
89
  }
90
+ interface Layout extends FC<LayoutProps> {
91
+ Login?: FC<Partial<LayoutProps>>;
92
+ }
80
93
  export interface IUI {
81
94
  pages?: IPages;
82
95
  nav?: FC;
83
96
  menu?: FC;
84
97
  mdb?: FC;
98
+ layout: Layout;
85
99
  }
86
100
  export interface IMainConfig {
87
101
  ui?: IUI;
@@ -12,6 +12,8 @@ export declare const oemSaasAy: () => {
12
12
  privacy_policy: any;
13
13
  service_terms: any;
14
14
  hostFiling: any;
15
+ layoutMode: any;
16
+ loginLayoutMode: any;
15
17
  };
16
18
  export declare const dynamicHeaderMenu: () => any;
17
19
  export declare const getMenus: (entry_info: any) => any;