@ibiz-template/vue3-components 0.7.27 → 0.7.28-alpha.1

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 (252) hide show
  1. package/dist/chart-4KHwhatb.js +1 -0
  2. package/dist/index-5ZDQNjel.js +4 -0
  3. package/dist/{index-0TO7mjm5.js → index-HNRMy1_g.js} +1 -1
  4. package/dist/{index-g6o3vQXo.js → index-xa8K5AHD.js} +1 -1
  5. package/dist/index.min.css +1 -1
  6. package/dist/index.system.min.js +1 -1
  7. package/dist/wang-editor-YqnK5uQU.js +1 -0
  8. package/dist/{xlsx-util-qdXxbg2A.js → xlsx-util-nDELbrGS.js} +1 -1
  9. package/es/common/action-toolbar/action-toolbar.mjs +4 -3
  10. package/es/common/custom-theme/custom-theme.mjs +3 -2
  11. package/es/common/data-import2/data-import2.mjs +2 -5
  12. package/es/common/emoji-select/components/categories/categories.mjs +2 -1
  13. package/es/common/extend-action-timeline/extend-action-timeline.mjs +3 -2
  14. package/es/common/grid-setting/grid-setting.mjs +2 -1
  15. package/es/common/index.mjs +2 -0
  16. package/es/common/pagination/pagination.mjs +2 -1
  17. package/es/common/quick-edit/quick-edit.css +1 -0
  18. package/es/common/quick-edit/quick-edit.d.ts +38 -0
  19. package/es/common/quick-edit/quick-edit.mjs +116 -0
  20. package/es/common/rawitem/rawitem.mjs +2 -1
  21. package/es/control/app-menu/app-menu.mjs +2 -2
  22. package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +2 -2
  23. package/es/control/app-menu-icon-view/app-menu-icon-view.mjs +3 -2
  24. package/es/control/calendar/calendar.mjs +2 -1
  25. package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +2 -1
  26. package/es/control/calendar/components/calendar-week/calendar-week.mjs +2 -1
  27. package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +3 -2
  28. package/es/control/chart/chart.mjs +8 -0
  29. package/es/control/context-menu/context-menu.mjs +4 -3
  30. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +0 -1
  31. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.mjs +2 -1
  32. package/es/control/dashboard/dashboard-design/dashboard-design.mjs +5 -4
  33. package/es/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.mjs +3 -2
  34. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +2 -1
  35. package/es/control/drtab/drtab-control.util.mjs +1 -1
  36. package/es/control/drtab/drtab.mjs +2 -1
  37. package/es/control/form/form-detail/form-button/form-button.mjs +2 -1
  38. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.mjs +3 -2
  39. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +2 -2
  40. package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +2 -1
  41. package/es/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.mjs +2 -1
  42. package/es/control/grid/grid/grid-control.util.d.ts +0 -2
  43. package/es/control/grid/grid/grid-control.util.mjs +9 -72
  44. package/es/control/grid/grid/grid.css +1 -1
  45. package/es/control/grid/grid/grid.d.ts +0 -2
  46. package/es/control/grid/grid/grid.mjs +1 -7
  47. package/es/control/grid/grid/index.d.ts +0 -2
  48. package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +3 -2
  49. package/es/control/grid/row-edit-popover/row-edit-popover.d.ts +1 -1
  50. package/es/control/kanban/kanban.mjs +2 -2
  51. package/es/control/list/list.mjs +2 -1
  52. package/es/control/report-panel/report-panel.mjs +5 -0
  53. package/es/control/search-bar/filter-tree/filter-tree.d.ts +1 -1
  54. package/es/control/search-bar/search-bar.mjs +3 -2
  55. package/es/control/search-bar/search-groups/search-groups.mjs +6 -6
  56. package/es/control/toolbar/export-excel/export-excel.mjs +3 -2
  57. package/es/control/toolbar/short-cut-button/short-cut-button.mjs +2 -4
  58. package/es/control/toolbar/toolbar.css +1 -1
  59. package/es/control/toolbar/toolbar.mjs +150 -13
  60. package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +3 -2
  61. package/es/control/wizard-panel/wizard-panel.mjs +2 -1
  62. package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -0
  63. package/es/editor/array/ibiz-array/ibiz-array.mjs +12 -3
  64. package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.mjs +2 -1
  65. package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +2 -1
  66. package/es/editor/data-picker/ibiz-picker/ibiz-picker.mjs +2 -1
  67. package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.mjs +2 -1
  68. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +9 -4
  69. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -1
  70. package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.mjs +2 -9
  71. package/es/editor/html/html-editor.controller.d.ts +88 -0
  72. package/es/editor/html/html-editor.controller.mjs +169 -6
  73. package/es/editor/html/wang-editor/component/emoji/emoji.css +1 -0
  74. package/es/editor/html/wang-editor/component/emoji/emoji.d.ts +17 -0
  75. package/es/editor/html/wang-editor/component/emoji/emoji.mjs +42 -0
  76. package/es/editor/html/wang-editor/component/index.d.ts +1 -0
  77. package/es/editor/html/wang-editor/component/index.mjs +3 -0
  78. package/es/editor/html/wang-editor/element/emoji.d.ts +7 -0
  79. package/es/editor/html/wang-editor/element/emoji.mjs +22 -0
  80. package/es/editor/html/wang-editor/element/index.d.ts +1 -0
  81. package/es/editor/html/wang-editor/element/index.mjs +3 -0
  82. package/es/editor/html/wang-editor/index.d.ts +4 -0
  83. package/es/editor/html/wang-editor/index.mjs +11 -0
  84. package/es/editor/html/wang-editor/module/ai-module.d.ts +67 -0
  85. package/es/editor/html/wang-editor/module/ai-module.mjs +76 -0
  86. package/es/editor/html/wang-editor/module/emoji-module.d.ts +7 -0
  87. package/es/editor/html/wang-editor/module/emoji-module.mjs +125 -0
  88. package/es/editor/html/wang-editor/module/index.d.ts +2 -0
  89. package/es/editor/html/wang-editor/module/index.mjs +4 -0
  90. package/es/editor/html/wang-editor/plugin/index.d.ts +1 -0
  91. package/es/editor/html/wang-editor/plugin/index.mjs +3 -0
  92. package/es/editor/html/wang-editor/plugin/plugin.d.ts +7 -0
  93. package/es/editor/html/wang-editor/plugin/plugin.mjs +23 -0
  94. package/es/editor/html/wang-editor/wang-editor.css +1 -1
  95. package/es/editor/html/wang-editor/wang-editor.mjs +7 -7
  96. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
  97. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +10 -3
  98. package/es/editor/span/span/span.mjs +2 -2
  99. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
  100. package/es/editor/text-box/ibiz-input-number/ibiz-input-number.mjs +5 -2
  101. package/es/editor/text-box/input/input.d.ts +1 -0
  102. package/es/editor/text-box/input/input.mjs +17 -4
  103. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +2 -1
  104. package/es/index.mjs +1 -0
  105. package/es/locale/en/index.d.ts +1 -0
  106. package/es/locale/en/index.mjs +2 -1
  107. package/es/locale/zh-CN/index.d.ts +1 -0
  108. package/es/locale/zh-CN/index.mjs +2 -1
  109. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.mjs +89 -0
  110. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/helpers/attachto.mjs +47 -0
  111. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/hooks.mjs +1 -0
  112. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/htmldomapi.mjs +115 -0
  113. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.mjs +18 -0
  114. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/init.mjs +376 -0
  115. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/is.mjs +9 -0
  116. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/jsx.mjs +64 -0
  117. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/attributes.mjs +59 -0
  118. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/class.mjs +28 -0
  119. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/dataset.mjs +42 -0
  120. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.mjs +85 -0
  121. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/props.mjs +24 -0
  122. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/style.mjs +115 -0
  123. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/thunk.mjs +52 -0
  124. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/tovnode.mjs +62 -0
  125. package/es/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/vnode.mjs +6 -0
  126. package/es/panel-component/auth-captcha/auth-captcha.mjs +2 -1
  127. package/es/panel-component/panel-button/panel-button.mjs +2 -1
  128. package/es/panel-component/short-cut/short-cut.mjs +2 -2
  129. package/es/panel-component/user-action/user-action.mjs +2 -1
  130. package/es/panel-component/user-message/async-action/async-action/async-action.mjs +2 -1
  131. package/es/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.mjs +2 -1
  132. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.d.ts +1 -0
  133. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.mjs +10 -4
  134. package/es/panel-component/user-message/internal-message/internal-message-html/internal-message-html.provider.d.ts +1 -0
  135. package/es/panel-component/user-message/user-message.mjs +3 -2
  136. package/es/util/index.d.ts +1 -0
  137. package/es/util/index.mjs +1 -0
  138. package/es/util/notification-util/notification-util.mjs +3 -1
  139. package/es/util/wang-editor-util/wang-editor-util.d.ts +11 -0
  140. package/es/util/wang-editor-util/wang-editor-util.mjs +12 -0
  141. package/lib/common/action-toolbar/action-toolbar.cjs +4 -3
  142. package/lib/common/custom-theme/custom-theme.cjs +3 -2
  143. package/lib/common/data-import2/data-import2.cjs +1 -4
  144. package/lib/common/emoji-select/components/categories/categories.cjs +2 -1
  145. package/lib/common/extend-action-timeline/extend-action-timeline.cjs +3 -2
  146. package/lib/common/grid-setting/grid-setting.cjs +2 -1
  147. package/lib/common/index.cjs +2 -0
  148. package/lib/common/pagination/pagination.cjs +2 -1
  149. package/lib/common/quick-edit/quick-edit.cjs +118 -0
  150. package/lib/common/quick-edit/quick-edit.css +1 -0
  151. package/lib/common/rawitem/rawitem.cjs +2 -1
  152. package/lib/control/app-menu/app-menu.cjs +1 -1
  153. package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +1 -1
  154. package/lib/control/app-menu-icon-view/app-menu-icon-view.cjs +3 -2
  155. package/lib/control/calendar/calendar.cjs +2 -1
  156. package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +2 -1
  157. package/lib/control/calendar/components/calendar-week/calendar-week.cjs +2 -1
  158. package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +3 -2
  159. package/lib/control/chart/chart.cjs +8 -0
  160. package/lib/control/context-menu/context-menu.cjs +4 -3
  161. package/lib/control/dashboard/custom-dashboard-container/custom-dashboard-container.cjs +2 -1
  162. package/lib/control/dashboard/dashboard-design/dashboard-design.cjs +5 -4
  163. package/lib/control/dashboard/portlet/menu-portlet/app-menu-portlet/app-menu-portlet.cjs +3 -2
  164. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +2 -1
  165. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  166. package/lib/control/drtab/drtab.cjs +2 -1
  167. package/lib/control/form/form-detail/form-button/form-button.cjs +2 -1
  168. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.cjs +3 -2
  169. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +1 -1
  170. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +2 -1
  171. package/lib/control/form/form-detail/form-mdctrl/mdctrl-container2/mdctrl-container2.cjs +2 -1
  172. package/lib/control/grid/grid/grid-control.util.cjs +9 -72
  173. package/lib/control/grid/grid/grid.cjs +1 -7
  174. package/lib/control/grid/grid/grid.css +1 -1
  175. package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -2
  176. package/lib/control/kanban/kanban.cjs +1 -1
  177. package/lib/control/list/list.cjs +2 -1
  178. package/lib/control/report-panel/report-panel.cjs +5 -0
  179. package/lib/control/search-bar/search-bar.cjs +3 -2
  180. package/lib/control/search-bar/search-groups/search-groups.cjs +5 -5
  181. package/lib/control/toolbar/export-excel/export-excel.cjs +3 -2
  182. package/lib/control/toolbar/short-cut-button/short-cut-button.cjs +2 -4
  183. package/lib/control/toolbar/toolbar.cjs +150 -13
  184. package/lib/control/toolbar/toolbar.css +1 -1
  185. package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +3 -2
  186. package/lib/control/wizard-panel/wizard-panel.cjs +2 -1
  187. package/lib/editor/array/ibiz-array/ibiz-array.cjs +12 -3
  188. package/lib/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.cjs +2 -1
  189. package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +2 -1
  190. package/lib/editor/data-picker/ibiz-picker/ibiz-picker.cjs +2 -1
  191. package/lib/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.cjs +2 -1
  192. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +9 -4
  193. package/lib/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.cjs +1 -8
  194. package/lib/editor/html/html-editor.controller.cjs +169 -6
  195. package/lib/editor/html/wang-editor/component/emoji/emoji.cjs +44 -0
  196. package/lib/editor/html/wang-editor/component/emoji/emoji.css +1 -0
  197. package/lib/editor/html/wang-editor/component/index.cjs +7 -0
  198. package/lib/editor/html/wang-editor/element/emoji.cjs +24 -0
  199. package/lib/editor/html/wang-editor/element/index.cjs +7 -0
  200. package/lib/editor/html/wang-editor/index.cjs +19 -0
  201. package/lib/editor/html/wang-editor/module/ai-module.cjs +78 -0
  202. package/lib/editor/html/wang-editor/module/emoji-module.cjs +127 -0
  203. package/lib/editor/html/wang-editor/module/index.cjs +9 -0
  204. package/lib/editor/html/wang-editor/plugin/index.cjs +7 -0
  205. package/lib/editor/html/wang-editor/plugin/plugin.cjs +25 -0
  206. package/lib/editor/html/wang-editor/wang-editor.cjs +7 -7
  207. package/lib/editor/html/wang-editor/wang-editor.css +1 -1
  208. package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +10 -3
  209. package/lib/editor/span/span/span.cjs +1 -1
  210. package/lib/editor/text-box/ibiz-input-number/ibiz-input-number.cjs +5 -2
  211. package/lib/editor/text-box/input/input.cjs +16 -3
  212. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +2 -1
  213. package/lib/index.cjs +2 -0
  214. package/lib/locale/en/index.cjs +2 -1
  215. package/lib/locale/zh-CN/index.cjs +2 -1
  216. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.cjs +93 -0
  217. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/helpers/attachto.cjs +49 -0
  218. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/hooks.cjs +2 -0
  219. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/htmldomapi.cjs +117 -0
  220. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.cjs +42 -0
  221. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/init.cjs +378 -0
  222. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/is.cjs +12 -0
  223. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/jsx.cjs +67 -0
  224. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/attributes.cjs +61 -0
  225. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/class.cjs +30 -0
  226. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/dataset.cjs +44 -0
  227. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/eventlisteners.cjs +87 -0
  228. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/props.cjs +26 -0
  229. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/modules/style.cjs +117 -0
  230. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/thunk.cjs +54 -0
  231. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/tovnode.cjs +64 -0
  232. package/lib/node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/vnode.cjs +8 -0
  233. package/lib/panel-component/auth-captcha/auth-captcha.cjs +2 -1
  234. package/lib/panel-component/panel-button/panel-button.cjs +2 -1
  235. package/lib/panel-component/short-cut/short-cut.cjs +1 -1
  236. package/lib/panel-component/user-action/user-action.cjs +2 -1
  237. package/lib/panel-component/user-message/async-action/async-action/async-action.cjs +2 -1
  238. package/lib/panel-component/user-message/internal-message/common/internal-message-container/internal-message-container.cjs +2 -1
  239. package/lib/panel-component/user-message/internal-message/internal-message-html/internal-message-html.cjs +9 -3
  240. package/lib/panel-component/user-message/user-message.cjs +3 -2
  241. package/lib/util/index.cjs +2 -0
  242. package/lib/util/notification-util/notification-util.cjs +3 -1
  243. package/lib/util/wang-editor-util/wang-editor-util.cjs +14 -0
  244. package/package.json +7 -6
  245. package/dist/chart-HuCq_rW2.js +0 -1
  246. package/dist/index-Dq21zXhV.js +0 -4
  247. package/dist/wang-editor-XpJH4SXt.js +0 -1
  248. package/es/editor/html/wang-editor/ai/ai-modules.d.ts +0 -10
  249. package/es/editor/html/wang-editor/ai/ai-modules.mjs +0 -32
  250. package/lib/editor/html/wang-editor/ai/ai-modules.cjs +0 -34
  251. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.27_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.28-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  252. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.27_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.28-alpha.1_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -0,0 +1,127 @@
