@ibiz-template/vue3-components 0.4.8 → 0.4.9

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.
@@ -0,0 +1,50 @@
1
+ import { PropType } from 'vue';
2
+ import { IDEGantt } from '@ibiz/model-core';
3
+ import { IControlProvider, GanttController } from '@ibiz-template/runtime';
4
+ export declare const GanttControl: import("vue").DefineComponent<{
5
+ modelData: {
6
+ type: PropType<IDEGantt>;
7
+ required: true;
8
+ };
9
+ context: {
10
+ type: PropType<IContext>;
11
+ required: true;
12
+ };
13
+ params: {
14
+ type: PropType<IParams>;
15
+ default: () => {};
16
+ };
17
+ provider: {
18
+ type: PropType<IControlProvider>;
19
+ };
20
+ loadDefault: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }, {
25
+ c: GanttController;
26
+ ns: import("@ibiz-template/core").Namespace;
27
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ modelData: {
29
+ type: PropType<IDEGantt>;
30
+ required: true;
31
+ };
32
+ context: {
33
+ type: PropType<IContext>;
34
+ required: true;
35
+ };
36
+ params: {
37
+ type: PropType<IParams>;
38
+ default: () => {};
39
+ };
40
+ provider: {
41
+ type: PropType<IControlProvider>;
42
+ };
43
+ loadDefault: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ }>>, {
48
+ params: IParams;
49
+ loadDefault: boolean;
50
+ }, {}>;
@@ -0,0 +1,47 @@
1
+ import { resolveComponent, createTextVNode, createVNode, defineComponent } from 'vue';
2
+ import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
3
+ import { GanttController } from '@ibiz-template/runtime';
4
+
5
+ "use strict";
6
+ const GanttControl = /* @__PURE__ */ defineComponent({
7
+ name: "IBizGanttControl",
8
+ props: {
9
+ modelData: {
10
+ type: Object,
11
+ required: true
12
+ },
13
+ context: {
14
+ type: Object,
15
+ required: true
16
+ },
17
+ params: {
18
+ type: Object,
19
+ default: () => ({})
20
+ },
21
+ provider: {
22
+ type: Object
23
+ },
24
+ loadDefault: {
25
+ type: Boolean,
26
+ default: true
27
+ }
28
+ },
29
+ setup() {
30
+ const c = useControlController((...args) => new GanttController(...args));
31
+ const ns = useNamespace(`control-${c.model.controlType.toLowerCase()}`);
32
+ return {
33
+ c,
34
+ ns
35
+ };
36
+ },
37
+ render() {
38
+ return createVNode(resolveComponent("iBizControlBase"), {
39
+ "controller": this.c,
40
+ "class": this.ns.b()
41
+ }, {
42
+ default: () => [createTextVNode("\u7518\u7279\u56FE")]
43
+ });
44
+ }
45
+ });
46
+
47
+ export { GanttControl };
@@ -0,0 +1,13 @@
1
+ import { IControlProvider } from '@ibiz-template/runtime';
2
+ /**
3
+ * 甘特图适配器
4
+ *
5
+ * @author zhanghengfeng
6
+ * @date 2023-12-08 15:12:11
7
+ * @export
8
+ * @class GanttProvider
9
+ * @implements {IControlProvider}
10
+ */
11
+ export declare class GanttProvider implements IControlProvider {
12
+ component: string;
13
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __publicField = (obj, key, value) => {
5
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
6
+ return value;
7
+ };
8
+ class GanttProvider {
9
+ constructor() {
10
+ __publicField(this, "component", "IBizGanttControl");
11
+ }
12
+ }
13
+
14
+ export { GanttProvider };
@@ -0,0 +1,48 @@
1
+ export declare const IBizGanttControl: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
2
+ modelData: {
3
+ type: import("vue").PropType<import("@ibiz/model-core").IDEGantt>;
4
+ required: true;
5
+ };
6
+ context: {
7
+ type: import("vue").PropType<IContext>;
8
+ required: true;
9
+ };
10
+ params: {
11
+ type: import("vue").PropType<IParams>;
12
+ default: () => {};
13
+ };
14
+ provider: {
15
+ type: import("vue").PropType<import("@ibiz-template/runtime").IControlProvider>;
16
+ };
17
+ loadDefault: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ }, {
22
+ c: import("@ibiz-template/runtime").GanttController;
23
+ ns: import("@ibiz-template/core").Namespace;
24
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ modelData: {
26
+ type: import("vue").PropType<import("@ibiz/model-core").IDEGantt>;
27
+ required: true;
28
+ };
29
+ context: {
30
+ type: import("vue").PropType<IContext>;
31
+ required: true;
32
+ };
33
+ params: {
34
+ type: import("vue").PropType<IParams>;
35
+ default: () => {};
36
+ };
37
+ provider: {
38
+ type: import("vue").PropType<import("@ibiz-template/runtime").IControlProvider>;
39
+ };
40
+ loadDefault: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ }>>, {
45
+ params: IParams;
46
+ loadDefault: boolean;
47
+ }, {}>>;
48
+ export default IBizGanttControl;
@@ -0,0 +1,12 @@
1
+ import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
2
+ import { withInstall } from '@ibiz-template/vue3-util';
3
+ import { GanttControl } from './gantt.mjs';
4
+ import { GanttProvider } from './gantt.provider.mjs';
5
+
6
+ "use strict";
7
+ const IBizGanttControl = withInstall(GanttControl, function(v) {
8
+ v.component(GanttControl.name, GanttControl);
9
+ registerControlProvider(ControlType.GANTT, () => new GanttProvider());
10
+ });
11
+
12
+ export { IBizGanttControl, IBizGanttControl as default };
@@ -23,3 +23,4 @@ export * from './tree-grid';
23
23
  export * from './medit-view-panel';
