@opentiny/vue-search-box 0.1.1-alpha.3 → 0.1.2

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 (44) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/dist/es/components/first-level-panel.vue.es.js +4 -0
  4. package/dist/es/components/first-level-panel.vue.es2.js +177 -0
  5. package/dist/es/components/second-level-panel.vue.es.js +4 -0
  6. package/dist/es/components/second-level-panel.vue.es2.js +466 -0
  7. package/dist/es/composables/use-checkbox.es.js +5 -18
  8. package/dist/es/composables/use-custom.es.js +1 -0
  9. package/dist/es/composables/use-datepicker.es.js +1 -1
  10. package/dist/es/composables/use-dropdown.es.js +27 -18
  11. package/dist/es/composables/use-edit.es.js +3 -1
  12. package/dist/es/composables/use-init.es.js +24 -10
  13. package/dist/es/composables/use-match.es.js +42 -42
  14. package/dist/es/composables/use-num-range.es.js +1 -1
  15. package/dist/es/composables/use-placeholder.es.js +2 -2
  16. package/dist/es/composables/use-tag.es.js +6 -1
  17. package/dist/es/{index-VrLZbD8H.css → index-BYxS8gdW.css} +56 -14
  18. package/dist/es/index.es.js +6 -0
  19. package/dist/es/index.vue.es2.js +150 -623
  20. package/dist/es/utils/dropdown.es.js +9 -5
  21. package/dist/es/utils/tag.es.js +2 -4
  22. package/dist/index.css +56 -14
  23. package/dist/lib/components/first-level-panel.vue.cjs.js +4 -0
  24. package/dist/lib/components/first-level-panel.vue.cjs2.js +177 -0
  25. package/dist/lib/components/second-level-panel.vue.cjs.js +4 -0
  26. package/dist/lib/components/second-level-panel.vue.cjs2.js +466 -0
  27. package/dist/lib/composables/use-checkbox.cjs.js +5 -18
  28. package/dist/lib/composables/use-custom.cjs.js +1 -0
  29. package/dist/lib/composables/use-datepicker.cjs.js +1 -1
  30. package/dist/lib/composables/use-dropdown.cjs.js +27 -18
  31. package/dist/lib/composables/use-edit.cjs.js +3 -1
  32. package/dist/lib/composables/use-init.cjs.js +24 -10
  33. package/dist/lib/composables/use-match.cjs.js +41 -41
  34. package/dist/lib/composables/use-num-range.cjs.js +1 -1
  35. package/dist/lib/composables/use-placeholder.cjs.js +2 -2
  36. package/dist/lib/composables/use-tag.cjs.js +6 -1
  37. package/dist/lib/{index-VrLZbD8H.css → index-BYxS8gdW.css} +56 -14
  38. package/dist/lib/index.cjs.js +6 -0
  39. package/dist/lib/index.vue.cjs2.js +156 -629
  40. package/dist/lib/utils/dropdown.cjs.js +9 -5
  41. package/dist/lib/utils/tag.cjs.js +1 -3
  42. package/dist/types/composables/use-checkbox.d.ts +0 -2
  43. package/dist/types/composables/use-dropdown.d.ts +1 -0
  44. package/package.json +1 -2
@@ -5,9 +5,6 @@ const TinyTag = require("@opentiny/vue-tag");
5
5
  const TinyInput = require("@opentiny/vue-input");
6
6
  const TinyDropdown = require("@opentiny/vue-dropdown");
7
7
  const TinyDropdownMenu = require("@opentiny/vue-dropdown-menu");
8
- const TinyDropdownItem = require("@opentiny/vue-dropdown-item");
9
- const TinyCheckbox = require("@opentiny/vue-checkbox");
10
- const TinyCheckboxGroup = require("@opentiny/vue-checkbox-group");
11
8
  const TinyButton = require("@opentiny/vue-button");
12
9
  const TinyTooltip = require("@opentiny/vue-tooltip");
13
10
  const TinyDatePicker = require("@opentiny/vue-date-picker");
@@ -17,6 +14,7 @@ const TinyPopover = require("@opentiny/vue-popover");
17
14
  const TinySelect = require("@opentiny/vue-select");
18
15
  const TinyOption = require("@opentiny/vue-option");
19
16
  const vueIcon = require("@opentiny/vue-icon");
17
+ const date = require("./utils/date.cjs.js");
20
18
  const index = require("./index.cjs.js");
21
19
  const useTag = require("./composables/use-tag.cjs.js");
22
20
  const useDropdown = require("./composables/use-dropdown.cjs.js");
@@ -29,9 +27,13 @@ const useCustom = require("./composables/use-custom.cjs.js");
29
27
  const useInit = require("./composables/use-init.cjs.js");
30
28
  const usePlaceholder = require("./composables/use-placeholder.cjs.js");
31
29
  const dropdown = require("./utils/dropdown.cjs.js");
30
+ require("./components/first-level-panel.vue.cjs.js");
31
+ require("./components/second-level-panel.vue.cjs.js");
32
32
  ;/* empty css */
33
33
  const clone = require("./utils/clone.cjs.js");
34
- const date = require("./utils/date.cjs.js");
34
+ const tag = require("./utils/tag.cjs.js");
35
+ const firstLevelPanel_vue_vue_type_script_setup_true_lang = require("./components/first-level-panel.vue.cjs2.js");
36
+ const secondLevelPanel_vue_vue_type_script_setup_true_lang = require("./components/second-level-panel.vue.cjs2.js");
35
37
  const _hoisted_1 = { class: "tvp-search-box__tag-value" };
