@ibiz-template/vue3-util 0.7.41-alpha.111 → 0.7.41-alpha.113

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 (133) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
  4. package/es/control/panel/view-layout-panel/view-layout-panel.mjs +8 -3
  5. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
  6. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +2 -0
  7. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts.map +1 -1
  8. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.mjs +16 -5
  9. package/es/panel-component/auth-wxmp-qrcode/index.d.ts +2 -0
  10. package/es/panel-component/auth-wxmp-qrcode/index.d.ts.map +1 -1
  11. package/es/panel-component/grid-container/grid-container.d.ts +2 -0
  12. package/es/panel-component/grid-container/grid-container.d.ts.map +1 -1
  13. package/es/panel-component/grid-container/grid-container.mjs +12 -2
  14. package/es/panel-component/grid-container/index.d.ts +2 -0
  15. package/es/panel-component/grid-container/index.d.ts.map +1 -1
  16. package/es/panel-component/multi-data-container/index.d.ts +2 -0
  17. package/es/panel-component/multi-data-container/index.d.ts.map +1 -1
  18. package/es/panel-component/multi-data-container/multi-data-container.d.ts +2 -0
  19. package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
  20. package/es/panel-component/multi-data-container/multi-data-container.mjs +16 -3
  21. package/es/panel-component/multi-data-container-raw/index.d.ts +2 -0
  22. package/es/panel-component/multi-data-container-raw/index.d.ts.map +1 -1
  23. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +2 -0
  24. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts.map +1 -1
  25. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.mjs +19 -4
  26. package/es/panel-component/nav-pos/index.d.ts +2 -0
  27. package/es/panel-component/nav-pos/index.d.ts.map +1 -1
  28. package/es/panel-component/nav-pos/nav-pos.d.ts +2 -0
  29. package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
  30. package/es/panel-component/nav-pos/nav-pos.mjs +18 -3
  31. package/es/panel-component/panel-container/index.d.ts +2 -0
  32. package/es/panel-component/panel-container/index.d.ts.map +1 -1
  33. package/es/panel-component/panel-container/panel-container.d.ts +2 -0
  34. package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
  35. package/es/panel-component/panel-container/panel-container.mjs +23 -5
  36. package/es/panel-component/panel-container-image/index.d.ts +2 -0
  37. package/es/panel-component/panel-container-image/index.d.ts.map +1 -1
  38. package/es/panel-component/panel-container-image/panel-container-image.d.ts +2 -0
  39. package/es/panel-component/panel-container-image/panel-container-image.d.ts.map +1 -1
  40. package/es/panel-component/panel-container-image/panel-container-image.mjs +19 -4
  41. package/es/panel-component/panel-ctrl-pos/index.d.ts +2 -0
  42. package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -1
  43. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +2 -0
  44. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
  45. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +16 -4
  46. package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +2 -0
  47. package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts.map +1 -1
  48. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +2 -0
  49. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts.map +1 -1
  50. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.mjs +12 -3
  51. package/es/panel-component/panel-field/index.d.ts +2 -0
  52. package/es/panel-component/panel-field/index.d.ts.map +1 -1
  53. package/es/panel-component/panel-field/panel-field.d.ts +2 -0
  54. package/es/panel-component/panel-field/panel-field.d.ts.map +1 -1
  55. package/es/panel-component/panel-field/panel-field.mjs +14 -5
  56. package/es/panel-component/panel-item-render/index.d.ts +2 -0
  57. package/es/panel-component/panel-item-render/index.d.ts.map +1 -1
  58. package/es/panel-component/panel-item-render/panel-item-render.d.ts +2 -0
  59. package/es/panel-component/panel-item-render/panel-item-render.d.ts.map +1 -1
  60. package/es/panel-component/panel-item-render/panel-item-render.mjs +10 -2
  61. package/es/panel-component/panel-rawitem/index.d.ts +2 -0
  62. package/es/panel-component/panel-rawitem/index.d.ts.map +1 -1
  63. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +2 -0
  64. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -1
  65. package/es/panel-component/panel-rawitem/panel-rawitem.mjs +12 -4
  66. package/es/panel-component/panel-tab-page/index.d.ts +2 -0
  67. package/es/panel-component/panel-tab-page/index.d.ts.map +1 -1
  68. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +2 -0
  69. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts.map +1 -1
  70. package/es/panel-component/panel-tab-page/panel-tab-page.mjs +16 -2
  71. package/es/panel-component/scroll-container/index.d.ts +2 -0
  72. package/es/panel-component/scroll-container/index.d.ts.map +1 -1
  73. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +2 -0
  74. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
  75. package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +22 -12
  76. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +2 -0
  77. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -1
  78. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +16 -2
  79. package/es/panel-component/single-data-container/index.d.ts +2 -0
  80. package/es/panel-component/single-data-container/index.d.ts.map +1 -1
  81. package/es/panel-component/single-data-container/single-data-container.d.ts +2 -0
  82. package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
  83. package/es/panel-component/single-data-container/single-data-container.mjs +18 -3
  84. package/es/panel-component/teleport-placeholder/index.d.ts +2 -0
  85. package/es/panel-component/teleport-placeholder/index.d.ts.map +1 -1
  86. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +2 -0
  87. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts.map +1 -1
  88. package/es/panel-component/teleport-placeholder/teleport-placeholder.mjs +10 -3
  89. package/es/use/use-semantic-node/use-semantic-node.d.ts +2 -2
  90. package/es/use/use-semantic-node/use-semantic-node.d.ts.map +1 -1
  91. package/es/use/use-semantic-node/use-semantic-node.mjs +12 -2
  92. package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +8 -3
  93. package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.cjs +16 -5
  94. package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
  95. package/lib/panel-component/grid-container/grid-container.cjs +12 -2
  96. package/lib/panel-component/multi-data-container/multi-data-container.cjs +16 -3
  97. package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.cjs +19 -4
  98. package/lib/panel-component/nav-pos/nav-pos.cjs +18 -3
  99. package/lib/panel-component/panel-container/panel-container.cjs +23 -5
  100. package/lib/panel-component/panel-container-image/panel-container-image.cjs +19 -4
  101. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +16 -4
  102. package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.cjs +12 -3
  103. package/lib/panel-component/panel-field/panel-field.cjs +14 -5
  104. package/lib/panel-component/panel-item-render/panel-item-render.cjs +10 -2
  105. package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +12 -4
  106. package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +16 -2
  107. package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +22 -12
  108. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +16 -2
  109. package/lib/panel-component/single-data-container/single-data-container.cjs +18 -3
  110. package/lib/panel-component/teleport-placeholder/teleport-placeholder.cjs +10 -3
  111. package/lib/use/use-semantic-node/use-semantic-node.cjs +12 -2
  112. package/package.json +6 -6
  113. package/src/control/panel/view-layout-panel/view-layout-panel.tsx +8 -2
  114. package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.scss +2 -0
  115. package/src/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.tsx +19 -6
  116. package/src/panel-component/grid-container/grid-container.tsx +8 -2
  117. package/src/panel-component/multi-data-container/multi-data-container.tsx +13 -4
  118. package/src/panel-component/multi-data-container-raw/multi-data-container-raw.tsx +12 -4
  119. package/src/panel-component/nav-pos/nav-pos.tsx +16 -3
  120. package/src/panel-component/panel-container/panel-container.tsx +20 -6
  121. package/src/panel-component/panel-container-image/panel-container-image.tsx +13 -5
  122. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +11 -4
  123. package/src/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.tsx +10 -3
  124. package/src/panel-component/panel-field/panel-field.tsx +26 -5
  125. package/src/panel-component/panel-item-render/panel-item-render.tsx +5 -3
  126. package/src/panel-component/panel-rawitem/panel-rawitem.tsx +25 -4
  127. package/src/panel-component/panel-tab-page/panel-tab-page.tsx +18 -3
  128. package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +37 -9
  129. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +7 -3
  130. package/src/panel-component/single-data-container/single-data-container.tsx +12 -4
  131. package/src/panel-component/teleport-placeholder/teleport-placeholder.tsx +5 -4
  132. package/src/use/use-semantic-node/use-semantic-node.ts +20 -6
  133. package/src/view/common/view.scss +3 -2