24
24
  export * from './map';
25
25
  export * from './report-panel';
26
+ export * from './gantt';
@@ -23,6 +23,7 @@ export { IBizTreeGridControl } from './tree-grid/index.mjs';
23
23
  export { IBizMEditViewPanelControl } from './medit-view-panel/index.mjs';
24
24
  export { IBizMapControl } from './map/index.mjs';
25
25
  export { IBizReportPanelControl } from './report-panel/index.mjs';
26
+ export { IBizGanttControl } from './gantt/index.mjs';
26
27
  export { useAppGridBase, useAppGridPagination, useITableEvent } from './grid/grid/grid-control.util.mjs';
27
28
  export { IBizGridControl } from './grid/grid/index.mjs';
28
29
  export { IBizGridFieldColumn } from './grid/grid-column/grid-field-column/index.mjs';
package/es/index.mjs CHANGED
@@ -42,6 +42,7 @@ import { IBizMEditViewPanelControl } from './control/medit-view-panel/index.mjs'
42
42
  import { IBizChartExpBarControl } from './control/exp-bar/chart-exp-bar/index.mjs';
43
43
  import { IBizMapControl } from './control/map/index.mjs';
44
44
  import { IBizReportPanelControl } from './control/report-panel/index.mjs';
45
+ import { IBizGanttControl } from './control/gantt/index.mjs';
45
46
  export { IBizCol } from './common/col/col.mjs';
46
47
  export { IBizRow } from './common/row/row.mjs';
47
48
  export { IBizActionToolbar } from './common/action-toolbar/action-toolbar.mjs';
@@ -160,8 +161,9 @@ var index = {
160
161
  v.use(IBizChartExpBarControl);
161
162
  v.use(IBizMapControl);
162
163
  v.use(IBizReportPanelControl);
164
+ v.use(IBizGanttControl);
163
165
  v.use(IBizEditor);
164
166
  }
165
167
  };
166
168
 
