@ibiz-template/vue3-components 0.6.2-dev.0 → 0.6.3

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 (113) hide show
  1. package/dist/chart-IsmrW_d0.js +1 -0
  2. package/dist/index-9YFoUwI0.js +4 -0
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.system.min.js +1 -1
  5. package/dist/{xlsx-util-HHwgsM7j.js → xlsx-util-c9vmypX3.js} +1 -1
  6. package/es/common/action-toolbar/action-toolbar.css +1 -1
  7. package/es/common/action-toolbar/action-toolbar.mjs +6 -2
  8. package/es/common/carousel/carousel.css +1 -0
  9. package/es/common/carousel/carousel.d.ts +133 -0
  10. package/es/common/carousel/carousel.mjs +78 -0
  11. package/es/common/index.mjs +2 -0
  12. package/es/control/calendar/calendar.css +1 -1
  13. package/es/control/calendar/calendar.mjs +22 -19
  14. package/es/control/caption-bar/caption-bar.d.ts +1 -1
  15. package/es/control/caption-bar/caption-bar.mjs +3 -8
  16. package/es/control/chart/chart.css +1 -1
  17. package/es/control/chart/chart.mjs +5 -2
  18. package/es/control/dashboard/dashboard.mjs +3 -1
  19. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +7 -0
  20. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  21. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.d.ts +1 -0
  22. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +51 -12
  23. package/es/control/form/form-detail/form-tab-panel/index.d.ts +1 -0
  24. package/es/control/gantt/gantt.css +1 -1
  25. package/es/control/gantt/gantt.mjs +2 -1
  26. package/es/control/search-bar/index.d.ts +1 -0
  27. package/es/control/search-bar/search-bar.d.ts +1 -0
  28. package/es/control/search-bar/search-bar.mjs +10 -0
  29. package/es/control/tab-exp-panel/tab-exp-panel.mjs +16 -9
  30. package/es/editor/carousel/carousel-editor.controller.d.ts +10 -0
  31. package/es/editor/carousel/carousel-editor.controller.mjs +7 -0
  32. package/es/editor/carousel/carousel-editor.provider.d.ts +17 -0
  33. package/es/editor/carousel/carousel-editor.provider.mjs +22 -0
  34. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.css +0 -0
  35. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +76 -0
  36. package/es/editor/carousel/ibiz-carousel/ibiz-carousel.mjs +64 -0
  37. package/es/editor/carousel/index.d.ts +3 -0
  38. package/es/editor/carousel/index.mjs +5 -0
  39. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +20 -6
  40. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +1 -0
  41. package/es/editor/index.mjs +8 -0
  42. package/es/panel-component/index.mjs +2 -0
  43. package/es/panel-component/panel-static-carousel/index.d.ts +31 -0
  44. package/es/panel-component/panel-static-carousel/index.mjs +18 -0
  45. package/es/panel-component/panel-static-carousel/panel-static-carousel.css +0 -0
  46. package/es/panel-component/panel-static-carousel/panel-static-carousel.d.ts +34 -0
  47. package/es/panel-component/panel-static-carousel/panel-static-carousel.mjs +80 -0
  48. package/es/panel-component/panel-static-carousel/panel-static-carousel.provider.d.ts +15 -0
  49. package/es/panel-component/panel-static-carousel/panel-static-carousel.provider.mjs +21 -0
  50. package/es/panel-component/user-message/index.d.ts +2 -2
  51. package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.css +1 -1
  52. package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +9 -3
  53. package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.d.ts +1 -0
  54. package/es/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.mjs +8 -1
  55. package/es/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.mjs +20 -1
  56. package/es/panel-component/user-message/user-message.d.ts +2 -2
  57. package/es/panel-component/user-message/user-message.mjs +32 -5
  58. package/es/util/app-modal/app-modal-component.d.ts +1 -0
  59. package/es/util/app-modal/app-modal-component.mjs +1 -1
  60. package/es/util/notification-util/notification-util.d.ts +1 -0
  61. package/es/util/notification-util/notification-util.mjs +4 -0
  62. package/es/view-engine/calendar-view.engine.d.ts +3 -1
  63. package/es/view-engine/calendar-view.engine.mjs +11 -0
  64. package/es/view-engine/gantt-view.engine.d.ts +2 -1
  65. package/es/view-engine/gantt-view.engine.mjs +3 -0
  66. package/es/view-engine/opt-view.engine.mjs +1 -1
  67. package/es/view-engine/tree-grid-view.engine.d.ts +1 -0
  68. package/es/view-engine/tree-grid-view.engine.mjs +8 -0
  69. package/es/web-app/components/modal-router-shell/modal-router-shell.mjs +2 -1
  70. package/lib/common/action-toolbar/action-toolbar.cjs +6 -2
  71. package/lib/common/action-toolbar/action-toolbar.css +1 -1
  72. package/lib/common/carousel/carousel.cjs +80 -0
  73. package/lib/common/carousel/carousel.css +1 -0
  74. package/lib/common/index.cjs +2 -0
  75. package/lib/control/calendar/calendar.cjs +22 -19
  76. package/lib/control/calendar/calendar.css +1 -1
  77. package/lib/control/caption-bar/caption-bar.cjs +3 -8
  78. package/lib/control/chart/chart.cjs +5 -2
  79. package/lib/control/chart/chart.css +1 -1
  80. package/lib/control/dashboard/dashboard.cjs +2 -0
  81. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +50 -11
  82. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  83. package/lib/control/gantt/gantt.cjs +2 -1
  84. package/lib/control/gantt/gantt.css +1 -1
  85. package/lib/control/search-bar/search-bar.cjs +10 -0
  86. package/lib/control/tab-exp-panel/tab-exp-panel.cjs +15 -8
  87. package/lib/editor/carousel/carousel-editor.controller.cjs +9 -0
  88. package/lib/editor/carousel/carousel-editor.provider.cjs +24 -0
  89. package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.cjs +66 -0
  90. package/lib/editor/carousel/ibiz-carousel/ibiz-carousel.css +0 -0
  91. package/lib/editor/carousel/index.cjs +11 -0
  92. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +20 -6
  93. package/lib/editor/index.cjs +8 -0
  94. package/lib/panel-component/index.cjs +2 -0
  95. package/lib/panel-component/panel-static-carousel/index.cjs +23 -0
  96. package/lib/panel-component/panel-static-carousel/panel-static-carousel.cjs +82 -0
  97. package/lib/panel-component/panel-static-carousel/panel-static-carousel.css +0 -0
  98. package/lib/panel-component/panel-static-carousel/panel-static-carousel.provider.cjs +23 -0
  99. package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.cjs +8 -2
  100. package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.css +1 -1
  101. package/lib/panel-component/user-message/internal-message/common/internal-message-default/internal-message-default.provider.cjs +8 -1
  102. package/lib/panel-component/user-message/internal-message/internal-message-tab/internal-message-tab.cjs +19 -0
  103. package/lib/panel-component/user-message/user-message.cjs +30 -3
  104. package/lib/util/app-modal/app-modal-component.cjs +1 -1
  105. package/lib/util/notification-util/notification-util.cjs +4 -0
  106. package/lib/view-engine/calendar-view.engine.cjs +11 -0
  107. package/lib/view-engine/gantt-view.engine.cjs +3 -0
  108. package/lib/view-engine/opt-view.engine.cjs +1 -1
  109. package/lib/view-engine/tree-grid-view.engine.cjs +8 -0
  110. package/lib/web-app/components/modal-router-shell/modal-router-shell.cjs +2 -1
  111. package/package.json +8 -8
  112. package/dist/chart-fWcrZRts.js +0 -1
  113. package/dist/index-NdPkOMvL.js +0 -4
