@milaboratories/uikit 2.6.1 → 2.6.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 (64) hide show
  1. package/.turbo/turbo-build.log +48 -48
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +8 -0
  4. package/dist/components/DataTable/TableComponent.vue.js +4 -2
  5. package/dist/components/DataTable/TableComponent.vue.js.map +1 -1
  6. package/dist/components/PlAccordion/ExpandTransition.vue3.js +1 -1
  7. package/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  8. package/dist/components/PlAutocomplete/PlAutocomplete.vue.d.ts +4 -0
  9. package/dist/components/PlAutocomplete/PlAutocomplete.vue.js +74 -68
  10. package/dist/components/PlAutocomplete/PlAutocomplete.vue.js.map +1 -1
  11. package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.d.ts +4 -0
  12. package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js +52 -46
  13. package/dist/components/PlAutocompleteMulti/PlAutocompleteMulti.vue.js.map +1 -1
  14. package/dist/components/PlDropdown/PlDropdown.vue.d.ts +8 -0
  15. package/dist/components/PlDropdown/PlDropdown.vue.js +67 -60
  16. package/dist/components/PlDropdown/PlDropdown.vue.js.map +1 -1
  17. package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js +21 -19
  18. package/dist/components/PlDropdownLegacy/PlDropdownLegacy.vue.js.map +1 -1
  19. package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.d.ts +4 -0
  20. package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js +47 -41
  21. package/dist/components/PlDropdownMulti/PlDropdownMulti.vue.js.map +1 -1
  22. package/dist/components/PlElementList/PlElementList.vue.d.ts +20 -0
  23. package/dist/components/PlElementList/PlElementList.vue2.js +180 -135
  24. package/dist/components/PlElementList/PlElementList.vue2.js.map +1 -1
  25. package/dist/components/PlElementList/PlElementListItem.vue.d.ts +20 -0
  26. package/dist/components/PlElementList/PlElementListItem.vue2.js +99 -74
  27. package/dist/components/PlElementList/PlElementListItem.vue2.js.map +1 -1
  28. package/dist/components/PlFileInput/PlFileInput.vue.js +24 -22
  29. package/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
  30. package/dist/components/PlLogView/PlLogView.vue.js +24 -22
  31. package/dist/components/PlLogView/PlLogView.vue.js.map +1 -1
  32. package/dist/components/PlNumberField/PlNumberField.vue.d.ts +5 -0
  33. package/dist/components/PlNumberField/PlNumberField.vue.js +60 -54
  34. package/dist/components/PlNumberField/PlNumberField.vue.js.map +1 -1
  35. package/dist/components/PlSlideModal/PlPureSlideModal.vue.js +4 -2
  36. package/dist/components/PlSlideModal/PlPureSlideModal.vue.js.map +1 -1
  37. package/dist/components/PlTextArea/PlTextArea.vue.js +15 -13
  38. package/dist/components/PlTextArea/PlTextArea.vue.js.map +1 -1
  39. package/dist/components/PlTextField/PlTextField.vue.d.ts +4 -0
  40. package/dist/components/PlTextField/PlTextField.vue.js +45 -39
  41. package/dist/components/PlTextField/PlTextField.vue.js.map +1 -1
  42. package/dist/composition/filters/metadata.d.ts +205 -0
  43. package/dist/composition/filters/metadata.js +129 -19
  44. package/dist/composition/filters/metadata.js.map +1 -1
  45. package/dist/utils/DoubleContour.vue.d.ts +7 -1
  46. package/dist/utils/DoubleContour.vue.js +20 -13
  47. package/dist/utils/DoubleContour.vue.js.map +1 -1
  48. package/dist/utils/DoubleContour.vue2.js +19 -3
  49. package/dist/utils/DoubleContour.vue2.js.map +1 -1
  50. package/dist/utils/DoubleContour.vue3.js +7 -0
  51. package/dist/utils/DoubleContour.vue3.js.map +1 -0
  52. package/package.json +4 -4
  53. package/src/components/PlAutocomplete/PlAutocomplete.vue +6 -1
  54. package/src/components/PlAutocompleteMulti/PlAutocompleteMulti.vue +6 -1
  55. package/src/components/PlDropdown/PlDropdown.vue +12 -2
  56. package/src/components/PlDropdownMulti/PlDropdownMulti.vue +6 -1
  57. package/src/components/PlElementList/PlElementList.vue +40 -6
  58. package/src/components/PlElementList/PlElementListItem.vue +64 -47
  59. package/src/components/PlNumberField/PlNumberField.vue +4 -1
  60. package/src/components/PlTextField/PlTextField.vue +5 -1
  61. package/src/composition/filters/metadata.ts +105 -0
  62. package/src/utils/DoubleContour.vue +68 -2
  63. package/dist/components/PlAccordion/ExpandTransition.vue.js +0 -27
  64. package/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
@@ -58,6 +58,10 @@ declare const _default: <M, E = string, C = E>(__VLS_props: NonNullable<Awaited<
58
58
  * The string specifies whether the field should be a password or not, value could be "password" or undefined.
59
59
  */
60
60
  type?: "password";
61
+ /**
62
+ * Makes some of corners not rounded
63
+ * */
64
+ groupPosition?: "top" | "bottom" | "left" | "right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "middle";
61
65
  }) & Partial<{}>> & import('vue').PublicProps;
62
66
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
63
67
  attrs: any;
