@leaflink/stash 50.0.7 → 50.0.8
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/dist/Filters.vue.d.ts +30 -0
- package/dist/InputOptions.js +67 -66
- package/dist/InputOptions.js.map +1 -1
- package/dist/InputOptions.vue.d.ts +10 -4
- package/dist/ListView.vue.d.ts +48 -24
- package/package.json +1 -1
package/dist/Filters.vue.d.ts
CHANGED
|
@@ -743,6 +743,10 @@ type: PropType<string>;
|
|
|
743
743
|
id: {
|
|
744
744
|
type: PropType<string>;
|
|
745
745
|
};
|
|
746
|
+
trackBy: {
|
|
747
|
+
type: PropType<string>;
|
|
748
|
+
default: undefined;
|
|
749
|
+
};
|
|
746
750
|
isRequired: {
|
|
747
751
|
type: PropType<boolean>;
|
|
748
752
|
};
|
|
@@ -771,6 +775,10 @@ placeholder: {
|
|
|
771
775
|
type: PropType<string>;
|
|
772
776
|
default: undefined;
|
|
773
777
|
};
|
|
778
|
+
displayBy: {
|
|
779
|
+
type: PropType<string>;
|
|
780
|
+
default: undefined;
|
|
781
|
+
};
|
|
774
782
|
options: {
|
|
775
783
|
type: PropType<any[]>;
|
|
776
784
|
default: () => never[];
|
|
@@ -817,7 +825,9 @@ type: "input" | "select";
|
|
|
817
825
|
}) => void;
|
|
818
826
|
}, PublicProps, {
|
|
819
827
|
type: string;
|
|
828
|
+
trackBy: string;
|
|
820
829
|
placeholder: string;
|
|
830
|
+
displayBy: string;
|
|
821
831
|
options: any[];
|
|
822
832
|
modelValue: {
|
|
823
833
|
value: string;
|
|
@@ -848,6 +858,10 @@ type: PropType<string>;
|
|
|
848
858
|
id: {
|
|
849
859
|
type: PropType<string>;
|
|
850
860
|
};
|
|
861
|
+
trackBy: {
|
|
862
|
+
type: PropType<string>;
|
|
863
|
+
default: undefined;
|
|
864
|
+
};
|
|
851
865
|
isRequired: {
|
|
852
866
|
type: PropType<boolean>;
|
|
853
867
|
};
|
|
@@ -876,6 +890,10 @@ placeholder: {
|
|
|
876
890
|
type: PropType<string>;
|
|
877
891
|
default: undefined;
|
|
878
892
|
};
|
|
893
|
+
displayBy: {
|
|
894
|
+
type: PropType<string>;
|
|
895
|
+
default: undefined;
|
|
896
|
+
};
|
|
879
897
|
options: {
|
|
880
898
|
type: PropType<any[]>;
|
|
881
899
|
default: () => never[];
|
|
@@ -909,7 +927,9 @@ type: "input" | "select";
|
|
|
909
927
|
}) => any) | undefined;
|
|
910
928
|
}>, {}, {}, {}, {}, {
|
|
911
929
|
type: string;
|
|
930
|
+
trackBy: string;
|
|
912
931
|
placeholder: string;
|
|
932
|
+
displayBy: string;
|
|
913
933
|
options: any[];
|
|
914
934
|
modelValue: {
|
|
915
935
|
value: string;
|
|
@@ -937,6 +957,10 @@ type: PropType<string>;
|
|
|
937
957
|
id: {
|
|
938
958
|
type: PropType<string>;
|
|
939
959
|
};
|
|
960
|
+
trackBy: {
|
|
961
|
+
type: PropType<string>;
|
|
962
|
+
default: undefined;
|
|
963
|
+
};
|
|
940
964
|
isRequired: {
|
|
941
965
|
type: PropType<boolean>;
|
|
942
966
|
};
|
|
@@ -965,6 +989,10 @@ placeholder: {
|
|
|
965
989
|
type: PropType<string>;
|
|
966
990
|
default: undefined;
|
|
967
991
|
};
|
|
992
|
+
displayBy: {
|
|
993
|
+
type: PropType<string>;
|
|
994
|
+
default: undefined;
|
|
995
|
+
};
|
|
968
996
|
options: {
|
|
969
997
|
type: PropType<any[]>;
|
|
970
998
|
default: () => never[];
|
|
@@ -1011,7 +1039,9 @@ type: "input" | "select";
|
|
|
1011
1039
|
}) => void;
|
|
1012
1040
|
}, string, {
|
|
1013
1041
|
type: string;
|
|
1042
|
+
trackBy: string;
|
|
1014
1043
|
placeholder: string;
|
|
1044
|
+
displayBy: string;
|
|
1015
1045
|
options: any[];
|
|
1016
1046
|
modelValue: {
|
|
1017
1047
|
value: string;
|
package/dist/InputOptions.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
1
|
+
import { defineComponent as S, useAttrs as O, useSlots as E, useCssModule as T, ref as p, watchEffect as $, watch as h, openBlock as d, createBlock as D, mergeProps as M, createSlots as R, withCtx as f, createElementBlock as y, createElementVNode as z, toDisplayString as _, normalizeClass as r, unref as s, createVNode as b, renderSlot as F } from "vue";
|
|
2
|
+
import N from "./Input.js";
|
|
3
|
+
import U from "./Select.js";
|
|
4
|
+
import { _ as q } from "./Field.vue_vue_type_script_setup_true_lang-DEizIcDo.js";
|
|
5
|
+
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const L = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "tw-flex tw-h-input tw-items-center tw-text-sm"
|
|
9
|
-
},
|
|
9
|
+
}, P = ["id", "aria-labelledby"], j = /* @__PURE__ */ S({
|
|
10
10
|
name: "ll-input-options",
|
|
11
11
|
__name: "InputOptions",
|
|
12
12
|
props: {
|
|
@@ -15,136 +15,137 @@ const j = {
|
|
|
15
15
|
noTruncate: { type: Boolean, default: !1 },
|
|
16
16
|
options: { default: () => [] },
|
|
17
17
|
placeholder: { default: void 0 },
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
displayBy: { default: void 0 },
|
|
19
|
+
trackBy: { default: void 0 },
|
|
20
20
|
addBottomSpace: { type: Boolean },
|
|
21
21
|
errorText: {},
|
|
22
22
|
hintText: {},
|
|
23
23
|
id: {},
|
|
24
24
|
errorId: {},
|
|
25
|
+
isReadOnly: { type: Boolean },
|
|
25
26
|
isRequired: { type: Boolean },
|
|
26
27
|
label: {},
|
|
27
28
|
showOptionalInLabel: { type: Boolean },
|
|
28
29
|
fieldset: { type: Boolean },
|
|
29
|
-
isDisabled: { type: Boolean }
|
|
30
|
+
isDisabled: { type: Boolean },
|
|
31
|
+
disabled: { type: Boolean }
|
|
30
32
|
},
|
|
31
33
|
emits: ["update:model-value", "change"],
|
|
32
|
-
setup(
|
|
33
|
-
const e =
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
function x(l) {
|
|
38
|
-
o.value = String(l), n("update:model-value", {
|
|
39
|
-
value: o.value,
|
|
34
|
+
setup(w, { emit: g }) {
|
|
35
|
+
const e = w, o = g, c = O(), B = E(), i = T(), l = p(), u = p(!1), t = p();
|
|
36
|
+
function V(a) {
|
|
37
|
+
l.value = String(a), o("update:model-value", {
|
|
38
|
+
value: l.value,
|
|
40
39
|
option: t.value,
|
|
41
40
|
isValueChange: !0,
|
|
42
41
|
type: "input"
|
|
43
42
|
});
|
|
44
43
|
}
|
|
45
|
-
function
|
|
46
|
-
|
|
47
|
-
value:
|
|
44
|
+
function k() {
|
|
45
|
+
o("change", {
|
|
46
|
+
value: l.value,
|
|
48
47
|
option: t.value,
|
|
49
48
|
isValueChange: !0,
|
|
50
49
|
type: "input"
|
|
51
50
|
});
|
|
52
51
|
}
|
|
53
|
-
function
|
|
54
|
-
t.value =
|
|
55
|
-
value:
|
|
52
|
+
function C(a) {
|
|
53
|
+
t.value = a, o("change", {
|
|
54
|
+
value: l.value,
|
|
56
55
|
option: t.value,
|
|
57
56
|
isValueChange: !1,
|
|
58
57
|
type: "select"
|
|
59
|
-
}),
|
|
60
|
-
value:
|
|
58
|
+
}), o("update:model-value", {
|
|
59
|
+
value: l.value,
|
|
61
60
|
option: t.value,
|
|
62
61
|
isValueChange: !1,
|
|
63
62
|
type: "select"
|
|
64
63
|
});
|
|
65
64
|
}
|
|
66
|
-
if (
|
|
65
|
+
if ($(() => {
|
|
67
66
|
t.value || (t.value = e.options[0]);
|
|
68
|
-
}),
|
|
67
|
+
}), h(
|
|
69
68
|
() => e.modelValue.value,
|
|
70
69
|
() => {
|
|
71
|
-
|
|
70
|
+
l.value = e.modelValue.value;
|
|
72
71
|
},
|
|
73
72
|
{ immediate: !0 }
|
|
74
|
-
),
|
|
73
|
+
), h(
|
|
75
74
|
() => e.modelValue.option,
|
|
76
75
|
() => {
|
|
77
76
|
t.value = e.modelValue.option;
|
|
78
77
|
},
|
|
79
78
|
{ immediate: !0 }
|
|
80
|
-
),
|
|
79
|
+
), c.value)
|
|
81
80
|
throw new Error("ll-input-options: use :model-value or v-model instead of :value.");
|
|
82
|
-
if (
|
|
81
|
+
if (c.onInput)
|
|
83
82
|
throw new Error("ll-input-options: use the @update:model-value event instead of @input");
|
|
84
|
-
return (
|
|
83
|
+
return (a, n) => (d(), D(q, M(e, {
|
|
85
84
|
class: "stash-input-options",
|
|
86
85
|
"data-test": "stash-input-options"
|
|
87
|
-
}),
|
|
88
|
-
default: f(({ fieldId:
|
|
89
|
-
var
|
|
86
|
+
}), R({
|
|
87
|
+
default: f(({ fieldId: m, labelId: x }) => {
|
|
88
|
+
var v;
|
|
90
89
|
return [
|
|
91
|
-
e.isReadOnly ? (
|
|
92
|
-
|
|
93
|
-
id:
|
|
94
|
-
"aria-labelledby":
|
|
90
|
+
e.isReadOnly ? (d(), y("div", L, [
|
|
91
|
+
z("span", {
|
|
92
|
+
id: m,
|
|
93
|
+
"aria-labelledby": x,
|
|
95
94
|
class: "tw-h-min"
|
|
96
|
-
}, _(
|
|
97
|
-
])) : (
|
|
95
|
+
}, _(l.value || 0) + " " + _((v = t.value) == null ? void 0 : v.name), 9, P)
|
|
96
|
+
])) : (d(), y("div", {
|
|
98
97
|
key: 1,
|
|
99
|
-
class:
|
|
98
|
+
class: r(["tw-flex", { [s(i)["has-error"]]: !!e.errorText }])
|
|
100
99
|
}, [
|
|
101
|
-
b(
|
|
102
|
-
id:
|
|
103
|
-
class:
|
|
100
|
+
b(N, {
|
|
101
|
+
id: m,
|
|
102
|
+
class: r(["stash-input-options__input -tw-mr-[1px] tw-inline-block tw-flex-1", [s(i).input, { "tw-z-control": u.value }]]),
|
|
104
103
|
"data-test": "stash-input-options|input",
|
|
105
104
|
type: e.type,
|
|
106
|
-
"model-value":
|
|
105
|
+
"model-value": l.value,
|
|
107
106
|
disabled: e.isDisabled || e.disabled,
|
|
108
107
|
placeholder: e.placeholder,
|
|
109
|
-
onChange:
|
|
110
|
-
"onUpdate:modelValue":
|
|
111
|
-
onBlur:
|
|
112
|
-
onFocus:
|
|
108
|
+
onChange: k,
|
|
109
|
+
"onUpdate:modelValue": V,
|
|
110
|
+
onBlur: n[0] || (n[0] = (I) => u.value = !1),
|
|
111
|
+
onFocus: n[1] || (n[1] = (I) => u.value = !0)
|
|
113
112
|
}, null, 8, ["id", "class", "type", "model-value", "disabled", "placeholder"]),
|
|
114
|
-
b(
|
|
113
|
+
b(U, {
|
|
115
114
|
single: "",
|
|
116
115
|
"hide-search": "",
|
|
117
116
|
"prevent-empty": "",
|
|
118
|
-
class: ["stash-input-options__select tw-min-w-20", i
|
|
117
|
+
class: r(["stash-input-options__select tw-min-w-20", s(i).select]),
|
|
119
118
|
"data-test": "stash-input-options|select",
|
|
120
|
-
"no-truncate":
|
|
121
|
-
options:
|
|
119
|
+
"no-truncate": a.noTruncate,
|
|
120
|
+
options: a.options,
|
|
122
121
|
"model-value": t.value,
|
|
122
|
+
"display-by": e.displayBy,
|
|
123
|
+
"track-by": e.trackBy,
|
|
123
124
|
disabled: e.isDisabled || e.disabled,
|
|
124
|
-
"onUpdate:modelValue":
|
|
125
|
-
}
|
|
125
|
+
"onUpdate:modelValue": C
|
|
126
|
+
}, null, 8, ["class", "no-truncate", "options", "model-value", "display-by", "track-by", "disabled"])
|
|
126
127
|
], 2))
|
|
127
128
|
];
|
|
128
129
|
}),
|
|
129
130
|
_: 2
|
|
130
131
|
}, [
|
|
131
|
-
|
|
132
|
+
s(B).hint ? {
|
|
132
133
|
name: "hint",
|
|
133
134
|
fn: f(() => [
|
|
134
|
-
|
|
135
|
+
F(a.$slots, "hint")
|
|
135
136
|
]),
|
|
136
137
|
key: "0"
|
|
137
138
|
} : void 0
|
|
138
139
|
]), 1040));
|
|
139
140
|
}
|
|
140
|
-
}),
|
|
141
|
-
input:
|
|
142
|
-
select:
|
|
141
|
+
}), G = "_input_gn7he_2", H = "_select_gn7he_7", J = {
|
|
142
|
+
input: G,
|
|
143
|
+
select: H,
|
|
143
144
|
"has-error": "_has-error_gn7he_16"
|
|
144
|
-
},
|
|
145
|
-
$style:
|
|
146
|
-
},
|
|
145
|
+
}, K = {
|
|
146
|
+
$style: J
|
|
147
|
+
}, ee = /* @__PURE__ */ A(j, [["__cssModules", K]]);
|
|
147
148
|
export {
|
|
148
|
-
|
|
149
|
+
ee as default
|
|
149
150
|
};
|
|
150
151
|
//# sourceMappingURL=InputOptions.js.map
|
package/dist/InputOptions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputOptions.js","sources":["../src/components/InputOptions/InputOptions.vue"],"sourcesContent":["<script lang=\"ts\">\n import Field, { type FieldProps } from '../Field/Field.vue';\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n type Option = any;\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n type SelectedOption = any;\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n export interface InputOptionsProps extends FieldProps {\n /**\n * The current value inclusive of the input & select\n */\n modelValue?: { value: string; option?: SelectedOption };\n\n /**\n * Input type\n */\n type?: string extends 'button' | 'checkbox' | 'radio' | 'submit' ? never : string;\n\n /**\n * Prevents the Selected Option from being truncated, if true\n */\n noTruncate?: boolean;\n\n /**\n * Options for the select\n */\n options?: Option[];\n\n /**\n * Placeholder text for the input\n * **Note:** placeholders should be used to display examples; they should not be used as labels because they are not accessible as labels. If a real label cannot be used, use the `aria-label` attribute.\n */\n placeholder?: string;\n\n /**\n *
|
|
1
|
+
{"version":3,"file":"InputOptions.js","sources":["../src/components/InputOptions/InputOptions.vue"],"sourcesContent":["<script lang=\"ts\">\n import Field, { type FieldProps } from '../Field/Field.vue';\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n type Option = any;\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n type SelectedOption = any;\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n export interface InputOptionsProps extends FieldProps {\n /**\n * The current value inclusive of the input & select\n */\n modelValue?: { value: string; option?: SelectedOption };\n\n /**\n * Input type\n */\n type?: string extends 'button' | 'checkbox' | 'radio' | 'submit' ? never : string;\n\n /**\n * Prevents the Selected Option from being truncated, if true\n */\n noTruncate?: boolean;\n\n /**\n * Options for the select\n */\n options?: Option[];\n\n /**\n * Placeholder text for the input\n * **Note:** placeholders should be used to display examples; they should not be used as labels because they are not accessible as labels. If a real label cannot be used, use the `aria-label` attribute.\n */\n placeholder?: string;\n\n /**\n * If `options` are an object, this is what prop to use for display.\n */\n displayBy?: string;\n\n /**\n * Default field to track selected options by.\n */\n trackBy?: string;\n }\n</script>\n\n<script lang=\"ts\" setup>\n import { ref, useAttrs, useCssModule, useSlots, watch, watchEffect } from 'vue';\n\n import Input from '../Input/Input.vue';\n import Select from '../Select/Select.vue';\n\n defineOptions({\n name: 'll-input-options',\n });\n\n const props = withDefaults(defineProps<InputOptionsProps>(), {\n modelValue: () => ({ value: '', option: undefined }),\n noTruncate: false,\n options: () => [],\n type: 'text',\n placeholder: undefined,\n displayBy: undefined,\n trackBy: undefined,\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the model value changes\n */\n (\n e: 'update:model-value',\n v: { value?: string; option?: SelectedOption; isValueChange: boolean; type: 'input' | 'select' },\n ): void;\n /**\n * Emitted when either the input or select changes\n */\n (\n e: 'change',\n v: { value?: string; option?: SelectedOption; isValueChange: boolean; type: 'input' | 'select' },\n ): void;\n }>();\n\n const attrs = useAttrs();\n const slots = useSlots();\n const classes = useCssModule();\n const internalInput = ref<string>();\n const isInputFocused = ref(false);\n const selectedOption = ref<Option | undefined>();\n\n // Input value changed\n function handleInput(val?: string | number) {\n internalInput.value = String(val);\n\n emit('update:model-value', {\n value: internalInput.value,\n option: selectedOption.value,\n isValueChange: true,\n type: 'input',\n });\n }\n\n // Input blurred\n function handleInputChange() {\n emit('change', {\n value: internalInput.value,\n option: selectedOption.value,\n isValueChange: true,\n type: 'input',\n });\n }\n\n function handleSelectChange(val?: Option) {\n selectedOption.value = val;\n\n emit('change', {\n value: internalInput.value,\n option: selectedOption.value,\n isValueChange: false,\n type: 'select',\n });\n emit('update:model-value', {\n value: internalInput.value,\n option: selectedOption.value,\n isValueChange: false,\n type: 'select',\n });\n }\n\n watchEffect(() => {\n if (!selectedOption.value) {\n selectedOption.value = props.options[0];\n }\n });\n\n watch(\n () => props.modelValue.value,\n () => {\n internalInput.value = props.modelValue.value;\n },\n { immediate: true },\n );\n\n watch(\n () => props.modelValue.option,\n () => {\n selectedOption.value = props.modelValue.option;\n },\n { immediate: true },\n );\n\n if (attrs.value) {\n throw new Error('ll-input-options: use :model-value or v-model instead of :value.');\n }\n\n if (attrs.onInput) {\n throw new Error('ll-input-options: use the @update:model-value event instead of @input');\n }\n</script>\n\n<template>\n <Field v-bind=\"props\" class=\"stash-input-options\" data-test=\"stash-input-options\">\n <template #default=\"{ fieldId, labelId }\">\n <div v-if=\"props.isReadOnly\" class=\"tw-flex tw-h-input tw-items-center tw-text-sm\">\n <span :id=\"fieldId\" :aria-labelledby=\"labelId\" class=\"tw-h-min\"\n >{{ internalInput || 0 }} {{ selectedOption?.name }}</span\n >\n </div>\n <div v-else class=\"tw-flex\" :class=\"{ [classes['has-error']]: !!props.errorText }\">\n <Input\n :id=\"fieldId\"\n class=\"stash-input-options__input -tw-mr-[1px] tw-inline-block tw-flex-1\"\n :class=\"[classes.input, { 'tw-z-control': isInputFocused }]\"\n data-test=\"stash-input-options|input\"\n :type=\"props.type\"\n :model-value=\"internalInput\"\n :disabled=\"props.isDisabled || props.disabled\"\n :placeholder=\"props.placeholder\"\n @change=\"handleInputChange\"\n @update:model-value=\"handleInput\"\n @blur=\"isInputFocused = false\"\n @focus=\"isInputFocused = true\"\n />\n\n <Select\n single\n hide-search\n prevent-empty\n class=\"stash-input-options__select tw-min-w-20\"\n data-test=\"stash-input-options|select\"\n :class=\"classes.select\"\n :no-truncate=\"noTruncate\"\n :options=\"options\"\n :model-value=\"selectedOption\"\n :display-by=\"props.displayBy\"\n :track-by=\"props.trackBy\"\n :disabled=\"props.isDisabled || props.disabled\"\n @update:model-value=\"handleSelectChange\"\n />\n </div>\n </template>\n <template v-if=\"slots.hint\" #hint>\n <!-- @slot Hint slot for rendering text below the input -->\n <slot name=\"hint\"></slot>\n </template>\n </Field>\n</template>\n\n<style module>\n .input input {\n border-bottom-right-radius: 0;\n border-top-right-radius: 0;\n }\n\n .select :global(.stash-select__content) {\n border-bottom-left-radius: 0;\n border-top-left-radius: 0;\n }\n\n .select:global(.stash-select--active .stash-select__content) {\n min-width: 0;\n }\n\n .has-error input,\n .has-error input:hover:not(:focus),\n .has-error :global(.stash-select__content),\n .has-error :global(.stash-select__content:hover:not(:focus)) {\n border-color: var(--color-red-500);\n }\n</style>\n"],"names":["props","__props","emit","__emit","attrs","useAttrs","slots","useSlots","classes","useCssModule","internalInput","ref","isInputFocused","selectedOption","handleInput","val","handleInputChange","handleSelectChange","watchEffect","watch"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DE,UAAMA,IAAQC,GAURC,IAAOC,GAiBPC,IAAQC,KACRC,IAAQC,KACRC,IAAUC,KACVC,IAAgBC,KAChBC,IAAiBD,EAAI,EAAK,GAC1BE,IAAiBF;AAGvB,aAASG,EAAYC,GAAuB;AAC5B,MAAAL,EAAA,QAAQ,OAAOK,CAAG,GAEhCb,EAAK,sBAAsB;AAAA,QACzB,OAAOQ,EAAc;AAAA,QACrB,QAAQG,EAAe;AAAA,QACvB,eAAe;AAAA,QACf,MAAM;AAAA,MAAA,CACP;AAAA,IACH;AAGA,aAASG,IAAoB;AAC3B,MAAAd,EAAK,UAAU;AAAA,QACb,OAAOQ,EAAc;AAAA,QACrB,QAAQG,EAAe;AAAA,QACvB,eAAe;AAAA,QACf,MAAM;AAAA,MAAA,CACP;AAAA,IACH;AAEA,aAASI,EAAmBF,GAAc;AACxC,MAAAF,EAAe,QAAQE,GAEvBb,EAAK,UAAU;AAAA,QACb,OAAOQ,EAAc;AAAA,QACrB,QAAQG,EAAe;AAAA,QACvB,eAAe;AAAA,QACf,MAAM;AAAA,MAAA,CACP,GACDX,EAAK,sBAAsB;AAAA,QACzB,OAAOQ,EAAc;AAAA,QACrB,QAAQG,EAAe;AAAA,QACvB,eAAe;AAAA,QACf,MAAM;AAAA,MAAA,CACP;AAAA,IACH;AAwBA,QAtBAK,EAAY,MAAM;AACZ,MAACL,EAAe,UACHA,EAAA,QAAQb,EAAM,QAAQ,CAAC;AAAA,IACxC,CACD,GAEDmB;AAAA,MACE,MAAMnB,EAAM,WAAW;AAAA,MACvB,MAAM;AACU,QAAAU,EAAA,QAAQV,EAAM,WAAW;AAAA,MACzC;AAAA,MACA,EAAE,WAAW,GAAK;AAAA,IAAA,GAGpBmB;AAAA,MACE,MAAMnB,EAAM,WAAW;AAAA,MACvB,MAAM;AACW,QAAAa,EAAA,QAAQb,EAAM,WAAW;AAAA,MAC1C;AAAA,MACA,EAAE,WAAW,GAAK;AAAA,IAAA,GAGhBI,EAAM;AACF,YAAA,IAAI,MAAM,kEAAkE;AAGpF,QAAIA,EAAM;AACF,YAAA,IAAI,MAAM,uEAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -41,6 +41,8 @@ noTruncate: boolean;
|
|
|
41
41
|
options: () => never[];
|
|
42
42
|
type: string;
|
|
43
43
|
placeholder: undefined;
|
|
44
|
+
displayBy: undefined;
|
|
45
|
+
trackBy: undefined;
|
|
44
46
|
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
45
47
|
"update:model-value": (v: {
|
|
46
48
|
value?: string | undefined;
|
|
@@ -63,6 +65,8 @@ noTruncate: boolean;
|
|
|
63
65
|
options: () => never[];
|
|
64
66
|
type: string;
|
|
65
67
|
placeholder: undefined;
|
|
68
|
+
displayBy: undefined;
|
|
69
|
+
trackBy: undefined;
|
|
66
70
|
}>>> & Readonly<{
|
|
67
71
|
onChange?: ((v: {
|
|
68
72
|
value?: string | undefined;
|
|
@@ -78,7 +82,9 @@ type: 'input' | 'select';
|
|
|
78
82
|
}) => any) | undefined;
|
|
79
83
|
}>, {
|
|
80
84
|
type: string;
|
|
85
|
+
trackBy: string;
|
|
81
86
|
placeholder: string;
|
|
87
|
+
displayBy: string;
|
|
82
88
|
options: any[];
|
|
83
89
|
modelValue: {
|
|
84
90
|
value: string;
|
|
@@ -169,13 +175,13 @@ export declare interface InputOptionsProps extends FieldProps {
|
|
|
169
175
|
*/
|
|
170
176
|
placeholder?: string;
|
|
171
177
|
/**
|
|
172
|
-
*
|
|
178
|
+
* If `options` are an object, this is what prop to use for display.
|
|
173
179
|
*/
|
|
174
|
-
|
|
180
|
+
displayBy?: string;
|
|
175
181
|
/**
|
|
176
|
-
*
|
|
182
|
+
* Default field to track selected options by.
|
|
177
183
|
*/
|
|
178
|
-
|
|
184
|
+
trackBy?: string;
|
|
179
185
|
}
|
|
180
186
|
|
|
181
187
|
declare type Option_2 = any;
|
package/dist/ListView.vue.d.ts
CHANGED
|
@@ -2016,6 +2016,10 @@ type: PropType<string>;
|
|
|
2016
2016
|
id: {
|
|
2017
2017
|
type: PropType<string>;
|
|
2018
2018
|
};
|
|
2019
|
+
trackBy: {
|
|
2020
|
+
type: PropType<string>;
|
|
2021
|
+
default: undefined;
|
|
2022
|
+
};
|
|
2019
2023
|
isRequired: {
|
|
2020
2024
|
type: PropType<boolean>;
|
|
2021
2025
|
};
|
|
@@ -2044,6 +2048,10 @@ placeholder: {
|
|
|
2044
2048
|
type: PropType<string>;
|
|
2045
2049
|
default: undefined;
|
|
2046
2050
|
};
|
|
2051
|
+
displayBy: {
|
|
2052
|
+
type: PropType<string>;
|
|
2053
|
+
default: undefined;
|
|
2054
|
+
};
|
|
2047
2055
|
options: {
|
|
2048
2056
|
type: PropType<any[]>;
|
|
2049
2057
|
default: () => never[];
|
|
@@ -2055,9 +2063,7 @@ option?: any;
|
|
|
2055
2063
|
}>;
|
|
2056
2064
|
default: () => {
|
|
2057
2065
|
value: string;
|
|
2058
|
-
option: undefined;
|
|
2059
|
-
* Validation schema function that returns an object
|
|
2060
|
-
*/
|
|
2066
|
+
option: undefined;
|
|
2061
2067
|
};
|
|
2062
2068
|
};
|
|
2063
2069
|
noTruncate: {
|
|
@@ -2073,20 +2079,20 @@ type: "input" | "select";
|
|
|
2073
2079
|
}) => any) | undefined;
|
|
2074
2080
|
"onUpdate:model-value"?: ((v: {
|
|
2075
2081
|
value?: string | undefined;
|
|
2076
|
-
option?: any;
|
|
2077
|
-
isValueChange: boolean;
|
|
2078
|
-
type: "input" | "select"; /**
|
|
2082
|
+
option?: any; /**
|
|
2079
2083
|
* Hide the Select All checkbox for bulk actions
|
|
2080
2084
|
*/
|
|
2085
|
+
isValueChange: boolean;
|
|
2086
|
+
type: "input" | "select";
|
|
2081
2087
|
}) => any) | undefined;
|
|
2082
2088
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2083
2089
|
"update:model-value": (v: {
|
|
2084
2090
|
value?: string | undefined;
|
|
2085
|
-
option?: any;
|
|
2086
|
-
isValueChange: boolean;
|
|
2087
|
-
type: "input" | "select"; /**
|
|
2091
|
+
option?: any; /**
|
|
2088
2092
|
* Hide the Select All checkbox for bulk actions
|
|
2089
2093
|
*/
|
|
2094
|
+
isValueChange: boolean;
|
|
2095
|
+
type: "input" | "select";
|
|
2090
2096
|
}) => void;
|
|
2091
2097
|
change: (v: {
|
|
2092
2098
|
value?: string | undefined;
|
|
@@ -2096,7 +2102,9 @@ type: "input" | "select";
|
|
|
2096
2102
|
}) => void;
|
|
2097
2103
|
}, PublicProps, {
|
|
2098
2104
|
type: string;
|
|
2105
|
+
trackBy: string;
|
|
2099
2106
|
placeholder: string;
|
|
2107
|
+
displayBy: string;
|
|
2100
2108
|
options: any[];
|
|
2101
2109
|
modelValue: {
|
|
2102
2110
|
value: string;
|
|
@@ -2127,6 +2135,10 @@ type: PropType<string>;
|
|
|
2127
2135
|
id: {
|
|
2128
2136
|
type: PropType<string>;
|
|
2129
2137
|
};
|
|
2138
|
+
trackBy: {
|
|
2139
|
+
type: PropType<string>;
|
|
2140
|
+
default: undefined;
|
|
2141
|
+
};
|
|
2130
2142
|
isRequired: {
|
|
2131
2143
|
type: PropType<boolean>;
|
|
2132
2144
|
};
|
|
@@ -2155,6 +2167,10 @@ placeholder: {
|
|
|
2155
2167
|
type: PropType<string>;
|
|
2156
2168
|
default: undefined;
|
|
2157
2169
|
};
|
|
2170
|
+
displayBy: {
|
|
2171
|
+
type: PropType<string>;
|
|
2172
|
+
default: undefined;
|
|
2173
|
+
};
|
|
2158
2174
|
options: {
|
|
2159
2175
|
type: PropType<any[]>;
|
|
2160
2176
|
default: () => never[];
|
|
@@ -2166,9 +2182,7 @@ option?: any;
|
|
|
2166
2182
|
}>;
|
|
2167
2183
|
default: () => {
|
|
2168
2184
|
value: string;
|
|
2169
|
-
option: undefined;
|
|
2170
|
-
* Validation schema function that returns an object
|
|
2171
|
-
*/
|
|
2185
|
+
option: undefined;
|
|
2172
2186
|
};
|
|
2173
2187
|
};
|
|
2174
2188
|
noTruncate: {
|
|
@@ -2184,15 +2198,17 @@ type: "input" | "select";
|
|
|
2184
2198
|
}) => any) | undefined;
|
|
2185
2199
|
"onUpdate:model-value"?: ((v: {
|
|
2186
2200
|
value?: string | undefined;
|
|
2187
|
-
option?: any;
|
|
2188
|
-
isValueChange: boolean;
|
|
2189
|
-
type: "input" | "select"; /**
|
|
2201
|
+
option?: any; /**
|
|
2190
2202
|
* Hide the Select All checkbox for bulk actions
|
|
2191
2203
|
*/
|
|
2204
|
+
isValueChange: boolean;
|
|
2205
|
+
type: "input" | "select";
|
|
2192
2206
|
}) => any) | undefined;
|
|
2193
2207
|
}>, {}, {}, {}, {}, {
|
|
2194
2208
|
type: string;
|
|
2209
|
+
trackBy: string;
|
|
2195
2210
|
placeholder: string;
|
|
2211
|
+
displayBy: string;
|
|
2196
2212
|
options: any[];
|
|
2197
2213
|
modelValue: {
|
|
2198
2214
|
value: string;
|
|
@@ -2220,6 +2236,10 @@ type: PropType<string>;
|
|
|
2220
2236
|
id: {
|
|
2221
2237
|
type: PropType<string>;
|
|
2222
2238
|
};
|
|
2239
|
+
trackBy: {
|
|
2240
|
+
type: PropType<string>;
|
|
2241
|
+
default: undefined;
|
|
2242
|
+
};
|
|
2223
2243
|
isRequired: {
|
|
2224
2244
|
type: PropType<boolean>;
|
|
2225
2245
|
};
|
|
@@ -2248,6 +2268,10 @@ placeholder: {
|
|
|
2248
2268
|
type: PropType<string>;
|
|
2249
2269
|
default: undefined;
|
|
2250
2270
|
};
|
|
2271
|
+
displayBy: {
|
|
2272
|
+
type: PropType<string>;
|
|
2273
|
+
default: undefined;
|
|
2274
|
+
};
|
|
2251
2275
|
options: {
|
|
2252
2276
|
type: PropType<any[]>;
|
|
2253
2277
|
default: () => never[];
|
|
@@ -2259,9 +2283,7 @@ option?: any;
|
|
|
2259
2283
|
}>;
|
|
2260
2284
|
default: () => {
|
|
2261
2285
|
value: string;
|
|
2262
|
-
option: undefined;
|
|
2263
|
-
* Validation schema function that returns an object
|
|
2264
|
-
*/
|
|
2286
|
+
option: undefined;
|
|
2265
2287
|
};
|
|
2266
2288
|
};
|
|
2267
2289
|
noTruncate: {
|
|
@@ -2277,20 +2299,20 @@ type: "input" | "select";
|
|
|
2277
2299
|
}) => any) | undefined;
|
|
2278
2300
|
"onUpdate:model-value"?: ((v: {
|
|
2279
2301
|
value?: string | undefined;
|
|
2280
|
-
option?: any;
|
|
2281
|
-
isValueChange: boolean;
|
|
2282
|
-
type: "input" | "select"; /**
|
|
2302
|
+
option?: any; /**
|
|
2283
2303
|
* Hide the Select All checkbox for bulk actions
|
|
2284
2304
|
*/
|
|
2305
|
+
isValueChange: boolean;
|
|
2306
|
+
type: "input" | "select";
|
|
2285
2307
|
}) => any) | undefined;
|
|
2286
2308
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2287
2309
|
"update:model-value": (v: {
|
|
2288
2310
|
value?: string | undefined;
|
|
2289
|
-
option?: any;
|
|
2290
|
-
isValueChange: boolean;
|
|
2291
|
-
type: "input" | "select"; /**
|
|
2311
|
+
option?: any; /**
|
|
2292
2312
|
* Hide the Select All checkbox for bulk actions
|
|
2293
2313
|
*/
|
|
2314
|
+
isValueChange: boolean;
|
|
2315
|
+
type: "input" | "select";
|
|
2294
2316
|
}) => void;
|
|
2295
2317
|
change: (v: {
|
|
2296
2318
|
value?: string | undefined;
|
|
@@ -2300,7 +2322,9 @@ type: "input" | "select";
|
|
|
2300
2322
|
}) => void;
|
|
2301
2323
|
}, string, {
|
|
2302
2324
|
type: string;
|
|
2325
|
+
trackBy: string;
|
|
2303
2326
|
placeholder: string;
|
|
2327
|
+
displayBy: string;
|
|
2304
2328
|
options: any[];
|
|
2305
2329
|
modelValue: {
|
|
2306
2330
|
value: string;
|