167
- export { IBizAppMenuControl, IBizAppMenuIconViewControl, IBizCalendarControl, IBizCalendarExpBarControl, IBizCaptionBarControl, IBizChartControl, IBizChartExpBarControl, IBizCommonComponents, IBizDRBarControl, IBizDRTabControl, IBizDashboardControl, IBizDataViewControl, IBizDataViewExpBarControl, IBizEditFormControl, IBizEditor, IBizFormControl, IBizGridControl, IBizGridExpBarControl, IBizKanbanControl, IBizListControl, IBizListExpBarControl, IBizMEditViewPanelControl, IBizMapControl, IBizPanelComponents, IBizPickupViewPanelControl, IBizReportPanelControl, IBizSearchBarControl, IBizSearchFormControl, IBizTabExpPanelControl, IBizToolbarControl, IBizTreeControl, IBizTreeExpBarControl, IBizTreeGridControl, IBizTreeGridExControl, IBizViewEngine, IBizWFStepTraceView, IBizWizardPanelControl, index as default };
169
+ export { IBizAppMenuControl, IBizAppMenuIconViewControl, IBizCalendarControl, IBizCalendarExpBarControl, IBizCaptionBarControl, IBizChartControl, IBizChartExpBarControl, IBizCommonComponents, IBizDRBarControl, IBizDRTabControl, IBizDashboardControl, IBizDataViewControl, IBizDataViewExpBarControl, IBizEditFormControl, IBizEditor, IBizFormControl, IBizGanttControl, IBizGridControl, IBizGridExpBarControl, IBizKanbanControl, IBizListControl, IBizListExpBarControl, IBizMEditViewPanelControl, IBizMapControl, IBizPanelComponents, IBizPickupViewPanelControl, IBizReportPanelControl, IBizSearchBarControl, IBizSearchFormControl, IBizTabExpPanelControl, IBizToolbarControl, IBizTreeControl, IBizTreeExpBarControl, IBizTreeGridControl, IBizTreeGridExControl, IBizViewEngine, IBizWFStepTraceView, IBizWizardPanelControl, index as default };
@@ -0,0 +1,6 @@
1
+ import { MDViewEngine, ViewController, IGanttViewState, IGanttViewEvent, IGanttController } from '@ibiz-template/runtime';
2
+ import { IAppDEGanttView } from '@ibiz/model-core';
3
+ export declare class GanttViewEngine extends MDViewEngine {
4
+ protected view: ViewController<IAppDEGanttView, IGanttViewState, IGanttViewEvent>;
5
+ get gantt(): IGanttController;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { MDViewEngine } from '@ibiz-template/runtime';
2
+
3
+ "use strict";
4
+ class GanttViewEngine extends MDViewEngine {
5
+ get gantt() {
6
+ return this.view.getController("gantt");
7
+ }
8
+ }
9
+
10
+ export { GanttViewEngine };
@@ -39,6 +39,7 @@ import { MEditView9Engine } from './medit-view9.engine.mjs';
39
39
  import { ChartExpViewEngine } from './chart-exp-view.engine.mjs';
40
40
  import { MapViewEngine } from './map-view.engine.mjs';
41
41
  import { ReportViewEngine } from './report-view.engine.mjs';
42
+ import { GanttViewEngine } from './gantt-view.engine.mjs';
42
43
 
43
44
  "use strict";
44
45
  const IBizViewEngine = {
@@ -215,6 +216,10 @@ const IBizViewEngine = {
215
216
  "VIEW_DECHARTEXPVIEW",
216
217
  (c) => new ChartExpViewEngine(c)
217
218
  );
219
+ ibiz.engine.register(
220
+ "VIEW_DEGANTTVIEW",
221
+ (c) => new GanttViewEngine(c)
222
+ );
218
223
  ibiz.engine.register(
219
224
  "VIEW_GridView9",
220
225
  (c) => new GridViewEngine(c)
@@ -1,5 +1,6 @@
1
1
  import { ViewEngineBase, SysUIActionTag } from '@ibiz-template/runtime';
2
2
  import { useRoute } from 'vue-router';
3
+ import { notNilEmpty } from 'qx-util';
3
4
 
4
5
  "use strict";
5
6
  var __defProp = Object.defineProperty;
@@ -51,11 +52,11 @@ class LoginViewEngine extends ViewEngineBase {
51
52
  if (this.AppLoginView.layoutPanel && typeof this.AppLoginView.layoutPanel.data.isRemember === "boolean") {
52
53
  rememberme = this.AppLoginView.layoutPanel.data.isRemember;
53
54
  }
54
- const bol = await ibiz.auth.login(
55
- args.data[0].username,
56
- args.data[0].password,
57
- rememberme
58
- );
55
+ const data = args.data[0] || {};
56
+ if (notNilEmpty(data.orgid)) {
57
+ data.username = `${data.username}@${data.orgid}`;
58
+ }
59
+ const bol = await ibiz.auth.login(data.username, data.password, rememberme);
59
60
  if (bol === true) {
60
61
  window.location.hash = this.route.query.ru || "/";
61
62
  window.location.reload();
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var vue3Util = require('@ibiz-template/vue3-util');
5
+ var runtime = require('@ibiz-template/runtime');
6
+
7
+ "use strict";
8
+ const GanttControl = /* @__PURE__ */ vue.defineComponent({
9
+ name: "IBizGanttControl",
10
+ props: {
11
+ modelData: {
12
+ type: Object,
13
+ required: true
14
+ },
15
+ context: {
16
+ type: Object,
17
+ required: true
18
+ },
19
+ params: {
20
+ type: Object,
21
+ default: () => ({})
22
+ },
23
+ provider: {
24
+ type: Object
25
+ },
26
+ loadDefault: {
27
+ type: Boolean,
28
+ default: true
29
+ }
30
+ },
31
+ setup() {
32
+ const c = vue3Util.useControlController((...args) => new runtime.GanttController(...args));
33
+ const ns = vue3Util.useNamespace(`control-${c.model.controlType.toLowerCase()}`);
34
+ return {
35
+ c,
36
+ ns
37
+ };
38
+ },
39
+ render() {
40
+ return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
41
+ "controller": this.c,
42
+ "class": this.ns.b()
43
+ }, {
44
+ default: () => [vue.createTextVNode("\u7518\u7279\u56FE")]
45
+ });
46
+ }
47
+ });
48
+
49
+ exports.GanttControl = GanttControl;
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ "use strict";
4
+ var __defProp = Object.defineProperty;
5
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
+ var __publicField = (obj, key, value) => {
7
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
+ return value;
9
+ };
10
+ class GanttProvider {
11
+ constructor() {
12
+ __publicField(this, "component", "IBizGanttControl");
13
+ }
14
+ }
15
+
16
+ exports.GanttProvider = GanttProvider;
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('@ibiz-template/runtime');
6
+ var vue3Util = require('@ibiz-template/vue3-util');
7
+ var gantt = require('./gantt.cjs');
8
+ var gantt_provider = require('./gantt.provider.cjs');
9
+
10
+ "use strict";
11
+ const IBizGanttControl = vue3Util.withInstall(gantt.GanttControl, function(v) {
12
+ v.component(gantt.GanttControl.name, gantt.GanttControl);
13
+ runtime.registerControlProvider(runtime.ControlType.GANTT, () => new gantt_provider.GanttProvider());
14
+ });
15
+
16
+ exports.IBizGanttControl = IBizGanttControl;
17
+ exports.default = IBizGanttControl;
@@ -25,6 +25,7 @@ var index$N = require('./tree-grid/index.cjs');
25
25
  var index$O = require('./medit-view-panel/index.cjs');
26
26
  var index$P = require('./map/index.cjs');
27
27
  var index$Q = require('./report-panel/index.cjs');
28
+ var index$R = require('./gantt/index.cjs');
28
29
  var gridControl_util = require('./grid/grid/grid-control.util.cjs');
29
30
  var index$2 = require('./grid/grid/index.cjs');
30
31
  var index$3 = require('./grid/grid-column/grid-field-column/index.cjs');
@@ -96,6 +97,7 @@ exports.IBizTreeGridControl = index$N.IBizTreeGridControl;
96
97
  exports.IBizMEditViewPanelControl = index$O.IBizMEditViewPanelControl;
97
98
  exports.IBizMapControl = index$P.IBizMapControl;
98
99
  exports.IBizReportPanelControl = index$Q.IBizReportPanelControl;
100
+ exports.IBizGanttControl = index$R.IBizGanttControl;
99
101
  exports.useAppGridBase = gridControl_util.useAppGridBase;
100
102
  exports.useAppGridPagination = gridControl_util.useAppGridPagination;
101
103
  exports.useITableEvent = gridControl_util.useITableEvent;
package/lib/index.cjs CHANGED
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var vue3Util = require('@ibiz-template/vue3-util');
6
6
  var index$3 = require('./common/index.cjs');
7
- var index$V = require('./panel-component/index.cjs');
7
+ var index$W = require('./panel-component/index.cjs');
8
8
  require('./control/index.cjs');
9
- var index$12 = require('./editor/index.cjs');
9
+ var index$13 = require('./editor/index.cjs');
10
10
  require('./view/index.cjs');
11
11
  var index$2 = require('./locale/index.cjs');
12
- var index$14 = require('./view-engine/index.cjs');
12
+ var index$15 = require('./view-engine/index.cjs');
13
13
  require('./util/index.cjs');
14
14
  var index$1 = require('./devtool/index.cjs');
15
- var index$13 = require('./view/wf-step-trace-view/index.cjs');
15
+ var index$14 = require('./view/wf-step-trace-view/index.cjs');
16
16
  var index$q = require('./control/data-view/index.cjs');
17
17
  var index$r = require('./control/tree/index.cjs');
18
18
  var index$4 = require('./control/app-menu/index.cjs');
@@ -45,6 +45,7 @@ var index$S = require('./control/medit-view-panel/index.cjs');
45
45
  var index$z = require('./control/exp-bar/chart-exp-bar/index.cjs');
46
46
  var index$T = require('./control/map/index.cjs');
47
47
  var index$U = require('./control/report-panel/index.cjs');
48
+ var index$V = require('./control/gantt/index.cjs');
48
49
  var col = require('./common/col/col.cjs');
49
50
  var row = require('./common/row/row.cjs');
50
51
  var actionToolbar = require('./common/action-toolbar/action-toolbar.cjs');
@@ -88,19 +89,19 @@ var htmlPortlet = require('./control/dashboard/portlet/html-portlet/html-portlet
88
89
  var index$M = require('./control/dashboard/portlet/html-portlet/index.cjs');
89
90
  var actionbarPortlet = require('./control/dashboard/portlet/actionbar-portlet/actionbar-portlet.cjs');
90
91
  var index$N = require('./control/dashboard/portlet/actionbar-portlet/index.cjs');
91
- var index$W = require('./panel-component/auth-userinfo/index.cjs');
92
+ var index$X = require('./panel-component/auth-userinfo/index.cjs');
92
93
  var navPosIndex_state = require('./panel-component/nav-pos-index/nav-pos-index.state.cjs');
93
94
  var navPosIndex_controller = require('./panel-component/nav-pos-index/nav-pos-index.controller.cjs');
94
- var index$X = require('./panel-component/nav-pos-index/index.cjs');
95
+ var index$Y = require('./panel-component/nav-pos-index/index.cjs');
95
96
  var panelButton_controller = require('./panel-component/panel-button/panel-button.controller.cjs');
96
- var index$Y = require('./panel-component/panel-button/index.cjs');
97
+ var index$Z = require('./panel-component/panel-button/index.cjs');
97
98
  var panelAppTitle_controller = require('./panel-component/panel-app-title/panel-app-title.controller.cjs');
98
- var index$Z = require('./panel-component/panel-app-title/index.cjs');
99
- var index$_ = require('./panel-component/panel-tab-panel/index.cjs');
99
+ var index$_ = require('./panel-component/panel-app-title/index.cjs');
100
+ var index$$ = require('./panel-component/panel-tab-panel/index.cjs');
100
101
  var splitContainer_controller = require('./panel-component/split-container/split-container.controller.cjs');
101
- var index$$ = require('./panel-component/split-container/index.cjs');
102
- var index$10 = require('./panel-component/panel-index-view-search/index.cjs');
103
- var index$11 = require('./panel-component/index-actions/index.cjs');
102
+ var index$10 = require('./panel-component/split-container/index.cjs');
103
+ var index$11 = require('./panel-component/panel-index-view-search/index.cjs');
104
+ var index$12 = require('./panel-component/index-actions/index.cjs');
104
105
  var _404View = require('./view/404-view/404-view.cjs');
105
106
  var loginView = require('./view/login-view/login-view.cjs');
106
107
  var gridView_engine = require('./view-engine/grid-view.engine.cjs');
@@ -124,11 +125,11 @@ var index = {
124
125
  ibiz.i18n = index$2.iBizI18n;
125
126
  ibiz.util.getExcelUtil = () => Promise.resolve().then(function () { return require('./util/xlsx-util/xlsx-util.cjs'); });
126
127
  v.use(index$3.IBizCommonComponents);
127
- v.use(index$V.IBizPanelComponents);
128
- v.use(index$14.IBizViewEngine);
128
+ v.use(index$W.IBizPanelComponents);
129
+ v.use(index$15.IBizViewEngine);
129
130
  v.use(vue3Util.IBizView);
130
131
  v.use(vue3Util.IBizPortalView);
131
- v.use(index$13.IBizWFStepTraceView);
132
+ v.use(index$14.IBizWFStepTraceView);
132
133
  v.use(index$q.IBizDataViewControl);
133
134
  v.use(index$r.IBizTreeControl);
134
135
  v.use(index$4.IBizAppMenuControl);
@@ -163,17 +164,18 @@ var index = {
163
164
  v.use(index$z.IBizChartExpBarControl);
164
165
  v.use(index$T.IBizMapControl);
165
166
  v.use(index$U.IBizReportPanelControl);
166
- v.use(index$12.IBizEditor);
167
+ v.use(index$V.IBizGanttControl);
168
+ v.use(index$13.IBizEditor);
167
169
  }
168
170
  };
169
171
 
170
172
  exports.IBizCommonComponents = index$3.IBizCommonComponents;
171
- exports.IBizPanelComponents = index$V.IBizPanelComponents;
172
- exports.IBizEditor = index$12.IBizEditor;
173
+ exports.IBizPanelComponents = index$W.IBizPanelComponents;
174
+ exports.IBizEditor = index$13.IBizEditor;
173
175
  exports.i18n = index$2.i18n;
174
- exports.IBizViewEngine = index$14.IBizViewEngine;
176
+ exports.IBizViewEngine = index$15.IBizViewEngine;
175
177
  exports.devtool = index$1.devtool;
176
- exports.IBizWFStepTraceView = index$13.IBizWFStepTraceView;
178
+ exports.IBizWFStepTraceView = index$14.IBizWFStepTraceView;
177
179
  exports.IBizDataViewControl = index$q.IBizDataViewControl;
178
180
  exports.IBizTreeControl = index$r.IBizTreeControl;
179
181
  exports.IBizAppMenuControl = index$4.IBizAppMenuControl;
@@ -206,6 +208,7 @@ exports.IBizMEditViewPanelControl = index$S.IBizMEditViewPanelControl;
206
208
  exports.IBizChartExpBarControl = index$z.IBizChartExpBarControl;
207
209
  exports.IBizMapControl = index$T.IBizMapControl;
208
210
  exports.IBizReportPanelControl = index$U.IBizReportPanelControl;
211
+ exports.IBizGanttControl = index$V.IBizGanttControl;
209
212
  exports.IBizCol = col.IBizCol;
210
213
  exports.IBizRow = row.IBizRow;
211
214
  exports.IBizActionToolbar = actionToolbar.IBizActionToolbar;
@@ -251,19 +254,19 @@ exports.HtmlPortlet = htmlPortlet.HtmlPortlet;
251
254
  exports.IBizHtmlPortlet = index$M.IBizHtmlPortlet;
252
255
  exports.ActionBarPortlet = actionbarPortlet.ActionBarPortlet;
253
256
  exports.IBizActionBarPortlet = index$N.IBizActionBarPortlet;
254
- exports.IBizAuthUserinfo = index$W.IBizAuthUserinfo;
257
+ exports.IBizAuthUserinfo = index$X.IBizAuthUserinfo;
255
258
  exports.NavPosIndexState = navPosIndex_state.NavPosIndexState;
256
259
  exports.NavPosIndexController = navPosIndex_controller.NavPosIndexController;
257
- exports.IBizNavPosIndex = index$X.IBizNavPosIndex;
260
+ exports.IBizNavPosIndex = index$Y.IBizNavPosIndex;
258
261
  exports.PanelButtonController = panelButton_controller.PanelButtonController;
259
- exports.IBizPanelButton = index$Y.IBizPanelButton;
262
+ exports.IBizPanelButton = index$Z.IBizPanelButton;
260
263
  exports.PanelAppTitleController = panelAppTitle_controller.PanelAppTitleController;
261
- exports.IBizPanelAppTitle = index$Z.IBizPanelAppTitle;
262
- exports.IBizPanelTabPanel = index$_.IBizPanelTabPanel;
264
+ exports.IBizPanelAppTitle = index$_.IBizPanelAppTitle;
265
+ exports.IBizPanelTabPanel = index$$.IBizPanelTabPanel;
263
266
  exports.SplitContainerController = splitContainer_controller.SplitContainerController;
264
- exports.IBizSplitContainer = index$$.IBizSplitContainer;
265
- exports.IBizPanelIndexViewSearch = index$10.IBizPanelIndexViewSearch;
266
- exports.IBizIndexActions = index$11.IBizIndexActions;
267
+ exports.IBizSplitContainer = index$10.IBizSplitContainer;
268
+ exports.IBizPanelIndexViewSearch = index$11.IBizPanelIndexViewSearch;
269
+ exports.IBizIndexActions = index$12.IBizIndexActions;
267
270
  exports.View404 = _404View.View404;
268
271
  exports.LoginView = loginView.LoginView;
269
272
  exports.GridViewEngine = gridView_engine.GridViewEngine;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var runtime = require('@ibiz-template/runtime');
4
+
5
+ "use strict";
6
+ class GanttViewEngine extends runtime.MDViewEngine {
7
+ get gantt() {
8
+ return this.view.getController("gantt");
9
+ }
10
+ }
11
+
12
+ exports.GanttViewEngine = GanttViewEngine;
@@ -41,6 +41,7 @@ var meditView9_engine = require('./medit-view9.engine.cjs');
41
41
  var chartExpView_engine = require('./chart-exp-view.engine.cjs');
42
42
  var mapView_engine = require('./map-view.engine.cjs');
43
43
  var reportView_engine = require('./report-view.engine.cjs');
44
+ var ganttView_engine = require('./gantt-view.engine.cjs');
44
45
 
45
46
  "use strict";
46
47
  const IBizViewEngine = {
@@ -217,6 +218,10 @@ const IBizViewEngine = {
217
218
  "VIEW_DECHARTEXPVIEW",
218
219
  (c) => new chartExpView_engine.ChartExpViewEngine(c)
219
220
  );
221
+ ibiz.engine.register(
222
+ "VIEW_DEGANTTVIEW",
223
+ (c) => new ganttView_engine.GanttViewEngine(c)
224
+ );
220
225
  ibiz.engine.register(
221
226
  "VIEW_GridView9",
222
227
  (c) => new gridView_engine.GridViewEngine(c)
@@ -2,6 +2,7 @@
2
2
 
3
3
  var runtime = require('@ibiz-template/runtime');
4
4
  var vueRouter = require('vue-router');
5
+ var qxUtil = require('qx-util');
5
6
 
6
7
  "use strict";
7
8
  var __defProp = Object.defineProperty;
@@ -53,11 +54,11 @@ class LoginViewEngine extends runtime.ViewEngineBase {
53
54
  if (this.AppLoginView.layoutPanel && typeof this.AppLoginView.layoutPanel.data.isRemember === "boolean") {
54
55
  rememberme = this.AppLoginView.layoutPanel.data.isRemember;
55
56
  }
56
- const bol = await ibiz.auth.login(
57
- args.data[0].username,
58
- args.data[0].password,
59
- rememberme
60
- );
57
+ const data = args.data[0] || {};
58
+ if (qxUtil.notNilEmpty(data.orgid)) {
59
+ data.username = `${data.username}@${data.orgid}`;
60
+ }
61
+ const bol = await ibiz.auth.login(data.username, data.password, rememberme);
61
62
  if (bol === true) {
62
63
  window.location.hash = this.route.query.ru || "/";
63
64
  window.location.reload();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.4.8",
3
+ "version": "0.4.9",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -25,11 +25,11 @@
25
25
  "dependencies": {
26
26
  "@floating-ui/dom": "^1.5.3",
27
27
  "@ibiz-template-plugin/ai-chat": "^0.0.1",
28
- "@ibiz-template/core": "^0.4.6",
29
- "@ibiz-template/model-helper": "^0.4.8",
30
- "@ibiz-template/runtime": "^0.4.8",
28
+ "@ibiz-template/core": "^0.4.9",
29
+ "@ibiz-template/model-helper": "^0.4.9",
30
+ "@ibiz-template/runtime": "^0.4.9",
31
31
  "@ibiz-template/theme": "^0.4.0",
32
- "@ibiz-template/vue3-util": "^0.4.8",
32
+ "@ibiz-template/vue3-util": "^0.4.9",
33
33
  "@ibiz/model-core": "^0.0.26",
34
34
  "@imengyu/vue3-context-menu": "^1.3.3",
35
35
  "@monaco-editor/loader": "^1.4.0",
@@ -58,16 +58,16 @@
58
58
  "devDependencies": {
59
59
  "@commitlint/cli": "^18.4.3",
60
60
  "@commitlint/config-conventional": "^18.4.3",
61
- "@ibiz-template/cli": "0.3.2",
61
+ "@ibiz-template/cli": "0.3.4",
62
62
  "@types/lodash-es": "^4.17.12",
63
- "@types/node": "^20.10.3",
63
+ "@types/node": "^20.10.4",
64
64
  "@types/qs": "^6.9.10",
65
65
  "@types/ramda": "^0.29.9",
66
66
  "husky": "^8.0.3",
67
67
  "lint-staged": "^15.2.0",
68
- "stylelint": "^15.11.0",
69
- "typescript": "^5.3.2",
70
- "vite": "^5.0.6",
68
+ "stylelint": "^16.0.0",
69
+ "typescript": "^5.3.3",
70
+ "vite": "^5.0.7",
71
71
  "vue-tsc": "^1.8.25"
72
72
  },
73
73
  "peerDependencies": {