@das-fed/upf-utils 6.4.0-dev.237 → 6.4.0-dev.239

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 (217) hide show
  1. package/api-services/es5.d.ts +2 -0
  2. package/api-services/es5.js +2176 -2106
  3. package/api-services/i18n/es5.d.ts +63 -0
  4. package/api-services/index.js +1654 -1602
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/es5.d.ts +2 -0
  7. package/api-services/modules/app-manage/es5.js +2305 -2223
  8. package/api-services/modules/app-manage/index.js +1900 -1830
  9. package/api-services/modules/app-manage/index.js.gz +0 -0
  10. package/api-services/modules/authentication/es5.d.ts +2 -0
  11. package/api-services/modules/authentication/es5.js +2373 -2279
  12. package/api-services/modules/authentication/index.js +1979 -1891
  13. package/api-services/modules/authentication/index.js.gz +0 -0
  14. package/api-services/modules/bems/es5.d.ts +6 -0
  15. package/api-services/modules/bems/es5.js +2190 -2120
  16. package/api-services/modules/bems/index.js +1812 -1760
  17. package/api-services/modules/bems/index.js.gz +0 -0
  18. package/api-services/modules/contract/es5.d.ts +2 -0
  19. package/api-services/modules/contract/es5.js +2305 -2223
  20. package/api-services/modules/contract/index.js +1900 -1830
  21. package/api-services/modules/contract/index.js.gz +0 -0
  22. package/api-services/modules/duty-manage/es5.d.ts +7 -0
  23. package/api-services/modules/duty-manage/es5.js +2190 -2120
  24. package/api-services/modules/duty-manage/index.js +1813 -1761
  25. package/api-services/modules/duty-manage/index.js.gz +0 -0
  26. package/api-services/modules/enterpriseright/es5.d.ts +2 -0
  27. package/api-services/modules/enterpriseright/es5.js +2305 -2223
  28. package/api-services/modules/enterpriseright/index.js +1900 -1830
  29. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  30. package/api-services/modules/es5.d.ts +21 -0
  31. package/api-services/modules/es5.js +1846 -1764
  32. package/api-services/modules/file/es5.d.ts +37 -0
  33. package/api-services/modules/file/es5.js +1900 -1818
  34. package/api-services/modules/file/index.js +1469 -1399
  35. package/api-services/modules/file/index.js.gz +0 -0
  36. package/api-services/modules/gateway-edge/es5.d.ts +2 -0
  37. package/api-services/modules/gateway-edge/es5.js +2365 -2274
  38. package/api-services/modules/gateway-edge/index.js +1973 -1889
  39. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  40. package/api-services/modules/index.js +1374 -1304
  41. package/api-services/modules/index.js.gz +0 -0
  42. package/api-services/modules/iot/es5.d.ts +16 -0
  43. package/api-services/modules/iot/es5.js +2160 -2078
  44. package/api-services/modules/iot/index.js +1765 -1695
  45. package/api-services/modules/iot/index.js.gz +0 -0
  46. package/api-services/modules/justauth/es5.d.ts +3 -0
  47. package/api-services/modules/justauth/es5.js +2370 -2279
  48. package/api-services/modules/justauth/index.js +1975 -1891
  49. package/api-services/modules/justauth/index.js.gz +0 -0
  50. package/api-services/modules/knowledge/es5.d.ts +2 -0
  51. package/api-services/modules/knowledge/es5.js +2303 -2223
  52. package/api-services/modules/knowledge/index.js +1898 -1832
  53. package/api-services/modules/knowledge/index.js.gz +0 -0
  54. package/api-services/modules/link/es5.d.ts +2 -0
  55. package/api-services/modules/link/es5.js +2373 -2279
  56. package/api-services/modules/link/index.js +1979 -1891
  57. package/api-services/modules/link/index.js.gz +0 -0
  58. package/api-services/modules/permission/es5.d.ts +2 -0
  59. package/api-services/modules/permission/es5.js +2386 -2316
  60. package/api-services/modules/permission/index.js +1979 -1927
  61. package/api-services/modules/permission/index.js.gz +0 -0
  62. package/api-services/modules/platformManage/es5.d.ts +14 -0
  63. package/api-services/modules/platformManage/es5.js +2323 -2241
  64. package/api-services/modules/platformManage/index.js +1911 -1841
  65. package/api-services/modules/platformManage/index.js.gz +0 -0
  66. package/api-services/modules/portal/es5.d.ts +2 -0
  67. package/api-services/modules/portal/es5.js +2189 -2119
  68. package/api-services/modules/portal/index.js +1812 -1760
  69. package/api-services/modules/portal/index.js.gz +0 -0
  70. package/api-services/modules/space-manage/es5.d.ts +2 -0
  71. package/api-services/modules/space-manage/es5.js +2189 -2119
  72. package/api-services/modules/space-manage/index.js +1812 -1760
  73. package/api-services/modules/space-manage/index.js.gz +0 -0
  74. package/api-services/modules/super-admin/es5.d.ts +8 -0
  75. package/api-services/modules/super-admin/es5.js +2276 -2191
  76. package/api-services/modules/super-admin/index.js +1875 -1801
  77. package/api-services/modules/super-admin/index.js.gz +0 -0
  78. package/api-services/modules/supplier/es5.d.ts +6 -0
  79. package/api-services/modules/supplier/es5.js +2407 -2334
  80. package/api-services/modules/supplier/index.js +1997 -1941
  81. package/api-services/modules/supplier/index.js.gz +0 -0
  82. package/api-services/modules/supplychain-manage/es5.d.ts +2 -0
  83. package/api-services/modules/supplychain-manage/es5.js +2305 -2223
  84. package/api-services/modules/supplychain-manage/index.js +1900 -1830
  85. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  86. package/api-services/modules/systemConfiguration/es5.d.ts +2 -0
  87. package/api-services/modules/systemConfiguration/es5.js +2398 -2326
  88. package/api-services/modules/systemConfiguration/index.js +1990 -1934
  89. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  90. package/api-services/modules/tool/es5.d.ts +2 -0
  91. package/api-services/modules/tool/es5.js +2403 -2330
  92. package/api-services/modules/tool/index.js +1994 -1938
  93. package/api-services/modules/tool/index.js.gz +0 -0
  94. package/api-services/src/create-service/es5.d.ts +1 -0
  95. package/api-services/src/create-service/es5.js +2101 -2019
  96. package/api-services/src/create-service/index.js +1718 -1648
  97. package/api-services/src/create-service/index.js.gz +0 -0
  98. package/atob/es5.d.ts +2 -0
  99. package/common-info/es5.d.ts +48 -0
  100. package/common-info/es5.js +2246 -2229
  101. package/common-info/getIframeUrl/es5.d.ts +9 -0
  102. package/common-info/getInfoFromUrl/es5.d.ts +8 -0
  103. package/common-info/getPermissionMethod/es5.d.ts +77 -0
  104. package/common-info/getPermissionMethod/es5.js +2187 -2107
  105. package/common-info/getPermissionMethod/index.d.ts +27 -9
  106. package/common-info/getPermissionMethod/index.js +1774 -1708
  107. package/common-info/getPermissionMethod/index.js.gz +0 -0
  108. package/common-info/index.d.ts +1 -29
  109. package/common-info/index.js +1811 -1792
  110. package/common-info/index.js.gz +0 -0
  111. package/common-info/set-personal-info/es5.d.ts +5 -0
  112. package/common-info/set-personal-info/es5.js +1073 -997
  113. package/common-info/set-personal-info/index.js +895 -827
  114. package/common-info/set-personal-info/index.js.gz +0 -0
  115. package/common-info/type.d.ts +2 -2
  116. package/common-tools/arr-tools/es5.d.ts +15 -0
  117. package/common-tools/calc-text-width/es5.d.ts +1 -0
  118. package/common-tools/date-format/es5.d.ts +7 -0
  119. package/common-tools/es5.d.ts +15 -0
  120. package/common-tools/es5.js +9 -0
  121. package/common-tools/extract-file-name/es5.d.ts +1 -0
  122. package/common-tools/extract-file-name/es5.js +1074 -998
  123. package/common-tools/extract-file-name/index.js +889 -821
  124. package/common-tools/extract-file-name/index.js.gz +0 -0
  125. package/common-tools/get-file-extension/es5.d.ts +6 -0
  126. package/common-tools/get-url-params/es5.d.ts +46 -0
  127. package/common-tools/handle-data/es5.d.ts +34 -0
  128. package/common-tools/handle-data/es5.js +45 -7
  129. package/common-tools/handle-data/index.d.ts +16 -1
  130. package/common-tools/handle-data/index.js +1 -1
  131. package/common-tools/handle-data/index.js.gz +0 -0
  132. package/common-tools/index.d.ts +1 -0
  133. package/common-tools/index.js +1 -0
  134. package/common-tools/nest-tree-format/es5.d.ts +30 -0
  135. package/common-tools/obj-tools/es5.d.ts +7 -0
  136. package/common-tools/platform-tools/es5.d.ts +19 -0
  137. package/common-tools/queue-promise/es5.d.ts +6 -0
  138. package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
  139. package/common-tools/timezone-format/es5.d.ts +28 -0
  140. package/common-tools/timezone-format/es5.js +140 -0
  141. package/common-tools/timezone-format/index.d.ts +28 -0
  142. package/common-tools/timezone-format/index.js +81 -0
  143. package/common-tools/timezone-format/index.js.gz +0 -0
  144. package/common-tools/update-browser-title/es5.d.ts +1 -0
  145. package/common-tools/update-browser-title/es5.js +1 -1
  146. package/common-tools/update-fav-icon/es5.d.ts +11 -0
  147. package/common-tools/update-fav-icon/es5.js +1 -1
  148. package/config/es5.d.ts +2 -0
  149. package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
  150. package/create-api-service/access-token-auto-refresh/es5.js +28 -27
  151. package/create-api-service/access-token-auto-refresh/index.js +27 -26
  152. package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
  153. package/create-api-service/check-token/es5.d.ts +12 -0
  154. package/create-api-service/check-token/es5.js +1 -1
  155. package/create-api-service/es5.d.ts +8 -0
  156. package/create-api-service/es5.js +2102 -2020
  157. package/create-api-service/i18n/es5.d.ts +39 -0
  158. package/create-api-service/index.js +1719 -1649
  159. package/create-api-service/index.js.gz +0 -0
  160. package/create-api-service/proxy-sso/es5.d.ts +3 -0
  161. package/create-api-service/sso/es5.d.ts +21 -0
  162. package/create-api-service/sso/es5.js +1242 -1166
  163. package/create-api-service/sso/index.js +1006 -938
  164. package/create-api-service/sso/index.js.gz +0 -0
  165. package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
  166. package/create-api-service/token-refresh-shared/es5.js +1125 -1049
  167. package/create-api-service/token-refresh-shared/index.js +927 -859
  168. package/create-api-service/token-refresh-shared/index.js.gz +0 -0
  169. package/curring-http/es5.d.ts +12 -0
  170. package/curring-http/es5.js +1442 -1366
  171. package/curring-http/index.js +1132 -1064
  172. package/curring-http/index.js.gz +0 -0
  173. package/dimple-canvas/es5.d.ts +3 -0
  174. package/directive/auth/es5.d.ts +8 -0
  175. package/directive/clickOutside/es5.d.ts +6 -0
  176. package/directive/clickOutside/es5.js +1 -1
  177. package/directive/es5.d.ts +3 -0
  178. package/directive/hoverInside/es5.d.ts +6 -0
  179. package/directive/hoverInside/es5.js +1 -1
  180. package/directive/utils/es5.d.ts +7 -0
  181. package/directive/utils/es5.js +1 -1
  182. package/dom-check-in/es5.d.ts +6 -0
  183. package/dom-watcher/es5.d.ts +25 -0
  184. package/esm-map.json +32 -7
  185. package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
  186. package/i18n-bridge/es5.d.ts +10 -0
  187. package/index.d.ts +1 -0
  188. package/index.js +1 -0
  189. package/load-js/es5.d.ts +3 -0
  190. package/nextTiken/es5.d.ts +12 -0
  191. package/oss/es5.d.ts +2 -0
  192. package/package.json +4 -3
  193. package/pinyin-first-character/es5.d.ts +2 -0
  194. package/pinyin-first-character/es5.js +47 -45
  195. package/pinyin-first-character/index.js +37 -35
  196. package/pinyin-first-character/index.js.gz +0 -0
  197. package/process-engine-info/es5.d.ts +13 -0
  198. package/pure-image-src/es5.d.ts +2 -0
  199. package/size-watcher/es5.d.ts +6 -0
  200. package/style/es5.d.ts +2 -0
  201. package/style/es5.js +11 -11
  202. package/style/index.js +10 -10
  203. package/style/index.js.gz +0 -0
  204. package/theme/es5.d.ts +92 -0
  205. package/theme/es5.js +1365 -0
  206. package/theme/index.d.ts +92 -0
  207. package/theme/index.js +871 -0
  208. package/theme/index.js.gz +0 -0
  209. package/token-tools/es5.d.ts +21 -0
  210. package/use-low-code/es5.d.ts +1 -0
  211. package/vue/es5.d.ts +1 -0
  212. package/vue/hooks/use-model-value/es5.d.ts +9 -0
  213. package/webSocket-service/es5.d.ts +41 -0
  214. package/with-install/es5.d.ts +11 -0
  215. package/hooks/use-get-auth/es5.js +0 -67
  216. package/hooks/use-get-auth/index.d.ts +0 -4
  217. package/hooks/use-get-auth/index.js +0 -19