36
38
  const _hoisted_2 = {
37
39
  key: 0,
@@ -40,113 +42,38 @@ const _hoisted_2 = {
40
42
  const _hoisted_3 = { class: "tvp-search-box__input-wrapper" };
41
43
  const _hoisted_4 = { class: "tvp-search-box__prop" };
42
44
  const _hoisted_5 = { class: "tvp-search-box__input-separator" };
43
- const _hoisted_6 = { class: "tvp-search-box__filter-type" };
44
- const _hoisted_7 = {
45
- key: 0,
46
- class: "tvp-search-box__text-highlight"
47
- };
48
- const _hoisted_8 = { class: "tvp-search-box__filter-type" };
49
- const _hoisted_9 = {
50
- key: 0,
51
- class: "tvp-search-box__text-highlight"
52
- };
53
- const _hoisted_10 = { class: "tvp-search-box__filter-type" };
54
- const _hoisted_11 = {
55
- id: "potential-loading",
56
- class: "tvp-search-box__potential-box"
57
- };
58
- const _hoisted_12 = { key: 0 };
59
- const _hoisted_13 = { class: "tvp-search-box__text-highlight" };
60
- const _hoisted_14 = { class: "tvp-search-box__first-panel" };
61
- const _hoisted_15 = {
62
- key: 0,
63
- class: "tvp-search-box__filter-type"
64
- };
65
- const _hoisted_16 = ["title"];
66
- const _hoisted_17 = { key: 0 };
67
- const _hoisted_18 = { class: "tvp-search-box__filter-type" };
68
- const _hoisted_19 = {
69
- key: 1,
70
- class: "tvp-search-box__radio-wrap"
71
- };
72
- const _hoisted_20 = ["title"];
73
- const _hoisted_21 = {
74
- key: 0,
75
- class: "tvp-search-box__text-highlight"
76
- };
77
- const _hoisted_22 = ["title"];
78
- const _hoisted_23 = { key: 2 };
79
- const _hoisted_24 = { class: "tvp-search-box__checkbox-wrap" };
80
- const _hoisted_25 = { class: "tvp-search-box__checkbox-btn" };
81
- const _hoisted_26 = {
82
- key: 3,
83
- class: "tvp-search-box__panel-box"
84
- };
85
- const _hoisted_27 = { class: "tvp-search-box__number" };
86
- const _hoisted_28 = { class: "tvp-search-box__dropdown-title" };
87
- const _hoisted_29 = { class: "tvp-search-box__dropdown-start" };
88
- const _hoisted_30 = { class: "tvp-search-box__dropdown-end" };
89
- const _hoisted_31 = { class: "tvp-search-box__bottom-btn" };
90
- const _hoisted_32 = {
91
- key: 4,
92
- class: "tvp-search-box__panel-box"
93
- };
94
- const _hoisted_33 = { class: "tvp-search-box__date-wrap" };
95
- const _hoisted_34 = { class: "tvp-search-box__dropdown-title" };
96
- const _hoisted_35 = { class: "tvp-search-box__dropdown-start" };
97
- const _hoisted_36 = { class: "tvp-search-box__dropdown-end" };
98
- const _hoisted_37 = { class: "tvp-search-box__bottom-btn" };
99
- const _hoisted_38 = {
100
- key: 5,
101
- class: "tvp-search-box__panel-box"
102
- };
103
- const _hoisted_39 = { class: "tvp-search-box__date-wrap" };
104
- const _hoisted_40 = { class: "tvp-search-box__dropdown-title" };
105
- const _hoisted_41 = { class: "tvp-search-box__dropdown-start" };
106
- const _hoisted_42 = { class: "tvp-search-box__dropdown-end" };
107
- const _hoisted_43 = { class: "tvp-search-box__bottom-btn" };
108
- const _hoisted_44 = { key: 6 };
109
- const _hoisted_45 = {
110
- key: 0,
111
- class: "tvp-search-box__filter-type"
112
- };
113
- const _hoisted_46 = {
114
- key: 1,
115
- class: "tvp-search-box__filter-type"
116
- };
117
- const _hoisted_47 = ["title"];
118
- const _hoisted_48 = { class: "tvp-search-box__date-wrap" };
119
- const _hoisted_49 = { class: "tvp-search-box__dropdown-start" };
120
- const _hoisted_50 = {
45
+ const _hoisted_6 = { class: "tvp-search-box__date-wrap" };
46
+ const _hoisted_7 = { class: "tvp-search-box__dropdown-start" };
47
+ const _hoisted_8 = {
121
48
  key: 0,
122
49
  class: "tvp-search-box__dropdown-end"
123
50
  };
124
- const _hoisted_51 = {
51
+ const _hoisted_9 = {
125
52
  key: 2,
126
53
  class: "tvp-search-box__dropdown-end"
127
54
  };
128
- const _hoisted_52 = {
55
+ const _hoisted_10 = {
129
56
  key: 4,
130
57
  class: "tvp-search-box__number"
131
58
  };
132
- const _hoisted_53 = { class: "tvp-search-box__dropdown-start" };
133
- const _hoisted_54 = { class: "tvp-search-box__dropdown-end" };
134
- const _hoisted_55 = {
59
+ const _hoisted_11 = { class: "tvp-search-box__dropdown-start" };
60
+ const _hoisted_12 = { class: "tvp-search-box__dropdown-end" };
61
+ const _hoisted_13 = {
135
62
  key: 5,
136
63
  class: "tvp-search-box__date-wrap"
137
64
  };
138
- const _hoisted_56 = { class: "tvp-search-box__dropdown-title" };
139
- const _hoisted_57 = { class: "tvp-search-box__dropdown-start" };
140
- const _hoisted_58 = { class: "tvp-search-box__dropdown-end" };
141
- const _hoisted_59 = {
65
+ const _hoisted_14 = { class: "tvp-search-box__dropdown-title" };
66
+ const _hoisted_15 = { class: "tvp-search-box__dropdown-start" };
67
+ const _hoisted_16 = { class: "tvp-search-box__dropdown-end" };
68
+ const _hoisted_17 = {
142
69
  key: 6,
143
70
  class: "tvp-search-box__date-wrap"
144
71
  };
145
- const _hoisted_60 = { class: "tvp-search-box__dropdown-title" };
146
- const _hoisted_61 = { class: "tvp-search-box__dropdown-start" };
147
- const _hoisted_62 = { class: "tvp-search-box__dropdown-end" };
148
- const _hoisted_63 = { class: "tvp-search-box__bottom-btn" };
149
- const _hoisted_64 = {
72
+ const _hoisted_18 = { class: "tvp-search-box__dropdown-title" };
73
+ const _hoisted_19 = { class: "tvp-search-box__dropdown-start" };
74
+ const _hoisted_20 = { class: "tvp-search-box__dropdown-end" };
75
+ const _hoisted_21 = { class: "tvp-search-box__bottom-btn" };
76
+ const _hoisted_22 = {
150
77
  key: 1,
151
78
  class: "tvp-search-box__panel-box"
152
79
  };
@@ -207,14 +134,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
207
134
  splitInputValue: {
208
135
  type: String,
209
136
  default: ","
210
- },
211
- // 3.18.0新增
212
- showNoDataTip: {
213
- type: Boolean,
214
- default: true
215
137
  }
216
138
  },
217
- emits: ["update:modelValue", "change", "search", "exceed", "first-level-select"],
139
+ emits: ["update:modelValue", "change", "search", "exceed", "first-level-select", "clear"],
218
140
  setup(__props, { expose: __expose, emit: __emit }) {
219
141
  const props = __props;
220
142
  const emits = __emit;
@@ -239,27 +161,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
239
161
  endDateTime: null,
240
162
  isShowTagKey: true,
241
163
  potentialOptions: null,
242
- hiden: true,
243
164
  dateRangeFormat: "yyyy/MM/dd",
244
165
  datetimeRangeFormat: "yyyy/MM/dd HH:mm:ss",
245
166
  indexMap: /* @__PURE__ */ new Map(),
246
167
  valueMap: /* @__PURE__ */ new Map(),
247
168
  popoverVisible: false,
248
169
  selectValue: "",
249
- allTypeAttri: {
250
- label: index.t("tvp.tvpSearchbox.rulekeyword1"),
251
- field: "tvpKeyword",
252
- type: "radio"
253
- },
170
+ allTypeAttri: { label: index.t("tvp.tvpSearchbox.rulekeyword1"), field: "tvpKeyword", type: "radio" },
254
171
  operatorValue: ":",
255
172
  // 当前操作符值
256
173
  inputEditValue: "",
257
174
  currentOperators: "",
258
175
  currentEditValue: "",
259
- isShowDropdown: true,
260
- // 控制有匹配数据展示开关
261
- isShowPanel: true,
262
- // 控制面板显隐
263
176
  currentModelValueIndex: -1,
264
177
  // 当前编辑的标签索引
265
178
  curMinNumVar: "",
@@ -268,21 +181,31 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
268
181
  // numRange最大值变量
269
182
  instance: vue.getCurrentInstance(),
270
183
  isMouseDown: false,
271
- isResetFlag: true,
272
- // 输入框触发源重置
273
- currentEditSelectTags: []
184
+ currentEditSelectTags: [],
274
185
  // 当前编辑多选的标签值
186
+ visible: false,
187
+ visibleTimer: null,
188
+ hasBackupList: vue.computed(
189
+ () => state.propItem.label && [void 0, "radio", "checkbox", "map"].includes(state.prevItem.type)
190
+ ),
191
+ isIndeterminate: vue.computed(
192
+ () => state.checkboxGroup.length > 0 && state.checkboxGroup.length !== state.filterList.length
193
+ ),
194
+ checkAll: vue.computed({
195
+ get: () => state.checkboxGroup.length && state.checkboxGroup.length === state.filterList.length,
196
+ set: (val) => {
197
+ if (val) {
198
+ state.checkboxGroup = state.filterList.flatMap((item) => `${state.prevItem.label}${item.label}`);
199
+ } else {
200
+ state.checkboxGroup = [];
201
+ }
202
+ }
203
+ })
275
204
  });
276
- state.isShowPanel = vue.computed(
277
- () => {
278
- var _a;
279
- return state.isResetFlag && (props.showNoDataTip || !props.showNoDataTip && state.isShowDropdown) && (state.prevItem.type || !state.propItem.label || state.backupList.length || ((_a = state.currentOperators) == null ? void 0 : _a.length));
280
- }
281
- );
282
205
  const TinyIconSearch = vueIcon.iconSearch();
283
206
  const TinyIconClose = vueIcon.iconClose();
284
207
  const TinyIconHelpQuery = vueIcon.iconHelpQuery();
285
- const { selectPropItem, selectRadioItem, createTag, helpClick, setOperator } = useDropdown.useDropdown({
208
+ const { selectPropItem, selectRadioItem, selectInputValue, createTag, helpClick, setOperator } = useDropdown.useDropdown({
286
209
  props,
287
210
  emits,
288
211
  state,
@@ -308,7 +231,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
308
231
  emits
309
232
  });
310
233
  const { placeholder, setPlaceholder } = usePlaceholder.usePlaceholder({ props, state, t: index.t });
311
- const { selectCheckbox, isIndeterminate, checkAll, isShowClose } = useCheckbox.useCheckbox({
234
+ const { selectCheckbox, isShowClose } = useCheckbox.useCheckbox({
312
235
  props,
313
236
  state,
314
237
  emits
@@ -372,7 +295,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
372
295
  });
373
296
  dropdown.showPopover(state, false);
374
297
  if (newVal.length === 0) {
375
- setPlaceholder(props.emptyPlaceholder || index.t("tvp.tvpSearchbox.defaultPlaceholder"));
298
+ setPlaceholder(props.emptyPlaceholder);
376
299
  }
377
300
  if (props.editable && !state.inputEditValue.length && newVal[0]) {
378
301
  state.inputEditValue = newVal[0].value;
@@ -386,35 +309,54 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
386
309
  }
387
310
  );
388
311
  vue.onMounted(() => {
389
- document.addEventListener("click", watchOutsideClick);
390
- document.addEventListener("mousedown", watchMouseDown);
391
- document.addEventListener("mousemove", watchMouseMove);
312
+ if (typeof document !== "undefined") {
313
+ document.addEventListener("click", watchOutsideClick);
314
+ document.addEventListener("mousedown", watchMouseDown);
315
+ document.addEventListener("mousemove", watchMouseMove);
316
+ }
392
317
  });
393
318
  vue.onBeforeUnmount(() => {
394
- document.removeEventListener("click", watchOutsideClick);
395
- document.removeEventListener("mousedown", watchMouseDown);
396
- document.removeEventListener("mousemove", watchMouseMove);
319
+ if (typeof document !== "undefined") {
320
+ document.removeEventListener("click", watchOutsideClick);
321
+ document.removeEventListener("mousedown", watchMouseDown);
322
+ document.removeEventListener("mousemove", watchMouseMove);
323
+ }
397
324
  });
325
+ const eventsMap = {
326
+ selectInputValue,
327
+ selectPropItem,
328
+ selectRadioItem,
329
+ setOperator,
330
+ selectCheckbox,
331
+ sizeChange,
332
+ onConfirmDate,
333
+ selectFirstMap,
334
+ handleDateShow
335
+ };
336
+ const handleEvents = (eventName, p1, p2) => {
337
+ eventsMap[eventName](p1, p2);
338
+ };
398
339
  __expose({
399
- state
340
+ state,
341
+ handleEvents
400
342
  });
401
343
  return (_ctx, _cache) => {
402
344
  return vue.openBlock(), vue.createElementBlock("div", {
403
345
  class: "tvp-search-box",
404
- onClick: _cache[36] || (_cache[36] = vue.withModifiers(($event) => vue.unref(dropdown.showPopover)(state, false), ["stop"]))
346
+ onClick: _cache[21] || (_cache[21] = vue.withModifiers(($event) => vue.unref(dropdown.showPopover)(state, false), ["stop"]))
405
347
  }, [
406
348
  vue.createVNode(vue.unref(TinyIconSearch), { class: "tvp-search-box__prefix" }),
407
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.modelValue, (tag, index2) => {
349
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.modelValue, (tag2, index2) => {
408
350
  return vue.openBlock(), vue.createBlock(vue.unref(TinyTag), {
409
- key: tag.field + index2,
351
+ key: tag2.field + index2,
410
352
  closable: "",
411
- class: vue.normalizeClass(["tvp-search-box__tag", __props.editable && tag.type !== "map" ? "tvp-search-box__tag-editor" : ""]),
412
- title: `${tag.label} ${tag.operator || ":"} ${tag.value}`,
413
- onClose: ($event) => vue.unref(deleteTag)(tag),
414
- onClick: vue.withModifiers(($event) => vue.unref(editTag)(tag, index2, $event), ["stop"])
353
+ class: vue.normalizeClass(["tvp-search-box__tag", __props.editable && tag2.type !== "map" ? "tvp-search-box__tag-editor" : ""]),
354
+ title: `${tag2.label} ${tag2.operator || ":"} ${tag2.value}`,
355
+ onClose: ($event) => vue.unref(deleteTag)(tag2),
356
+ onClick: vue.withModifiers(($event) => vue.unref(editTag)(tag2, index2, $event), ["stop"])
415
357
  }, {
416
358
  default: vue.withCtx(() => [
417
- vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(tag.label) + " " + vue.toDisplayString(tag.operator || ":") + " " + vue.toDisplayString(tag.value), 1)
359
+ vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(tag2.label) + " " + vue.toDisplayString(tag2.operator || ":") + " " + vue.toDisplayString(tag2.value), 1)
418
360
  ]),
419
361
  _: 2
420
362
  }, 1032, ["class", "title", "onClose", "onClick"]);
@@ -441,11 +383,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
441
383
  ]),
442
384
  vue.createVNode(vue.unref(TinyDropdown), {
443
385
  ref: "dropdownRef",
386
+ visible: state.visible,
387
+ "onUpdate:visible": _cache[5] || (_cache[5] = ($event) => state.visible = $event),
444
388
  trigger: "click",
445
389
  class: "tvp-search-box__dropdown",
446
- "hide-on-click": state.hiden,
447
390
  "show-icon": false,
448
- "lazy-show-popper": ""
391
+ "lazy-show-popper": "",
392
+ "close-on-click-outside": true
449
393
  }, {
450
394
  dropdown: vue.withCtx(() => [
451
395
  vue.createVNode(vue.unref(TinyDropdownMenu), {
@@ -456,468 +400,52 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
456
400
  }, ["stop"])
457
401
  }, {
458
402
  default: vue.withCtx(() => {
459
- var _a;
403
+ var _a, _b;
460
404
  return [
461
405
  vue.withDirectives(vue.createElementVNode("div", null, [
462
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.matchItems, (value, key) => {
463
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key }, [
464
- value["attr"].length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
465
- vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(key === "0" ? vue.unref(index.t)("tvp.tvpSearchbox.attributeType") : key), 1),
466
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(value["attr"], (item, index2) => {
467
- return vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
468
- key: item.label + index2,
469
- class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
470
- onClick: ($event) => vue.unref(selectPropItem)(item)
471
- }, {
472
- default: vue.withCtx(() => [
473
- vue.createElementVNode("span", null, [
474
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.match, (text) => {
475
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: text }, [
476
- Array.isArray(text) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7, vue.toDisplayString(text[0]), 1)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
477
- vue.createTextVNode(vue.toDisplayString(text), 1)
478
- ], 64))
479
- ], 64);
480
- }), 128))
481
- ])
482
- ]),
483
- _: 2
484
- }, 1032, ["onClick"]);
485
- }), 128))
486
- ], 64)) : vue.createCommentVNode("", true),
487
- value["attrValue"].length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
488
- vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.propertyValue", [key === "0" ? vue.unref(index.t)("tvp.tvpSearchbox.attributeType") : key])), 1),
489
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(value["attrValue"], (item, index2) => {
490
- return vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
491
- key: item.label + index2,
492
- disabled: item.isChecked,
493
- class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
494
- onClick: ($event) => vue.unref(selectRadioItem)(item, true)
495
- }, {
496
- default: vue.withCtx(() => [
497
- vue.createElementVNode("span", null, [
498
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.match, (text) => {
499
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: text }, [
500
- Array.isArray(text) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, vue.toDisplayString(text[0]), 1)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
501
- vue.createTextVNode(vue.toDisplayString(text), 1)
502
- ], 64))
503
- ], 64);
504
- }), 128))
505
- ])
506
- ]),
507
- _: 2
508
- }, 1032, ["disabled", "onClick"]);
509
- }), 128))
510
- ], 64)) : vue.createCommentVNode("", true)
511
- ], 64);
512
- }), 128)),
513
- __props.showNoDataTip && !state.isShowDropdown ? (vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), { key: 0 }, {
514
- default: vue.withCtx(() => [
515
- vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.noData")), 1)
516
- ]),
517
- _: 1
518
- })) : vue.createCommentVNode("", true),
519
- vue.withDirectives(vue.createElementVNode("div", null, [
520
- vue.createElementVNode("span", _hoisted_10, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.matched")), 1),
521
- vue.createElementVNode("div", _hoisted_11, [
522
- state.potentialOptions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12, [
523
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.potentialOptions, (item, index2) => {
524
- return vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
525
- key: item.label + index2,
526
- class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
527
- onClick: ($event) => vue.unref(selectRadioItem)(item, true)
528
- }, {
529
- default: vue.withCtx(() => [
530
- vue.createTextVNode(vue.toDisplayString(item.label) + ": ", 1),
531
- vue.createElementVNode("span", _hoisted_13, vue.toDisplayString(item.value), 1)
532
- ]),
533
- _: 2
534
- }, 1032, ["onClick"]);
535
- }), 128))
536
- ])) : vue.createCommentVNode("", true)
537
- ])
538
- ], 512), [
539
- [vue.vShow, props.potentialOptions]
540
- ])
541
- ], 512), [
542
- [vue.vShow, state.isResetFlag && !state.propItem.label && state.inputValue.trim()]
543
- ]),
544
- vue.withDirectives(vue.createElementVNode("div", _hoisted_14, [
545
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.groupItems, (group, key) => {
546
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key }, [
547
- group.length ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15, vue.toDisplayString(key === "0" ? vue.unref(index.t)("tvp.tvpSearchbox.attributeType") : key), 1)) : vue.createCommentVNode("", true),
548
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, (item, index2) => {
549
- return vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
550
- key: (item.field || item.label) + index2,
551
- class: "tvp-search-box__dropdown-item",
552
- onClick: ($event) => vue.unref(selectPropItem)(item)
553
- }, {
554
- default: vue.withCtx(() => [
555
- vue.createElementVNode("span", {
556
- title: item.label
557
- }, vue.toDisplayString(item.label), 9, _hoisted_16)
558
- ]),
559
- _: 2
560
- }, 1032, ["onClick"]);
561
- }), 128))
562
- ], 64);
563
- }), 128))
406
+ ((_a = state.instance) == null ? void 0 : _a.slots["first-panel"]) ? vue.renderSlot(_ctx.$slots, "first-panel", vue.mergeProps({ key: 0 }, {
407
+ state,
408
+ handleEvents
409
+ }, {
410
+ onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
411
+ }, ["stop"]))
412
+ })) : (vue.openBlock(), vue.createBlock(firstLevelPanel_vue_vue_type_script_setup_true_lang.default, {
413
+ key: 1,
414
+ state,
415
+ onEvents: handleEvents
416
+ }, null, 8, ["state"]))
564
417
  ], 512), [
565
- [vue.vShow, state.isResetFlag && !state.propItem.label && !state.inputValue.trim()]
418
+ [vue.vShow, !state.propItem.label || state.inputValue.trim()]
566
419
  ]),
