@das-fed/upf-utils 6.4.0-dev.235 → 6.4.0-dev.236

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 (62) hide show
  1. package/api-services/es5.js +1354 -1342
  2. package/api-services/index.js +1074 -1056
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/es5.js +1335 -1347
  5. package/api-services/modules/app-manage/index.js +1122 -1140
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/es5.js +834 -837
  8. package/api-services/modules/authentication/index.js +652 -656
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/es5.js +1325 -1337
  11. package/api-services/modules/bems/index.js +1125 -1143
  12. package/api-services/modules/bems/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/es5.js +1092 -1104
  14. package/api-services/modules/enterpriseright/index.js +893 -911
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/es5.js +914 -916
  17. package/api-services/modules/index.js +683 -687
  18. package/api-services/modules/index.js.gz +0 -0
  19. package/api-services/modules/iot/es5.js +1091 -1103
  20. package/api-services/modules/iot/index.js +900 -918
  21. package/api-services/modules/iot/index.js.gz +0 -0
  22. package/api-services/modules/justauth/es5.js +1337 -1349
  23. package/api-services/modules/justauth/index.js +1123 -1141
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/link/es5.js +1347 -1335
  26. package/api-services/modules/link/index.js +1140 -1122
  27. package/api-services/modules/link/index.js.gz +0 -0
  28. package/api-services/modules/permission/es5.js +1092 -1104
  29. package/api-services/modules/permission/index.js +893 -911
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/portal/es5.js +1347 -1335
  32. package/api-services/modules/portal/index.js +1140 -1122
  33. package/api-services/modules/portal/index.js.gz +0 -0
  34. package/api-services/modules/supplier/es5.js +1096 -1108
  35. package/api-services/modules/supplier/index.js +895 -913
  36. package/api-services/modules/supplier/index.js.gz +0 -0
  37. package/api-services/modules/supplychain-manage/es5.js +1074 -1067
  38. package/api-services/modules/supplychain-manage/index.js +888 -878
  39. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  40. package/api-services/modules/systemConfiguration/es5.js +1104 -1092
  41. package/api-services/modules/systemConfiguration/index.js +911 -893
  42. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  43. package/api-services/modules/tool/es5.js +1092 -1104
  44. package/api-services/modules/tool/index.js +893 -911
  45. package/api-services/modules/tool/index.js.gz +0 -0
  46. package/api-services/src/create-service/es5.js +806 -809
  47. package/api-services/src/create-service/index.js +628 -632
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/common-info/es5.js +1765 -1728
  50. package/common-info/getPermissionMethod/es5.js +1434 -1385
  51. package/common-info/getPermissionMethod/index.d.ts +9 -2
  52. package/common-info/getPermissionMethod/index.js +1187 -1146
  53. package/common-info/getPermissionMethod/index.js.gz +0 -0
  54. package/common-info/index.d.ts +2 -2
  55. package/common-info/index.js +1470 -1447
  56. package/common-info/index.js.gz +0 -0
  57. package/esm-map.json +2 -2
  58. package/package.json +3 -3
  59. package/use-low-code/es5.js +37 -53
  60. package/use-low-code/index.js +36 -31
  61. package/use-low-code/index.js.gz +0 -0
  62. package/use-low-code/style.css +0 -1
Binary file
package/esm-map.json CHANGED
@@ -154,8 +154,8 @@
154
154
  "groupPermissionListByModuleAndCode": "/common-info/index",
155
155
  "getGroupedCurrentUserPermissionList": "/common-info/index",
156
156
  "getCurrentModulePermissionData": "/common-info/getPermissionMethod/index",
157
- "getCurrentUserPermissionsList": "/common-info/getPermissionMethod/index",
158
- "getCurrentUserMenuPermissionsList": "/common-info/getPermissionMethod/index",
157
+ "getCurrentUserPermissionList": "/common-info/getPermissionMethod/index",
158
+ "hasMenuPermissionByRouteCode": "/common-info/getPermissionMethod/index",
159
159
  "handleUnauthorized": "/create-api-service/index",
160
160
  "getCurrentRouteCode": "/common-info/index",
161
161
  "buildActionSuffixSet": "/common-info/index",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@das-fed/upf-utils",
3
- "version": "6.4.0-dev.235",
3
+ "version": "6.4.0-dev.236",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -21,8 +21,8 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@babel/preset-env": "7.26.0",
24
- "@das-fed/upf-cli": "6.4.0-dev.235",
25
- "@das-fed/upf-web": "6.4.0-dev.235",
24
+ "@das-fed/upf-cli": "6.4.0-dev.236",
25
+ "@das-fed/upf-web": "6.4.0-dev.236",
26
26
  "@rollup/plugin-babel": "6.0.4",
27
27
  "@types/js-cookie": "^3.0.6",
28
28
  "@types/lodash-es": "^4.17.12",
@@ -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
@@ -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}