@@ -17,7 +17,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
17
17
  required: true
18
18
  },
19
19
  controller: {
20
- type: runtime.PanelItemController,
20
+ type: Object,
21
21
  required: true
22
22
  }
23
23
  },
@@ -26,6 +26,7 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
26
26
  const c = props.controller;
27
27
  const noticeController = ibiz.hub.notice;
28
28
  const showPopover = vue.ref(false);
29
+ let hiddenTime = 0;
29
30
  const currentTab = vue.ref("notification");
30
31
  const sysImage = props.modelData.sysImage || {
31
32
  imagePath: "svg/message.svg"
@@ -45,6 +46,29 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
45
46
  const onBatchReadClick = () => {
46
47
  noticeController.internalMessage.batchMarkRead();
47
48
  };
49
+ const verifyAuthentication = async () => {
50
+ const res = await ibiz.net.get("/appdata");
51
+ if (res.ok) {
52
+ ibiz.appData = res.data;
53
+ }
54
+ };
55
+ const handleVisibleChange = () => {
56
+ if (document.visibilityState === "hidden") {
57
+ hiddenTime = (/* @__PURE__ */ new Date()).getTime();
58
+ } else {
59
+ const currentTime = (/* @__PURE__ */ new Date()).getTime();
60
+ const elapsedTime = (currentTime - hiddenTime) / 1e3;
61
+ if (elapsedTime > 5 * 60) {
62
+ verifyAuthentication();
63
+ }
64
+ }
65
+ };
66
+ vue.onMounted(() => {
67
+ document.addEventListener("visibilitychange", handleVisibleChange);
68
+ });
69
+ vue.onUnmounted(() => {
70
+ document.removeEventListener("visibilitychange", handleVisibleChange);
71
+ });
48
72
  return {
49
73
  ns,
50
74
  c,
@@ -112,9 +136,12 @@ const UserMessage = /* @__PURE__ */ vue.defineComponent({
112
136
  })]
113
137
  }), vue.createVNode("div", {
114
138
  "class": this.ns.b("popover-icons")
115
- }, [vue.createVNode("ion-icon", {
139
+ }, [vue.createVNode(vue.resolveComponent("iBizIcon"), {
116
140
  "class": this.ns.b("popover-icons-read"),
117
- "name": "checkmark-done-outline",
141
+ "icon": {
142
+ imagePath: "svg/read.svg"
143
+ },
144
+ "baseDir": "iconfont",
118
145
  "title": "\u5168\u90E8\u5DF2\u8BFB",
119
146
  "onClick": this.onBatchReadClick
120
147
  }, null)])]);
