@ibiz-template/vue3-util 0.7.41-alpha.19 → 0.7.41-alpha.20

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 (44) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/common/index.d.ts +1 -0
  4. package/es/common/index.d.ts.map +1 -1
  5. package/es/common/index.mjs +1 -0
  6. package/es/common/signature-pad/signature-pad.css +1 -0
  7. package/es/common/signature-pad/signature-pad.d.ts +19 -0
  8. package/es/common/signature-pad/signature-pad.d.ts.map +1 -0
  9. package/es/common/signature-pad/signature-pad.mjs +165 -0
  10. package/es/common/signature-pad/util/bezier.d.ts +58 -0
  11. package/es/common/signature-pad/util/bezier.d.ts.map +1 -0
  12. package/es/common/signature-pad/util/bezier.mjs +109 -0
  13. package/es/common/signature-pad/util/point.d.ts +55 -0
  14. package/es/common/signature-pad/util/point.d.ts.map +1 -0
  15. package/es/common/signature-pad/util/point.mjs +51 -0
  16. package/es/common/signature-pad/util/signature_pad.d.ts +593 -0
  17. package/es/common/signature-pad/util/signature_pad.d.ts.map +1 -0
  18. package/es/common/signature-pad/util/signature_pad.mjs +1018 -0
  19. package/es/index.mjs +1 -0
  20. package/es/locale/en/index.d.ts +1 -0
  21. package/es/locale/en/index.d.ts.map +1 -1
  22. package/es/locale/en/index.mjs +2 -1
  23. package/es/locale/zh-CN/index.d.ts +1 -0
  24. package/es/locale/zh-CN/index.d.ts.map +1 -1
  25. package/es/locale/zh-CN/index.mjs +2 -1
  26. package/es/panel-component/nav-pos/nav-pos.controller.d.ts +1 -1
  27. package/es/panel-component/nav-pos/nav-pos.d.ts +1 -1
  28. package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
  29. package/es/panel-component/panel-container/panel-container.mjs +7 -3
  30. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +1 -1
  31. package/es/view/common/view.d.ts.map +1 -1
  32. package/es/view/common/view.mjs +14 -1
  33. package/lib/common/index.cjs +2 -0
  34. package/lib/common/signature-pad/signature-pad.cjs +167 -0
  35. package/lib/common/signature-pad/signature-pad.css +1 -0
  36. package/lib/common/signature-pad/util/bezier.cjs +111 -0
  37. package/lib/common/signature-pad/util/point.cjs +53 -0
  38. package/lib/common/signature-pad/util/signature_pad.cjs +1022 -0
  39. package/lib/index.cjs +2 -0
  40. package/lib/locale/en/index.cjs +2 -1
  41. package/lib/locale/zh-CN/index.cjs +2 -1
  42. package/lib/panel-component/panel-container/panel-container.cjs +7 -3
  43. package/lib/view/common/view.cjs +13 -0
  44. package/package.json +5 -5
package/lib/index.cjs CHANGED
@@ -21,6 +21,7 @@ var codeList = require('./common/code-list/code-list.cjs');
21
21
  var controlLoadingPlaceholder = require('./common/control-loading-placeholder/control-loading-placeholder.cjs');
22
22
  var badge = require('./common/badge/badge.cjs');
23
23
  var customRender = require('./common/custom-render/custom-render.cjs');
24
+ var signaturePad = require('./common/signature-pad/signature-pad.cjs');
24
25
  var panelContainer_state = require('./panel-component/panel-container/panel-container.state.cjs');
25
26
  var panelContainer_controller = require('./panel-component/panel-container/panel-container.controller.cjs');
26
27
  var index = require('./panel-component/panel-container/index.cjs');
@@ -144,6 +145,7 @@ exports.IBizCodeList = codeList.IBizCodeList;
144
145
  exports.ControlLoadingPlaceholder = controlLoadingPlaceholder.ControlLoadingPlaceholder;
145
146
  exports.IBizBadge = badge.IBizBadge;
146
147
  exports.IBizCustomRender = customRender.IBizCustomRender;
148
+ exports.IBizSignaturePad = signaturePad.IBizSignaturePad;
147
149
  exports.PanelContainerState = panelContainer_state.PanelContainerState;
148
150
  exports.PanelContainerController = panelContainer_controller.PanelContainerController;
149
151
  exports.IBizPanelContainer = index.IBizPanelContainer;
@@ -7,7 +7,8 @@ const en = {
7
7
  undefined: "undefined",
8
8
  onFoundCorrespondingPart: "Undefined adapter with no corresponding part found",
9
9
  noFoundViewModel: "View model not found",
10
- noSupportLoadingDynamic: "{codeName}No entity, do not support loading dynamic models at this time"
10
+ noSupportLoadingDynamic: "{codeName}No entity, do not support loading dynamic models at this time",
11
+ invalidPointCoordinates: "Invalid point coordinates: ({x}, {y})"
11
12
  },
