@ibiz-template/vue3-util 0.7.41-alpha.4 → 0.7.41-alpha.40

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 (371) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/common/badge/badge.css +1 -1
  4. package/es/common/badge/badge.d.ts +5 -5
  5. package/es/common/badge/badge.d.ts.map +1 -1
  6. package/es/common/badge/badge.mjs +1 -1
  7. package/es/common/code-list/code-list.d.ts +8 -8
  8. package/es/common/code-list/code-list.d.ts.map +1 -1
  9. package/es/common/code-list/code-list.mjs +1 -1
  10. package/es/common/control-base/control-base.css +1 -1
  11. package/es/common/control-base/control-base.d.ts +1 -0
  12. package/es/common/control-base/control-base.d.ts.map +1 -1
  13. package/es/common/control-base/control-base.mjs +39 -5
  14. package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +4 -4
  15. package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts.map +1 -1
  16. package/es/common/control-shell/control-shell.d.ts +7 -7
  17. package/es/common/control-shell/control-shell.d.ts.map +1 -1
  18. package/es/common/control-shell/control-shell.mjs +1 -1
  19. package/es/common/custom-render/custom-render.d.ts +4 -4
  20. package/es/common/custom-render/custom-render.d.ts.map +1 -1
  21. package/es/common/custom-render/custom-render.mjs +2 -2
  22. package/es/common/icon/icon.d.ts +4 -4
  23. package/es/common/icon/icon.d.ts.map +1 -1
  24. package/es/common/index.d.ts +1 -0
  25. package/es/common/index.d.ts.map +1 -1
  26. package/es/common/index.mjs +1 -0
  27. package/es/common/router-view/router-view.d.ts +7 -8
  28. package/es/common/router-view/router-view.d.ts.map +1 -1
  29. package/es/common/router-view/router-view.mjs +1 -1
  30. package/es/common/signature-pad/signature-pad.css +1 -0
  31. package/es/common/signature-pad/signature-pad.d.ts +19 -0
  32. package/es/common/signature-pad/signature-pad.d.ts.map +1 -0
  33. package/es/common/signature-pad/signature-pad.mjs +165 -0
  34. package/es/common/signature-pad/util/bezier.d.ts +58 -0
  35. package/es/common/signature-pad/util/bezier.d.ts.map +1 -0
  36. package/es/common/signature-pad/util/bezier.mjs +109 -0
  37. package/es/common/signature-pad/util/point.d.ts +55 -0
  38. package/es/common/signature-pad/util/point.d.ts.map +1 -0
  39. package/es/common/signature-pad/util/point.mjs +51 -0
  40. package/es/common/signature-pad/util/signature_pad.d.ts +593 -0
  41. package/es/common/signature-pad/util/signature_pad.d.ts.map +1 -0
  42. package/es/common/signature-pad/util/signature_pad.mjs +1018 -0
  43. package/es/common/view-shell/view-shell.d.ts +19 -12
  44. package/es/common/view-shell/view-shell.d.ts.map +1 -1
  45. package/es/common/view-shell/view-shell.mjs +43 -23
  46. package/es/control/panel/panel/index.d.ts +5 -5
  47. package/es/control/panel/panel/index.d.ts.map +1 -1
  48. package/es/control/panel/panel/panel.d.ts +5 -5
  49. package/es/control/panel/panel/panel.d.ts.map +1 -1
  50. package/es/control/panel/panel/panel.mjs +12 -1
  51. package/es/control/panel/view-layout-panel/index.d.ts +5 -5
  52. package/es/control/panel/view-layout-panel/index.d.ts.map +1 -1
  53. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +6 -6
  54. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
  55. package/es/control/panel/view-layout-panel/view-layout-panel.mjs +13 -2
  56. package/es/index.mjs +5 -5
  57. package/es/locale/en/index.d.ts +1 -0
  58. package/es/locale/en/index.d.ts.map +1 -1
  59. package/es/locale/en/index.mjs +2 -1
  60. package/es/locale/zh-CN/index.d.ts +1 -0
  61. package/es/locale/zh-CN/index.d.ts.map +1 -1
  62. package/es/locale/zh-CN/index.mjs +2 -1
  63. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
  64. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +4 -4
  65. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts.map +1 -1
  66. package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.mjs +1 -1
  67. package/es/panel-component/auth-wxmp-qrcode/index.d.ts +4 -4
  68. package/es/panel-component/auth-wxmp-qrcode/index.d.ts.map +1 -1
  69. package/es/panel-component/grid-container/grid-container.controller.d.ts +3 -3
  70. package/es/panel-component/grid-container/grid-container.controller.d.ts.map +1 -1
  71. package/es/panel-component/grid-container/grid-container.controller.mjs +2 -2
  72. package/es/panel-component/grid-container/grid-container.d.ts +6 -6
  73. package/es/panel-component/grid-container/grid-container.d.ts.map +1 -1
  74. package/es/panel-component/grid-container/grid-container.mjs +3 -3
  75. package/es/panel-component/grid-container/grid-container.state.d.ts +3 -3
  76. package/es/panel-component/grid-container/grid-container.state.d.ts.map +1 -1
  77. package/es/panel-component/grid-container/grid-container.state.mjs +2 -2
  78. package/es/panel-component/grid-container/index.d.ts +6 -6
  79. package/es/panel-component/grid-container/index.d.ts.map +1 -1
  80. package/es/panel-component/index.mjs +1 -2
  81. package/es/panel-component/multi-data-container/index.d.ts +4 -4
  82. package/es/panel-component/multi-data-container/index.d.ts.map +1 -1
  83. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +3 -3
  84. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -1
  85. package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +12 -5
  86. package/es/panel-component/multi-data-container/multi-data-container.d.ts +5 -5
  87. package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
  88. package/es/panel-component/multi-data-container/multi-data-container.mjs +3 -3
  89. package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +3 -3
  90. package/es/panel-component/multi-data-container/multi-data-container.state.d.ts.map +1 -1
  91. package/es/panel-component/multi-data-container/multi-data-container.state.mjs +2 -2
  92. package/es/panel-component/multi-data-container-raw/index.d.ts +4 -4
  93. package/es/panel-component/multi-data-container-raw/index.d.ts.map +1 -1
  94. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.d.ts +3 -3
  95. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.d.ts.map +1 -1
  96. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.mjs +2 -2
  97. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +5 -5
  98. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts.map +1 -1
  99. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.mjs +3 -3
  100. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.d.ts +3 -3
  101. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.d.ts.map +1 -1
  102. package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.mjs +2 -2
  103. package/es/panel-component/nav-pos/index.d.ts +5 -5
  104. package/es/panel-component/nav-pos/index.d.ts.map +1 -1
  105. package/es/panel-component/nav-pos/nav-pos.controller.d.ts +1 -1
  106. package/es/panel-component/nav-pos/nav-pos.d.ts +6 -6
  107. package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
  108. package/es/panel-component/nav-pos/nav-pos.mjs +2 -2
  109. package/es/panel-component/panel-container/index.d.ts +5 -6
  110. package/es/panel-component/panel-container/index.d.ts.map +1 -1
  111. package/es/panel-component/panel-container/index.mjs +1 -2
  112. package/es/panel-component/panel-container/panel-container.d.ts +5 -5
  113. package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
  114. package/es/panel-component/panel-container/panel-container.mjs +34 -8
  115. package/es/panel-component/panel-container/panel-container.provider.d.ts +2 -2
  116. package/es/panel-component/panel-container/panel-container.provider.d.ts.map +1 -1
  117. package/es/panel-component/panel-container/panel-container.provider.mjs +1 -1
  118. package/es/panel-component/panel-container-group/index.d.ts +5 -5
  119. package/es/panel-component/panel-container-group/index.d.ts.map +1 -1
  120. package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts +3 -3
  121. package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts.map +1 -1
  122. package/es/panel-component/panel-container-group/panel-container-group.controller.mjs +2 -2
  123. package/es/panel-component/panel-container-group/panel-container-group.css +1 -1
  124. package/es/panel-component/panel-container-group/panel-container-group.d.ts +5 -5
  125. package/es/panel-component/panel-container-group/panel-container-group.d.ts.map +1 -1
  126. package/es/panel-component/panel-container-group/panel-container-group.mjs +12 -10
  127. package/es/panel-component/panel-container-group/panel-container-group.state.d.ts +3 -3
  128. package/es/panel-component/panel-container-group/panel-container-group.state.d.ts.map +1 -1
  129. package/es/panel-component/panel-container-group/panel-container-group.state.mjs +2 -2
  130. package/es/panel-component/panel-container-image/index.d.ts +4 -4
  131. package/es/panel-component/panel-container-image/index.d.ts.map +1 -1
  132. package/es/panel-component/panel-container-image/panel-container-image.controller.d.ts +3 -3
  133. package/es/panel-component/panel-container-image/panel-container-image.controller.d.ts.map +1 -1
  134. package/es/panel-component/panel-container-image/panel-container-image.controller.mjs +2 -2
  135. package/es/panel-component/panel-container-image/panel-container-image.css +1 -1
  136. package/es/panel-component/panel-container-image/panel-container-image.d.ts +4 -4
  137. package/es/panel-component/panel-container-image/panel-container-image.d.ts.map +1 -1
  138. package/es/panel-component/panel-container-image/panel-container-image.mjs +4 -6
  139. package/es/panel-component/panel-container-image/panel-container-image.state.d.ts +3 -3
  140. package/es/panel-component/panel-container-image/panel-container-image.state.d.ts.map +1 -1
  141. package/es/panel-component/panel-container-image/panel-container-image.state.mjs +2 -2
  142. package/es/panel-component/panel-container-tabs/index.d.ts +6 -6
  143. package/es/panel-component/panel-container-tabs/index.d.ts.map +1 -1
  144. package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts +5 -5
  145. package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts.map +1 -1
  146. package/es/panel-component/panel-container-tabs/panel-container-tabs.mjs +1 -1
  147. package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.d.ts +2 -2
  148. package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.d.ts.map +1 -1
  149. package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.mjs +1 -1
  150. package/es/panel-component/panel-ctrl-pos/index.d.ts +4 -4
  151. package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -1
  152. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +4 -4
  153. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
  154. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +1 -1
  155. package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +4 -4
  156. package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts.map +1 -1
  157. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.css +1 -0
  158. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +5 -4
  159. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts.map +1 -1
  160. package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.mjs +4 -5
  161. package/es/panel-component/panel-field/index.d.ts +4 -4
  162. package/es/panel-component/panel-field/index.d.ts.map +1 -1
  163. package/es/panel-component/panel-field/panel-field.controller.d.ts +12 -0
  164. package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -1
  165. package/es/panel-component/panel-field/panel-field.controller.mjs +34 -3
  166. package/es/panel-component/panel-field/panel-field.css +1 -1
  167. package/es/panel-component/panel-field/panel-field.d.ts +4 -4
  168. package/es/panel-component/panel-field/panel-field.d.ts.map +1 -1
  169. package/es/panel-component/panel-field/panel-field.mjs +3 -5
  170. package/es/panel-component/panel-item-render/index.d.ts +4 -4
  171. package/es/panel-component/panel-item-render/index.d.ts.map +1 -1
  172. package/es/panel-component/panel-item-render/panel-item-render.d.ts +4 -4
  173. package/es/panel-component/panel-item-render/panel-item-render.d.ts.map +1 -1
  174. package/es/panel-component/panel-item-render/panel-item-render.mjs +3 -2
  175. package/es/panel-component/panel-rawitem/index.d.ts +6 -6
  176. package/es/panel-component/panel-rawitem/index.d.ts.map +1 -1
  177. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +6 -6
  178. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -1
  179. package/es/panel-component/panel-rawitem/panel-rawitem.mjs +3 -6
  180. package/es/panel-component/panel-tab-page/index.d.ts +6 -6
  181. package/es/panel-component/panel-tab-page/index.d.ts.map +1 -1
  182. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +8 -8
  183. package/es/panel-component/panel-tab-page/panel-tab-page.d.ts.map +1 -1
  184. package/es/panel-component/panel-tab-page/panel-tab-page.mjs +5 -5
  185. package/es/panel-component/panel-tab-page/panel-tab-page.provider.d.ts +2 -2
  186. package/es/panel-component/panel-tab-page/panel-tab-page.provider.d.ts.map +1 -1
  187. package/es/panel-component/panel-tab-page/panel-tab-page.provider.mjs +2 -2
  188. package/es/panel-component/scroll-container/index.d.ts +4 -4
  189. package/es/panel-component/scroll-container/index.d.ts.map +1 -1
  190. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +3 -3
  191. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts.map +1 -1
  192. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +2 -2
  193. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +4 -4
  194. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
  195. package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +3 -3
  196. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +3 -3
  197. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts.map +1 -1
  198. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +2 -2
  199. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +4 -4
  200. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -1
  201. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +3 -3
  202. package/es/panel-component/single-data-container/index.d.ts +4 -4
  203. package/es/panel-component/single-data-container/index.d.ts.map +1 -1
  204. package/es/panel-component/single-data-container/single-data-container.controller.d.ts +3 -3
  205. package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -1
  206. package/es/panel-component/single-data-container/single-data-container.controller.mjs +2 -2
  207. package/es/panel-component/single-data-container/single-data-container.d.ts +5 -5
  208. package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
  209. package/es/panel-component/single-data-container/single-data-container.mjs +3 -3
  210. package/es/panel-component/single-data-container/single-data-container.state.d.ts +3 -3
  211. package/es/panel-component/single-data-container/single-data-container.state.d.ts.map +1 -1
  212. package/es/panel-component/single-data-container/single-data-container.state.mjs +2 -2
  213. package/es/panel-component/teleport-placeholder/index.d.ts +5 -5
  214. package/es/panel-component/teleport-placeholder/index.d.ts.map +1 -1
  215. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +6 -5
  216. package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts.map +1 -1
  217. package/es/panel-component/teleport-placeholder/teleport-placeholder.mjs +1 -1
  218. package/es/panel-component/teleport-placeholder/teleport-placeholder.state.d.ts +1 -1
  219. package/es/panel-component/teleport-placeholder/teleport-placeholder.state.mjs +1 -1
  220. package/es/plugin/plugin-factory/plugin-factory.d.ts +13 -12
  221. package/es/plugin/plugin-factory/plugin-factory.d.ts.map +1 -1
  222. package/es/plugin/plugin-factory/plugin-factory.mjs +24 -18
  223. package/es/use/index.d.ts +1 -0
  224. package/es/use/index.d.ts.map +1 -1
  225. package/es/use/index.mjs +4 -2
  226. package/es/use/popover/popover.d.ts +7 -0
  227. package/es/use/popover/popover.d.ts.map +1 -1
  228. package/es/use/popover/popover.mjs +9 -2
  229. package/es/use/storage/index.d.ts +4 -6
  230. package/es/use/storage/index.d.ts.map +1 -1
  231. package/es/use/storage/index.mjs +16 -11
  232. package/es/use/vue/vue.d.ts +9 -0
  233. package/es/use/vue/vue.d.ts.map +1 -1
  234. package/es/use/vue/vue.mjs +15 -2
  235. package/es/use/vue-use/computed-async.d.ts +51 -0
  236. package/es/use/vue-use/computed-async.d.ts.map +1 -0
  237. package/es/use/vue-use/computed-async.mjs +66 -0
  238. package/es/use/vue-use/index.d.ts +2 -0
  239. package/es/use/vue-use/index.d.ts.map +1 -0
  240. package/es/use/vue-use/index.mjs +3 -0
  241. package/es/util/index.d.ts +0 -1
  242. package/es/util/index.d.ts.map +1 -1
  243. package/es/util/index.mjs +0 -1
  244. package/es/util/install.d.ts.map +1 -1
  245. package/es/util/overlay-container/overlay-container.d.ts +1 -1
  246. package/es/util/overlay-container/overlay-container.d.ts.map +1 -1
  247. package/es/util/overlay-container/overlay-container.mjs +7 -2
  248. package/es/util/overlay-view-util/overlay-view-util.d.ts +2 -2
  249. package/es/util/overlay-view-util/overlay-view-util.d.ts.map +1 -1
  250. package/es/util/overlay-view-util/overlay-view-util.mjs +2 -1
  251. package/es/util/render/render.d.ts.map +1 -1
  252. package/es/util/render/render.mjs +4 -1
  253. package/es/util/route/route.d.ts.map +1 -1
  254. package/es/util/route/route.mjs +19 -4
  255. package/es/util/store/app-store/app-store.d.ts +2 -2
  256. package/es/util/store/ui-store/ui-store.d.ts +2 -2
  257. package/es/view/app-redirect-view/app-redirect-view.d.ts +1 -1
  258. package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -1
  259. package/es/view/app-redirect-view/app-redirect-view.mjs +1 -1
  260. package/es/view/common/index.d.ts +5 -5
  261. package/es/view/common/index.d.ts.map +1 -1
  262. package/es/view/common/index.mjs +2 -0
  263. package/es/view/common/view.d.ts +5 -5
  264. package/es/view/common/view.d.ts.map +1 -1
  265. package/es/view/common/view.mjs +15 -2
  266. package/es/view/de-redirect-view/de-redirect-view.d.ts +8 -8
  267. package/es/view/de-redirect-view/de-redirect-view.d.ts.map +1 -1
  268. package/es/view/de-redirect-view/de-redirect-view.mjs +1 -1
  269. package/es/view/de-redirect-view/index.d.ts +8 -8
  270. package/es/view/de-redirect-view/index.d.ts.map +1 -1
  271. package/es/view/html-view/html-view.d.ts +8 -9
  272. package/es/view/html-view/html-view.d.ts.map +1 -1
  273. package/es/view/html-view/html-view.mjs +8 -16
  274. package/es/view/html-view/index.d.ts +7 -8
  275. package/es/view/html-view/index.d.ts.map +1 -1
  276. package/es/view/md-custom-view/md-custom-view.provider.d.ts +13 -0
  277. package/es/view/md-custom-view/md-custom-view.provider.d.ts.map +1 -0
  278. package/es/view/md-custom-view/md-custom-view.provider.mjs +13 -0
  279. package/es/view/portal-view/index.d.ts +5 -5
  280. package/es/view/portal-view/index.d.ts.map +1 -1
  281. package/es/view/portal-view/portal-view.d.ts +5 -5
  282. package/es/view/portal-view/portal-view.d.ts.map +1 -1
  283. package/es/view/todo-redirect/todo-redirect.d.ts +1 -1
  284. package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -1
  285. package/lib/common/badge/badge.cjs +1 -1
  286. package/lib/common/badge/badge.css +1 -1
  287. package/lib/common/control-base/control-base.cjs +37 -3
  288. package/lib/common/control-base/control-base.css +1 -1
  289. package/lib/common/custom-render/custom-render.cjs +1 -1
  290. package/lib/common/index.cjs +2 -0
  291. package/lib/common/signature-pad/signature-pad.cjs +167 -0
  292. package/lib/common/signature-pad/signature-pad.css +1 -0
  293. package/lib/common/signature-pad/util/bezier.cjs +111 -0
  294. package/lib/common/signature-pad/util/point.cjs +53 -0
  295. package/lib/common/signature-pad/util/signature_pad.cjs +1022 -0
  296. package/lib/common/view-shell/view-shell.cjs +41 -21
  297. package/lib/control/panel/panel/panel.cjs +12 -1
  298. package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +12 -1
  299. package/lib/index.cjs +15 -6
  300. package/lib/locale/en/index.cjs +2 -1
  301. package/lib/locale/zh-CN/index.cjs +2 -1
  302. package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -1
  303. package/lib/panel-component/grid-container/grid-container.cjs +2 -2
  304. package/lib/panel-component/grid-container/grid-container.controller.cjs +1 -1
  305. package/lib/panel-component/grid-container/grid-container.state.cjs +1 -1
  306. package/lib/panel-component/index.cjs +9 -4
  307. package/lib/panel-component/multi-data-container/multi-data-container.cjs +2 -2
  308. package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +11 -4
  309. package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +1 -1
  310. package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.cjs +2 -2
  311. package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.controller.cjs +1 -1
  312. package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.state.cjs +1 -1
  313. package/lib/panel-component/panel-container/index.cjs +8 -4
  314. package/lib/panel-component/panel-container/panel-container.cjs +34 -8
  315. package/lib/panel-component/panel-container/panel-container.provider.cjs +2 -2
  316. package/lib/panel-component/panel-container-group/panel-container-group.cjs +11 -9
  317. package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +1 -1
  318. package/lib/panel-component/panel-container-group/panel-container-group.css +1 -1
  319. package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +1 -1
  320. package/lib/panel-component/panel-container-image/panel-container-image.cjs +3 -5
  321. package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +1 -1
  322. package/lib/panel-component/panel-container-image/panel-container-image.css +1 -1
  323. package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +1 -1
  324. package/lib/panel-component/panel-container-tabs/panel-container-tabs.cjs +2 -2
  325. package/lib/panel-component/panel-container-tabs/panel-container-tabs.provider.cjs +2 -2
  326. package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.cjs +3 -4
  327. package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.css +1 -0
  328. package/lib/panel-component/panel-field/panel-field.cjs +2 -4
  329. package/lib/panel-component/panel-field/panel-field.controller.cjs +34 -3
  330. package/lib/panel-component/panel-field/panel-field.css +1 -1
  331. package/lib/panel-component/panel-item-render/panel-item-render.cjs +2 -1
  332. package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +2 -5
  333. package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +3 -3
  334. package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +1 -1
  335. package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +2 -2
  336. package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +1 -1
  337. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +2 -2
  338. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +1 -1
  339. package/lib/panel-component/single-data-container/single-data-container.cjs +2 -2
  340. package/lib/panel-component/single-data-container/single-data-container.controller.cjs +1 -1
  341. package/lib/panel-component/single-data-container/single-data-container.state.cjs +1 -1
  342. package/lib/panel-component/teleport-placeholder/teleport-placeholder.state.cjs +1 -1
  343. package/lib/plugin/plugin-factory/plugin-factory.cjs +24 -18
  344. package/lib/use/index.cjs +5 -0
  345. package/lib/use/popover/popover.cjs +8 -0
  346. package/lib/use/storage/index.cjs +16 -11
  347. package/lib/use/vue/vue.cjs +14 -0
  348. package/lib/use/vue-use/computed-async.cjs +68 -0
  349. package/lib/use/vue-use/index.cjs +7 -0
  350. package/lib/util/index.cjs +0 -2
  351. package/lib/util/overlay-container/overlay-container.cjs +7 -2
  352. package/lib/util/overlay-view-util/overlay-view-util.cjs +2 -1
  353. package/lib/util/render/render.cjs +4 -1
  354. package/lib/util/route/route.cjs +19 -4
  355. package/lib/view/common/index.cjs +2 -0
  356. package/lib/view/common/view.cjs +13 -0
  357. package/lib/view/html-view/html-view.cjs +6 -14
  358. package/lib/view/md-custom-view/md-custom-view.provider.cjs +15 -0
  359. package/package.json +7 -7
  360. package/es/panel-component/panel-container/panel-container.controller.d.ts +0 -21
  361. package/es/panel-component/panel-container/panel-container.controller.d.ts.map +0 -1
  362. package/es/panel-component/panel-container/panel-container.controller.mjs +0 -12
  363. package/es/panel-component/panel-container/panel-container.state.d.ts +0 -10
  364. package/es/panel-component/panel-container/panel-container.state.d.ts.map +0 -1
  365. package/es/panel-component/panel-container/panel-container.state.mjs +0 -7
  366. package/es/util/control/prepare-control.d.ts +0 -15
  367. package/es/util/control/prepare-control.d.ts.map +0 -1
  368. package/es/util/control/prepare-control.mjs +0 -22
  369. package/lib/panel-component/panel-container/panel-container.controller.cjs +0 -14
  370. package/lib/panel-component/panel-container/panel-container.state.cjs +0 -9
  371. package/lib/util/control/prepare-control.cjs +0 -24
