@ynput/ayon-frontend-shared 0.6.4 → 0.6.6

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 (55) hide show
  1. package/dist/DetailsPanel.es.js +480 -477
  2. package/dist/ListTable.es.js +24 -25
  3. package/dist/NewEntity.es.js +6 -7
  4. package/dist/ProjectTreeTable.es.js +2018 -2006
  5. package/dist/Views.es.js +28 -28
  6. package/dist/api.es.js +291 -289
  7. package/dist/chunks/Actions.es.js +12 -12
  8. package/dist/chunks/ColumnDropIndicator.es.js +8 -9
  9. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +31 -25
  10. package/dist/chunks/DeleteEntitiesContextInstance.es.js +1 -1
  11. package/dist/chunks/DetailsDialog.es.js +1 -1
  12. package/dist/chunks/EmptyPlaceholder.es.js +13 -12
  13. package/dist/chunks/EntityPath.es.js +67 -67
  14. package/dist/chunks/EntityPickerDialog.es.js +1 -1
  15. package/dist/chunks/EntityTooltip.es.js +8 -8
  16. package/dist/chunks/Feed.es.js +1742 -1734
  17. package/dist/chunks/Menu.es.js +168 -166
  18. package/dist/chunks/MenuItem.es.js +112 -77
  19. package/dist/chunks/MetaWidget.es.js +1283 -1279
  20. package/dist/chunks/PlayableIcon.es.js +458 -451
  21. package/dist/chunks/ProjectContext.es.js +20 -20
  22. package/dist/chunks/RepresentationsList.es.js +9 -9
  23. package/dist/chunks/ReviewablesSelector.es.js +1504 -1374
  24. package/dist/chunks/SimpleForm.es.js +78 -75
  25. package/dist/chunks/Slicer.es.js +68 -69
  26. package/dist/chunks/ThumbnailSimple.es.js +4 -4
  27. package/dist/chunks/Watchers.es.js +104 -105
  28. package/dist/chunks/activeEntities.es.js +58 -0
  29. package/dist/chunks/columnConfigConverter.es.js +57 -63
  30. package/dist/chunks/getUris.es.js +1014 -960
  31. package/dist/chunks/iconUtils.es.js +151 -0
  32. package/dist/chunks/queryFilterToClientFilter.es.js +90 -81
  33. package/dist/chunks/realtimeUpdatesUtils.es.js +113 -80
  34. package/dist/chunks/searchTerms.es.js +332 -247
  35. package/dist/chunks/useAttributeEnums.es.js +34 -34
  36. package/dist/chunks/viewUpdateHelper.es.js +11 -11
  37. package/dist/components.es.js +340 -337
  38. package/dist/context.es.js +48 -48
  39. package/dist/hooks.es.js +34 -34
  40. package/dist/index.es.js +1 -1
  41. package/dist/types/ContextMenu.d.ts +1 -1
  42. package/dist/types/Feed.d.ts +2 -2
  43. package/dist/types/ListTable.d.ts +1 -1
  44. package/dist/types/ProjectTreeTable.d.ts +7 -6
  45. package/dist/types/SimpleTable.d.ts +1 -1
  46. package/dist/types/Slicer.d.ts +6 -6
  47. package/dist/types/Views.d.ts +6 -6
  48. package/dist/types/api.d.ts +554 -176
  49. package/dist/types/components.d.ts +73 -11
  50. package/dist/types/context.d.ts +7 -7
  51. package/dist/types/util.d.ts +238 -3
  52. package/dist/util.es.js +127 -114
  53. package/package.json +1 -1
  54. package/dist/chunks/extractEntityHierarchyFromParents.es.js +0 -28
  55. package/dist/chunks/parseHtmlToPlainTextWithLinks.es.js +0 -138