567
420
  vue.withDirectives(vue.createElementVNode("div", null, [
568
- ((_a = state.currentOperators) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
569
- vue.createElementVNode("span", _hoisted_18, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.operator")), 1),
570
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.currentOperators, (item, index2) => {
571
- return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
572
- key: item + index2,
573
- class: "tvp-search-box__dropdown-item",
574
- onClick: ($event) => vue.unref(setOperator)(item)
575
- }, {
576
- default: vue.withCtx(() => [
577
- vue.createTextVNode(vue.toDisplayString(item), 1)
578
- ]),
579
- _: 2
580
- }, 1032, ["onClick"])), [
581
- [vue.vShow, item.includes(state.inputValue)]
582
- ]);
583
- }), 128))
584
- ])) : !state.prevItem.type || state.prevItem.type === "radio" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
585
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.backupList, (item, index2) => {
586
- return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
587
- key: index2 + (item.field || item.label),
588
- disabled: item.isChecked,
589
- class: "tvp-search-box__dropdown-item",
590
- onClick: ($event) => vue.unref(selectRadioItem)(item)
591
- }, {
592
- default: vue.withCtx(() => [
593
- item.match ? (vue.openBlock(), vue.createElementBlock("span", {
594
- key: 0,
595
- title: item.label
596
- }, [
597
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.match, (text) => {
598
- return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: text }, [
599
- Array.isArray(text) ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_21, vue.toDisplayString(text[0]), 1)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
600
- vue.createTextVNode(vue.toDisplayString(text), 1)
601
- ], 64))
602
- ], 64);
603
- }), 128))
604
- ], 8, _hoisted_20)) : (vue.openBlock(), vue.createElementBlock("span", {
605
- key: 1,
606
- title: item.label
607
- }, vue.toDisplayString(item.label), 9, _hoisted_22))
608
- ]),
609
- _: 2
610
- }, 1032, ["disabled", "onClick"])), [
611
- [vue.vShow, !item.isFilter || !state.inputValue]
612
- ]);
613
- }), 128))
614
- ])) : state.isResetFlag && state.prevItem.type === "checkbox" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_23, [
615
- vue.createElementVNode("div", _hoisted_24, [
616
- vue.createVNode(vue.unref(TinyCheckboxGroup), {
617
- modelValue: vue.unref(checkAll),
618
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(checkAll) ? checkAll.value = $event : null),
619
- class: "tvp-search-box__checkbox"
620
- }, {
621
- default: vue.withCtx(() => [
622
- vue.createVNode(vue.unref(TinyDropdownItem), { class: "tvp-search-box__dropdown-item tvp-search-box__checkbox-item" }, {
623
- default: vue.withCtx(() => [
624
- vue.createVNode(vue.unref(TinyCheckbox), {
625
- modelValue: vue.unref(checkAll),
626
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(checkAll) ? checkAll.value = $event : null),
627
- indeterminate: vue.unref(isIndeterminate)
628
- }, {
629
- default: vue.withCtx(() => [
630
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.selectAll")), 1)
631
- ]),
632
- _: 1
633
- }, 8, ["modelValue", "indeterminate"])
634
- ]),
635
- _: 1
636
- })
637
- ]),
638
- _: 1
639
- }, 8, ["modelValue"]),
640
- vue.createVNode(vue.unref(TinyCheckboxGroup), {
641
- modelValue: state.checkboxGroup,
642
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => state.checkboxGroup = $event),
643
- class: "tvp-search-box__checkbox"
644
- }, {
645
- default: vue.withCtx(() => [
646
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.backupList, (item, index2) => {
647
- return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
648
- key: (item.field || item.label) + index2,
649
- class: "tvp-search-box__dropdown-item tvp-search-box__checkbox-item"
650
- }, {
651
- default: vue.withCtx(() => [
652
- vue.createVNode(vue.unref(TinyCheckbox), {
653
- label: state.prevItem.label + item.label,
654
- title: item.label,
655
- class: "tvp-search-box__checkbox-item-label"
656
- }, {
657
- default: vue.withCtx(() => [
658
- vue.createTextVNode(vue.toDisplayString(item.label), 1)
659
- ]),
660
- _: 2
661
- }, 1032, ["label", "title"])
662
- ]),
663
- _: 2
664
- }, 1024)), [
665
- [vue.vShow, !item.isFilter]
666
- ]);
667
- }), 128))
668
- ]),
669
- _: 1
670
- }, 8, ["modelValue"])
671
- ]),
672
- vue.createElementVNode("div", _hoisted_25, [
673
- vue.createVNode(vue.unref(TinyButton), {
674
- size: "mini",
675
- onClick: _cache[5] || (_cache[5] = ($event) => vue.unref(selectCheckbox)(true))
676
- }, {
677
- default: vue.withCtx(() => [
678
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
679
- ]),
680
- _: 1
681
- }),
682
- vue.createVNode(vue.unref(TinyButton), {
683
- size: "mini",
684
- onClick: _cache[6] || (_cache[6] = ($event) => vue.unref(selectCheckbox)(false))
685
- }, {
686
- default: vue.withCtx(() => [
687
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
688
- ]),
689
- _: 1
690
- })
691
- ])
692
- ])) : state.prevItem.type === "numRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
693
- vue.createElementVNode("div", _hoisted_27, [
694
- vue.createElementVNode("div", _hoisted_28, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeNumberTitle")), 1),
695
- vue.createElementVNode("div", _hoisted_29, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.minValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
696
- vue.createVNode(vue.unref(TinyFormItem), {
697
- prop: state.curMinNumVar,
698
- class: "tvp-search-box__number-item",
699
- "show-message": state.numberShowMessage
700
- }, {
701
- default: vue.withCtx(() => [
702
- vue.createVNode(vue.unref(TinyInput), {
703
- modelValue: state[state.curMinNumVar],
704
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => state[state.curMinNumVar] = $event),
705
- type: "number",
706
- class: "tvp-search-box__number-input"
707
- }, null, 8, ["modelValue"])
708
- ]),
709
- _: 1
710
- }, 8, ["prop", "show-message"]),
711
- vue.createElementVNode("div", _hoisted_30, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.maxValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
712
- vue.createVNode(vue.unref(TinyFormItem), {
713
- prop: state.curMaxNumVar,
714
- class: "tvp-search-box__number-item"
715
- }, {
716
- default: vue.withCtx(() => [
717
- vue.createVNode(vue.unref(TinyInput), {
718
- modelValue: state[state.curMaxNumVar],
719
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => state[state.curMaxNumVar] = $event),
720
- type: "number",
721
- class: "tvp-search-box__number-input"
722
- }, null, 8, ["modelValue"])
723
- ]),
724
- _: 1
725
- }, 8, ["prop"])
726
- ]),
727
- vue.createElementVNode("div", _hoisted_31, [
728
- vue.createVNode(vue.unref(TinyButton), {
729
- size: "mini",
730
- onClick: _cache[9] || (_cache[9] = vue.withModifiers(($event) => vue.unref(sizeChange)(true), ["stop"]))
731
- }, {
732
- default: vue.withCtx(() => [
733
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
734
- ]),
735
- _: 1
736
- }),
737
- vue.createVNode(vue.unref(TinyButton), {
738
- size: "mini",
739
- onClick: _cache[10] || (_cache[10] = ($event) => vue.unref(sizeChange)(false))
740
- }, {
741
- default: vue.withCtx(() => [
742
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
743
- ]),
744
- _: 1
745
- })
746
- ])
747
- ])) : state.prevItem.type === "dateRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_32, [
748
- vue.createElementVNode("div", _hoisted_33, [
749
- vue.createElementVNode("div", _hoisted_34, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
750
- value: (state.prevItem.maxTimeLength / 864e5).toFixed(1)
751
- }) : vue.unref(index.t)("tvp.tvpSearchbox.rangeDateTitle")), 1),
752
- vue.createElementVNode("div", _hoisted_35, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeBeginLabel")), 1),
753
- vue.createVNode(vue.unref(TinyFormItem), {
754
- prop: "startDate",
755
- "show-message": Boolean(state.prevItem.maxTimeLength),
756
- class: "tvp-search-box__date-item"
757
- }, {
758
- default: vue.withCtx(() => [
759
- vue.createVNode(vue.unref(TinyDatePicker), {
760
- modelValue: state.startDate,
761
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => state.startDate = $event),
762
- format: state.prevItem.format || state.dateRangeFormat,
763
- "value-format": state.prevItem.format || state.dateRangeFormat,
764
- "picker-options": vue.unref(pickerOptions)(state.startDate, "endDate"),
765
- class: "tvp-search-box__date-picker",
766
- onChange: vue.unref(handleDateShow),
767
- onBlur: vue.unref(handleDateShow)
768
- }, null, 8, ["modelValue", "format", "value-format", "picker-options", "onChange", "onBlur"])
769
- ]),
770
- _: 1
771
- }, 8, ["show-message"]),
772
- vue.createElementVNode("div", _hoisted_36, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
773
- vue.createVNode(vue.unref(TinyFormItem), {
774
- prop: "endDate",
775
- class: "tvp-search-box__date-item"
776
- }, {
777
- default: vue.withCtx(() => [
778
- vue.createVNode(vue.unref(TinyDatePicker), {
779
- modelValue: state.endDate,
780
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => state.endDate = $event),
781
- format: state.prevItem.format || state.dateRangeFormat,
782
- "value-format": state.prevItem.format || state.dateRangeFormat,
783
- "picker-options": vue.unref(pickerOptions)(state.startDate),
784
- class: "tvp-search-box__date-picker",
785
- onChange: vue.unref(handleDateShow),
786
- onBlur: vue.unref(handleDateShow)
787
- }, null, 8, ["modelValue", "format", "value-format", "picker-options", "onChange", "onBlur"])
788
- ]),
789
- _: 1
790
- })
791
- ]),
792
- vue.createElementVNode("div", _hoisted_37, [
793
- vue.createVNode(vue.unref(TinyButton), {
794
- size: "mini",
795
- onClick: _cache[13] || (_cache[13] = ($event) => vue.unref(onConfirmDate)(true))
796
- }, {
797
- default: vue.withCtx(() => [
798
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
799
- ]),
800
- _: 1
801
- }),
802
- vue.createVNode(vue.unref(TinyButton), {
803
- size: "mini",
804
- onClick: _cache[14] || (_cache[14] = ($event) => vue.unref(onConfirmDate)(false))
805
- }, {
806
- default: vue.withCtx(() => [
807
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
808
- ]),
809
- _: 1
810
- })
811
- ])
812
- ])) : state.prevItem.type === "datetimeRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_38, [
813
- vue.createElementVNode("div", _hoisted_39, [
814
- vue.createElementVNode("div", _hoisted_40, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
815
- value: (state.prevItem.maxTimeLength / 864e5).toFixed(1)
816
- }) : vue.unref(index.t)("tvp.tvpSearchbox.rangeDateTitle")), 1),
817
- vue.createElementVNode("div", _hoisted_41, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeBeginLabel")), 1),
818
- vue.createVNode(vue.unref(TinyFormItem), {
819
- prop: "startDateTime",
820
- "show-message": Boolean(state.prevItem.maxTimeLength),
821
- class: "tvp-search-box__date-item"
822
- }, {
823
- default: vue.withCtx(() => [
824
- vue.createVNode(vue.unref(TinyDatePicker), {
825
- modelValue: state.startDateTime,
826
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => state.startDateTime = $event),
827
- type: "datetime",
828
- isutc8: true,
829
- format: state.prevItem.format || state.datetimeRangeFormat,
830
- "value-format": state.prevItem.format || state.datetimeRangeFormat,
831
- "picker-options": vue.unref(pickerOptions)(state.startDateTime, "endDateTime"),
832
- class: "tvp-search-box__date-picker",
833
- onChange: vue.unref(handleDateShow),
834
- onBlur: vue.unref(handleDateShow)
835
- }, null, 8, ["modelValue", "format", "value-format", "picker-options", "onChange", "onBlur"])
836
- ]),
837
- _: 1
838
- }, 8, ["show-message"]),
839
- vue.createElementVNode("div", _hoisted_42, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
840
- vue.createVNode(vue.unref(TinyFormItem), {
841
- prop: "endDateTime",
842
- class: "tvp-search-box__date-item"
843
- }, {
844
- default: vue.withCtx(() => [
845
- vue.createVNode(vue.unref(TinyDatePicker), {
846
- modelValue: state.endDateTime,
847
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => state.endDateTime = $event),
848
- type: "datetime",
849
- isutc8: true,
850
- format: state.prevItem.format || state.datetimeRangeFormat,
851
- "value-format": state.prevItem.format || state.datetimeRangeFormat,
852
- "picker-options": vue.unref(pickerOptions)(state.startDateTime),
853
- class: "tvp-search-box__date-picker",
854
- onChange: vue.unref(handleDateShow),
855
- onBlur: vue.unref(handleDateShow)
856
- }, null, 8, ["modelValue", "format", "value-format", "picker-options", "onChange", "onBlur"])
857
- ]),
858
- _: 1
859
- })
860
- ]),
861
- vue.createElementVNode("div", _hoisted_43, [
862
- vue.createVNode(vue.unref(TinyButton), {
863
- size: "mini",
864
- onClick: _cache[17] || (_cache[17] = ($event) => vue.unref(onConfirmDate)(true, true))
865
- }, {
866
- default: vue.withCtx(() => [
867
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
868
- ]),
869
- _: 1
870
- }),
871
- vue.createVNode(vue.unref(TinyButton), {
872
- size: "mini",
873
- onClick: _cache[18] || (_cache[18] = ($event) => vue.unref(onConfirmDate)(false, true))
874
- }, {
875
- default: vue.withCtx(() => [
876
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
877
- ]),
878
- _: 1
879
- })
880
- ])
881
- ])) : state.prevItem.type === "map" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_44, [
882
- state.isShowTagKey ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_45, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.tagKey")), 1)) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_46, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.tagValue")), 1)),
883
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.backupList, (item, index2) => {
884
- return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
885
- key: item.label + item.value + index2,
886
- disabled: item.isChecked,
887
- class: "tvp-search-box__dropdown-item",
888
- onClick: ($event) => vue.unref(selectFirstMap)(item, state.isShowTagKey)
889
- }, {
890
- default: vue.withCtx(() => [
891
- vue.createElementVNode("span", {
892
- title: item.label
893
- }, vue.toDisplayString(item.label), 9, _hoisted_47)
894
- ]),
895
- _: 2
896
- }, 1032, ["disabled", "onClick"])), [
897
- [vue.vShow, !item.isFilter]
898
- ]);
899
- }), 128))
900
- ])) : state.prevItem.type === "custom" ? (vue.openBlock(), vue.createElementBlock("div", {
901
- key: 7,
421
+ ((_b = state.instance) == null ? void 0 : _b.slots["second-panel"]) ? vue.renderSlot(_ctx.$slots, "second-panel", vue.mergeProps({ key: 0 }, {
422
+ state,
423
+ pickerOptions: vue.unref(pickerOptions),
424
+ handleEvents,
425
+ back: () => vue.unref(tag.resetInput)(state)
426
+ }, {
427
+ onClick: _cache[2] || (_cache[2] = vue.withModifiers(() => {
428
+ }, ["stop"]))
429
+ })) : state.prevItem.type !== "custom" ? (vue.openBlock(), vue.createBlock(secondLevelPanel_vue_vue_type_script_setup_true_lang.default, {
430
+ key: 1,
431
+ state,
432
+ "picker-options": vue.unref(pickerOptions),
433
+ onEvents: handleEvents
434
+ }, null, 8, ["state", "picker-options"])) : (vue.openBlock(), vue.createElementBlock("div", {
435
+ key: 2,
902
436
  class: "tvp-search-box__panel-box",
903
- onClick: _cache[20] || (_cache[20] = ($event) => vue.unref(dropdown.showDropdown)(state))
437
+ onClick: _cache[4] || (_cache[4] = ($event) => vue.unref(dropdown.showDropdown)(state))
904
438
  }, [
905
439
  vue.renderSlot(_ctx.$slots, state.prevItem.slotName, vue.mergeProps({
906
440
  showDropdown: () => vue.unref(dropdown.showDropdown)(state),
907
441
  onConfirm: vue.unref(handleConfirm)
908
442
  }, {
909
- onClick: _cache[19] || (_cache[19] = vue.withModifiers(() => {
443
+ onClick: _cache[3] || (_cache[3] = vue.withModifiers(() => {
910
444
  }, ["stop"]))
911
445
  }))
912
- ])) : vue.createCommentVNode("", true),
913
- __props.showNoDataTip && !state.isShowDropdown ? (vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), { key: 8 }, {
914
- default: vue.withCtx(() => [
915
- vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.noData")), 1)
916
- ]),
917
- _: 1
918
- })) : vue.createCommentVNode("", true)
446
+ ]))
919
447
  ], 512), [
920
- [vue.vShow, state.isResetFlag && state.propItem.label]
448
+ [vue.vShow, state.propItem.label]
921
449
  ])
