@ibiz-template/mob-vue3-components 0.0.1-alpha.24 → 0.0.1-alpha.25

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 (91) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +5 -5
  3. package/dist/index.system.min.js.map +1 -1
  4. package/es/control/calendar/calendar.d.ts +1 -1
  5. package/es/control/calendar/index.d.ts +1 -1
  6. package/es/control/caption-bar/caption-bar.css +1 -1
  7. package/es/control/chart/chart.d.ts +1 -1
  8. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  9. package/es/control/data-view/data-view.css +1 -1
  10. package/es/control/data-view/data-view.d.ts +1 -1
  11. package/es/control/data-view/index.d.ts +1 -1
  12. package/es/control/form/edit-form/edit-form.d.ts +1 -1
  13. package/es/control/form/edit-form/index.d.ts +1 -1
  14. package/es/control/form/form-detail/form-button/form-button.css +1 -1
  15. package/es/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
  16. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  17. package/es/control/form/form-detail/form-item/form-item.css +1 -1
  18. package/es/control/form/form-detail/form-page/form-page.css +1 -1
  19. package/es/control/index.d.ts +0 -1
  20. package/es/control/index.mjs +0 -5
  21. package/es/control/md-ctrl/md-ctrl.css +1 -1
  22. package/es/control/search-bar/search-bar.css +1 -1
  23. package/es/editor/cascader/ibiz-cascader/ibiz-cascader.css +1 -1
  24. package/es/editor/cascader/ibiz-cascader/ibiz-cascader.mjs +2 -2
  25. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
  26. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +3 -0
  27. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
  28. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -1
  29. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +6 -6
  30. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -1
  31. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +7 -8
  32. package/es/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.mjs +3 -0
  33. package/es/editor/span/span/span.css +1 -1
  34. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +2 -2
  35. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
  36. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +2 -0
  37. package/es/index.mjs +1 -3
  38. package/es/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
  39. package/es/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
  40. package/lib/control/caption-bar/caption-bar.css +1 -1
  41. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  42. package/lib/control/data-view/data-view.css +1 -1
  43. package/lib/control/form/form-detail/form-button/form-button.css +1 -1
  44. package/lib/control/form/form-detail/form-group-panel/form-group-panel.css +1 -1
  45. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.css +1 -1
  46. package/lib/control/form/form-detail/form-item/form-item.css +1 -1
  47. package/lib/control/form/form-detail/form-page/form-page.css +1 -1
  48. package/lib/control/index.cjs +58 -67
  49. package/lib/control/md-ctrl/md-ctrl.css +1 -1
  50. package/lib/control/search-bar/search-bar.css +1 -1
  51. package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.cjs +2 -2
  52. package/lib/editor/cascader/ibiz-cascader/ibiz-cascader.css +1 -1
  53. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +3 -0
  54. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
  55. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +6 -6
  56. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.css +1 -1
  57. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +7 -8
  58. package/lib/editor/dropdown-list/ibiz-dropdown-list/ibiz-dropdown-list.cjs +3 -0
  59. package/lib/editor/span/span/span.css +1 -1
  60. package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +2 -2
  61. package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +2 -0
  62. package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
  63. package/lib/index.cjs +38 -40
  64. package/lib/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
  65. package/lib/panel-component/view-header-panel-container/view-header-panel-container.css +1 -1
  66. package/package.json +1 -1
  67. package/es/control/panel/index.d.ts +0 -2
  68. package/es/control/panel/index.mjs +0 -6
  69. package/es/control/panel/panel/index.d.ts +0 -51
  70. package/es/control/panel/panel/index.mjs +0 -12
  71. package/es/control/panel/panel/panel.css +0 -1
  72. package/es/control/panel/panel/panel.d.ts +0 -56
  73. package/es/control/panel/panel/panel.mjs +0 -130
  74. package/es/control/panel/panel/panel.provider.d.ts +0 -13
  75. package/es/control/panel/panel/panel.provider.mjs +0 -14
  76. package/es/control/panel/view-layout-panel/index.d.ts +0 -36
  77. package/es/control/panel/view-layout-panel/index.mjs +0 -18
  78. package/es/control/panel/view-layout-panel/view-layout-panel.css +0 -1
  79. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +0 -41
  80. package/es/control/panel/view-layout-panel/view-layout-panel.mjs +0 -109
  81. package/es/control/panel/view-layout-panel/view-layout-panel.provider.d.ts +0 -13
  82. package/es/control/panel/view-layout-panel/view-layout-panel.provider.mjs +0 -14
  83. package/lib/control/panel/index.cjs +0 -13
  84. package/lib/control/panel/panel/index.cjs +0 -18
  85. package/lib/control/panel/panel/panel.cjs +0 -132
  86. package/lib/control/panel/panel/panel.css +0 -1
  87. package/lib/control/panel/panel/panel.provider.cjs +0 -16
  88. package/lib/control/panel/view-layout-panel/index.cjs +0 -24
  89. package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +0 -111
  90. package/lib/control/panel/view-layout-panel/view-layout-panel.css +0 -1
  91. package/lib/control/panel/view-layout-panel/view-layout-panel.provider.cjs +0 -16