1
+ 'use strict';
2
+
3
+ require('../../../../node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/index.cjs');
4
+ var core = require('@ibiz-template/core');
5
+ var h = require('../../../../node_modules/.pnpm/snabbdom@3.5.1/node_modules/snabbdom/build/h.cjs');
6
+
7
+ "use strict";
8
+ var __defProp = Object.defineProperty;
9
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
+ var __publicField = (obj, key, value) => {
11
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
12
+ return value;
13
+ };
14
+ const renderElemConf = {
15
+ type: "emoji",
16
+ renderElem: (elem) => {
17
+ const { data = {} } = elem;
18
+ const vnode = h.h(
19
+ "emoji-elem",
20
+ {
21
+ dataset: { value: data.emoji ? core.base64ToStr(data.emoji) : "" },
22
+ props: {
23
+ contentEditable: false
24
+ // 不可编辑
25
+ }
26
+ },
27
+ []
28
+ );
29
+ return vnode;
30
+ }
31
+ };
32
+ const elemToHtmlConf = {
33
+ type: "emoji",
34
+ elemToHtml: (elem) => {
35
+ const { data } = elem;
36
+ return '<span data-w-e-type="emoji" class="emoji">'.concat(data.emoji, "</span>");
37
+ }
38
+ };
39
+ const parseHtmlConf = {
40
+ selector: 'span[data-w-e-type="emoji"]',
41
+ parseElemHtml: (elem) => {
42
+ const data = {
43
+ emoji: elem.innerHTML
44
+ };
45
+ return {
46
+ data,
47
+ type: "emoji",
48
+ children: [{ text: "" }]
49
+ };
50
+ }
51
+ };
52
+ class EmojiButtonMenu {
53
+ /**
54
+ * Creates an instance of EmojiButtonMenu.
55
+ * @memberof EmojiButtonMenu
56
+ */
57
+ constructor() {
58
+ /**
59
+ * 标题
60
+ *
61
+ * @memberof EmojiButtonMenu
62
+ */
63
+ __publicField(this, "title", "".concat(ibiz.i18n.t("editor.html.wangEditor.emoji")));
64
+ /**
65
+ * 菜单类型
66
+ *
67
+ * @memberof EmojiButtonMenu
68
+ */
69
+ __publicField(this, "tag", "button");
70
+ /**
71
+ * 菜单图标
72
+ *
73
+ * @memberof EmojiButtonMenu
74
+ */
75
+ __publicField(this, "iconSvg", "<svg viewBox='0 0 1040 1024' version='1.1' xmlns='http://www.w3.org/2000/svg' p-id='1490' width='1em' height='1em' stroke='var(--w-e-toolbar-color)' > <path stroke-width='38' d='M512.075261 1024A511.774217 511.774217 0 1 1 730.482434 48.769072a37.630457 37.630457 0 1 1-32.061149 68.035867 436.513303 436.513303 0 1 0 250.468323 395.270322 37.630457 37.630457 0 0 1 75.260914 0 512.526826 512.526826 0 0 1-512.075261 511.924739z' p-id='1491' ></path> <path stroke-width='38' d='M333.857416 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.499339 57.499339 0 0 0-57.348817-57.348817zM686.53006 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.348817 57.348817 0 0 0-57.348817-57.348817zM515.236219 783.165074c-162.864619 0-262.359547-141.942084-262.359547-219.159782a30.104366 30.104366 0 0 1 60.208731 0c0 48.618551 76.314567 158.951051 202.150816 158.951051s193.571072-134.114949 193.571072-158.951051a30.104366 30.104366 0 0 1 60.208731 0c0 54.488902-90.012054 219.159782-253.779803 219.159782zM1009.549904 207.720123h-67.132735V139.985301a30.104366 30.104366 0 1 0-60.208732 0v67.734822h-67.734822a30.104366 30.104366 0 0 0-30.104366 30.104366 30.104366 30.104366 0 0 0 30.104366 30.104366h67.734822v67.734823a30.104366 30.104366 0 0 0 60.208732 0v-67.734823h67.734823a30.104366 30.104366 0 0 0 30.104365-30.104366 30.104366 30.104366 0 0 0-30.706453-30.104366z' p-id='1492' ></path> </svg>");
76
+ }
77
+ /**
78
+ * 菜单是否需要激活(如选中加粗文本,“加粗”菜单会激活),用不到则返回 false
79
+ *
80
+ * @return {*} {boolean}
81
+ * @memberof EmojiButtonMenu
82
+ */
83
+ isActive() {
84
+ return false;
85
+ }
86
+ /**
87
+ * 获取菜单执行时的 value ,用不到则返回空 字符串或 false
88
+ *
89
+ * @return {*} {(string | boolean)}
90
+ * @memberof EmojiButtonMenu
91
+ */
92
+ getValue() {
93
+ return false;
94
+ }
95
+ /**
96
+ * 菜单是否需要禁用(如选中 H1 ,“引用”菜单被禁用),用不到则返回 false
97
+ *
98
+ * @return {*} {boolean}
99
+ * @memberof EmojiButtonMenu
100
+ */
101
+ isDisabled() {
102
+ return false;
103
+ }
104
+ /**
105
+ * 点击菜单时触发的函数
106
+ *
107
+ * @param {IDomEditor} editor
108
+ * @memberof EmojiButtonMenu
109
+ */
110
+ exec(editor) {
111
+ editor.emit("openEmojiSelect");
112
+ }
113
+ }
114
+ const EmojiMenu = {
115
+ key: "emoji",
116
+ factory() {
117
+ return new EmojiButtonMenu();
118
+ }
119
+ };
120
+ const EmojiModule = {
121
+ renderElems: [renderElemConf],
122
+ elemsToHtml: [elemToHtmlConf],
123
+ parseElemsHtml: [parseHtmlConf],
124
+ menus: [EmojiMenu]
125
+ };
126
+
127
+ exports.EmojiModule = EmojiModule;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ var aiModule = require('./ai-module.cjs');
4
+ var emojiModule = require('./emoji-module.cjs');
5
+
6
+ "use strict";
7
+
8
+ exports.AIMenu = aiModule.AIMenu;
9
+ exports.EmojiModule = emojiModule.EmojiModule;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ var plugin = require('./plugin.cjs');
4
+
5
+ "use strict";
6
+
7
+ exports.Plugin = plugin.Plugin;
@@ -0,0 +1,25 @@
1
+ 'use strict';
2
+
3
+ var editor = require('@wangeditor/editor');
4
+
5
+ "use strict";
6
+ const Plugin = (editor$1) => {
7
+ const { isInline, isVoid } = editor$1;
8
+ editor$1.isInline = (elem) => {
9
+ const type = editor.DomEditor.getNodeType(elem);
10
+ if (type === "emoji") {
11
+ return true;
12
+ }
13
+ return isInline(elem);
14
+ };
15
+ editor$1.isVoid = (elem) => {
16
+ const type = editor.DomEditor.getNodeType(elem);
17
+ if (type === "emoji") {
18
+ return true;
19
+ }
20
+ return isVoid(elem);
21
+ };
22
+ return editor$1;
23
+ };
24
+
25
+ exports.Plugin = Plugin;
@@ -73,14 +73,12 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
73
73
  return url;
