@ibiz-template/vue3-components 0.7.41-alpha.26 → 0.7.41-alpha.27

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 (80) hide show
  1. package/dist/index-QWKV4tFl.js +11 -0
  2. package/dist/index.min.css +1 -1
  3. package/dist/index.system.min.js +1 -1
  4. package/dist/{wang-editor-3ZSVyG8N.js → wang-editor-cE7s2d6m.js} +1 -1
  5. package/dist/{xlsx-util-Ia8Tdyju.js → xlsx-util-hFsCMRuN.js} +1 -1
  6. package/es/common/action-toolbar/action-toolbar.css +1 -1
  7. package/es/common/action-toolbar/action-toolbar.d.ts +1 -0
  8. package/es/common/action-toolbar/action-toolbar.mjs +22 -13
  9. package/es/common/button-list/button-list.css +1 -1
  10. package/es/common/button-list/button-list.mjs +7 -4
  11. package/es/common/rawitem/rawitem.mjs +5 -1
  12. package/es/control/app-menu/app-menu.css +1 -1
  13. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  14. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +6 -1
  15. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +47 -9
  16. package/es/control/drtab/drtab-control.util.mjs +1 -1
  17. package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +3 -3
  18. package/es/control/form/form-detail/form-page/form-page-item/form-page.item.mjs +3 -3
  19. package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +3 -3
  20. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +6 -5
  21. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +4 -1
  22. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +4 -1
  23. package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
  24. package/es/locale/en/index.d.ts +1 -0
  25. package/es/locale/zh-CN/index.d.ts +1 -0
  26. package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.d.ts +2 -2
  27. package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.mjs +2 -2
  28. package/es/panel-component/panel-tab-panel/panel-tab-panel.state.d.ts +3 -3
  29. package/es/panel-component/panel-tab-panel/panel-tab-panel.state.mjs +2 -2
  30. package/es/panel-component/panel-view-content/index.d.ts +2 -2
  31. package/es/panel-component/panel-view-content/panel-view-content.d.ts +3 -3
  32. package/es/panel-component/panel-view-content/panel-view-content.mjs +5 -5
  33. package/es/panel-component/panel-view-content/panel-view-content.provider.d.ts +2 -2
  34. package/es/panel-component/panel-view-content/panel-view-content.provider.mjs +2 -2
  35. package/es/panel-component/panel-view-header/index.d.ts +2 -2
  36. package/es/panel-component/panel-view-header/panel-view-header.d.ts +3 -3
  37. package/es/panel-component/panel-view-header/panel-view-header.mjs +5 -5
  38. package/es/panel-component/panel-view-header/panel-view-header.provider.d.ts +2 -2
  39. package/es/panel-component/panel-view-header/panel-view-header.provider.mjs +2 -2
  40. package/es/panel-component/split-container/split-container.controller.d.ts +3 -3
  41. package/es/panel-component/split-container/split-container.controller.mjs +2 -2
  42. package/es/panel-component/split-container/split-container.mjs +3 -3
  43. package/es/panel-component/split-container/split-container.state.d.ts +3 -3
  44. package/es/panel-component/split-container/split-container.state.mjs +2 -2
  45. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  46. package/es/view-engine/md-custom-view.engine.d.ts +23 -1
  47. package/es/view-engine/md-custom-view.engine.mjs +69 -0
  48. package/es/view-engine/mpickup-view-engine.mjs +1 -1
  49. package/lib/common/action-toolbar/action-toolbar.cjs +22 -13
  50. package/lib/common/action-toolbar/action-toolbar.css +1 -1
  51. package/lib/common/button-list/button-list.cjs +7 -4
  52. package/lib/common/button-list/button-list.css +1 -1
  53. package/lib/common/rawitem/rawitem.cjs +5 -1
  54. package/lib/control/app-menu/app-menu.css +1 -1
  55. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +45 -7
  56. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  57. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  58. package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +2 -2
  59. package/lib/control/form/form-detail/form-page/form-page-item/form-page.item.cjs +2 -2
  60. package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +2 -2
  61. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +5 -4
  62. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +4 -1
  63. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +4 -1
  64. package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
  65. package/lib/panel-component/panel-tab-panel/panel-tab-panel.controller.cjs +1 -1
  66. package/lib/panel-component/panel-tab-panel/panel-tab-panel.state.cjs +1 -1
  67. package/lib/panel-component/panel-view-content/panel-view-content.cjs +3 -3
  68. package/lib/panel-component/panel-view-content/panel-view-content.provider.cjs +1 -1
  69. package/lib/panel-component/panel-view-header/panel-view-header.cjs +3 -3
  70. package/lib/panel-component/panel-view-header/panel-view-header.provider.cjs +1 -1
  71. package/lib/panel-component/split-container/split-container.cjs +2 -2
  72. package/lib/panel-component/split-container/split-container.controller.cjs +1 -1
  73. package/lib/panel-component/split-container/split-container.state.cjs +1 -1
  74. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  75. package/lib/view-engine/md-custom-view.engine.cjs +69 -0
  76. package/lib/view-engine/mpickup-view-engine.cjs +1 -1
  77. package/package.json +6 -6
  78. package/dist/index-i-UdTGjq.js +0 -11
  79. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.23_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.26_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  80. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.23_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.26_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -1,7 +1,7 @@
