@das-fed/upf-utils 6.4.0-hot.11 → 6.4.0-hot.13

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 (204) hide show
  1. package/api-services/es5.d.ts +2 -0
  2. package/api-services/es5.js +1125 -1074
  3. package/api-services/i18n/es5.d.ts +63 -0
  4. package/api-services/index.js +852 -813
  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 +957 -909
  8. package/api-services/modules/app-manage/index.js +746 -711
  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 +1650 -1587
  12. package/api-services/modules/authentication/index.js +1410 -1353
  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 +1645 -1582
  16. package/api-services/modules/bems/index.js +1404 -1347
  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 +1250 -1199
  20. package/api-services/modules/contract/index.js +1035 -996
  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 +963 -912
  24. package/api-services/modules/duty-manage/index.js +755 -716
  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 +1250 -1199
  28. package/api-services/modules/enterpriseright/index.js +1035 -996
  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 +1113 -1062
  32. package/api-services/modules/file/es5.d.ts +37 -0
  33. package/api-services/modules/file/es5.js +1005 -954
  34. package/api-services/modules/file/index.js +786 -747
  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 +1250 -1199
  38. package/api-services/modules/gateway-edge/index.js +1035 -996
  39. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  40. package/api-services/modules/index.js +856 -817
  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 +1389 -1350
  44. package/api-services/modules/iot/index.js +1153 -1132
  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 +1327 -1285
  48. package/api-services/modules/justauth/index.js +1111 -1086
  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 +1052 -998
  52. package/api-services/modules/knowledge/index.js +822 -779
  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 +1250 -1199
  56. package/api-services/modules/link/index.js +1035 -996
  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 +1250 -1199
  60. package/api-services/modules/permission/index.js +1035 -996
  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 +1334 -1274
  64. package/api-services/modules/platformManage/index.js +1123 -1070
  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 +1250 -1199
  68. package/api-services/modules/portal/index.js +1035 -996
  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 +968 -917
  72. package/api-services/modules/space-manage/index.js +763 -724
  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 +1260 -1209
  76. package/api-services/modules/super-admin/index.js +1038 -999
  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 +1249 -1198
  80. package/api-services/modules/supplier/index.js +1032 -993
  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 +983 -932
  84. package/api-services/modules/supplychain-manage/index.js +775 -736
  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 +1250 -1199
  88. package/api-services/modules/systemConfiguration/index.js +1035 -996
  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 +971 -920
  92. package/api-services/modules/tool/index.js +764 -725
  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 +1396 -1357
  96. package/api-services/src/create-service/index.js +1170 -1149
  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 +73 -0
  100. package/common-info/es5.js +2155 -2063
  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 +1414 -1313
  105. package/common-info/getPermissionMethod/index.d.ts +57 -6
  106. package/common-info/getPermissionMethod/index.js +1155 -1073
  107. package/common-info/getPermissionMethod/index.js.gz +0 -0
  108. package/common-info/index.d.ts +5 -8
  109. package/common-info/index.js +1818 -1751
  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/type.d.ts +2 -2
  113. package/common-tools/arr-tools/es5.d.ts +15 -0
  114. package/common-tools/calc-text-width/es5.d.ts +1 -0
  115. package/common-tools/date-format/es5.d.ts +7 -0
  116. package/common-tools/es5.d.ts +15 -0
  117. package/common-tools/es5.js +9 -0
  118. package/common-tools/extract-file-name/es5.d.ts +1 -0
  119. package/common-tools/get-file-extension/es5.d.ts +6 -0
  120. package/common-tools/get-url-params/es5.d.ts +46 -0
  121. package/common-tools/handle-data/es5.d.ts +34 -0
  122. package/common-tools/handle-data/es5.js +44 -6
  123. package/common-tools/handle-data/index.d.ts +16 -1
  124. package/common-tools/handle-data/index.js +1 -1
  125. package/common-tools/handle-data/index.js.gz +0 -0
  126. package/common-tools/index.d.ts +1 -0
  127. package/common-tools/index.js +1 -0
  128. package/common-tools/nest-tree-format/es5.d.ts +30 -0
  129. package/common-tools/obj-tools/es5.d.ts +7 -0
  130. package/common-tools/platform-tools/es5.d.ts +19 -0
  131. package/common-tools/queue-promise/es5.d.ts +6 -0
  132. package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
  133. package/common-tools/timezone-format/es5.d.ts +132 -0
  134. package/common-tools/timezone-format/es5.js +822 -0
  135. package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +72 -0
  136. package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +21 -0
  137. package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +29 -0
  138. package/common-tools/timezone-format/index.d.ts +132 -0
  139. package/common-tools/timezone-format/index.js +439 -0
  140. package/common-tools/timezone-format/index.js.gz +0 -0
  141. package/common-tools/update-browser-title/es5.d.ts +1 -0
  142. package/common-tools/update-fav-icon/es5.d.ts +11 -0
  143. package/config/es5.d.ts +2 -0
  144. package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
  145. package/create-api-service/access-token-auto-refresh/es5.js +27 -26
  146. package/create-api-service/access-token-auto-refresh/index.js +27 -26
  147. package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
  148. package/create-api-service/check-token/es5.d.ts +12 -0
  149. package/create-api-service/es5.d.ts +8 -0
  150. package/create-api-service/es5.js +1397 -1358
  151. package/create-api-service/i18n/es5.d.ts +39 -0
  152. package/create-api-service/index.js +1171 -1150
  153. package/create-api-service/index.js.gz +0 -0
  154. package/create-api-service/proxy-sso/es5.d.ts +3 -0
  155. package/create-api-service/sso/es5.d.ts +21 -0
  156. package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
  157. package/curring-http/es5.d.ts +12 -0
  158. package/dimple-canvas/es5.d.ts +3 -0
  159. package/directive/auth/es5.d.ts +8 -0
  160. package/directive/auth/es5.js +50 -42
  161. package/directive/auth/index.d.ts +1 -1
  162. package/directive/auth/index.js +42 -34
  163. package/directive/auth/index.js.gz +0 -0
  164. package/directive/clickOutside/es5.d.ts +6 -0
  165. package/directive/es5.d.ts +3 -0
  166. package/directive/hoverInside/es5.d.ts +6 -0
  167. package/directive/utils/es5.d.ts +7 -0
  168. package/dom-check-in/es5.d.ts +6 -0
  169. package/dom-watcher/es5.d.ts +25 -0
  170. package/esm-map.json +66 -3
  171. package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
  172. package/hooks/use-get-auth/apis.d.ts +4 -0
  173. package/hooks/use-get-auth/es5.d.ts +8 -0
  174. package/hooks/use-get-auth/es5.js +325 -57
  175. package/hooks/use-get-auth/index.d.ts +8 -4
  176. package/hooks/use-get-auth/index.js +71 -16
  177. package/hooks/use-get-auth/index.js.gz +0 -0
  178. package/i18n-bridge/es5.d.ts +10 -0
  179. package/index.d.ts +2 -0
  180. package/index.js +2 -0
  181. package/load-js/es5.d.ts +3 -0
  182. package/nextTiken/es5.d.ts +12 -0
  183. package/oss/es5.d.ts +2 -0
  184. package/package.json +4 -3
  185. package/pinyin-first-character/es5.d.ts +2 -0
  186. package/process-engine-info/es5.d.ts +13 -0
  187. package/pure-image-src/es5.d.ts +2 -0
  188. package/size-watcher/es5.d.ts +6 -0
  189. package/style/es5.d.ts +2 -0
  190. package/theme/es5.d.ts +111 -0
  191. package/theme/es5.js +1676 -0
  192. package/theme/index.d.ts +111 -0
  193. package/theme/index.js +1118 -0
  194. package/theme/index.js.gz +0 -0
  195. package/token-tools/es5.d.ts +21 -0
  196. package/use-low-code/es5.d.ts +1 -0
  197. package/use-low-code/es5.js +37 -53
  198. package/use-low-code/index.js +36 -31
  199. package/use-low-code/index.js.gz +0 -0
  200. package/vue/es5.d.ts +1 -0
  201. package/vue/hooks/use-model-value/es5.d.ts +9 -0
  202. package/webSocket-service/es5.d.ts +41 -0
  203. package/with-install/es5.d.ts +11 -0
  204. package/use-low-code/style.css +0 -1