@@ -18869,7 +18869,7 @@ function sn(n, i, g) {
18869
18869
  if (un.indexOf(n) === -1)
18870
18870
  return e(n);
18871
18871
  if (i === g && i && e(i) !== i)
18872
- return f(e(n));
18872
+ return q(e(n));
18873
18873
  if (g && !hn[n].includes(g)) {
18874
18874
  const h = e(g);
18875
18875
  if (h !== g) {
@@ -23491,7 +23491,7 @@ const a = {
23491
23491
  length: 4,
23492
23492
  priority: j.Normal,
23493
23493
  dict: Symbol("dict4")
23494
- })), _ = {
23494
+ })), v = {
23495
23495
  巴尔干半岛: "bā ěr gàn bàn dǎo",
23496
23496
  巴尔喀什湖: "bā ěr kā shí hú",
23497
23497
  不幸而言中: "bú xìng ér yán zhòng",
@@ -23507,15 +23507,15 @@ const a = {
23507
23507
  亚得里亚海: "yà dé lǐ yà hǎi",
23508
23508
  眼不见为净: "yǎn bú jiàn wéi jìng",
23509
23509
  竹筒倒豆子: "zhú tǒng dào dòu zi"
23510
- }, jn = Object.keys(_).map((n) => ({
23510
+ }, jn = Object.keys(v).map((n) => ({
23511
23511
  zh: n,
23512
- pinyin: _[n],
23512
+ pinyin: v[n],
23513
23513
  probability: 2e-8,
23514
23514
  length: 5,
23515
23515
  priority: j.Normal,
23516
23516
  dict: Symbol("dict5")
23517
23517
  }));
23518
- function v(n, i) {
23518
+ function _(n, i) {
23519
23519
  return n && (n.decimal < i.decimal || n.decimal === i.decimal && n.probability > i.probability) ? n : i;
23520
23520
  }
23521
23521
  function E(n) {
@@ -23536,14 +23536,14 @@ function xn(n, i) {
23536
23536
  patterns: z.patterns,
23537
23537
  concatPattern: u
23538
23538
  };
23539
- E(y), g[l] = v(g[l], y), u = n[--h];
23539
+ E(y), g[l] = _(g[l], y), u = n[--h];
23540
23540
  }
23541
23541
  const o = {
23542
23542
  probability: 1e-13 * z.probability,
23543
23543
  decimal: 0,
23544
23544
  patterns: z.patterns
23545
23545
  };
23546
- E(o), g[s] = v(g[s], o), g[s].concatPattern && (g[s].patterns = g[s].patterns.concat(g[s].concatPattern), g[s].concatPattern = void 0, delete g[s + 1]);
23546
+ E(o), g[s] = _(g[s], o), g[s].concatPattern && (g[s].patterns = g[s].patterns.concat(g[s].concatPattern), g[s].concatPattern = void 0, delete g[s + 1]);
23547
23547
  }
23548
23548
  return g[0].patterns.reverse();
23549
23549
  }
@@ -23597,7 +23597,7 @@ class $ {
23597
23597
  this.children = /* @__PURE__ */ new Map(), this.fail = null, this.patterns = [], this.parent = i, this.prefix = g, this.key = h;
23598
23598
  }
23599
23599
  }
23600
- class qn {
23600
+ class fn {
23601
23601
  constructor() {
23602
23602
  this.dictMap = /* @__PURE__ */ new Map(), this.queues = [], this.root = new $(null);
23603
23603
  }
@@ -23687,15 +23687,15 @@ class qn {
23687
23687
  return h === 1 ? wn(u) : h === 3 ? en(u, d(i)) : xn(u, d(i));
23688
23688
  }
23689
23689
  }
23690
- const fn = [
23690
+ const qn = [
23691
23691
  ...jn,
23692
23692
  ...tn,
23693
23693
  ...cn,
23694
23694
  ...ln,
23695
23695
  ...gn,
23696
23696
  ...yn
23697
- ], U = new qn();
23698
- U.build(fn);
23697
+ ], U = new fn();
23698
+ U.build(qn);
23699
23699
  const mn = new F(), pn = () => mn, e = (n) => {
23700
23700
  const i = x.get(n);
23701
23701
  return i ? i.split(" ")[0] : n;
@@ -23723,9 +23723,9 @@ const mn = new F(), pn = () => mn, e = (n) => {
23723
23723
  const b = w(l.zh);
23724
23724
  i[o + t] = {
23725
23725
  origin: b[t],
23726
- result: y[c],
23726
+ result: y[c] || "",
23727
23727
  isZh: !0,
23728
- originPinyin: y[c]
23728
+ originPinyin: y[c] || ""
23729
23729
  }, c++;
23730
23730
  }
23731
23731
  o += l.length, s++;
@@ -23741,7 +23741,7 @@ const mn = new F(), pn = () => mn, e = (n) => {
23741
23741
  }
23742
23742
  }
23743
23743
  return { list: i, matches: u };
23744
- }, f = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), W = (n, i = "off") => {
23744
+ }, q = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), W = (n, i = "off") => {
23745
23745
  const g = pn();
23746
23746
  let h = x.get(n) ? x.get(n).split(" ") : [];
23747
23747
  if (g.get(n))
@@ -23766,31 +23766,33 @@ const mn = new F(), pn = () => mn, e = (n) => {
23766
23766
  originPinyin: n
23767
23767
  }
23768
23768
  ];