1
- import { PanelItemController } from '@ibiz-template/runtime';
1
+ import { PanelContainerController } from '@ibiz-template/runtime';
2
2
  import { IPanelTabPanel } from '@ibiz/model-core';
3
3
  import { PanelTabPanelState } from './panel-tab-panel.state';
4
- export declare class PanelTabPanelController extends PanelItemController<IPanelTabPanel> {
4
+ export declare class PanelTabPanelController extends PanelContainerController<IPanelTabPanel> {
5
5
  state: PanelTabPanelState;
6
6
  /**
7
7
  * 新建状态
@@ -1,8 +1,8 @@
1
- import { PanelItemController } from '@ibiz-template/runtime';
1
+ import { PanelContainerController } from '@ibiz-template/runtime';
2
2
  import { PanelTabPanelState } from './panel-tab-panel.state.mjs';
3
3
 
4
4
  "use strict";
5
- class PanelTabPanelController extends PanelItemController {
5
+ class PanelTabPanelController extends PanelContainerController {
6
6
  /**
7
7
  * 新建状态
8
8
  *
@@ -1,4 +1,4 @@
1
- import { PanelItemState } from '@ibiz-template/runtime';
1
+ import { PanelContainerState } from '@ibiz-template/runtime';
2
2
  /**
3
3
  * 分页面板状态
4
4
  *
@@ -6,9 +6,9 @@ import { PanelItemState } from '@ibiz-template/runtime';
6
6
  * @date 2024-05-12 14:05:01
7
7
  * @export
8
8
  * @class PanelTabPanelState
9
- * @extends {PanelItemState}
9
+ * @extends {PanelContainerState}
10
10
  */
11
- export declare class PanelTabPanelState extends PanelItemState {
11
+ export declare class PanelTabPanelState extends PanelContainerState {
12
12
  /**
13
13
  * @description 当前激活分页
14
14
  * @exposedoc
@@ -1,4 +1,4 @@
1
- import { PanelItemState } from '@ibiz-template/runtime';
1
+ import { PanelContainerState } from '@ibiz-template/runtime';
2
2
 
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
7
7
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
8
  return value;
9
9
  };
10
- class PanelTabPanelState extends PanelItemState {
10
+ class PanelTabPanelState extends PanelContainerState {
11
11
  constructor() {
12
12
  super(...arguments);
13
13
  /**
@@ -4,7 +4,7 @@ export declare const IBizPanelViewContent: import("@ibiz-template/vue3-util").Ty
4
4
  required: true;
5
5
  };
6
6
  controller: {
7
- type: typeof import("@ibiz-template/runtime").PanelItemController;
7
+ type: typeof import("@ibiz-template/vue3-util").PanelContainerController;
8
8
  required: true;
9
9
  };
10
10
  }, {
@@ -18,7 +18,7 @@ export declare const IBizPanelViewContent: import("@ibiz-template/vue3-util").Ty
18
18
  required: true;
19
19
  };
20
20
  controller: {
21
- type: typeof import("@ibiz-template/runtime").PanelItemController;
21
+ type: typeof import("@ibiz-template/vue3-util").PanelContainerController;
22
22
  required: true;
23
23
  };
24
24
  }>>, {}, {}>>;
@@ -1,6 +1,6 @@
1
1
  import { IPanelContainer } from '@ibiz/model-core';
2
2
  import { PropType } from 'vue';
3
- import { PanelItemController } from '@ibiz-template/runtime';
3
+ import { PanelContainerController } from '@ibiz-template/runtime';
4
4
  import './panel-view-content.scss';
5
5
  /**
6
6
  * 面板容器(视图内容)
@@ -21,7 +21,7 @@ export declare const PanelViewContent: import("vue").DefineComponent<{
21
21
  * @description 容器控制器
22
22
  */
23
23
  controller: {
24
- type: typeof PanelItemController;
24
+ type: typeof PanelContainerController;
25
25
  required: true;
26
26
  };
27
27
  }, {
@@ -41,7 +41,7 @@ export declare const PanelViewContent: import("vue").DefineComponent<{
41
41
  * @description 容器控制器
42
42
  */
43
43
  controller: {
44
- type: typeof PanelItemController;
44
+ type: typeof PanelContainerController;
45
45
  required: true;
46
46
  };
47
47
  }>>, {}, {}>;
@@ -1,6 +1,6 @@
1
- import { isVNode, ref, computed, resolveComponent, createVNode, defineComponent } from 'vue';
1
+ import { isVNode, ref, computed, resolveComponent, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
2
2
  import { useNamespace } from '@ibiz-template/vue3-util';
3
- import { PanelItemController } from '@ibiz-template/runtime';
3
+ import { PanelContainerController } from '@ibiz-template/runtime';
4
4
  import './panel-view-content.css';
5
5
 
6
6
  "use strict";
@@ -21,7 +21,7 @@ const PanelViewContent = /* @__PURE__ */ defineComponent({
21
21
  * @description 容器控制器
22
22
  */
23
23
  controller: {
24
- type: PanelItemController,
24
+ type: PanelContainerController,
25
25
  required: true
26
26
  }
27
27
  },
@@ -80,9 +80,9 @@ const PanelViewContent = /* @__PURE__ */ defineComponent({
80
80
  })) ? _slot : {
81
81
  default: () => [_slot]
82
82
  });
83
- return createVNode("div", {
83
+ return withDirectives(createVNode("div", {
84
84
  "class": this.classArr
85
- }, [content]);
85
+ }, [content]), [[resolveDirective("loading"), this.controller.state.loading]]);
86
86
  }
87
87
  });
88
88
 
@@ -1,4 +1,4 @@
1
- import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
1
+ import { IPanelItemProvider, PanelContainerController, PanelController, PanelItemController } from '@ibiz-template/runtime';
2
2
  import { IPanelContainer } from '@ibiz/model-core';
3
3
  /**
4
4
  * 面板容器适配器
@@ -11,5 +11,5 @@ import { IPanelContainer } from '@ibiz/model-core';
11
11
  */
12
12
  export declare class PanelViewContentProvider implements IPanelItemProvider {
13
13
  component: string;
14
- createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelItemController>;
14
+ createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelContainerController>;
15
15
  }
@@ -1,4 +1,4 @@
1
- import { PanelItemController } from '@ibiz-template/runtime';
1
+ import { PanelContainerController } from '@ibiz-template/runtime';
2
2
 
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -12,7 +12,7 @@ class PanelViewContentProvider {
12
12
  __publicField(this, "component", "IBizPanelViewContent");
13
13
  }
14
14
  async createController(panelItem, panel, parent) {
15
- const c = new PanelItemController(panelItem, panel, parent);
15
+ const c = new PanelContainerController(panelItem, panel, parent);
16
16
  await c.init();
17
17
  return c;
18
18
  }
@@ -4,7 +4,7 @@ export declare const IBizPanelViewHeader: import("@ibiz-template/vue3-util").Typ
4
4
  required: true;
5
5
  };
