@opentiny/vue-search-box 0.1.0 → 0.1.1-alpha.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.
- package/README.md +1 -106
- package/dist/es/index.es.js +22 -0
- package/{es → dist/es}/index.vue.es2.js +11 -42
- package/dist/es/utils/en_US.es.js +44 -0
- package/{es → dist/es}/utils/zh_CN.es.js +1 -1
- package/{lib → dist/lib}/index.cjs.js +10 -2
- package/{lib → dist/lib}/index.vue.cjs2.js +83 -114
- package/dist/lib/utils/en_US.cjs.js +44 -0
- package/{lib → dist/lib}/utils/zh_CN.cjs.js +2 -2
- package/{types → dist/types}/utils/en_US.d.ts +2 -1
- package/{types → dist/types}/utils/zh_CN.d.ts +2 -1
- package/package.json +72 -63
- package/src/index.ts +24 -0
- package/es/index.es.js +0 -14
- package/es/utils/en_US.es.js +0 -44
- package/lib/utils/en_US.cjs.js +0 -44
- /package/{es → dist/es}/composables/use-checkbox.es.js +0 -0
- /package/{es → dist/es}/composables/use-custom.es.js +0 -0
- /package/{es → dist/es}/composables/use-datepicker.es.js +0 -0
- /package/{es → dist/es}/composables/use-dropdown.es.js +0 -0
- /package/{es → dist/es}/composables/use-edit.es.js +0 -0
- /package/{es → dist/es}/composables/use-init.es.js +0 -0
- /package/{es → dist/es}/composables/use-match.es.js +0 -0
- /package/{es → dist/es}/composables/use-num-range.es.js +0 -0
- /package/{es → dist/es}/composables/use-placeholder.es.js +0 -0
- /package/{es → dist/es}/composables/use-tag.es.js +0 -0
- /package/{es → dist/es}/index-VrLZbD8H.css +0 -0
- /package/{es → dist/es}/index.type.es.js +0 -0
- /package/{es → dist/es}/index.vue.es.js +0 -0
- /package/{es → dist/es}/smb-theme.es.js +0 -0
- /package/{es → dist/es}/utils/clone.es.js +0 -0
- /package/{es → dist/es}/utils/date.es.js +0 -0
- /package/{es → dist/es}/utils/dropdown.es.js +0 -0
- /package/{es → dist/es}/utils/index.es.js +0 -0
- /package/{es → dist/es}/utils/tag.es.js +0 -0
- /package/{es → dist/es}/utils/type.es.js +0 -0
- /package/{es → dist/es}/utils/validate.es.js +0 -0
- /package/{index.css → dist/index.css} +0 -0
- /package/{lib → dist/lib}/composables/use-checkbox.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-custom.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-datepicker.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-dropdown.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-edit.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-init.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-match.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-num-range.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-placeholder.cjs.js +0 -0
- /package/{lib → dist/lib}/composables/use-tag.cjs.js +0 -0
- /package/{lib → dist/lib}/index-VrLZbD8H.css +0 -0
- /package/{lib → dist/lib}/index.type.cjs.js +0 -0
- /package/{lib → dist/lib}/index.vue.cjs.js +0 -0
- /package/{lib → dist/lib}/smb-theme.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/clone.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/date.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/dropdown.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/index.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/tag.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/type.cjs.js +0 -0
- /package/{lib → dist/lib}/utils/validate.cjs.js +0 -0
- /package/{types → dist/types}/composables/use-checkbox.d.ts +0 -0
- /package/{types → dist/types}/composables/use-custom.d.ts +0 -0
- /package/{types → dist/types}/composables/use-datepicker.d.ts +0 -0
- /package/{types → dist/types}/composables/use-dropdown.d.ts +0 -0
- /package/{types → dist/types}/composables/use-edit.d.ts +0 -0
- /package/{types → dist/types}/composables/use-init.d.ts +0 -0
- /package/{types → dist/types}/composables/use-match.d.ts +0 -0
- /package/{types → dist/types}/composables/use-num-range.d.ts +0 -0
- /package/{types → dist/types}/composables/use-placeholder.d.ts +0 -0
- /package/{types → dist/types}/composables/use-tag.d.ts +0 -0
- /package/{types → dist/types}/index.type.d.ts +0 -0
- /package/{types → dist/types}/smb-theme.d.ts +0 -0
- /package/{types → dist/types}/utils/clone.d.ts +0 -0
- /package/{types → dist/types}/utils/date.d.ts +0 -0
- /package/{types → dist/types}/utils/dropdown.d.ts +0 -0
- /package/{types → dist/types}/utils/index.d.ts +0 -0
- /package/{types → dist/types}/utils/tag.d.ts +0 -0
- /package/{types → dist/types}/utils/type.d.ts +0 -0
- /package/{types → dist/types}/utils/validate.d.ts +0 -0
|
@@ -17,7 +17,7 @@ const TinyPopover = require("@opentiny/vue-popover");
|
|
|
17
17
|
const TinySelect = require("@opentiny/vue-select");
|
|
18
18
|
const TinyOption = require("@opentiny/vue-option");
|
|
19
19
|
const vueIcon = require("@opentiny/vue-icon");
|
|
20
|
-
const
|
|
20
|
+
const index = require("./index.cjs.js");
|
|
21
21
|
const useTag = require("./composables/use-tag.cjs.js");
|
|
22
22
|
const useDropdown = require("./composables/use-dropdown.cjs.js");
|
|
23
23
|
const useMatch = require("./composables/use-match.cjs.js");
|
|
@@ -168,7 +168,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
168
168
|
},
|
|
169
169
|
emptyPlaceholder: {
|
|
170
170
|
type: String,
|
|
171
|
-
default:
|
|
171
|
+
default: ""
|
|
172
172
|
},
|
|
173
173
|
potentialOptions: {
|
|
174
174
|
type: Object,
|
|
@@ -214,13 +214,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
214
214
|
default: true
|
|
215
215
|
}
|
|
216
216
|
},
|
|
217
|
-
emits: [
|
|
218
|
-
"update:modelValue",
|
|
219
|
-
"change",
|
|
220
|
-
"search",
|
|
221
|
-
"exceed",
|
|
222
|
-
"first-level-select"
|
|
223
|
-
],
|
|
217
|
+
emits: ["update:modelValue", "change", "search", "exceed", "first-level-select"],
|
|
224
218
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
225
219
|
const props = __props;
|
|
226
220
|
const emits = __emit;
|
|
@@ -253,7 +247,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
253
247
|
popoverVisible: false,
|
|
254
248
|
selectValue: "",
|
|
255
249
|
allTypeAttri: {
|
|
256
|
-
label:
|
|
250
|
+
label: index.t("tvp.tvpSearchbox.rulekeyword1"),
|
|
257
251
|
field: "tvpKeyword",
|
|
258
252
|
type: "radio"
|
|
259
253
|
},
|
|
@@ -292,7 +286,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
292
286
|
props,
|
|
293
287
|
emits,
|
|
294
288
|
state,
|
|
295
|
-
t:
|
|
289
|
+
t: index.t,
|
|
296
290
|
format: date.format
|
|
297
291
|
});
|
|
298
292
|
const { deleteTag, clearTag, backspaceDeleteTag } = useTag.useTag({
|
|
@@ -303,7 +297,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
303
297
|
const { editTag, confirmEditTag, selectPropChange, selectItemIsDisable } = useEdit.useEdit({
|
|
304
298
|
props,
|
|
305
299
|
state,
|
|
306
|
-
t:
|
|
300
|
+
t: index.t,
|
|
307
301
|
nextTick: vue.nextTick,
|
|
308
302
|
format: date.format,
|
|
309
303
|
emits
|
|
@@ -313,7 +307,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
313
307
|
state,
|
|
314
308
|
emits
|
|
315
309
|
});
|
|
316
|
-
const { placeholder, setPlaceholder } = usePlaceholder.usePlaceholder({ props, state, t:
|
|
310
|
+
const { placeholder, setPlaceholder } = usePlaceholder.usePlaceholder({ props, state, t: index.t });
|
|
317
311
|
const { selectCheckbox, isIndeterminate, checkAll, isShowClose } = useCheckbox.useCheckbox({
|
|
318
312
|
props,
|
|
319
313
|
state,
|
|
@@ -327,17 +321,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
327
321
|
const { sizeChange, initFormRule } = useNumRange.useNumRange({
|
|
328
322
|
props,
|
|
329
323
|
state,
|
|
330
|
-
t:
|
|
324
|
+
t: index.t,
|
|
331
325
|
emits
|
|
332
326
|
});
|
|
333
327
|
const { handleConfirm, handleEditConfirm } = useCustom.useCustom({ state, emits });
|
|
334
|
-
const {
|
|
335
|
-
initItems,
|
|
336
|
-
watchOutsideClick,
|
|
337
|
-
watchMouseDown,
|
|
338
|
-
watchMouseMove,
|
|
339
|
-
handleClick
|
|
340
|
-
} = useInit.useInit({
|
|
328
|
+
const { initItems, watchOutsideClick, watchMouseDown, watchMouseMove, handleClick } = useInit.useInit({
|
|
341
329
|
props,
|
|
342
330
|
state
|
|
343
331
|
});
|
|
@@ -370,21 +358,21 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
370
358
|
if (newVal) {
|
|
371
359
|
state.indexMap.clear();
|
|
372
360
|
state.valueMap.clear();
|
|
373
|
-
newVal.forEach((item,
|
|
361
|
+
newVal.forEach((item, index2) => {
|
|
374
362
|
var _a;
|
|
375
363
|
const value = `${item.label}${item.value}`;
|
|
376
|
-
state.indexMap.set(item.label,
|
|
377
|
-
state.valueMap.set(value,
|
|
364
|
+
state.indexMap.set(item.label, index2);
|
|
365
|
+
state.valueMap.set(value, index2);
|
|
378
366
|
if (((_a = item.options) == null ? void 0 : _a.length) > 0) {
|
|
379
367
|
item.options.forEach((option) => {
|
|
380
368
|
const optionValue = `${item.label}${option.label}`;
|
|
381
|
-
state.valueMap.set(optionValue,
|
|
369
|
+
state.valueMap.set(optionValue, index2);
|
|
382
370
|
});
|
|
383
371
|
}
|
|
384
372
|
});
|
|
385
373
|
dropdown.showPopover(state, false);
|
|
386
374
|
if (newVal.length === 0) {
|
|
387
|
-
setPlaceholder(props.emptyPlaceholder);
|
|
375
|
+
setPlaceholder(props.emptyPlaceholder || index.t("tvp.tvpSearchbox.defaultPlaceholder"));
|
|
388
376
|
}
|
|
389
377
|
if (props.editable && !state.inputEditValue.length && newVal[0]) {
|
|
390
378
|
state.inputEditValue = newVal[0].value;
|
|
@@ -416,17 +404,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
416
404
|
onClick: _cache[36] || (_cache[36] = vue.withModifiers(($event) => vue.unref(dropdown.showPopover)(state, false), ["stop"]))
|
|
417
405
|
}, [
|
|
418
406
|
vue.createVNode(vue.unref(TinyIconSearch), { class: "tvp-search-box__prefix" }),
|
|
419
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.modelValue, (tag,
|
|
407
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.modelValue, (tag, index2) => {
|
|
420
408
|
return vue.openBlock(), vue.createBlock(vue.unref(TinyTag), {
|
|
421
|
-
key: tag.field +
|
|
409
|
+
key: tag.field + index2,
|
|
422
410
|
closable: "",
|
|
423
|
-
class: vue.normalizeClass([
|
|
424
|
-
"tvp-search-box__tag",
|
|
425
|
-
__props.editable && tag.type !== "map" ? "tvp-search-box__tag-editor" : ""
|
|
426
|
-
]),
|
|
411
|
+
class: vue.normalizeClass(["tvp-search-box__tag", __props.editable && tag.type !== "map" ? "tvp-search-box__tag-editor" : ""]),
|
|
427
412
|
title: `${tag.label} ${tag.operator || ":"} ${tag.value}`,
|
|
428
413
|
onClose: ($event) => vue.unref(deleteTag)(tag),
|
|
429
|
-
onClick: vue.withModifiers(($event) => vue.unref(editTag)(tag,
|
|
414
|
+
onClick: vue.withModifiers(($event) => vue.unref(editTag)(tag, index2, $event), ["stop"])
|
|
430
415
|
}, {
|
|
431
416
|
default: vue.withCtx(() => [
|
|
432
417
|
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(tag.label) + " " + vue.toDisplayString(tag.operator || ":") + " " + vue.toDisplayString(tag.value), 1)
|
|
@@ -477,10 +462,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
477
462
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.matchItems, (value, key) => {
|
|
478
463
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key }, [
|
|
479
464
|
value["attr"].length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
480
|
-
vue.createElementVNode("span", _hoisted_6, vue.toDisplayString(key === "0" ? vue.unref(
|
|
481
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(value["attr"], (item,
|
|
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) => {
|
|
482
467
|
return vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
|
|
483
|
-
key: item.label +
|
|
468
|
+
key: item.label + index2,
|
|
484
469
|
class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
|
|
485
470
|
onClick: ($event) => vue.unref(selectPropItem)(item)
|
|
486
471
|
}, {
|
|
@@ -500,12 +485,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
500
485
|
}), 128))
|
|
501
486
|
], 64)) : vue.createCommentVNode("", true),
|
|
502
487
|
value["attrValue"].length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
503
|
-
vue.createElementVNode("span", _hoisted_8, vue.toDisplayString(vue.unref(
|
|
504
|
-
|
|
505
|
-
])), 1),
|
|
506
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(value["attrValue"], (item, index) => {
|
|
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) => {
|
|
507
490
|
return vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
|
|
508
|
-
key: item.label +
|
|
491
|
+
key: item.label + index2,
|
|
509
492
|
disabled: item.isChecked,
|
|
510
493
|
class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
|
|
511
494
|
onClick: ($event) => vue.unref(selectRadioItem)(item, true)
|
|
@@ -529,17 +512,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
529
512
|
}), 128)),
|
|
530
513
|
__props.showNoDataTip && !state.isShowDropdown ? (vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), { key: 0 }, {
|
|
531
514
|
default: vue.withCtx(() => [
|
|
532
|
-
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(
|
|
515
|
+
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.noData")), 1)
|
|
533
516
|
]),
|
|
534
517
|
_: 1
|
|
535
518
|
})) : vue.createCommentVNode("", true),
|
|
536
519
|
vue.withDirectives(vue.createElementVNode("div", null, [
|
|
537
|
-
vue.createElementVNode("span", _hoisted_10, vue.toDisplayString(vue.unref(
|
|
520
|
+
vue.createElementVNode("span", _hoisted_10, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.matched")), 1),
|
|
538
521
|
vue.createElementVNode("div", _hoisted_11, [
|
|
539
522
|
state.potentialOptions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12, [
|
|
540
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.potentialOptions, (item,
|
|
523
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.potentialOptions, (item, index2) => {
|
|
541
524
|
return vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
|
|
542
|
-
key: item.label +
|
|
525
|
+
key: item.label + index2,
|
|
543
526
|
class: "tvp-search-box__filter-item tvp-search-box__dropdown-item",
|
|
544
527
|
onClick: ($event) => vue.unref(selectRadioItem)(item, true)
|
|
545
528
|
}, {
|
|
@@ -556,18 +539,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
556
539
|
[vue.vShow, props.potentialOptions]
|
|
557
540
|
])
|
|
558
541
|
], 512), [
|
|
559
|
-
[
|
|
560
|
-
vue.vShow,
|
|
561
|
-
state.isResetFlag && !state.propItem.label && state.inputValue.trim()
|
|
562
|
-
]
|
|
542
|
+
[vue.vShow, state.isResetFlag && !state.propItem.label && state.inputValue.trim()]
|
|
563
543
|
]),
|
|
564
544
|
vue.withDirectives(vue.createElementVNode("div", _hoisted_14, [
|
|
565
545
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.groupItems, (group, key) => {
|
|
566
546
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key }, [
|
|
567
|
-
group.length ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15, vue.toDisplayString(key === "0" ? vue.unref(
|
|
568
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(group, (item,
|
|
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) => {
|
|
569
549
|
return vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
|
|
570
|
-
key: (item.field || item.label) +
|
|
550
|
+
key: (item.field || item.label) + index2,
|
|
571
551
|
class: "tvp-search-box__dropdown-item",
|
|
572
552
|
onClick: ($event) => vue.unref(selectPropItem)(item)
|
|
573
553
|
}, {
|
|
@@ -582,17 +562,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
582
562
|
], 64);
|
|
583
563
|
}), 128))
|
|
584
564
|
], 512), [
|
|
585
|
-
[
|
|
586
|
-
vue.vShow,
|
|
587
|
-
state.isResetFlag && !state.propItem.label && !state.inputValue.trim()
|
|
588
|
-
]
|
|
565
|
+
[vue.vShow, state.isResetFlag && !state.propItem.label && !state.inputValue.trim()]
|
|
589
566
|
]),
|
|
590
567
|
vue.withDirectives(vue.createElementVNode("div", null, [
|
|
591
568
|
((_a = state.currentOperators) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_17, [
|
|
592
|
-
vue.createElementVNode("span", _hoisted_18, vue.toDisplayString(vue.unref(
|
|
593
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.currentOperators, (item,
|
|
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) => {
|
|
594
571
|
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
|
|
595
|
-
key: item +
|
|
572
|
+
key: item + index2,
|
|
596
573
|
class: "tvp-search-box__dropdown-item",
|
|
597
574
|
onClick: ($event) => vue.unref(setOperator)(item)
|
|
598
575
|
}, {
|
|
@@ -605,9 +582,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
605
582
|
]);
|
|
606
583
|
}), 128))
|
|
607
584
|
])) : !state.prevItem.type || state.prevItem.type === "radio" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, [
|
|
608
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.backupList, (item,
|
|
585
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.backupList, (item, index2) => {
|
|
609
586
|
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
|
|
610
|
-
key:
|
|
587
|
+
key: index2 + (item.field || item.label),
|
|
611
588
|
disabled: item.isChecked,
|
|
612
589
|
class: "tvp-search-box__dropdown-item",
|
|
613
590
|
onClick: ($event) => vue.unref(selectRadioItem)(item)
|
|
@@ -650,7 +627,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
650
627
|
indeterminate: vue.unref(isIndeterminate)
|
|
651
628
|
}, {
|
|
652
629
|
default: vue.withCtx(() => [
|
|
653
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
630
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.selectAll")), 1)
|
|
654
631
|
]),
|
|
655
632
|
_: 1
|
|
656
633
|
}, 8, ["modelValue", "indeterminate"])
|
|
@@ -666,9 +643,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
666
643
|
class: "tvp-search-box__checkbox"
|
|
667
644
|
}, {
|
|
668
645
|
default: vue.withCtx(() => [
|
|
669
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.backupList, (item,
|
|
646
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.backupList, (item, index2) => {
|
|
670
647
|
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
|
|
671
|
-
key: (item.field || item.label) +
|
|
648
|
+
key: (item.field || item.label) + index2,
|
|
672
649
|
class: "tvp-search-box__dropdown-item tvp-search-box__checkbox-item"
|
|
673
650
|
}, {
|
|
674
651
|
default: vue.withCtx(() => [
|
|
@@ -698,7 +675,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
698
675
|
onClick: _cache[5] || (_cache[5] = ($event) => vue.unref(selectCheckbox)(true))
|
|
699
676
|
}, {
|
|
700
677
|
default: vue.withCtx(() => [
|
|
701
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
678
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
|
|
702
679
|
]),
|
|
703
680
|
_: 1
|
|
704
681
|
}),
|
|
@@ -707,15 +684,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
707
684
|
onClick: _cache[6] || (_cache[6] = ($event) => vue.unref(selectCheckbox)(false))
|
|
708
685
|
}, {
|
|
709
686
|
default: vue.withCtx(() => [
|
|
710
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
687
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
|
|
711
688
|
]),
|
|
712
689
|
_: 1
|
|
713
690
|
})
|
|
714
691
|
])
|
|
715
692
|
])) : state.prevItem.type === "numRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_26, [
|
|
716
693
|
vue.createElementVNode("div", _hoisted_27, [
|
|
717
|
-
vue.createElementVNode("div", _hoisted_28, vue.toDisplayString(vue.unref(
|
|
718
|
-
vue.createElementVNode("div", _hoisted_29, vue.toDisplayString(vue.unref(
|
|
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),
|
|
719
696
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
720
697
|
prop: state.curMinNumVar,
|
|
721
698
|
class: "tvp-search-box__number-item",
|
|
@@ -731,7 +708,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
731
708
|
]),
|
|
732
709
|
_: 1
|
|
733
710
|
}, 8, ["prop", "show-message"]),
|
|
734
|
-
vue.createElementVNode("div", _hoisted_30, vue.toDisplayString(vue.unref(
|
|
711
|
+
vue.createElementVNode("div", _hoisted_30, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.maxValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
|
|
735
712
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
736
713
|
prop: state.curMaxNumVar,
|
|
737
714
|
class: "tvp-search-box__number-item"
|
|
@@ -753,7 +730,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
753
730
|
onClick: _cache[9] || (_cache[9] = vue.withModifiers(($event) => vue.unref(sizeChange)(true), ["stop"]))
|
|
754
731
|
}, {
|
|
755
732
|
default: vue.withCtx(() => [
|
|
756
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
733
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
|
|
757
734
|
]),
|
|
758
735
|
_: 1
|
|
759
736
|
}),
|
|
@@ -762,17 +739,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
762
739
|
onClick: _cache[10] || (_cache[10] = ($event) => vue.unref(sizeChange)(false))
|
|
763
740
|
}, {
|
|
764
741
|
default: vue.withCtx(() => [
|
|
765
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
742
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
|
|
766
743
|
]),
|
|
767
744
|
_: 1
|
|
768
745
|
})
|
|
769
746
|
])
|
|
770
747
|
])) : state.prevItem.type === "dateRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_32, [
|
|
771
748
|
vue.createElementVNode("div", _hoisted_33, [
|
|
772
|
-
vue.createElementVNode("div", _hoisted_34, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(
|
|
749
|
+
vue.createElementVNode("div", _hoisted_34, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
|
|
773
750
|
value: (state.prevItem.maxTimeLength / 864e5).toFixed(1)
|
|
774
|
-
}) : vue.unref(
|
|
775
|
-
vue.createElementVNode("div", _hoisted_35, vue.toDisplayString(vue.unref(
|
|
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),
|
|
776
753
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
777
754
|
prop: "startDate",
|
|
778
755
|
"show-message": Boolean(state.prevItem.maxTimeLength),
|
|
@@ -792,7 +769,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
792
769
|
]),
|
|
793
770
|
_: 1
|
|
794
771
|
}, 8, ["show-message"]),
|
|
795
|
-
vue.createElementVNode("div", _hoisted_36, vue.toDisplayString(vue.unref(
|
|
772
|
+
vue.createElementVNode("div", _hoisted_36, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
|
|
796
773
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
797
774
|
prop: "endDate",
|
|
798
775
|
class: "tvp-search-box__date-item"
|
|
@@ -818,7 +795,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
818
795
|
onClick: _cache[13] || (_cache[13] = ($event) => vue.unref(onConfirmDate)(true))
|
|
819
796
|
}, {
|
|
820
797
|
default: vue.withCtx(() => [
|
|
821
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
798
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
|
|
822
799
|
]),
|
|
823
800
|
_: 1
|
|
824
801
|
}),
|
|
@@ -827,17 +804,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
827
804
|
onClick: _cache[14] || (_cache[14] = ($event) => vue.unref(onConfirmDate)(false))
|
|
828
805
|
}, {
|
|
829
806
|
default: vue.withCtx(() => [
|
|
830
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
807
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
|
|
831
808
|
]),
|
|
832
809
|
_: 1
|
|
833
810
|
})
|
|
834
811
|
])
|
|
835
812
|
])) : state.prevItem.type === "datetimeRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_38, [
|
|
836
813
|
vue.createElementVNode("div", _hoisted_39, [
|
|
837
|
-
vue.createElementVNode("div", _hoisted_40, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(
|
|
814
|
+
vue.createElementVNode("div", _hoisted_40, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
|
|
838
815
|
value: (state.prevItem.maxTimeLength / 864e5).toFixed(1)
|
|
839
|
-
}) : vue.unref(
|
|
840
|
-
vue.createElementVNode("div", _hoisted_41, vue.toDisplayString(vue.unref(
|
|
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),
|
|
841
818
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
842
819
|
prop: "startDateTime",
|
|
843
820
|
"show-message": Boolean(state.prevItem.maxTimeLength),
|
|
@@ -859,7 +836,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
859
836
|
]),
|
|
860
837
|
_: 1
|
|
861
838
|
}, 8, ["show-message"]),
|
|
862
|
-
vue.createElementVNode("div", _hoisted_42, vue.toDisplayString(vue.unref(
|
|
839
|
+
vue.createElementVNode("div", _hoisted_42, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
|
|
863
840
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
864
841
|
prop: "endDateTime",
|
|
865
842
|
class: "tvp-search-box__date-item"
|
|
@@ -887,7 +864,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
887
864
|
onClick: _cache[17] || (_cache[17] = ($event) => vue.unref(onConfirmDate)(true, true))
|
|
888
865
|
}, {
|
|
889
866
|
default: vue.withCtx(() => [
|
|
890
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
867
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
|
|
891
868
|
]),
|
|
892
869
|
_: 1
|
|
893
870
|
}),
|
|
@@ -896,16 +873,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
896
873
|
onClick: _cache[18] || (_cache[18] = ($event) => vue.unref(onConfirmDate)(false, true))
|
|
897
874
|
}, {
|
|
898
875
|
default: vue.withCtx(() => [
|
|
899
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
876
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
|
|
900
877
|
]),
|
|
901
878
|
_: 1
|
|
902
879
|
})
|
|
903
880
|
])
|
|
904
881
|
])) : state.prevItem.type === "map" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_44, [
|
|
905
|
-
state.isShowTagKey ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_45, vue.toDisplayString(vue.unref(
|
|
906
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.backupList, (item,
|
|
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) => {
|
|
907
884
|
return vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), {
|
|
908
|
-
key: item.label + item.value +
|
|
885
|
+
key: item.label + item.value + index2,
|
|
909
886
|
disabled: item.isChecked,
|
|
910
887
|
class: "tvp-search-box__dropdown-item",
|
|
911
888
|
onClick: ($event) => vue.unref(selectFirstMap)(item, state.isShowTagKey)
|
|
@@ -935,7 +912,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
935
912
|
])) : vue.createCommentVNode("", true),
|
|
936
913
|
__props.showNoDataTip && !state.isShowDropdown ? (vue.openBlock(), vue.createBlock(vue.unref(TinyDropdownItem), { key: 8 }, {
|
|
937
914
|
default: vue.withCtx(() => [
|
|
938
|
-
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(
|
|
915
|
+
vue.createElementVNode("div", null, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.noData")), 1)
|
|
939
916
|
]),
|
|
940
917
|
_: 1
|
|
941
918
|
})) : vue.createCommentVNode("", true)
|
|
@@ -976,7 +953,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
976
953
|
__props.showHelp ? (vue.openBlock(), vue.createBlock(vue.unref(TinyTooltip), {
|
|
977
954
|
key: 0,
|
|
978
955
|
effect: "dark",
|
|
979
|
-
content: vue.unref(
|
|
956
|
+
content: vue.unref(index.t)("tvp.tvpSearchbox.help"),
|
|
980
957
|
placement: "top"
|
|
981
958
|
}, {
|
|
982
959
|
default: vue.withCtx(() => [
|
|
@@ -1012,7 +989,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1012
989
|
default: vue.withCtx(() => [
|
|
1013
990
|
state.prevItem.type !== "custom" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
1014
991
|
vue.createElementVNode("div", _hoisted_48, [
|
|
1015
|
-
vue.createElementVNode("div", _hoisted_49, vue.toDisplayString(vue.unref(
|
|
992
|
+
vue.createElementVNode("div", _hoisted_49, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.attributeType")), 1),
|
|
1016
993
|
vue.createVNode(vue.unref(TinyFormItem), { class: "tvp-search-box__number-item" }, {
|
|
1017
994
|
default: vue.withCtx(() => [
|
|
1018
995
|
vue.createVNode(vue.unref(TinySelect), {
|
|
@@ -1024,13 +1001,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1024
1001
|
default: vue.withCtx(() => [
|
|
1025
1002
|
(vue.openBlock(), vue.createBlock(vue.unref(TinyOption), {
|
|
1026
1003
|
key: state.allTypeAttri.label,
|
|
1027
|
-
label: vue.unref(
|
|
1004
|
+
label: vue.unref(index.t)("tvp.tvpSearchbox.allProperty"),
|
|
1028
1005
|
value: state.allTypeAttri.label,
|
|
1029
1006
|
disabled: vue.unref(selectItemIsDisable)(state.allTypeAttri),
|
|
1030
|
-
onClick: _cache[21] || (_cache[21] = ($event) => vue.unref(selectPropChange)(
|
|
1031
|
-
state.allTypeAttri,
|
|
1032
|
-
vue.unref(selectItemIsDisable)(state.allTypeAttri)
|
|
1033
|
-
))
|
|
1007
|
+
onClick: _cache[21] || (_cache[21] = ($event) => vue.unref(selectPropChange)(state.allTypeAttri, vue.unref(selectItemIsDisable)(state.allTypeAttri)))
|
|
1034
1008
|
}, null, 8, ["label", "value", "disabled"])),
|
|
1035
1009
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(state.recordItems, (item) => {
|
|
1036
1010
|
return vue.openBlock(), vue.createBlock(vue.unref(TinyOption), {
|
|
@@ -1047,7 +1021,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1047
1021
|
]),
|
|
1048
1022
|
_: 1
|
|
1049
1023
|
}),
|
|
1050
|
-
state.prevItem.operators ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_50, vue.toDisplayString(vue.unref(
|
|
1024
|
+
state.prevItem.operators ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_50, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.operator")), 1)) : vue.createCommentVNode("", true),
|
|
1051
1025
|
state.prevItem.operators ? (vue.openBlock(), vue.createBlock(vue.unref(TinyFormItem), {
|
|
1052
1026
|
key: 1,
|
|
1053
1027
|
class: "tvp-search-box__number-item"
|
|
@@ -1071,13 +1045,8 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1071
1045
|
]),
|
|
1072
1046
|
_: 1
|
|
1073
1047
|
})) : vue.createCommentVNode("", true),
|
|
1074
|
-
state.prevItem.type !== "numRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_51, vue.toDisplayString(vue.unref(
|
|
1075
|
-
![
|
|
1076
|
-
"numRange",
|
|
1077
|
-
"dateRange",
|
|
1078
|
-
"datetimeRange",
|
|
1079
|
-
"custom"
|
|
1080
|
-
].includes(state.prevItem.type) ? (vue.openBlock(), vue.createBlock(vue.unref(TinyFormItem), {
|
|
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),
|
|
1049
|
+
!["numRange", "dateRange", "datetimeRange", "custom"].includes(state.prevItem.type) ? (vue.openBlock(), vue.createBlock(vue.unref(TinyFormItem), {
|
|
1081
1050
|
key: 3,
|
|
1082
1051
|
prop: "inputEditValue",
|
|
1083
1052
|
class: "tvp-search-box__number-item"
|
|
@@ -1117,7 +1086,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1117
1086
|
_: 1
|
|
1118
1087
|
})) : vue.createCommentVNode("", true),
|
|
1119
1088
|
state.prevItem.type === "numRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_52, [
|
|
1120
|
-
vue.createElementVNode("div", _hoisted_53, vue.toDisplayString(vue.unref(
|
|
1089
|
+
vue.createElementVNode("div", _hoisted_53, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.minValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
|
|
1121
1090
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
1122
1091
|
prop: state.curMinNumVar,
|
|
1123
1092
|
class: "tvp-search-box__number-item",
|
|
@@ -1133,7 +1102,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1133
1102
|
]),
|
|
1134
1103
|
_: 1
|
|
1135
1104
|
}, 8, ["prop", "show-message"]),
|
|
1136
|
-
vue.createElementVNode("div", _hoisted_54, vue.toDisplayString(vue.unref(
|
|
1105
|
+
vue.createElementVNode("div", _hoisted_54, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.maxValueText")) + "(" + vue.toDisplayString(state.prevItem.unit) + ") ", 1),
|
|
1137
1106
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
1138
1107
|
prop: state.curMaxNumVar,
|
|
1139
1108
|
class: "tvp-search-box__number-item"
|
|
@@ -1150,10 +1119,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1150
1119
|
}, 8, ["prop"])
|
|
1151
1120
|
])) : vue.createCommentVNode("", true),
|
|
1152
1121
|
state.prevItem.type === "dateRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_55, [
|
|
1153
|
-
vue.createElementVNode("div", _hoisted_56, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(
|
|
1122
|
+
vue.createElementVNode("div", _hoisted_56, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
|
|
1154
1123
|
value: (state.prevItem.maxTimeLength / 864e5).toFixed(1)
|
|
1155
|
-
}) : vue.unref(
|
|
1156
|
-
vue.createElementVNode("div", _hoisted_57, vue.toDisplayString(vue.unref(
|
|
1124
|
+
}) : vue.unref(index.t)("tvp.tvpSearchbox.rangeDateTitle")), 1),
|
|
1125
|
+
vue.createElementVNode("div", _hoisted_57, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeBeginLabel")), 1),
|
|
1157
1126
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
1158
1127
|
prop: "startDate",
|
|
1159
1128
|
"show-message": Boolean(state.prevItem.maxTimeLength),
|
|
@@ -1171,7 +1140,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1171
1140
|
]),
|
|
1172
1141
|
_: 1
|
|
1173
1142
|
}, 8, ["show-message"]),
|
|
1174
|
-
vue.createElementVNode("div", _hoisted_58, vue.toDisplayString(vue.unref(
|
|
1143
|
+
vue.createElementVNode("div", _hoisted_58, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
|
|
1175
1144
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
1176
1145
|
prop: "endDate",
|
|
1177
1146
|
class: "tvp-search-box__date-item"
|
|
@@ -1190,10 +1159,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1190
1159
|
})
|
|
1191
1160
|
])) : vue.createCommentVNode("", true),
|
|
1192
1161
|
state.prevItem.type === "datetimeRange" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_59, [
|
|
1193
|
-
vue.createElementVNode("div", _hoisted_60, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(
|
|
1162
|
+
vue.createElementVNode("div", _hoisted_60, vue.toDisplayString(state.prevItem.maxTimeLength > 0 ? vue.unref(index.t)("tvp.tvpSearchbox.timeLengthTitle", {
|
|
1194
1163
|
value: (state.prevItem.maxTimeLength / 864e5).toFixed(1)
|
|
1195
|
-
}) : vue.unref(
|
|
1196
|
-
vue.createElementVNode("div", _hoisted_61, vue.toDisplayString(vue.unref(
|
|
1164
|
+
}) : vue.unref(index.t)("tvp.tvpSearchbox.rangeDateTitle")), 1),
|
|
1165
|
+
vue.createElementVNode("div", _hoisted_61, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeBeginLabel")), 1),
|
|
1197
1166
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
1198
1167
|
prop: "startDateTime",
|
|
1199
1168
|
"show-message": Boolean(state.prevItem.maxTimeLength),
|
|
@@ -1213,7 +1182,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1213
1182
|
]),
|
|
1214
1183
|
_: 1
|
|
1215
1184
|
}, 8, ["show-message"]),
|
|
1216
|
-
vue.createElementVNode("div", _hoisted_62, vue.toDisplayString(vue.unref(
|
|
1185
|
+
vue.createElementVNode("div", _hoisted_62, vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.rangeEndLabel")), 1),
|
|
1217
1186
|
vue.createVNode(vue.unref(TinyFormItem), {
|
|
1218
1187
|
prop: "endDateTime",
|
|
1219
1188
|
class: "tvp-search-box__date-item"
|
|
@@ -1240,7 +1209,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1240
1209
|
onClick: _cache[32] || (_cache[32] = ($event) => vue.unref(confirmEditTag)(true))
|
|
1241
1210
|
}, {
|
|
1242
1211
|
default: vue.withCtx(() => [
|
|
1243
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
1212
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.confirm")), 1)
|
|
1244
1213
|
]),
|
|
1245
1214
|
_: 1
|
|
1246
1215
|
}),
|
|
@@ -1249,7 +1218,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1249
1218
|
onClick: _cache[33] || (_cache[33] = ($event) => vue.unref(confirmEditTag)(false))
|
|
1250
1219
|
}, {
|
|
1251
1220
|
default: vue.withCtx(() => [
|
|
1252
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(
|
|
1221
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(index.t)("tvp.tvpSearchbox.cancel")), 1)
|
|
1253
1222
|
]),
|
|
1254
1223
|
_: 1
|
|
1255
1224
|
})
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const en_US = {
|
|
4
|
+
tvp: {
|
|
5
|
+
tvpSearchbox: {
|
|
6
|
+
defaultPlaceholder: "Select attribute filtering or enter keywords",
|
|
7
|
+
addPlaceholder: "Add filtering criteria",
|
|
8
|
+
tagPlaceholder: 'Please select tag key/value search, or enter "key=value" to search',
|
|
9
|
+
dynamicPlaceholder: "Please select {newValue} to search",
|
|
10
|
+
attributeType: "Attribute Type",
|
|
11
|
+
propertyValue: "The value of {0}",
|
|
12
|
+
matched: "Potential matching items",
|
|
13
|
+
allValues: "All values",
|
|
14
|
+
allProperty: "All Properties",
|
|
15
|
+
operator: "Operator",
|
|
16
|
+
clearAll: "Clear",
|
|
17
|
+
emptyValue: "Empty value",
|
|
18
|
+
help: "Click to view help",
|
|
19
|
+
switchText: "Switch to default search terms",
|
|
20
|
+
tagKey: "Key",
|
|
21
|
+
tagValue: "Value",
|
|
22
|
+
minValueText: "Minimum value",
|
|
23
|
+
maxValueText: "Maximum value",
|
|
24
|
+
rangeMinErr: "The input value must be between {0} and {1}",
|
|
25
|
+
rangeMaxErr: "The maximum value must be greater than or equal to the minimum value, or empty",
|
|
26
|
+
rangeNumberTitle: "Please enter at least one value",
|
|
27
|
+
rangeDateTitle: "Please enter at least one date",
|
|
28
|
+
timeLengthTitle: "The optional time span is within {value} days",
|
|
29
|
+
rangeBeginLabel: "Start date",
|
|
30
|
+
rangeEndLabel: "End date",
|
|
31
|
+
rulekeyword1: "Keywords",
|
|
32
|
+
notBeNull: "The value cannot be empty",
|
|
33
|
+
noData: "There is currently no matching data available ..",
|
|
34
|
+
selectAll: "Select All",
|
|
35
|
+
confirm: "Confirm",
|
|
36
|
+
cancel: "Cancel",
|
|
37
|
+
equal: "Equal",
|
|
38
|
+
notEqual: "Not equal",
|
|
39
|
+
contain: "Contain",
|
|
40
|
+
notContain: "Does not contain"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.default = en_US;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const zhCN = {
|
|
4
4
|
tvp: {
|
|
5
5
|
tvpSearchbox: {
|
|
@@ -41,4 +41,4 @@ const zhCN = {
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
exports.
|
|
44
|
+
exports.default = zhCN;
|