tsv2-library 1.1.1-dev-alpha.1 → 1.1.1-dev-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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { DropdownOption, MultiSelectOption } from './options';
|
|
3
3
|
import { QueryParams } from '../components/v2/DataTable/DataTable.vue.d';
|
|
4
|
-
export type FilterFieldTypes = 'dropdown' | 'multiselect' | 'calendar' | 'rangenumber';
|
|
4
|
+
export type FilterFieldTypes = 'dropdown' | 'multiselect' | 'calendar' | 'calendartime' | 'rangenumber';
|
|
5
5
|
export type FilterOptions<Opt = Record<string, boolean>> = Record<keyof Opt, DropdownOption[] | MultiSelectOption[]>;
|
|
6
6
|
export interface FilterField<OptionsQueryParams extends QueryParams = QueryParams> {
|
|
7
7
|
/**
|
package/dist/tsv2-library.es.js
CHANGED
|
@@ -26280,7 +26280,12 @@ const useLoadingStore = () => {
|
|
|
26280
26280
|
};
|
|
26281
26281
|
};
|
|
26282
26282
|
const _hoisted_1$2g = { key: 1 };
|
|
26283
|
-
const _hoisted_2$1N =
|
|
26283
|
+
const _hoisted_2$1N = {
|
|
26284
|
+
key: 1,
|
|
26285
|
+
class: "text-general-800 text-body-medium break-words max-w-[85%]",
|
|
26286
|
+
"data-ts-section": "field-value"
|
|
26287
|
+
};
|
|
26288
|
+
const _hoisted_3$Q = ["href"];
|
|
26284
26289
|
const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
26285
26290
|
__name: "UrlFormat",
|
|
26286
26291
|
props: {
|
|
@@ -26329,13 +26334,13 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
|
|
|
26329
26334
|
"data-ts-section": "field-value",
|
|
26330
26335
|
href: "#"
|
|
26331
26336
|
}, " View Document ")) : (openBlock(), createElementBlock("span", _hoisted_1$2g, "-"))
|
|
26332
|
-
], 64)) : (openBlock(), createElementBlock("a", {
|
|
26333
|
-
key:
|
|
26337
|
+
], 64)) : value.value === "-" ? (openBlock(), createElementBlock("span", _hoisted_2$1N, toDisplayString$1(value.value), 1)) : (openBlock(), createElementBlock("a", {
|
|
26338
|
+
key: 2,
|
|
26334
26339
|
href: _ctx.dataType === "URL" ? ((_a = value.value) == null ? void 0 : _a.startsWith("http")) ? value.value : `http://${value.value}` : `mailto:${value.value}`,
|
|
26335
26340
|
class: "text-primary text-body-medium break-words max-w-[85%]",
|
|
26336
26341
|
"data-ts-section": "field-value",
|
|
26337
26342
|
target: "_blank"
|
|
26338
|
-
}, toDisplayString$1(_ctx.dataType === "URL" ? (_b = value.value) == null ? void 0 : _b.slice(0, 60).concat("...") : value.value), 9,
|
|
26343
|
+
}, toDisplayString$1(_ctx.dataType === "URL" ? (_b = value.value) == null ? void 0 : _b.slice(0, 60).concat("...") : value.value), 9, _hoisted_3$Q));
|
|
26339
26344
|
};
|
|
26340
26345
|
}
|
|
26341
26346
|
});
|
|
@@ -26384,7 +26389,7 @@ const CustomFieldFilterMap = {
|
|
|
26384
26389
|
Dropdown: "dropdown",
|
|
26385
26390
|
MultiDropdown: "multiselect",
|
|
26386
26391
|
Date: "calendar",
|
|
26387
|
-
Datetime: "
|
|
26392
|
+
Datetime: "calendartime",
|
|
26388
26393
|
Currency: "rangenumber"
|
|
26389
26394
|
};
|
|
26390
26395
|
const getBodyTemplate = (customField) => {
|
|
@@ -26405,7 +26410,7 @@ const getBodyTemplate = (customField) => {
|
|
|
26405
26410
|
case "Datetime":
|
|
26406
26411
|
formattedValue2 = formatDate(
|
|
26407
26412
|
dataValue,
|
|
26408
|
-
customField.dataType === "Datetime"
|
|
26413
|
+
customField.dataType === "Datetime" ? true : void 0
|
|
26409
26414
|
);
|
|
26410
26415
|
break;
|
|
26411
26416
|
case "MultiDropdown":
|
|
@@ -26435,7 +26440,7 @@ const getBodyComponent = (customField) => {
|
|
|
26435
26440
|
component: _sfc_main$1P,
|
|
26436
26441
|
props: {
|
|
26437
26442
|
dataType: customField.dataType,
|
|
26438
|
-
|
|
26443
|
+
rawValue: dataValue
|
|
26439
26444
|
}
|
|
26440
26445
|
};
|
|
26441
26446
|
};
|
|
@@ -30893,6 +30898,7 @@ const CUSTOM_FIELD_MATCH_MODE = {
|
|
|
30893
30898
|
dropdown: FilterMatchMode.IN,
|
|
30894
30899
|
multiselect: "ONE_OF_STRINGIFIED_ARRAY",
|
|
30895
30900
|
calendar: "IN_UNIX_EPOCH_RANGE",
|
|
30901
|
+
calendartime: "IN_UNIX_EPOCH_RANGE",
|
|
30896
30902
|
rangenumber: "IN_CURRENCY_RANGE"
|
|
30897
30903
|
};
|
|
30898
30904
|
const parseAssetStaticFilter = (filter4) => {
|
|
@@ -38162,6 +38168,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
38162
38168
|
invalid: invalidInput.value,
|
|
38163
38169
|
options: visibleOptions3.value,
|
|
38164
38170
|
placeholder: dropdownPlaceholder.value,
|
|
38171
|
+
"virtual-scroller-options": visibleOptions3.value.length > 10 ? { itemSize: 32 } : void 0,
|
|
38165
38172
|
onChange: updateFieldValue,
|
|
38166
38173
|
onHide: _cache[1] || (_cache[1] = ($event) => isShowOverlay.value = false),
|
|
38167
38174
|
onShow: _cache[2] || (_cache[2] = ($event) => (_ctx.$emit("show"), isShowOverlay.value = true)),
|
|
@@ -38214,7 +38221,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
38214
38221
|
]),
|
|
38215
38222
|
key: "2"
|
|
38216
38223
|
} : void 0
|
|
38217
|
-
]), 1040, ["modelValue", "aria-describedby", "invalid", "options", "placeholder"]),
|
|
38224
|
+
]), 1040, ["modelValue", "aria-describedby", "invalid", "options", "placeholder", "virtual-scroller-options"]),
|
|
38218
38225
|
_ctx.$slots["addon-right"] ? (openBlock(), createBlock(unref(script$L), {
|
|
38219
38226
|
key: 1,
|
|
38220
38227
|
class: normalizeClass({
|
|
@@ -39274,7 +39281,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
39274
39281
|
const isDev = window.location.hostname.includes("dev");
|
|
39275
39282
|
const isStaging = window.location.hostname.includes("staging");
|
|
39276
39283
|
const isLocal = window.location.hostname.includes("localhost");
|
|
39277
|
-
const isCompanyProdTest = companyId === "
|
|
39284
|
+
const isCompanyProdTest = companyId === "2083038253983731712";
|
|
39278
39285
|
if (isTest && (isLocal || isDev || isStaging || isCompanyProdTest)) {
|
|
39279
39286
|
startScanForTest();
|
|
39280
39287
|
} else {
|
|
@@ -57641,6 +57648,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
57641
57648
|
placeholder: multiSelectPlaceholder.value,
|
|
57642
57649
|
"selected-items-label": props.selectedItemsLabel,
|
|
57643
57650
|
"show-toggle-all": props.filter,
|
|
57651
|
+
"virtual-scroller-options": visibleOptions3.value.length > 10 ? { itemSize: 32 } : void 0,
|
|
57644
57652
|
onHide: _cache[1] || (_cache[1] = ($event) => (isShowOverlay.value = false, _ctx.$emit("hide"))),
|
|
57645
57653
|
onShow: _cache[2] || (_cache[2] = ($event) => (_ctx.$emit("show"), isShowOverlay.value = true))
|
|
57646
57654
|
}), createSlots({
|
|
@@ -57681,7 +57689,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
57681
57689
|
]),
|
|
57682
57690
|
key: "0"
|
|
57683
57691
|
} : void 0
|
|
57684
|
-
]), 1040, ["modelValue", "aria-describedby", "class", "display", "max-selected-labels", "options", "placeholder", "selected-items-label", "show-toggle-all"]),
|
|
57692
|
+
]), 1040, ["modelValue", "aria-describedby", "class", "display", "max-selected-labels", "options", "placeholder", "selected-items-label", "show-toggle-all", "virtual-scroller-options"]),
|
|
57685
57693
|
renderSlot(_ctx.$slots, "trigger", {
|
|
57686
57694
|
disabled: props.disabled
|
|
57687
57695
|
}, () => [
|
|
@@ -62611,6 +62619,14 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
|
|
|
62611
62619
|
modelValue: filter4.value[`customFields[${field2.field}]`],
|
|
62612
62620
|
"onUpdate:modelValue": ($event) => filter4.value[`customFields[${field2.field}]`] = $event,
|
|
62613
62621
|
mode: "range"
|
|
62622
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : field2.type === "calendartime" ? (openBlock(), createBlock(_sfc_main$$, mergeProps({
|
|
62623
|
+
key: 3,
|
|
62624
|
+
ref_for: true
|
|
62625
|
+
}, field2, {
|
|
62626
|
+
modelValue: filter4.value[`customFields[${field2.field}]`],
|
|
62627
|
+
"onUpdate:modelValue": ($event) => filter4.value[`customFields[${field2.field}]`] = $event,
|
|
62628
|
+
mode: "range",
|
|
62629
|
+
"show-time": ""
|
|
62614
62630
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true)
|
|
62615
62631
|
], 64);
|
|
62616
62632
|
}), 128)) : createCommentVNode("", true)
|