@@ -0,0 +1,151 @@
1
+ import { e as g, g as _ } from "./getEntityTypeIcon.es.js";
2
+ import { deburr as y, snakeCase as N } from "lodash";
3
+ const w = (e, r, o) => {
4
+ let n = "format_list_bulleted";
5
+ const l = {
6
+ status: "arrow_circle_right",
7
+ assignees: "person",
8
+ author: "person",
9
+ tags: "local_offer",
10
+ priority: "keyboard_double_arrow_up",
11
+ fps: "30fps_select",
12
+ resolutionWidth: "settings_overscan",
13
+ resolutionHeight: "settings_overscan",
14
+ pixelAspect: "stop",
15
+ clipIn: "line_start_diamond",
16
+ clipOut: "line_end_diamond",
17
+ frameStart: "line_start_circle",
18
+ frameEnd: "line_end_circle",
19
+ handleStart: "line_start_square",
20
+ handleEnd: "line_end_square",
21
+ fullName: "id_card",
22
+ email: "alternate_email",
23
+ developerMode: "code",
24
+ productGroup: "inventory_2",
25
+ machine: "computer",
26
+ comment: "comment",
27
+ colorSpace: "palette",
28
+ description: "description",
29
+ latest: "verified"
30
+ }, d = {
31
+ integer: "pin",
32
+ float: "speed_1_2",
33
+ boolean: "check_box",
34
+ datetime: "calendar_month",
35
+ list_of_strings: "format_list_bulleted",
36
+ list_of_integers: "format_list_numbered",
37
+ list_of_any: "format_list_bulleted",
38
+ list_of_submodels: "format_list_bulleted",
39
+ dict: "format_list_bulleted",
40
+ string: "title"
41
+ };
42
+ return l[e] ? n = l[e] : g.includes(e) ? n = _(e) : o && r === "string" ? n = "format_list_bulleted" : o ? n = "checklist" : r && d[r] && (n = d[r]), n;
43
+ }, b = (e) => e ? /\s/.test(e) ? { valid: !1, error: "Spaces are not allowed in name" } : /^[a-zA-Z0-9_\.\-]+$/.test(e) ? /^[.-]/.test(e) ? { valid: !1, error: "Name cannot start with dot or dash" } : /[.-]$/.test(e) ? { valid: !1, error: "Name cannot end with dot or dash" } : { valid: !0 } : {
44
+ valid: !1,
45
+ error: "Name can only contain letters, numbers, underscores, dashes or dots"
46
+ } : { valid: !1, error: "Name is required" }, A = (e) => e ? e.includes("'") ? { valid: !1, error: "Label cannot contain single quotes (')" } : { valid: !0 } : { valid: !1, error: "Label is required" }, L = (e, r = { capitalization: "lower", separator: "" }) => {
47
+ const { capitalization: o = "lower", separator: n = "" } = r;
48
+ if (!e) return "";
49
+ const p = e.trim().split(/\s+/).filter(Boolean).map((i) => {
50
+ let a = i.normalize("NFD");
51
+ return a = y(a), a = a.replace(/[^a-zA-Z0-9_\-\.]+/g, ""), a = a.replace(/[.-]+$/g, ""), a;
52
+ }).filter(Boolean);
53
+ let t = ((i) => {
54
+ switch (o) {
55
+ case "upper":
56
+ return i.map((a) => a.toUpperCase());
57
+ case "pascal":
58
+ return i.map((a) => a.charAt(0).toUpperCase() + a.slice(1).toLowerCase());
59
+ case "camel":
60
+ return i.map(
61
+ (a, h) => h === 0 ? a.toLowerCase() : a.charAt(0).toUpperCase() + a.slice(1).toLowerCase()
62
+ );
63
+ case "keep":
64
+ return i;
65
+ default:
66
+ return i.map((a) => a.toLowerCase());
67
+ }
68
+ })(p).join(n);
69
+ t = t.replace(/^[^a-zA-Z0-9]+|[^a-zA-Z0-9]+$/g, "");
70
+ const { valid: s } = b(t);
71
+ return s || (t = N(t)), t;
72
+ }, C = (e) => {
73
+ const r = document.createElement("div");
74
+ r.innerHTML = e;
75
+ const o = [];
76
+ let n = 0;
77
+ const l = (c) => {
78
+ if (c.nodeType === Node.TEXT_NODE)
79
+ return c.textContent || "";
80
+ if (c.nodeType === Node.ELEMENT_NODE) {
81
+ const t = c;
82
+ if (t.tagName === "A") {
83
+ const s = t.getAttribute("href"), i = t.textContent || "";
84
+ return s && i ? (o.push({
85
+ type: "url",
86
+ content: i,
87
+ href: s,
88
+ key: n++
89
+ }), `__LINK_${n - 1}__`) : i;
90
+ }
91
+ if (t.tagName === "LI") {
92
+ const s = Array.from(t.childNodes).map(l).join("").trim();
93
+ return s ? `• ${s}` : "";
94
+ }
95
+ if (t.tagName === "OL" || t.tagName === "UL")
96
+ return Array.from(t.children).filter((i) => i.tagName === "LI").map(l).filter((i) => i.trim()).join(`
97
+ `);
98
+ if (t.tagName === "P") {
99
+ const s = Array.from(t.childNodes).map(l).join("");
100
+ return s.trim() ? s + `
101
+ ` : "";
102
+ }
103
+ return t.tagName === "BR" ? `
104
+ ` : Array.from(t.childNodes).map(l).join("");
105
+ }
106
+ return "";
107
+ };
108
+ let d = l(r);
109
+ d = d.replace(/\n{3,}/g, `
110
+
111
+ `).replace(/[ \t]+/g, " ").trim();
112
+ const p = [];
113
+ let u = d, f = 0;
114
+ return o.forEach((c) => {
115
+ const t = `__LINK_${c.key}__`, s = u.split(t);
116
+ s.length > 1 && (s[0] && p.push({
117
+ type: "text",
118
+ content: s[0],
119
+ key: f++
120
+ }), p.push({
121
+ type: "url",
122
+ content: c.content,
123
+ href: c.href,
124
+ key: f++
125
+ }), u = s.slice(1).join(t));
126
+ }), u && p.push({
127
+ type: "text",
128
+ content: u,
129
+ key: f++
130
+ }), p.length > 0 ? p : [{ type: "text", content: d, key: 0 }];
131
+ }, m = (e, r, o) => {
132
+ switch (e) {
133
+ case "folder":
134
+ return o.folder_types?.find((n) => n.name === r);
135
+ case "task":
136
+ return o.task_types?.find((n) => n.name === r);
137
+ case "product":
138
+ return o.product_base_types?.definitions?.find((n) => n.name === r) || o.product_base_types?.default;
139
+ default:
140
+ return;
141
+ }
142
+ }, x = (e, r, o) => m(e, r, o)?.icon || _(e), E = (e, r, o) => m(e, r, o)?.color;
143
+ export {
144
+ b as a,
145
+ E as b,
146
+ A as c,
147
+ x as d,
148
+ C as e,
149
+ w as g,
150
+ L as p
151
+ };
@@ -1,19 +1,19 @@
1
- import { getFilterFromId as I, SEARCH_FILTER_ID as M } from "@ynput/ayon-react-components";
2
- import { d as D } from "./PlayableIcon.es.js";
3
- import { c as S, i as F, r as A } from "./expandRelativeDates.es.js";
4
- import { parseISO as f, isValid as m, format as h } from "date-fns";
5
- const V = "no-date", T = (e, n) => {
1
+ import { getFilterFromId as k, SEARCH_FILTER_ID as S } from "@ynput/ayon-react-components";
2
+ import { d as O } from "./PlayableIcon.es.js";
3
+ import { c as F, i as A, r as N } from "./expandRelativeDates.es.js";
4
+ import { parseISO as m, isValid as h, format as V } from "date-fns";
5
+ const C = "no-date", I = (e, n) => {
6
6
  if (!n.values || n.values.length === 0) return null;
7
7
  const t = n.values.flatMap((r) => {
8
- const l = [], s = r.values, o = s?.[0]?.id, i = s?.[1]?.id, d = o && i && o !== V && i !== V ? D(o, i) : null;
9
- return s?.[0] !== void 0 && s?.[0].id !== V && l.push({
8
+ const l = [], s = r.values, o = s?.[0]?.id, i = s?.[1]?.id, u = o && i && o !== C && i !== C ? O(o, i) : null;
9
+ return s?.[0] !== void 0 && s?.[0].id !== C && l.push({
10
10
  key: e,
11
11
  operator: n.inverted ? "lte" : "gte",
12
- value: d ? S(d.id, 0) : s[0].id
13
- }), s?.[1] !== void 0 && s?.[1].id !== V && l.push({
12
+ value: u ? F(u.id, 0) : s[0].id
13
+ }), s?.[1] !== void 0 && s?.[1].id !== C && l.push({
14
14
  key: e,
15
15
  operator: n.inverted ? "gte" : "lte",
16
- value: d ? S(d.id, 1) : s[1].id
16
+ value: u ? F(u.id, 1) : s[1].id
17
17
  }), l;
18
18
  });
19
19
  return t.length === 0 ? null : {
@@ -21,87 +21,88 @@ const V = "no-date", T = (e, n) => {
21
21
  operator: n.inverted ? "or" : "and"
22
22
  };
23
23
  }, G = (e) => !e || e.length === 0 ? {} : {
24
- conditions: e.filter((t) => !!t.values?.length).filter((t) => t.id !== "hierarchy").flatMap((t) => $(t)),
24
+ conditions: e.filter((t) => !!t.values?.length).filter((t) => t.id !== "hierarchy").flatMap((t) => T(t)),
25
25
  operator: "and"
26
- }, N = (e) => ({
26
+ }, x = (e) => ({
27
27
  conditions: [
28
28
  { key: e, operator: "isnull" },
29
29
  { key: e, operator: "eq", value: "" }
30
30
  ],
31
31
  operator: "or"
32
- }), x = (e) => ({
32
+ }), D = (e) => ({
33
33
  conditions: [
34
34
  { key: e, operator: "notnull" },
35
35
  { key: e, operator: "ne", value: "" }
36
36
  ],
37
37
  operator: "and"
38
- }), $ = (e) => {
39
- const n = I(e.id);
38
+ }), T = (e) => {
39
+ const n = k(e.id);
40
40
  let t;
41
- const r = Array.isArray(e.values) && e.values.map((u) => u.id)?.includes("hasValue"), l = Array.isArray(e.values) && e.values.map((u) => u.id)?.includes("noValue");
42
- e.values && e.values.length > 0 && (e.singleSelect ? t = C(e.values[0].id, e.type) : t = e.values.map((u) => C(u.id, e.type)));
43
- const s = e.type?.startsWith("list_of_") || n.includes("tags") || n.includes("assignees"), o = e.type === "datetime", i = e.type === "boolean", d = n.endsWith("version") || e.type === "integer" || e.type === "float", p = e.values && e.values.some((u) => u.isCustom === !0);
41
+ const r = Array.isArray(e.values) && e.values.map((d) => d.id)?.includes("hasValue"), l = Array.isArray(e.values) && e.values.map((d) => d.id)?.includes("noValue");
42
+ e.values && e.values.length > 0 && (e.singleSelect ? t = b(e.values[0].id, e.type) : t = e.values.map((d) => b(d.id, e.type)));
43
+ const s = e.type?.startsWith("list_of_") || n.includes("tags") || n.includes("assignees"), o = e.type === "datetime", i = e.type === "boolean", u = n.endsWith("version") || e.type === "integer" || e.type === "float", v = e.values && e.values.some((d) => d.isCustom === !0);
44
44
  let a = "eq";
45
45
  if (t === void 0)
46
46
  return a = e.inverted ? "notnull" : "isnull", { key: n, operator: a };
47
- const g = e.type === "string" && !s;
47
+ const y = e.type === "string" && !s;
48
48
  if (r) {
49
- if (g)
50
- return e.inverted ? N(n) : x(n);
49
+ if (y)
50
+ return e.inverted ? x(n) : D(n);
51
51
  t = s ? [] : void 0, a = s ? e.inverted ? "eq" : "ne" : e.inverted ? "isnull" : "notnull";
52
52
  } else if (l) {
53
- if (g)
54
- return e.inverted ? x(n) : N(n);
53
+ if (y)
54
+ return e.inverted ? D(n) : x(n);
55
55
  t = s ? [] : void 0, a = s ? e.inverted ? "ne" : "eq" : e.inverted ? "notnull" : "isnull";
56
56
  } else if (s)
57
57
  e.inverted ? a = e.operator === "AND" ? "excludesall" : "excludesany" : a = e.operator === "AND" ? "includesall" : "includesany";
58
58
  else if (o) {
59
- const u = T(n, e);
60
- if (u) return u;
59
+ const d = I(n, e);
60
+ if (d) return d;
61
61
  a = e.inverted ? "ne" : "eq";
62
62
  } else if (i)
63
63
  a = e.inverted ? "ne" : "eq";
64
- else if (p && !s && !d)
64
+ else if (v && !s && !u) {
65
+ const d = e.inverted ? "notlike" : "like";
65
66
  if (!e.values || e.values.length === 0)
66
67
  a = e.inverted ? "notin" : "in";
67
68
  else {
68
- const u = e.values.filter((v) => v.isCustom === !0), c = e.values.filter((v) => !v.isCustom);
69
- if (c.length === 0)
70
- if (u.length === 1)
71
- a = "like", t = `%${u[0].id}%`;
69
+ const c = e.values.filter((p) => p.isCustom === !0), g = e.values.filter((p) => !p.isCustom);
70
+ if (g.length === 0)
71
+ if (c.length === 1)
72
+ a = d, t = `%${c[0].id}%`;
72
73
  else
73
74
  return {
74
- conditions: u.map((y) => ({
75
+ conditions: c.map((f) => ({
75
76
  key: n,
76
- operator: "like",
77
- value: `%${y.id}%`
77
+ operator: d,
78
+ value: `%${f.id}%`
78
79
  })),
79
80
  operator: e.inverted ? "and" : "or"
80
81
  };
81
82
  else {
82
- const v = [];
83
- return c.length > 0 && v.push({
83
+ const p = [];
84
+ return g.length > 0 && p.push({
84
85
  key: n,
85
86
  operator: e.inverted ? "notin" : "in",
86
- value: c.map(
87
- (y) => C(y.id, e.type)
87
+ value: g.map(
88
+ (f) => b(f.id, e.type)
88
89
  )
89
- }), u.forEach((y) => {
90
- v.push({
90
+ }), c.forEach((f) => {
91
+ p.push({
91
92
  key: n,
92
- operator: "like",
93
- value: `%${y.id}%`
93
+ operator: d,
94
+ value: `%${f.id}%`
94
95
  });
95
96
  }), {
96
- conditions: v,
97
+ conditions: p,
97
98
  operator: e.inverted ? "and" : "or"
98
99
  };
99
100
  }
100
101
  }
101
- else
102
+ } else
102
103
  a = e.inverted ? "notin" : "in";
103
104
  return { key: n, value: t, operator: a };
104
- }, C = (e, n) => {
105
+ }, b = (e, n) => {
105
106
  if (!n) return e;
106
107
  switch (n) {
107
108
  case "integer":
@@ -113,7 +114,7 @@ const V = "no-date", T = (e, n) => {
113
114
  default:
114
115
  return e;
115
116
  }
116
- }, k = (e, n) => {
117
+ }, $ = (e, n) => {
117
118
  if (!e?.conditions || e.conditions.length === 0)
118
119
  return [];
119
120
  const t = [], r = /* @__PURE__ */ new Set();
@@ -128,7 +129,7 @@ const V = "no-date", T = (e, n) => {
128
129
  else if (o)
129
130
  t.push(o);
130
131
  else {
131
- const i = k(l, n);
132
+ const i = $(l, n);
132
133
  t.push(...i);
133
134
  }
134
135
  }
@@ -150,38 +151,38 @@ const V = "no-date", T = (e, n) => {
150
151
  if (t.length !== e.conditions.length) return null;
151
152
  const r = t[0].key;
152
153
  if (!t.every((c) => c.key === r)) return null;
153
- const l = b(r, n);
154
+ const l = M(r, n);
154
155
  if (!l || l.type !== "datetime") return null;
155
156
  const s = t.find((c) => c.operator === "gte"), o = t.find((c) => c.operator === "lte");
156
157
  if (!s && !o) return null;
157
- const i = s?.value, d = o?.value, p = i && F(i) ? A(i) : i, a = d && F(d) ? A(d) : d;
158
- let g = "Custom range";
159
- if (p && a) {
160
- const c = D(p, a);
158
+ const i = s?.value, u = o?.value, v = i && A(i) ? N(i) : i, a = u && A(u) ? N(u) : u;
159
+ let y = "Custom range";
160
+ if (v && a) {
161
+ const c = O(v, a);
161
162
  if (c)
162
- g = c.label;
163
+ y = c.label;
163
164
  else {
164
- const v = f(p), y = f(a);
165
- if (m(v) && m(y)) {
166
- const w = (/* @__PURE__ */ new Date()).getFullYear(), O = y.getFullYear() === w ? "MMM d" : "MMM d, yyyy";
167
- g = `${h(v, "MMM d")} – ${h(y, O)}`;
165
+ const g = m(v), p = m(a);
166
+ if (h(g) && h(p)) {
167
+ const f = (/* @__PURE__ */ new Date()).getFullYear(), w = p.getFullYear() === f ? "MMM d" : "MMM d, yyyy";
168
+ y = `${V(g, "MMM d")} – ${V(p, w)}`;
168
169
  }
169
170
  }
170
171
  }
171
- const u = {
172
- id: `custom-${p || ""}-${a || ""}`,
173
- label: g,
172
+ const d = {
173
+ id: `custom-${v || ""}-${a || ""}`,
174
+ label: y,
174
175
  values: [
175
- ...p ? [
176
+ ...v ? [
176
177
  {
177
- id: p,
178
- label: m(f(p)) ? h(f(p), "MMM d, yyyy") : p
178
+ id: v,
179
+ label: h(m(v)) ? V(m(v), "MMM d, yyyy") : v
179
180
  }
180
181
  ] : [],
181
182
  ...a ? [
182
183
  {
183
184
  id: a,
184
- label: m(f(a)) ? h(f(a), "MMM d, yyyy") : a
185
+ label: h(m(a)) ? V(m(a), "MMM d, yyyy") : a
185
186
  }
186
187
  ] : []
187
188
  ]
@@ -192,7 +193,7 @@ const V = "no-date", T = (e, n) => {
192
193
  label: l.label,
193
194
  icon: l.icon,
194
195
  inverted: e.operator === "or",
195
- values: [u],
196
+ values: [d],
196
197
  singleSelect: l.singleSelect
197
198
  };
198
199
  }, q = (e, n) => {
@@ -202,7 +203,7 @@ const V = "no-date", T = (e, n) => {
202
203
  if (!t.every((i) => i.key === r)) return null;
203
204
  const l = e.operator === "or" && t.some((i) => i.operator === "isnull") && t.some((i) => i.operator === "eq" && i.value === ""), s = e.operator === "and" && t.some((i) => i.operator === "notnull") && t.some((i) => i.operator === "ne" && i.value === "");
204
205
  if (!l && !s) return null;
205
- const o = b(r, n);
206
+ const o = M(r, n);
206
207
  return o ? {
207
208
  id: o.id,
208
209
  type: o.type,
@@ -216,35 +217,35 @@ const V = "no-date", T = (e, n) => {
216
217
  } : null;
217
218
  }, E = (e, n, t) => {
218
219
  const { key: r, value: l, operator: s } = e;
219
- if (r === M) {
220
+ if (r === S) {
220
221
  const c = Array.isArray(l) ? l : [l || ""];
221
222
  return {
222
- id: M,
223
+ id: S,
223
224
  type: "string",
224
225
  label: "",
225
- values: c.map((y) => ({ id: String(y), label: String(y) }))
226
+ values: c.map((p) => ({ id: String(p), label: String(p) }))
226
227
  };
227
228
  }
228
- const o = b(r, n);
229
+ const o = M(r, n);
229
230
  if (!o)
230
231
  return null;
231
232
  const i = `${r}_${s}_${JSON.stringify(l)}`;
232
233
  if (t.has(i))
233
234
  return null;
234
235
  t.add(i);
235
- const d = H(l, s, o), a = d.length === 1 && ["hasValue", "noValue"].includes(String(d[0].id)) ? !1 : L(s, o.type), g = W(s, o.type);
236
+ const u = H(l, s, o), a = u.length === 1 && ["hasValue", "noValue"].includes(String(u[0].id)) ? !1 : L(s, o.type), y = W(s, o.type);
236
237
  return {
237
238
  id: o.id,
238
239
  type: o.type,
239
240
  label: o.label,
240
241
  inverted: a,
241
- operator: g,
242
+ operator: y,
242
243
  icon: o.icon,
243
- values: d,
244
+ values: u,
244
245
  isCustom: o.allowsCustomValues,
245
246
  singleSelect: o.singleSelect
246
247
  };
247
- }, b = (e, n) => {
248
+ }, M = (e, n) => {
248
249
  let t = n.find((r) => r.id === e);
249
250
  return t || (t = n.find(
250
251
  (r) => r.id.endsWith(e) || r.id.replace(/^[^.]*\./, "") === e || r.id.split("_").pop() === e
@@ -260,18 +261,18 @@ const V = "no-date", T = (e, n) => {
260
261
  }
261
262
  return e == null ? [] : (Array.isArray(e) ? e : [e]).map((l) => {
262
263
  let s = String(l), o = !1;
263
- if (n === "like" && typeof l == "string" && (s = l.replace(/^%/, "").replace(/%$/, ""), o = !0), !o) {
264
- const i = t.values?.find((d) => d.id === s);
264
+ if ((n === "like" || n === "notlike") && typeof l == "string" && (s = l.replace(/^%/, "").replace(/%$/, ""), o = !0), !o) {
265
+ const i = t.values?.find((u) => u.id === s);
265
266
  if (i)
266
267
  return i;
267
268
  }
268
269
  if (t.type === "datetime" && typeof l == "string")
269
270
  try {
270
- const i = f(l);
271
- if (m(i))
271
+ const i = m(l);
272
+ if (h(i))
272
273
  return {
273
274
  id: s,
274
- label: h(i, "MMM d, yyyy"),
275
+ label: V(i, "MMM d, yyyy"),
275
276
  isCustom: !0
276
277
  };
277
278
  } catch {
@@ -282,11 +283,19 @@ const V = "no-date", T = (e, n) => {
282
283
  isCustom: !0
283
284
  };
284
285
  });
285
- }, L = (e, n) => e ? ["ne", "notin", "excludes", "excludesall", "excludesany", "notnull"].includes(e) : !1, W = (e, n) => n?.startsWith("list_of_") && (e === "includesall" || e === "excludesall") ? "AND" : "OR";
286
+ }, L = (e, n) => e ? [
287
+ "ne",
288
+ "notin",
289
+ "notlike",
290
+ "excludes",
291
+ "excludesall",
292
+ "excludesany",
293
+ "notnull"
294
+ ].includes(e) : !1, W = (e, n) => n?.startsWith("list_of_") && (e === "includesall" || e === "excludesall") ? "AND" : "OR";
286
295
  export {
287
296
  G as a,
288
297
  q as b,
289
- T as c,
290
- k as q,
298
+ I as c,
299
+ $ as q,
291
300
  _ as t
292
301
  };