@tuya-sat/sdf-main-sdk 2.0.0-alpha.99 → 2.0.0-qrcode-alpha.2

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 (96) hide show
  1. package/dist/364.99245691.chunk.js +2 -0
  2. package/dist/364.99245691.chunk.js.map +1 -0
  3. package/dist/api/index.d.ts +10 -7
  4. package/dist/api/urls.d.ts +33 -0
  5. package/dist/components/403/index.d.ts +4 -1
  6. package/dist/components/BLayout/components/Layout/index.d.ts +4 -4
  7. package/dist/components/BLayout/components/Logo.d.ts +4 -1
  8. package/dist/components/BLogin/component/UserName/index.d.ts +6 -3
  9. package/dist/components/BLogin/component/VerifyCode/VerifyCodeInput.d.ts +6 -0
  10. package/dist/components/BackNotice/index.d.ts +2 -0
  11. package/dist/components/Download/index.d.ts +3 -0
  12. package/dist/components/ImageUpload/index.d.ts +4 -0
  13. package/dist/components/ImageUpload/utils.d.ts +1 -0
  14. package/dist/components/Layout/antd/Header/index.d.ts +12 -1
  15. package/dist/components/Layout/antd/Menu/HorizontalMenu/index.d.ts +1 -0
  16. package/dist/components/Layout/antd/Menu/index.d.ts +3 -0
  17. package/dist/components/Layout/antd/Sider/index.d.ts +4 -0
  18. package/dist/components/Layout/antd/components/AppDownload/index.d.ts +2 -6
  19. package/dist/components/Layout/antd/components/DynamicNavs/index.d.ts +1 -0
  20. package/dist/components/Layout/antd/components/HomeSelect/homeSvg.d.ts +3 -0
  21. package/dist/components/Layout/antd/components/HomeSelect/index.d.ts +4 -0
  22. package/dist/components/Layout/antd/components/HomeSelect/projectSvg.d.ts +3 -0
  23. package/dist/components/Layout/antd/components/HomeSelect/useHomeInfo.d.ts +12 -0
  24. package/dist/components/Layout/antd/components/NavItem/index.d.ts +2 -1
  25. package/dist/components/Layout/antd/components/ProjectSelect/index.d.ts +4 -0
  26. package/dist/components/Layout/antd/components/ProjectSelect/useProjectInfo.d.ts +12 -0
  27. package/dist/components/Layout/antd/components/UserAccount/SmartHomeUserAccount.d.ts +16 -0
  28. package/dist/components/Layout/antd/components/UserAccount/UserAccount.d.ts +16 -0
  29. package/dist/components/Layout/antd/components/UserAccount/UserAvatar.d.ts +9 -0
  30. package/dist/components/Layout/antd/components/UserAccount/UserHome.d.ts +3 -0
  31. package/dist/components/Layout/antd/components/UserAccount/index.d.ts +3 -15
  32. package/dist/components/Layout/antd/index.d.ts +2 -0
  33. package/dist/components/Layout/interface.d.ts +8 -1
  34. package/dist/components/MessageNotification/index.d.ts +13 -0
  35. package/dist/components/MessageNotification/manager.d.ts +13 -0
  36. package/dist/components/MessageNotification/messageNotificationManager.d.ts +3 -0
  37. package/dist/components/MicroComponent/Header/index.d.ts +17 -2
  38. package/dist/components/PEnterprise/EnterpriseList.d.ts +3 -1
  39. package/dist/components/PSetting/AccountSetting.d.ts +10 -1
  40. package/dist/components/Register/components/CountryRegionCascader/RegionCascader.d.ts +19 -0
  41. package/dist/components/Register/components/CountryRegionCascader/index.d.ts +10 -0
  42. package/dist/components/Register/components/CountryRegionCascader/services.d.ts +9 -0
  43. package/dist/components/Register/components/RegisterForm/AccountForm.d.ts +23 -0
  44. package/dist/components/Register/components/RegisterForm/EnterpriseForm.d.ts +2 -0
  45. package/dist/components/Register/components/RegisterForm/index.d.ts +7 -0
  46. package/dist/components/Register/components/RegisterResult/index.d.ts +3 -0
  47. package/dist/components/Register/index.d.ts +1 -0
  48. package/dist/components/SmartHomeLogin/component/qrLogin.d.ts +17 -0
  49. package/dist/components/SmartHomeLogin/component/svg.d.ts +1 -0
  50. package/dist/components/SmartHomeLogin/index.d.ts +7 -0
  51. package/dist/components/SmartHomeSetting/index.d.ts +10 -0
  52. package/dist/constant/avatars.d.ts +16 -0
  53. package/dist/constant/index.d.ts +10 -0
  54. package/dist/en.json +120 -8
  55. package/dist/hooks/index.d.ts +10 -5
  56. package/dist/hooks/useMultiLanguages.d.ts +1 -1
  57. package/dist/index.d.ts +19 -3
  58. package/dist/lang/utils.d.ts +1 -1
  59. package/dist/main.bundle.js +1 -1
  60. package/dist/main.bundle.js.LICENSE.txt +54 -3
  61. package/dist/main.bundle.js.map +1 -1
  62. package/dist/main.css +1945 -476
  63. package/dist/main.css.map +1 -1
  64. package/dist/manifest.json +9 -2
  65. package/dist/mqtt/business.d.ts +35 -0
  66. package/dist/mqtt/index.d.ts +1 -1
  67. package/dist/pages/403.d.ts +4 -1
  68. package/dist/pages/download.d.ts +2 -0
  69. package/dist/pages/home/notice/ConfirmCloseModal.d.ts +15 -0
  70. package/dist/pages/home/notice/MessageDetailModal.d.ts +37 -0
  71. package/dist/pages/home/notice/hooks.d.ts +16 -4
  72. package/dist/pages/home/notice/table/read.d.ts +6 -1
  73. package/dist/pages/home/notice/tools/index.d.ts +4 -1
  74. package/dist/pages/login.d.ts +1 -0
  75. package/dist/qiankun/utils/index.d.ts +7 -5
  76. package/dist/sky/index.d.ts +1 -0
  77. package/dist/static/img/328d8b5c342b13933c5c.png +0 -0
  78. package/dist/static/img/76c556a61bed8625e262.png +0 -0
  79. package/dist/static/img/7d9900e808e2197745be.png +0 -0
  80. package/dist/static/img/a10132bbdef90aa7baaf.png +0 -0
  81. package/dist/static/img/a20c372b6039996ba351.png +0 -0
  82. package/dist/static/img/b765d4caa82d7e5eae80.png +0 -0
  83. package/dist/static/img/f110c37284312f4d2af6.png +0 -0
  84. package/dist/utils/common.d.ts +10 -0
  85. package/dist/utils/console.d.ts +1 -0
  86. package/dist/utils/index.d.ts +47 -6
  87. package/dist/utils/maskSensitiveInfo.d.ts +5 -0
  88. package/dist/utils/soundManager.d.ts +12 -0
  89. package/dist/utils/switchHome.d.ts +8 -0
  90. package/dist/utils/theme/antd5/index.d.ts +921 -138
  91. package/dist/utils/theme/antd5/token.d.ts +926 -149
  92. package/dist/utils/theme/store.d.ts +1842 -276
  93. package/dist/zh.json +119 -7
  94. package/package.json +11 -5
  95. package/dist/131.95cff292.chunk.js +0 -2
  96. package/dist/131.95cff292.chunk.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_SDF=self.webpackChunk_SDF||[]).push([[364],{364:function(e,t,n){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=364.99245691.chunk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"364.99245691.chunk.js","mappings":"sPAAA,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,oBAAoB,SAAUjB,GAAG,OAAOA,EAAEqB,aAAaC,IAAIrB,EAAG,GAAG,OAAOC,EAAEqB,QAAQ,CAACC,KAAKxB,EAAEyB,UAAS,IAAKvB,CAAC,CAAC,CAAC,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,WAAW,SAAU7B,GAAGA,EAAE+B,WAAWhC,EAAEC,EAAG,GAAE,EAAG,EAAEgC,EAAE,mBAAmBC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.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":""}
@@ -6,13 +6,16 @@ export interface ResData<T> {
6
6
  result?: T;
7
7
  [keys: string]: any;
8
8
  }
9
+ export interface RequestConfig extends AxiosRequestConfig {
10
+ hideErrorMessage?: boolean;
11
+ }
9
12
  export interface IAxiosInstance extends AxiosInstance {
10
- request<T = any, R = ResData<T>>(config: AxiosRequestConfig): Promise<R>;
11
- get<T = any, R = ResData<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
12
- delete<T = any, R = ResData<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
13
- head<T = any, R = ResData<T>>(url: string, config?: AxiosRequestConfig): Promise<R>;
14
- post<T = any, R = ResData<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
15
- put<T = any, R = ResData<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
16
- patch<T = any, R = ResData<T>>(url: string, data?: any, config?: AxiosRequestConfig): Promise<R>;
13
+ request<T = any>(config: RequestConfig): Promise<T>;
14
+ get<T = any, R = T>(url: string, config?: RequestConfig): Promise<T>;
15
+ delete<T = any>(url: string, config?: RequestConfig): Promise<T>;
16
+ head<T = any>(url: string, config?: RequestConfig): Promise<T>;
17
+ post<T = any>(url: string, data?: any, config?: RequestConfig): Promise<T>;
18
+ put<T = any>(url: string, data?: any, config?: RequestConfig): Promise<T>;
19
+ patch<T = any>(url: string, data?: any, config?: RequestConfig): Promise<T>;
17
20
  }
18
21
  export declare const api: IAxiosInstance;
@@ -6,6 +6,11 @@ export declare const UNLOGIN_APIS: {
6
6
  LOGIN_CAPTCHA: string;
7
7
  CAPTCHA: string;
8
8
  SAAS: string;
9
+ COUNTRY_LIST: string;
10
+ COUNTRY_PROVINCE_LIST: string;
11
+ ENTERPRISE_REGISTER: string;
12
+ ENTERPRISE_REGISTER_CAPTCHA: string;
13
+ BIND_APPS: string;
9
14
  };
10
15
  export declare const URLS: {
11
16
  FORGET_PWD: string;
@@ -15,16 +20,27 @@ export declare const URLS: {
15
20
  LOGIN_CAPTCHA: string;
16
21
  CAPTCHA: string;
17
22
  SAAS: string;
23
+ COUNTRY_LIST: string;
24
+ COUNTRY_PROVINCE_LIST: string;
25
+ ENTERPRISE_REGISTER: string;
26
+ ENTERPRISE_REGISTER_CAPTCHA: string;
27
+ BIND_APPS: string;
18
28
  RESET_PWD: string;
19
29
  SAAS_INFO: string;
20
30
  QRCODE: string;
21
31
  MQTT: string;
32
+ MQTT_BUSINESS: string;
22
33
  ModifyPhoneAndEmail: string;
23
34
  USER_INFO: string;
24
35
  USER_INFO_V1: string;
36
+ USER_INFO_V3: string;
37
+ USER_INFO_SMART_HOME: string;
38
+ USER_CAPTCHA: string;
25
39
  NOTICE_QUERY_LIST_GET: string;
26
40
  NOTICE_HANDLE_READ_PUT: string;
41
+ NOTICE_HANDLE_READ_PUT_SMARTHOME: string;
27
42
  NOTICE_DELETE_DELETE: string;
43
+ NOTICE_DELETE_DELETE_SMARTHOME: string;
28
44
  NOTICE_UNREAD_COUNT_GET: string;
29
45
  MODIFY_MOBILE: string;
30
46
  MODIFY_EMAIL: string;
@@ -32,6 +48,23 @@ export declare const URLS: {
32
48
  ENTERPRISES_LIST: string;
33
49
  ENTERPRISES_DEFAULT: string;
34
50
  ENTERPRISES_SWITCHER: string;
51
+ PROJECT_LIST: string;
52
+ PROJECT_SWITCH: string;
53
+ HOME_LIST: string;
54
+ HOME_SWITCH: string;
55
+ ACCOUNT_AVATAR: string;
56
+ UPLOAD_STEP1: string;
57
+ UPLOAD_STEP3: string;
58
+ UPLOAD_STEP4: string;
59
+ ENTERPRISE_TONE_GET: string;
60
+ ENTERPRISE_TONE_ENABLE: string;
61
+ OTHER_ENTERPRISE_MESSAGES_UNREAD_FLAG: string;
62
+ OTHER_ENTERPRISE_MESSAGES_UNREAD_COUNT: string;
63
+ CURRENT_ENTERPRISE_MESSAGES_UNREAD_COUNT: string;
64
+ USER_LANG: string;
65
+ USER_INFO_UPDATE: string;
35
66
  LOGIN: string;
36
67
  LOGOUT: string;
68
+ GET_LOGIN_QRCODE: string;
69
+ LOGIN_WITH_QRCODE: string;
37
70
  };
@@ -1 +1,4 @@
1
- export default function Com403(): JSX.Element;
1
+ export default function Com403(props: {
2
+ title?: string | boolean;
3
+ description?: string;
4
+ }): JSX.Element;
@@ -1,7 +1,7 @@
1
- import { FC, ReactNode } from 'react';
2
- import { SiderProps } from 'antd';
3
- import { MenuType } from '../Menu';
4
- import { IMenu } from '../Menu';
1
+ import { FC, ReactNode } from "react";
2
+ import { SiderProps } from "antd";
3
+ import { MenuType } from "../Menu";
4
+ import { IMenu } from "../Menu";
5
5
  export interface ILayoutProps {
6
6
  mode: MenuType;
7
7
  menus: Array<IMenu>;
@@ -1,2 +1,5 @@
1
- declare const Logo: () => JSX.Element;
1
+ import React from "react";
2
+ declare const Logo: (props: {
3
+ style?: React.CSSProperties;
4
+ }) => JSX.Element;
2
5
  export default Logo;
@@ -1,4 +1,7 @@
1
- declare const UserName: ({ label }: {
2
- label?: any;
3
- }) => JSX.Element;
1
+ import React from 'react';
2
+ interface UserNameProps {
3
+ label?: React.ReactNode;
4
+ showCountryCode?: boolean;
5
+ }
6
+ declare const UserName: (props: UserNameProps) => JSX.Element;
4
7
  export default UserName;
@@ -0,0 +1,6 @@
1
+ import { InputProps } from "antd";
2
+ interface VerifyCodeInputProps extends InputProps {
3
+ sendVerifyCode(secureKey: string): Promise<boolean | undefined>;
4
+ }
5
+ export default function VerifyCodeInput(props: VerifyCodeInputProps): JSX.Element;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ declare const Back: () => JSX.Element;
2
+ export default Back;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const DownloadPage: React.FC;
3
+ export default DownloadPage;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ImageUploadProps } from './interface';
3
+ declare const ImageUpload: React.FC<ImageUploadProps>;
4
+ export default ImageUpload;
@@ -0,0 +1 @@
1
+ export declare const getFileNameFromURL: (url: string) => string;
@@ -1 +1,12 @@
1
- export default function LayoutHeader(props: any): JSX.Element;
1
+ import React from "react";
2
+ export default function LayoutHeader(props: {
3
+ className?: string;
4
+ style?: React.CSSProperties;
5
+ title: string;
6
+ logo: string;
7
+ menus: any[];
8
+ layoutMode: string;
9
+ requiredProject: boolean;
10
+ isSysSettings: boolean;
11
+ mode: 'LR' | 'TB' | 'TL';
12
+ }): JSX.Element;
@@ -4,5 +4,6 @@ import { IMenu } from "@/components/BLayout/components/Menu";
4
4
  declare const HorizontalMenu: React.FC<MenuProps & {
5
5
  items: IMenu[];
6
6
  showHistory?: boolean;
7
+ layoutMode?: string;
7
8
  }>;
8
9
  export default HorizontalMenu;
@@ -1,7 +1,10 @@
1
+ import { MutableRefObject } from "react";
1
2
  export declare const modifySelectedMenu: (path: string) => void;
2
3
  export default function SiteMenu(props: {
3
4
  collapsed?: boolean;
4
5
  isInSider?: boolean;
5
6
  className?: string;
7
+ layoutMode?: string;
8
+ eleRef?: MutableRefObject<HTMLDivElement>;
6
9
  menus: any[];
7
10
  }): JSX.Element;
@@ -2,7 +2,11 @@ interface LayoutSiderProps {
2
2
  logo: string;
3
3
  title: string;
4
4
  menus: any[];
5
+ collapsed?: boolean;
5
6
  isSubSider?: boolean;
7
+ requiredProject?: boolean;
8
+ className?: string;
9
+ mode?: 'LR' | 'TB' | 'TL';
6
10
  }
7
11
  export default function LayoutSider(props: LayoutSiderProps): JSX.Element;
8
12
  export {};
@@ -1,10 +1,6 @@
1
1
  import React from "react";
2
- import { PopoverProps } from "antd";
3
- interface AppDownloadProps extends PopoverProps {
4
- className?: string;
5
- style?: React.CSSProperties;
6
- icon?: React.ReactNode;
7
- renderTxt?(): React.ReactNode;
2
+ import { NavItemProps } from "../NavItem";
3
+ interface AppDownloadProps extends NavItemProps {
8
4
  renderContent?(info: {
9
5
  tip: string;
10
6
  url: string;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { PopoverProps } from "antd";
3
3
  interface DynamicNavsProps extends Omit<PopoverProps, 'content'> {
4
4
  isInAsider?: boolean;
5
+ afterSlot?: React.ReactNode;
5
6
  renderTxt?(): any;
6
7
  renderCollapsedTxt?(): any;
7
8
  }
@@ -0,0 +1,3 @@
1
+ export default function HomeSvg(props: {
2
+ className?: string;
3
+ }): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default function HomeSelect(props: {
2
+ aside?: boolean;
3
+ collapsed?: boolean;
4
+ }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function ProjectSvg(props: {
2
+ className?: string;
3
+ }): JSX.Element;
@@ -0,0 +1,12 @@
1
+ export interface HomeInfo {
2
+ home_id: string;
3
+ home_name: string;
4
+ lastest_chosen: boolean;
5
+ }
6
+ export declare const getHomeId: () => string;
7
+ export declare const cacheHomeId: (id: string) => void;
8
+ export default function useHomeInfo(): {
9
+ loading: boolean;
10
+ list?: HomeInfo[];
11
+ currentId?: string;
12
+ };
@@ -1,11 +1,12 @@
1
1
  import React from "react";
2
2
  import { MenuProps, PopoverProps } from "antd";
3
- interface NavItemProps extends Omit<PopoverProps, 'content'> {
3
+ export interface NavItemProps extends Omit<PopoverProps, 'content'> {
4
4
  className?: string;
5
5
  style?: React.CSSProperties;
6
6
  icon?: React.ReactNode;
7
7
  url?: string;
8
8
  menu?: MenuProps;
9
+ enableEllipsis?: boolean;
9
10
  renderTxt?(): React.ReactNode;
10
11
  renderPopupContent?(): React.ReactNode;
11
12
  onClick?(): void;
@@ -0,0 +1,4 @@
1
+ export default function ProjectSelect(props: {
2
+ aside?: boolean;
3
+ collapsed?: boolean;
4
+ }): JSX.Element;
@@ -0,0 +1,12 @@
1
+ export interface ProjectInfo {
2
+ project_id: string;
3
+ project_name: string;
4
+ is_last_chosen: boolean;
5
+ }
6
+ export declare const getProjectId: () => string;
7
+ export declare const cacheProjectId: (id: string) => void;
8
+ export default function useProjectInfo(): {
9
+ loading: boolean;
10
+ list?: ProjectInfo[];
11
+ currentId?: string;
12
+ };
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { PopoverProps } from "antd";
3
+ interface UserInfo {
4
+ userName: string;
5
+ roles: any[];
6
+ }
7
+ interface UserAccountProps extends PopoverProps {
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ avatar?: string;
11
+ avatarStyle?: React.CSSProperties;
12
+ renderTxt?(user: UserInfo): React.ReactNode;
13
+ renderContent?(user: UserInfo): React.ReactNode;
14
+ }
15
+ declare const UserAccount: React.FC<UserAccountProps>;
16
+ export default UserAccount;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import { PopoverProps } from "antd";
3
+ interface UserInfo {
4
+ userName: string;
5
+ roles: any[];
6
+ }
7
+ export interface UserAccountProps extends PopoverProps {
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ avatar?: string;
11
+ avatarStyle?: React.CSSProperties;
12
+ renderTxt?(user: UserInfo): React.ReactNode;
13
+ renderContent?(user: UserInfo): React.ReactNode;
14
+ }
15
+ declare const UserAccount: React.FC<UserAccountProps>;
16
+ export default UserAccount;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ export declare const AvatarSvg: (props: {
3
+ className?: string;
4
+ }) => JSX.Element;
5
+ export default function UserAvatar(props: {
6
+ avatar?: string;
7
+ style?: React.CSSProperties;
8
+ showBadge?: boolean;
9
+ }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function UserHome(props: {
2
+ className?: string;
3
+ }): JSX.Element;
@@ -1,15 +1,3 @@
1
- import React from "react";
2
- import { PopoverProps } from "antd";
3
- interface UserInfo {
4
- userName: string;
5
- roles: any[];
6
- }
7
- interface UserAccountProps extends PopoverProps {
8
- className?: string;
9
- style?: React.CSSProperties;
10
- avatar?: string;
11
- renderTxt?(user: UserInfo): React.ReactNode;
12
- renderContent?(user: UserInfo): React.ReactNode;
13
- }
14
- declare const UserAccount: React.FC<UserAccountProps>;
15
- export default UserAccount;
1
+ import { UserAccountProps } from "./UserAccount";
2
+ declare const RenderUserAccount: (props: UserAccountProps) => JSX.Element;
3
+ export default RenderUserAccount;
@@ -1,4 +1,6 @@
1
1
  import { LayoutProps } from "@/components/Layout/interface";
2
2
  export default function AntdLayout(props: Partial<LayoutProps & {
3
3
  children: any;
4
+ requiredProject: boolean;
5
+ isSysSettings: boolean;
4
6
  }>): JSX.Element;
@@ -1,7 +1,9 @@
1
- import { IMenu } from "@/components/BLayout/components/Menu";
1
+ import { IMenu } from "../BLayout/components/Menu";
2
+ import { ProjectInfo } from "./antd/components/ProjectSelect/useProjectInfo";
2
3
  export interface LayoutProps {
3
4
  layoutConfig: {
4
5
  mode: 'LR' | 'TB' | 'TL';
6
+ siderCollapsed: boolean;
5
7
  hideSider: boolean;
6
8
  hideHeader: boolean;
7
9
  enableSubSider: boolean;
@@ -11,6 +13,11 @@ export interface LayoutProps {
11
13
  logo: string;
12
14
  bgImage: string;
13
15
  menus: Array<IMenu>;
16
+ selectedMenu: IMenu;
17
+ isEmpty: boolean;
18
+ projectList: ProjectInfo[];
19
+ setLoading(loading: boolean): void;
20
+ updateQiankunProps(customProps: Record<string, any>): void;
14
21
  currentLanguage: string;
15
22
  supportLanguages: Array<{
16
23
  label: string;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface NotificationContentProps {
3
+ data: any;
4
+ onDetailClick: (data: any) => void;
5
+ onButtonClick: (operation: any, data: any) => void;
6
+ }
7
+ export declare const NotificationContent: React.FC<NotificationContentProps>;
8
+ interface NotificationTitleProps {
9
+ msgType: number | string;
10
+ title: string;
11
+ }
12
+ export declare const NotificationTitle: React.FC<NotificationTitleProps>;
13
+ export {};
@@ -0,0 +1,13 @@
1
+ import { IBusinessMessage } from '@/mqtt/business';
2
+ export declare class MessageNotificationManager {
3
+ private autoCloseDelay;
4
+ private currentNotificationKey;
5
+ private onDetailClickCallback?;
6
+ setOnDetailClickCallback(callback: (data: any) => void): void;
7
+ private parseOperationData;
8
+ private handleDetailClick;
9
+ private handleButtonClick;
10
+ handleMqttMessage(message: IBusinessMessage): void;
11
+ setAutoCloseDelay(seconds: number): void;
12
+ closeCurrentNotification(): void;
13
+ }
@@ -0,0 +1,3 @@
1
+ import { MessageNotificationManager } from './manager';
2
+ declare const messageNotificationManager: MessageNotificationManager;
3
+ export default messageNotificationManager;
@@ -6,6 +6,7 @@ export interface BreadcrumbInfo {
6
6
  name?: string;
7
7
  path?: string;
8
8
  render?(eleTitle: HTMLDivElement): React.ReactNode;
9
+ goBack?(): void;
9
10
  }
10
11
  export type BreadcrumbInfoInput = {
11
12
  type: 'auto' | 'root';
@@ -20,6 +21,15 @@ export type BreadcrumbInfoInput = {
20
21
  name: string;
21
22
  path: string;
22
23
  };
24
+ export type BreadcrumbActions = {
25
+ activeKey?: string;
26
+ onClick?(key: string): void;
27
+ options: Array<{
28
+ label: string;
29
+ value: string;
30
+ tooltip: string;
31
+ }>;
32
+ };
23
33
  interface MenuEntry {
24
34
  micro_app_name: string;
25
35
  oem_micro_app_id: string;
@@ -38,7 +48,8 @@ export declare function initHeaderInfoWithRouterChange(pathname: string, prevMic
38
48
  export declare function useHeader(): {
39
49
  prevMicroAppInfo: React.MutableRefObject<PrevMicroAppInfo>;
40
50
  headerInfo: BreadcrumbInfo[];
41
- setBreadcrumb: (breadcrumbInfos?: BreadcrumbInfoInput[]) => void;
51
+ actionsInfo: BreadcrumbActions;
52
+ setBreadcrumb: (breadcrumbInfos?: BreadcrumbInfoInput[], actions?: BreadcrumbActions) => void;
42
53
  };
43
54
  export type IBdbInfo = BreadcrumbInfo[];
44
55
  /**
@@ -48,6 +59,7 @@ export interface IMdb {
48
59
  bdbInfo: IBdbInfo;
49
60
  bdbProps?: BreadcrumbProps;
50
61
  itemBdbProps?: BreadcrumbItemProps;
62
+ actionsInfo?: BreadcrumbActions;
51
63
  hooks?: {
52
64
  /**
53
65
  * 功能:修改面包屑数据
@@ -55,5 +67,8 @@ export interface IMdb {
55
67
  modify: (bdbInfo: IBdbInfo) => void;
56
68
  };
57
69
  }
58
- export default function Header({ bdbInfo, bdbProps, itemBdbProps, hooks, }: IMdb): JSX.Element;
70
+ export declare const ArrowLeftIcon: (props: {
71
+ onClick?(): void;
72
+ }) => JSX.Element;
73
+ export default function Header(props: IMdb): JSX.Element;
59
74
  export {};
@@ -1 +1,3 @@
1
- export default function EnterpriseList(): JSX.Element;
1
+ export default function EnterpriseList(props: {
2
+ afterSwitchEnterprise?(): void;
3
+ }): JSX.Element;
@@ -1,2 +1,11 @@
1
- declare const AccountSetting: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ import { loadUserInfo } from "@/api/utils";
3
+ declare const AccountSetting: (props: {
4
+ userInfo?: Window['_SDF']['user'];
5
+ loadUserInfo?: () => Promise<void>;
6
+ extra?: {
7
+ beforeSlot?: React.FC;
8
+ afterSlot?: React.FC;
9
+ };
10
+ }) => JSX.Element;
2
11
  export default AccountSetting;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ interface Option {
3
+ value?: string | number | null;
4
+ label: React.ReactNode;
5
+ children?: Option[];
6
+ isLeaf?: boolean;
7
+ }
8
+ interface RegionCascaderProps {
9
+ open?: boolean;
10
+ placeholder?: string;
11
+ value?: Array<string | number>;
12
+ defaultVal?: string;
13
+ onChange?: (value: Array<string | number>, selectedOptions?: Option[]) => void;
14
+ disabled?: boolean;
15
+ className?: string;
16
+ country?: string | number;
17
+ }
18
+ export default function RegionCascader(props: RegionCascaderProps): JSX.Element;
19
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface CountryRegionCascaderProps {
3
+ value?: string[] | number[];
4
+ placeholder?: string;
5
+ className?: string;
6
+ onChange?: (value: string[] | number[]) => void;
7
+ style?: React.CSSProperties;
8
+ }
9
+ export default function CountryRegionCascader(props: CountryRegionCascaderProps): JSX.Element;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface RegionsInfo {
2
+ adRegionCode: string;
3
+ administrativeDivisionName: string;
4
+ hasChild: boolean;
5
+ }
6
+ export declare const getCountries: () => Promise<RegionsInfo[]>;
7
+ export declare const getRegions: (params: {
8
+ ad_region_code: string;
9
+ }) => Promise<RegionsInfo[]>;
@@ -0,0 +1,23 @@
1
+ import { FormProps, InputProps } from "antd";
2
+ interface PhoneInputProps extends Omit<InputProps, 'value' | 'onChange'> {
3
+ value?: {
4
+ countryCode?: string | undefined;
5
+ phone?: string | number;
6
+ };
7
+ onChange?(value?: PhoneInputProps['value']): void;
8
+ }
9
+ export declare const transformAccountInfo: (accountInfo: {
10
+ code?: string;
11
+ phone?: {
12
+ countryCode?: string | undefined;
13
+ phone?: string | number;
14
+ };
15
+ email?: string;
16
+ }) => {
17
+ code: string;
18
+ userName: string | number;
19
+ countryCode: string;
20
+ };
21
+ export declare const PhoneInput: (props: PhoneInputProps) => JSX.Element;
22
+ export default function AccountForm(props: FormProps): JSX.Element;
23
+ export {};
@@ -0,0 +1,2 @@
1
+ import { FormProps } from "antd";
2
+ export default function EnterpriseForm(props: FormProps): JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ export default function RegisterForm(props: {
3
+ style?: React.CSSProperties;
4
+ actionRef?: React.MutableRefObject<{
5
+ getFieldsValue(): Promise<Record<string, any>>;
6
+ } | undefined>;
7
+ }): JSX.Element;
@@ -0,0 +1,3 @@
1
+ export default function RegisterResult(props: {
2
+ detail: any;
3
+ }): JSX.Element;
@@ -0,0 +1 @@
1
+ export default function RegisterPage(props: any): JSX.Element;