74
74
  };
75
75
  const toolbarConfig = {
76
- excludeKeys: ["group-video"]
77
- };
78
- if (c.chatCompletion) {
79
- toolbarConfig.insertKeys = {
76
+ excludeKeys: ["group-video", "emotion"],
77
+ insertKeys: {
80
78
  index: 60,
81
- keys: ["|", "aichart"]
82
- };
83
- }
79
+ keys: c.chatCompletion ? ["emoji", "|", "aichart"] : ["emoji"]
80
+ }
81
+ };
84
82
  const editorConfig = {
85
83
  placeholder: c.placeHolder,
86
84
  readOnly: hasEnableEdit.value ? readonlyState.value : props.readonly,
@@ -232,6 +230,7 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
232
230
  };
233
231
  const handleCreated = (editor) => {
234
232
  editorRef.value = editor;
233
+ c.onCreated(editorRef.value);
235
234
  editor.setHtml(valueHtml.value);
236
235
  editor.on("aiClick", () => {
237
236
  onClickAI();
@@ -476,6 +475,7 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
476
475
  calcHtmlStyle();
477
476
  });
478
477
  vue.onUnmounted(() => {
478
+ c.onDestroyed();
479
479
  if (resizeObserver) {
480
480
  resizeObserver.disconnect();
481
481
  }
@@ -1 +1 @@
1
- .ibiz-html{--ibiz-html-height:300px;display:inline-block;width:100%;height:100%;--w-e-textarea-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-color:var(--ibiz-color-text-2);--w-e-textarea-border-color:var(--ibiz-color-border);--w-e-textarea-slight-border-color:var(--ibiz-color-border);--w-e-textarea-slight-color:var(--ibiz-color-text-3);--w-e-textarea-slight-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-selected-border-color:var(--ibiz-color-border);--w-e-textarea-handler-bg-color:var(--ibiz-color-primary);--w-e-toolbar-color:var(--ibiz-color-text-0);--w-e-toolbar-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-active-color:var(--ibiz-color-text-0);--w-e-toolbar-active-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-disabled-color:var(--ibiz-color-disabled-text);--w-e-toolbar-border-color:var(--ibiz-color-border);--w-e-modal-button-bg-color:var(--ibiz-color-bg-1);--w-e-modal-button-border-color:var(--ibiz-color-border)}.ibiz-html .ibiz-html-content{display:flex;flex-direction:column;height:100%;background-color:var(--ibiz-color-bg-0)}.ibiz-html .ibiz-html-editor{height:var(--ibiz-html-height)!important;padding:0;overflow-y:scroll;border:1px solid var(--ibiz-color-border)}.ibiz-html .ibiz-html-editor.is-readonly{height:auto!important}.ibiz-html .ibiz-html-editor table{width:100%!important;border-collapse:collapse}.ibiz-html .ibiz-html-editor table th{height:var(--ibiz-height-control-large);min-height:var(--ibiz-height-control-large);padding:var(--ibiz-spacing-tight);border:1px solid var(--ibiz-color-border)}.ibiz-html .ibiz-html-editor table td{height:var(--ibiz-height-control-large);min-height:var(--ibiz-height-control-large);padding:var(--ibiz-spacing-tight);empty-cells:show;border:1px solid var(--ibiz-color-border)}.ibiz-html .w-e-menu-tooltip-v5::before{color:var(--ibiz-color-text-0);background-color:var(--w-e-toolbar-bg-color)}.ibiz-html .w-e-full-screen-container{z-index:9999}.ibiz-html .w-e-scroll>div{background-color:var(--ibiz-color-bg-1)}.ibiz-html .table-container table{width:100%}.ibiz-html-editor-readonly .ibiz-html-toolbar{display:none}.ibiz-html-editor-readonly .ibiz-html-editor{border:none}.ibiz-html-footer{display:flex;align-items:center;justify-content:end;margin-top:var(--ibiz-spacing-base-tight);margin-right:var(--ibiz-spacing-tight)}.ibiz-html-footer>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-html-footer__cancel{height:var(--ibiz-height-control-default);line-height:var(--ibiz-height-control-default);color:var(--ibiz-color-text-1);cursor:pointer;opacity:.7}.ibiz-html-footer__cancel:hover{color:var(--ibiz-color-primary);opacity:1}.ibiz-html-footer__save{height:var(--ibiz-height-control-default);padding:0 var(--ibiz-spacing-base);line-height:var(--ibiz-height-control-default);color:var(--ibiz-color-primary-active-text);text-align:center;cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-small)}.ibiz-html-custom-toolbar{display:flex;align-items:center;justify-content:end;width:100%;height:var(--ibiz-height-control-default);padding-right:var(--ibiz-spacing-base);font-size:var(--ibiz-font-size-header-6)}.ibiz-html-custom-toolbar>*+*{margin-left:var(--ibiz-spacing-base-loose)}.ibiz-html-custom-toolbar i{cursor:pointer}.ibiz-html-custom-toolbar i:hover{color:var(--ibiz-color-primary)}.ibiz-html-message{width:500px;max-width:unset}.ibiz-html-message__message-content--message-tip{color:var(--ibiz-color-text-3)}.ibiz-html-message__message-cancel{color:var(--ibiz-color-text-1);background-color:transparent}.ibiz-html-message__message-cancel:hover{color:var(--ibiz-color-primary);background-color:transparent}.ibiz-html-message__message-comfire{background-color:var(--ibiz-color-danger)!important}.ibiz-html-message__message-comfire:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-danger)}.ibiz-html-dialog-full-screen{height:80%}.ibiz-html-dialog-full-screen .ibiz-html{padding:0 var(--ibiz-spacing-extra-loose);--w-e-toolbar-bg-color:var(--ibiz-color-bg-0)}.ibiz-html-dialog-full-screen .ibiz-html-custom-toolbar{height:56px}.ibiz-html-dialog-full-screen .ibiz-html-content{height:calc(100% - 124px)}.ibiz-html-dialog-full-screen .ibiz-html-content .ibiz-html-editor{height:100%!important}.ibiz-html-footer-dialog{height:68px;margin-top:0}
1
+ .ibiz-html{--ibiz-html-height:300px;display:inline-block;width:100%;height:100%;--w-e-textarea-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-color:var(--ibiz-color-text-2);--w-e-textarea-border-color:var(--ibiz-color-border);--w-e-textarea-slight-border-color:var(--ibiz-color-border);--w-e-textarea-slight-color:var(--ibiz-color-text-3);--w-e-textarea-slight-bg-color:var(--ibiz-color-bg-1);--w-e-textarea-selected-border-color:var(--ibiz-color-border);--w-e-textarea-handler-bg-color:var(--ibiz-color-primary);--w-e-toolbar-color:var(--ibiz-color-text-0);--w-e-toolbar-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-active-color:var(--ibiz-color-text-0);--w-e-toolbar-active-bg-color:var(--ibiz-color-bg-1);--w-e-toolbar-disabled-color:var(--ibiz-color-disabled-text);--w-e-toolbar-border-color:var(--ibiz-color-border);--w-e-modal-button-bg-color:var(--ibiz-color-bg-1);--w-e-modal-button-border-color:var(--ibiz-color-border)}.ibiz-html .ibiz-html-content{display:flex;flex-direction:column;height:100%;background-color:var(--ibiz-color-bg-0)}.ibiz-html .ibiz-html-editor{height:var(--ibiz-html-height)!important;padding:0;overflow-y:scroll;border:1px solid var(--ibiz-color-border)}.ibiz-html .ibiz-html-editor.is-readonly{height:auto!important}.ibiz-html .ibiz-html-editor table{width:100%!important;border-collapse:collapse}.ibiz-html .ibiz-html-editor table th{height:var(--ibiz-height-control-large);min-height:var(--ibiz-height-control-large);padding:var(--ibiz-spacing-tight);border:1px solid var(--ibiz-color-border)}.ibiz-html .ibiz-html-editor table td{height:var(--ibiz-height-control-large);min-height:var(--ibiz-height-control-large);padding:var(--ibiz-spacing-tight);empty-cells:show;border:1px solid var(--ibiz-color-border)}.ibiz-html .w-e-menu-tooltip-v5::before{color:var(--ibiz-color-text-0);background-color:var(--w-e-toolbar-bg-color)}.ibiz-html .w-e-full-screen-container{z-index:9999}.ibiz-html .w-e-scroll>div{background-color:var(--ibiz-color-bg-1)}.ibiz-html .table-container table{width:100%}.ibiz-html-editor-readonly .ibiz-html-toolbar{display:none}.ibiz-html-editor-readonly .ibiz-html-editor{border:none}.ibiz-html-footer{display:flex;align-items:center;justify-content:end;margin-top:var(--ibiz-spacing-base-tight);margin-right:var(--ibiz-spacing-tight)}.ibiz-html-footer>*+*{margin-left:var(--ibiz-spacing-base)}.ibiz-html-footer__cancel{height:var(--ibiz-height-control-default);line-height:var(--ibiz-height-control-default);color:var(--ibiz-color-text-1);cursor:pointer;opacity:.7}.ibiz-html-footer__cancel:hover{color:var(--ibiz-color-primary);opacity:1}.ibiz-html-footer__save{height:var(--ibiz-height-control-default);padding:0 var(--ibiz-spacing-base);line-height:var(--ibiz-height-control-default);color:var(--ibiz-color-primary-active-text);text-align:center;cursor:pointer;background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-small)}.ibiz-html-custom-toolbar{display:flex;align-items:center;justify-content:end;width:100%;height:var(--ibiz-height-control-default);padding-right:var(--ibiz-spacing-base);font-size:var(--ibiz-font-size-header-6)}.ibiz-html-custom-toolbar>*+*{margin-left:var(--ibiz-spacing-base-loose)}.ibiz-html-custom-toolbar i{cursor:pointer}.ibiz-html-custom-toolbar i:hover{color:var(--ibiz-color-primary)}.ibiz-html-message{width:500px;max-width:unset}.ibiz-html-message__message-content--message-tip{color:var(--ibiz-color-text-3)}.ibiz-html-message__message-cancel{color:var(--ibiz-color-text-1);background-color:transparent}.ibiz-html-message__message-cancel:hover{color:var(--ibiz-color-primary);background-color:transparent}.ibiz-html-message__message-comfire{background-color:var(--ibiz-color-danger)!important}.ibiz-html-message__message-comfire:hover{box-shadow:0 2px 5px 1px var(--ibiz-color-danger)}.ibiz-html-dialog-full-screen{height:80%}.ibiz-html-dialog-full-screen .ibiz-html{padding:0 var(--ibiz-spacing-extra-loose);--w-e-toolbar-bg-color:var(--ibiz-color-bg-0)}.ibiz-html-dialog-full-screen .ibiz-html-custom-toolbar{height:56px}.ibiz-html-dialog-full-screen .ibiz-html-content{height:calc(100% - 124px)}.ibiz-html-dialog-full-screen .ibiz-html-content .ibiz-html-editor{height:100%!important}.ibiz-html-footer-dialog{height:68px;margin-top:0}emoji-elem{margin:0 1px!important}
@@ -77,20 +77,25 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
77
77
  }, 100);