6
6
  controller: {
7
- type: typeof import("@ibiz-template/runtime").PanelItemController;
7
+ type: typeof import("@ibiz-template/vue3-util").PanelContainerController;
8
8
  required: true;
9
9
  };
10
10
  }, {
@@ -18,7 +18,7 @@ export declare const IBizPanelViewHeader: import("@ibiz-template/vue3-util").Typ
18
18
  required: true;
19
19
  };
20
20
  controller: {
21
- type: typeof import("@ibiz-template/runtime").PanelItemController;
21
+ type: typeof import("@ibiz-template/vue3-util").PanelContainerController;
22
22
  required: true;
23
23
  };
24
24
  }>>, {}, {}>>;
@@ -1,6 +1,6 @@
1
1
  import { IPanelContainer } from '@ibiz/model-core';
2
2
  import { PropType } from 'vue';
3
- import { PanelItemController } from '@ibiz-template/runtime';
3
+ import { PanelContainerController } from '@ibiz-template/runtime';
4
4
  import './panel-view-header.scss';
5
5
  /**
6
6
  * 面板容器(视图头部)
@@ -19,7 +19,7 @@ export declare const PanelViewHeader: import("vue").DefineComponent<{
19
19
  * @description 容器控制器
20
20
  */
21
21
  controller: {
22
- type: typeof PanelItemController;
22
+ type: typeof PanelContainerController;
23
23
  required: true;
24
24
  };
25
25
  }, {
@@ -39,7 +39,7 @@ export declare const PanelViewHeader: import("vue").DefineComponent<{
39
39
  * @description 容器控制器
40
40
  */
41
41
  controller: {
42
- type: typeof PanelItemController;
42
+ type: typeof PanelContainerController;
43
43
  required: true;
44
44
  };
45
45
  }>>, {}, {}>;
@@ -1,6 +1,6 @@
1
- import { isVNode, ref, computed, resolveComponent, createVNode, defineComponent } from 'vue';
1
+ import { isVNode, ref, computed, resolveComponent, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
2
2
  import { useNamespace } from '@ibiz-template/vue3-util';
3
- import { PanelItemController } from '@ibiz-template/runtime';
3
+ import { PanelContainerController } from '@ibiz-template/runtime';
4
4
  import './panel-view-header.css';
5
5
 
6
6
  "use strict";
@@ -21,7 +21,7 @@ const PanelViewHeader = /* @__PURE__ */ defineComponent({
21
21
  * @description 容器控制器
22
22
  */
23
23
  controller: {
24
- type: PanelItemController,
24
+ type: PanelContainerController,
25
25
  required: true
26
26
  }
27
27
  },
@@ -74,9 +74,9 @@ const PanelViewHeader = /* @__PURE__ */ defineComponent({
74
74
  })) ? _slot : {
75
75
  default: () => [_slot]
76
76
  });
77
- return createVNode("div", {
77
+ return withDirectives(createVNode("div", {
78
78
  "class": this.classArr
79
- }, [content]);
79
+ }, [content]), [[resolveDirective("loading"), this.controller.state.loading]]);
80
80
  }