@@ -0,0 +1,66 @@
1
+ import { NOOP } from '@ibiz-template/core';
2
+ import { isRef, shallowRef, ref, watchEffect, computed } from 'vue';
3
+
4
+ "use strict";
5
+ function computedAsync(evaluationCallback, initialState, optionsOrRef) {
6
+ let options;
7
+ if (isRef(optionsOrRef)) {
8
+ options = {
9
+ evaluating: optionsOrRef
10
+ };
11
+ } else {
12
+ options = optionsOrRef || {};
13
+ }
14
+ const {
15
+ lazy = false,
16
+ flush = "pre",
17
+ evaluating = void 0,
18
+ shallow = true,
19
+ onError = NOOP
20
+ } = options;
21
+ const started = shallowRef(!lazy);
22
+ const current = shallow ? shallowRef(initialState) : ref(initialState);
23
+ let counter = 0;
24
+ watchEffect(
25
+ async (onInvalidate) => {
26
+ if (!started.value)
27
+ return;
28
+ counter++;
29
+ const counterAtBeginning = counter;
30
+ let hasFinished = false;
31
+ if (evaluating) {
32
+ Promise.resolve().then(() => {
33
+ evaluating.value = true;
34
+ });
35
+ }
36
+ try {
37
+ const result = await evaluationCallback((cancelCallback) => {
38
+ onInvalidate(() => {
39
+ if (evaluating)
40
+ evaluating.value = false;
41
+ if (!hasFinished)
42
+ cancelCallback();
43
+ });
44
+ });
45
+ if (counterAtBeginning === counter)
46
+ current.value = result;
47
+ } catch (e) {
48
+ onError(e);
49
+ } finally {
50
+ if (evaluating && counterAtBeginning === counter)
51
+ evaluating.value = false;
52
+ hasFinished = true;
53
+ }
54
+ },
55
+ { flush }
56
+ );
57
+ if (lazy) {
58
+ return computed(() => {
59
+ started.value = true;
60
+ return current.value;
61
+ });
62
+ }
63
+ return current;
64
+ }
65
+
66
+ export { computedAsync };
@@ -0,0 +1,2 @@
1
+ export * from './computed-async';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/use/vue-use/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { computedAsync } from './computed-async.mjs';
2
+
3
+ "use strict";
@@ -1,7 +1,6 @@
1
1
  export * from './route/route';
