@ibiz-template/vue3-components 0.7.38-alpha.12 → 0.7.38-alpha.21

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 (185) hide show
  1. package/dist/index-3cxXHoLs.js +4 -0
  2. package/dist/{index-B_Fo_3Rt.js → index-CiEIUSX9.js} +1 -1
  3. package/dist/{index-BvI3oZGL.js → index-HW5stxcy.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/{xlsx-util-XDKOLzzW.js → xlsx-util-BlkeQIMu.js} +1 -1
  7. package/es/common/action-toolbar/action-toolbar.mjs +6 -3
  8. package/es/common/control-navigation/control-navigation.css +1 -0
  9. package/es/common/control-navigation/control-navigation.d.ts +32 -0
  10. package/es/common/control-navigation/control-navigation.mjs +116 -0
  11. package/es/common/control-navigation/provider/calendar-navigation.provider.d.ts +17 -0
  12. package/es/common/control-navigation/provider/calendar-navigation.provider.mjs +55 -0
  13. package/es/common/control-navigation/provider/index.d.ts +10 -0
  14. package/es/common/control-navigation/provider/index.mjs +17 -0
  15. package/es/common/control-navigation/provider/navigation-base.provider.d.ts +84 -0
  16. package/es/common/control-navigation/provider/navigation-base.provider.mjs +142 -0
  17. package/es/common/control-navigation/provider/tree-navigation.provider.d.ts +30 -0
  18. package/es/common/control-navigation/provider/tree-navigation.provider.mjs +81 -0
  19. package/es/common/custom-theme/custom-theme-model.mjs +5 -13
  20. package/es/common/gantt-setting/gantt-setting.css +1 -0
  21. package/es/common/gantt-setting/gantt-setting.d.ts +53 -0
  22. package/es/common/gantt-setting/gantt-setting.mjs +217 -0
  23. package/es/common/grid-setting/grid-setting.css +1 -1
  24. package/es/common/grid-setting/grid-setting.d.ts +2 -1
  25. package/es/common/grid-setting/grid-setting.mjs +20 -4
  26. package/es/common/index.mjs +6 -0
  27. package/es/common/nav-split/nav-split.css +1 -0
  28. package/es/common/nav-split/nav-split.d.ts +57 -0
  29. package/es/common/nav-split/nav-split.mjs +209 -0
  30. package/es/common/pql-editor/utils/index.mjs +30 -40
  31. package/es/common/split/split.css +1 -1
  32. package/es/control/app-menu/app-menu.css +1 -1
  33. package/es/control/app-menu/app-menu.d.ts +3 -0
  34. package/es/control/app-menu/app-menu.mjs +54 -16
  35. package/es/control/app-menu/custom-menu-design/custom-menu-design.mjs +11 -3
  36. package/es/control/app-menu/index.d.ts +3 -0
  37. package/es/control/calendar/calendar.css +1 -1
  38. package/es/control/calendar/calendar.d.ts +12 -1
  39. package/es/control/calendar/calendar.mjs +42 -10
  40. package/es/control/calendar/index.d.ts +12 -1
  41. package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +3 -0
  42. package/es/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.mjs +2 -1
  43. package/es/control/data-view/data-view.css +1 -1
  44. package/es/control/data-view/data-view.d.ts +1 -0
  45. package/es/control/data-view/data-view.mjs +21 -3
  46. package/es/control/data-view/index.d.ts +1 -0
  47. package/es/control/drbar/drbar.controller.mjs +1 -1
  48. package/es/control/drtab/drtab-control.util.mjs +1 -1
  49. package/es/control/drtab/drtab.controller.d.ts +9 -1
  50. package/es/control/drtab/drtab.controller.mjs +26 -2
  51. package/es/control/drtab/drtab.css +1 -1
  52. package/es/control/drtab/drtab.d.ts +3 -1
  53. package/es/control/drtab/drtab.mjs +68 -9
  54. package/es/control/drtab/index.d.ts +3 -1
  55. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +4 -0
  56. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  57. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +1 -1
  58. package/es/control/gantt/gantt.css +1 -1
  59. package/es/control/gantt/gantt.d.ts +2 -4
  60. package/es/control/gantt/gantt.mjs +82 -25
  61. package/es/control/gantt/index.d.ts +2 -4
  62. package/es/control/grid/grid/grid-control.util.mjs +2 -2
  63. package/es/control/grid/grid/grid.css +1 -1
  64. package/es/control/grid/grid/grid.mjs +75 -71
  65. package/es/control/list/index.d.ts +1 -0
  66. package/es/control/list/list.css +1 -1
  67. package/es/control/list/list.d.ts +1 -0
  68. package/es/control/list/list.mjs +23 -5
  69. package/es/control/map/map.d.ts +9 -0
  70. package/es/control/map/map.mjs +4 -0
  71. package/es/control/search-bar/search-groups/search-groups.mjs +2 -2
  72. package/es/control/toolbar/toolbar.mjs +3 -0
  73. package/es/control/tree/el-tree-util.d.ts +39 -1
  74. package/es/control/tree/el-tree-util.mjs +70 -2
  75. package/es/control/tree/index.d.ts +16 -14
  76. package/es/control/tree/tree.css +1 -1
  77. package/es/control/tree/tree.d.ts +16 -14
  78. package/es/control/tree/tree.mjs +60 -31
  79. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
  80. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +3 -8
  81. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +22 -23
  82. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +1 -0
  83. package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.mjs +3 -1
  84. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  85. package/es/locale/en/index.d.ts +17 -0
  86. package/es/locale/en/index.mjs +18 -1
  87. package/es/locale/zh-CN/index.d.ts +17 -0
  88. package/es/locale/zh-CN/index.mjs +18 -1
  89. package/es/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  90. package/es/panel-component/index-actions/index-actions.css +1 -1
  91. package/es/panel-component/index.mjs +2 -1
  92. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.controller.mjs +8 -31
  93. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.d.ts +1 -1
  94. package/es/panel-component/nav-breadcrumb/nav-breadcrumb.service.mjs +1 -1
  95. package/es/panel-component/nav-pos-index/nav-pos-index.controller.mjs +7 -2
  96. package/es/panel-component/panel-app-title/index.mjs +4 -0
  97. package/es/panel-component/panel-app-title/panel-app-title.controller.mjs +8 -0
  98. package/es/panel-component/panel-app-title/panel-app-title.css +1 -1
  99. package/es/panel-component/panel-app-title/panel-app-title.mjs +112 -108
  100. package/es/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
  101. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  102. package/es/util/notification-util/notification-util.d.ts +10 -1
  103. package/es/util/notification-util/notification-util.mjs +36 -0
  104. package/es/util/notification-util/upload-manager/file-type.d.ts +8 -0
  105. package/es/util/notification-util/upload-manager/file-type.mjs +207 -0
  106. package/es/util/notification-util/upload-manager/upload-manager.css +1 -0
  107. package/es/util/notification-util/upload-manager/upload-manager.d.ts +64 -0
  108. package/es/util/notification-util/upload-manager/upload-manager.mjs +159 -0
  109. package/es/util/pagination/use-pagination.mjs +5 -4
  110. package/es/view-engine/tab-exp-view.engine.d.ts +9 -0
  111. package/es/view-engine/tab-exp-view.engine.mjs +20 -1
  112. package/lib/common/action-toolbar/action-toolbar.cjs +6 -3
  113. package/lib/common/control-navigation/control-navigation.cjs +118 -0
  114. package/lib/common/control-navigation/control-navigation.css +1 -0
  115. package/lib/common/control-navigation/provider/calendar-navigation.provider.cjs +57 -0
  116. package/lib/common/control-navigation/provider/index.cjs +19 -0
  117. package/lib/common/control-navigation/provider/navigation-base.provider.cjs +144 -0
  118. package/lib/common/control-navigation/provider/tree-navigation.provider.cjs +83 -0
  119. package/lib/common/custom-theme/custom-theme-model.cjs +5 -13
  120. package/lib/common/gantt-setting/gantt-setting.cjs +219 -0
  121. package/lib/common/gantt-setting/gantt-setting.css +1 -0
  122. package/lib/common/grid-setting/grid-setting.cjs +20 -4
  123. package/lib/common/grid-setting/grid-setting.css +1 -1
  124. package/lib/common/index.cjs +6 -0
  125. package/lib/common/nav-split/nav-split.cjs +211 -0
  126. package/lib/common/nav-split/nav-split.css +1 -0
  127. package/lib/common/pql-editor/utils/index.cjs +30 -40
  128. package/lib/common/split/split.css +1 -1
  129. package/lib/control/app-menu/app-menu.cjs +52 -14
  130. package/lib/control/app-menu/app-menu.css +1 -1
  131. package/lib/control/app-menu/custom-menu-design/custom-menu-design.cjs +10 -2
  132. package/lib/control/calendar/calendar.cjs +42 -10
  133. package/lib/control/calendar/calendar.css +1 -1
  134. package/lib/control/dashboard/portlet/filter-portlet/filter-portlet-design/filter-portlet-design.cjs +2 -1
  135. package/lib/control/data-view/data-view.cjs +21 -3
  136. package/lib/control/data-view/data-view.css +1 -1
  137. package/lib/control/drbar/drbar.controller.cjs +1 -1
  138. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  139. package/lib/control/drtab/drtab.cjs +67 -8
  140. package/lib/control/drtab/drtab.controller.cjs +26 -2
  141. package/lib/control/drtab/drtab.css +1 -1
  142. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +1 -1
  143. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.css +1 -1
  144. package/lib/control/gantt/gantt.cjs +80 -23
  145. package/lib/control/gantt/gantt.css +1 -1
  146. package/lib/control/grid/grid/grid-control.util.cjs +2 -2
  147. package/lib/control/grid/grid/grid.cjs +75 -71
  148. package/lib/control/grid/grid/grid.css +1 -1
  149. package/lib/control/list/list.cjs +23 -5
  150. package/lib/control/list/list.css +1 -1
  151. package/lib/control/map/map.cjs +4 -0
  152. package/lib/control/search-bar/search-groups/search-groups.cjs +2 -2
  153. package/lib/control/toolbar/toolbar.cjs +3 -0
  154. package/lib/control/tree/el-tree-util.cjs +70 -0
  155. package/lib/control/tree/tree.cjs +58 -29
  156. package/lib/control/tree/tree.css +1 -1
  157. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +21 -22
  158. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.css +1 -1
  159. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +1 -0
  160. package/lib/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.cjs +3 -1
  161. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.css +1 -1
  162. package/lib/locale/en/index.cjs +18 -1
  163. package/lib/locale/zh-CN/index.cjs +18 -1
  164. package/lib/panel-component/auth-userinfo/auth-userinfo.css +1 -1
  165. package/lib/panel-component/index-actions/index-actions.css +1 -1
  166. package/lib/panel-component/index.cjs +1 -0
  167. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.controller.cjs +7 -30
  168. package/lib/panel-component/nav-breadcrumb/nav-breadcrumb.service.cjs +1 -1
  169. package/lib/panel-component/nav-pos-index/nav-pos-index.controller.cjs +7 -2
  170. package/lib/panel-component/panel-app-title/index.cjs +4 -0
  171. package/lib/panel-component/panel-app-title/panel-app-title.cjs +112 -108
  172. package/lib/panel-component/panel-app-title/panel-app-title.controller.cjs +8 -0
  173. package/lib/panel-component/panel-app-title/panel-app-title.css +1 -1
  174. package/lib/panel-component/panel-index-view-search/panel-index-view-search.css +1 -1
  175. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  176. package/lib/util/notification-util/notification-util.cjs +36 -0
  177. package/lib/util/notification-util/upload-manager/file-type.cjs +209 -0
  178. package/lib/util/notification-util/upload-manager/upload-manager.cjs +161 -0
  179. package/lib/util/notification-util/upload-manager/upload-manager.css +1 -0
  180. package/lib/util/pagination/use-pagination.cjs +5 -4
  181. package/lib/view-engine/tab-exp-view.engine.cjs +19 -0
  182. package/package.json +10 -10
  183. package/dist/index-VQ3FT6ih.js +0 -4
  184. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  185. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.35-alpha.1_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.38-alpha.16_axios@1.7.7_lodash-es@4.17.21_qs@6.13.0_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -0,0 +1,219 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var vue3Util = require('@ibiz-template/vue3-util');
5
+ var ramda = require('ramda');
6
+ require('./gantt-setting.css');
7
+
8
+ "use strict";
9
+ function _isSlot(s) {
10
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
11
+ }
12
+ const selectedIcon = () => vue.createVNode("svg", {
13
+ "viewBox": "0 0 16 16",
14
+ "xmlns": "http://www.w3.org/2000/svg",
15
+ "height": "1em",
16
+ "width": "1em",
17
+ "focusable": "false"
18
+ }, [vue.createVNode("g", {
19
+ "stroke-width": "1",
20
+ "fill-rule": "evenodd"
21
+ }, [vue.createVNode("path", {
22
+ "d": "M6.012 11.201L1.313 6.832l-.817.879 5.54 5.15 9.304-9.163-.842-.855z"
23
+ }, null)])]);
24
+ const closeIcon = () => vue.createVNode("svg", {
25
+ "viewBox": "0 0 16 16",
26
+ "xmlns": "http://www.w3.org/2000/svg",
27
+ "height": "1em",
28
+ "width": "1em",
29
+ "focusable": "false"
30
+ }, [vue.createVNode("g", {
31
+ "stroke-width": "1",
32
+ "fill-rule": "evenodd"
33
+ }, [vue.createVNode("path", {
34
+ "d": "M7.456 7.456V-.115h1.2v7.571h7.572v1.2H8.656v7.572h-1.2V8.656H-.115v-1.2h7.571z",
35
+ "transform": "rotate(45 8.056 8.056)"
36
+ }, null)])]);
37
+ const searchIcon = () => vue.createVNode("svg", {
38
+ "viewBox": "0 0 16 16",
39
+ "xmlns": "http://www.w3.org/2000/svg",
40
+ "height": "1em",
41
+ "width": "1em",
42
+ "focusable": "false"
43
+ }, [vue.createVNode("g", {
44
+ "stroke-width": "1",
45
+ "fill-rule": "evenodd"
46
+ }, [vue.createVNode("path", {
47
+ "d": "M6.751 12.303A5.557 5.557 0 0 1 1.2 6.751C1.2 3.691 3.69 1.2 6.751 1.2a5.558 5.558 0 0 1 5.551 5.551 5.557 5.557 0 0 1-5.551 5.552M6.751 0a6.751 6.751 0 1 0 4.309 11.949l3.855 3.855a.6.6 0 1 0 .849-.849l-3.854-3.853A6.751 6.751 0 0 0 6.751 0"
48
+ }, null)])]);
49
+ const IBizGanttSetting = /* @__PURE__ */ vue.defineComponent({
50
+ name: "IBizGanttSetting",
51
+ props: {
52
+ modal: {
53
+ type: Object,
54
+ required: true
55
+ },
56
+ // 表格列状态数组
57
+ columnStates: {
58
+ type: Object,
59
+ required: true
60
+ },
61
+ // 必须显示的列
62
+ mustShowColumns: {
63
+ type: Array,
64
+ required: true,
65
+ default: () => ["sn", "name"]
66
+ }
67
+ },
68
+ emits: [],
69
+ setup(props) {
70
+ const ns = vue3Util.useNamespace("gantt-setting");
71
+ const optionalInput = vue.ref("");
72
+ const selectedInput = vue.ref("");
73
+ const states = vue.ref([]);
74
+ const calcMustShowColumn = (item) => {
75
+ return props.mustShowColumns.some((item2) => item.key === item2);
76
+ };
77
+ const initData = () => {
78
+ states.value = ramda.clone(props.columnStates);
79
+ };
80
+ vue.watch(() => props.columnStates, () => {
81
+ initData();
82
+ }, {
83
+ immediate: true,
84
+ deep: true
85
+ });
86
+ const onListItemClose = (e, item) => {
87
+ e.stopPropagation();
88
+ Object.assign(item, {
89
+ hidden: !item.hidden
90
+ });
91
+ };
92
+ const onListItemClick = (item) => {
93
+ Object.assign(item, {
94
+ hidden: !item.hidden
95
+ });
96
+ };
97
+ const onClose = () => {
98
+ props.modal.dismiss();
99
+ };
100
+ const onConfirm = () => {
101
+ const modalData = {
102
+ ok: true,
103
+ data: states.value
104
+ };
105
+ props.modal.dismiss(modalData);
106
+ };
107
+ const onResultDefault = () => {
108
+ initData();
109
+ };
110
+ const renderLeftSearch = () => {
111
+ return vue.createVNode(vue.resolveComponent("el-input"), {
112
+ "placeholder": ibiz.i18n.t("app.search"),
113
+ "modelValue": optionalInput.value,
114
+ "onUpdate:modelValue": ($event) => optionalInput.value = $event,
115
+ "clearable": true
116
+ }, {
117
+ prefix: () => searchIcon()
118
+ });
119
+ };
120
+ const renderRightSearch = () => {
121
+ return vue.createVNode(vue.resolveComponent("el-input"), {
122
+ "placeholder": ibiz.i18n.t("app.search"),
123
+ "modelValue": selectedInput.value,
124
+ "onUpdate:modelValue": ($event) => selectedInput.value = $event,
125
+ "clearable": true
126
+ }, {
127
+ prefix: () => searchIcon()
128
+ });
129
+ };
130
+ const renderListItem = (item, type = "optional") => {
131
+ const caption = item.caption || "";
132
+ const isOptional = type === "optional";
133
+ const isMust = calcMustShowColumn(item);
134
+ if (!isOptional && item.hidden && !isMust) {
135
+ return null;
136
+ }
137
+ const isSelectedShow = isOptional && states.value.some((item2) => item.key === item2.key && !item.hidden);
138
+ return vue.createVNode("div", {
139
+ "class": [ns.b("list-item"), ns.is("disabled", isMust && isOptional)],
140
+ "onClick": () => isOptional && !isMust && onListItemClick(item)
141
+ }, [vue.createVNode("div", {
142
+ "class": ns.be("list-item", "caption")
143
+ }, [caption]), vue.createVNode("div", {
144
+ "class": [ns.be("list-item", "end-icon")]
145
+ }, [(isSelectedShow || isOptional && isMust) && selectedIcon(), !isOptional && !isMust && vue.createVNode("div", {
146
+ "class": ns.bem("list-item", "end-icon", "close"),
147
+ "onClick": (e) => onListItemClose(e, item)
148
+ }, [closeIcon()])])]);
149
+ };
150
+ const renderSearchList = (listData = [], type = "optional") => {
151
+ const isOptional = type === "optional";
152
+ const searchVal = isOptional ? optionalInput.value : selectedInput.value;
153
+ const values = [];
154
+ listData.forEach((item) => {
155
+ var _a;
156
+ return ((_a = item.caption) == null ? void 0 : _a.includes(searchVal)) && values.push(item);
157
+ });
158
+ const lengthNum = isOptional ? values.length : listData.filter((item) => !item.hidden).length;
159
+ const caption = isOptional ? ibiz.i18n.t("component.ganttSetting.optionalAttribute") : ibiz.i18n.t("component.ganttSetting.selectedAttribute");
160
+ return vue.createVNode("div", {
161
+ "class": ns.b("search-list")
162
+ }, [vue.createVNode("div", {
163
+ "class": ns.be("search-list", "caption")
164
+ }, ["".concat(caption, " \xB7 ").concat(lengthNum)]), vue.createVNode("div", {
165
+ "class": ns.be("search-list", "content")
166
+ }, [vue.createVNode("div", {
167
+ "class": ns.be("search-list", "search")
168
+ }, [isOptional ? renderLeftSearch() : renderRightSearch()]), vue.createVNode("div", {
169
+ "class": ns.be("search-list", "list")
170
+ }, [values.map((item) => {
171
+ return renderListItem(item, type);
172
+ })])])]);
173
+ };
174
+ return {
175
+ ns,
176
+ optionalInput,
177
+ selectedInput,
178
+ states,
179
+ renderSearchList,
180
+ onClose,
181
+ onConfirm,
182
+ onResultDefault
183
+ };
184
+ },
185
+ render() {
186
+ let _slot, _slot2, _slot3;
187
+ return vue.createVNode("div", {
188
+ "class": [this.ns.b()]
189
+ }, [vue.createVNode("div", {
190
+ "class": [this.ns.e("header")]
191
+ }, [ibiz.i18n.t("component.ganttSetting.headerCaption")]), vue.createVNode("div", {
192
+ "class": [this.ns.e("content")]
193
+ }, [vue.createVNode("div", {
194
+ "class": [this.ns.em("content", "optional")]
195
+ }, [this.renderSearchList(this.states, "optional")]), vue.createVNode("div", {
196
+ "class": [this.ns.em("content", "selected")]
197
+ }, [this.renderSearchList(this.states, "selected")])]), vue.createVNode("div", {
198
+ "class": [this.ns.e("bottom")]
199
+ }, [vue.createVNode(vue.resolveComponent("el-button"), {
200
+ "type": "text",
201
+ "onClick": this.onResultDefault
202
+ }, _isSlot(_slot = ibiz.i18n.t("component.ganttSetting.resultDefault")) ? _slot : {
203
+ default: () => [_slot]
204
+ }), vue.createVNode("div", {
205
+ "class": [this.ns.em("bottom", "btn-right")]
206
+ }, [vue.createVNode(vue.resolveComponent("el-button"), {
207
+ "type": "text",
208
+ "onClick": this.onClose
209
+ }, _isSlot(_slot2 = ibiz.i18n.t("app.cancel")) ? _slot2 : {
210
+ default: () => [_slot2]
211
+ }), vue.createVNode(vue.resolveComponent("el-button"), {
212
+ "onClick": this.onConfirm
213
+ }, _isSlot(_slot3 = ibiz.i18n.t("app.confirm")) ? _slot3 : {
214
+ default: () => [_slot3]
215
+ })])])]);
216
+ }
217
+ });
218
+
219
+ exports.IBizGanttSetting = IBizGanttSetting;
@@ -0,0 +1 @@
1
+ .ibiz-gantt-setting{--ibiz-gantt-setting-width:85vw;--ibiz-gantt-setting-max-width:980px;--ibiz-gantt-setting-max-height:85vh;--ibiz-gantt-setting-header-height:56px;--ibiz-gantt-setting-list-height:360px;--ibiz-gantt-setting-disabled-opacity:0.5;display:flex;flex-direction:column;width:var(--ibiz-gantt-setting-width);max-width:var(--ibiz-gantt-setting-width);max-height:var(--ibiz-gantt-setting-max-height)}.ibiz-gantt-setting__header{width:100%;height:var(--ibiz-gantt-setting-header-height);padding:0 var(--ibiz-spacing-extra-loose);font-size:var(--ibiz-font-size-header-5);line-height:var(--ibiz-gantt-setting-header-height)}.ibiz-gantt-setting__content{display:flex;flex:1;justify-content:space-between;width:100%;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-loose) var(--ibiz-spacing-base)}.ibiz-gantt-setting__content--optional{flex:0 0 calc(50% - var(--ibiz-spacing-base));width:0}.ibiz-gantt-setting__content--selected{flex:0 0 calc(50% - var(--ibiz-spacing-base));width:0}.ibiz-gantt-setting__bottom{display:flex;align-items:center;justify-content:space-between;width:100%;padding:var(--ibiz-spacing-base) var(--ibiz-spacing-extra-loose)}.ibiz-gantt-setting__bottom--btn-right{display:flex;align-items:center}.ibiz-gantt-setting-search-list{width:100%}.ibiz-gantt-setting-search-list__caption{margin-bottom:var(--ibiz-spacing-tight)}.ibiz-gantt-setting-search-list__content{border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small)}.ibiz-gantt-setting-search-list__search{padding:0 var(--ibiz-spacing-base-loose);margin:var(--ibiz-spacing-tight) 0}.ibiz-gantt-setting-search-list__search svg{fill:var(--ibiz-color-disabled-text)}.ibiz-gantt-setting-search-list__list{--ibiz-gantt-setting-width:85vw;--ibiz-gantt-setting-max-width:980px;--ibiz-gantt-setting-max-height:85vh;--ibiz-gantt-setting-header-height:56px;--ibiz-gantt-setting-list-height:360px;--ibiz-gantt-setting-disabled-opacity:0.5;height:var(--ibiz-gantt-setting-list-height);padding-bottom:var(--ibiz-spacing-tight);overflow-y:auto}.ibiz-gantt-setting-list-item{--ibiz-gantt-setting-width:85vw;--ibiz-gantt-setting-max-width:980px;--ibiz-gantt-setting-max-height:85vh;--ibiz-gantt-setting-header-height:56px;--ibiz-gantt-setting-list-height:360px;--ibiz-gantt-setting-disabled-opacity:0.5;display:flex;align-items:center;width:100%;height:var(--ibiz-spacing-extra-loose);padding:0 var(--ibiz-spacing-base-loose);overflow:hidden;cursor:pointer}.ibiz-gantt-setting-list-item:hover{background-color:var(--ibiz-color-fill-2)}.ibiz-gantt-setting-list-item__caption{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-gantt-setting-list-item__end-icon{display:flex;align-items:center;justify-content:center;cursor:pointers}.ibiz-gantt-setting-list-item__end-icon svg{fill:var(--ibiz-color-primary)}.ibiz-gantt-setting-list-item__end-icon--close{width:100%;height:100%}.ibiz-gantt-setting-list-item__end-icon--close svg{fill:var(--ibiz-color-text-3)}.ibiz-gantt-setting-list-item__end-icon--close svg:hover{fill:var(--ibiz-color-primary)}.ibiz-gantt-setting-list-item.is-optional .ibiz-gantt-setting-list-item__end-icon{cursor:pointers}.ibiz-gantt-setting-list-item.is-optional .ibiz-gantt-setting-list-item__end-icon svg{fill:var(--ibiz-color-primary)}.ibiz-gantt-setting-list-item.is-disabled{cursor:not-allowed;background:0 0;opacity:var(--ibiz-gantt-setting-disabled-opacity)}@media (width >= 992px){.ibiz-gantt-setting{--ibiz-gantt-setting-width:85vw;--ibiz-gantt-setting-max-width:980px;--ibiz-gantt-setting-max-height:85vh;--ibiz-gantt-setting-header-height:56px;--ibiz-gantt-setting-list-height:360px;--ibiz-gantt-setting-disabled-opacity:0.5;max-width:var(--ibiz-gantt-setting-max-width)}}@media (height <= 768px){.ibiz-gantt-setting-search-list{display:flex;flex-direction:column;height:100%}.ibiz-gantt-setting-search-list__content{display:flex;flex:1;flex-direction:column;height:100%}.ibiz-gantt-setting-search-list__list{display:flex;flex:1;flex-direction:column;height:100%}}
@@ -2,9 +2,9 @@
2
2
 
3
3
  var vue = require('vue');
4
4
  var vue3Util = require('@ibiz-template/vue3-util');
5
- require('./grid-setting.css');
6
5
  var draggable = require('vuedraggable');
7
6
  var core = require('@ibiz-template/core');
7
+ require('./grid-setting.css');
8
8
 
9
9
  "use strict";
10
10
  const IBizGridSetting = /* @__PURE__ */ vue.defineComponent({
@@ -51,17 +51,23 @@ const IBizGridSetting = /* @__PURE__ */ vue.defineComponent({
51
51
  c.changeColumnStateSort(movedDragColumnState.key, newIndex, oldIndex);
52
52
  }
53
53
  };
54
+ const onShowNavView = () => {
55
+ c.state.showNavView = !c.state.showNavView;
56
+ };
54
57
  return {
55
58
  ns,
56
59
  c,
57
60
  dragColumnStates,
58
61
  isDraggable,
59
62
  handleClick,
60
- onDragChange
63
+ onDragChange,
64
+ onShowNavView
61
65
  };
62
66
  },
63
67
  render() {
64
- return vue.createVNode(vue.resolveComponent("el-popover"), {
68
+ return vue.createVNode("div", {
69
+ "class": this.ns.b()
70
+ }, [vue.createVNode(vue.resolveComponent("el-popover"), {
65
71
  "placement": "right-start",
66
72
  "trigger": "click",
67
73
  "width": "auto"
@@ -117,7 +123,17 @@ const IBizGridSetting = /* @__PURE__ */ vue.defineComponent({
117
123
  }
118
124
  });
119
125
  }
120
- });
126
+ }), this.c.state.enableNavView ? !this.c.state.showNavView ? vue.createVNode("ion-icon", {
127
+ "class": this.ns.e("nav-icon"),
128
+ "title": ibiz.i18n.t("component.controlNavigation.showNav"),
129
+ "name": "eye-outline",
130
+ "onClick": this.onShowNavView
131
+ }, null) : vue.createVNode("ion-icon", {
132
+ "class": this.ns.e("nav-icon"),
133
+ "title": ibiz.i18n.t("component.controlNavigation.hiddenNav"),
134
+ "name": "eye-off-outline",
135
+ "onClick": this.onShowNavView
136
+ }, null) : null]);
121
137
  }