Binary file
@@ -0,0 +1,21 @@
1
+ declare const accessTokenExpiredAtKey = "accessTokenExpiredAt";
2
+ declare const refreshTokenKey = "refreshToken";
3
+ declare const redirectUriKey = "redirectUri";
4
+ declare const accessTokenInfoKey = "tokenInfo";
5
+ /**
6
+ * 获取token
7
+ * @returns token
8
+ */
9
+ export declare const getAccessToken: () => string;
10
+ /**
11
+ * 获取tokenInfo相关信息
12
+ */
13
+ export declare const getAccessTokenInfo: (key: typeof accessTokenExpiredAtKey | typeof refreshTokenKey | typeof redirectUriKey | typeof accessTokenInfoKey) => any;
14
+ /**
15
+ * 存入token、tokenInfo
16
+ * @param token
17
+ * @param info
18
+ */
19
+ export declare const setAccessToken: (token: string, info?: any) => void;
20
+ export declare const removeAccessToken: () => void;
21
+ export {};
@@ -0,0 +1 @@
1
+ export { default as LowCode } from './low-code-iframe.vue';
@@ -1,15 +1,8 @@
1
1
  'use strict';
2
2
 
3
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
4
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
- function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
8
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
9
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
10
3
  var vue = require('vue');
11
4
  var x = ["src"],