78
78
  }
79
79
  };
80
- const handleChange = (value, index) => {
80
+ const onEmit = (eventName, value, valueName) => {
81
+ if (eventName === c.triggerMode) {
82
+ emit("change", value, valueName);
83
+ }
84
+ };
85
+ const handleChange = (value, index, eventName = "blur") => {
81
86
  if (index === 0) {
82
87
  minValue.value = value;
83
88
  } else if (index === 1) {
84
89
  maxValue.value = value;
85
90
  }
86
91
  if (minValue.value !== null && maxValue.value !== null) {
87
- emit("change", [minValue.value, maxValue.value].join(valueSeparator));
92
+ onEmit(eventName, [minValue.value, maxValue.value].join(valueSeparator));
88
93
  setEditable(false);
89
94
  useInValueChange();
90
95
  }
91
96
  if (refFormItem.value) {
92
97
  const valueName = refFormItem.value[index];
93
- emit("change", value, valueName);
98
+ onEmit(eventName, value, valueName);
94
99
  useInValueChange();
95
100
  }
96
101
  };
@@ -156,6 +161,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
156
161
  "placeholder": this.startPlaceHolder,
157
162
  "controls": false,
158
163
  "onChange": (val) => this.handleChange(val, 0),
164
+ "onInput": (val) => this.handleChange(val, 0, "input"),
159
165
  "onKeyup": this.handleKeyUp,
160
166
  "onFocus": this.onFocus,
161
167
  "onBlur": this.onBlur
@@ -171,6 +177,7 @@ const IBizNumberRangePicker = /* @__PURE__ */ vue.defineComponent({
171
177
  "placeholder": this.endPlaceHolder,
172
178
  "controls": false,
173
179
  "onChange": (val) => this.handleChange(val, 1),
180
+ "onInput": (val) => this.handleChange(val, 1, "input"),
174
181
  "onKeyup": this.handleKeyUp,
175
182
  "onFocus": this.onFocus,
176
183
  "onBlur": this.onBlur
@@ -76,7 +76,7 @@ const IBizSpan = /* @__PURE__ */ vue.defineComponent({
76
76
  text.value = "".concat(newVal);
77
77
  ibiz.log.error("".concat(newVal, " \u503C\u683C\u5F0F\u5316\u9519\u8BEF"));
78
78
  }
79
- } else if (Number.isNaN(Number(newVal)) && core.isBase64("".concat(newVal))) {
79
+ } else if (core.isEmoji("".concat(newVal))) {
80
80
  text.value = core.base64ToStr("".concat(newVal));
81
81
  } else {
82
82
  text.value = "".concat(newVal);
@@ -83,8 +83,10 @@ const IBizInputNumber = /* @__PURE__ */ vue.defineComponent({
83
83
  }, 100);
84
84
  }
85
85
  };
86
- const handleChange = (e) => {
87
- emit("change", e);
86
+ const handleChange = (e, eventName = "blur") => {
87
+ if (eventName === c.triggerMode) {
88
+ emit("change", e);
89
+ }
88
90
  };
89
91
  vue.watch(editorRef, (newVal) => {
90
92
  if (props.autoFocus && newVal) {
@@ -166,6 +168,7 @@ const IBizInputNumber = /* @__PURE__ */ vue.defineComponent({
166
168
  "disabled": this.disabled,
167
169
  "controls": false,
168
170
  "onChange": this.handleChange,
171
+ "onInput": (value) => this.handleChange(value, "input"),
169
172
  "onFocus": this.onFocus,
170
173
  "onBlur": this.onBlur,
171
174
  "onKeyup": this.handleKeyUp
@@ -60,7 +60,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
60
60
  if (newVal !== oldVal) {
61
61
  if (newVal == null) {
62
62
  currentVal.value = "";
63
- } else if (Number.isNaN(Number(newVal)) && core.isBase64("".concat(newVal))) {
63
+ } else if (core.isEmoji("".concat(newVal))) {
64
64
  currentVal.value = core.base64ToStr("".concat(newVal));
65
65
  } else {
66
66
  currentVal.value = newVal.toString();
@@ -75,6 +75,11 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
75
75
  }
76
76
  return "";
77
77
  });
78
+ const onEmit = (val, eventName = "blur") => {
79
+ if (eventName === c.triggerMode) {
80
+ emit("change", val);
81
+ }
82
+ };
78
83
  const setEditable = (flag) => {
79
84
  if (flag) {
80
85
  isEditable.value = flag;
@@ -87,7 +92,13 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
87
92
  let blurCacheValue;
88
93
  const handleChange = (val) => {
89
94
  if (blurCacheValue !== val) {
90
- emit("change", val);
95
+ onEmit(val);
96
+ }
97
+ blurCacheValue = void 0;
98
+ };
99
+ const handleInput = (val) => {
100
+ if (blurCacheValue !== val) {
101
+ onEmit(val, "input");
91
102
  }
92
103
  blurCacheValue = void 0;
93
104
  };
@@ -100,7 +111,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
100
111
  const onBlur = (event) => {
101
112
  blurCacheValue = event.target.value;
102
113
  if (blurCacheValue != props.value) {
103
- emit("change", blurCacheValue);
114
+ onEmit(blurCacheValue);
104
115
  }
105
116
  emit("blur", event);
106
117
  setEditable(false);
@@ -239,6 +250,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
239
250
  currentVal,
240
251
  readonlyText,
241
252
  handleChange,
253
+ handleInput,
242
254
  handleKeyUp,
243
255
  onBlur,
244
256
  onFocus,
@@ -306,6 +318,7 @@ const IBizInput = /* @__PURE__ */ vue.defineComponent({
306
318
  "minlength": this.c.model.minLength,
307
319
  "show-word-limit": this.showLimit && this.c.model.showMaxLength,
308
320
  "onChange": this.handleChange,
321
+ "onInput": this.handleInput,
309
322
  "onKeyup": this.handleKeyUp,
310
323
  "onBlur": this.onBlur,
311
324
  "onFocus": this.onFocus,
@@ -5,6 +5,7 @@ var vue3Util = require('@ibiz-template/vue3-util');
5
5
  require('./ibiz-searchcond-edit.css');
6
6
  var qxUtil = require('qx-util');
7
7
  var runtime = require('@ibiz-template/runtime');
8
+ var core = require('@ibiz-template/core');
8
9
 
9
10
  "use strict";
10
11
  const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
@@ -167,7 +168,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
167
168
  }, this.$attrs), null), vue.createVNode(vue.resolveComponent("el-button"), {
168
169
  "ref": "filterButtonRef",
169
170
  "type": "primary",
170
- "title": ibiz.env.enableTitle ? ibiz.i18n.t("app.edit") : void 0,
171
+ "title": core.showTitle(ibiz.i18n.t("app.edit")),
171
172
  "class": this.ns.b("filter"),
172
173
  "onClick": () => this.triggerFilter()
173
174
  }, {
package/lib/index.cjs CHANGED
@@ -126,6 +126,7 @@ var usePagination = require('./util/pagination/use-pagination.cjs');
126
126
  var noticeUtil = require('./util/notice-util/notice-util.cjs');
127
127
  var renderUtil = require('./util/render-util/render-util.cjs');
128
128
  var appUtil = require('./util/app-util/app-util.cjs');
129
+ var wangEditorUtil = require('./util/wang-editor-util/wang-editor-util.cjs');
129
130
  var authGuard = require('./web-app/guard/auth-guard/auth-guard.cjs');
130
131
  var main = require('./web-app/main.cjs');
131
132
  var index$18 = require('./web-app/router/index.cjs');
@@ -258,6 +259,7 @@ exports.usePagination = usePagination.usePagination;
258
259
  exports.NoticeUtil = noticeUtil.NoticeUtil;
259
260
  exports.RenderUtil = renderUtil.RenderUtil;
260
261
  exports.AppUtil = appUtil.AppUtil;
262
+ exports.parseHtml = wangEditorUtil.parseHtml;
261
263
  exports.AuthGuard = authGuard.AuthGuard;
262
264
  exports.runApp = main.runApp;
263
265
  exports.AppRouter = index$18.AppRouter;
@@ -506,7 +506,8 @@ var index = {
506
506
  },
507
507
  html: {
508
508
  wangEditor: {
509
- customTips: "Custom tip"
509
+ customTips: "Custom tip",
510
+ emoji: "Emoji"
510
511
  }
511
512
  },
512
513
  markdown: {
@@ -502,7 +502,8 @@ var index = {
502
502
  },
503
503
  html: {
504
504
  wangEditor: {
505
- customTips: "\u81EA\u5B9A\u4E49\u63D0\u793A"
505
+ customTips: "\u81EA\u5B9A\u4E49\u63D0\u793A",
506
+ emoji: "\u8868\u60C5"
506
507
  }
507
508
  },
508
509
  markdown: {
@@ -0,0 +1,93 @@
1
+ 'use strict';
2
+
3
+ var vnode = require('./vnode.cjs');
4
+ var is = require('./is.cjs');
5
+
6
+ function addNS(data, children, sel) {
7
+ data.ns = "http://www.w3.org/2000/svg";
8
+ if (sel !== "foreignObject" && children !== undefined) {
9
+ for (let i = 0; i < children.length; ++i) {
10
+ const child = children[i];
11
+ if (typeof child === "string")
12
+ continue;
13
+ const childData = child.data;
14
+ if (childData !== undefined) {
15
+ addNS(childData, child.children, child.sel);
16
+ }
17
+ }
18
+ }
19
+ }
20
+ function h(sel, b, c) {
21
+ let data = {};
22
+ let children;
23
+ let text;
24
+ let i;
25
+ if (c !== undefined) {
26
+ if (b !== null) {
27
+ data = b;
28
+ }
29
+ if (is.array(c)) {
30
+ children = c;
31
+ }
32
+ else if (is.primitive(c)) {
33
+ text = c.toString();
34
+ }
35
+ else if (c && c.sel) {
36
+ children = [c];
37
+ }
38
+ }
39
+ else if (b !== undefined && b !== null) {
40
+ if (is.array(b)) {
41
+ children = b;
42
+ }
43
+ else if (is.primitive(b)) {
44
+ text = b.toString();
45
+ }
46
+ else if (b && b.sel) {
47
+ children = [b];
48
+ }
49
+ else {
50
+ data = b;
51
+ }
52
+ }
53
+ if (children !== undefined) {
54
+ for (i = 0; i < children.length; ++i) {
55
+ if (is.primitive(children[i]))
56
+ children[i] = vnode.vnode(undefined, undefined, undefined, children[i], undefined);
57
+ }
58
+ }
59
+ if (sel[0] === "s" &&
60
+ sel[1] === "v" &&
61
+ sel[2] === "g" &&
62
+ (sel.length === 3 || sel[3] === "." || sel[3] === "#")) {
63
+ addNS(data, children, sel);
64
+ }
65
+ return vnode.vnode(sel, data, children, text, undefined);
66
+ }
67
+ /**
68
+ * @experimental
69
+ */
70
+ function fragment(children) {
71
+ let c;
72
+ let text;
73
+ if (is.array(children)) {
74
+ c = children;
75
+ }
76
+ else if (is.primitive(c)) {
77
+ text = children;
78
+ }
79
+ else if (c && c.sel) {
80
+ c = [children];
81
+ }
82
+ if (c !== undefined) {
83
+ for (let i = 0; i < c.length; ++i) {
84
+ if (is.primitive(c[i]))
85
+ c[i] = vnode.vnode(undefined, undefined, undefined, c[i], undefined);
86
+ }
87
+ }
88
+ return vnode.vnode(undefined, {}, c, text, undefined);
89
+ }
90
+
91
+ exports.addNS = addNS;
92
+ exports.fragment = fragment;
93
+ exports.h = h;
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ function pre(vnode, newVnode) {
4
+ const attachData = vnode.data.attachData;
5
+ // Copy created placeholder and real element from old vnode
6
+ newVnode.data.attachData.placeholder = attachData.placeholder;
7
+ newVnode.data.attachData.real = attachData.real;
8
+ // Mount real element in vnode so the patch process operates on it
9
+ vnode.elm = vnode.data.attachData.real;
10
+ }
11
+ function post(_, vnode) {
12
+ // Mount dummy placeholder in vnode so potential reorders use it
13
+ vnode.elm = vnode.data.attachData.placeholder;
14
+ }
15
+ function destroy(vnode) {
16
+ // Remove placeholder
17
+ if (vnode.elm !== undefined) {
18
+ vnode.elm.parentNode.removeChild(vnode.elm);
19
+ }
20
+ // Remove real element from where it was inserted
21
+ vnode.elm = vnode.data.attachData.real;
22
+ }
23
+ function create(_, vnode) {
24
+ const real = vnode.elm;
25
+ const attachData = vnode.data.attachData;
26
+ const placeholder = document.createElement("span");
27
+ // Replace actual element with dummy placeholder
28
+ // Snabbdom will then insert placeholder instead
29
+ vnode.elm = placeholder;
30
+ attachData.target.appendChild(real);
31
+ attachData.real = real;
32
+ attachData.placeholder = placeholder;
33
+ }
34
+ function attachTo(target, vnode) {
35
+ if (vnode.data === undefined)
36
+ vnode.data = {};
37
+ if (vnode.data.hook === undefined)
38
+ vnode.data.hook = {};
39
+ const data = vnode.data;
40
+ const hook = vnode.data.hook;
41
+ data.attachData = { target: target, placeholder: undefined, real: undefined };
42
+ hook.create = create;
43
+ hook.prepatch = pre;
44
+ hook.postpatch = post;
45
+ hook.destroy = destroy;
46
+ return vnode;
47
+ }
48
+
49
+ exports.attachTo = attachTo;