@@ -1,8 +1,10 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(".pl-text-field{--pl-text-field-text-color: var(--txt-01);--contour-color: var(--txt-01);--label-color: var(--txt-01);--contour-border-width: 1px;--contour-box-shadow: none;--label-offset-left-x: 8px;--label-offset-right-x: 8px;--prefix-color: var(--color-placeholder);--show-clearable: none;width:100%;min-width:160px;min-height:var(--control-height);position:relative;border-radius:var(--border-radius-control);display:flex;flex-direction:row;align-items:center;outline:none}.pl-text-field__envelope{font-family:var(--font-family-base)}.pl-text-field input{font-family:var(--font-family-base);font-weight:500;min-height:calc(var(--control-height) - 2px);line-height:20px;width:100%;padding:0 12px;border:none;font-size:inherit;background-color:transparent;color:var(--pl-text-field-text-color);caret-color:var(--border-color-focus);cursor:inherit}.pl-text-field input:focus{outline:none}.pl-text-field input::placeholder{color:var(--color-placeholder)}.pl-text-field label{display:flex;align-items:center;gap:4px;position:absolute;top:0;transform:translateY(-60%);left:var(--label-offset-left-x);padding:0 4px;max-width:calc(100% - 16px);overflow:hidden;white-space:pre;text-overflow:ellipsis;cursor:inherit;color:var(--label-color);font-size:12px;font-weight:500;border-bottom-right-radius:4px;border-bottom-left-radius:4px;background:var(--bg-elevated-01)}.pl-text-field label>span{overflow:hidden;white-space:pre;text-overflow:ellipsis}.pl-text-field__contour{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--border-radius-control);border-width:var(--contour-border-width);border-color:var(--contour-color);border-style:solid;box-shadow:var(--contour-box-shadow);z-index:0;pointer-events:none}.pl-text-field__prefix{padding-left:12px;white-space:nowrap;margin-right:-12px;color:var(--prefix-color)}.pl-text-field__append{padding-right:12px;display:flex;flex-direction:row;align-items:center;gap:4px;cursor:text}.pl-text-field__append .icon-16{cursor:pointer}.pl-text-field__append .mask-16{--icon-color: var(--control-mask-fill);cursor:pointer}.pl-text-field__clearable{display:var(--show-clearable)!important;--icon-color: var(--ic-02) !important}.pl-text-field__helper{font-size:12px;color:var(--txt-03);padding:2px 0 0;white-space:pre-wrap;text-overflow:ellipsis;font-weight:500;line-height:16px;margin-top:6px}.pl-text-field__error{font-size:12px;color:var(--txt-error);padding:2px 0 0;white-space:pre-wrap;text-overflow:ellipsis;font-weight:500;line-height:16px;margin-top:6px}.pl-text-field:hover{--contour-color: var(--control-hover-color);--show-clearable: inline-block}.pl-text-field:focus-within{--show-clearable: inline-block}.pl-text-field:focus-within:not(.error){--label-color: var(--txt-focus);--contour-color: var(--border-color-focus);--contour-border-width: 2px;--contour-box-shadow: 0 0 0 4px var(--border-color-focus-shadow)}.pl-text-field:focus-within.error{--contour-border-width: 2px;--contour-box-shadow: 0 0 0 4px var(--color-error-shadow)}.pl-text-field.dashed .pl-text-field__contour{border-style:dashed}.pl-text-field.nonEmpty{--prefix-color: var(--txt-01)}.pl-text-field.error{--contour-color: var(--txt-error);--label-color: var(--txt-error)}.pl-text-field.disabled{--contour-color: var(--color-dis-01);--label-color: var(--dis-01);--pl-text-field-text-color: var(--dis-01);--mask-icon-bg-color: var(--dis-01);cursor:not-allowed}")),document.head.appendChild(o)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
- import { defineComponent as I, mergeModels as N, useSlots as $, useModel as O, ref as m, reactive as T, computed as s, createElementBlock as d, openBlock as t, createElementVNode as c, createCommentVNode as i, normalizeClass as j, withDirectives as z, createVNode as L, createBlock as p, unref as n, toDisplayString as f, withCtx as U, renderSlot as E, vModelDynamic as A, withModifiers as V } from "vue";
1
+ (function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.double-contour.top>div{border-bottom-right-radius:0;border-bottom-left-radius:0}.double-contour.bottom>div{border-top-right-radius:0;border-top-left-radius:0}.double-contour.left>div{border-top-right-radius:0;border-bottom-right-radius:0}.double-contour.right>div{border-top-left-radius:0;border-bottom-left-radius:0}.double-contour.top-left>div{border-top-right-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.double-contour.top-right>div{border-bottom-right-radius:0;border-top-left-radius:0;border-top-right-radius:0}.double-contour.bottom-left>div{border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.double-contour.bottom-right>div{border-top-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:0}.double-contour.middle>div{border-radius:0}
2
+ .pl-text-field{--pl-text-field-text-color: var(--txt-01);--contour-color: var(--txt-01);--label-color: var(--txt-01);--contour-border-width: 1px;--contour-box-shadow: none;--label-offset-left-x: 8px;--label-offset-right-x: 8px;--prefix-color: var(--color-placeholder);--show-clearable: none;width:100%;min-width:160px;min-height:var(--control-height);position:relative;border-radius:var(--border-radius-control);display:flex;flex-direction:row;align-items:center;outline:none}.pl-text-field__envelope{font-family:var(--font-family-base)}.pl-text-field input{font-family:var(--font-family-base);font-weight:500;min-height:calc(var(--control-height) - 2px);line-height:20px;width:100%;padding:0 12px;border:none;font-size:inherit;background-color:transparent;color:var(--pl-text-field-text-color);caret-color:var(--border-color-focus);cursor:inherit}.pl-text-field input:focus{outline:none}.pl-text-field input::placeholder{color:var(--color-placeholder)}.pl-text-field label{display:flex;align-items:center;gap:4px;position:absolute;top:0;transform:translateY(-60%);left:var(--label-offset-left-x);padding:0 4px;max-width:calc(100% - 16px);overflow:hidden;white-space:pre;text-overflow:ellipsis;cursor:inherit;color:var(--label-color);font-size:12px;font-weight:500;border-bottom-right-radius:4px;border-bottom-left-radius:4px;background:var(--bg-elevated-01)}.pl-text-field label>span{overflow:hidden;white-space:pre;text-overflow:ellipsis}.pl-text-field__contour{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:var(--border-radius-control);border-width:var(--contour-border-width);border-color:var(--contour-color);border-style:solid;box-shadow:var(--contour-box-shadow);z-index:0;pointer-events:none}.pl-text-field__prefix{padding-left:12px;white-space:nowrap;margin-right:-12px;color:var(--prefix-color)}.pl-text-field__append{padding-right:12px;display:flex;flex-direction:row;align-items:center;gap:4px;cursor:text}.pl-text-field__append .icon-16{cursor:pointer}.pl-text-field__append .mask-16{--icon-color: var(--control-mask-fill);cursor:pointer}.pl-text-field__clearable{display:var(--show-clearable)!important;--icon-color: var(--ic-02) !important}.pl-text-field__helper{font-size:12px;color:var(--txt-03);padding:2px 0 0;white-space:pre-wrap;text-overflow:ellipsis;font-weight:500;line-height:16px;margin-top:6px}.pl-text-field__error{font-size:12px;color:var(--txt-error);padding:2px 0 0;white-space:pre-wrap;text-overflow:ellipsis;font-weight:500;line-height:16px;margin-top:6px}.pl-text-field:hover{--contour-color: var(--control-hover-color);--show-clearable: inline-block}.pl-text-field:focus-within{--show-clearable: inline-block}.pl-text-field:focus-within:not(.error){--label-color: var(--txt-focus);--contour-color: var(--border-color-focus);--contour-border-width: 2px;--contour-box-shadow: 0 0 0 4px var(--border-color-focus-shadow)}.pl-text-field:focus-within.error{--contour-border-width: 2px;--contour-box-shadow: 0 0 0 4px var(--color-error-shadow)}.pl-text-field.dashed .pl-text-field__contour{border-style:dashed}.pl-text-field.nonEmpty{--prefix-color: var(--txt-01)}.pl-text-field.error{--contour-color: var(--txt-error);--label-color: var(--txt-error)}.pl-text-field.disabled{--contour-color: var(--color-dis-01);--label-color: var(--dis-01);--pl-text-field-text-color: var(--dis-01);--mask-icon-bg-color: var(--dis-01);cursor:not-allowed}`)),document.head.appendChild(o)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
3
+ import { defineComponent as N, mergeModels as $, useSlots as x, useModel as O, ref as v, reactive as T, computed as s, createElementBlock as d, openBlock as t, createElementVNode as u, createCommentVNode as i, normalizeClass as j, withDirectives as z, createVNode as L, createBlock as c, unref as n, toDisplayString as f, withCtx as U, renderSlot as E, vModelDynamic as A, withModifiers as V } from "vue";
3
4
  import G from "../../assets/images/required.svg.js";
4
5
  import { getErrorMessage as H } from "../../helpers/error.js";
5
6
  import J from "../../utils/DoubleContour.vue.js";
7
+
6
8
  import { useLabelNotch as K } from "../../utils/useLabelNotch.js";
7
9
  import { useValidation as Q } from "../../utils/useValidation.js";
8
10
  import W from "../PlIcon16/PlIcon16.vue.js";
@@ -10,10 +12,10 @@ import X from "../PlIcon24/PlIcon24.vue.js";
10
12
  import Y from "../PlSvg/PlSvg.vue.js";
11
13
  import Z from "../PlTooltip/PlTooltip.vue.js";
12
14
 
13
- const ee = { class: "pl-text-field__envelope" }, le = {
15
+ const ee = { class: "pl-text-field__envelope" }, oe = {
14
16
  key: 0,
15
17
  ref: "label"
16
- }, oe = {
18
+ }, le = {
17
19
  key: 1,
18
20
  class: "pl-text-field__prefix"
19
21
  }, re = ["disabled", "placeholder", "type"], te = {
@@ -24,9 +26,9 @@ const ee = { class: "pl-text-field__envelope" }, le = {
24
26
  class: "pl-text-field__helper"
25
27
  }, se = {
26
28
  name: "PlTextField"
27
- }, be = /* @__PURE__ */ I({
29
+ }, _e = /* @__PURE__ */ N({
28
30
  ...se,
29
- props: /* @__PURE__ */ N({
31
+ props: /* @__PURE__ */ $({
30
32
  label: {},
31
33
  clearable: { type: [Boolean, Function] },
32
34
  parse: { type: Function },
@@ -38,7 +40,8 @@ const ee = { class: "pl-text-field__envelope" }, le = {
38
40
  dashed: { type: Boolean },
39
41
  prefix: {},
40
42
  rules: {},
41
- type: {}
43
+ type: {},
44
+ groupPosition: {}
42
45
  }, {
43
46
  modelValue: {
44
47
  required: !0
@@ -47,16 +50,16 @@ const ee = { class: "pl-text-field__envelope" }, le = {
47
50
  }),
48
51
  emits: ["update:modelValue"],
49
52
  setup(h) {
50
- const C = $(), o = O(h, "modelValue"), l = h, y = m(void 0), b = m(), u = m(!1), a = T({
53
+ const C = x(), l = O(h, "modelValue"), o = h, y = v(void 0), b = v(), p = v(!1), a = T({
51
54
  cached: void 0
52
- }), v = s({
55
+ }), m = s({
53
56
  get() {
54
- return a.cached ? a.cached.value : o.value === void 0 || o.value === null ? "" : String(o.value);
57
+ return a.cached ? a.cached.value : l.value === void 0 || l.value === null ? "" : String(l.value);
55
58
  },
56
59
  set(e) {
57
- if (a.cached = void 0, l.parse)
60
+ if (a.cached = void 0, o.parse)
58
61
  try {
59
- o.value = l.parse(e);
62
+ l.value = o.parse(e);
60
63
  } catch (r) {
61
64
  a.cached = {
62
65
  error: r instanceof Error ? r.message : String(r),
@@ -64,37 +67,37 @@ const ee = { class: "pl-text-field__envelope" }, le = {
64
67
  };
65
68
  }
66
69
  else
67
- o.value = e;
70
+ l.value = e;
68
71
  }
69
- }), M = s(() => l.type && l.type === "password" ? u.value ? "text" : l.type : "text"), S = s(() => u.value ? "view-show" : "view-hide"), B = () => {
70
- l.clearable && (a.cached = void 0, o.value = l.clearable === !0 ? "" : l.clearable());
71
- }, _ = Q(v, l.rules || []), F = s(() => l.clearable ? l.clearable === !0 ? o.value === "" : o.value === l.clearable() : o.value === ""), k = s(() => !F.value), w = s(() => {
72
- const e = [], r = H(l.error);
72
+ }), M = s(() => o.type && o.type === "password" ? p.value ? "text" : o.type : "text"), P = s(() => p.value ? "view-show" : "view-hide"), S = () => {
73
+ o.clearable && (a.cached = void 0, l.value = o.clearable === !0 ? "" : o.clearable());
74
+ }, _ = Q(m, o.rules || []), B = s(() => o.clearable ? o.clearable === !0 ? l.value === "" : l.value === o.clearable() : l.value === ""), k = s(() => !B.value), g = s(() => {
75
+ const e = [], r = H(o.error);
73
76
  return r && e.push(r), a.cached && e.push(a.cached.error), _.value.isValid || e.push(..._.value.errors), e;
74
- }), g = s(() => w.value.length > 0), P = s(() => l.clearable && k.value && l.type !== "password" && !l.disabled), R = () => u.value = !u.value, D = () => {
77
+ }), w = s(() => g.value.length > 0), F = s(() => o.clearable && k.value && o.type !== "password" && !o.disabled), R = () => p.value = !p.value, q = () => {
75
78
  a.cached = void 0;
76
- }, q = () => {
79
+ }, D = () => {
77
80
  var e;
78
81
  return (e = b.value) == null ? void 0 : e.focus();
79
82
  };
80
83
  return K(y), (e, r) => (t(), d("div", ee, [
81
- c("div", {
84
+ u("div", {
82
85
  ref_key: "rootRef",
83
86
  ref: y,
84
87
  class: j(["pl-text-field", {
85
- error: g.value,
88
+ error: w.value,
86
89
  disabled: e.disabled,
87
90
  dashed: e.dashed,
88
91
  nonEmpty: k.value
89
92
  }])
90
93
  }, [
91
- e.label ? (t(), d("label", le, [
92
- e.required ? (t(), p(n(Y), {
94
+ e.label ? (t(), d("label", oe, [
95
+ e.required ? (t(), c(n(Y), {
93
96
  key: 0,
94
97
  uri: n(G)
95
98
  }, null, 8, ["uri"])) : i("", !0),
96
- c("span", null, f(e.label), 1),
97
- n(C).tooltip ? (t(), p(n(Z), {
99
+ u("span", null, f(e.label), 1),
100
+ n(C).tooltip ? (t(), c(n(Z), {
98
101
  key: 1,
99
102
  class: "info",
100
103
  position: "top"
@@ -105,44 +108,47 @@ const ee = { class: "pl-text-field__envelope" }, le = {
105
108
  _: 3
106
109
  })) : i("", !0)
107
110
  ], 512)) : i("", !0),
108
- e.prefix ? (t(), d("div", oe, f(e.prefix), 1)) : i("", !0),
109
- z(c("input", {
111
+ e.prefix ? (t(), d("div", le, f(e.prefix), 1)) : i("", !0),
112
+ z(u("input", {
110
113
  ref_key: "inputRef",
111
114
  ref: b,
112
- "onUpdate:modelValue": r[0] || (r[0] = (x) => v.value = x),
115
+ "onUpdate:modelValue": r[0] || (r[0] = (I) => m.value = I),
113
116
  disabled: e.disabled,
114
117
  placeholder: e.placeholder || "...",
115
118
  type: M.value,
116
119
  spellcheck: "false",
117
- onFocusout: D
120
+ onFocusout: q
118
121
  }, null, 40, re), [
119
- [A, v.value]
122
+ [A, m.value]
120
123
  ]),
121
- c("div", {
124
+ u("div", {
122
125
  class: "pl-text-field__append",
123
- onClick: q
126
+ onClick: D
124
127
  }, [
125
- P.value ? (t(), p(n(W), {
128
+ F.value ? (t(), c(n(W), {
126
129
  key: 0,
127
130
  class: "pl-text-field__clearable",
128
131
  name: "delete-clear",
129
- onClick: V(B, ["stop"])
132
+ onClick: V(S, ["stop"])
130
133
  })) : i("", !0),
131
- e.type === "password" ? (t(), p(n(X), {
134
+ e.type === "password" ? (t(), c(n(X), {
132
135
  key: 1,
133
- name: S.value,
136
+ name: P.value,
134
137
  style: { cursor: "pointer" },
135
138
  onClick: V(R, ["stop"])
136
139
  }, null, 8, ["name"])) : i("", !0),
137
140
  E(e.$slots, "append")
138
141
  ]),
139
- L(J, { class: "pl-text-field__contour" })
142
+ L(J, {
143
+ class: "pl-text-field__contour",
144
+ "group-position": e.groupPosition
145
+ }, null, 8, ["group-position"])
140
146
  ], 2),
141
- g.value ? (t(), d("div", te, f(w.value.join(" ")), 1)) : e.helper ? (t(), d("div", ae, f(e.helper), 1)) : i("", !0)
147
+ w.value ? (t(), d("div", te, f(g.value.join(" ")), 1)) : e.helper ? (t(), d("div", ae, f(e.helper), 1)) : i("", !0)
142
148
  ]));
143
149
  }
144
150
  });
145
151
  export {
146
- be as default
152
+ _e as default
147
153
  };
148
154
  //# sourceMappingURL=PlTextField.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlTextField.vue.js","sources":["../../../src/components/PlTextField/PlTextField.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Component for one-line string data manipulation\n */\nexport default {\n name: 'PlTextField',\n};\n</script>\n\n<script lang=\"ts\" setup generic=\"M, E = string, C = E\">\nimport type { Equal } from '@milaboratories/helpers';\nimport { computed, reactive, ref, useSlots } from 'vue';\nimport SvgRequired from '../../assets/images/required.svg?raw';\nimport { getErrorMessage } from '../../helpers/error.ts';\nimport DoubleContour from '../../utils/DoubleContour.vue';\nimport { useLabelNotch } from '../../utils/useLabelNotch';\nimport { useValidation } from '../../utils/useValidation';\nimport { PlIcon16 } from '../PlIcon16';\nimport { PlIcon24 } from '../PlIcon24';\nimport { PlSvg } from '../PlSvg';\nimport { PlTooltip } from '../PlTooltip';\nimport './pl-text-field.scss';\n\nconst slots = useSlots();\n\ntype Model = Equal<M, E | C> extends true ? M : never; // basically in === out\n\n/**\n * The current value of the input field.\n */\nconst model = defineModel<Model>({\n required: true,\n});\n\nconst props = defineProps<{\n /**\n * The label to display above the input field.\n */\n label?: string;\n /**\n * If `true`, a clear icon will appear in the input field to clear the value (set it to empty string).\n * Or you can pass a callback that returns a custom \"empty\" value (null | undefined | string)\n */\n clearable?: boolean | (() => C);\n /**\n * An optional callback to parse and/or cast the value, the return type overrides the model type.\n * The callback must throw an exception if the value is invalid\n */\n parse?: (v: string) => E;\n /**\n * If `true`, the input field is marked as required.\n */\n required?: boolean;\n /**\n * An error message to display below the input field.\n */\n error?: unknown;\n /**\n * A helper text to display below the input field when there are no errors.\n */\n helper?: string;\n /**\n * A placeholder text to display inside the input field when it is empty.\n */\n placeholder?: string;\n /**\n * If `true`, the input field is disabled and cannot be interacted with.\n */\n disabled?: boolean;\n /**\n * If `true`, the input field has a dashed border.\n */\n dashed?: boolean;\n /**\n * A prefix text to display inside the input field before the value.\n */\n prefix?: string;\n /**\n * An array of validation rules to apply to the input field. Each rule is a function that takes the current value and returns `true` if valid or an error message if invalid.\n */\n rules?: ((v: string) => boolean | string)[];\n /**\n * The string specifies whether the field should be a password or not, value could be \"password\" or undefined.\n */\n type?: 'password';\n}>();\n\nconst rootRef = ref<HTMLInputElement | undefined>(undefined);\n\nconst inputRef = ref<HTMLInputElement | undefined>();\n\nconst showPassword = ref(false);\n\nconst data = reactive({\n cached: undefined as { error: string; value: string } | undefined,\n});\n\nconst valueRef = computed<string>({\n get() {\n if (data.cached) {\n return data.cached.value;\n }\n return model.value === undefined || model.value === null ? '' : String(model.value);\n },\n set(value) {\n data.cached = undefined;\n\n if (props.parse) {\n try {\n model.value = props.parse(value) as Model;\n } catch (err) {\n data.cached = {\n error: err instanceof Error ? err.message : String(err),\n value,\n };\n }\n } else {\n model.value = value as Model;\n }\n },\n});\n\nconst fieldType = computed(() => {\n if (props.type && props.type === 'password') {\n return showPassword.value ? 'text' : props.type;\n } else {\n return 'text';\n }\n});\n\nconst passwordIcon = computed(() => (showPassword.value ? 'view-show' : 'view-hide'));\n\nconst clear = () => {\n if (props.clearable) {\n data.cached = undefined;\n model.value = props.clearable === true ? ('' as Model) : (props.clearable() as Model);\n }\n};\n\nconst validationData = useValidation(valueRef, props.rules || []);\n\nconst isEmpty = computed(() => {\n if (props.clearable) {\n return props.clearable === true ? model.value === '' : model.value === props.clearable();\n }\n\n return model.value === '';\n});\n\nconst nonEmpty = computed(() => !isEmpty.value);\n\nconst displayErrors = computed(() => {\n const errors: string[] = [];\n const propsError = getErrorMessage(props.error);\n if (propsError) {\n errors.push(propsError);\n }\n if (data.cached) {\n errors.push(data.cached.error);\n }\n if (!validationData.value.isValid) {\n errors.push(...validationData.value.errors);\n }\n return errors;\n});\n\nconst hasErrors = computed(() => displayErrors.value.length > 0);\n\nconst canShowClearable = computed(() => props.clearable && nonEmpty.value && props.type !== 'password' && !props.disabled);\n\nconst togglePasswordVisibility = () => (showPassword.value = !showPassword.value);\n\nconst onFocusOut = () => {\n data.cached = undefined;\n};\n\nconst setFocusOnInput = () => inputRef.value?.focus();\n\nuseLabelNotch(rootRef);\n</script>\n\n<template>\n <div class=\"pl-text-field__envelope\">\n <div\n ref=\"rootRef\"\n class=\"pl-text-field\"\n :class=\"{\n error: hasErrors,\n disabled,\n dashed,\n nonEmpty,\n }\"\n >\n <label v-if=\"label\" ref=\"label\">\n <PlSvg v-if=\"required\" :uri=\"SvgRequired\" />\n <span>{{ label }}</span>\n <PlTooltip v-if=\"slots.tooltip\" class=\"info\" position=\"top\">\n <template #tooltip>\n <slot name=\"tooltip\" />\n </template>\n </PlTooltip>\n </label>\n <div v-if=\"prefix\" class=\"pl-text-field__prefix\">\n {{ prefix }}\n </div>\n <input\n ref=\"inputRef\"\n v-model=\"valueRef\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder || '...'\"\n :type=\"fieldType\"\n spellcheck=\"false\"\n @focusout=\"onFocusOut\"\n />\n <div class=\"pl-text-field__append\" @click=\"setFocusOnInput\">\n <PlIcon16 v-if=\"canShowClearable\" class=\"pl-text-field__clearable\" name=\"delete-clear\" @click.stop=\"clear\" />\n <PlIcon24 v-if=\"type === 'password'\" :name=\"passwordIcon\" style=\"cursor: pointer\" @click.stop=\"togglePasswordVisibility\" />\n <slot name=\"append\" />\n </div>\n <DoubleContour class=\"pl-text-field__contour\" />\n </div>\n <div v-if=\"hasErrors\" class=\"pl-text-field__error\">\n {{ displayErrors.join(' ') }}\n </div>\n <div v-else-if=\"helper\" class=\"pl-text-field__helper\">{{ helper }}</div>\n </div>\n</template>\n"],"names":["__default__","slots","useSlots","model","_useModel","__props","props","rootRef","ref","inputRef","showPassword","data","reactive","valueRef","computed","value","err","fieldType","passwordIcon","clear","validationData","useValidation","isEmpty","nonEmpty","displayErrors","errors","propsError","getErrorMessage","hasErrors","canShowClearable","togglePasswordVisibility","onFocusOut","setFocusOnInput","_a","useLabelNotch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;GAIAA,KAAe;AAAA,EACb,MAAM;AACR;;;;;;;;;;;;;;;;;;;;;;;AAiBA,UAAMC,IAAQC,EAAA,GAORC,IAAQC,EAAkBC,GAAA,YAE/B,GAEKC,IAAQD,GAqDRE,IAAUC,EAAkC,MAAS,GAErDC,IAAWD,EAAA,GAEXE,IAAeF,EAAI,EAAK,GAExBG,IAAOC,EAAS;AAAA,MACpB,QAAQ;AAAA,IAAA,CACT,GAEKC,IAAWC,EAAiB;AAAA,MAChC,MAAM;AACJ,eAAIH,EAAK,SACAA,EAAK,OAAO,QAEdR,EAAM,UAAU,UAAaA,EAAM,UAAU,OAAO,KAAK,OAAOA,EAAM,KAAK;AAAA,MACpF;AAAA,MACA,IAAIY,GAAO;AAGT,YAFAJ,EAAK,SAAS,QAEVL,EAAM;AACR,cAAI;AACF,YAAAH,EAAM,QAAQG,EAAM,MAAMS,CAAK;AAAA,UACjC,SAASC,GAAK;AACZ,YAAAL,EAAK,SAAS;AAAA,cACZ,OAAOK,aAAe,QAAQA,EAAI,UAAU,OAAOA,CAAG;AAAA,cACtD,OAAAD;AAAA,YAAA;AAAA,UAEJ;AAAA;AAEA,UAAAZ,EAAM,QAAQY;AAAA,MAElB;AAAA,IAAA,CACD,GAEKE,IAAYH,EAAS,MACrBR,EAAM,QAAQA,EAAM,SAAS,aACxBI,EAAa,QAAQ,SAASJ,EAAM,OAEpC,MAEV,GAEKY,IAAeJ,EAAS,MAAOJ,EAAa,QAAQ,cAAc,WAAY,GAE9ES,IAAQ,MAAM;AAClB,MAAIb,EAAM,cACRK,EAAK,SAAS,QACdR,EAAM,QAAQG,EAAM,cAAc,KAAQ,KAAgBA,EAAM,UAAA;AAAA,IAEpE,GAEMc,IAAiBC,EAAcR,GAAUP,EAAM,SAAS,CAAA,CAAE,GAE1DgB,IAAUR,EAAS,MACnBR,EAAM,YACDA,EAAM,cAAc,KAAOH,EAAM,UAAU,KAAKA,EAAM,UAAUG,EAAM,UAAA,IAGxEH,EAAM,UAAU,EACxB,GAEKoB,IAAWT,EAAS,MAAM,CAACQ,EAAQ,KAAK,GAExCE,IAAgBV,EAAS,MAAM;AACnC,YAAMW,IAAmB,CAAA,GACnBC,IAAaC,EAAgBrB,EAAM,KAAK;AAC9C,aAAIoB,KACFD,EAAO,KAAKC,CAAU,GAEpBf,EAAK,UACPc,EAAO,KAAKd,EAAK,OAAO,KAAK,GAE1BS,EAAe,MAAM,WACxBK,EAAO,KAAK,GAAGL,EAAe,MAAM,MAAM,GAErCK;AAAA,IACT,CAAC,GAEKG,IAAYd,EAAS,MAAMU,EAAc,MAAM,SAAS,CAAC,GAEzDK,IAAmBf,EAAS,MAAMR,EAAM,aAAaiB,EAAS,SAASjB,EAAM,SAAS,cAAc,CAACA,EAAM,QAAQ,GAEnHwB,IAA2B,MAAOpB,EAAa,QAAQ,CAACA,EAAa,OAErEqB,IAAa,MAAM;AACvB,MAAApB,EAAK,SAAS;AAAA,IAChB,GAEMqB,IAAkB,MAAA;;AAAM,cAAAC,IAAAxB,EAAS,UAAT,gBAAAwB,EAAgB;AAAA;AAE9C,WAAAC,EAAc3B,CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"PlTextField.vue.js","sources":["../../../src/components/PlTextField/PlTextField.vue"],"sourcesContent":["<script lang=\"ts\">\n/**\n * Component for one-line string data manipulation\n */\nexport default {\n name: 'PlTextField',\n};\n</script>\n\n<script lang=\"ts\" setup generic=\"M, E = string, C = E\">\nimport type { Equal } from '@milaboratories/helpers';\nimport { computed, reactive, ref, useSlots } from 'vue';\nimport SvgRequired from '../../assets/images/required.svg?raw';\nimport { getErrorMessage } from '../../helpers/error.ts';\nimport DoubleContour from '../../utils/DoubleContour.vue';\nimport { useLabelNotch } from '../../utils/useLabelNotch';\nimport { useValidation } from '../../utils/useValidation';\nimport { PlIcon16 } from '../PlIcon16';\nimport { PlIcon24 } from '../PlIcon24';\nimport { PlSvg } from '../PlSvg';\nimport { PlTooltip } from '../PlTooltip';\nimport './pl-text-field.scss';\n\nconst slots = useSlots();\n\ntype Model = Equal<M, E | C> extends true ? M : never; // basically in === out\n\n/**\n * The current value of the input field.\n */\nconst model = defineModel<Model>({\n required: true,\n});\n\nconst props = defineProps<{\n /**\n * The label to display above the input field.\n */\n label?: string;\n /**\n * If `true`, a clear icon will appear in the input field to clear the value (set it to empty string).\n * Or you can pass a callback that returns a custom \"empty\" value (null | undefined | string)\n */\n clearable?: boolean | (() => C);\n /**\n * An optional callback to parse and/or cast the value, the return type overrides the model type.\n * The callback must throw an exception if the value is invalid\n */\n parse?: (v: string) => E;\n /**\n * If `true`, the input field is marked as required.\n */\n required?: boolean;\n /**\n * An error message to display below the input field.\n */\n error?: unknown;\n /**\n * A helper text to display below the input field when there are no errors.\n */\n helper?: string;\n /**\n * A placeholder text to display inside the input field when it is empty.\n */\n placeholder?: string;\n /**\n * If `true`, the input field is disabled and cannot be interacted with.\n */\n disabled?: boolean;\n /**\n * If `true`, the input field has a dashed border.\n */\n dashed?: boolean;\n /**\n * A prefix text to display inside the input field before the value.\n */\n prefix?: string;\n /**\n * An array of validation rules to apply to the input field. Each rule is a function that takes the current value and returns `true` if valid or an error message if invalid.\n */\n rules?: ((v: string) => boolean | string)[];\n /**\n * The string specifies whether the field should be a password or not, value could be \"password\" or undefined.\n */\n type?: 'password';\n /**\n * Makes some of corners not rounded\n * */\n groupPosition?: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'middle';\n}>();\n\nconst rootRef = ref<HTMLInputElement | undefined>(undefined);\n\nconst inputRef = ref<HTMLInputElement | undefined>();\n\nconst showPassword = ref(false);\n\nconst data = reactive({\n cached: undefined as { error: string; value: string } | undefined,\n});\n\nconst valueRef = computed<string>({\n get() {\n if (data.cached) {\n return data.cached.value;\n }\n return model.value === undefined || model.value === null ? '' : String(model.value);\n },\n set(value) {\n data.cached = undefined;\n\n if (props.parse) {\n try {\n model.value = props.parse(value) as Model;\n } catch (err) {\n data.cached = {\n error: err instanceof Error ? err.message : String(err),\n value,\n };\n }\n } else {\n model.value = value as Model;\n }\n },\n});\n\nconst fieldType = computed(() => {\n if (props.type && props.type === 'password') {\n return showPassword.value ? 'text' : props.type;\n } else {\n return 'text';\n }\n});\n\nconst passwordIcon = computed(() => (showPassword.value ? 'view-show' : 'view-hide'));\n\nconst clear = () => {\n if (props.clearable) {\n data.cached = undefined;\n model.value = props.clearable === true ? ('' as Model) : (props.clearable() as Model);\n }\n};\n\nconst validationData = useValidation(valueRef, props.rules || []);\n\nconst isEmpty = computed(() => {\n if (props.clearable) {\n return props.clearable === true ? model.value === '' : model.value === props.clearable();\n }\n\n return model.value === '';\n});\n\nconst nonEmpty = computed(() => !isEmpty.value);\n\nconst displayErrors = computed(() => {\n const errors: string[] = [];\n const propsError = getErrorMessage(props.error);\n if (propsError) {\n errors.push(propsError);\n }\n if (data.cached) {\n errors.push(data.cached.error);\n }\n if (!validationData.value.isValid) {\n errors.push(...validationData.value.errors);\n }\n return errors;\n});\n\nconst hasErrors = computed(() => displayErrors.value.length > 0);\n\nconst canShowClearable = computed(() => props.clearable && nonEmpty.value && props.type !== 'password' && !props.disabled);\n\nconst togglePasswordVisibility = () => (showPassword.value = !showPassword.value);\n\nconst onFocusOut = () => {\n data.cached = undefined;\n};\n\nconst setFocusOnInput = () => inputRef.value?.focus();\n\nuseLabelNotch(rootRef);\n</script>\n\n<template>\n <div class=\"pl-text-field__envelope\">\n <div\n ref=\"rootRef\"\n class=\"pl-text-field\"\n :class=\"{\n error: hasErrors,\n disabled,\n dashed,\n nonEmpty,\n }\"\n >\n <label v-if=\"label\" ref=\"label\">\n <PlSvg v-if=\"required\" :uri=\"SvgRequired\" />\n <span>{{ label }}</span>\n <PlTooltip v-if=\"slots.tooltip\" class=\"info\" position=\"top\">\n <template #tooltip>\n <slot name=\"tooltip\" />\n </template>\n </PlTooltip>\n </label>\n <div v-if=\"prefix\" class=\"pl-text-field__prefix\">\n {{ prefix }}\n </div>\n <input\n ref=\"inputRef\"\n v-model=\"valueRef\"\n :disabled=\"disabled\"\n :placeholder=\"placeholder || '...'\"\n :type=\"fieldType\"\n spellcheck=\"false\"\n @focusout=\"onFocusOut\"\n />\n <div class=\"pl-text-field__append\" @click=\"setFocusOnInput\">\n <PlIcon16 v-if=\"canShowClearable\" class=\"pl-text-field__clearable\" name=\"delete-clear\" @click.stop=\"clear\" />\n <PlIcon24 v-if=\"type === 'password'\" :name=\"passwordIcon\" style=\"cursor: pointer\" @click.stop=\"togglePasswordVisibility\" />\n <slot name=\"append\" />\n </div>\n <DoubleContour class=\"pl-text-field__contour\" :group-position=\"groupPosition\" />\n </div>\n <div v-if=\"hasErrors\" class=\"pl-text-field__error\">\n {{ displayErrors.join(' ') }}\n </div>\n <div v-else-if=\"helper\" class=\"pl-text-field__helper\">{{ helper }}</div>\n </div>\n</template>\n"],"names":["__default__","slots","useSlots","model","_useModel","__props","props","rootRef","ref","inputRef","showPassword","data","reactive","valueRef","computed","value","err","fieldType","passwordIcon","clear","validationData","useValidation","isEmpty","nonEmpty","displayErrors","errors","propsError","getErrorMessage","hasErrors","canShowClearable","togglePasswordVisibility","onFocusOut","setFocusOnInput","_a","useLabelNotch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;GAIAA,KAAe;AAAA,EACb,MAAM;AACR;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,UAAMC,IAAQC,EAAA,GAORC,IAAQC,EAAkBC,GAAA,YAE/B,GAEKC,IAAQD,GAyDRE,IAAUC,EAAkC,MAAS,GAErDC,IAAWD,EAAA,GAEXE,IAAeF,EAAI,EAAK,GAExBG,IAAOC,EAAS;AAAA,MACpB,QAAQ;AAAA,IAAA,CACT,GAEKC,IAAWC,EAAiB;AAAA,MAChC,MAAM;AACJ,eAAIH,EAAK,SACAA,EAAK,OAAO,QAEdR,EAAM,UAAU,UAAaA,EAAM,UAAU,OAAO,KAAK,OAAOA,EAAM,KAAK;AAAA,MACpF;AAAA,MACA,IAAIY,GAAO;AAGT,YAFAJ,EAAK,SAAS,QAEVL,EAAM;AACR,cAAI;AACF,YAAAH,EAAM,QAAQG,EAAM,MAAMS,CAAK;AAAA,UACjC,SAASC,GAAK;AACZ,YAAAL,EAAK,SAAS;AAAA,cACZ,OAAOK,aAAe,QAAQA,EAAI,UAAU,OAAOA,CAAG;AAAA,cACtD,OAAAD;AAAA,YAAA;AAAA,UAEJ;AAAA;AAEA,UAAAZ,EAAM,QAAQY;AAAA,MAElB;AAAA,IAAA,CACD,GAEKE,IAAYH,EAAS,MACrBR,EAAM,QAAQA,EAAM,SAAS,aACxBI,EAAa,QAAQ,SAASJ,EAAM,OAEpC,MAEV,GAEKY,IAAeJ,EAAS,MAAOJ,EAAa,QAAQ,cAAc,WAAY,GAE9ES,IAAQ,MAAM;AAClB,MAAIb,EAAM,cACRK,EAAK,SAAS,QACdR,EAAM,QAAQG,EAAM,cAAc,KAAQ,KAAgBA,EAAM,UAAA;AAAA,IAEpE,GAEMc,IAAiBC,EAAcR,GAAUP,EAAM,SAAS,CAAA,CAAE,GAE1DgB,IAAUR,EAAS,MACnBR,EAAM,YACDA,EAAM,cAAc,KAAOH,EAAM,UAAU,KAAKA,EAAM,UAAUG,EAAM,UAAA,IAGxEH,EAAM,UAAU,EACxB,GAEKoB,IAAWT,EAAS,MAAM,CAACQ,EAAQ,KAAK,GAExCE,IAAgBV,EAAS,MAAM;AACnC,YAAMW,IAAmB,CAAA,GACnBC,IAAaC,EAAgBrB,EAAM,KAAK;AAC9C,aAAIoB,KACFD,EAAO,KAAKC,CAAU,GAEpBf,EAAK,UACPc,EAAO,KAAKd,EAAK,OAAO,KAAK,GAE1BS,EAAe,MAAM,WACxBK,EAAO,KAAK,GAAGL,EAAe,MAAM,MAAM,GAErCK;AAAA,IACT,CAAC,GAEKG,IAAYd,EAAS,MAAMU,EAAc,MAAM,SAAS,CAAC,GAEzDK,IAAmBf,EAAS,MAAMR,EAAM,aAAaiB,EAAS,SAASjB,EAAM,SAAS,cAAc,CAACA,EAAM,QAAQ,GAEnHwB,IAA2B,MAAOpB,EAAa,QAAQ,CAACA,EAAa,OAErEqB,IAAa,MAAM;AACvB,MAAApB,EAAK,SAAS;AAAA,IAChB,GAEMqB,IAAkB,MAAA;;AAAM,cAAAC,IAAAxB,EAAS,UAAT,gBAAAwB,EAAgB;AAAA;AAE9C,WAAAC,EAAc3B,CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -21,6 +21,27 @@ export declare const filterUiMetadata: {
21
21
  };
22
22
  supportedFor: typeof isNumericValueType;
23
23
  };
24
+ notEqual: {
25
+ label: string;
26
+ form: {
27
+ column: {
28
+ label: string;
29
+ fieldType: "SUniversalPColumnId";
30
+ defaultValue: () => undefined;
31
+ };
32
+ type: {
33
+ label: string;
34
+ fieldType: "FilterType";
35
+ defaultValue: () => "notEqual";
36
+ };
37
+ x: {
38
+ label: string;
39
+ fieldType: "number";
40
+ defaultValue: () => number;
41
+ };
42
+ };
43
+ supportedFor: typeof isNumericValueType;
44
+ };
24
45
  lessThan: {
25
46
  label: string;
26
47
  form: {
@@ -436,6 +457,90 @@ export declare const filterUiMetadata: {
436
457
  };
437
458
  supportedFor: () => false;
438
459
  };
460
+ patternMatchesRegularExpression: {
461
+ label: string;
462
+ form: {
463
+ column: {
464
+ label: string;
465
+ fieldType: "SUniversalPColumnId";
466
+ defaultValue: () => undefined;
467
+ };
468
+ type: {
469
+ label: string;
470
+ fieldType: "FilterType";
471
+ defaultValue: () => "patternMatchesRegularExpression";
472
+ };
473
+ value: {
474
+ label: string;
475
+ fieldType: "string";
476
+ defaultValue: () => string;
477
+ };
478
+ };
479
+ supportedFor: typeof isStringValueType;
480
+ };
481
+ patternFuzzyContainSubsequence: {
482
+ label: string;
483
+ form: {
484
+ column: {
485
+ label: string;
486
+ fieldType: "SUniversalPColumnId";
487
+ defaultValue: () => undefined;
488
+ };
489
+ type: {
490
+ label: string;
491
+ fieldType: "FilterType";
492
+ defaultValue: () => "patternFuzzyContainSubsequence";
493
+ };
494
+ value: {
495
+ label: string;
496
+ fieldType: "string";
497
+ defaultValue: () => string;
498
+ };
499
+ };
500
+ supportedFor: typeof isStringValueType;
501
+ };
502
+ inSet: {
503
+ label: string;
504
+ form: {
505
+ column: {
506
+ label: string;
507
+ fieldType: "SUniversalPColumnId";
508
+ defaultValue: () => undefined;
509
+ };
510
+ type: {
511
+ label: string;
512
+ fieldType: "FilterType";
513
+ defaultValue: () => "inSet";
514
+ };
515
+ value: {
516
+ fieldType: "unknown[]";
517
+ label: string;
518
+ defaultValue: () => never[];
519
+ };
520
+ };
521
+ supportedFor: typeof isStringValueType;
522
+ };
523
+ notInSet: {
524
+ label: string;
525
+ form: {
526
+ column: {
527
+ label: string;
528
+ fieldType: "SUniversalPColumnId";
529
+ defaultValue: () => undefined;
530
+ };
531
+ type: {
532
+ label: string;
533
+ fieldType: "FilterType";
534
+ defaultValue: () => "notInSet";
535
+ };
536
+ value: {
537
+ label: string;
538
+ fieldType: "unknown[]";
539
+ defaultValue: () => never[];
540
+ };
541
+ };
542
+ supportedFor: typeof isStringValueType;
543
+ };
439
544
  };
440
545
  export declare function getFilterUiTypeOptions(columnSpec?: SimplifiedPColumnSpec): {
441
546
  label: string;
@@ -461,6 +566,26 @@ export declare function getFilterUiMetadata(type: FilterSpecType): {
461
566
  };
462
567
  };
463
568
  supportedFor: typeof isNumericValueType;
569
+ } | {
570
+ label: string;
571
+ form: {
572
+ column: {
573
+ label: string;
574
+ fieldType: "SUniversalPColumnId";
575
+ defaultValue: () => undefined;
576
+ };
577
+ type: {
578
+ label: string;
579
+ fieldType: "FilterType";
580
+ defaultValue: () => "notEqual";
581
+ };
582
+ x: {
583
+ label: string;
584
+ fieldType: "number";
585
+ defaultValue: () => number;
586
+ };
587
+ };
588
+ supportedFor: typeof isNumericValueType;
464
589
  } | {
465
590
  label: string;
466
591
  form: {
@@ -856,6 +981,86 @@ export declare function getFilterUiMetadata(type: FilterSpecType): {
856
981
  };
857
982
  };
858
983
  supportedFor: () => false;
984
+ } | {
985
+ label: string;
986
+ form: {
987
+ column: {
988
+ label: string;
989
+ fieldType: "SUniversalPColumnId";
990
+ defaultValue: () => undefined;
991
+ };
992
+ type: {
993
+ label: string;
994
+ fieldType: "FilterType";
995
+ defaultValue: () => "patternMatchesRegularExpression";
996
+ };
997
+ value: {
998
+ label: string;
999
+ fieldType: "string";
1000
+ defaultValue: () => string;
1001
+ };
1002
+ };
1003
+ supportedFor: typeof isStringValueType;
1004
+ } | {
1005
+ label: string;
1006
+ form: {
1007
+ column: {
1008
+ label: string;
1009
+ fieldType: "SUniversalPColumnId";
1010
+ defaultValue: () => undefined;
1011
+ };
1012
+ type: {
1013
+ label: string;
1014
+ fieldType: "FilterType";
1015
+ defaultValue: () => "patternFuzzyContainSubsequence";
1016
+ };
1017
+ value: {
1018
+ label: string;
1019
+ fieldType: "string";
1020
+ defaultValue: () => string;
1021
+ };
1022
+ };
1023
+ supportedFor: typeof isStringValueType;
1024
+ } | {
1025
+ label: string;
1026
+ form: {
1027
+ column: {
1028
+ label: string;
1029
+ fieldType: "SUniversalPColumnId";
1030
+ defaultValue: () => undefined;
1031
+ };
1032
+ type: {
1033
+ label: string;
1034
+ fieldType: "FilterType";
1035
+ defaultValue: () => "inSet";
1036
+ };
1037
+ value: {
1038
+ fieldType: "unknown[]";
1039
+ label: string;
1040
+ defaultValue: () => never[];
1041
+ };
1042
+ };
1043
+ supportedFor: typeof isStringValueType;
1044
+ } | {
1045
+ label: string;
1046
+ form: {
1047
+ column: {
1048
+ label: string;
1049
+ fieldType: "SUniversalPColumnId";
1050
+ defaultValue: () => undefined;
1051
+ };
1052
+ type: {
1053
+ label: string;
1054
+ fieldType: "FilterType";
1055
+ defaultValue: () => "notInSet";
1056
+ };
1057
+ value: {
1058
+ label: string;
1059
+ fieldType: "unknown[]";
1060
+ defaultValue: () => never[];
1061
+ };
1062
+ };
1063
+ supportedFor: typeof isStringValueType;
859
1064
  };
860
1065
  declare function isNumericValueType(spec: SimplifiedPColumnSpec): boolean;
861
1066
  declare function isStringValueType(spec: SimplifiedPColumnSpec): boolean;