2
2
  export * from './route/route-listener';
3
3
  export * from './install';
4
- export * from './control/prepare-control';
5
4
  export * from './render/render';
6
5
  export { OverlayContainer } from './overlay-container/overlay-container';
7
6
  export { OverlayPopoverContainer } from './overlay-popover-container/overlay-popover-container';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAChG,cAAc,uCAAuC,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,uDAAuD,CAAC;AAChG,cAAc,uCAAuC,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,cAAc,SAAS,CAAC"}
package/es/util/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  export { calcResRoutePath, excludeViewTypes, generateRoutePath, generateRoutePathByModal, getNestedRoutePath, getOwnRouteContext, onRouteChange, parseRouteViewData, route2routePath, routePath2string } from './route/route.mjs';
2
2
  export { RouteListener } from './route/route-listener.mjs';
3
3
  export { withInstall } from './install.mjs';
4
- export { prepareControl } from './control/prepare-control.mjs';
5
4
  export { hasEmptyPanelRenderer, renderString } from './render/render.mjs';
6
5
  export { OverlayContainer } from './overlay-container/overlay-container.mjs';
7
6
  export { OverlayPopoverContainer } from './overlay-popover-container/overlay-popover-container.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/util/install.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAEvC,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAE5C,eAAO,MAAM,WAAW,6BAER,GAAG,KAAK,IAAI,uBAM3B,CAAC"}