922
450
  ];
923
451
  }),
@@ -937,7 +465,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
937
465
  vue.withKeys(vue.withModifiers(vue.unref(createTag), ["stop"]), ["enter"])
938
466
  ],
939
467
  onInput: vue.unref(handleInput),
940
- onFocus: _cache[1] || (_cache[1] = ($event) => vue.unref(dropdown.showPopover)(state, false)),
941
468
  onClick: vue.unref(handleClick)
942
469
  }, {
943
470
  suffix: vue.withCtx(() => [
@@ -952,7 +479,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
952
479
  ]),
953
480
  __props.showHelp ? (vue.openBlock(), vue.createBlock(vue.unref(TinyTooltip), {
954
481
  key: 0,
955
- effect: "dark",
482
+ effect: "light",
956
483
  content: vue.unref(index.t)("tvp.tvpSearchbox.help"),
957
484
  placement: "top"
958
485
  }, {
@@ -973,13 +500,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
973
500
  }, 8, ["modelValue", "placeholder", "maxlength", "onKeydown", "onInput", "onClick"])
974
501
  ]),
975
502
  _: 3
976
- }, 8, ["hide-on-click"])
503
+ }, 8, ["visible"])
977
504
  ]),
978
505
  __props.editable ? (vue.openBlock(), vue.createBlock(vue.unref(TinyPopover), {
979
506
  key: 0,
980
507
  ref: "popoverRef",
981
508
  modelValue: state.popoverVisible,
982
- "onUpdate:modelValue": _cache[35] || (_cache[35] = ($event) => state.popoverVisible = $event),
509
+ "onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => state.popoverVisible = $event),
983
510
  placement: "bottom-start",
984
511
  "visible-arrow": false,
985
512
  trigger: "manual",
@@ -988,13 +515,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
988
515
  }, {
989
516
  default: vue.withCtx(() => [
990
517
  state.prevItem.type !== "custom" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
991
- vue.createElementVNode("div", _hoisted_48, [
992
- vue.createElementVNode("div", _hoisted_49, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.attributeType")), 1),
518
+ vue.createElementVNode("div", _hoisted_6, [
519
+ vue.createElementVNode("div", _hoisted_7, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.attributeType")), 1),
993
520
  vue.createVNode(vue.unref(TinyFormItem), { class: "tvp-search-box__number-item" }, {
994
521
  default: vue.withCtx(() => [
995
522
  vue.createVNode(vue.unref(TinySelect), {
996
523
  modelValue: state.selectValue,
997
- "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => state.selectValue = $event),
524
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => state.selectValue = $event),
998
525
  searchable: "",
999
526
  disabled: state.prevItem.editAttrDisabled
1000
527
  }, {
@@ -1004,7 +531,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1004
531
  label: vue.unref(index.t)("tvp.tvpSearchbox.allProperty"),
1005
532
  value: state.allTypeAttri.label,
1006
533
  disabled: vue.unref(selectItemIsDisable)(state.allTypeAttri),
1007
- onClick: _cache[21] || (_cache[21] = ($event) => vue.unref(selectPropChange)(state.allTypeAttri, vue.unref(selectItemIsDisable)(state.allTypeAttri)))
534
+ onClick: _cache[6] || (_cache[6] = ($event) => vue.unref(selectPropChange)(state.allTypeAttri, vue.unref(selectItemIsDisable)(state.allTypeAttri)))
1008
535
  }, null, 8, ["label", "value", "disabled"])),
1009
536
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.recordItems, (item) => {
1010
537
  return vue.openBlock(), vue.createBlock(vue.unref(TinyOption), {
@@ -1021,7 +548,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1021
548
  ]),
1022
549
  _: 1
1023
550
  }),
1024
- state.prevItem.operators ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_50, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.operator")), 1)) : vue.createCommentVNode("", true),
551
+ state.prevItem.operators ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.operator")), 1)) : vue.createCommentVNode("", true),
1025
552
  state.prevItem.operators ? (vue.openBlock(), vue.createBlock(vue.unref(TinyFormItem), {
1026
553
  key: 1,
1027
554
  class: "tvp-search-box__number-item"
@@ -1029,7 +556,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1029
556
  default: vue.withCtx(() => [
1030
557
  vue.createVNode(vue.unref(TinySelect), {
1031
558
  modelValue: state.operatorValue,
1032
- "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => state.operatorValue = $event)
559
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => state.operatorValue = $event)
1033
560
  }, {
1034
561
  default: vue.withCtx(() => [
1035
562
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.currentOperators, (item) => {
@@ -1045,22 +572,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1045
572
  ]),
1046
573
  _: 1
1047
574
  })) : vue.createCommentVNode("", true),
1048
- state.prevItem.type !== "numRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_51, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.tagValue")), 1)) : vue.createCommentVNode("", true),
575
+ state.prevItem.type !== "numRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.tagValue")), 1)) : vue.createCommentVNode("", true),
1049
576
  !["numRange", "dateRange", "datetimeRange", "custom"].includes(state.prevItem.type) ? (vue.openBlock(), vue.createBlock(vue.unref(TinyFormItem), {
1050
577
  key: 3,
1051
578
  prop: "inputEditValue",
1052
579
  class: "tvp-search-box__number-item"
1053
580
  }, {
1054
581
  default: vue.withCtx(() => {
1055
- var _a;
582
+ var _a, _b;
1056
583
  return [
1057
584
  ((_a = state.currentEditValue) == null ? void 0 : _a.length) > 0 ? (vue.openBlock(), vue.createBlock(vue.unref(TinySelect), {
1058
585
  key: 0,
1059
586
  modelValue: state.inputEditValue,
1060
- "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => state.inputEditValue = $event),
587
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => state.inputEditValue = $event),
1061
588
  class: "tvp-search-box-select",
1062
589
  multiple: Boolean(state.prevItem.mergeTag),
1063
- "allow-create": "",
590
+ "allow-create": (_b = state.prevItem) == null ? void 0 : _b.allowCreate,
1064
591
  filterable: "",
1065
592
  "default-first-option": "",
1066
593
  clearable: ""
@@ -1075,18 +602,18 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1075
602
  }), 128))
1076
603
  ]),
1077
604
  _: 1
1078
- }, 8, ["modelValue", "multiple"])) : (vue.openBlock(), vue.createBlock(vue.unref(TinyInput), {
605
+ }, 8, ["modelValue", "multiple", "allow-create"])) : (vue.openBlock(), vue.createBlock(vue.unref(TinyInput), {
1079
606
  key: 1,
1080
607
  modelValue: state.inputEditValue,
1081
- "onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => state.inputEditValue = $event),
608
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => state.inputEditValue = $event),
1082
609
  clearable: ""
1083
610
  }, null, 8, ["modelValue"]))
1084
611
  ];
1085
612
  }),
1086
613
  _: 1
1087
614
  })) : vue.createCommentVNode("", true),
