tsv2-library 1.1.1-dev-alpha.2 → 1.1.1-dev-alpha.4

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' | 'calendartime' | 'rangenumber';
4
+ export type FilterFieldTypes = 'dropdown' | 'multiselect' | 'calendar' | '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
  /**
@@ -26303,6 +26303,10 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
26303
26303
  }
26304
26304
  return dataValue;
26305
26305
  });
26306
+ const fileName = computed(() => {
26307
+ const dataValue = isValidJSONString(props.rawValue) ? JSON.parse(props.rawValue) : props.rawValue;
26308
+ return dataValue == null ? void 0 : dataValue.fileName;
26309
+ });
26306
26310
  const isDocumentHasValue = (document2) => {
26307
26311
  var _a, _b;
26308
26312
  if (!document2)
@@ -26327,13 +26331,12 @@ const _sfc_main$1P = /* @__PURE__ */ defineComponent({
26327
26331
  return (_ctx, _cache) => {
26328
26332
  var _a, _b;
26329
26333
  return _ctx.dataType === "Document" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26330
- isDocumentHasValue(_ctx.rawValue) ? (openBlock(), createElementBlock("a", {
26334
+ isDocumentHasValue(_ctx.rawValue) ? (openBlock(), createElementBlock("span", {
26331
26335
  key: 0,
26332
26336
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => openDocument(value.value), ["stop"])),
26333
- class: "text-primary text-body-medium break-words max-w-[85%]",
26334
- "data-ts-section": "field-value",
26335
- href: "#"
26336
- }, " View Document ")) : (openBlock(), createElementBlock("span", _hoisted_1$2g, "-"))
26337
+ class: "text-primary cursor-pointer font-medium tracking-[0.24px]",
26338
+ "data-ts-section": "field-value"
26339
+ }, toDisplayString$1(fileName.value), 1)) : (openBlock(), createElementBlock("span", _hoisted_1$2g, "-"))
26337
26340
  ], 64)) : value.value === "-" ? (openBlock(), createElementBlock("span", _hoisted_2$1N, toDisplayString$1(value.value), 1)) : (openBlock(), createElementBlock("a", {
26338
26341
  key: 2,
26339
26342
  href: _ctx.dataType === "URL" ? ((_a = value.value) == null ? void 0 : _a.startsWith("http")) ? value.value : `http://${value.value}` : `mailto:${value.value}`,
@@ -26389,7 +26392,7 @@ const CustomFieldFilterMap = {
26389
26392
  Dropdown: "dropdown",
26390
26393
  MultiDropdown: "multiselect",
26391
26394
  Date: "calendar",
26392
- Datetime: "calendartime",
26395
+ Datetime: "calendar",
26393
26396
  Currency: "rangenumber"
26394
26397
  };
26395
26398
  const getBodyTemplate = (customField) => {
@@ -30898,7 +30901,6 @@ const CUSTOM_FIELD_MATCH_MODE = {
30898
30901
  dropdown: FilterMatchMode.IN,
30899
30902
  multiselect: "ONE_OF_STRINGIFIED_ARRAY",
30900
30903
  calendar: "IN_UNIX_EPOCH_RANGE",
30901
- calendartime: "IN_UNIX_EPOCH_RANGE",
30902
30904
  rangenumber: "IN_CURRENCY_RANGE"
30903
30905
  };
30904
30906
  const parseAssetStaticFilter = (filter4) => {
@@ -62619,14 +62621,6 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
62619
62621
  modelValue: filter4.value[`customFields[${field2.field}]`],
62620
62622
  "onUpdate:modelValue": ($event) => filter4.value[`customFields[${field2.field}]`] = $event,
62621
62623
  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": ""
62630
62624
  }), null, 16, ["modelValue", "onUpdate:modelValue"])) : createCommentVNode("", true)
62631
62625
  ], 64);
62632
62626
  }), 128)) : createCommentVNode("", true)