12
- b = /* @__PURE__ */vue.defineComponent({
5
+ B = /* @__PURE__ */vue.defineComponent({
13
6
  __name: "low-code-iframe",
14
7
  props: {
15
8
  app: {},
@@ -19,61 +12,61 @@ var x = ["src"],
19
12
  }
20
13
  },
21
14
  emits: ["emit-change", "update:iframeLoading"],
22
- setup: function setup(n, _ref) {
23
- var c = _ref.expose,
24
- s = _ref.emit;
25
- var a = n,
26
- r = vue.computed(function () {
15
+ setup: function setup(m, _ref) {
16
+ var f = _ref.expose,
17
+ u = _ref.emit;
18
+ var a = m,
19
+ i = vue.computed(function () {
27
20
  if (!a.app) return;
28
21
  var e = "";
29
22
  var o = "";
30
23
  var t = a.query || {};
31
24
  return a.app && (t.app = a.app), e = "".concat(o, "/api/node-low-code/v1/visitor/views/index?").concat(new URLSearchParams(t).toString()), e;
32
25
  }),
33
- l = s,
34
- d = vue.computed({
26
+ s = u,
27
+ r = vue.computed({
35
28
  get: function get() {
36
29
  return a.iframeLoading;
37
30
  },
38
31
  set: function set(e) {
39
- return l("update:iframeLoading", e);
32
+ return s("update:iframeLoading", e);
40
33
  }
41
34
  }),
42
- p = function p(e) {
35
+ d = function d(e) {
43
36
  var _ref2 = e.data || {},
44
37
  _ref2$emitName = _ref2.emitName,
45
38
  o = _ref2$emitName === void 0 ? "" : _ref2$emitName,
46
39
  _ref2$emitData = _ref2.emitData,
47
40
  t = _ref2$emitData === void 0 ? {} : _ref2$emitData;
48
- o === "app-mounted" ? d.value = false : l("emit-change", o, t);
41
+ o === "app-mounted" ? r.value = false : s("emit-change", o, t);
49
42
  };
50
43
  vue.onMounted(function () {
51
- window.addEventListener("message", p, false);
44
+ window.addEventListener("message", d, false);
52
45
  }), vue.onBeforeUnmount(function () {
53
- window.removeEventListener("message", p, false);
46
+ window.removeEventListener("message", d, false);
54
47
  });
55
- var i = vue.ref(null),
56
- m = function m(e) {
48
+ var n = vue.ref(null),
49
+ l = function l(e) {
57
50
  var o;
58
- d.value || (o = i.value) != null && o.contentWindow && i.value.contentWindow.postMessage(e);
51
+ r.value || (o = n.value) != null && o.contentWindow && n.value.contentWindow.postMessage(e);
59
52
  };
60
- c({
53
+ f({
61
54
  onActivated: function onActivated() {
62
- m({
55
+ l({
63
56
  type: "onActivated"
64
57
  });
65
58
  },
66
59
  onDeactivated: function onDeactivated() {
67
- m({
60
+ l({
68
61
  type: "onDeactivated"
69
62
  });
70
63
  }
71
64
  });
72
65
  var w = function w() {
73
- var o, t, f;
74
- var _URL = new URL(r.value || "", location.origin),
66
+ var o, t, c;
67
+ var _URL = new URL(i.value || "", location.origin),
75
68
  e = _URL.origin;
76
- e && ((f = (t = (o = i.value) == null ? undefined : o.contentWindow) == null ? undefined : t.postMessage) == null || f.call(t, {
69
+ e && ((c = (t = (o = n.value) == null ? undefined : o.contentWindow) == null ? undefined : t.postMessage) == null || c.call(t, {
77
70
  type: "setProxSsoStatus",
78
71
  data: {
79
72
  visible: true,
@@ -83,35 +76,26 @@ var x = ["src"],
83
76
  };
84
77
  return function (e, o) {
85
78
  return vue.openBlock(), vue.createElementBlock("iframe", {
86
- "class": "low-code-iframe",
87
79
  id: "low-code-iframe",
88
- src: r.value,
80
+ "class": "low-code-iframe",
81
+ src: i.value,
89
82
  frameborder: "0",
90
83
  sandbox: "allow-same-origin allow-scripts allow-forms allow-modals allow-popups allow-downloads allow-top-navigation",
91
84
  ref_key: "lowCodeRef",
92
- ref: i,
93
- onLoad: w
85
+ ref: n,
86
+ onLoad: w,
87
+ style: {
88
+ padding: 0,
89
+ margin: 0,
90
+ border: "none",
91
+ outline: "none",
92
+ height: "100%",
93
+ width: "100%",
94
+ minHeight: "100px",
95
+ minWidth: "100px"
96
+ }
94
97
  }, null, 40, x);
95
98
  };
96
99
  }
97
- }),
98
- C = function C(n, c) {
99
- var s = n.__vccOpts || n;
100
- var _iterator = _createForOfIteratorHelper(c),
101
- _step;
102
- try {
103
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
104
- var _step$value = _slicedToArray(_step.value, 2),
105
- a = _step$value[0],
106
- r = _step$value[1];
107
- s[a] = r;
108
- }
109
- } catch (err) {
110
- _iterator.e(err);
111
- } finally {
112
- _iterator.f();
113
- }
114
- return s;
115
- },
116
- B = /* @__PURE__ */C(b, [["__scopeId", "data-v-c5870bec"]]);
100
+ });
117
101
  exports.LowCode = B;
@@ -1,5 +1,5 @@
1
- import { defineComponent as v, computed as u, onMounted as g, onBeforeUnmount as _, ref as L, openBlock as y, createElementBlock as h } from "vue";
2
- const x = ["src"], b = /* @__PURE__ */ v({
1
+ import { defineComponent as g, computed as p, onMounted as v, onBeforeUnmount as h, ref as L, openBlock as y, createElementBlock as _ } from "vue";
2
+ const x = ["src"], B = /* @__PURE__ */ g({
3
3
  __name: "low-code-iframe",
4
4
  props: {
5
5
  app: {},
@@ -7,63 +7,68 @@ const x = ["src"], b = /* @__PURE__ */ v({
7
7
  iframeLoading: { type: Boolean }
8
8
  },
9
9
  emits: ["emit-change", "update:iframeLoading"],
10
- setup(n, { expose: c, emit: s }) {
11
- const a = n, r = u(() => {
10
+ setup(m, { expose: f, emit: u }) {
11
+ const a = m, i = p(() => {
12
12
  if (!a.app) return;
13
13
  let e = "";
14
14
  const o = "";
15
15
  let t = a.query || {};
16
16
  return a.app && (t.app = a.app), e = `${o}/api/node-low-code/v1/visitor/views/index?${new URLSearchParams(t).toString()}`, e;
17
- }), l = s, d = u({
17
+ }), s = u, r = p({
18
18
  get: () => a.iframeLoading,
19
- set: (e) => l("update:iframeLoading", e)
20
- }), p = (e) => {
19
+ set: (e) => s("update:iframeLoading", e)
20
+ }), d = (e) => {
21
21
  const { emitName: o = "", emitData: t = {} } = e.data || {};
22
- o === "app-mounted" ? d.value = !1 : l("emit-change", o, t);
22
+ o === "app-mounted" ? r.value = !1 : s("emit-change", o, t);
23
23
  };
24
- g(() => {
25
- window.addEventListener("message", p, !1);
26
- }), _(() => {
27
- window.removeEventListener("message", p, !1);
24
+ v(() => {
25
+ window.addEventListener("message", d, !1);
26
+ }), h(() => {
27
+ window.removeEventListener("message", d, !1);
28
28
  });
29
- const i = L(null), m = (e) => {
29
+ const n = L(null), l = (e) => {
30
30
  var o;
31
- d.value || (o = i.value) != null && o.contentWindow && i.value.contentWindow.postMessage(e);
31
+ r.value || (o = n.value) != null && o.contentWindow && n.value.contentWindow.postMessage(e);
32
32
  };
33
- c({
33
+ f({
34
34
  onActivated: () => {
35
- m({ type: "onActivated" });
35
+ l({ type: "onActivated" });
36
36
  },
37
37
  onDeactivated: () => {
38
- m({ type: "onDeactivated" });
38
+ l({ type: "onDeactivated" });
39
39
  }
40
40
  });
41
41
  const w = () => {
42
- var o, t, f;
43
- const { origin: e } = new URL(r.value || "", location.origin);
44
- e && ((f = (t = (o = i.value) == null ? void 0 : o.contentWindow) == null ? void 0 : t.postMessage) == null || f.call(
42
+ var o, t, c;
43
+ const { origin: e } = new URL(i.value || "", location.origin);
44
+ e && ((c = (t = (o = n.value) == null ? void 0 : o.contentWindow) == null ? void 0 : t.postMessage) == null || c.call(
45
45
  t,
46
46
  { type: "setProxSsoStatus", data: { visible: !0, parentHref: location.href } },
47
47
  e
48
48
  ));
49
49
  };
50
- return (e, o) => (y(), h("iframe", {
51
- class: "low-code-iframe",
50
+ return (e, o) => (y(), _("iframe", {
52
51
  id: "low-code-iframe",
53
- src: r.value,
52
+ class: "low-code-iframe",
53
+ src: i.value,
54
54
  frameborder: "0",
55
55
  sandbox: "allow-same-origin allow-scripts allow-forms allow-modals allow-popups allow-downloads allow-top-navigation",
56
56
  ref_key: "lowCodeRef",
57
- ref: i,
58
- onLoad: w
57
+ ref: n,
58
+ onLoad: w,
59
+ style: {
60
+ padding: 0,
61
+ margin: 0,
62
+ border: "none",
63
+ outline: "none",
64
+ height: "100%",
65
+ width: "100%",
66
+ minHeight: "100px",
67
+ minWidth: "100px"
68
+ }
59
69
  }, null, 40, x));
60
70
  }
61
- }), C = (n, c) => {
62
- const s = n.__vccOpts || n;
63
- for (const [a, r] of c)
64
- s[a] = r;
65
- return s;
66
- }, B = /* @__PURE__ */ C(b, [["__scopeId", "data-v-c5870bec"]]);
71
+ });
67
72
  export {
68
73
  B as LowCode
69
74
  };
Binary file
package/vue/es5.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { useModelValue } from '@das-fed/upf-utils/vue/hooks/use-model-value';
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'vue';
2
+
3
+ /** 简化组件内使用modelValue时的watch过程 */
4
+ declare const useModelValue: (
5
+ /** 组件的props */
6
+ props: any,
7
+ /** 组件props需要使用modelValue的key */
8
+ propKey: string) => Ref;
9
+ export { useModelValue };
@@ -0,0 +1,41 @@
1
+ import { socketConfig } from './type';
2
+
3
+ export declare class socketService {
4
+ /** websocket实例 */
5
+ $ws: any;
6
+ /** websocket地址 */
7
+ url: string;
8
+ /** 请求参数 */
9
+ params: Record<string, any>;
10
+ /** 是否正在重连,避免ws重复连接 */
11
+ lockReturn: boolean;
12
+ /** websocket开启时间 */
13
+ startTime: any;
14
+ /** 心跳检测 */
15
+ heartbeatInterval: any;
16
+ /** 发生错误时是否重连,默认开启 */
17
+ ifReconnect: boolean;
18
+ /** 重连定时器 */
19
+ reconnectId: any;
20
+ /** 重连次数,默认为3,-1 表示一直重连 */
21
+ reconnectNum: number;
22
+ /** 连接close关闭时是否重连,默认关闭 */
23
+ reconnectWhenClose: boolean;
24
+ /** 当前重连次数 */
25
+ currentReconnectNum: number;
26
+ constructor({ url, params, opened, close, error, message, ifReconnect, reconnectNum, reconnectWhenClose, }: socketConfig);
27
+ initWebSocket(): void;
28
+ open(): void;
29
+ opened(ws: any): void;
30
+ close(event: CloseEvent): void;
31
+ message(event: any): void;
32
+ afterMsg(msg: any): void;
33
+ error(err: any): any;
34
+ /** websocket重连 */
35
+ reconnect(): void;
36
+ /** 发送消息给服务器 */
37
+ send(message: any): void;
38
+ startHeartbeat(): void;
39
+ /** 断开连接 */
40
+ disconnect(): void;
41
+ }
@@ -0,0 +1,11 @@
1
+ import { Plugin } from 'vue';
2
+
3
+ /**
4
+ * 组件外部使用use时执行install,然后将组件注册为全局
5
+ */
6
+ export type SFCWithInstall<T> = T & Plugin;
7
+ /**
8
+ * 定义一个withInstall方法处理以下组件类型问题
9
+ * @param comp
10
+ */
11
+ export declare const withInstall: <T>(comp: T) => SFCWithInstall<T>;
@@ -1 +0,0 @@
1
- .low-code-iframe[data-v-c5870bec]{padding:0;margin:0;border:none;outline:none;height:100%;width:100%;min-height:100px;min-width:100px}