1088
- state.prevItem.type === "numRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_52, [
1089
- vue.createElementVNode("div", _hoisted_53, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.minValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
615
+ state.prevItem.type === "numRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, [
616
+ vue.createElementVNode("div", _hoisted_11, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.minValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
1090
617
  vue.createVNode(vue.unref(TinyFormItem), {
1091
618
  prop: state.curMinNumVar,
1092
619
  class: "tvp-search-box__number-item",
@@ -1095,14 +622,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1095
622
  default: vue.withCtx(() => [
1096
623
  vue.createVNode(vue.unref(TinyInput), {
1097
624
  modelValue: state[state.curMinNumVar],
1098
- "onUpdate:modelValue": _cache[26] || (_cache[26] = ($event) => state[state.curMinNumVar] = $event),
625
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => state[state.curMinNumVar] = $event),
1099
626
  type: "number",
1100
627
  class: "tvp-search-box__number-input"
1101
628
  }, null, 8, ["modelValue"])
1102
629
  ]),
1103
630
  _: 1
1104
631
  }, 8, ["prop", "show-message"]),
1105
- vue.createElementVNode("div", _hoisted_54, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.maxValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
632
+ vue.createElementVNode("div", _hoisted_12, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.maxValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
1106
633
  vue.createVNode(vue.unref(TinyFormItem), {
1107
634
  prop: state.curMaxNumVar,
1108
635
  class: "tvp-search-box__number-item"
@@ -1110,7 +637,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1110
637
  default: vue.withCtx(() => [
1111
638
  vue.createVNode(vue.unref(TinyInput), {
1112
639
  modelValue: state[state.curMaxNumVar],
1113
- "onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => state[state.curMaxNumVar] = $event),
640
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => state[state.curMaxNumVar] = $event),
1114
641
  type: "number",
1115
642
  class: "tvp-search-box__number-input"
1116
643
  }, null, 8, ["modelValue"])
@@ -1118,11 +645,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1118
645
  _: 1
1119
646
  }, 8, ["prop"])
1120
647
  ])) : vue.createCommentVNode("", true),
1121
- state.prevItem.type === "dateRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_55, [
1122
- vue.createElementVNode("div", _hoisted_56, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
648
+ state.prevItem.type === "dateRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_13, [
649
+ vue.createElementVNode("div", _hoisted_14, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
1123
650
  value: (state.prevItem.maxTimeLength / 864e5).toFixed(1)
1124
651
  }) : vue.unref(index.t)("tvp.tvpSearchbox.rangeDateTitle")), 1),