81
81
  });
82
82
 
@@ -1,4 +1,4 @@
1
- import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
1
+ import { IPanelItemProvider, PanelContainerController, PanelController, PanelItemController } from '@ibiz-template/runtime';
2
2
  import { IPanelContainer } from '@ibiz/model-core';
3
3
  /**
4
4
  * 面板容器适配器
@@ -11,5 +11,5 @@ import { IPanelContainer } from '@ibiz/model-core';
11
11
  */
12
12
  export declare class PanelViewHeaderProvider implements IPanelItemProvider {
13
13
  component: string;
14
- createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelItemController>;
14
+ createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelContainerController>;
15
15
  }
@@ -1,4 +1,4 @@
1
- import { PanelItemController } from '@ibiz-template/runtime';
1
+ import { PanelContainerController } from '@ibiz-template/runtime';
2
2
 
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -12,7 +12,7 @@ class PanelViewHeaderProvider {
12
12
  __publicField(this, "component", "IBizPanelViewHeader");
13
13
  }
14
14
  async createController(panelItem, panel, parent) {
15
- const c = new PanelItemController(panelItem, panel, parent);
15
+ const c = new PanelContainerController(panelItem, panel, parent);
16
16
  await c.init();
17
17
  return c;
18
18
  }
@@ -1,5 +1,5 @@
1
1
  import { IPanelContainer } from '@ibiz/model-core';
2
- import { PanelItemController } from '@ibiz-template/runtime';
2
+ import { PanelContainerController } from '@ibiz-template/runtime';
3
3
  import { SplitContainerState } from './split-container.state';
4
4
  /**
5
5
  * 分割面板容器控制器
@@ -8,9 +8,9 @@ import { SplitContainerState } from './split-container.state';
8
8
  * @date 2023-08-22 17:08:37
9
9
  * @export
10
10
  * @class SplitContainerController
11
- * @extends {PanelItemController<IPanelContainer>}
11
+ * @extends {PanelContainerController<IPanelContainer>}
12
12
  */