12
13
  control: {
13
14
  unsupportedPanel: "Unsupported panel items: {id} - {itemType}"
@@ -7,7 +7,8 @@ const zhCn = {
7
7
  undefined: "\u672A\u5B9A\u4E49",
8
8
  onFoundCorrespondingPart: "\u672A\u5B9A\u4E49\u672A\u627E\u5230\u5BF9\u5E94\u90E8\u4EF6\u7684\u9002\u914D\u5668",
9
9
  noFoundViewModel: "\u672A\u627E\u5230\u89C6\u56FE\u6A21\u578B",
10
- noSupportLoadingDynamic: "{codeName}\u65E0\u5B9E\u4F53,\u6682\u4E0D\u652F\u6301\u52A0\u8F7D\u52A8\u6001\u6A21\u578B"
10
+ noSupportLoadingDynamic: "{codeName}\u65E0\u5B9E\u4F53,\u6682\u4E0D\u652F\u6301\u52A0\u8F7D\u52A8\u6001\u6A21\u578B",
11
+ invalidPointCoordinates: "\u70B9\u5750\u6807\u65E0\u6548: ({x}, {y})"
11
12
  },
12
13
  control: {
13
14
  unsupportedPanel: "\u6682\u672A\u652F\u6301\u7684\u9762\u677F\u9879: {id} - {itemType}"
@@ -66,10 +66,14 @@ const PanelContainer = /* @__PURE__ */ vue.defineComponent({
66
66
  });
67
67
  const attrs = (_c = this.$attrs) == null ? void 0 : _c.attrs;
68
68
  if (attrs && attrs.dynamictooltip) {
69
- return vue.createVNode(vue.resolveComponent("el-tooltip"), {
69
+ const attributes = {
70
+ ...attrs.dynamictooltip
71
+ };
72
+ delete attributes.content;
73
+ return vue.createVNode(vue.resolveComponent("el-tooltip"), vue.mergeProps({
70
74
  "placement": "right",
71
75
  "popper-class": this.ns.e("dynamic-tooltip")
72
- }, {
76
+ }, attributes), {
73
77
  default: () => {
74
78
  return vue.createVNode("div", vue.mergeProps({
75
79
  "class": this.classArr,
@@ -83,7 +87,7 @@ const PanelContainer = /* @__PURE__ */ vue.defineComponent({
83
87
  content: () => {
84
88
  return vue.createVNode("div", {
85
89
  "class": this.ns.e("dynamic-tooltip-content"),
86
- "innerHTML": attrs.dynamictooltip
90
+ "innerHTML": attrs.dynamictooltip.content
87
91
  }, null);
88
92
  }
89
93
  });
@@ -129,6 +129,19 @@ const View = /* @__PURE__ */ vue.defineComponent({
129
129
  }
130
130
  return vue.h(comp, ctrlProps);
131
131
  };
132
+ let watermarkDestroy;
133
+ vue.onMounted(() => {
134
+ vue.nextTick(async () => {
135
+ const container = document.getElementById(c.id);
136
+ const appView = await ibiz.hub.config.view.get(c.model.id);
137
+ if (!container || !(appView == null ? void 0 : appView.waterMarkOption))
138
+ return;
139
+ watermarkDestroy = ibiz.util.watermark.mount(appView.waterMarkOption, container, c.context, c.params, c.state.srfactiveviewdata || {});
140
+ });
141
+ });
142
+ vue.onBeforeUnmount(() => {
143
+ watermarkDestroy == null ? void 0 : watermarkDestroy();
144
+ });
132
145
  return {
133
146
  c,
134
147
  ns,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-util",
3
- "version": "0.7.41-alpha.19",
3
+ "version": "0.7.41-alpha.20",
4
4
  "description": "通用组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "types": "es/index.d.ts",
@@ -38,9 +38,9 @@
38
38
  "devDependencies": {
39
39
  "@ibiz-template/cli": "^0.3.23",
40
40
  "@ibiz-template/core": "^0.7.41-alpha.18",
41
- "@ibiz-template/runtime": "^0.7.41-alpha.19",
41
+ "@ibiz-template/runtime": "^0.7.41-alpha.20",
42
42
  "@ibiz-template/theme": "^0.7.39",
43
- "@ibiz/model-core": "^0.1.79",
43
+ "@ibiz/model-core": "^0.1.80",
44
44
  "@types/path-browserify": "^1.0.2",
45
45
  "@types/qs": "^6.9.11",
46
46
  "@types/systemjs": "^6.13.5",
@@ -57,7 +57,7 @@
57
57
  "peerDependencies": {
58
58
  "@ibiz-template/core": "^0.6.0",
59
59
  "@ibiz-template/runtime": "^0.6.0",
60
- "@ibiz/model-core": "^0.1.79",
60
+ "@ibiz/model-core": "^0.1.80",
61
61
  "dayjs": "^1.11.10",
62
62
  "path-browserify": "^1.0.1",
63
63
  "pinia": "^2.1.7",
@@ -67,5 +67,5 @@
67
67
  "vue": "^3.3.8",
68
68
  "vue-router": "^4.2.4"
69
69
  },
70
- "gitHead": "9ba5057b454bfffcc001d2cf659bc63073277f21"
70
+ "gitHead": "664c73e7704cdadfe210ba35cb02d49ff3dd2439"
71
71
  }