1
+ {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/util/install.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAEvC,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC;AAE5C,eAAO,MAAM,WAAW,YAChB,CAAC,WACE,CAAC,EAAE,EAAE,GAAG,KAAK,IAAI,KACzB,gBAAgB,CAAC,CAKnB,CAAC"}
@@ -9,7 +9,7 @@ import { App, Component, VNode } from 'vue';
9
9
  * @export
10
10
  * @class OverlayContainer
11
11
  */
12
- export declare class OverlayContainer<O> implements IOverlayContainer {
12
+ export declare class OverlayContainer<O extends IData = IData> implements IOverlayContainer {
13
13
  protected component: unknown;
14
14
  protected render: (...args: any[]) => VNode;
15
15
  protected opts?: O | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-container.d.ts","sourceRoot":"","sources":["../../../src/util/overlay-container/overlay-container.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,SAAS,EAAK,KAAK,EAAE,MAAM,KAAK,CAAC;AAG/C;;;;;;;GAOG;AACH,qBAAa,gBAAgB,CAAC,CAAC,CAAE,YAAW,iBAAiB;IA0CzD,SAAS,CAAC,SAAS,EAAE,OAAO;IAC5B,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK;IAC3C,SAAS,CAAC,IAAI,CAAC;IA3CjB,SAAS,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC;IAEnB;;;;;;;OAOG;IACH,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC;IAErB;;;;;;;OAOG;IACH,SAAS,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;;OAMG;IACH,SAAS,CAAC,GAAG,EAAE,OAAO,CAAC;QAAE,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;KAAE,CAAC,CAAiB;IAE9E;;;;;;;;OAQG;gBAES,SAAS,EAAE,OAAO,EAClB,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,KAAK,EACjC,IAAI,CAAC,eAAG;IAKpB,MAAM,CAAC,YAAY,CACjB,cAAc,EAAE,SAAS,EACzB,UAAU,CAAC,EAAE,KAAK,GACjB,GAAG,CAAC,OAAO,CAAC;IAIf;;;;;;;OAOG;IACH,SAAS,CAAC,IAAI,IAAI,IAAI;IAkCtB;;;;;;;OAOG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B;;;;;;;OAOG;IACG,OAAO,CA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If;;;;;;;OAOG;IACH,SAAS,CAAC,IAAI,IAAI,IAAI;IAsCtB;;;;;;;OAOG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAI9B;;;;;;;OAOG;IACG,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAI5C;;;;;;;OAOG;IACG,aAAa,CAAC,CAAC,GAAG,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC;CAS/C"}
@@ -1,6 +1,7 @@
1
1
  import { QXEvent } from 'qx-util';
2
2
  import { h } from 'vue';
3
3
  import { RuntimeError } from '@ibiz-template/core';
4
+ import { isElement } from 'lodash-es';
4
5
 
5
6
  "use strict";
6
7
  class OverlayContainer {
@@ -42,13 +43,17 @@ class OverlayContainer {
42
43
  const self = this;
43
44
  const { render, opts } = this;
44
45
  const container = document.createElement("div");
45
- document.body.appendChild(container);
46
+ let appendTo = document.body;
47
+ if (isElement(opts == null ? void 0 : opts.appendTo)) {
48
+ appendTo = opts == null ? void 0 : opts.appendTo;
49
+ }
50
+ appendTo.appendChild(container);
46
51
  const vm = OverlayContainer.createVueApp({
47
52
  mounted() {
48
53
  self.modal = this.$refs.root;
49
54
  },
50
55
  unmounted() {
51
- document.body.removeChild(container);
56
+ appendTo.removeChild(container);
52
57
  self.evt.emit("dismiss", self.result);
53
58
  },
54
59
  render() {
@@ -1,6 +1,6 @@
1
- import { IDrawerOptions, IFloatWindowOptions, IModal, IModalData, IModalOptions, IPopoverOptions } from '@ibiz-template/runtime';
1
+ import { IDrawerOptions, IFloatWindowOptions, IModal, IModalData, IModalOptions, IPopoverOptions, IViewShellHooks } from '@ibiz-template/runtime';
2
2
  import { VNode } from 'vue';
3
- export declare function createOverlayView(props?: IParams): (modal: IModal) => VNode;
3
+ export declare function createOverlayView(props?: IParams): (modal: IModal, viewShellHooks?: IViewShellHooks) => VNode;
4
4
  export declare function openViewModal(props?: IParams, opts?: IModalOptions): Promise<IModalData>;
5
5
  export declare function openViewFloatWindow(props?: IParams, opts?: IFloatWindowOptions): Promise<IModalData>;
6
6
  export declare function openViewDrawer(props?: IParams, opts?: IDrawerOptions): Promise<IModalData>;
@@ -1 +1 @@
1
- {"version":3,"file":"overlay-view-util.d.ts","sourceRoot":"","sources":["../../../src/util/overlay-view-util/overlay-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,UAAU,EACV,aAAa,EACb,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAuB,KAAK,EAAE,MAAM,KAAK,CAAC;AAEjD,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,KAAK,CAQ3E;AAED,wBAAsB,aAAa,CACjC,KAAK,CAAC,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,UAAU,CAAC,CASrB;AAED,wBAAsB,mBAAmB,CACvC,KAAK,CAAC,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,mBAAmB,GACzB,OAAO,CAAC,UAAU,CAAC,CASrB;AAED,wBAAsB,cAAc,CAClC,KAAK,CAAC,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,UAAU,CAAC,CASrB;AAED,wBAAsB,eAAe,CACnC,KAAK,EAAE,UAAU,EACjB,KAAK,CAAC,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,eAAe,GACrB,OAAO,CAAC,UAAU,CAAC,CASrB;AASD,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,GACf,cAAc,CAAC,WAAW,CAAC,CAE7B"}
1
+ {"version":3,"file":"overlay-view-util.d.ts","sourceRoot":"","sources":["../../../src/util/overlay-view-util/overlay-view-util.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,UAAU,EACV,aAAa,EACb,eAAe,EACf,eAAe,EAChB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAuB,KAAK,EAAE,MAAM,KAAK,CAAC;AAEjD,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,EAAE,OAAO,GACd,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,eAAe,KAAK,KAAK,CAS5D;AAED,wBAAsB,aAAa,CACjC,KAAK,CAAC,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,aAAa,GACnB,OAAO,CAAC,UAAU,CAAC,CASrB;AAED,wBAAsB,mBAAmB,CACvC,KAAK,CAAC,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,mBAAmB,GACzB,OAAO,CAAC,UAAU,CAAC,CASrB;AAED,wBAAsB,cAAc,CAClC,KAAK,CAAC,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC,UAAU,CAAC,CASrB;AAED,wBAAsB,eAAe,CACnC,KAAK,EAAE,UAAU,EACjB,KAAK,CAAC,EAAE,OAAO,EACf,IAAI,CAAC,EAAE,eAAe,GACrB,OAAO,CAAC,UAAU,CAAC,CASrB;AASD,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,GACf,cAAc,CAAC,WAAW,CAAC,CAE7B"}
@@ -2,10 +2,11 @@ import { resolveComponent, h } from 'vue';
2
2
 
3
3
  "use strict";
4
4
  function createOverlayView(props) {
5
- return (modal) => {
5
+ return (modal, viewShellHooks) => {
6
6
  const viewShell = resolveComponent("IBizViewShell");
7
7
  return h(viewShell, {
8
8
  ...props,
9
+ viewShellHooks,
9
10
  modal
10
11
  });
11
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/util/render/render.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiBnD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,MAAO,iBAAiB,KAAG,OAO5D,CAAC"}
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/util/render/render.ts"],"names":[],"mappings":"AACA,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAiBnD;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,MAAO,iBAAiB,KAAG,OAS5D,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { isNil } from 'ramda';
2
+ import { PredefinedControlRender } from '@ibiz-template/runtime';
2
3
 
3
4
  "use strict";
4
5
  function renderString(value) {
@@ -24,7 +25,9 @@ const hasEmptyPanelRenderer = (c) => {
24
25
  if (!controlRenders || controlRenders.length === 0) {
25
26
  return false;
26
27
  }
27
- return !!controlRenders.find((item) => item.id === "emptypanel");
28
+ return !!controlRenders.find(
29
+ (item) => item.id === PredefinedControlRender.EMPTYPANEL
30
+ );
28
31
  };
29
32
 
30
33
  export { hasEmptyPanelRenderer, renderString };
@@ -1 +1 @@
1
- {"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../src/util/route/route.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,IAAI,KAAK,EAAY,MAAM,YAAY,CAAC;AAE9E,OAAO,EAGL,WAAW,EAGZ,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,UAAU,EAAkB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7E;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,KAAK,EACZ,YAAY,GAAE,OAAe,GAC5B,UAAU,CAsEZ;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAuD9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBA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;;;GAUG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,EACb,YAAY,GAAE,OAAe,GAC5B,OAAO,CAAC,cAAc,CAAC,CAoEzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,OAAc,GACvB,MAAM,CA6BR;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,EAClE,KAAK,EAAE,MAAM,GACZ,IAAI,CAcN"}
@@ -36,7 +36,7 @@ function route2routePath(route, isRouteModal = false) {
36
36
  params = void 0;
37
37
  } else {
38
38
  if (params.srfnavctx) {
39
- context = JSON.parse(decodeURIComponent(params.srfnavctx));
39
+ context = JSON.parse(params.srfnavctx);
40
40
  delete params.srfnavctx;
41
41
  }
42
42
  if (params.srfnav) {
@@ -117,8 +117,13 @@ function getOwnRouteContext(context) {
117
117
  }
118
118
  delete ownContext.attributekeys;
119
119
  }
120
+ let srfKeepNull = false;
121
+ if (Object.prototype.hasOwnProperty.call(ownContext, "srfkeepnull")) {
122
+ srfKeepNull = ownContext.srfkeepnull === true || ownContext.srfkeepnull === "true";
123
+ delete ownContext.srfkeepnull;
124
+ }
120
125
  Object.keys(ownContext).forEach((key) => {
121
- if (excludeKeys.includes(key) || isNil(ownContext[key])) {
126
+ if (excludeKeys.includes(key) || !srfKeepNull && isNil(ownContext[key])) {
122
127
  delete ownContext[key];
123
128
  }
124
129
  });
@@ -174,6 +179,7 @@ async function calcResRoutePath(routePath, context, appDataEntityId, appId) {
174
179
  }
175
180
  }
176
181
  async function generateRoutePath(appView, route, context, params) {
182
+ var _a;
177
183
  const routePath = route2routePath(route);
178
184
  let depth = context.srfdefaulttoroutedepth || 2;
179
185
  if (context.toRouteDepth) {
@@ -186,6 +192,10 @@ async function generateRoutePath(appView, route, context, params) {
186
192
  };
187
193
  }
188
194
  }
195
+ let srfmenuitem = params == null ? void 0 : params.srfmenuitem;
196
+ if (!srfmenuitem && routePath.pathNodes.length > 1) {
197
+ srfmenuitem = (_a = routePath.pathNodes[1].params) == null ? void 0 : _a.srfmenuitem;
198
+ }
189
199
  routePath.pathNodes.splice(depth - 1, routePath.pathNodes.length - depth + 1);
190
200
  if (context.currentSrfNav) {
191
201
  const currentNode = routePath.pathNodes[routePath.pathNodes.length - 1];
@@ -219,6 +229,10 @@ async function generateRoutePath(appView, route, context, params) {
219
229
  delete routePath.pathNodes[0].context[deName];
220
230
  }
221
231
  }
232
+ if (srfmenuitem && routePath.pathNodes.length > 1) {
233
+ const tempParams = routePath.pathNodes[1].params || {};
234
+ routePath.pathNodes[1].params = { ...tempParams, srfmenuitem };
235
+ }
222
236
  return { path: routePath2string(routePath) };
223
237
  }
224
238
  async function generateRoutePathByModal(appView, route, context, params) {
@@ -308,7 +322,7 @@ function getNestedRoutePath(route, depth, noSrfNav = true) {
308
322
  if (noSrfNav) {
309
323
  delete pathNode.srfnav;
310
324
  }
311
- if (pathNode.context) {
325
+ if (!ibiz.env.isMob && pathNode.context) {
312
326
  delete pathNode.context.srfnavctrlid;
313
327
  }
314
328
  return routePath2string(routePath);
@@ -319,7 +333,8 @@ function onRouteChange(callback, depth) {
319
333
  throw new RuntimeError(ibiz.i18n.t("vue3Util.util.routeCorrectly"));
320
334
  }
321
335
  watch(
322
- () => route == null ? void 0 : route.path,
336
+ // fix: odoo脚本触发路径query变更未触发路由变更事件
337
+ () => route == null ? void 0 : route.fullPath,
323
338
  () => {
324
339
  const currentKey = getNestedRoutePath(route, depth);
325
340
  callback({ currentKey, fullPath: route.fullPath });
@@ -1,8 +1,8 @@
1
1
  export interface IAppStore {
2
2
  }
3
- export declare const useAppStore: import("pinia").StoreDefinition<"appStore", import("pinia")._UnwrapAll<Pick<{
3
+ export declare const useAppStore: import("pinia").StoreDefinition<"appStore", Pick<{
4
4
  appStore: IAppStore;
5
- }, "appStore">>, Pick<{
5
+ }, "appStore">, Pick<{
6
6
  appStore: IAppStore;
7
7
  }, never>, Pick<{
8
8
  appStore: IAppStore;
@@ -10,13 +10,13 @@ export interface IUIState {
10
10
  zIndex: Ref<number>;
11
11
  theme: string;
12
12
  }
13
- export declare const useUIStore: import("pinia").StoreDefinition<"uiStore", import("pinia")._UnwrapAll<Pick<{
13
+ export declare const useUIStore: import("pinia").StoreDefinition<"uiStore", Pick<{
14
14
  UIStore: {
15
15
  zIndex: number;
16
16
  theme: string;
17
17
  };
18
18
  zIndex: import("./z-index").IzIndexStore;
19
- }, "zIndex" | "UIStore">>, Pick<{
19
+ }, "zIndex" | "UIStore">, Pick<{
20
20
  UIStore: {
21
21
  zIndex: number;
22
22
  theme: string;
@@ -1,2 +1,2 @@
1
- export declare const AppRedirectView: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ export declare const AppRedirectView: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
2
  //# sourceMappingURL=app-redirect-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/app-redirect-view/app-redirect-view.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,sSAqB1B,CAAC"}
1
+ {"version":3,"file":"app-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/app-redirect-view/app-redirect-view.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,iRAqB1B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, onUnmounted, onMounted, createVNode } from 'vue';
1
+ import { defineComponent, createVNode, onUnmounted, onMounted } from 'vue';
2
2
  import { IBizContext } from '@ibiz-template/core';
3
3
  import { toLocalOpenWFRedirectView } from '@ibiz-template/runtime';
4
4
 
@@ -1,4 +1,4 @@
1
- export declare const IBizView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
1
+ export declare const IBizView: import("../../util").TypeWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  context: {
3
3
  type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
4
4
  };
@@ -19,7 +19,7 @@ export declare const IBizView: import("../../util").TypeWithInstall<import("vue"
19
19
  provider: {
20
20
  type: import("vue").PropType<import("@ibiz-template/runtime").IViewProvider>;
21
21
  };
22
- }, {
22
+ }>, {
23
23
  c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
24
24
  ns: import("@ibiz-template/core").Namespace;
25
25
  controls: import("@ibiz/model-core").IControl[];
@@ -32,7 +32,7 @@ export declare const IBizView: import("../../util").TypeWithInstall<import("vue"
32
32
  }>;
33
33
  getCtrlTeleportTag: (ctrl: import("@ibiz/model-core").IControl) => string | undefined;
34
34
  getControlStyle: () => {};
35
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
36
  context: {
37
37
  type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
38
38
  };
@@ -53,7 +53,7 @@ export declare const IBizView: import("../../util").TypeWithInstall<import("vue"
53
53
  provider: {
54
54
  type: import("vue").PropType<import("@ibiz-template/runtime").IViewProvider>;
55
55
  };
56
- }>>, {
56
+ }>> & Readonly<{}>, {
57
57
  params: import("@ibiz-template/core").IApiParams;
58
- }, {}>>;
58
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
59
59
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/common/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAQnB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/common/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAUnB,CAAC"}
@@ -3,6 +3,7 @@ import '../../util/index.mjs';
3
3
  import { ViewProvider } from './view.provider.mjs';
4
4
  import { View } from './view.mjs';
5
5
  import { AppDataUploadViewProvider } from '../app-data-upload-view/app-data-upload-view.provider.mjs';
6
+ import { MDCustomViewProvider } from '../md-custom-view/md-custom-view.provider.mjs';
6
7
  import { withInstall } from '../../util/install.mjs';
7
8
 
8
9
  "use strict";
@@ -13,6 +14,7 @@ const IBizView = withInstall(View, function(v) {
13
14
  "APPDATAUPLOADVIEW",
14
15
  () => new AppDataUploadViewProvider()
15
16
  );
17
+ registerViewProvider("DEMDCUSTOMVIEW", () => new MDCustomViewProvider());
16
18
  });
17
19
 
18
20
  export { IBizView };
@@ -2,7 +2,7 @@ import { IModal, IViewLayoutPanelController, IViewProvider, ViewController } fro
2
2
  import { IAppView, IControl } from '@ibiz/model-core';
3
3
  import { PropType, VNode } from 'vue';
4
4
  import './view.scss';
5
- export declare const View: import("vue").DefineComponent<{
5
+ export declare const View: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
6
  /**
7
7
  * @description 应用上下文
8
8
  */
@@ -42,7 +42,7 @@ export declare const View: import("vue").DefineComponent<{
42
42
  provider: {
43
43
  type: PropType<IViewProvider>;
44
44
  };
45
- }, {
45
+ }>, {
46
46
  c: ViewController<IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
47
47
  ns: import("@ibiz-template/core").Namespace;
48
48
  controls: IControl[];
@@ -53,7 +53,7 @@ export declare const View: import("vue").DefineComponent<{
53
53
  renderControl: (ctrl: IControl, slotProps?: IData) => VNode;
54
54
  getCtrlTeleportTag: (ctrl: IControl) => string | undefined;
55
55
  getControlStyle: () => {};
56
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
57
57
  /**
58
58
  * @description 应用上下文
59
59
  */
@@ -93,7 +93,7 @@ export declare const View: import("vue").DefineComponent<{
93
93
  provider: {
94
94
  type: PropType<IViewProvider>;
95
95
  };
96
- }>>, {
96
+ }>> & Readonly<{}>, {
97
97
  params: import("@ibiz-template/core").IApiParams;
98
- }, {}>;
98
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
99
99
  //# sourceMappingURL=view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../src/view/common/view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,MAAM,EACN,0BAA0B,EAC1B,aAAa,EACb,cAAc,EACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAER,KAAK,EAIN,MAAM,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veComponent, h, createVNode, Teleport, withDirectives, resolveDirective } from 'vue';
2
- import { ViewController, getControlsByView, getCtrlTeleportParams, getErrorViewProvider } from '@ibiz-template/runtime';
1
+ import { isVNode, defineComponent, createVNode, h, resolveComponent, Teleport, withDirectives, resolveDirective, computed, renderSlot, onMounted, nextTick, onBeforeUnmount } from 'vue';
2
+ import { getErrorViewProvider, ViewController, getControlsByView, getCtrlTeleportParams } from '@ibiz-template/runtime';
3
3
  import './view.css';
4
4
  import '../../use/index.mjs';
5
5
  import { useNamespace } from '../../use/namespace/namespace.mjs';
@@ -127,6 +127,19 @@ const View = /* @__PURE__ */ defineComponent({
127
127
  }
128
128
  return h(comp, ctrlProps);
129
129
  };
130
+ let watermarkDestroy;
131
+ onMounted(() => {
132
+ nextTick(async () => {
133
+ const container = document.getElementById(c.id);
134
+ const appView = await ibiz.hub.config.view.get(c.model.id);
135
+ if (!container || !(appView == null ? void 0 : appView.waterMarkOption))
136
+ return;
137
+ watermarkDestroy = ibiz.util.watermark.mount(appView.waterMarkOption, container, c.context, c.params, c.state.srfactiveviewdata || {});
138
+ });
139
+ });
140
+ onBeforeUnmount(() => {
141
+ watermarkDestroy == null ? void 0 : watermarkDestroy();
142
+ });
130
143
  return {
131
144
  c,
132
145
  ns,
@@ -1,7 +1,7 @@
1
1
  import { ViewController } from '@ibiz-template/runtime';
2
2
  import { IAppDERedirectView } from '@ibiz/model-core';
3
3
  import { PropType } from 'vue';
4
- export declare const DeRedirectView: import("vue").DefineComponent<{
4
+ export declare const DeRedirectView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
5
  context: {
6
6
  type: PropType<import("@ibiz-template/core").IApiContext>;
7
7
  required: true;
@@ -18,12 +18,12 @@ export declare const DeRedirectView: import("vue").DefineComponent<{
18
18
  type: BooleanConstructor;
19
19
  default: boolean;
20
20
  };
21
- }, {
21
+ }>, {
22
22
  c: ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
23
- toViewId: import("vue").Ref<string | undefined>;
24
- toViewContext: import("vue").Ref<import("@ibiz-template/core").IApiContext | undefined>;
25
- toViewParams: import("vue").Ref<import("@ibiz-template/core").IApiParams | undefined>;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ toViewId: import("vue").Ref<string | undefined, string | undefined>;
24
+ toViewContext: import("vue").Ref<import("@ibiz-template/core").IApiContext | undefined, import("@ibiz-template/core").IApiContext | undefined>;
25
+ toViewParams: import("vue").Ref<import("@ibiz-template/core").IApiParams | undefined, import("@ibiz-template/core").IApiParams | undefined>;
26
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
27
  context: {
28
28
  type: PropType<import("@ibiz-template/core").IApiContext>;
29
29
  required: true;
@@ -40,8 +40,8 @@ export declare const DeRedirectView: import("vue").DefineComponent<{
40
40
  type: BooleanConstructor;
41
41
  default: boolean;
42
42
  };
43
- }>>, {
43
+ }>> & Readonly<{}>, {
44
44
  params: import("@ibiz-template/core").IApiParams;
45
45
  isEmbedCtrlNav: boolean;
46
- }, {}>;
46
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
47
47
  //# sourceMappingURL=de-redirect-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"de-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/de-redirect-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAKT,MAAM,KAAK,CAAC;AAGb,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuEzB,CAAC"}
1
+ {"version":3,"file":"de-redirect-view.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/de-redirect-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAuB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAGL,QAAQ,EAKT,MAAM,KAAK,CAAC;AAGb,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAuEzB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, toRaw, watch, h, resolveComponent, withDirectives, createVNode, resolveDirective } from 'vue';
1
+ import { defineComponent, h, resolveComponent, withDirectives, createVNode, resolveDirective, ref, toRaw, watch } from 'vue';
2
2
  import { RuntimeError } from '@ibiz-template/core';
3
3
  import { ViewController, getDERedirectToView } from '@ibiz-template/runtime';
4
4
  import '../../use/index.mjs';
@@ -1,4 +1,4 @@
1
- export declare const IBizDeRedirectView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
1
+ export declare const IBizDeRedirectView: import("../../util").TypeWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
2
  context: {
3
3
  type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
4
4
  required: true;
@@ -15,12 +15,12 @@ export declare const IBizDeRedirectView: import("../../util").TypeWithInstall<im
15
15
  type: BooleanConstructor;
16
16
  default: boolean;
17
17
  };
18
- }, {
18
+ }>, {
19
19
  c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
20
- toViewId: import("vue").Ref<string | undefined>;
21
- toViewContext: import("vue").Ref<import("@ibiz-template/core").IApiContext | undefined>;
22
- toViewParams: import("vue").Ref<import("@ibiz-template/core").IApiParams | undefined>;
23
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
20
+ toViewId: import("vue").Ref<string | undefined, string | undefined>;
21
+ toViewContext: import("vue").Ref<import("@ibiz-template/core").IApiContext | undefined, import("@ibiz-template/core").IApiContext | undefined>;
22
+ toViewParams: import("vue").Ref<import("@ibiz-template/core").IApiParams | undefined, import("@ibiz-template/core").IApiParams | undefined>;
23
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
24
24
  context: {
25
25
  type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
26
26
  required: true;
@@ -37,8 +37,8 @@ export declare const IBizDeRedirectView: import("../../util").TypeWithInstall<im
37
37
  type: BooleanConstructor;
38
38
  default: boolean;
39
39
  };
40
- }>>, {
40
+ }>> & Readonly<{}>, {
41
41
  params: import("@ibiz-template/core").IApiParams;
42
42
  isEmbedCtrlNav: boolean;
43
- }, {}>>;
43
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
44
44
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAU9B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/de-redirect-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAU9B,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { IAppDEHtmlView } from '@ibiz/model-core';
2
- import { ViewController } from '@ibiz-template/runtime';
2
+ import { HtmlViewController } from '@ibiz-template/runtime';
3
3
  import { PropType } from 'vue';
4
4
  import './html-view.scss';
5
- export declare const HtmlView: import("vue").DefineComponent<{
5
+ export declare const HtmlView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
6
  context: PropType<import("@ibiz-template/core").IApiContext>;
7
7
  params: {
8
8
  type: PropType<import("@ibiz-template/core").IApiParams>;
@@ -18,15 +18,14 @@ export declare const HtmlView: import("vue").DefineComponent<{
18
18
  state: {
19
19
  type: PropType<import("@ibiz-template/core").IApiData>;
20
20
  };
21
- }, {
22
- c: ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
21
+ }>, {
22
+ c: HtmlViewController<IAppDEHtmlView, import("@ibiz-template/runtime").IHtmlViewState, import("@ibiz-template/runtime").IViewEvent>;
23
23
  ns: import("@ibiz-template/core").Namespace;
24
24
  controls: import("@ibiz/model-core").IControl[] | undefined;
25
25
  viewClassNames: (string | undefined)[];
26
- url: import("vue").ComputedRef<string>;
27
- isLoading: import("vue").Ref<boolean>;
26
+ isLoading: import("vue").Ref<boolean, boolean>;
28
27
  onLoad: () => void;
29
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
30
29
  context: PropType<import("@ibiz-template/core").IApiContext>;
31
30
  params: {
32
31
  type: PropType<import("@ibiz-template/core").IApiParams>;
@@ -42,7 +41,7 @@ export declare const HtmlView: import("vue").DefineComponent<{
42
41
  state: {
43
42
  type: PropType<import("@ibiz-template/core").IApiData>;
44
43
  };
45
- }>>, {
44
+ }>> & Readonly<{}>, {
46
45
  params: import("@ibiz-template/core").IApiParams;
47
- }, {}>;
46
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
48
47
  //# sourceMappingURL=html-view.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"html-view.d.ts","sourceRoot":"","sources":["../../../src/view/html-view/html-view.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAwB,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAGL,QAAQ,EAKT,MAAM,KAAK,CAAC;AAEb,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+DnB,CAAC"}
1
+ {"version":3,"file":"html-view.d.ts","sourceRoot":"","sources":["../../../src/view/html-view/html-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EACL,kBAAkB,EAEnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAGL,QAAQ,EAIT,MAAM,KAAK,CAAC;AAEb,OAAO,kBAAkB,CAAC;AAE1B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAiEnB,CAAC"}