13
- export declare class SplitContainerController extends PanelItemController<IPanelContainer> {
13
+ export declare class SplitContainerController extends PanelContainerController<IPanelContainer> {
14
14
  /**
15
15
  * @description 分割面板容器状态
16
16
  * @exposedoc
@@ -1,4 +1,4 @@
1
- import { PanelItemController } from '@ibiz-template/runtime';
1
+ import { PanelContainerController } from '@ibiz-template/runtime';
2
2
 
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
7
7
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
8
  return value;
9
9
  };
10
- class SplitContainerController extends PanelItemController {
10
+ class SplitContainerController extends PanelContainerController {
11
11
  constructor() {
12
12
  super(...arguments);
13
13
  /**
@@ -1,4 +1,4 @@
1
- import { computed, resolveComponent, createVNode, defineComponent } from 'vue';
1
+ import { computed, resolveComponent, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
2
2
  import { useNamespace } from '@ibiz-template/vue3-util';
3
3
  import { SplitContainerController } from './split-container.controller.mjs';
4
4
  import './split-container.css';
@@ -40,7 +40,7 @@ const SplitContainer = /* @__PURE__ */ defineComponent({
40
40
  render() {
41
41
  var _a, _b;
42
42
  const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
43
- return createVNode("div", {
43
+ return withDirectives(createVNode("div", {
44
44
  "class": this.classArr
45
45
  }, [createVNode(resolveComponent("iBizSplit"), {
46
46
  "modelValue": this.controller.state.splitValue,
@@ -51,7 +51,7 @@ const SplitContainer = /* @__PURE__ */ defineComponent({
51
51
  right: () => defaultSlots[1],
52
52
  top: () => defaultSlots[0],
53
53
  bottom: () => defaultSlots[1]
54
- })]);
54
+ })]), [[resolveDirective("loading"), this.controller.state.loading]]);
55
55
  }
56
56
  });
57
57
 
@@ -1,4 +1,4 @@
1
- import { PanelItemState } from '@ibiz-template/runtime';
1
+ import { PanelContainerState } from '@ibiz-template/runtime';
2
2
  /**
3
3
  * 分割面板容器状态
4
4
  *
@@ -6,9 +6,9 @@ import { PanelItemState } from '@ibiz-template/runtime';
6
6
  * @date 2023-10-08 17:10:22
7
7
  * @export
8
8
  * @class SplitContainerState
9
- * @extends {PanelItemState}
9
+ * @extends {PanelContainerState}
10
10
  */
11
- export declare class SplitContainerState extends PanelItemState {
11
+ export declare class SplitContainerState extends PanelContainerState {
12
12
  /**
13
13
  * @description 分割值
14
14
  * @exposedoc
@@ -1,4 +1,4 @@
1
- import { PanelItemState } from '@ibiz-template/runtime';
1
+ import { PanelContainerState } from '@ibiz-template/runtime';
2
2
 
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
7
7
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
8
8
  return value;
9
9
  };
10
- class SplitContainerState extends PanelItemState {
10
+ class SplitContainerState extends PanelContainerState {
11
11
  constructor() {
12
12
  super(...arguments);
13
13
  /**
@@ -1,6 +1,6 @@
1
1
  import { createApp } from 'vue';
2
2
  import ElementPlus from 'element-plus';
3
- import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.23_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
3
+ import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.26_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
4
4
  import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
5
5
 
6
6
  "use strict";
@@ -1,4 +1,4 @@
1
- import { IViewEvent, ViewEngineBase, IUIActionResult, ViewController, IControlController, IApiMDCustomViewCall, IMDCustomViewState } from '@ibiz-template/runtime';
1
+ import { IViewEvent, ViewEngineBase, IUIActionResult, ViewController, IControlController, IApiMDCustomViewCall, IMDCustomViewState, ISearchBarController } from '@ibiz-template/runtime';
2
2
  import { IControl, IMDControl, IAppDECustomView } from '@ibiz/model-core';
3
3
  export declare class MDCustomViewEngine extends ViewEngineBase {
4
4
  protected view: ViewController<IAppDECustomView, IMDCustomViewState, IViewEvent>;
@@ -9,6 +9,14 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
9
9
  * @memberof MDCustomViewEngine
10
10
  */
11
11
  controls: IControl[];
12
+ /**
13
+ * @description 获取分页搜索视图上移的搜索栏控制器
14
+ * @readonly
15
+ * @protected
16
+ * @type {ISearchBarController}
17
+ * @memberof MDCustomViewEngine
18
+ */
19
+ protected get tabSearchBar(): ISearchBarController;
12
20
  /**
13
21
  * 视图created生命周期执行逻辑
14
22
  *
@@ -23,6 +31,13 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
23
31
  * @memberof MDCustomViewEngine
24
32
  */
25
33
  onMounted(): Promise<void>;
34
+ /**
35
+ * @description 获取搜索相关的查询参数
36
+ * @protected
37
+ * @returns {*} {IParams}
38
+ * @memberof MDCustomViewEngine
39
+ */
40
+ protected getSearchParams(): IParams;
26
41
  /**
27
42
  * @description 初始化部件激活模式
28
43
  * @memberof MDCustomViewEngine
@@ -37,6 +52,13 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
37
52
  */
38
53
  calcToolbarButtonState(control: IMDControl, data: IData | undefined, _params?: IParams): void;
39
54
  call(key: keyof IApiMDCustomViewCall, args: any): Promise<IData | null | undefined>;
55
+ /**
56
+ * @description 视图重新加载
57
+ * @protected
58
+ * @returns {*} {Promise<void>}
59
+ * @memberof MDCustomViewEngine
60
+ */
61
+ protected reLoad(): Promise<void>;
40
62
  /**
41
63
  * @description 刷新数据
42
64
  * @returns {*} {Promise<void>}
@@ -20,6 +20,16 @@ class MDCustomViewEngine extends ViewEngineBase {
20
20
  */
21
21
  __publicField(this, "controls", []);
22
22
  }
23
+ /**
24
+ * @description 获取分页搜索视图上移的搜索栏控制器
25
+ * @readonly
26
+ * @protected
27
+ * @type {ISearchBarController}
28
+ * @memberof MDCustomViewEngine
29
+ */
30
+ get tabSearchBar() {
31
+ return this.view.getController("tabsearchbar");
32
+ }
23
33
  /**
24
34
  * 视图created生命周期执行逻辑
25
35
  *
@@ -40,6 +50,26 @@ class MDCustomViewEngine extends ViewEngineBase {
40
50
  async onMounted() {
41
51
  await super.onMounted();
42
52
  this.calcToolbarState = this.calcToolbarState.bind(this);
53
+ if (this.searchForm) {
54
+ this.searchForm.evt.on("onSearch", () => {
55
+ this.reLoad();
56
+ });
57
+ }
58
+ if (this.searchBar) {
59
+ this.searchBar.evt.on("onSearch", () => {
60
+ this.reLoad();
61
+ });
62
+ }
63
+ if (this.tabSearchForm) {
64
+ this.tabSearchForm.evt.on("onSearch", () => {
65
+ this.reLoad();
66
+ });
67
+ }
68
+ if (this.tabSearchBar) {
69
+ this.tabSearchBar.evt.on("onSearch", () => {
70
+ this.reLoad();
71
+ });
72
+ }
43
73
  this.controls.forEach((ctrl) => {
44
74
  const control = this.view.getController(
45
75
  ctrl.name
@@ -56,8 +86,33 @@ class MDCustomViewEngine extends ViewEngineBase {
56
86
  "onRefreshSuccess",
57
87
  (evt) => this.calcToolbarButtonState(ctrl, evt.data[0], evt)
58
88
  );
89
+ control == null ? void 0 : control.evt.on("onBeforeLoad", () => {
90
+ control.state.searchParams = this.getSearchParams();
91
+ });
59
92
  });
60
93
  }
94
+ /**
95
+ * @description 获取搜索相关的查询参数
96
+ * @protected
97
+ * @returns {*} {IParams}
98
+ * @memberof MDCustomViewEngine
99
+ */
100
+ getSearchParams() {
101
+ const params = {};
102
+ if (this.searchForm) {
103
+ Object.assign(params, this.searchForm.getFilterParams());
104
+ }
105
+ if (this.searchBar) {
106
+ Object.assign(params, this.searchBar.getFilterParams());
107
+ }
108
+ if (this.tabSearchForm) {
109
+ Object.assign(params, this.tabSearchForm.getFilterParams());
110
+ }
111
+ if (this.tabSearchBar) {
112
+ Object.assign(params, this.tabSearchBar.getFilterParams());
113
+ }
114
+ return params;
115
+ }
61
116
  /**
62
117
  * @description 初始化部件激活模式
63
118
  * @memberof MDCustomViewEngine
@@ -106,6 +161,20 @@ class MDCustomViewEngine extends ViewEngineBase {
106
161
  }
107
162
  return super.call(key, args);
108
163
  }
164
+ /**
165
+ * @description 视图重新加载
166
+ * @protected
167
+ * @returns {*} {Promise<void>}
168
+ * @memberof MDCustomViewEngine
169
+ */
170
+ async reLoad() {
171
+ if (this.view.state.xdatacontrolname) {
172
+ const xDataCtrl = this.view.getController(
173
+ this.view.state.xdatacontrolname
174
+ );
175
+ await (xDataCtrl == null ? void 0 : xDataCtrl.load({ isInitialLoad: true }));
176
+ }
177
+ }
109
178
  /**
110
179
  * @description 刷新数据
111
180
  * @returns {*} {Promise<void>}
@@ -17,7 +17,7 @@ class MPickupViewEngine extends PickupViewEngine {
17
17
  * @type {boolean}
18
18
  * @memberof MPickupViewEngine
19
19
  */
20
- __publicField(this, "checkStrictly", true);
20
+ __publicField(this, "checkStrictly", false);
21
21
  }
22
22
  /**
23
23
  * 简单列表控制器
@@ -100,6 +100,17 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
100
100
  return [ns.e("item"), (_a2 = item.sysCss) == null ? void 0 : _a2.codeName, ns.em("item", "level-".concat(actionLevel))];
101
101
  };
102
102
  const popoverIndex = props.zIndex;
103
+ const renderItemContent = (detail) => {
104
+ var _a2, _b;
105
+ const caption = ((_a2 = detail.refUIActionGroup) == null ? void 0 : _a2.name) || ((_b = detail.refUIActionGroup) == null ? void 0 : _b.id) || detail.caption;
106
+ return [vue.createVNode("div", {
107
+ "class": [ns.em("item", "icon"), ns.is("has-caption", detail.showCaption && !!detail.caption), ns.is("has-icon", detail.showIcon && !!detail.sysImage)]
108
+ }, [detail.showIcon && detail.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
109
+ "icon": detail.sysImage
110
+ }, null)]), vue.createVNode("div", {
111
+ "class": [ns.em("item", "label"), ns.is("has-caption", detail.showCaption && !!detail.caption), ns.is("has-icon", detail.showIcon && !!detail.sysImage)]
112
+ }, [caption])];
113
+ };
103
114
  return {
104
115
  ns,
105
116
  dropdownRef,
@@ -109,6 +120,7 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
109
120
  groupButtonRef,
110
121
  popoverVisible,
111
122
  handleClick,
123
+ renderItemContent,
112
124
  calcActionItemClass
113
125
  };
114
126
  },
@@ -156,9 +168,11 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
156
168
  "class": [...this.calcActionItemClass(detail), this.ns.e("group-item")]
157
169
  }, {
158
170
  default: () => [vue.createVNode("div", {
171
+ "class": this.ns.em("group-item", "content")
172
+ }, [vue.createVNode("div", {
159
173
  "class": this.ns.em("group-item", "caption")
160
- }, [vue.createVNode("span", null, [actionGroup.name || actionGroup.id]), vue.createVNode("ion-icon", {
161
- "class": this.ns.em("group-item", "caption-icon"),
174
+ }, [this.renderItemContent(detail)]), vue.createVNode("ion-icon", {
175
+ "class": this.ns.em("group-item", "icon"),
162
176
  "name": ishorizontal ? "chevron-down-outline" : "chevron-forward-outline"
163
177
  }, null)])]
164
178
  });
@@ -174,6 +188,7 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
174
188
  if (detail.detailType === "DEUIACTIONGROUP" && detail.refUIActionGroup)
175
189
  return renderActionGroup(detail, isExpand);
176
190
  if ((_a2 = this.actionsState[detail.id]) == null ? void 0 : _a2.visible) {
191
+ let _slot;
177
192
  return [detail.addSeparator && renderDivider(isExpand), vue.createVNode(vue.resolveComponent("el-button"), {
178
193
  "text": true,
179
194
  "size": "small",
@@ -181,21 +196,15 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
181
196
  "title": core.showTitle(detail.tooltip),
182
197
  "disabled": this.actionsState[detail.id].disabled,
183
198
  "class": this.calcActionItemClass(detail)
184
- }, {
185
- default: () => [vue.createVNode("div", {
186
- "class": [this.ns.em("item", "icon"), this.ns.is("has-caption", detail.showCaption && !!detail.caption), this.ns.is("has-icon", detail.showIcon && !!detail.sysImage)]
187
- }, [detail.showIcon && detail.sysImage && vue.createVNode(vue.resolveComponent("iBizIcon"), {
188
- "icon": detail.sysImage
189
- }, null)]), vue.createVNode("div", {
190
- "class": [this.ns.em("item", "label"), this.ns.is("has-caption", detail.showCaption && !!detail.caption), this.ns.is("has-icon", detail.showIcon && !!detail.sysImage)]
191
- }, [detail.showCaption ? detail.caption : ""])]
199
+ }, _isSlot(_slot = this.renderItemContent(detail)) ? _slot : {
200
+ default: () => [_slot]
192
201
  })];
193
202
  }
194
203
  return null;
195
204
  });
196
205
  };
197
206
  const renderGroup = () => {
198
- let _slot;
207
+ let _slot2;
199
208
  if (this.groupDetails.length === 0)
200
209
  return null;
201
210
  const pvisible = this.groupDetails.findIndex((item) => {
@@ -228,8 +237,8 @@ const IBizActionToolbar = /* @__PURE__ */ vue.defineComponent({
228
237
  "popper-class": this.ns.e("popover"),
229
238
  "virtual-triggering": true,
230
239
  "popper-style": "z-index:".concat(this.popoverIndex)
231
- }, _isSlot(_slot = renderActions(this.groupDetails, false)) ? _slot : {
232
- default: () => [_slot]
240
+ }, _isSlot(_slot2 = renderActions(this.groupDetails, false)) ? _slot2 : {
241
+ default: () => [_slot2]
233
242
  })];
234
243
  };