122
138
  });
123
139
 
@@ -1 +1 @@
1
- .ibiz-grid-setting-column-states{width:100%;max-height:500px;overflow-y:auto}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state{display:flex;align-items:center;justify-content:flex-start;width:100%;padding:var(--ibiz-spacing-extra-tight) 0;font-size:var(--ibiz-font-size-regular);cursor:pointer}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state ion-icon{display:inline-block;width:var(--ibiz-font-size-small);margin-right:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state .ibiz-grid-setting-drag-icon{color:var(--ibiz-color-text)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state .ibiz-grid-setting-enable-icon{color:var(--ibiz-color-success)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state .ibiz-grid-setting-disable-icon{display:none;color:var(--ibiz-color-danger)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state .ibiz-grid-setting-state-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state.is-disabled .ibiz-grid-setting-enable-icon{display:none}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state.is-disabled .ibiz-grid-setting-disable-icon{display:block}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state.is-disabled .ibiz-grid-setting-state-caption{color:var(--ibiz-color-disabled-text)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state-ghost{background-color:var(--ibiz-color-primary-light-default);opacity:.5}.ibiz-grid-setting-set-icon{color:var(--ibiz-color-primary);cursor:pointer}
1
+ .ibiz-grid-setting-column-states{width:100%;max-height:500px;overflow-y:auto}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state{display:flex;align-items:center;justify-content:flex-start;width:100%;padding:var(--ibiz-spacing-extra-tight) 0;font-size:var(--ibiz-font-size-regular);cursor:pointer}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state ion-icon{display:inline-block;width:var(--ibiz-font-size-small);margin-right:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-font-size-regular)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state .ibiz-grid-setting-drag-icon{color:var(--ibiz-color-text)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state .ibiz-grid-setting-enable-icon{color:var(--ibiz-color-success)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state .ibiz-grid-setting-disable-icon{display:none;color:var(--ibiz-color-danger)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state .ibiz-grid-setting-state-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state.is-disabled .ibiz-grid-setting-enable-icon{display:none}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state.is-disabled .ibiz-grid-setting-disable-icon{display:block}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state.is-disabled .ibiz-grid-setting-state-caption{color:var(--ibiz-color-disabled-text)}.ibiz-grid-setting-column-states .ibiz-grid-setting-column-state-ghost{background-color:var(--ibiz-color-primary-light-default);opacity:.5}.ibiz-grid-setting-set-icon{color:var(--ibiz-color-primary);cursor:pointer}.ibiz-grid-setting__nav-icon{cursor:pointer;color:var(--ibiz-color-primary);padding-left:var(--ibiz-spacing-tight)}
@@ -32,6 +32,9 @@ var pqlEditor = require('./pql-editor/pql-editor.cjs');
32
32
  var customFilterCondition = require('./custom-filter-condition/custom-filter-condition.cjs');
33
33
  var anchorContainer = require('./anchor-container/anchor-container.cjs');
34
34
  var buttonList = require('./button-list/button-list.cjs');
35
+ var controlNavigation = require('./control-navigation/control-navigation.cjs');
36
+ var ganttSetting = require('./gantt-setting/gantt-setting.cjs');
37
+ var navSplit = require('./nav-split/nav-split.cjs');
35
38
 
36
39
  "use strict";
37
40
  const IBizCommonComponents = {
@@ -77,6 +80,9 @@ const IBizCommonComponents = {
77
80
  v.component(customFilterCondition.IBizCustomFilterCondition.name, customFilterCondition.IBizCustomFilterCondition);
78
81
  v.component(anchorContainer.IBizAnchorContainer.name, anchorContainer.IBizAnchorContainer);
79
82
  v.component(buttonList.IBizButtonList.name, buttonList.IBizButtonList);
83
+ v.component(controlNavigation.IBizControlNavigation.name, controlNavigation.IBizControlNavigation);
84
+ v.component(ganttSetting.IBizGanttSetting.name, ganttSetting.IBizGanttSetting);
85
+ v.component(navSplit.IBizNavSplit.name, navSplit.IBizNavSplit);
80
86
  }
81
87
  };
82
88
 
@@ -0,0 +1,211 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var vue3Util = require('@ibiz-template/vue3-util');
5
+ require('./nav-split.css');
6
+
7
+ "use strict";
8
+ const IBizNavSplit = /* @__PURE__ */ vue.defineComponent({
9
+ name: "IBizNavSplit",
10
+ props: {
11
+ modelValue: {
12
+ type: [Number, String],
13
+ default: 0.5
14
+ },
15
+ mode: {
16
+ validator: (value) => {
17
+ return ["horizontal", "vertical"].includes(value);
18
+ },
19
+ default: "horizontal"
20
+ },
21
+ min: {
22
+ type: [Number, String],
23
+ default: 0.2
24
+ },
25
+ max: {
26
+ type: [Number, String],
27
+ default: 0.8
28
+ }
29
+ },
30
+ emits: ["update:modelValue", "on-move-start", "on-moving", "on-move-end"],
31
+ setup(props, {
32
+ emit
33
+ }) {
34
+ const ns = vue3Util.useNamespace("nav-split");
35
+ const outerWrapper = vue.ref(null);
36
+ const offset = vue.ref(0);
37
+ const oldOffset = vue.ref(0);
38
+ const isMoving = vue.ref(false);
39
+ const computedMin = vue.ref(0);
40
+ const computedMax = vue.ref(0);
41
+ const currentValue = vue.ref(0.5);
42
+ const initOffset = vue.ref(0);
43
+ const wrapperClasses = vue.computed(() => [ns.b("wrapper"), ns.is("no-select", isMoving.value)]);
44
+ const paneClasses = vue.computed(() => [ns.b("pane"), isMoving.value ? ns.bm("pane", "moving") : ""]);
45
+ const isHorizontal = vue.computed(() => props.mode === "horizontal");
46
+ const anotherOffset = vue.computed(() => 100 - offset.value);
47
+ const valueIsPx = vue.computed(() => typeof props.modelValue === "string");
48
+ const offsetSize = vue.computed(() => isHorizontal.value ? "offsetWidth" : "offsetHeight");
49
+ const px2percent = (numerator, denominator) => {
50
+ return parseFloat(numerator) / parseFloat(denominator);
51
+ };
52
+ const getComputedThresholdValue = (type) => {
53
+ const size = outerWrapper.value[offsetSize.value];
54
+ if (valueIsPx.value) {
55
+ return typeof props[type] === "string" ? props[type] : size * props[type];
56
+ }
57
+ return typeof props[type] === "string" ? px2percent(props[type], size) : props[type];
58
+ };
59
+ const getMax = (value1, value2) => {
60
+ if (valueIsPx.value)
61
+ return "".concat(Math.max(parseFloat(value1), parseFloat(value2)), "px");
62
+ return Math.max(value1, value2);
63
+ };
64
+ const getMin = (value1, value2) => {
65
+ if (valueIsPx.value)
66
+ return "".concat(Math.min(parseFloat(value1), parseFloat(value2)), "px");
67
+ return Math.min(value1, value2);
68
+ };
69
+ const getAnotherOffset = (value) => {
70
+ let res = 0;
71
+ if (valueIsPx.value)
72
+ res = "".concat(outerWrapper.value[offsetSize.value] - parseFloat(value), "px");
73
+ else
74
+ res = 1 - value;
75
+ return res;
76
+ };
77
+ const handleMove = (e) => {
78
+ const pageOffset = isHorizontal.value ? e.pageX : e.pageY;
79
+ const moveOffset = pageOffset - initOffset.value;
80
+ const outerWidth = outerWrapper.value[offsetSize.value];
81
+ let value = valueIsPx.value ? "".concat(parseFloat(oldOffset.value) + moveOffset, "px") : px2percent(outerWidth * oldOffset.value + moveOffset, outerWidth);
82
+ const anotherValue = getAnotherOffset(value);
83
+ if (parseFloat(anotherValue) > parseFloat(computedMax.value)) {
84
+ value = getAnotherOffset(getMin(anotherValue, computedMax.value));
85
+ }
86
+ if (parseFloat(anotherValue) <= parseFloat(computedMin.value)) {
87
+ value = getAnotherOffset(getMax(anotherValue, computedMin.value));
88
+ }
89
+ Object.assign(e, {
90
+ atMin: props.modelValue === computedMin.value,
91
+ atMax: valueIsPx.value ? getAnotherOffset(props.modelValue) === computedMax.value : getAnotherOffset(props.modelValue).toFixed(5) === computedMax.value.toFixed(5)
92
+ });
93
+ emit("update:modelValue", value);
94
+ emit("on-moving", e);
95
+ };
96
+ const handleUp = () => {
97
+ isMoving.value = false;
98
+ document.removeEventListener("mousemove", handleMove);
99
+ document.removeEventListener("mouseup", handleUp);
100
+ emit("on-move-end");
101
+ };
102
+ const handleMousedown = (e) => {
103
+ initOffset.value = isHorizontal.value ? e.pageX : e.pageY;
104
+ oldOffset.value = props.modelValue;
105
+ isMoving.value = true;
106
+ document.addEventListener("mousemove", handleMove);
107
+ document.addEventListener("mouseup", handleUp);
108
+ emit("on-move-start");
109
+ };
110
+ const computeOffset = () => {
111
+ vue.nextTick(() => {
112
+ computedMin.value = getComputedThresholdValue("min");
113
+ computedMax.value = getComputedThresholdValue("max");
114
+ const denominator = outerWrapper.value[offsetSize.value];
115
+ const outerWrapperValue = parseFloat(denominator);
116
+ const defaultValue = (valueIsPx.value ? px2percent(props.modelValue, outerWrapperValue) : props.modelValue) * 1e4 / 100;
117
+ const reverseValue = defaultValue * 100 / 1e4 * outerWrapperValue;
118
+ const diffValue = outerWrapperValue - reverseValue;
119
+ const maxValue = parseFloat(computedMax.value);
120
+ const minValue = parseFloat(computedMin.value);
121
+ if (Math.round(diffValue) >= minValue && Math.round(diffValue) <= maxValue) {
122
+ offset.value = defaultValue;
123
+ } else if (Math.round(diffValue) < minValue) {
124
+ const leftWidth = outerWrapperValue - minValue;
125
+ offset.value = leftWidth / outerWrapperValue * 1e4 / 100;
126
+ emit("update:modelValue", "".concat(leftWidth, "px"));
127
+ } else {
128
+ const leftWidth = outerWrapperValue - maxValue;
129
+ offset.value = leftWidth / outerWrapperValue * 1e4 / 100;
130
+ emit("update:modelValue", "".concat(leftWidth, "px"));
131
+ }
132
+ });
133
+ };
134
+ vue.watch(() => props.modelValue, (val) => {
135
+ console.log("props.modelValue", val);
136
+ if (val !== currentValue.value) {
137
+ currentValue.value = val;
138
+ computeOffset();
139
+ }
140
+ });
141
+ vue.onMounted(() => {
142
+ vue.nextTick(() => {
143
+ computeOffset();
144
+ });
145
+ window.addEventListener("resize", computeOffset);
146
+ });
147
+ vue.onBeforeUnmount(() => {
148
+ window.removeEventListener("resize", computeOffset);
149
+ });
150
+ return {
151
+ ns,
152
+ outerWrapper,
153
+ offset,
154
+ wrapperClasses,
155
+ paneClasses,
156
+ isHorizontal,
157
+ anotherOffset,
158
+ handleMousedown,
159
+ handleMove
160
+ };
161
+ },
162
+ render() {
163
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
164
+ return vue.createVNode("div", {
165
+ "class": this.wrapperClasses,
166
+ "ref": "outerWrapper"
167
+ }, [this.isHorizontal ? vue.createVNode("div", {
168
+ "class": this.ns.m("horizontal")
169
+ }, [vue.createVNode("div", {
170
+ "style": {
171
+ width: "".concat(this.offset, "%")
172
+ },
173
+ "class": [this.paneClasses, this.ns.bm("pane", "left")]
174
+ }, [(_b = (_a = this.$slots).left) == null ? void 0 : _b.call(_a)]), vue.createVNode("div", {
175
+ "style": {
176
+ left: "".concat(this.offset, "%")
177
+ },
178
+ "class": this.ns.b("trigger-con"),
179
+ "onMousedown": (e) => this.handleMousedown(e)
180
+ }, [((_d = (_c = this.$slots).trigger) == null ? void 0 : _d.call(_c)) || vue.createVNode(vue.resolveComponent("iBizSplitTrigger"), {
181
+ "mode": "vertical"
182
+ }, null)]), vue.createVNode("div", {
183
+ "style": {
184
+ width: "".concat(this.anotherOffset, "%")
185
+ },
186
+ "class": [this.paneClasses, this.ns.bm("pane", "right")]
187
+ }, [(_f = (_e = this.$slots).right) == null ? void 0 : _f.call(_e)])]) : vue.createVNode("div", {
188
+ "class": this.ns.m("vertical")
189
+ }, [vue.createVNode("div", {
190
+ "style": {
191
+ bottom: "".concat(this.anotherOffset, "%")
192
+ },
193
+ "class": [this.paneClasses, this.ns.bm("pane", "top")]
194
+ }, [(_h = (_g = this.$slots).top) == null ? void 0 : _h.call(_g)]), vue.createVNode("div", {
195
+ "style": {
196
+ top: "".concat(this.offset, "%")
197
+ },
198
+ "class": this.ns.b("trigger-con"),
199
+ "onMousedown": (e) => this.handleMousedown(e)
200
+ }, [((_j = (_i = this.$slots).trigger) == null ? void 0 : _j.call(_i)) || vue.createVNode(vue.resolveComponent("iBizSplitTrigger"), {
201
+ "mode": "horizontal"
202
+ }, null)]), vue.createVNode("div", {
203
+ "style": {
204
+ top: "".concat(this.offset, "%")
205
+ },
206
+ "class": [this.paneClasses, this.ns.bm("pane", "bottom")]
207
+ }, [(_l = (_k = this.$slots).bottom) == null ? void 0 : _l.call(_k)])])]);
208
+ }
209
+ });
210
+
211
+ exports.IBizNavSplit = IBizNavSplit;
@@ -0,0 +1 @@
1
+ .ibiz-nav-split-wrapper{position:relative;width:100%;height:100%}.ibiz-nav-split-wrapper.is-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ibiz-nav-split--horizontal{display:flex;height:100%}.ibiz-nav-split--horizontal .ibiz-nav-split-trigger-con{top:50%;width:0;height:100%}.ibiz-nav-split--horizontal .ibiz-nav-split-pane{position:unset}.ibiz-nav-split--horizontal .ibiz-nav-split-pane--right{padding-left:6px}.ibiz-nav-split--vertical .ibiz-nav-split-trigger-con{left:50%;width:100%;height:0}.ibiz-nav-split--vertical .ibiz-nav-split-pane{position:absolute}.ibiz-nav-split--vertical .ibiz-nav-split-pane--bottom{padding-top:6px}.ibiz-nav-split-pane{position:absolute}.ibiz-nav-split-pane--left{top:0;bottom:0;left:0;overflow:hidden}.ibiz-nav-split-pane--right{top:0;right:0;bottom:0;overflow:hidden}.ibiz-nav-split-pane--top{top:0;right:0;left:0;overflow:hidden}.ibiz-nav-split-pane--bottom{right:0;bottom:0;left:0;overflow:hidden}.ibiz-nav-split-pane--moving{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ibiz-nav-split-trigger-con{position:absolute;z-index:10;transform:translate(-50%,-50%)}
@@ -186,7 +186,7 @@ const generateCustomCond = (items, fields) => {
186
186
  const { key, operator, value } = item;
187
187
  const symbol = (_a = filterModeMap.get(operator == null ? void 0 : operator.value)) == null ? void 0 : _a.sqlOP;
188
188
  const valueText = value == null ? void 0 : value.filter((_v) => _v.type || _v.text).map((_v) => {
189
- var _a2, _b2, _c, _d, _e, _f;
189
+ var _a2, _b2, _c, _d;
190
190
  if (_v.type) {
191
191
  return "$".concat(JSON.stringify({
192
192
  value: (_v == null ? void 0 : _v.value) || "",
@@ -198,12 +198,9 @@ const generateCustomCond = (items, fields) => {
198
198
  return "'%".concat(((_b2 = _v.text) == null ? void 0 : _b2.trim()) || "", "%'");
199
199
  }
200
200
  if ((operator == null ? void 0 : operator.value) && InOPs.includes(operator.value)) {
201
- if (((_c = _v.text) == null ? void 0 : _c.startsWith("[")) && _v.text.endsWith("]")) {
202
- return "(".concat((_d = _v.text) == null ? void 0 : _d.trim().slice(1, -1).split(",").map((e) => "'".concat(e.trim(), "'")).join(","), ")");
203
- }
204
- return ((_e = _v.text) == null ? void 0 : _e.trim().replace(/^\[/, "(").replace(/\]$/, ")")) || "";
201
+ return ((_c = _v.text) == null ? void 0 : _c.trim().replace(/^\[/, "(").replace(/\]$/, ")")) || "";
205
202
  }
206
- return "'".concat((_f = _v.text) == null ? void 0 : _f.trim(), "'") || "";
203
+ return ((_d = _v.text) == null ? void 0 : _d.trim()) || "";
207
204
  }).join("").replace(/\s+/g, " ");
208
205
  const valueStr = value ? " ".concat(valueText) : "";
209
206
  cond += "$".concat(JSON.stringify({
@@ -291,7 +288,7 @@ const parseCustomCond = (cond) => {
291
288
  const pqlItemsToPqlNodes = async (items) => {
292
289
  const nodes = [];
293
290
  items.forEach((item) => {
294
- var _a, _b, _c;
291
+ var _a, _b;
295
292
  if (item.type === "condition") {
296
293
  const { key, operator, value } = item;
297
294
  nodes.push({
@@ -308,41 +305,34 @@ const pqlItemsToPqlNodes = async (items) => {
308
305
  if ((operator == null ? void 0 : operator.value) && InOPs.includes(operator.value)) {
309
306
  if ((value == null ? void 0 : value.value) && /^\(.*?\)$/.test(value.value)) {
310
307
  const valueText = value.value.slice(1, -1).trim();
311
- if (valueText.startsWith("${") && valueText.endsWith("}")) {
312
- let splitArr = valueText.split(/\},\s*/g);
313
- splitArr = splitArr.map(
314
- (text, i) => i === splitArr.length - 1 ? text : "".concat(text, "}")
315
- );
316
- if (splitArr.length && splitArr.every((text) => /^\$/.test(text))) {
308
+ let splitArr = valueText.split(/\},\s*/g);
309
+ splitArr = splitArr.map(
310
+ (text, i) => i === splitArr.length - 1 ? text : "".concat(text, "}")
311
+ );
312
+ if (splitArr.length && splitArr.every((text) => /^\$/.test(text))) {
313
+ nodes.push({
314
+ text: "["
315
+ });
316
+ splitArr.forEach((text, i) => {
317
+ let valueObj;
318
+ try {
319
+ valueObj = JSON.parse(text.slice(1));
320
+ } catch (err) {
321
+ valueObj = { caption: text, value: text };
322
+ }
317
323
  nodes.push({
318
- text: "["
324
+ type: "pql-field-value",
325
+ label: valueObj == null ? void 0 : valueObj.caption,
326
+ value: valueObj == null ? void 0 : valueObj.value
319
327
  });
320
- splitArr.forEach((text, i) => {
321
- let valueObj;
322
- try {
323
- valueObj = JSON.parse(text.slice(1));
324
- } catch (err) {
325
- valueObj = { caption: text, value: text };
326
- }
328
+ if (i !== splitArr.length - 1) {
327
329
  nodes.push({
328
- type: "pql-field-value",
329
- label: valueObj == null ? void 0 : valueObj.caption,
330
- value: valueObj == null ? void 0 : valueObj.value
330
+ text: ","
331
331
  });
332
- if (i !== splitArr.length - 1) {
333
- nodes.push({
334
- text: ","
335
- });
336
- }
337
- });
338
- nodes.push({
339
- text: "]"
340
- });
341
- return;
342
- }
343
- } else {
332
+ }
333
+ });
344
334
  nodes.push({
345
- text: "[".concat(valueText.replace(/'/g, ""), "]")
335
+ text: "]"
346
336
  });
347
337
  return;
348
338
  }
@@ -357,7 +347,7 @@ const pqlItemsToPqlNodes = async (items) => {
357
347
  }
358
348
  }
359
349
  nodes.push({
360
- text: (_a = value == null ? void 0 : value.value) == null ? void 0 : _a.slice(1, -1)
350
+ text: value == null ? void 0 : value.value
361
351
  });
362
352
  } else {
363
353
  nodes.push({
@@ -370,8 +360,8 @@ const pqlItemsToPqlNodes = async (items) => {
370
360
  if (item.type === "connection") {
371
361
  nodes.push({
372
362
  type: "pql-field-connection",
373
- label: (_b = item.value) == null ? void 0 : _b.label,
374
- value: (_c = item.value) == null ? void 0 : _c.value
363
+ label: (_a = item.value) == null ? void 0 : _a.label,
364
+ value: (_b = item.value) == null ? void 0 : _b.value
375
365
  });
376
366
  }
377
367
  });
@@ -1 +1 @@
1
- .ibiz-split-wrapper{position:relative;width:100%;height:100%}.ibiz-split-wrapper.is-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ibiz-split--horizontal{display:flex;height:100%}.ibiz-split--horizontal .ibiz-split-trigger-con{top:50%;width:0;height:100%}.ibiz-split--horizontal .ibiz-split-pane{position:unset}.ibiz-split--horizontal .ibiz-split-pane--right{padding-left:6px}.ibiz-split--vertical .ibiz-split-trigger-con{left:50%;width:100%;height:0}.ibiz-split--vertical .ibiz-split-pane--bottom{padding-top:6px}.ibiz-split-pane{position:absolute}.ibiz-split-pane--left{top:0;bottom:0;left:0;overflow:hidden}.ibiz-split-pane--right{top:0;right:0;bottom:0;overflow:hidden}.ibiz-split-pane--top{top:0;right:0;left:0;overflow:hidden}.ibiz-split-pane--bottom{right:0;bottom:0;left:0;overflow:hidden}.ibiz-split-pane--moving{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ibiz-split-trigger-con{position:absolute;z-index:10;transform:translate(-50%,-50%)}
1
+ .ibiz-split-wrapper{position:relative;width:100%;height:100%}.ibiz-split-wrapper.is-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ibiz-split--horizontal{display:flex;height:100%}.ibiz-split--horizontal .ibiz-split-trigger-con{top:50%;width:0;height:100%}.ibiz-split--horizontal .ibiz-split-pane{position:unset}.ibiz-split--horizontal .ibiz-split-pane--right{padding-left:6px}.ibiz-split--vertical .ibiz-split-trigger-con{left:50%;width:100%;height:0}.ibiz-split--vertical .ibiz-split-pane{position:absolute}.ibiz-split--vertical .ibiz-split-pane--bottom{padding-top:6px}.ibiz-split-pane{position:absolute}.ibiz-split-pane--left{top:0;bottom:0;left:0;overflow:hidden}.ibiz-split-pane--right{top:0;right:0;bottom:0;overflow:hidden}.ibiz-split-pane--top{top:0;right:0;left:0;overflow:hidden}.ibiz-split-pane--bottom{right:0;bottom:0;left:0;overflow:hidden}.ibiz-split-pane--moving{-webkit-user-select:none;-moz-user-select:none;user-select:none}.ibiz-split-trigger-con{position:absolute;z-index:10;transform:translate(-50%,-50%)}