@@ -3,6 +3,7 @@ import '../../../use/index.mjs';
3
3
  import { ScrollContainerController } from './scroll-container.controller.mjs';
4
4
  import './scroll-container.css';
5
5
  import { useNamespace } from '../../../use/namespace/namespace.mjs';
6
+ import { useSemanticNode } from '../../../use/use-semantic-node/use-semantic-node.mjs';
6
7
 
7
8
  "use strict";
8
9
  const ScrollContainer = /* @__PURE__ */ defineComponent({
@@ -28,13 +29,19 @@ const ScrollContainer = /* @__PURE__ */ defineComponent({
28
29
  const {
29
30
  id
30
31
  } = props.modelData;
32
+ const {
33
+ semanticClass,
34
+ semanticStyle
35
+ } = useSemanticNode(props.controller);
31
36
  const classArr = computed(() => {
32
37
  const result = [ns.b(), ns.m(id), ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
33
38
  return result;
34
39
  });
35
40
  return {
36
41
  ns,
37
- classArr
42
+ classArr,
43
+ semanticClass,
44
+ semanticStyle
38
45
  };
39
46
  },
40
47
  render() {
@@ -96,24 +103,27 @@ const ScrollContainer = /* @__PURE__ */ defineComponent({
96
103
  }
97
104
  }
98
105
  return withDirectives(createVNode("div", {
99
- "class": this.classArr,
106
+ "class": [this.classArr, this.semanticClass("root")],
107
+ "style": this.semanticStyle("root"),
100
108
  "element-loading-text": this.controller.state.loadingText
101
109
  }, [createVNode("div", {
102
- "class": [this.ns.e("header")],
103
- "style": slotStylle.top
110
+ "class": [this.ns.e("header"), this.semanticClass("header")],
111
+ "style": [slotStylle.top, this.semanticStyle("header")]
104
112
  }, [top]), createVNode("div", {
105
- "class": [this.ns.b("content")]
113
+ "class": [this.ns.b("content"), this.semanticClass("content")],
114
+ "style": this.semanticStyle("content")
106
115
  }, [createVNode("div", {
107
- "class": this.ns.be("content", "left"),
108
- "style": slotStylle.left
116
+ "class": [this.ns.be("content", "left"), this.semanticClass("left")],
117
+ "style": [slotStylle.left, this.semanticStyle("left")]
109
118
  }, [left]), createVNode("div", {
110
- "class": this.ns.be("content", "center")
119
+ "class": [this.ns.be("content", "center"), this.semanticClass("center")],
120
+ "style": this.semanticStyle("center")
111
121
  }, [center]), createVNode("div", {
112
- "class": this.ns.be("content", "right"),
113
- "style": slotStylle.right
122
+ "class": [this.ns.be("content", "right"), this.semanticClass("right")],
123
+ "style": [slotStylle.right, this.semanticStyle("right")]
114
124
  }, [right])]), createVNode("div", {
115
- "class": [this.ns.e("footer")],
116
- "style": slotStylle.bottom
125
+ "class": [this.ns.e("footer"), this.semanticClass("footer")],
126
+ "style": [slotStylle.bottom, this.semanticStyle("footer")]
117
127
  }, [bottom])]), [[resolveDirective("loading"), this.controller.state.loading]]);
118
128
  }
119
129
  });
@@ -25,6 +25,8 @@ export declare const ScrollContainerItem: import("vue").DefineComponent<import("
25
25
  }>, {
26
26
  ns: import("@ibiz-template/core").Namespace;
27
27
  classArr: import("vue").ComputedRef<(string | false)[]>;
28
+ semanticClass: import("../../../use").UseSemanticClassReturn;
29
+ semanticStyle: import("../../../use").UseSemanticStyleReturn;
28
30
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
31
  /**
30
32
  * @description 面板滚动容器项模型数据
@@ -1 +1 @@
1
- {"version":3,"file":"scroll-container-item.d.ts","sourceRoot":"","sources":["../../../../src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAoDL,CAAC"}
1
+ {"version":3,"file":"scroll-container-item.d.ts","sourceRoot":"","sources":["../../../../src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAA6B,QAAQ,EAAS,MAAM,KAAK,CAAC;AAEjE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAwDL,CAAC"}
@@ -3,6 +3,7 @@ import '../../../use/index.mjs';
3
3
  import { ScrollContainerItemController } from './scroll-container-item.controller.mjs';
4
4
  import './scroll-container-item.css';
5
5
  import { useNamespace } from '../../../use/namespace/namespace.mjs';
6
+ import { useSemanticNode } from '../../../use/use-semantic-node/use-semantic-node.mjs';
6
7
 
7
8
  "use strict";
8
9
  function _isSlot(s) {
@@ -31,13 +32,19 @@ const ScrollContainerItem = /* @__PURE__ */ defineComponent({
31
32
  const {
32
33
  id
33
34
  } = props.modelData;
35
+ const {
36
+ semanticClass,
37
+ semanticStyle
38
+ } = useSemanticNode(props.controller);
34
39
  const classArr = computed(() => {
35
40
  const result = [ns.b(), ns.m(id), ns.is("hidden", !props.controller.state.visible)];
36
41
  return result;
37
42
  });
38
43
  return {
39
44
  ns,
40
- classArr
45
+ classArr,
46
+ semanticClass,
47
+ semanticStyle
41
48
  };
42
49
  },
43
50
  render() {
@@ -45,7 +52,8 @@ const ScrollContainerItem = /* @__PURE__ */ defineComponent({
45
52
  let _slot;
46
53
  const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
47
54
  return withDirectives(createVNode(resolveComponent("iBizRow"), {
48
- "class": this.classArr,
55
+ "class": [this.classArr, this.semanticClass("root")],
56
+ "style": this.semanticStyle("root"),
49
57
  "layout": {
50
58
  layout: "FLEX"
51
59
  },
@@ -57,6 +65,12 @@ const ScrollContainerItem = /* @__PURE__ */ defineComponent({
57
65
  }
58
66
  props.modelData.layoutPos.layout = "FLEX";
59
67
  return createVNode(resolveComponent("iBizCol"), {
68
+ "class": this.semanticClass("item", {
69
+ props
70
+ }),
71
+ "style": this.semanticStyle("item", {
72
+ props
73
+ }),
60
74
  "layoutPos": props.modelData.layoutPos,
61
75
  "state": props.controller.state
62
76
  }, _isSlot(slot) ? slot : {
@@ -23,6 +23,8 @@ export declare const IBizSingleDataContainer: import("../../util").TypeWithInsta
23
23
  } | undefined) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
24
  [key: string]: any;
25
25
  }> | null;
26
+ semanticClass: import("../..").UseSemanticClassReturn;
27
+ semanticStyle: import("../..").UseSemanticStyleReturn;
26
28
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
29
  modelData: {
28
30
  type: import("vue").PropType<import("@ibiz/model-core").IPanelContainer>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGASnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAEnF,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,CAAC;AAEnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kGASnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -36,6 +36,8 @@ export declare const SingleDataContainer: import("vue").DefineComponent<import("
36
36
  [key: string]: IPanelItemController;
37
37
  };
38
38
  }) => VNode | null;
39
+ semanticClass: import("../../use").UseSemanticClassReturn;
40
+ semanticStyle: import("../../use").UseSemanticStyleReturn;
39
41
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
40
42
  /**
41
43
  * @description 单项数据容器模型
@@ -1 +1 @@
1
- {"version":3,"file":"single-data-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EACN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;iCAoBY,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACE,KAAK,GAAG,IAAI;;IAtCnB;;OAEG;;;;;IAKH;;OAEG;;;;;iGA+EL,CAAC"}
1
+ {"version":3,"file":"single-data-container.d.ts","sourceRoot":"","sources":["../../../src/panel-component/single-data-container/single-data-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAIL,QAAQ,EAER,KAAK,EACN,MAAM,KAAK,CAAC;AAEb,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,8BAA8B,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;iCAqBY,UAAU,YACX;QACR,SAAS,EAAE;YACT,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,CAAC;SACnC,CAAC;QACF,UAAU,EAAE;YACV,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAC;SACrC,CAAC;KACH,KACE,KAAK,GAAG,IAAI;;;;IAvCnB;;OAEG;;;;;IAKH;;OAEG;;;;;iGAuFL,CAAC"}
@@ -3,6 +3,7 @@ import '../../use/index.mjs';
3
3
  import { SingleDataContainerController } from './single-data-container.controller.mjs';
4
4
  import './single-data-container.css';
5
5
  import { useNamespace } from '../../use/namespace/namespace.mjs';
6
+ import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
6
7
 
7
8
  "use strict";
8
9
  function _isSlot(s) {
@@ -31,6 +32,10 @@ const SingleDataContainer = /* @__PURE__ */ defineComponent({
31
32
  const {
32
33
  id
33
34
  } = props.modelData;
35
+ const {
36
+ semanticClass,
37
+ semanticStyle
38
+ } = useSemanticNode(props.controller);
34
39
  const keys = Object.keys(props.controller.panelItems);
35
40
  keys.forEach((key) => {
36
41
  const panelItem = props.controller.panelItems[key];
@@ -44,7 +49,9 @@ const SingleDataContainer = /* @__PURE__ */ defineComponent({
44
49
  return {
45
50
  ns,
46
51
  classArr,
47
- renderPanelItem
52
+ renderPanelItem,
53
+ semanticClass,
54
+ semanticStyle
48
55
  };
49
56
  },
50
57
  render() {
@@ -53,7 +60,8 @@ const SingleDataContainer = /* @__PURE__ */ defineComponent({
53
60
  content = this.$slots.default();
54
61
  } else {
55
62
  content = createVNode(resolveComponent("iBizRow"), {
56
- "class": this.ns.b("content"),
63
+ "class": [this.ns.b("content"), this.semanticClass("content")],
64
+ "style": this.semanticStyle("content"),
57
65
  "layout": this.modelData.layout
58
66
  }, {
59
67
  default: () => {
@@ -62,6 +70,12 @@ const SingleDataContainer = /* @__PURE__ */ defineComponent({
62
70
  let _slot;
63
71
  const childController = this.controller.panelItems[panelItem.id];
64
72
  return createVNode(resolveComponent("iBizCol"), {
73
+ "class": this.semanticClass("item", {
74
+ item: childController
75
+ }),
76
+ "style": this.semanticStyle("item", {
77
+ item: childController
78
+ }),
65
79
  "layoutPos": panelItem.layoutPos,
66
80
  "state": childController.state
67
81
  }, _isSlot(_slot = this.renderPanelItem(panelItem, {
@@ -75,7 +89,8 @@ const SingleDataContainer = /* @__PURE__ */ defineComponent({
75
89
  });
76
90
  }
77
91
  return withDirectives(createVNode("div", {
78
- "class": this.classArr,
92
+ "class": [this.classArr, this.semanticClass("root")],
93
+ "style": this.semanticStyle("root"),
79
94
  "element-loading-text": this.controller.state.loadingText
80
95
  }, [content]), [[resolveDirective("loading"), this.controller.state.loading]]);
81
96
  }
@@ -13,6 +13,8 @@ export declare const IBizTeleportPlaceholder: import("../../util").TypeWithInsta
13
13
  ns: import("@ibiz-template/core").Namespace;
14
14
  classArr: import("vue").ComputedRef<(string | false)[]>;
15
15
  tempStyle: import("vue").Ref<string, string>;
16
+ semanticClass: import("../..").UseSemanticClassReturn;
17
+ semanticStyle: import("../..").UseSemanticStyleReturn;
16
18
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
19
  modelData: {
18
20
  type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;kGASnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE9E,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;kGASnC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -27,6 +27,8 @@ export declare const TeleportPlaceholder: import("vue").DefineComponent<import("
27
27
  ns: import("@ibiz-template/core").Namespace;
28
28
  classArr: import("vue").ComputedRef<(string | false)[]>;
29
29
  tempStyle: import("vue").Ref<string, string>;
30
+ semanticClass: import("../../use").UseSemanticClassReturn;
31
+ semanticStyle: import("../../use").UseSemanticStyleReturn;
30
32
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
33
  /**
32
34
  * @description 传送占位模型
@@ -1 +1 @@
1
- {"version":3,"file":"teleport-placeholder.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/teleport-placeholder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAA6B,QAAQ,EAAO,MAAM,KAAK,CAAC;AAE/D,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAElF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAuCL,CAAC"}
1
+ {"version":3,"file":"teleport-placeholder.d.ts","sourceRoot":"","sources":["../../../src/panel-component/teleport-placeholder/teleport-placeholder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAA6B,QAAQ,EAAO,MAAM,KAAK,CAAC;AAE/D,OAAO,6BAA6B,CAAC;AACrC,OAAO,EAAE,6BAA6B,EAAE,MAAM,mCAAmC,CAAC;AAElF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;IAG5B;;OAEG;;;;;IAKH;;OAEG;;;;;;;;;;;;IATH;;OAEG;;;;;IAKH;;OAEG;;;;;iGAwCL,CAAC"}
@@ -2,6 +2,7 @@ import { defineComponent, createVNode, ref, computed } from 'vue';
2
2
  import '../../use/index.mjs';
3
3
  import './teleport-placeholder.css';
4
4
  import { useNamespace } from '../../use/namespace/namespace.mjs';
5
+ import { useSemanticNode } from '../../use/use-semantic-node/use-semantic-node.mjs';
5
6
 
6
7
  "use strict";
7
8
  const TeleportPlaceholder = /* @__PURE__ */ defineComponent({
@@ -25,6 +26,10 @@ const TeleportPlaceholder = /* @__PURE__ */ defineComponent({
25
26
  setup(props) {
26
27
  const ns = useNamespace("teleport-placeholder");
27
28
  const tempStyle = ref("");
29
+ const {
30
+ semanticClass,
31
+ semanticStyle
32
+ } = useSemanticNode(props.controller);
28
33
  const {
29
34
  rawItem
30
35
  } = props.modelData;
@@ -42,7 +47,9 @@ const TeleportPlaceholder = /* @__PURE__ */ defineComponent({
42
47
  return {
43
48
  ns,
44
49
  classArr,
45
- tempStyle
50
+ tempStyle,
51
+ semanticClass,
52
+ semanticStyle
46
53
  };
47
54
  },
48
55
  render() {
@@ -51,8 +58,8 @@ const TeleportPlaceholder = /* @__PURE__ */ defineComponent({
51
58
  }
52
59
  return createVNode("div", {
53
60
  "id": this.controller.state.teleportTag,
54
- "class": this.classArr,
55
- "style": this.tempStyle
61
+ "class": [this.classArr, this.semanticClass("content")],
62
+ "style": [this.tempStyle, this.semanticStyle("content")]
56
63
  }, null);
57
64
  }
58
65
  });
@@ -1,4 +1,4 @@
1
- import { ControlController, PanelItemController } from '@ibiz-template/runtime';
1
+ import { EditorController, ControlController, PanelItemController } from '@ibiz-template/runtime';
2
2
  /** 语义化节点class */
3
3
  export type UseSemanticClassReturn = (key: string, ...args: IData[]) => string | undefined;
4
4
  /** 语义化节点style */
@@ -8,7 +8,7 @@ export type UseSemanticStyleReturn = (key: string, ...args: IData[]) => IData |
8
8
  * @param controller 控制器
9
9
  * @returns
10
10
  */
11
- export declare function useSemanticNode(controller: ControlController | PanelItemController): {
11
+ export declare function useSemanticNode(controller: ControlController | PanelItemController | EditorController): {
12
12
  semanticClass: UseSemanticClassReturn;
13
13
  semanticStyle: UseSemanticStyleReturn;
14
14
  };
@@ -1 +1 @@
1
- {"version":3,"file":"use-semantic-node.d.ts","sourceRoot":"","sources":["../../../src/use/use-semantic-node/use-semantic-node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EAGpB,MAAM,wBAAwB,CAAC;AAIhC,iBAAiB;AACjB,MAAM,MAAM,sBAAsB,GAAG,CACnC,GAAG,EAAE,MAAM,EACX,GAAG,IAAI,EAAE,KAAK,EAAE,KACb,MAAM,GAAG,SAAS,CAAC;AAExB,iBAAiB;AACjB,MAAM,MAAM,sBAAsB,GAAG,CACnC,GAAG,EAAE,MAAM,EACX,GAAG,IAAI,EAAE,KAAK,EAAE,KACb,KAAK,GAAG,SAAS,CAAC;AAEvB;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,iBAAiB,GAAG,mBAAmB,GAClD;IACD,aAAa,EAAE,sBAAsB,CAAC;IACtC,aAAa,EAAE,sBAAsB,CAAC;CACvC,CA4GA"}
1
+ {"version":3,"file":"use-semantic-node.d.ts","sourceRoot":"","sources":["../../../src/use/use-semantic-node/use-semantic-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EAEpB,MAAM,wBAAwB,CAAC;AAIhC,iBAAiB;AACjB,MAAM,MAAM,sBAAsB,GAAG,CACnC,GAAG,EAAE,MAAM,EACX,GAAG,IAAI,EAAE,KAAK,EAAE,KACb,MAAM,GAAG,SAAS,CAAC;AAExB,iBAAiB;AACjB,MAAM,MAAM,sBAAsB,GAAG,CACnC,GAAG,EAAE,MAAM,EACX,GAAG,IAAI,EAAE,KAAK,EAAE,KACb,KAAK,GAAG,SAAS,CAAC;AAEvB;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,UAAU,EAAE,iBAAiB,GAAG,mBAAmB,GAAG,gBAAgB,GACrE;IACD,aAAa,EAAE,sBAAsB,CAAC;IACtC,aAAa,EAAE,sBAAsB,CAAC;CACvC,CAyHA"}
@@ -4,16 +4,22 @@ import { useAttrs } from 'vue';
4
4
  "use strict";
5
5
  function useSemanticNode(controller) {
6
6
  var _a, _b;
7
+ const controlType = controller.model.controlType;
8
+ const editorType = controller.model.editorType;
7
9
  let classItems = {};
8
10
  const classNameAttr = (_a = controller.model.controlAttributes) == null ? void 0 : _a.find(
9
11
  (item) => item.attrName === PredefinedAttributes.CLASSNAMES
10
12
  );
11
13
  if (classNameAttr && classNameAttr.attrValue) {
12
- const { controlType } = controller.model;
13
14
  if (controlType) {
14
15
  classItems = ScriptFactory.execSingleLine(classNameAttr.attrValue, {
15
16
  ...controller.getEventArgs()
16
17
  });
18
+ } else if (editorType) {
19
+ const editor = controller;
20
+ classItems = ScriptFactory.execSingleLine(classNameAttr.attrValue, {
21
+ ...editor.ctrl.getEventArgs()
22
+ });
17
23
  } else {
18
24
  const panelItem = controller;
19
25
  classItems = ScriptFactory.execSingleLine(classNameAttr.attrValue, {
@@ -44,11 +50,15 @@ function useSemanticNode(controller) {
44
50
  (item) => item.attrName === PredefinedAttributes.STYLES
45
51
  );
46
52
  if (styleAttr && styleAttr.attrValue) {
47
- const { controlType } = controller.model;
48
53
  if (controlType) {
49
54
  styleItems = ScriptFactory.execSingleLine(styleAttr.attrValue, {
50
55
  ...controller.getEventArgs()
51
56
  });
57
+ } else if (editorType) {
58
+ const editor = controller;
59
+ styleItems = ScriptFactory.execSingleLine(styleAttr.attrValue, {
60
+ ...editor.ctrl.getEventArgs()
61
+ });
52
62
  } else {
53
63
  const panelItem = controller;
54
64
  styleItems = ScriptFactory.execSingleLine(styleAttr.attrValue, {
@@ -117,14 +117,19 @@ const ViewLayoutPanelControl = /* @__PURE__ */ vue.defineComponent({
117
117
  if (panelItem.itemType === "CTRLPOS" && slots[panelItem.id]) {
118
118
  const panelItemC2 = panelItems[panelItem.id];
119
119
  if (panelItemC2.parent && runtime.isSimpleDataContainer(panelItemC2.parent.model)) {
120
- children = () => {
120
+ children = (event = {}) => {
121
121
  return slots[panelItem.id]({
122
122
  isSimple: true,
123
- data: panelItemC2.data
123
+ data: panelItemC2.data,
124
+ class: event.class,
125
+ style: event.style
124
126
  });
125
127
  };
126
128
  } else {
127
- children = () => slots[panelItem.id]();
129
+ children = (event = {}) => slots[panelItem.id]({
130
+ class: event.class,
131
+ style: event.style
132
+ });
128
133
  }
129
134
  } else if (panelItem.itemType === "TABPANEL" && ((_a = panelItem.panelTabPages) == null ? void 0 : _a.length)) {
130
135
  children = () => {
@@ -5,6 +5,7 @@ var vueRouter = require('vue-router');
5
5
  require('../../use/index.cjs');
6
6
  require('./auth-wxmp-qrcode.css');
7
7
  var namespace = require('../../use/namespace/namespace.cjs');
8
+ var useSemanticNode = require('../../use/use-semantic-node/use-semantic-node.cjs');
8
9
 
9
10
  "use strict";
10
11
  const AuthWxmpQrcode = /* @__PURE__ */ vue.defineComponent({
@@ -32,6 +33,10 @@ const AuthWxmpQrcode = /* @__PURE__ */ vue.defineComponent({
32
33
  } = props.controller;
33
34
  const route = vueRouter.useRoute();
34
35
  props.controller.setRouter(route);
36
+ const {
37
+ semanticClass,
38
+ semanticStyle
39
+ } = useSemanticNode.useSemanticNode(props.controller);
35
40
  const loadQrcode = async () => {
36
41
  await props.controller.loadQrcode();
37
42
  };
@@ -48,27 +53,33 @@ const AuthWxmpQrcode = /* @__PURE__ */ vue.defineComponent({
48
53
  });
49
54
  return {
50
55
  ns,
51
- loadQrcode
56
+ loadQrcode,
57
+ semanticClass,
58
+ semanticStyle
52
59
  };
53
60
  },
54
61
  render() {
55
62
  var _a, _b;
56
63
  return vue.createVNode("div", {
57
- "class": this.ns.b()
64
+ "class": [this.ns.b(), this.semanticClass("root")],
65
+ "style": this.semanticStyle("root")
58
66
  }, [vue.createVNode("div", {
59
67
  "class": this.ns.e("content")
60
68
  }, [this.controller.state.qrcode && vue.createVNode("img", {
61
- "class": this.ns.e("qrcode"),
69
+ "class": [this.ns.e("qrcode"), this.semanticClass("content")],
70
+ "style": this.semanticStyle("content"),
62
71
  "src": (_a = this.controller.state.qrcode) == null ? void 0 : _a.url
63
72
  }, null), !((_b = this.controller.state.qrcode) == null ? void 0 : _b.expirein) && vue.createVNode("div", {
64
- "class": this.ns.e("mask")
73
+ "class": [this.ns.e("mask"), this.semanticClass("mask")],
74
+ "style": this.semanticStyle("mask")
65
75
  }, [vue.createVNode("ion-icon", {
66
76
  "title": ibiz.i18n.t("vue3Util.panelComponent.refresh"),
67
77
  "name": "reload-outline",
68
78
  "onClick": this.loadQrcode,
69
79
  "class": this.ns.em("mask", "icon")
70
80
  }, null)])]), vue.createVNode("div", {
71
- "class": this.ns.e("caption")
81
+ "class": [this.ns.e("caption"), this.semanticClass("caption")],
82
+ "style": this.semanticStyle("caption")
72
83
  }, [this.controller.state.tips])]);
73
84
  }
74
85
  });
@@ -1 +1 @@
1
- .ibiz-auth-wxmp-qrcode{--ibiz-auth-wxmp-qrcode-caption-font-size:var(--ibiz-font-size-small);--ibiz-auth-wxmp-qrcode-bg-color:rgba(255, 255, 255, 0.9);--ibiz-auth-wxmp-qrcode-mask-color:var(--ibiz-color-primary);--ibiz-auth-wxmp-qrcode-mask-icon-font-size:var(--ibiz-font-size-header-1);--ibiz-auth-wxmp-qrcode-mask-icon-hover-color:var(--ibiz-color-primary-hover);width:100%;height:100%}.ibiz-auth-wxmp-qrcode__content{position:relative;width:100%;height:100%}.ibiz-auth-wxmp-qrcode__qrcode{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.ibiz-auth-wxmp-qrcode__caption{font-size:var(--ibiz-auth-wxmp-qrcode-caption-font-size);text-align:center}.ibiz-auth-wxmp-qrcode__mask{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--ibiz-auth-wxmp-qrcode-mask-color);background-color:var(--ibiz-auth-wxmp-qrcode-bg-color)}.ibiz-auth-wxmp-qrcode__mask--icon{font-size:var(--ibiz-auth-wxmp-qrcode-mask-icon-font-size);cursor:pointer}.ibiz-auth-wxmp-qrcode__mask--icon:hover{color:var(--ibiz-auth-wxmp-qrcode-mask-icon-hover-color)}
1
+ .ibiz-auth-wxmp-qrcode{--ibiz-auth-wxmp-qrcode-caption-font-size:var(--ibiz-font-size-small);--ibiz-auth-wxmp-qrcode-bg-color:rgba(255, 255, 255, 0.9);--ibiz-auth-wxmp-qrcode-mask-color:var(--ibiz-color-primary);--ibiz-auth-wxmp-qrcode-mask-icon-font-size:var(--ibiz-font-size-header-1);--ibiz-auth-wxmp-qrcode-mask-icon-hover-color:var(--ibiz-color-primary-hover);display:flex;flex-direction:column;width:100%;height:100%}.ibiz-auth-wxmp-qrcode__content{position:relative;width:100%;height:100%}.ibiz-auth-wxmp-qrcode__qrcode{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.ibiz-auth-wxmp-qrcode__caption{font-size:var(--ibiz-auth-wxmp-qrcode-caption-font-size);text-align:center}.ibiz-auth-wxmp-qrcode__mask{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--ibiz-auth-wxmp-qrcode-mask-color);background-color:var(--ibiz-auth-wxmp-qrcode-bg-color)}.ibiz-auth-wxmp-qrcode__mask--icon{font-size:var(--ibiz-auth-wxmp-qrcode-mask-icon-font-size);cursor:pointer}.ibiz-auth-wxmp-qrcode__mask--icon:hover{color:var(--ibiz-auth-wxmp-qrcode-mask-icon-hover-color)}
@@ -5,6 +5,7 @@ require('../../use/index.cjs');
5
5
  var gridContainer_controller = require('./grid-container.controller.cjs');
6
6
  require('./grid-container.css');
7
7
  var namespace = require('../../use/namespace/namespace.cjs');
8
+ var useSemanticNode = require('../../use/use-semantic-node/use-semantic-node.cjs');
8
9
 
9
10
  "use strict";
10
11
  function _isSlot(s) {
@@ -33,6 +34,10 @@ const GridContainer = /* @__PURE__ */ vue.defineComponent({
33
34
  const {
34
35
  id
35
36
  } = props.modelData;
37
+ const {
38
+ semanticClass,
39
+ semanticStyle
40
+ } = useSemanticNode.useSemanticNode(props.controller);
36
41
  const classArr = vue.computed(() => {
37
42
  let result = [ns.b(), ns.m(id)];
38
43
  result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
@@ -64,7 +69,9 @@ const GridContainer = /* @__PURE__ */ vue.defineComponent({
64
69
  layoutModel,
65
70
  convertLayoutPos,
66
71
  adaptGrow,
67
- adaptCols
72
+ adaptCols,
73
+ semanticClass,
74
+ semanticStyle
68
75
  };
69
76
  },
70
77
  render() {
@@ -92,7 +99,8 @@ const GridContainer = /* @__PURE__ */ vue.defineComponent({
92
99
  this.adaptGrow = adaptGrow;
93
100
  }
94
101
  return vue.withDirectives(vue.createVNode(vue.resolveComponent("iBizRow"), {
95
- "class": this.classArr,
102
+ "class": [this.classArr, this.semanticClass("root")],
103
+ "style": this.semanticStyle("root"),
96
104
  "layout": this.layoutModel,
97
105
  "element-loading-text": this.controller.state.loadingText
98
106
  }, _isSlot(_slot = defaultSlots.map((slot) => {
@@ -101,6 +109,8 @@ const GridContainer = /* @__PURE__ */ vue.defineComponent({
101
109
  return slot;
102
110
  }
103
111
  return vue.createVNode(vue.resolveComponent("iBizCol"), {
112
+ "class": this.semanticClass("item"),
113
+ "style": this.semanticStyle("item"),
104
114
  "layoutPos": this.convertLayoutPos(props.modelData.layoutPos, this.adaptGrow),
105
115
  "state": props.controller.state
106
116
  }, _isSlot(slot) ? slot : {
@@ -5,6 +5,7 @@ require('../../use/index.cjs');
5
5
  var multiDataContainer_controller = require('./multi-data-container.controller.cjs');
6
6
  require('./multi-data-container.css');
7
7
  var namespace = require('../../use/namespace/namespace.cjs');
8
+ var useSemanticNode = require('../../use/use-semantic-node/use-semantic-node.cjs');
8
9
 
9
10
  "use strict";
10
11
  function _isSlot(s) {
@@ -33,6 +34,10 @@ const MultiDataContainer = /* @__PURE__ */ vue.defineComponent({
33
34
  const {
34
35
  id
35
36
  } = props.modelData;
37
+ const {
38
+ semanticClass,
39
+ semanticStyle
40
+ } = useSemanticNode.useSemanticNode(props.controller);
36
41
  vue.watch(() => props.controller.state.items, () => {
37
42
  props.controller.dataItems.forEach((item) => {
38
43
  item.state = vue.reactive(item.state);
@@ -53,7 +58,9 @@ const MultiDataContainer = /* @__PURE__ */ vue.defineComponent({
53
58
  return {
54
59
  ns,
55
60
  classArr,
56
- renderPanelItem
61
+ renderPanelItem,
62
+ semanticClass,
63
+ semanticStyle
57
64
  };
58
65
  },
59
66
  render() {
@@ -64,7 +71,12 @@ const MultiDataContainer = /* @__PURE__ */ vue.defineComponent({
64
71
  content = this.controller.state.items.map((_item, index) => {
65
72
  const itemController = this.controller.dataItems[index];
66
73
  return vue.createVNode(vue.resolveComponent("iBizRow"), {
67
- "class": this.ns.b("content"),
74
+ "class": [this.ns.b("content"), this.semanticClass("item", {
75
+ data: _item
76
+ })],
77
+ "style": this.semanticStyle("item", {
78
+ data: _item
79
+ }),
68
80
  "layout": this.modelData.layout
69
81
  }, {
70
82
  default: () => {
@@ -87,7 +99,8 @@ const MultiDataContainer = /* @__PURE__ */ vue.defineComponent({
87
99
  });
88
100
  }
89
101
  return vue.withDirectives(vue.createVNode("div", {
90
- "class": this.classArr,
102
+ "class": [this.classArr, this.semanticClass("root")],
103
+ "style": this.semanticStyle("root"),
91
104
  "element-loading-text": this.controller.state.loadingText
92
105
  }, [content]), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
93
106
  }
@@ -5,6 +5,7 @@ require('../../use/index.cjs');
5
5
  var multiDataContainerRaw_controller = require('./multi-data-container-raw.controller.cjs');
6
6
  require('./multi-data-container-raw.css');
7
7
  var namespace = require('../../use/namespace/namespace.cjs');
8
+ var useSemanticNode = require('../../use/use-semantic-node/use-semantic-node.cjs');
8
9
 
9
10
  "use strict";
10
11
  function _isSlot(s) {
@@ -33,6 +34,10 @@ const MultiDataContainerRaw = /* @__PURE__ */ vue.defineComponent({
33
34
  const {
34
35
  id
35
36
  } = props.modelData;
37
+ const {
38
+ semanticClass,
39
+ semanticStyle
40
+ } = useSemanticNode.useSemanticNode(props.controller);
36
41
  vue.watch(() => props.controller.state.items, () => {
37
42
  const keys = Object.keys(props.controller.panelItems);
38
43
  keys.forEach((key) => {
@@ -51,7 +56,9 @@ const MultiDataContainerRaw = /* @__PURE__ */ vue.defineComponent({
51
56
  return {
52
57
  ns,
53
58
  classArr,
54
- renderPanelItem
59
+ renderPanelItem,
60
+ semanticClass,
61
+ semanticStyle
55
62
  };
56
63
  },
57
64
  render() {
@@ -60,7 +67,8 @@ const MultiDataContainerRaw = /* @__PURE__ */ vue.defineComponent({
60
67
  content = this.$slots.default();
61
68
  } else {
62
69
  content = vue.createVNode(vue.resolveComponent("iBizRow"), {
63
- "class": this.ns.b("content"),
70
+ "class": [this.ns.b("content"), this.semanticClass("content")],
71
+ "style": this.semanticStyle("content"),
64
72
  "layout": this.modelData.layout
65
73
  }, {
66
74
  default: () => {
@@ -70,7 +78,13 @@ const MultiDataContainerRaw = /* @__PURE__ */ vue.defineComponent({
70
78
  const childController = this.controller.panelItems[panelItem.id];
71
79
  return vue.createVNode(vue.resolveComponent("iBizCol"), {
72
80
  "layoutPos": panelItem.layoutPos,
73
- "state": childController.state
81
+ "state": childController.state,
82
+ "class": this.semanticClass("item", {
83
+ item: childController
84
+ }),
85
+ "style": this.semanticStyle("item", {
86
+ item: childController
87
+ })
74
88
  }, _isSlot(_slot = this.renderPanelItem(panelItem, {
75
89
  providers: this.controller.providers,
76
90
  panelItems: this.controller.panelItems
@@ -82,7 +96,8 @@ const MultiDataContainerRaw = /* @__PURE__ */ vue.defineComponent({
82
96
  });
83
97
  }
84
98
  return vue.withDirectives(vue.createVNode("div", {
85
- "class": this.classArr,
99
+ "class": [this.classArr, this.semanticClass("root")],
100
+ "style": this.semanticStyle("root"),
86
101
  "element-loading-text": this.controller.state.loadingText
87
102
  }, [content]), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
88
103
  }