235
244
  if (!((_a = this.actionsState) == null ? void 0 : _a.visible))
@@ -1 +1 @@
1
- @charset "UTF-8";.ibiz-action-toolbar{--ibiz-action-toolbar-item-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none) var(--ibiz-spacing-none);--ibiz-action-toolbar-item-padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-separator-height:var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-separator-width:var(--ibiz-spacing-super-tight);--ibiz-action-toolbar-separator-color:var(--ibiz-color-border);--ibiz-action-toolbar-popover-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-popover-button-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-popover-button-color:var(--ibiz-color-text-2);--ibiz-action-toolbar-popover-button-hover-bg:var(--ibiz-color-bg-0);display:flex;flex-wrap:wrap}.ibiz-action-toolbar__item{padding:var(--ibiz-action-toolbar-item-padding);margin:var(--ibiz-action-toolbar-item-margin)}.ibiz-action-toolbar__item--icon.is-has-icon{display:flex;align-items:baseline;justify-content:center;width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);margin-right:var(--ibiz-spacing-extra-tight);margin-left:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-width-icon-medium)}.ibiz-action-toolbar__item--label.is-has-caption{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-action-toolbar__item+.ibiz-action-toolbar__item{margin:var(--ibiz-action-toolbar-item-margin)}.ibiz-action-toolbar__group-item>span{width:100%}.ibiz-action-toolbar__group-item--caption{display:flex;gap:var(--ibiz-spacing-extra-tight);align-items:center;justify-content:space-between;width:100%}.ibiz-action-toolbar__separator{height:auto}.ibiz-action-toolbar__popover{--ibiz-action-toolbar-item-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none) var(--ibiz-spacing-none);--ibiz-action-toolbar-item-padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-separator-height:var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-separator-width:var(--ibiz-spacing-super-tight);--ibiz-action-toolbar-separator-color:var(--ibiz-color-border);--ibiz-action-toolbar-popover-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-popover-button-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-popover-button-color:var(--ibiz-color-text-2);--ibiz-action-toolbar-popover-button-hover-bg:var(--ibiz-color-bg-0);width:auto!important;min-width:150px;--el-popover-padding:var(--ibiz-action-toolbar-popover-padding)}.ibiz-action-toolbar__popover .el-button{--el-button-size:getCssVar("height-control", "large");display:block;width:100%;padding:var(--ibiz-action-toolbar-popover-button-padding);margin:var(--ibiz-spacing-none);font-size:var(--ibiz-font-size-regular);color:var(--ibiz-action-toolbar-popover-button-color);text-align:left;border-radius:0}.ibiz-action-toolbar__popover .el-button:hover{background-color:var(--ibiz-action-toolbar-popover-button-hover-bg)}.ibiz-action-toolbar__popover .el-button .ibiz-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-action-toolbar__popover .ibiz-action-toolbar__separator{margin:var(--ibiz-spacing-none)}.ibiz-action-toolbar--dropdown .ibiz-action-toolbar__caption{cursor:pointer}.ibiz-action-toolbar--dropdown .ibiz-action-toolbar__caption-icon{vertical-align:bottom}
1
+ @charset "UTF-8";.ibiz-action-toolbar{--ibiz-action-toolbar-item-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none) var(--ibiz-spacing-none);--ibiz-action-toolbar-item-padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-separator-height:var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-separator-width:var(--ibiz-spacing-super-tight);--ibiz-action-toolbar-separator-color:var(--ibiz-color-border);--ibiz-action-toolbar-popover-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-popover-button-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-popover-button-color:var(--ibiz-color-text-2);--ibiz-action-toolbar-popover-button-hover-bg:var(--ibiz-color-bg-0);display:flex;flex-wrap:wrap}.ibiz-action-toolbar__item{padding:var(--ibiz-action-toolbar-item-padding);margin:var(--ibiz-action-toolbar-item-margin)}.ibiz-action-toolbar__item--icon.is-has-icon{display:flex;align-items:baseline;justify-content:center;width:var(--ibiz-width-icon-medium);height:var(--ibiz-width-icon-medium);margin-right:var(--ibiz-spacing-extra-tight);margin-left:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-width-icon-medium)}.ibiz-action-toolbar__item--label.is-has-caption{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-action-toolbar__item+.ibiz-action-toolbar__item{margin:var(--ibiz-action-toolbar-item-margin)}.ibiz-action-toolbar__group-item>span{width:100%}.ibiz-action-toolbar__group-item--content{display:flex;gap:var(--ibiz-spacing-extra-tight);align-items:center;justify-content:space-between;width:100%}.ibiz-action-toolbar__group-item--caption{display:flex;align-items:center;padding:var(--ibiz-action-toolbar-item-padding);margin:var(--ibiz-action-toolbar-item-margin)}.ibiz-action-toolbar__separator{height:auto}.ibiz-action-toolbar__popover{--ibiz-action-toolbar-item-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none) var(--ibiz-spacing-none);--ibiz-action-toolbar-item-padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-separator-height:var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-separator-width:var(--ibiz-spacing-super-tight);--ibiz-action-toolbar-separator-color:var(--ibiz-color-border);--ibiz-action-toolbar-popover-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-none);--ibiz-action-toolbar-popover-button-padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);--ibiz-action-toolbar-popover-button-color:var(--ibiz-color-text-2);--ibiz-action-toolbar-popover-button-hover-bg:var(--ibiz-color-bg-0);width:auto!important;min-width:150px;--el-popover-padding:var(--ibiz-action-toolbar-popover-padding)}.ibiz-action-toolbar__popover .el-button{--el-button-size:getCssVar("height-control", "large");display:block;width:100%;padding:var(--ibiz-action-toolbar-popover-button-padding);margin:var(--ibiz-spacing-none);font-size:var(--ibiz-font-size-regular);color:var(--ibiz-action-toolbar-popover-button-color);text-align:left;border-radius:0}.ibiz-action-toolbar__popover .el-button:hover{background-color:var(--ibiz-action-toolbar-popover-button-hover-bg)}.ibiz-action-toolbar__popover .el-button .ibiz-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-action-toolbar__popover .ibiz-action-toolbar__separator{margin:var(--ibiz-spacing-none)}.ibiz-action-toolbar--dropdown .ibiz-action-toolbar__caption{cursor:pointer}.ibiz-action-toolbar--dropdown .ibiz-action-toolbar__caption-icon{vertical-align:bottom}
@@ -172,12 +172,15 @@ const IBizButtonList = /* @__PURE__ */ vue.defineComponent({
172
172
  }, {
173
173
  default: () => [vue.createVNode("div", {
174
174
  "class": ns.e("button-content")
175
- }, [vue.createVNode("span", {
175
+ }, [detail.showIcon && vue.createVNode(vue.resolveComponent("iBizIcon"), {
176
+ "icon": detail.sysImage,
177
+ "class": ns.em("button-content", "icon")
178
+ }, null), detail.showCaption && vue.createVNode("span", {
176
179
  "class": ns.em("button-content", "caption")
177
- }, [actionGroup.name || actionGroup.id]), vue.createVNode("ion-icon", {
178
- "class": ns.em("button-content", "icon"),
180
+ }, [actionGroup.name || actionGroup.id])]), vue.createVNode("ion-icon", {
181
+ "class": ns.em("item", "group-icon"),
179
182
  "name": isFlatten ? "chevron-down-outline" : "chevron-forward-outline"
180
- }, null)])]
183
+ }, null)]
181
184
  });
182
185
  },
183
186
  default: () => {