@@ -1,111 +0,0 @@
1
- 'use strict';
2
-
3
- var vue = require('vue');
4
- var vue3Util = require('@ibiz-template/vue3-util');
5
- require('./view-layout-panel.css');
6
- var runtime = require('@ibiz-template/runtime');
7
-
8
- "use strict";
9
- function _isSlot(s) {
10
- return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
11
- }
12
- function renderPanelItem(panelItem, c, ins) {
13
- var _a;
14
- if (panelItem.hidden) {
15
- return;
16
- }
17
- const {
18
- providers,
19
- panelItems
20
- } = c;
21
- const provider = providers[panelItem.id];
22
- if (!provider) {
23
- return vue.createVNode("div", null, [vue.createTextVNode("\u6682\u672A\u652F\u6301\u7684\u9762\u677F\u9879: "), panelItem.id, vue.createTextVNode(" - "), panelItem.itemType]);
24
- }
25
- const component = vue.resolveComponent(provider.component);
26
- let children;
27
- if (panelItem.itemType === "CTRLPOS" && ins.$slots[panelItem.id]) {
28
- children = () => {
29
- return ins.$slots[panelItem.id]();
30
- };
31
- } else if ((_a = panelItem.panelItems) == null ? void 0 : _a.length) {
32
- children = () => {
33
- return panelItem.panelItems.map((child) => {
34
- return renderPanelItem(child, c, ins);
35
- });
36
- };
37
- }
38
- return vue.h(component, {
39
- modelData: panelItem,
40
- controller: panelItems[panelItem.id],
41
- key: panelItem.id
42
- }, children);
43
- }
44
- const ViewLayoutPanelControl = /* @__PURE__ */ vue.defineComponent({
45
- name: "IBizViewLayoutPanelControl",
46
- props: {
47
- modelData: {
48
- type: Object,
49
- required: true
50
- },
51
- context: {
52
- type: Object,
53
- required: true
54
- },
55
- params: {
56
- type: Object,
57
- default: () => ({})
58
- },
59
- inputData: Object
60
- },
61
- setup() {
62
- const c = vue3Util.useControlController((...args) => new runtime.ViewLayoutPanelController(...args));
63
- const ns = vue3Util.useNamespace(`control-${c.model.controlType.toLowerCase()}`);
64
- c.evt.on("onCreated", () => {
65
- const keys = Object.keys(c.panelItems);
66
- keys.forEach((key) => {
67
- const panelItem = c.panelItems[key];
68
- panelItem.state = vue.reactive(panelItem.state);
69
- });
70
- });
71
- return {
72
- c,
73
- ns
74
- };
75
- },
76
- render() {
77
- const {
78
- state,
79
- model
80
- } = this.c;
81
- return vue.createVNode(vue.resolveComponent("iBizControlBase"), {
82
- "controller": this.c
83
- }, {
84
- default: () => [vue.createVNode(vue.resolveComponent("iBizRow"), {
85
- "class": this.ns.b("content"),
86
- "layout": {
87
- layout: "FLEX"
88
- }
89
- }, {
90
- default: () => {
91
- var _a;
92
- return [state.isCreated && (this.$slots.default ? this.$slots.default({
93
- panelItems: this.c.panelItems
94
- }) : (_a = model.rootPanelItems) == null ? void 0 : _a.map((panelItem) => {
95
- let _slot;
96
- const subC = this.c.panelItems[panelItem.id];
97
- panelItem.layoutPos.layout = "FLEX";
98
- return vue.createVNode(vue.resolveComponent("iBizCol"), {
99
- "layoutPos": panelItem.layoutPos,
100
- "state": subC.state
101
- }, _isSlot(_slot = renderPanelItem(panelItem, this.c, this)) ? _slot : {
102
- default: () => [_slot]
103
- });
104
- }))];
105
- }
106
- })]
107
- });
108
- }
109
- });
110
-
111
- exports.ViewLayoutPanelControl = ViewLayoutPanelControl;
@@ -1 +0,0 @@
1
- .ibiz-control-viewlayoutpanel{width:100%;height:100%}.ibiz-control-viewlayoutpanel-content{width:100%;height:100%}
@@ -1,16 +0,0 @@
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 ViewLayoutPanelProvider {
11
- constructor() {
12
- __publicField(this, "component", "IBizViewLayoutPanelControl");
13
- }
14
- }
15
-
16
- exports.ViewLayoutPanelProvider = ViewLayoutPanelProvider;