23769
- }, q = (n) => {
23770
- const i = n.split(" "), g = [], h = [];
23771
- for (let u of i)
23772
- for (let s of G)
23773
- if (u.startsWith(s)) {
23774
- let z = u.slice(s.length);
23775
- J.indexOf(s) !== -1 && K.indexOf(z) !== -1 && (z = X[z]), g.push(s), h.push(z);
23769
+ }, f = (n, i) => {
23770
+ const g = n.split(" "), h = [], u = [];
23771
+ for (let s of g)
23772
+ for (let z of G)
23773
+ if (s.startsWith(z)) {
23774
+ let o = s.slice(z.length);
23775
+ J.indexOf(z) !== -1 && K.indexOf(o) !== -1 && (o = X[o]), h.push(z), u.push(o);
23776
23776
  break;
23777
23777
  }
23778
- return {
23779
- final: h.join(" "),
23780
- initial: g.join(" ")
23778
+ return i === "standard" && h.forEach((s, z) => {
23779
+ (s === "y" || s === "w") && (h[z] = "");
23780
+ }), {
23781
+ final: u.join(" "),
23782
+ initial: h.join(" ")
23781
23783
  // 声母
23782
23784
  };
23783
23785
  }, r = (n) => {
23784
- const { final: i } = q(n);
23786
+ const { final: i } = f(n);
23785
23787
  let g = "", h = "", u = "";
23786
- return Y.indexOf(f(i)) !== -1 ? (g = i[0], h = i[1], u = i.slice(2)) : (h = i[0] || "", u = i.slice(1) || ""), { head: g, body: h, tail: u };
23788
+ return Y.indexOf(q(i)) !== -1 ? (g = i[0], h = i[1], u = i.slice(2)) : (h = i[0] || "", u = i.slice(1) || ""), { head: g, body: h, tail: u };
23787
23789
  }, m = (n) => {
23788
23790
  const i = /(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/, g = /(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/, h = /(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/, u = /(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/, s = /(a|o|e|i|u|ü|ê)/, z = /(n|m)$/, o = [];
23789
23791
  return n.split(" ").forEach((y) => {
23790
23792
  i.test(y) ? o.push("1") : g.test(y) ? o.push("2") : h.test(y) ? o.push("3") : u.test(y) ? o.push("4") : s.test(y) || z.test(y) ? o.push("0") : o.push("");
23791
23793
  }), o.join(" ");
23792
23794
  }, Pn = (n, i) => {
23793
- const g = f(n).split(" "), h = m(i).split(" "), u = [];
23795
+ const g = q(n).split(" "), h = m(i).split(" "), u = [];
23794
23796
  return g.forEach((s, z) => {
23795
23797
  u.push(`${s}${h[z]}`);
23796
23798
  }), u.join(" ");
@@ -23826,12 +23828,12 @@ const Dn = (n, i) => {
23826
23828
  break;
23827
23829
  case "initial":
23828
23830
  n.forEach((g) => {
23829
- g.result = g.isZh ? q(g.result).initial : "";
23831
+ g.result = g.isZh ? f(g.result, i.initialPattern).initial : "";
23830
23832
  });
23831
23833
  break;
23832
23834
  case "final":
23833
23835
  n.forEach((g) => {
23834
- g.result = g.isZh ? q(g.result).final : "";
23836
+ g.result = g.isZh ? f(g.result, i.initialPattern).final : "";
23835
23837
  });
23836
23838
  break;
23837
23839
  case "first":
@@ -23861,7 +23863,7 @@ const Dn = (n, i) => {
23861
23863
  break;
23862
23864
  case "none":
23863
23865
  n.forEach((g) => {
23864
- g.isZh && (g.result = f(g.result));
23866
+ g.isZh && (g.result = q(g.result));
23865
23867
  });
23866
23868
  break;
23867
23869
  case "num": {
@@ -23873,7 +23875,7 @@ const Dn = (n, i) => {
23873
23875
  }
23874
23876
  }, Cn = (n, i) => {
23875
23877
  i.v && n.forEach((g) => {
23876
- g.isZh && (g.result = g.result.replace(/ü/g, "v"));
23878
+ g.isZh && (g.result = g.result.replace(/ü/g, typeof i.v == "string" ? i.v : "v"));
23877
23879
  });
23878
23880
  }, Mn = (n, i, g) => {
23879
23881
  if (i.multiple && d(g) === 1) {
@@ -23884,7 +23886,7 @@ const Dn = (n, i) => {
23884
23886
  });
23885
23887
  }
23886
23888
  return i.type === "array" ? n.map((h) => h.result) : i.type === "all" ? n.map((h) => {
23887
- const u = h.isZh ? h.result : "", { initial: s, final: z } = q(u), { head: o, body: l, tail: y } = r(u);
23889
+ const u = h.isZh ? h.result : "", { initial: s, final: z } = f(u, i.initialPattern), { head: o, body: l, tail: y } = r(u);
23888
23890
  let c = [];
23889
23891
  return u !== "" && (c = [u].concat(W(h.origin, i.surname).filter((t) => t !== u))), {
23890
23892
  origin: h.origin,
@@ -23917,7 +23919,7 @@ const Dn = (n, i) => {
23917
23919
  toneSandhi: !0,
23918
23920
  segmentit: 2
23919
23921
  };
23920
- function _n(n, i) {
23922
+ function vn(n, i) {
23921
23923
  if (i = Object.assign(Object.assign({}, Nn), i || {}), !Sn(n))
23922
23924
  return n;
23923
23925
  if (n === "")
@@ -23931,12 +23933,12 @@ var k;
23931
23933
  n[n.AllSegment = 1] = "AllSegment", n[n.AllArray = 2] = "AllArray", n[n.AllString = 3] = "AllString", n[n.PinyinSegment = 4] = "PinyinSegment", n[n.PinyinArray = 5] = "PinyinArray", n[n.PinyinString = 6] = "PinyinString", n[n.ZhSegment = 7] = "ZhSegment", n[n.ZhArray = 8] = "ZhArray", n[n.ZhString = 9] = "ZhString";
23932
23934
  })(k || (k = {}));
23933
23935
  k.AllSegment;
23934
- const vn = (n) => _n(n, {
23936
+ const _n = (n) => vn(n, {
23935
23937
  pattern: "first",
23936
23938
  toneType: "none",
23937
23939
  type: "string",
23938
23940
  separator: ""
23939
23941
  });
23940
23942
  export {
23941
- vn as getPinyinFirstCharacter
23943
+ _n as getPinyinFirstCharacter
23942
23944
  };
Binary file
@@ -0,0 +1,13 @@
1
+ /**
2
+ * 子应用存储流程引擎需要的token信息
3
+ * @param data token信息
4
+ */
5
+ export declare const setProcessEngineToken: (data: Record<any, any>) => void;
6
+ /** 移除流程引擎token */
7
+ export declare const removeProcessEngineToken: () => void;
8
+ /**
9
+ * 子应用存储流程引擎需要的项目信息
10
+ * @param projectId 项目id
11
+ */
12
+ export declare const setProcessEngineProject: (projectId: string) => void;
13
+ export declare const removeProcessEngineProject: () => void;
@@ -0,0 +1,2 @@
1
+ declare const pureImageSrc: (url: string) => any;
2
+ export { pureImageSrc };
@@ -0,0 +1,6 @@
1
+ declare const SizeWatcher: (cb: (e: DOMRectReadOnly) => any, dom?: HTMLElement | null) => ResizeObserver;
2
+ declare const useSizeWatcher: () => {
3
+ el: any;
4
+ rect: any;
5
+ };
6
+ export { SizeWatcher, useSizeWatcher };
package/style/es5.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { hasClass, addClass, removeClass, getStyle, getCSS, createStyle, updateStyle } from './style';
2
+ export { curringMath } from './math';
package/style/es5.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  /**
4
- * @vue/shared v3.5.17
4
+ * @vue/shared v3.5.25
5
5
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
6
6
  * @license MIT
7
7
  **/
@@ -20,10 +20,10 @@ var u = function u(t) {
20
20
  return e[r] || (e[r] = t(r));
21
21
  };
22
22
  },
23
- m = /-(\w)/g,
23
+ m = /-\w/g,
24
24
  p = u(function (t) {
25
- return t.replace(m, function (e, r) {
26
- return r ? r.toUpperCase() : "";
25
+ return t.replace(m, function (e) {
26
+ return e.slice(1).toUpperCase();
27
27
  });
28
28
  }),
29
29
  a = function a() {
@@ -108,24 +108,24 @@ var u = function u(t) {
108
108
  l = function l(t) {
109
109
  return Number(t.toString().replace("px", ""));
110
110
  },
111
- o = function o(t, e, r) {
111
+ c = function c(t, e, r) {
112
112
  e = l(e), r = l(r);
113
113
  var n;
114
114
  return t === "add" && (n = e + r), t === "subtract" && (n = e - r), t === "multiply" && (n = e * r), t === "divide" && (n = e / r), e = null, r = null, n;
115
115
  },
116
- _c = function c(t) {
116
+ _o = function o(t) {
117
117
  return {
118
118
  add: function add(e) {
119
- return _c(o("add", t, e));
119
+ return _o(c("add", t, e));
120
120
  },
121
121
  subtract: function subtract(e) {
122
- return _c(o("subtract", t, e));
122
+ return _o(c("subtract", t, e));
123
123
  },
124
124
  multiply: function multiply(e) {
125
- return _c(o("multiply", t, e));
125
+ return _o(c("multiply", t, e));
126
126
  },
127
127
  divide: function divide(e) {
128
- return _c(o("divide", t, e));
128
+ return _o(c("divide", t, e));
129
129
  },
130
130
  res: function res() {
131
131
  var e = t + "px";
@@ -135,7 +135,7 @@ var u = function u(t) {
135
135
  };
136
136
  exports.addClass = y;
137
137
  exports.createStyle = E;
138
- exports.curringMath = _c;
138
+ exports.curringMath = _o;
139
139
  exports.getCSS = d;
140
140
  exports.getStyle = N;
141
141
  exports.hasClass = h;
package/style/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.5.17
2
+ * @vue/shared v3.5.25
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -8,8 +8,8 @@ process.env.NODE_ENV !== "production" && Object.freeze([]);
8
8
  const u = (t) => {
9
9
  const e = /* @__PURE__ */ Object.create(null);
10
10
  return (r) => e[r] || (e[r] = t(r));
11
- }, m = /-(\w)/g, p = u(
12
- (t) => t.replace(m, (e, r) => r ? r.toUpperCase() : "")
11
+ }, m = /-\w/g, p = u(
12
+ (t) => t.replace(m, (e) => e.slice(1).toUpperCase())
13
13
  ), a = (t = "") => t.split(" ").filter((e) => !!e.trim()), h = (t, e) => {
14
14
  if (!t || !e) return !1;
15
15
  if (e.includes(" ")) throw new Error("className should not contain space.");
@@ -46,15 +46,15 @@ const u = (t) => {
46
46
  for (const n of e)
47
47
  r.appendChild(document.createTextNode(`${n.className}{${d(n.style)}}`));
48
48
  }
49
- }, l = (t) => Number(t.toString().replace("px", "")), o = (t, e, r) => {
49
+ }, l = (t) => Number(t.toString().replace("px", "")), c = (t, e, r) => {
50
50
  e = l(e), r = l(r);
51
51
  let n;
52
52
  return t === "add" && (n = e + r), t === "subtract" && (n = e - r), t === "multiply" && (n = e * r), t === "divide" && (n = e / r), e = null, r = null, n;
53
- }, c = (t) => ({
54
- add: (e) => c(o("add", t, e)),
55
- subtract: (e) => c(o("subtract", t, e)),
56
- multiply: (e) => c(o("multiply", t, e)),
57
- divide: (e) => c(o("divide", t, e)),
53
+ }, o = (t) => ({
54
+ add: (e) => o(c("add", t, e)),
55
+ subtract: (e) => o(c("subtract", t, e)),
56
+ multiply: (e) => o(c("multiply", t, e)),
57
+ divide: (e) => o(c("divide", t, e)),
58
58
  res: () => {
59
59
  const e = t + "px";
60
60
  return t = null, e;
@@ -63,7 +63,7 @@ const u = (t) => {
63
63
  export {
64
64
  y as addClass,
65
65
  E as createStyle,
66
- c as curringMath,
66
+ o as curringMath,
67
67
  d as getCSS,
68
68
  N as getStyle,
69
69
  h as hasClass,
package/style/index.js.gz CHANGED
Binary file
package/theme/es5.d.ts ADDED
@@ -0,0 +1,92 @@
1
+ export type ThemeVariables = Record<string, string>;
2
+ type ThemeVariableSource = Record<string, string | undefined>;
3
+ export interface ThemeConfig {
4
+ name?: string;
5
+ basePresetName?: string;
6
+ variables?: ThemeVariableSource;
7
+ [key: string]: unknown;
8
+ }
9
+ export interface ThemeChangeEvent<TThemeName extends string = string, TVariables extends object = ThemeVariables> {
10
+ themeName: TThemeName;
11
+ config?: ThemeConfig | null;
12
+ variables: TVariables;
13
+ source?: 'change' | 'mountSync';
14
+ timestamp: number;
15
+ }
16
+ export interface ThemeBridgeAPI<TThemeName extends string = string, TVariables extends object = ThemeVariables> {
17
+ getCurrentTheme: () => ThemeChangeEvent<TThemeName, TVariables> | null;
18
+ getVariables?: () => TVariables | null;
19
+ changeTheme?: (themeName: TThemeName) => void;
20
+ onThemeChange?: (callback: (event: ThemeChangeEvent<TThemeName, TVariables>) => void) => () => void;
21
+ }
22
+ export interface ThemeBridgeResolveContext<TVariables extends object = ThemeVariables> {
23
+ variables: TVariables;
24
+ result: Record<string, string>;
25
+ }
26
+ export interface ThemeBridgeVariableItem<TVariables extends object = ThemeVariables> {
27
+ target: string;
28
+ from?: keyof TVariables | string;
29
+ value?: string;
30
+ resolve?: (context: ThemeBridgeResolveContext<TVariables> & {
31
+ mixHexColor: typeof mixHexColor;
32
+ toRgbaColor: typeof toRgbaColor;
33
+ }) => string;
34
+ }
35
+ export interface ApplyThemeVariablesOptions {
36
+ /** 写入目标节点;默认当前文档 html。 */
37
+ root?: HTMLElement | null;
38
+ /** 是否生成运行时桥接变量;false 时仅写入源变量。 */
39
+ includeBridges?: boolean;
40
+ /** 是否写入 Element Plus 与 das-ui/das 历史兼容变量;默认 true。 */
41
+ includeElementAndDasUiBridges?: boolean;
42
+ /** 写入 data-theme 的主题名。 */
43
+ themeName?: string;
44
+ /** 写入 data-skin 的皮肤名;传 null 时移除。 */
45
+ skinName?: string | null;
46
+ }
47
+ export interface ThemePullOptions extends ApplyThemeVariablesOptions {
48
+ /** 是否输出主题同步警告日志。 */
49
+ debug?: boolean;
50
+ }
51
+ export interface SubAppThemeSyncOptions extends ThemePullOptions {
52
+ /** 初始化时是否立即从宿主拉取当前主题。 */
53
+ syncOnInit?: boolean;
54
+ /** 是否优先使用 window.__THEME_API__ 订阅。 */
55
+ preferWindowSubscription?: boolean;
56
+ /** 后续真实主题切换后的回调,不包含 mountSync。 */
57
+ onThemeChange?: (event: ThemeChangeEvent) => void;
58
+ }
59
+ export type HostThemeRootSyncOptions = SubAppThemeSyncOptions;
60
+ export interface RuntimeThemeVariableBuildOptions {
61
+ /** 是否写入 Element Plus 与 das-ui/das 历史兼容变量;默认 true。 */
62
+ includeElementAndDasUiBridges?: boolean;
63
+ }
64
+ export declare const mixHexColor: (foreground: string, background: string, foregroundWeight: number, fallback: string) => string;
65
+ export declare const toRgbaColor: (color: string, alpha: number, fallback: string) => string;
66
+ export declare const resolveThemeBridgeVariables: <TVariables extends object = ThemeVariables>(variables: TVariables, items: readonly ThemeBridgeVariableItem<TVariables>[]) => any;
67
+ export declare const LEGACY_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
68
+ export declare const ELEMENT_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
69
+ export declare const DAS_UI_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
70
+ export declare const UPF_COMPONENT_THEME_BRIDGE_ITEMS: ThemeBridgeVariableItem[];
71
+ export declare const toLegacyThemeVariables: (variables: object) => any;
72
+ export declare const toElementThemeVariables: (variables: object) => any;
73
+ export declare const toDasUiColorOverrides: (variables: object) => any;
74
+ export declare const toUpfComponentThemeVariables: (variables: object) => any;
75
+ export declare const buildRuntimeThemeVariables: (variables: object, options?: RuntimeThemeVariableBuildOptions) => Record<string, string>;
76
+ export declare const getHostThemeSnapshotFromWindowName: (debug?: boolean) => ThemeChangeEvent | null;
77
+ export declare const applyThemeVariablesToDocument: (variables: object, options?: ApplyThemeVariablesOptions) => any;
78
+ export declare const applyThemeEventToDocument: (event: ThemeChangeEvent, options?: ApplyThemeVariablesOptions) => any;
79
+ export declare const getThemeAPI: (debug?: boolean) => ThemeBridgeAPI | null;
80
+ export declare const getCurrentTheme: (options?: ThemePullOptions) => ThemeChangeEvent<string, Record<string, string>>;
81
+ export declare const getThemeVariables: (options?: ThemePullOptions) => any;
82
+ export declare const changeTheme: (themeName: string, debug?: boolean) => boolean;
83
+ export declare const syncThemeFromHost: (options?: ThemePullOptions) => ThemeChangeEvent<string, Record<string, string>>;
84
+ export declare const syncHostThemeRoot: (options?: ThemePullOptions) => ThemeChangeEvent | null;
85
+ export declare const initSubAppThemeSync: (options?: SubAppThemeSyncOptions) => () => void;
86
+ export declare const initHostThemeRootSync: (options?: HostThemeRootSyncOptions) => () => void;
87
+ export declare const getThemeVariable: (varName: string, root?: HTMLElement | null) => any;
88
+ export declare const getVar: (key?: string) => string;
89
+ export declare const getVarValue: (key?: string, root?: HTMLElement | null) => {
90
+ value: any;
91
+ };
92
+ export {};