@ibiz-template/vue3-components 0.7.38-alpha.21 → 0.7.38-alpha.31
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.
- package/dist/ibiz-markdown-editor-BZ8j-yda.js +1 -0
- package/dist/{index-CiEIUSX9.js → index-CnCC-cC2.js} +1 -1
- package/dist/index-Q4QqDXYJ.js +4 -0
- package/dist/{index-HW5stxcy.js → index-X3QXftIl.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-Btv6GIhJ.js +1 -0
- package/dist/{xlsx-util-BlkeQIMu.js → xlsx-util-DbA3TyD9.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/es/common/custom-filter-condition/custom-filter-condition.d.ts +2 -0
- package/es/common/data-import2/data-import2.mjs +1 -1
- package/es/common/gantt-setting/gantt-setting.css +1 -1
- package/es/common/gantt-setting/gantt-setting.d.ts +10 -0
- package/es/common/gantt-setting/gantt-setting.mjs +23 -3
- package/es/common/grid-setting/grid-setting.d.ts +1 -0
- package/es/common/grid-setting/grid-setting.mjs +1 -1
- package/es/common/view-message/view-message.d.ts +2 -0
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/app-menu/app-menu.mjs +8 -6
- package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +1 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +51 -0
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +10 -3
- package/es/control/dashboard/dashboard-design/dashboard-design.mjs +2 -1
- package/es/control/dashboard/dashboard.mjs +13 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +7 -3
- package/es/control/drbar/drbar.controller.mjs +1 -1
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +19 -7
- package/es/control/drtab/drtab.controller.mjs +36 -9
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.d.ts +1 -0
- package/es/control/form/form-detail/form-item/form-item.mjs +21 -2
- package/es/control/form/form-detail/form-item/index.d.ts +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +100 -0
- package/es/control/form/search-form/index.d.ts +9 -0
- package/es/control/form/search-form/search-form.d.ts +9 -0
- package/es/control/form/search-form/search-form.mjs +4 -0
- package/es/control/gantt/gantt.css +1 -1
- package/es/control/gantt/gantt.d.ts +1 -0
- package/es/control/gantt/gantt.mjs +79 -30
- package/es/control/gantt/index.d.ts +1 -0
- package/es/control/grid/grid/grid-control.util.d.ts +2 -0
- package/es/control/grid/grid/grid-control.util.mjs +38 -2
- package/es/control/grid/grid/grid.mjs +11 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +21 -1
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -0
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/tree/tree.css +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +17 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +8 -2
- package/es/editor/html/wang-editor/wang-editor.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/span/span/span.mjs +7 -1
- package/es/editor/span/span-editor.controller.d.ts +7 -0
- package/es/editor/span/span-editor.controller.mjs +10 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +24 -6
- package/es/editor/text-box/input/input.css +1 -1
- package/es/editor/text-box/input/input.mjs +32 -5
- package/es/editor/text-box/text-box-editor.controller.d.ts +7 -0
- package/es/editor/text-box/text-box-editor.controller.mjs +10 -0
- package/es/editor/upload/use/use-iview-upload.mjs +1 -1
- package/es/locale/en/index.d.ts +16 -0
- package/es/locale/en/index.mjs +10 -2
- package/es/locale/zh-CN/index.d.ts +16 -0
- package/es/locale/zh-CN/index.mjs +10 -2
- package/es/panel-component/auth-sso/auth-sso.css +1 -0
- package/es/panel-component/auth-sso/auth-sso.d.ts +26 -0
- package/es/panel-component/auth-sso/auth-sso.mjs +100 -0
- package/es/panel-component/auth-sso/auth-sso.provider.d.ts +6 -0
- package/es/panel-component/auth-sso/auth-sso.provider.mjs +21 -0
- package/es/panel-component/auth-sso/index.d.ts +23 -0
- package/es/panel-component/auth-sso/index.mjs +12 -0
- package/es/panel-component/coop-pos/coop-pos.controller.d.ts +46 -1
- package/es/panel-component/coop-pos/coop-pos.controller.mjs +92 -1
- package/es/panel-component/coop-pos/coop-pos.css +1 -1
- package/es/panel-component/coop-pos/coop-pos.d.ts +4 -1
- package/es/panel-component/coop-pos/coop-pos.mjs +23 -3
- package/es/panel-component/coop-pos/index.d.ts +3 -0
- package/es/panel-component/index.mjs +2 -0
- package/es/panel-component/nav-tabs/nav-tabs.controller.d.ts +1 -1
- package/es/panel-component/nav-tabs/nav-tabs.controller.mjs +3 -3
- package/es/panel-component/panel-button-list/panel-button-list.controller.mjs +2 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +1 -1
- package/es/util/app-popover/app-popover-component.mjs +1 -1
- package/es/util/fullscreen/fullscreen-util.mjs +2 -2
- package/es/util/notification-util/upload-manager/upload-manager.mjs +1 -1
- package/es/view/login-view/login-view.mjs +18 -0
- package/es/view-engine/edit-view.engine.mjs +14 -0
- package/es/view-engine/login-view.engine.mjs +1 -0
- package/es/view-engine/opt-view.engine.d.ts +1 -0
- package/es/view-engine/opt-view.engine.mjs +41 -1
- package/es/view-engine/tab-search-view.engine.d.ts +9 -1
- package/es/view-engine/tab-search-view.engine.mjs +52 -2
- package/es/web-app/attach-environment-config.mjs +5 -1
- package/es/web-app/guard/auth-guard/auth-guard.d.ts +21 -14
- package/es/web-app/guard/auth-guard/auth-guard.mjs +26 -19
- package/es/web-app/guard/auth-guard/dyna-auth-guard.d.ts +1 -1
- package/es/web-app/guard/auth-guard/dyna-auth-guard.mjs +2 -1
- package/es/web-app/main.mjs +3 -1
- package/es/web-app/router/index.d.ts +3 -2
- package/es/web-app/router/index.mjs +15 -4
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/anchor-container/anchor-bar-list/anchor-bar-list.css +1 -1
- package/lib/common/data-import2/data-import2.cjs +1 -1
- package/lib/common/gantt-setting/gantt-setting.cjs +23 -3
- package/lib/common/gantt-setting/gantt-setting.css +1 -1
- package/lib/common/grid-setting/grid-setting.cjs +1 -1
- package/lib/control/app-menu/app-menu.cjs +8 -6
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -0
- package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +10 -3
- package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +2 -1
- package/lib/control/dashboard/dashboard.cjs +13 -1
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +7 -3
- package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.css +1 -1
- package/lib/control/drbar/drbar.controller.cjs +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.controller.cjs +36 -9
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +20 -1
- package/lib/control/form/search-form/search-form.cjs +4 -0
- package/lib/control/gantt/gantt.cjs +78 -29
- package/lib/control/gantt/gantt.css +1 -1
- package/lib/control/grid/grid/grid-control.util.cjs +37 -1
- package/lib/control/grid/grid/grid.cjs +11 -2
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +21 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/tree/tree.css +1 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +17 -1
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +8 -2
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/span/span/span.cjs +7 -1
- package/lib/editor/span/span-editor.controller.cjs +10 -0
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +24 -6
- package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.css +1 -1
- package/lib/editor/text-box/input/input.cjs +32 -5
- package/lib/editor/text-box/input/input.css +1 -1
- package/lib/editor/text-box/text-box-editor.controller.cjs +10 -0
- package/lib/editor/upload/use/use-iview-upload.cjs +1 -1
- package/lib/locale/en/index.cjs +10 -2
- package/lib/locale/zh-CN/index.cjs +10 -2
- package/lib/panel-component/auth-sso/auth-sso.cjs +102 -0
- package/lib/panel-component/auth-sso/auth-sso.css +1 -0
- package/lib/panel-component/auth-sso/auth-sso.provider.cjs +23 -0
- package/lib/panel-component/auth-sso/index.cjs +17 -0
- package/lib/panel-component/coop-pos/coop-pos.cjs +22 -2
- package/lib/panel-component/coop-pos/coop-pos.controller.cjs +91 -0
- package/lib/panel-component/coop-pos/coop-pos.css +1 -1
- package/lib/panel-component/index.cjs +38 -36
- package/lib/panel-component/nav-tabs/nav-tabs.controller.cjs +3 -3
- package/lib/panel-component/panel-button-list/panel-button-list.controller.cjs +2 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +1 -1
- package/lib/util/app-popover/app-popover-component.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +2 -2
- package/lib/util/notification-util/upload-manager/upload-manager.cjs +1 -1
- package/lib/view/login-view/login-view.cjs +18 -0
- package/lib/view-engine/edit-view.engine.cjs +14 -0
- package/lib/view-engine/login-view.engine.cjs +1 -0
- package/lib/view-engine/opt-view.engine.cjs +40 -0
- package/lib/view-engine/tab-search-view.engine.cjs +52 -2
- package/lib/web-app/attach-environment-config.cjs +5 -1
- package/lib/web-app/guard/auth-guard/auth-guard.cjs +26 -19
- package/lib/web-app/guard/auth-guard/dyna-auth-guard.cjs +2 -1
- package/lib/web-app/main.cjs +3 -1
- package/lib/web-app/router/index.cjs +15 -4
- package/package.json +10 -10
- package/dist/ibiz-markdown-editor-B4c6yGAW.js +0 -1
- package/dist/index-3cxXHoLs.js +0 -4
- package/dist/wang-editor-BUIAd4uJ.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -5,31 +5,32 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
6
6
|
var index = require('./auth-userinfo/index.cjs');
|
|
7
7
|
var index$1 = require('./nav-pos-index/index.cjs');
|
|
8
|
-
var index$
|
|
9
|
-
var index$
|
|
8
|
+
var index$a = require('./nav-tabs/index.cjs');
|
|
9
|
+
var index$b = require('./nav-breadcrumb/index.cjs');
|
|
10
10
|
var index$2 = require('./panel-button/index.cjs');
|
|
11
11
|
var index$3 = require('./panel-app-title/index.cjs');
|
|
12
|
-
var index$
|
|
13
|
-
var index$
|
|
14
|
-
var index$
|
|
15
|
-
var index$
|
|
12
|
+
var index$c = require('./panel-app-header/index.cjs');
|
|
13
|
+
var index$d = require('./panel-view-header/index.cjs');
|
|
14
|
+
var index$e = require('./panel-exp-header/index.cjs');
|
|
15
|
+
var index$f = require('./panel-view-content/index.cjs');
|
|
16
16
|
var index$4 = require('./panel-tab-panel/index.cjs');
|
|
17
17
|
var index$5 = require('./split-container/index.cjs');
|
|
18
18
|
var index$6 = require('./panel-index-view-search/index.cjs');
|
|
19
|
-
var index$
|
|
20
|
-
var index$
|
|
19
|
+
var index$g = require('./panel-app-login-view/index.cjs');
|
|
20
|
+
var index$h = require('./panel-remember-me/index.cjs');
|
|
21
21
|
var index$7 = require('./index-actions/index.cjs');
|
|
22
|
-
var index$
|
|
23
|
-
var index$
|
|
24
|
-
var index$
|
|
25
|
-
var index$
|
|
26
|
-
var index$
|
|
27
|
-
var index$
|
|
22
|
+
var index$i = require('./user-message/index.cjs');
|
|
23
|
+
var index$j = require('./searchform-buttons/index.cjs');
|
|
24
|
+
var index$k = require('./view-message/index.cjs');
|
|
25
|
+
var index$l = require('./panel-static-carousel/index.cjs');
|
|
26
|
+
var index$m = require('./coop-pos/index.cjs');
|
|
27
|
+
var index$n = require('./view-msg-pos/index.cjs');
|
|
28
28
|
var index$8 = require('./user-action/index.cjs');
|
|
29
|
-
var index$
|
|
30
|
-
var index$
|
|
31
|
-
var index$
|
|
32
|
-
var index$
|
|
29
|
+
var index$o = require('./data-import/index.cjs');
|
|
30
|
+
var index$p = require('./short-cut/index.cjs');
|
|
31
|
+
var index$q = require('./auth-captcha/index.cjs');
|
|
32
|
+
var index$r = require('./panel-button-list/index.cjs');
|
|
33
|
+
var index$9 = require('./auth-sso/index.cjs');
|
|
33
34
|
var navPosIndex_state = require('./nav-pos-index/nav-pos-index.state.cjs');
|
|
34
35
|
var navPosIndex_controller = require('./nav-pos-index/nav-pos-index.controller.cjs');
|
|
35
36
|
var panelButton_controller = require('./panel-button/panel-button.controller.cjs');
|
|
@@ -39,14 +40,15 @@ var splitContainer_controller = require('./split-container/split-container.contr
|
|
|
39
40
|
"use strict";
|
|
40
41
|
const IBizPanelComponents = {
|
|
41
42
|
install: (v) => {
|
|
43
|
+
v.use(index$9.IBizAuthSso);
|
|
42
44
|
v.use(vue3Util.IBizPanelCtrlViewPageCaption);
|
|
43
45
|
v.use(vue3Util.IBizPanelContainer);
|
|
44
46
|
v.use(vue3Util.IBizPanelCtrlPos);
|
|
45
47
|
v.use(vue3Util.IBizScrollContainer);
|
|
46
48
|
v.use(index.IBizAuthUserinfo);
|
|
47
49
|
v.use(index$1.IBizNavPosIndex);
|
|
48
|
-
v.use(index$
|
|
49
|
-
v.use(index$
|
|
50
|
+
v.use(index$a.IBizNavTabs);
|
|
51
|
+
v.use(index$b.IBizNavBreadcrumb);
|
|
50
52
|
v.use(index$2.IBizPanelButton);
|
|
51
53
|
v.use(vue3Util.IBizNavPos);
|
|
52
54
|
v.use(index$3.IBizPanelAppTitle);
|
|
@@ -54,35 +56,35 @@ const IBizPanelComponents = {
|
|
|
54
56
|
v.use(vue3Util.IBizMultiDataContainer);
|
|
55
57
|
v.use(vue3Util.IBizMultiDataContainerRaw);
|
|
56
58
|
v.use(vue3Util.IBizPanelField);
|
|
57
|
-
v.use(index$
|
|
58
|
-
v.use(index$
|
|
59
|
-
v.use(index$
|
|
59
|
+
v.use(index$c.IBizPanelAppHeader);
|
|
60
|
+
v.use(index$d.IBizPanelViewHeader);
|
|
61
|
+
v.use(index$e.IBizPanelExpHeader);
|
|
60
62
|
v.use(vue3Util.IBizPanelRawItem);
|
|
61
|
-
v.use(index$
|
|
63
|
+
v.use(index$f.IBizPanelViewContent);
|
|
62
64
|
v.use(vue3Util.IBizGridContainer);
|
|
63
65
|
v.use(index$4.IBizPanelTabPanel);
|
|
64
66
|
v.use(vue3Util.IBizPanelTabPage);
|
|
65
67
|
v.use(index$5.IBizSplitContainer);
|
|
66
68
|
v.use(index$6.IBizPanelIndexViewSearch);
|
|
67
|
-
v.use(index$
|
|
68
|
-
v.use(index$
|
|
69
|
+
v.use(index$g.IBizPanelAppLoginView);
|
|
70
|
+
v.use(index$h.IBizPanelRememberMe);
|
|
69
71
|
v.use(index$7.IBizIndexActions);
|
|
70
72
|
v.use(vue3Util.IBizPanelContainerGroup);
|
|
71
|
-
v.use(index$
|
|
73
|
+
v.use(index$i.IBizUserMessage);
|
|
72
74
|
v.use(vue3Util.IBizPanelContainerImage);
|
|
73
|
-
v.use(index$
|
|
75
|
+
v.use(index$j.IBizSearchFormButtons);
|
|
74
76
|
v.use(vue3Util.IBizPanelItemRender);
|
|
75
|
-
v.use(index$
|
|
76
|
-
v.use(index$
|
|
77
|
+
v.use(index$k.IBizViewMessage);
|
|
78
|
+
v.use(index$l.IBizPanelStaticCarousel);
|
|
77
79
|
v.use(vue3Util.IBizTeleportPlaceholder);
|
|
78
80
|
v.use(vue3Util.IBizPanelContainerTabs);
|
|
79
|
-
v.use(index$
|
|
80
|
-
v.use(index$
|
|
81
|
+
v.use(index$m.IBizCoopPos);
|
|
82
|
+
v.use(index$n.IBizViewMsgPos);
|
|
81
83
|
v.use(index$8.IBizUserAction);
|
|
82
|
-
v.use(index$
|
|
83
|
-
v.use(index$
|
|
84
|
-
v.use(index$
|
|
85
|
-
v.use(index$
|
|
84
|
+
v.use(index$o.IBizDataImport);
|
|
85
|
+
v.use(index$p.IBizShortCut);
|
|
86
|
+
v.use(index$q.IBizAuthCaptcha);
|
|
87
|
+
v.use(index$r.IBizPanelButtonList);
|
|
86
88
|
}
|
|
87
89
|
};
|
|
88
90
|
|
|
@@ -61,7 +61,7 @@ class NavTabsController extends runtime.PanelItemController {
|
|
|
61
61
|
const findItem = this.findTabItem(key);
|
|
62
62
|
if (findItem) {
|
|
63
63
|
Object.assign(findItem, ramda.reject(ramda.isNil, info));
|
|
64
|
-
this.refreshItemUI();
|
|
64
|
+
this.refreshItemUI(key);
|
|
65
65
|
} else {
|
|
66
66
|
this.state.tabItems.push({ key, ...info });
|
|
67
67
|
this.state.activeTab = this.state.currentKey;
|
|
@@ -126,7 +126,7 @@ class NavTabsController extends runtime.PanelItemController {
|
|
|
126
126
|
* @author tony001
|
|
127
127
|
* @date 2024-06-28 08:06:11
|
|
128
128
|
*/
|
|
129
|
-
refreshItemUI() {
|
|
129
|
+
refreshItemUI(key) {
|
|
130
130
|
const tempItem = {
|
|
131
131
|
key: "exampleItem",
|
|
132
132
|
caption: ""
|
|
@@ -135,7 +135,7 @@ class NavTabsController extends runtime.PanelItemController {
|
|
|
135
135
|
this.state.activeTab = tempItem.key;
|
|
136
136
|
vue.nextTick(() => {
|
|
137
137
|
this.state.tabItems.pop();
|
|
138
|
-
this.state.activeTab =
|
|
138
|
+
this.state.activeTab = key;
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
}
|
|
@@ -56,7 +56,8 @@ class PanelButtonListController extends runtime.PanelItemController {
|
|
|
56
56
|
const buttonState = new runtime.UIActionButtonState(
|
|
57
57
|
detail.id,
|
|
58
58
|
this.model.appId,
|
|
59
|
-
detail.uiactionId
|
|
59
|
+
detail.uiactionId,
|
|
60
|
+
detail
|
|
60
61
|
);
|
|
61
62
|
this.state.buttonsState.addState(detail.id, buttonState);
|
|
62
63
|
}
|
|
@@ -72,7 +72,7 @@ const SearchFormButtons = /* @__PURE__ */ vue.defineComponent({
|
|
|
72
72
|
"onClick": this.onResetButtonClick
|
|
73
73
|
}, _isSlot(_slot2 = ibiz.i18n.t("app.reset")) ? _slot2 : {
|
|
74
74
|
default: () => [_slot2]
|
|
75
|
-
}), vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
|
|
75
|
+
}), this.controller.searchFrom.state.enableStoredFilters && vue.createVNode(vue.resolveComponent("el-dropdown-item"), {
|
|
76
76
|
"onClick": this.saveFilterConfirm
|
|
77
77
|
}, _isSlot(_slot3 = ibiz.i18n.t("panelComponent.searchformButtons.saveCondition")) ? _slot3 : {
|
|
78
78
|
default: () => [_slot3]
|
|
@@ -137,7 +137,7 @@ const AppPopoverComponent = /* @__PURE__ */ vue.defineComponent({
|
|
|
137
137
|
render() {
|
|
138
138
|
var _a, _b;
|
|
139
139
|
const content = vue.createVNode("div", {
|
|
140
|
-
"class": [this.ns.b(), this.ns.is("show", this.isShow)],
|
|
140
|
+
"class": [this.ns.b(), this.ns.is("show", this.isShow), this.opts.modalClass || ""],
|
|
141
141
|
"ref": "el",
|
|
142
142
|
"style": this.customStyle,
|
|
143
143
|
"onClick": (e) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var ElementPlus = require('element-plus');
|
|
5
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.38-alpha.
|
|
5
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.38-alpha.32_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
6
6
|
var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
|
@@ -50,7 +50,7 @@ class FullscreenUtil {
|
|
|
50
50
|
if (this.FullscreenClass) {
|
|
51
51
|
div.classList.toggle(this.FullscreenClass);
|
|
52
52
|
}
|
|
53
|
-
div.style.background = "var(--".concat(namespace.defaultNamespace, "-bg-1)");
|
|
53
|
+
div.style.background = "var(--".concat(namespace.defaultNamespace, "-color-bg-1)");
|
|
54
54
|
const content = document.createElement("div");
|
|
55
55
|
content.id = "fullscreen";
|
|
56
56
|
content.style.position = "absolute";
|
|
@@ -59,7 +59,7 @@ const IBizUploadManager = /* @__PURE__ */ vue.defineComponent({
|
|
|
59
59
|
const data = new FormData();
|
|
60
60
|
data.append("file", item.file);
|
|
61
61
|
const headers = {
|
|
62
|
-
Authorization: "Bearer ".concat(qxUtil.getCookie(core.CoreConst.TOKEN)),
|
|
62
|
+
["".concat(ibiz.env.tokenHeader, "Authorization")]: "".concat(ibiz.env.tokenPrefix, "Bearer ").concat(qxUtil.getCookie(core.CoreConst.TOKEN)),
|
|
63
63
|
...props.params.headers
|
|
64
64
|
};
|
|
65
65
|
const res = await ibiz.net.axios({
|
|
@@ -56,6 +56,21 @@ const LoginView = /* @__PURE__ */ vue.defineComponent({
|
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
getTitle();
|
|
59
|
+
const platform = window.navigator.userAgent.toUpperCase();
|
|
60
|
+
const thirdAuth = async () => {
|
|
61
|
+
let result;
|
|
62
|
+
if (platform.indexOf("DINGTALK") !== -1) {
|
|
63
|
+
result = await ibiz.thirdAuth.auth("DINGTALK", "EMBED");
|
|
64
|
+
} else if (platform.indexOf("WXWORK") !== -1) {
|
|
65
|
+
result = await ibiz.thirdAuth.auth("WXWORK", "EMBED");
|
|
66
|
+
}
|
|
67
|
+
if (result && result.ok) {
|
|
68
|
+
window.location.hash = ru;
|
|
69
|
+
window.history.pushState({}, "");
|
|
70
|
+
window.location.reload();
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
thirdAuth();
|
|
59
74
|
ibiz.appData = void 0;
|
|
60
75
|
ibiz.orgData = void 0;
|
|
61
76
|
const onClick = async () => {
|
|
@@ -78,6 +93,9 @@ const LoginView = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
93
|
}
|
|
79
94
|
};
|
|
80
95
|
vue.onMounted(async () => {
|
|
96
|
+
if (platform.indexOf("DINGTALK") !== -1 || platform.indexOf("WXWORK") !== -1) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
81
99
|
const search = qs.parse(window.location.search.replace("?", ""));
|
|
82
100
|
if (search.isAnonymous === "true") {
|
|
83
101
|
const bol = await ibiz.auth.anonymousLogin();
|
|
@@ -151,6 +151,20 @@ class EditViewEngine extends runtime.ViewEngineBase {
|
|
|
151
151
|
this.formDataStateChange(event);
|
|
152
152
|
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
153
153
|
});
|
|
154
|
+
const appDe = await ibiz.hub.getAppDataEntity(
|
|
155
|
+
this.view.model.appDataEntityId,
|
|
156
|
+
this.view.model.appId
|
|
157
|
+
);
|
|
158
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
159
|
+
const { name, value } = event;
|
|
160
|
+
if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
|
|
161
|
+
this.view.redrawView({
|
|
162
|
+
context: this.view.context,
|
|
163
|
+
params: { srfdatatype: value, [name]: value },
|
|
164
|
+
isReloadModel: true
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
});
|
|
154
168
|
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
155
169
|
this.load();
|
|
156
170
|
}
|
|
@@ -98,6 +98,7 @@ class LoginViewEngine extends runtime.ViewEngineBase {
|
|
|
98
98
|
this.view.evt.emit("onAfterLogin", { ok: bol, panelDataParent });
|
|
99
99
|
if (bol === true) {
|
|
100
100
|
window.location.hash = this.route.query.ru || "/";
|
|
101
|
+
window.history.pushState({}, "");
|
|
101
102
|
window.location.reload();
|
|
102
103
|
}
|
|
103
104
|
}
|
|
@@ -13,6 +13,27 @@ class OptViewEngine extends runtime.ViewEngineBase {
|
|
|
13
13
|
get form() {
|
|
14
14
|
return this.view.getController("form");
|
|
15
15
|
}
|
|
16
|
+
init() {
|
|
17
|
+
super.init();
|
|
18
|
+
if (this.view.model.multiFormMode === 1 && this.view.params.srfdatatype) {
|
|
19
|
+
const model = runtime.getControl(
|
|
20
|
+
this.view.model,
|
|
21
|
+
"_form_".concat(this.view.params.srfdatatype)
|
|
22
|
+
);
|
|
23
|
+
if (model) {
|
|
24
|
+
const controls = runtime.getControlsByView(this.view.model).filter((item) => {
|
|
25
|
+
return item.controlType !== "FORM";
|
|
26
|
+
});
|
|
27
|
+
model.name = "form";
|
|
28
|
+
controls.push(model);
|
|
29
|
+
if (this.view.model.viewLayoutPanel) {
|
|
30
|
+
this.view.model.viewLayoutPanel.controls = controls;
|
|
31
|
+
} else {
|
|
32
|
+
this.view.model.controls = controls;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
16
37
|
/**
|
|
17
38
|
* 视图created生命周期执行逻辑
|
|
18
39
|
*
|
|
@@ -66,6 +87,25 @@ class OptViewEngine extends runtime.ViewEngineBase {
|
|
|
66
87
|
this.form.evt.on("onSaveSuccess", (event) => {
|
|
67
88
|
formDataStateChange(event);
|
|
68
89
|
});
|
|
90
|
+
const appDe = await ibiz.hub.getAppDataEntity(
|
|
91
|
+
this.view.model.appDataEntityId,
|
|
92
|
+
this.view.model.appId
|
|
93
|
+
);
|
|
94
|
+
this.form.evt.on("onFormDataChange", (event) => {
|
|
95
|
+
const { name, value } = event;
|
|
96
|
+
if (name === appDe.formTypeAppDEFieldId && this.view.model.multiFormMode === 1) {
|
|
97
|
+
this.view.redrawView({
|
|
98
|
+
context: this.view.context,
|
|
99
|
+
params: {
|
|
100
|
+
...this.view.params,
|
|
101
|
+
srfdatatype: value,
|
|
102
|
+
srfdefdata: event.data[0],
|
|
103
|
+
[name]: value
|
|
104
|
+
},
|
|
105
|
+
isReloadModel: true
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
});
|
|
69
109
|
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
70
110
|
this.load();
|
|
71
111
|
}
|
|
@@ -63,10 +63,60 @@ class TabSearchViewEngine extends tabExpView_engine.TabExpViewEngine {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
if (this.tabExpPanel) {
|
|
66
|
-
this.tabExpPanel.evt.on(
|
|
67
|
-
|
|
66
|
+
this.tabExpPanel.evt.on(
|
|
67
|
+
"onTabChange",
|
|
68
|
+
({ tab }) => {
|
|
69
|
+
this.calcViewParams();
|
|
70
|
+
this.onQuickSearchPlaceHolder(tab);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
const { activeTabViewPanelModel } = this.tabExpPanel;
|
|
74
|
+
if (activeTabViewPanelModel) {
|
|
75
|
+
this.onQuickSearchPlaceHolder(activeTabViewPanelModel);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 给快捷搜索赋默认提示值
|
|
81
|
+
* @author ljx
|
|
82
|
+
* @date 2024-11-12 10:56:25
|
|
83
|
+
* @return {*} {Promise<void>}
|
|
84
|
+
* @memberof TabSearchViewEngine
|
|
85
|
+
*/
|
|
86
|
+
async onQuickSearchPlaceHolder(tab) {
|
|
87
|
+
let { caption } = tab;
|
|
88
|
+
const viewConfig = await ibiz.hub.config.view.get(
|
|
89
|
+
tab.embeddedAppDEViewId || ""
|
|
90
|
+
);
|
|
91
|
+
const appDataEntity = await ibiz.hub.getAppDataEntity(
|
|
92
|
+
viewConfig.appDataEntityId,
|
|
93
|
+
viewConfig.appId
|
|
94
|
+
);
|
|
95
|
+
if (appDataEntity) {
|
|
96
|
+
const searchFields = appDataEntity.appDEFields.filter((field) => {
|
|
97
|
+
return field.enableQuickSearch;
|
|
68
98
|
});
|
|
99
|
+
if (searchFields.length) {
|
|
100
|
+
const placeHolders = [];
|
|
101
|
+
searchFields.forEach((searchField) => {
|
|
102
|
+
if (searchField.lnlanguageRes && searchField.lnlanguageRes.lanResTag) {
|
|
103
|
+
placeHolders.push(
|
|
104
|
+
ibiz.i18n.t(
|
|
105
|
+
searchField.lnlanguageRes.lanResTag,
|
|
106
|
+
searchField.logicName
|
|
107
|
+
)
|
|
108
|
+
);
|
|
109
|
+
} else if (searchField.logicName) {
|
|
110
|
+
placeHolders.push(searchField.logicName);
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
if (placeHolders.length > 0) {
|
|
114
|
+
caption = placeHolders.join("\u3001");
|
|
115
|
+
}
|
|
116
|
+
}
|
|
69
117
|
}
|
|
118
|
+
this.searchBar.placeHolder = caption || "";
|
|
119
|
+
this.searchBar.state.quickSearchPlaceHolder = caption || "";
|
|
70
120
|
}
|
|
71
121
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
|
|
72
122
|
async call(key, args) {
|
|
@@ -17,7 +17,11 @@ async function attachEnvironmentConfig() {
|
|
|
17
17
|
Object.keys(ibiz.env).forEach((key) => {
|
|
18
18
|
const key2 = envMap.has(key) ? envMap.get(key) : key;
|
|
19
19
|
if (env[key2] != null) {
|
|
20
|
-
|
|
20
|
+
if (key2 === "customParams") {
|
|
21
|
+
ibiz.env[key] = JSON.parse(env[key2]);
|
|
22
|
+
} else {
|
|
23
|
+
ibiz.env[key] = env[key2];
|
|
24
|
+
}
|
|
21
25
|
}
|
|
22
26
|
});
|
|
23
27
|
if (query) {
|
|
@@ -36,40 +36,44 @@ class AuthGuard {
|
|
|
36
36
|
}
|
|
37
37
|
/**
|
|
38
38
|
* 总的入口校验
|
|
39
|
-
*
|
|
40
|
-
* @
|
|
41
|
-
* @
|
|
39
|
+
*
|
|
40
|
+
* @author tony001
|
|
41
|
+
* @date 2024-11-12 14:11:32
|
|
42
|
+
* @param {IParams} context
|
|
43
|
+
* @param {boolean} [notLogin=true]
|
|
42
44
|
* @return {*} {Promise<boolean>}
|
|
43
45
|
*/
|
|
44
|
-
async verify(notLogin = true) {
|
|
46
|
+
async verify(context, notLogin = true) {
|
|
45
47
|
if (notLogin) {
|
|
46
48
|
let result = true;
|
|
47
49
|
try {
|
|
48
50
|
if (ibiz.env.enableAnonymous) {
|
|
49
|
-
await this.anonymousValidate();
|
|
51
|
+
await this.anonymousValidate(context);
|
|
50
52
|
}
|
|
51
|
-
await this.appInit();
|
|
53
|
+
await this.appInit(context);
|
|
52
54
|
} catch (error) {
|
|
53
55
|
result = false;
|
|
54
56
|
ibiz.util.error.handle(error);
|
|
55
57
|
}
|
|
56
58
|
return result;
|
|
57
59
|
}
|
|
58
|
-
await this.initModel(false);
|
|
60
|
+
await this.initModel(context, false);
|
|
59
61
|
return true;
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
64
|
* 匿名登录相关校验逻辑,不通过会抛异常
|
|
63
|
-
*
|
|
64
|
-
* @
|
|
65
|
+
*
|
|
66
|
+
* @author tony001
|
|
67
|
+
* @date 2024-11-12 14:11:27
|
|
68
|
+
* @param {IParams} context
|
|
65
69
|
* @return {*} {Promise<void>}
|
|
66
70
|
*/
|
|
67
|
-
async anonymousValidate() {
|
|
71
|
+
async anonymousValidate(context) {
|
|
68
72
|
const authInfo = ibiz.auth.getAuthInfo();
|
|
69
73
|
if (authInfo && !authInfo.isAnonymous) {
|
|
70
74
|
return;
|
|
71
75
|
}
|
|
72
|
-
await this.initModel(false);
|
|
76
|
+
await this.initModel(context, false);
|
|
73
77
|
const urlPaths = window.location.hash.split("/");
|
|
74
78
|
const viewName = urlPaths[urlPaths.length - 2];
|
|
75
79
|
let viewModel;
|
|
@@ -102,11 +106,12 @@ class AuthGuard {
|
|
|
102
106
|
/**
|
|
103
107
|
* 应用参数初始化
|
|
104
108
|
*
|
|
105
|
-
* @author
|
|
106
|
-
* @date
|
|
109
|
+
* @author tony001
|
|
110
|
+
* @date 2024-11-12 14:11:06
|
|
111
|
+
* @param {IParams} context
|
|
107
112
|
* @return {*} {Promise<void>}
|
|
108
113
|
*/
|
|
109
|
-
async appInit() {
|
|
114
|
+
async appInit(context) {
|
|
110
115
|
try {
|
|
111
116
|
if (ibiz.env.isSaaSMode === true) {
|
|
112
117
|
await this.loadOrgData();
|
|
@@ -130,19 +135,21 @@ class AuthGuard {
|
|
|
130
135
|
throw error;
|
|
131
136
|
}
|
|
132
137
|
}
|
|
133
|
-
await this.initModel();
|
|
138
|
+
await this.initModel(context);
|
|
134
139
|
await ibiz.auth.extendLogin();
|
|
135
140
|
await ibiz.hub.notice.init();
|
|
136
141
|
await ibiz.util.theme.initCustomTheme();
|
|
137
142
|
}
|
|
138
143
|
/**
|
|
139
144
|
* 初始化模型
|
|
140
|
-
*
|
|
141
|
-
* @
|
|
142
|
-
* @
|
|
145
|
+
*
|
|
146
|
+
* @author tony001
|
|
147
|
+
* @date 2024-11-12 14:11:43
|
|
148
|
+
* @param {IParams} context
|
|
149
|
+
* @param {boolean} [_permission=true]
|
|
143
150
|
* @return {*} {Promise<void>}
|
|
144
151
|
*/
|
|
145
|
-
async initModel(_permission = true) {
|
|
152
|
+
async initModel(context, _permission = true) {
|
|
146
153
|
}
|
|
147
154
|
/**
|
|
148
155
|
* 加载应用数据
|
|
@@ -18,7 +18,7 @@ class DynaAuthGuard extends authGuard.AuthGuard {
|
|
|
18
18
|
__publicField(this, "hasModelInit", false);
|
|
19
19
|
__publicField(this, "noPermissionModel", false);
|
|
20
20
|
}
|
|
21
|
-
async initModel(permission = true) {
|
|
21
|
+
async initModel(context, permission = true) {
|
|
22
22
|
if (!this.hasModelInit || this.hasModelInit && this.noPermissionModel !== permission) {
|
|
23
23
|
ibiz.hub.reset();
|
|
24
24
|
const helper = new modelHelper.ModelHelper(
|
|
@@ -31,6 +31,7 @@ class DynaAuthGuard extends authGuard.AuthGuard {
|
|
|
31
31
|
return res.data;
|
|
32
32
|
},
|
|
33
33
|
ibiz.env.appId,
|
|
34
|
+
context,
|
|
34
35
|
permission
|
|
35
36
|
);
|
|
36
37
|
const tempApp = await helper.getAppModel();
|
package/lib/web-app/main.cjs
CHANGED
|
@@ -64,7 +64,9 @@ async function runApp(plugins, opts) {
|
|
|
64
64
|
} else {
|
|
65
65
|
authGuard = new dynaAuthGuard.DynaAuthGuard();
|
|
66
66
|
}
|
|
67
|
-
index.AppRouter.setAuthGuard(
|
|
67
|
+
index.AppRouter.setAuthGuard(
|
|
68
|
+
(context, notLogin) => authGuard.verify(context, notLogin)
|
|
69
|
+
);
|
|
68
70
|
app.use(index.AppRouter.getRouter());
|
|
69
71
|
ibiz.appUtil = new appUtil.AppUtil(index.AppRouter.getRouter());
|
|
70
72
|
ibiz.openView = new openViewUtil.OpenViewUtil(index.AppRouter.getRouter());
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vueRouter = require('vue-router');
|
|
4
|
+
var qs = require('qs');
|
|
4
5
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
6
|
var runtime = require('@ibiz-template/runtime');
|
|
6
7
|
var nprogress = require('../../node_modules/.pnpm/nprogress@0.2.0/node_modules/nprogress/nprogress.cjs');
|
|
@@ -24,6 +25,16 @@ class AppRouter {
|
|
|
24
25
|
static setAuthGuard(authGuard) {
|
|
25
26
|
this.authGuard = authGuard;
|
|
26
27
|
}
|
|
28
|
+
static getAppContext(route) {
|
|
29
|
+
let appContext = {};
|
|
30
|
+
if (route.params.appContext && route.params.appContext !== ibiz.env.routePlaceholder) {
|
|
31
|
+
appContext = qs.parse(route.params.appContext, {
|
|
32
|
+
strictNullHandling: true,
|
|
33
|
+
delimiter: ";"
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return appContext;
|
|
37
|
+
}
|
|
27
38
|
static getRouter() {
|
|
28
39
|
const placeholder = ibiz.env.routePlaceholder;
|
|
29
40
|
const paramReg = "[^/]+=[^/]+|".concat(placeholder);
|
|
@@ -41,7 +52,7 @@ class AppRouter {
|
|
|
41
52
|
path: "/login",
|
|
42
53
|
name: "loginView",
|
|
43
54
|
beforeEnter: async (_to, _from, next) => {
|
|
44
|
-
await this.authGuard(false);
|
|
55
|
+
await this.authGuard(this.getAppContext(_to), false);
|
|
45
56
|
next();
|
|
46
57
|
},
|
|
47
58
|
component: loginView.LoginView
|
|
@@ -50,7 +61,7 @@ class AppRouter {
|
|
|
50
61
|
path: "/share",
|
|
51
62
|
name: "shareView",
|
|
52
63
|
beforeEnter: async (_to, _from, next) => {
|
|
53
|
-
const authority = await this.authGuard();
|
|
64
|
+
const authority = await this.authGuard(this.getAppContext(_to));
|
|
54
65
|
if (authority) {
|
|
55
66
|
next();
|
|
56
67
|
} else {
|
|
@@ -68,7 +79,7 @@ class AppRouter {
|
|
|
68
79
|
path: "/appredirectview",
|
|
69
80
|
name: "appRedirectView",
|
|
70
81
|
beforeEnter: async (_to, _from, next) => {
|
|
71
|
-
const authority = await this.authGuard();
|
|
82
|
+
const authority = await this.authGuard(this.getAppContext(_to));
|
|
72
83
|
if (authority) {
|
|
73
84
|
next();
|
|
74
85
|
} else {
|
|
@@ -80,7 +91,7 @@ class AppRouter {
|
|
|
80
91
|
{
|
|
81
92
|
path: "/:appContext(".concat(paramReg, ")/:view1(").concat(viewReg, ")/:params1(").concat(paramReg, ")"),
|
|
82
93
|
beforeEnter: async (_to, _from, next) => {
|
|
83
|
-
const authority = await this.authGuard();
|
|
94
|
+
const authority = await this.authGuard(this.getAppContext(_to));
|
|
84
95
|
if (authority) {
|
|
85
96
|
next();
|
|
86
97
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.38-alpha.
|
|
3
|
+
"version": "0.7.38-alpha.31",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@floating-ui/dom": "^1.5.3",
|
|
32
32
|
"@ibiz-template-plugin/ai-chat": "^0.0.5",
|
|
33
|
-
"@ibiz-template-plugin/gantt": "0.1.8-alpha.
|
|
34
|
-
"@ibiz-template-plugin/bi-report": "0.0.
|
|
33
|
+
"@ibiz-template-plugin/gantt": "0.1.8-alpha.92",
|
|
34
|
+
"@ibiz-template-plugin/bi-report": "0.0.25",
|
|
35
35
|
"@ibiz-template-plugin/data-view": "0.0.3",
|
|
36
|
-
"@ibiz-template/core": "0.7.38-alpha.
|
|
36
|
+
"@ibiz-template/core": "0.7.38-alpha.32",
|
|
37
37
|
"@ibiz-template/devtool": "0.0.2",
|
|
38
|
-
"@ibiz-template/model-helper": "0.7.38-alpha.
|
|
39
|
-
"@ibiz-template/runtime": "0.7.38-alpha.
|
|
38
|
+
"@ibiz-template/model-helper": "0.7.38-alpha.33",
|
|
39
|
+
"@ibiz-template/runtime": "0.7.38-alpha.33",
|
|
40
40
|
"@ibiz-template/theme": "^0.7.0",
|
|
41
|
-
"@ibiz-template/vue3-util": "0.7.38-alpha.
|
|
42
|
-
"@ibiz-template/web-theme": "^1.1.
|
|
43
|
-
"@ibiz/model-core": "^0.1.
|
|
41
|
+
"@ibiz-template/vue3-util": "0.7.38-alpha.33",
|
|
42
|
+
"@ibiz-template/web-theme": "^1.1.25",
|
|
43
|
+
"@ibiz/model-core": "^0.1.59",
|
|
44
44
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
45
45
|
"@monaco-editor/loader": "^1.4.0",
|
|
46
46
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@ibiz-template/runtime": "^0.7.0",
|
|
106
106
|
"@ibiz-template/theme": "^0.7.0",
|
|
107
107
|
"@ibiz-template/vue3-util": "^0.7.0",
|
|
108
|
-
"@ibiz/model-core": "^0.1.
|
|
108
|
+
"@ibiz/model-core": "^0.1.59",
|
|
109
109
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
110
110
|
"@monaco-editor/loader": "^1.3.3",
|
|
111
111
|
"@wangeditor/editor": "^5.1.23",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ibiz-template/vue3-util","qx-util","cherry-markdown","@ibiz-template/core"],(function(e){"use strict";var t,a,l,o,n,i,r,s,u,c,d,h,v,m,b;return{setters:[function(e){t=e.defineComponent,a=e.ref,l=e.watch,o=e.onMounted,n=e.onUnmounted,i=e.createVNode,r=e.nextTick},function(e){s=e.getMarkDownProps,u=e.getEditorEmits,c=e.useNamespace,d=e.useUIStore},function(e){h=e.createUUID,v=e.getCookie},function(e){m=e.default},function(e){b=e.CoreConst}],execute:function(){e("default",t({name:"IBizMarkDown",props:s(),emits:u(),setup(e,{emit:t}){const i=c("markdown"),s=e.controller,u=a(""),f=a(null),p=h(),g=a({Authorization:"Bearer ".concat(v(b.TOKEN))}),w=a(""),k=a(""),{UIStore:y}=d(),U=a(y.theme),x=a("editOnly");let C=null,z=0;const M=a({});l((()=>e.data),(e=>{if(e&&s){const t=ibiz.util.file.calcFileUpDownUrl(s.context,s.params,e,s.editorParams);w.value=t.uploadUrl,k.value=t.downloadUrl}}),{immediate:!0,deep:!0});const O=a(),B=async(e,t)=>{const a=await ibiz.util.file.fileUpload(w.value,e,g.value);t(k.value.replace("%fileId%",a.fileid))},D=()=>{var e;return null==(e=f.value)?void 0:e.getMarkdown()},I=e=>{var t;null==(t=f.value)||t.setMarkdown(e,!1)};l((()=>e.value),((e,t)=>{e!==t&&(u.value=e||"")}),{immediate:!0}),l(u,((e,t)=>{const a=D();e!==t&&a!==e&&I(e)}));const V=e=>{t("change",D())},R=(e,t)=>({[e]:t});l((()=>y.theme),(e=>{var t;U.value=e,null==(t=f.value)||t.setTheme(U.value)}));return o((()=>{e.disabled&&(x.value="previewOnly"),r((()=>{f.value=new m({id:p,value:u.value,theme:U.value,fileUpload:B,emoji:{useUnicode:!0},header:{anchorStyle:"autonumber"},editor:{height:"100%",defaultModel:x.value,codemirror:{autofocus:!1}},toolbars:{theme:U.value,toolbar:["bold","italic","underline","strikethrough","|","color","header","|","list","image",{insert:["link","hr","br","code","formula","toc","table","line-table","bar-table"]},"settings","togglePreview"],bubble:["bold","italic","underline","strikethrough","sub","sup","|","size","color"],float:["h1","h2","h3","|","checklist","quote","quickTable","code"],customMenu:[],sidebar:[]},callback:{afterChange:V,beforeImageMounted:R}})})),(()=>{if(window.ResizeObserver&&O.value){const e={width:"".concat(O.value.offsetWidth,"px")};s&&"number"==typeof s.parent.model.height&&Object.assign(e,{height:"".concat(s.parent.model.height,"px")}),M.value=i.cssVarBlock(e),C=new ResizeObserver((e=>{const t=e[0].contentRect.width;if(t!==z){const a={width:"".concat(e[0].contentRect.width,"px")};s&&"number"==typeof s.parent.model.height&&Object.assign(a,{height:"".concat(s.parent.model.height,"px")}),M.value=i.cssVarBlock(a),z=t}})),C.observe(O.value)}})()})),n((()=>{f.value=null,C&&C.disconnect()})),{ns:i,currentVal:u,id:p,editor:f,markDownBox:O,headers:g,theme:U,defaultModel:x,cssVars:M,getCherryHtml:()=>{var e;return null==(e=f.value)?void 0:e.getHtml()},getCherryContent:D,setCherryContent:I}},render(){return i("div",{ref:"markDownBox",class:[this.ns.b(),this.ns.is("disabled",this.disabled)]},[i("div",{id:this.id,style:this.cssVars,class:this.ns.b("cherry")},null)])}}))}}}));
|