1125
- vue.createElementVNode("div", _hoisted_57, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeBeginLabel")), 1),
652
+ vue.createElementVNode("div", _hoisted_15, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1126
653
  vue.createVNode(vue.unref(TinyFormItem), {
1127
654
  prop: "startDate",
1128
655
  "show-message": Boolean(state.prevItem.maxTimeLength),
@@ -1131,7 +658,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1131
658
  default: vue.withCtx(() => [
1132
659
  vue.createVNode(vue.unref(TinyDatePicker), {
1133
660
  modelValue: state.startDate,
1134
- "onUpdate:modelValue": _cache[28] || (_cache[28] = ($event) => state.startDate = $event),
661
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => state.startDate = $event),
1135
662
  format: state.prevItem.format || state.dateRangeFormat,
1136
663
  "value-format": state.prevItem.format || state.dateRangeFormat,
1137
664
  "picker-options": vue.unref(pickerOptions)(state.startDate, "endDate"),
@@ -1140,7 +667,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1140
667
  ]),
1141
668
  _: 1
1142
669
  }, 8, ["show-message"]),
1143
- vue.createElementVNode("div", _hoisted_58, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
670
+ vue.createElementVNode("div", _hoisted_16, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
1144
671
  vue.createVNode(vue.unref(TinyFormItem), {
1145
672
  prop: "endDate",
1146
673
  class: "tvp-search-box__date-item"
@@ -1148,7 +675,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1148
675
  default: vue.withCtx(() => [
1149
676
  vue.createVNode(vue.unref(TinyDatePicker), {
1150
677
  modelValue: state.endDate,
1151
- "onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => state.endDate = $event),
678
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => state.endDate = $event),
1152
679
  format: state.prevItem.format || state.dateRangeFormat,
1153
680
  "value-format": state.prevItem.format || state.dateRangeFormat,
1154
681
  "picker-options": vue.unref(pickerOptions)(state.startDate),
@@ -1158,11 +685,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1158
685
  _: 1
1159
686
  })
1160
687
  ])) : vue.createCommentVNode("", true),
1161
- state.prevItem.type === "datetimeRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_59, [
1162
- vue.createElementVNode("div", _hoisted_60, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
688
+ state.prevItem.type === "datetimeRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
689
+ vue.createElementVNode("div", _hoisted_18, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
1163
690
  value: (state.prevItem.maxTimeLength / 864e5).toFixed(1)
1164
691
  }) : vue.unref(index.t)("tvp.tvpSearchbox.rangeDateTitle")), 1),
1165
- vue.createElementVNode("div", _hoisted_61, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeBeginLabel")), 1),
692
+ vue.createElementVNode("div", _hoisted_19, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeBeginLabel")), 1),
1166
693
  vue.createVNode(vue.unref(TinyFormItem), {
1167
694
  prop: "startDateTime",
1168
695
  "show-message": Boolean(state.prevItem.maxTimeLength),
@@ -1171,7 +698,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1171
698
  default: vue.withCtx(() => [
1172
699
  vue.createVNode(vue.unref(TinyDatePicker), {
1173
700
  modelValue: state.startDateTime,
1174
- "onUpdate:modelValue": _cache[30] || (_cache[30] = ($event) => state.startDateTime = $event),
701
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => state.startDateTime = $event),
1175
702
  type: "datetime",
1176
703
  isutc8: true,
1177
704
  format: state.prevItem.format || state.datetimeRangeFormat,
@@ -1182,7 +709,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1182
709
  ]),
1183
710
  _: 1
1184
711
  }, 8, ["show-message"]),
1185
- vue.createElementVNode("div", _hoisted_62, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
712
+ vue.createElementVNode("div", _hoisted_20, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
1186
713
  vue.createVNode(vue.unref(TinyFormItem), {
1187
714
  prop: "endDateTime",
1188
715
  class: "tvp-search-box__date-item"
@@ -1190,7 +717,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1190
717
  default: vue.withCtx(() => [
1191
718
  vue.createVNode(vue.unref(TinyDatePicker), {
1192
719
  modelValue: state.endDateTime,
1193
- "onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => state.endDateTime = $event),
720
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => state.endDateTime = $event),
1194
721
  type: "datetime",
1195
722
  isutc8: true,
1196
723
  format: state.prevItem.format || state.datetimeRangeFormat,
@@ -1203,32 +730,32 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1203
730
  })
1204
731
  ])) : vue.createCommentVNode("", true)
1205
732
  ]),
1206
- vue.createElementVNode("div", _hoisted_63, [
733
+ vue.createElementVNode("div", _hoisted_21, [
1207
734
  vue.createVNode(vue.unref(TinyButton), {
1208
735
  size: "mini",
1209
- onClick: _cache[32] || (_cache[32] = ($event) => vue.unref(confirmEditTag)(true))
736
+ onClick: _cache[17] || (_cache[17] = ($event) => vue.unref(confirmEditTag)(false))
1210
737
  }, {
1211
738
  default: vue.withCtx(() => [
1212
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
739
+ vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
1213
740
  ]),
1214
741
  _: 1
1215
742
  }),
1216
743
  vue.createVNode(vue.unref(TinyButton), {
1217
744
  size: "mini",
1218
- onClick: _cache[33] || (_cache[33] = ($event) => vue.unref(confirmEditTag)(false))
745
+ onClick: _cache[18] || (_cache[18] = ($event) => vue.unref(confirmEditTag)(true))
1219
746
  }, {
1220
747
  default: vue.withCtx(() => [
1221
- vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
748
+ vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
1222
749
  ]),
1223
750
  _: 1
1224
751
  })
1225
752
  ])
1226
- ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_64, [
753
+ ], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_22, [
1227
754
  vue.renderSlot(_ctx.$slots, `${state.prevItem.slotName}-edit`, vue.mergeProps({
1228
755
  showDropdown: () => vue.unref(dropdown.showPopover)(state),
1229
756
  onConfirm: vue.unref(handleEditConfirm)
1230
757
  }, {
1231
- onClick: _cache[34] || (_cache[34] = vue.withModifiers(() => {
758
+ onClick: _cache[19] || (_cache[19] = vue.withModifiers(() => {
1232
759
  }, ["stop"]))
1233
760
  }))
1234
761
  ]))