@@ -49,7 +49,7 @@ const AppModalComponent = /* @__PURE__ */ vue.defineComponent({
49
49
  Object.assign(options.value, props.opts);
50
50
  }
51
51
  const modal = new runtime.Modal({
52
- mode: runtime.ViewMode.MODAL,
52
+ mode: options.value.isRouteModal ? runtime.ViewMode.ROUTE_MODAL : runtime.ViewMode.MODAL,
53
53
  viewUsage: 2,
54
54
  dismiss: (data) => {
55
55
  zIndex.decrement();
@@ -73,6 +73,10 @@ class NotificationUtil {
73
73
  }, 50);
74
74
  }
75
75
  }
76
+ default(params) {
77
+ this.callStack.push(() => this.handleNotice(params, ""));
78
+ this.setTimer();
79
+ }
76
80
  info(params) {
77
81
  this.callStack.push(() => this.handleNotice(params, "info"));
78
82
  this.setTimer();
@@ -4,6 +4,17 @@ var runtime = require('@ibiz-template/runtime');
4
4
 
5
5
  "use strict";
6
6
  class CalendarViewEngine extends runtime.MDViewEngine {
7
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
8
+ async onXDataActive(event) {
9
+ }
10
+ async onCreated() {
11
+ super.onCreated();
12
+ const { model } = this.view;
13
+ if (!this.view.slotProps.calendar) {
14
+ this.view.slotProps.calendar = {};
15
+ }
16
+ this.view.slotProps.calendar.mdctrlActiveMode = model.mdctrlActiveMode;
17
+ }
7
18
  }
8
19
 
9
20
  exports.CalendarViewEngine = CalendarViewEngine;
@@ -27,6 +27,9 @@ class GanttViewEngine extends runtime.MDViewEngine {
27
27
  }
28
28
  return super.call(key, args);
29
29
  }
30
+ // eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
31
+ async onXDataActive(event) {
32
+ }
30
33
  async onCreated() {
31
34
  super.onCreated();
32
35
  const { model } = this.view;
@@ -32,7 +32,7 @@ class OptViewEngine extends runtime.ViewEngineBase {
32
32
  }
33
33
  this.view.slotProps.toolbar.manualCalcButtonState = true;
34
34
  modal.hooks.shouldDismiss.tapPromise(async (context) => {
35
- if (this.form.state.modified) {
35
+ if (this.form.state.modified && this.view.model.enableDirtyChecking === true) {
36
36
  const isAllow = await ibiz.confirm.error({
37
37
  title: "\u5173\u95ED\u63D0\u9192",
38
38
  desc: "\u8868\u5355\u6570\u636E\u5DF2\u7ECF\u4FEE\u6539\uFF0C\u786E\u5B9A\u8981\u5173\u95ED\uFF1F"
@@ -16,6 +16,14 @@ class TreeGridViewEngine extends gridView_engine.GridViewEngine {
16
16
  get xdataControlName() {
17
17
  return "treegrid";
18
18
  }
19
+ async onCreated() {
20
+ await super.onCreated();
21
+ if (!this.view.slotProps.treegrid) {
22
+ this.view.slotProps.treegrid = this.view.slotProps.grid;
23
+ } else {
24
+ Object.assign(this.view.slotProps.treegrid, this.view.slotProps.grid);
25
+ }
26
+ }
19
27
  }
20
28
 
21
29
  exports.TreeGridViewEngine = TreeGridViewEngine;
@@ -94,7 +94,8 @@ const ModalRouterShell = /* @__PURE__ */ vue.defineComponent({
94
94
  const opts = {
95
95
  width: (appView == null ? void 0 : appView.width) || "80%",
96
96
  height: (appView == null ? void 0 : appView.height) || "80%",
97
- footerHide: true
97
+ footerHide: true,
98
+ isRouteModal: true
98
99
  };
99
100
  overlay = ibiz.overlay.createModal(component, void 0, opts);
100
101
  overlay.present();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.6.2-dev.0",
3
+ "version": "0.6.3",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -29,14 +29,14 @@
29
29
  "dependencies": {
30
30
  "@floating-ui/dom": "^1.5.3",
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.1",
32
- "@ibiz-template-plugin/gantt": "0.1.3-alpha.23",
33
- "@ibiz-template/core": "0.6.2-dev.0",
34
- "@ibiz-template/devtool": "0.0.1-dev.4",
35
- "@ibiz-template/model-helper": "0.6.2-dev.0",
36
- "@ibiz-template/runtime": "0.6.2-dev.0",
32
+ "@ibiz-template-plugin/gantt": "0.1.3-alpha.41",
33
+ "@ibiz-template/core": "0.6.3",
34
+ "@ibiz-template/devtool": "0.0.1-dev.6",
35
+ "@ibiz-template/model-helper": "0.6.3",
36
+ "@ibiz-template/runtime": "0.6.3",
37
37
  "@ibiz-template/theme": "^0.6.0",
38
- "@ibiz-template/vue3-util": "0.6.2-dev.0",
39
- "@ibiz-template/web-theme": "^1.1.10",
38
+ "@ibiz-template/vue3-util": "0.6.3",
39
+ "@ibiz-template/web-theme": "^1.1.11",
40
40
  "@ibiz/model-core": "^0.1.14",
41
41
  "@imengyu/vue3-context-menu": "^1.3.5",
42
42
  "@monaco-editor/loader": "^1.4.0",
@@ -1 +0,0 @@
1
- System.register(["vue","@ibiz-template/vue3-util","echarts","@ibiz-template/runtime"],(function(e){"use strict";var t,r,o,n,c,a,i,l,u;return{setters:[function(e){t=e.defineComponent,r=e.ref,o=e.onMounted,n=e.createVNode,c=e.resolveComponent},function(e){a=e.useControlController,i=e.useNamespace},function(e){l=e.init},function(e){u=e.ChartController}],execute:function(){e("default",t({name:"IBizChartControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},loadDefault:{type:Boolean,default:!0}},setup(){const e=a(((...e)=>new u(...e))),t=i("control-".concat(e.model.controlType.toLowerCase())),n=r();return o((()=>{const t=l(n.value);e.initChart(t)})),{c:e,ns:t,chartRef:n}},render(){return n(c("iBizControlBase"),{controller:this.c},{default:()=>[n("div",{ref:"chartRef",class:this.ns.e("chart")},[ibiz.i18n.t("control.chart.chartPlaceholder")])]})}}))}}}));