@quoreadmin/ui 1.7.8 → 1.7.10
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/index.css +1 -1
- package/dist/index102.js +2 -2
- package/dist/index109.js +1 -1
- package/dist/index113.js +2 -2
- package/dist/index115.js +42 -33
- package/dist/index117.js +3 -3
- package/dist/index129.js +1 -1
- package/dist/index131.js +2 -2
- package/dist/index140.js +3 -3
- package/dist/index142.js +72 -60
- package/dist/index144.js +6 -6
- package/dist/index148.js +44 -30
- package/dist/index152.js +1 -1
- package/dist/{index154.js → index155.js} +1 -1
- package/dist/{index158.js → index159.js} +9 -9
- package/dist/index162.js +111 -492
- package/dist/index163.js +471 -5498
- package/dist/index164.js +5511 -80
- package/dist/index165.js +86 -856
- package/dist/index166.js +844 -21
- package/dist/index167.js +23 -265
- package/dist/index168.js +256 -126
- package/dist/index169.js +146 -1195
- package/dist/index170.js +1139 -712
- package/dist/index171.js +704 -1240
- package/dist/index172.js +1280 -248
- package/dist/index173.js +266 -96
- package/dist/index174.js +106 -2
- package/dist/index175.js +2 -1376
- package/dist/index176.js +1378 -0
- package/dist/index178.js +12 -12
- package/dist/index179.js +10 -10
- package/dist/index180.js +12 -12
- package/dist/index181.js +14 -21
- package/dist/index182.js +23 -757
- package/dist/index183.js +759 -1117
- package/dist/index184.js +1117 -1234
- package/dist/index185.js +1205 -11248
- package/dist/index186.js +11277 -36
- package/dist/index187.js +5938 -44
- package/dist/index188.js +133 -1116
- package/dist/index189.js +37 -0
- package/dist/index190.js +13 -5933
- package/dist/index191.js +76 -205
- package/dist/index192.js +246 -28
- package/dist/index193.js +13680 -14
- package/dist/index194.js +26 -77
- package/dist/index195.js +55 -245
- package/dist/index196.js +209 -13655
- package/dist/index197.js +307 -26
- package/dist/index198.js +268 -43
- package/dist/index199.js +36 -238
- package/dist/index20.js +38 -26
- package/dist/index200.js +43 -307
- package/dist/index201.js +1170 -268
- package/dist/index203.js +29 -403
- package/dist/index204.js +116 -22
- package/dist/index205.js +32 -157
- package/dist/index206.js +26 -228
- package/dist/index207.js +30 -31
- package/dist/index208.js +9 -10
- package/dist/index209.js +17 -31
- package/dist/index210.js +10 -116
- package/dist/index211.js +9 -35
- package/dist/index212.js +51 -26
- package/dist/index213.js +41 -34
- package/dist/index214.js +4 -9
- package/dist/index215.js +38 -18
- package/dist/index216.js +21 -10
- package/dist/index217.js +88 -10
- package/dist/index218.js +404 -48
- package/dist/index219.js +22 -43
- package/dist/index220.js +160 -3
- package/dist/index221.js +19 -38
- package/dist/index222.js +20 -21
- package/dist/index223.js +21 -126
- package/dist/index224.js +183 -22
- package/dist/index225.js +69 -79
- package/dist/index226.js +34 -20
- package/dist/index227.js +39 -19
- package/dist/index228.js +160 -19
- package/dist/index229.js +228 -20
- package/dist/index230.js +36 -19
- package/dist/index231.js +10 -161
- package/dist/index232.js +3632 -20
- package/dist/index233.js +55 -22
- package/dist/index234.js +68 -190
- package/dist/index235.js +48 -66
- package/dist/index236.js +214 -33
- package/dist/index237.js +10 -40
- package/dist/index238.js +57 -22
- package/dist/index239.js +61 -22
- package/dist/index240.js +54 -20
- package/dist/index241.js +62 -823
- package/dist/index242.js +689 -668
- package/dist/index243.js +37 -174
- package/dist/index244.js +64 -22
- package/dist/index245.js +11 -20
- package/dist/index246.js +705 -20
- package/dist/index247.js +820 -3
- package/dist/index248.js +115 -175
- package/dist/index249.js +23 -118
- package/dist/index250.js +72 -1215
- package/dist/index251.js +10 -10
- package/dist/index252.js +13 -15
- package/dist/index253.js +13 -15
- package/dist/index254.js +12 -21
- package/dist/index255.js +15 -13
- package/dist/index256.js +15 -13
- package/dist/index257.js +20 -2
- package/dist/index258.js +836 -2
- package/dist/index259.js +657 -3587
- package/dist/index260.js +174 -53
- package/dist/index261.js +22 -77
- package/dist/index262.js +20 -52
- package/dist/index263.js +20 -215
- package/dist/index264.js +3 -10
- package/dist/index265.js +182 -52
- package/dist/index266.js +128 -56
- package/dist/index267.js +1215 -46
- package/dist/index268.js +20 -75
- package/dist/index269.js +21 -722
- package/dist/index270.js +22 -39
- package/dist/index271.js +29 -64
- package/dist/index272.js +20 -11
- package/dist/index273.js +20 -705
- package/dist/index274.js +2 -820
- package/dist/index275.js +2 -253
- package/dist/index276.js +253 -8
- package/dist/index277.js +8 -138
- package/dist/index278.js +123 -68
- package/dist/index279.js +83 -2
- package/dist/index280.js +46 -71
- package/dist/index281.js +79 -3
- package/dist/index282.js +25 -26
- package/dist/index283.js +21 -53
- package/dist/index284.js +13 -17
- package/dist/index285.js +16 -22
- package/dist/index286.js +17 -22
- package/dist/index287.js +22 -15
- package/dist/index288.js +3 -17
- package/dist/index289.js +27 -23
- package/dist/index291.js +1 -1
- package/dist/index292.js +1 -1
- package/dist/index294.js +1 -1
- package/dist/index295.js +2 -2
- package/dist/index297.js +1 -1
- package/dist/index298.js +1 -1
- package/dist/index299.js +2 -2
- package/dist/index300.js +2 -79
- package/dist/index301.js +78 -21
- package/dist/index302.js +22 -935
- package/dist/index303.js +935 -22
- package/dist/index304.js +15 -13
- package/dist/index305.js +5 -5
- package/dist/index306.js +19 -68
- package/dist/index307.js +68 -18
- package/dist/index308.js +14 -14
- package/dist/index309.js +19 -22
- package/dist/index31.js +46 -36
- package/dist/index310.js +14 -14
- package/dist/index311.js +21 -62
- package/dist/index312.js +63 -235
- package/dist/index313.js +233 -4
- package/dist/index314.js +5 -133
- package/dist/index315.js +129 -63
- package/dist/index316.js +67 -86
- package/dist/index317.js +85 -27
- package/dist/index318.js +28 -8
- package/dist/index319.js +8 -74
- package/dist/index320.js +74 -3
- package/dist/index321.js +4 -2
- package/dist/index322.js +2 -83
- package/dist/index323.js +81 -52
- package/dist/index324.js +53 -5
- package/dist/index325.js +5 -4
- package/dist/index326.js +4 -178
- package/dist/index327.js +174 -58
- package/dist/index328.js +61 -73
- package/dist/index329.js +74 -36
- package/dist/index330.js +36 -8
- package/dist/index331.js +8 -12
- package/dist/index332.js +12 -54
- package/dist/index333.js +52 -9
- package/dist/index334.js +11 -13
- package/dist/index335.js +9 -53
- package/dist/index336.js +55 -49
- package/dist/index337.js +49 -28
- package/dist/index338.js +31 -2
- package/dist/index339.js +2 -5
- package/dist/index340.js +5 -2
- package/dist/index341.js +2 -23
- package/dist/index342.js +21 -39
- package/dist/index343.js +41 -2
- package/dist/index344.js +2 -11
- package/dist/index345.js +11 -20
- package/dist/index346.js +18 -15
- package/dist/index347.js +16 -9
- package/dist/index348.js +9 -9
- package/dist/index349.js +10 -2
- package/dist/index350.js +2 -9
- package/dist/index351.js +9 -10
- package/dist/index352.js +10 -14
- package/dist/index353.js +14 -20
- package/dist/index354.js +9 -9
- package/dist/index355.js +19 -63
- package/dist/index356.js +61 -34
- package/dist/index357.js +36 -20
- package/dist/index358.js +19 -54
- package/dist/index359.js +55 -28
- package/dist/index360.js +27 -5
- package/dist/index361.js +6 -51
- package/dist/index362.js +51 -5
- package/dist/index363.js +6 -12
- package/dist/index364.js +12 -7
- package/dist/index365.js +6 -27
- package/dist/index366.js +28 -2
- package/dist/index367.js +2 -70
- package/dist/index368.js +67 -164
- package/dist/index369.js +165 -99
- package/dist/index370.js +100 -90
- package/dist/index371.js +91 -98
- package/dist/index372.js +97 -16
- package/dist/index373.js +17 -31
- package/dist/index374.js +30 -10
- package/dist/index375.js +10 -3
- package/dist/index376.js +3 -3
- package/dist/index377.js +4 -13
- package/dist/index378.js +13 -7
- package/dist/index379.js +7 -12
- package/dist/index380.js +11 -4
- package/dist/index381.js +5 -33
- package/dist/index382.js +33 -31
- package/dist/index383.js +29 -26
- package/dist/index384.js +26 -59
- package/dist/index385.js +61 -3
- package/dist/index386.js +3 -2
- package/dist/index387.js +2 -2
- package/dist/index388.js +2 -17
- package/dist/index389.js +15 -11
- package/dist/index390.js +13 -6
- package/dist/index391.js +6 -32
- package/dist/index392.js +34 -0
- package/dist/index43.js +206 -201
- package/dist/index44.js +84 -69
- package/dist/index47.js +26 -20
- package/dist/index49.js +11 -10
- package/dist/index50.js +1 -1
- package/dist/index51.js +1 -1
- package/dist/index52.js +1 -1
- package/dist/index54.js +2 -2
- package/dist/index56.js +1 -1
- package/dist/index58.js +5 -5
- package/dist/index59.js +1 -1
- package/dist/index71.js +2 -2
- package/dist/index75.js +1 -1
- package/dist/index80.js +1 -1
- package/dist/index85.js +1 -1
- package/dist/index87.js +3 -3
- package/dist/index89.js +2 -2
- package/dist/index95.js +25 -18
- package/dist/src/components/data-filter/data-filter.d.ts +33 -0
- package/dist/src/components/data-list/data-list.d.ts +33 -0
- package/dist/src/components/date-picker/date-picker.d.ts +11 -0
- package/dist/src/components/date-picker/date-picker.stories.d.ts +1376 -0
- package/dist/src/components/form-group/form-group.stories.d.ts +33 -0
- package/dist/src/components/grid/grid.stories.d.ts +61 -0
- package/dist/src/components/input/input.d.ts +33 -0
- package/dist/src/components/input/input.stories.d.ts +615 -0
- package/dist/src/components/list/list.stories.d.ts +14 -0
- package/dist/src/components/modal/modal.stories.d.ts +14 -0
- package/dist/src/components/room-details-popover/room-details-popover.d.ts +31 -0
- package/dist/src/components/select/select.d.ts +14 -0
- package/dist/src/components/select/select.stories.d.ts +44 -0
- package/dist/src/components/textarea/textarea.d.ts +20 -0
- package/dist/src/components/textarea/textarea.stories.d.ts +22 -0
- package/dist/src/views/lists.vue.d.ts +66 -0
- package/dist/src/views/tables.vue.d.ts +33 -0
- package/package.json +1 -1
- package/dist/index161.js +0 -116
- package/dist/index177.js +0 -20
- package/dist/index202.js +0 -90
- /package/dist/{index156.js → index157.js} +0 -0
package/dist/index188.js
CHANGED
|
@@ -1,1192 +1,209 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return (...t) => !e(...t);
|
|
7
|
-
}
|
|
8
|
-
function A(e, t) {
|
|
9
|
-
return e === void 0 && (e = "undefined"), e === null && (e = "null"), e === !1 && (e = "false"), e.toString().toLowerCase().indexOf(t.trim()) !== -1;
|
|
10
|
-
}
|
|
11
|
-
function M(e) {
|
|
12
|
-
return e.filter((t) => !t.$isLabel);
|
|
13
|
-
}
|
|
14
|
-
function w(e, t) {
|
|
15
|
-
return (i) => i.reduce((l, a) => a[e] && a[e].length ? (l.push({
|
|
16
|
-
$groupLabel: a[t],
|
|
17
|
-
$isLabel: !0
|
|
18
|
-
}), l.concat(a[e])) : l, []);
|
|
19
|
-
}
|
|
20
|
-
const E = (...e) => (t) => e.reduce((i, l) => l(i), t);
|
|
21
|
-
var P = {
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
search: "",
|
|
25
|
-
isOpen: !1,
|
|
26
|
-
preferredOpenDirection: "below",
|
|
27
|
-
optimizedHeight: this.maxHeight
|
|
28
|
-
};
|
|
29
|
-
},
|
|
1
|
+
import l from "./index218.js";
|
|
2
|
+
import n from "./index274.js";
|
|
3
|
+
var u = {
|
|
4
|
+
name: "BaseColumn",
|
|
5
|
+
extends: l,
|
|
30
6
|
props: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
* @type {Boolean}
|
|
35
|
-
*/
|
|
36
|
-
internalSearch: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: !0
|
|
39
|
-
},
|
|
40
|
-
/**
|
|
41
|
-
* Array of available options: Objects, Strings or Integers.
|
|
42
|
-
* If array of objects, visible label will default to option.label.
|
|
43
|
-
* If `labal` prop is passed, label will equal option['label']
|
|
44
|
-
* @type {Array}
|
|
45
|
-
*/
|
|
46
|
-
options: {
|
|
47
|
-
type: Array,
|
|
48
|
-
required: !0
|
|
49
|
-
},
|
|
50
|
-
/**
|
|
51
|
-
* Equivalent to the `multiple` attribute on a `<select>` input.
|
|
52
|
-
* @default false
|
|
53
|
-
* @type {Boolean}
|
|
54
|
-
*/
|
|
55
|
-
multiple: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: !1
|
|
58
|
-
},
|
|
59
|
-
/**
|
|
60
|
-
* Key to compare objects
|
|
61
|
-
* @default 'id'
|
|
62
|
-
* @type {String}
|
|
63
|
-
*/
|
|
64
|
-
trackBy: {
|
|
65
|
-
type: String
|
|
66
|
-
},
|
|
67
|
-
/**
|
|
68
|
-
* Label to look for in option Object
|
|
69
|
-
* @default 'label'
|
|
70
|
-
* @type {String}
|
|
71
|
-
*/
|
|
72
|
-
label: {
|
|
73
|
-
type: String
|
|
7
|
+
columnKey: {
|
|
8
|
+
type: null,
|
|
9
|
+
default: null
|
|
74
10
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
* @type {Boolean}
|
|
79
|
-
*/
|
|
80
|
-
searchable: {
|
|
81
|
-
type: Boolean,
|
|
82
|
-
default: !0
|
|
11
|
+
field: {
|
|
12
|
+
type: [String, Function],
|
|
13
|
+
default: null
|
|
83
14
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
* @type {Boolean}
|
|
88
|
-
*/
|
|
89
|
-
clearOnSelect: {
|
|
90
|
-
type: Boolean,
|
|
91
|
-
default: !0
|
|
15
|
+
sortField: {
|
|
16
|
+
type: [String, Function],
|
|
17
|
+
default: null
|
|
92
18
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
* @type {Boolean}
|
|
97
|
-
*/
|
|
98
|
-
hideSelected: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: !1
|
|
19
|
+
filterField: {
|
|
20
|
+
type: [String, Function],
|
|
21
|
+
default: null
|
|
101
22
|
},
|
|
102
|
-
|
|
103
|
-
* Equivalent to the `placeholder` attribute on a `<select>` input.
|
|
104
|
-
* @default 'Select option'
|
|
105
|
-
* @type {String}
|
|
106
|
-
*/
|
|
107
|
-
placeholder: {
|
|
23
|
+
dataType: {
|
|
108
24
|
type: String,
|
|
109
|
-
default: "
|
|
110
|
-
},
|
|
111
|
-
/**
|
|
112
|
-
* Allow to remove all selected values
|
|
113
|
-
* @default true
|
|
114
|
-
* @type {Boolean}
|
|
115
|
-
*/
|
|
116
|
-
allowEmpty: {
|
|
117
|
-
type: Boolean,
|
|
118
|
-
default: !0
|
|
25
|
+
default: "text"
|
|
119
26
|
},
|
|
120
|
-
|
|
121
|
-
* Reset this.internalValue, this.search after this.internalValue changes.
|
|
122
|
-
* Useful if want to create a stateless dropdown.
|
|
123
|
-
* @default false
|
|
124
|
-
* @type {Boolean}
|
|
125
|
-
*/
|
|
126
|
-
resetAfter: {
|
|
27
|
+
sortable: {
|
|
127
28
|
type: Boolean,
|
|
128
29
|
default: !1
|
|
129
30
|
},
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
* @type {Boolean}
|
|
134
|
-
*/
|
|
135
|
-
closeOnSelect: {
|
|
136
|
-
type: Boolean,
|
|
137
|
-
default: !0
|
|
31
|
+
header: {
|
|
32
|
+
type: null,
|
|
33
|
+
default: null
|
|
138
34
|
},
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
* @type {Function}
|
|
143
|
-
*/
|
|
144
|
-
customLabel: {
|
|
145
|
-
type: Function,
|
|
146
|
-
default(e, t) {
|
|
147
|
-
return S(e) ? "" : t ? e[t] : e;
|
|
148
|
-
}
|
|
35
|
+
footer: {
|
|
36
|
+
type: null,
|
|
37
|
+
default: null
|
|
149
38
|
},
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
* @type {Boolean}
|
|
154
|
-
*/
|
|
155
|
-
taggable: {
|
|
156
|
-
type: Boolean,
|
|
157
|
-
default: !1
|
|
39
|
+
style: {
|
|
40
|
+
type: null,
|
|
41
|
+
default: null
|
|
158
42
|
},
|
|
159
|
-
|
|
160
|
-
* String to show when highlighting a potential tag
|
|
161
|
-
* @default 'Press enter to create a tag'
|
|
162
|
-
* @type {String}
|
|
163
|
-
*/
|
|
164
|
-
tagPlaceholder: {
|
|
43
|
+
class: {
|
|
165
44
|
type: String,
|
|
166
|
-
default:
|
|
45
|
+
default: null
|
|
167
46
|
},
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
* and will proritize the search results
|
|
172
|
-
* @default 'top'
|
|
173
|
-
* @type {String}
|
|
174
|
-
*/
|
|
175
|
-
tagPosition: {
|
|
176
|
-
type: String,
|
|
177
|
-
default: "top"
|
|
47
|
+
headerStyle: {
|
|
48
|
+
type: null,
|
|
49
|
+
default: null
|
|
178
50
|
},
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
* @type {Number}
|
|
183
|
-
*/
|
|
184
|
-
max: {
|
|
185
|
-
type: [Number, Boolean],
|
|
186
|
-
default: !1
|
|
51
|
+
headerClass: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: null
|
|
187
54
|
},
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
* Useful for identifying events origin.
|
|
191
|
-
* @default null
|
|
192
|
-
* @type {String|Integer}
|
|
193
|
-
*/
|
|
194
|
-
id: {
|
|
55
|
+
bodyStyle: {
|
|
56
|
+
type: null,
|
|
195
57
|
default: null
|
|
196
58
|
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
* @default 1000
|
|
201
|
-
* @type {Integer}
|
|
202
|
-
*/
|
|
203
|
-
optionsLimit: {
|
|
204
|
-
type: Number,
|
|
205
|
-
default: 1e3
|
|
59
|
+
bodyClass: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: null
|
|
206
62
|
},
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
* @default 1000
|
|
211
|
-
* @type {String}
|
|
212
|
-
*/
|
|
213
|
-
groupValues: {
|
|
214
|
-
type: String
|
|
63
|
+
footerStyle: {
|
|
64
|
+
type: null,
|
|
65
|
+
default: null
|
|
215
66
|
},
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
* @default 1000
|
|
220
|
-
* @type {String}
|
|
221
|
-
*/
|
|
222
|
-
groupLabel: {
|
|
223
|
-
type: String
|
|
67
|
+
footerClass: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: null
|
|
224
70
|
},
|
|
225
|
-
|
|
226
|
-
* Allow to select all group values
|
|
227
|
-
* by selecting the group label
|
|
228
|
-
* @default false
|
|
229
|
-
* @type {Boolean}
|
|
230
|
-
*/
|
|
231
|
-
groupSelect: {
|
|
71
|
+
showFilterMenu: {
|
|
232
72
|
type: Boolean,
|
|
233
|
-
default: !
|
|
234
|
-
},
|
|
235
|
-
/**
|
|
236
|
-
* Array of keyboard keys to block
|
|
237
|
-
* when selecting
|
|
238
|
-
* @default 1000
|
|
239
|
-
* @type {String}
|
|
240
|
-
*/
|
|
241
|
-
blockKeys: {
|
|
242
|
-
type: Array,
|
|
243
|
-
default() {
|
|
244
|
-
return [];
|
|
245
|
-
}
|
|
73
|
+
default: !0
|
|
246
74
|
},
|
|
247
|
-
|
|
248
|
-
* Prevent from wiping up the search value
|
|
249
|
-
* @default false
|
|
250
|
-
* @type {Boolean}
|
|
251
|
-
*/
|
|
252
|
-
preserveSearch: {
|
|
75
|
+
showFilterOperator: {
|
|
253
76
|
type: Boolean,
|
|
254
|
-
default: !
|
|
77
|
+
default: !0
|
|
255
78
|
},
|
|
256
|
-
|
|
257
|
-
* Select 1st options if value is empty
|
|
258
|
-
* @default false
|
|
259
|
-
* @type {Boolean}
|
|
260
|
-
*/
|
|
261
|
-
preselectFirst: {
|
|
79
|
+
showClearButton: {
|
|
262
80
|
type: Boolean,
|
|
263
|
-
default: !
|
|
81
|
+
default: !0
|
|
264
82
|
},
|
|
265
|
-
|
|
266
|
-
* Prevent autofocus
|
|
267
|
-
* @default false
|
|
268
|
-
* @type {Boolean}
|
|
269
|
-
*/
|
|
270
|
-
preventAutofocus: {
|
|
83
|
+
showApplyButton: {
|
|
271
84
|
type: Boolean,
|
|
272
|
-
default: !
|
|
273
|
-
},
|
|
274
|
-
/**
|
|
275
|
-
* Allows a custom function for sorting search/filtered results.
|
|
276
|
-
* @default null
|
|
277
|
-
* @type {Function}
|
|
278
|
-
*/
|
|
279
|
-
filteringSortFunc: {
|
|
280
|
-
type: Function,
|
|
281
|
-
default: null
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
mounted() {
|
|
285
|
-
!this.multiple && this.max && console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."), this.preselectFirst && !this.internalValue.length && this.options.length && this.select(this.filteredOptions[0]);
|
|
286
|
-
},
|
|
287
|
-
computed: {
|
|
288
|
-
internalValue() {
|
|
289
|
-
return this.modelValue || this.modelValue === 0 ? Array.isArray(this.modelValue) ? this.modelValue : [this.modelValue] : [];
|
|
290
|
-
},
|
|
291
|
-
filteredOptions() {
|
|
292
|
-
const e = this.search || "", t = e.toLowerCase().trim();
|
|
293
|
-
let i = this.options.concat();
|
|
294
|
-
return this.internalSearch ? i = this.groupValues ? this.filterAndFlat(i, t, this.label) : this.filterOptions(i, t, this.label, this.customLabel) : i = this.groupValues ? w(this.groupValues, this.groupLabel)(i) : i, i = this.hideSelected ? i.filter(T(this.isSelected)) : i, this.taggable && t.length && !this.isExistingOption(t) && (this.tagPosition === "bottom" ? i.push({ isTag: !0, label: e }) : i.unshift({ isTag: !0, label: e })), i.slice(0, this.optionsLimit);
|
|
295
|
-
},
|
|
296
|
-
valueKeys() {
|
|
297
|
-
return this.trackBy ? this.internalValue.map((e) => e[this.trackBy]) : this.internalValue;
|
|
298
|
-
},
|
|
299
|
-
optionKeys() {
|
|
300
|
-
return (this.groupValues ? this.flatAndStrip(this.options) : this.options).map((t) => this.customLabel(t, this.label).toString().toLowerCase());
|
|
301
|
-
},
|
|
302
|
-
currentOptionLabel() {
|
|
303
|
-
return this.multiple ? this.searchable ? "" : this.placeholder : this.internalValue.length ? this.getOptionLabel(this.internalValue[0]) : this.searchable ? "" : this.placeholder;
|
|
304
|
-
}
|
|
305
|
-
},
|
|
306
|
-
watch: {
|
|
307
|
-
internalValue: {
|
|
308
|
-
handler() {
|
|
309
|
-
this.resetAfter && this.internalValue.length && (this.search = "", this.$emit("update:modelValue", this.multiple ? [] : null));
|
|
310
|
-
},
|
|
311
|
-
deep: !0
|
|
312
|
-
},
|
|
313
|
-
search() {
|
|
314
|
-
this.$emit("search-change", this.search);
|
|
315
|
-
}
|
|
316
|
-
},
|
|
317
|
-
emits: ["open", "search-change", "close", "select", "update:modelValue", "remove", "tag"],
|
|
318
|
-
methods: {
|
|
319
|
-
/**
|
|
320
|
-
* Returns the internalValue in a way it can be emited to the parent
|
|
321
|
-
* @returns {Object||Array||String||Integer}
|
|
322
|
-
*/
|
|
323
|
-
getValue() {
|
|
324
|
-
return this.multiple ? this.internalValue : this.internalValue.length === 0 ? null : this.internalValue[0];
|
|
325
|
-
},
|
|
326
|
-
/**
|
|
327
|
-
* Filters and then flattens the options list
|
|
328
|
-
* @param {Array}
|
|
329
|
-
* @return {Array} returns a filtered and flat options list
|
|
330
|
-
*/
|
|
331
|
-
filterAndFlat(e, t, i) {
|
|
332
|
-
return E(
|
|
333
|
-
this.filterGroups(t, i, this.groupValues, this.groupLabel, this.customLabel),
|
|
334
|
-
w(this.groupValues, this.groupLabel)
|
|
335
|
-
)(e);
|
|
336
|
-
},
|
|
337
|
-
/**
|
|
338
|
-
* Flattens and then strips the group labels from the options list
|
|
339
|
-
* @param {Array}
|
|
340
|
-
* @return {Array} returns a flat options list without group labels
|
|
341
|
-
*/
|
|
342
|
-
flatAndStrip(e) {
|
|
343
|
-
return E(
|
|
344
|
-
w(this.groupValues, this.groupLabel),
|
|
345
|
-
M
|
|
346
|
-
)(e);
|
|
347
|
-
},
|
|
348
|
-
/**
|
|
349
|
-
* Updates the search value
|
|
350
|
-
* @param {String}
|
|
351
|
-
*/
|
|
352
|
-
updateSearch(e) {
|
|
353
|
-
this.search = e;
|
|
354
|
-
},
|
|
355
|
-
/**
|
|
356
|
-
* Finds out if the given query is already present
|
|
357
|
-
* in the available options
|
|
358
|
-
* @param {String}
|
|
359
|
-
* @return {Boolean} returns true if element is available
|
|
360
|
-
*/
|
|
361
|
-
isExistingOption(e) {
|
|
362
|
-
return this.options ? this.optionKeys.indexOf(e) > -1 : !1;
|
|
363
|
-
},
|
|
364
|
-
/**
|
|
365
|
-
* Finds out if the given element is already present
|
|
366
|
-
* in the result value
|
|
367
|
-
* @param {Object||String||Integer} option passed element to check
|
|
368
|
-
* @returns {Boolean} returns true if element is selected
|
|
369
|
-
*/
|
|
370
|
-
isSelected(e) {
|
|
371
|
-
const t = this.trackBy ? e[this.trackBy] : e;
|
|
372
|
-
return this.valueKeys.indexOf(t) > -1;
|
|
373
|
-
},
|
|
374
|
-
/**
|
|
375
|
-
* Finds out if the given option is disabled
|
|
376
|
-
* @param {Object||String||Integer} option passed element to check
|
|
377
|
-
* @returns {Boolean} returns true if element is disabled
|
|
378
|
-
*/
|
|
379
|
-
isOptionDisabled(e) {
|
|
380
|
-
return !!e.$isDisabled;
|
|
381
|
-
},
|
|
382
|
-
/**
|
|
383
|
-
* Returns empty string when options is null/undefined
|
|
384
|
-
* Returns tag query if option is tag.
|
|
385
|
-
* Returns the customLabel() results and casts it to string.
|
|
386
|
-
*
|
|
387
|
-
* @param {Object||String||Integer} Passed option
|
|
388
|
-
* @returns {Object||String}
|
|
389
|
-
*/
|
|
390
|
-
getOptionLabel(e) {
|
|
391
|
-
if (S(e)) return "";
|
|
392
|
-
if (e.isTag) return e.label;
|
|
393
|
-
if (e.$isLabel) return e.$groupLabel;
|
|
394
|
-
const t = this.customLabel(e, this.label);
|
|
395
|
-
return S(t) ? "" : t;
|
|
396
|
-
},
|
|
397
|
-
/**
|
|
398
|
-
* Add the given option to the list of selected options
|
|
399
|
-
* or sets the option as the selected option.
|
|
400
|
-
* If option is already selected -> remove it from the results.
|
|
401
|
-
*
|
|
402
|
-
* @param {Object||String||Integer} option to select/deselect
|
|
403
|
-
* @param {Boolean} block removing
|
|
404
|
-
*/
|
|
405
|
-
select(e, t) {
|
|
406
|
-
if (e.$isLabel && this.groupSelect) {
|
|
407
|
-
this.selectGroup(e);
|
|
408
|
-
return;
|
|
409
|
-
}
|
|
410
|
-
if (!(this.blockKeys.indexOf(t) !== -1 || this.disabled || e.$isDisabled || e.$isLabel) && !(this.max && this.multiple && this.internalValue.length === this.max) && !(t === "Tab" && !this.pointerDirty)) {
|
|
411
|
-
if (e.isTag)
|
|
412
|
-
this.$emit("tag", e.label, this.id), this.search = "", this.closeOnSelect && !this.multiple && this.deactivate();
|
|
413
|
-
else {
|
|
414
|
-
if (this.isSelected(e)) {
|
|
415
|
-
t !== "Tab" && this.removeElement(e);
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
this.multiple ? this.$emit("update:modelValue", this.internalValue.concat([e])) : this.$emit("update:modelValue", e), this.$emit("select", e, this.id), this.clearOnSelect && (this.search = "");
|
|
419
|
-
}
|
|
420
|
-
this.closeOnSelect && this.deactivate();
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
/**
|
|
424
|
-
* Add the given group options to the list of selected options
|
|
425
|
-
* If all group optiona are already selected -> remove it from the results.
|
|
426
|
-
*
|
|
427
|
-
* @param {Object||String||Integer} group to select/deselect
|
|
428
|
-
*/
|
|
429
|
-
selectGroup(e) {
|
|
430
|
-
const t = this.options.find((i) => i[this.groupLabel] === e.$groupLabel);
|
|
431
|
-
if (t) {
|
|
432
|
-
if (this.wholeGroupSelected(t)) {
|
|
433
|
-
this.$emit("remove", t[this.groupValues], this.id);
|
|
434
|
-
const i = this.trackBy ? t[this.groupValues].map((a) => a[this.trackBy]) : t[this.groupValues], l = this.internalValue.filter(
|
|
435
|
-
(a) => i.indexOf(this.trackBy ? a[this.trackBy] : a) === -1
|
|
436
|
-
);
|
|
437
|
-
this.$emit("update:modelValue", l);
|
|
438
|
-
} else {
|
|
439
|
-
const i = t[this.groupValues].filter(
|
|
440
|
-
(l) => !(this.isOptionDisabled(l) || this.isSelected(l))
|
|
441
|
-
);
|
|
442
|
-
this.max && i.splice(this.max - this.internalValue.length), this.$emit("select", i, this.id), this.$emit(
|
|
443
|
-
"update:modelValue",
|
|
444
|
-
this.internalValue.concat(i)
|
|
445
|
-
);
|
|
446
|
-
}
|
|
447
|
-
this.closeOnSelect && this.deactivate();
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
/**
|
|
451
|
-
* Helper to identify if all values in a group are selected
|
|
452
|
-
*
|
|
453
|
-
* @param {Object} group to validated selected values against
|
|
454
|
-
*/
|
|
455
|
-
wholeGroupSelected(e) {
|
|
456
|
-
return e[this.groupValues].every(
|
|
457
|
-
(t) => this.isSelected(t) || this.isOptionDisabled(t)
|
|
458
|
-
);
|
|
459
|
-
},
|
|
460
|
-
/**
|
|
461
|
-
* Helper to identify if all values in a group are disabled
|
|
462
|
-
*
|
|
463
|
-
* @param {Object} group to check for disabled values
|
|
464
|
-
*/
|
|
465
|
-
wholeGroupDisabled(e) {
|
|
466
|
-
return e[this.groupValues].every(this.isOptionDisabled);
|
|
467
|
-
},
|
|
468
|
-
/**
|
|
469
|
-
* Removes the given option from the selected options.
|
|
470
|
-
* Additionally checks this.allowEmpty prop if option can be removed when
|
|
471
|
-
* it is the last selected option.
|
|
472
|
-
*
|
|
473
|
-
* @param {type} option description
|
|
474
|
-
* @return {type} description
|
|
475
|
-
*/
|
|
476
|
-
removeElement(e, t = !0) {
|
|
477
|
-
if (this.disabled || e.$isDisabled) return;
|
|
478
|
-
if (!this.allowEmpty && this.internalValue.length <= 1) {
|
|
479
|
-
this.deactivate();
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
const i = typeof e == "object" ? this.valueKeys.indexOf(e[this.trackBy]) : this.valueKeys.indexOf(e);
|
|
483
|
-
if (this.multiple) {
|
|
484
|
-
const l = this.internalValue.slice(0, i).concat(this.internalValue.slice(i + 1));
|
|
485
|
-
this.$emit("update:modelValue", l);
|
|
486
|
-
} else
|
|
487
|
-
this.$emit("update:modelValue", null);
|
|
488
|
-
this.$emit("remove", e, this.id), this.closeOnSelect && t && this.deactivate();
|
|
489
|
-
},
|
|
490
|
-
/**
|
|
491
|
-
* Calls this.removeElement() with the last element
|
|
492
|
-
* from this.internalValue (selected element Array)
|
|
493
|
-
*
|
|
494
|
-
* @fires this#removeElement
|
|
495
|
-
*/
|
|
496
|
-
removeLastElement() {
|
|
497
|
-
this.blockKeys.indexOf("Delete") === -1 && this.search.length === 0 && Array.isArray(this.internalValue) && this.internalValue.length && this.removeElement(this.internalValue[this.internalValue.length - 1], !1);
|
|
498
|
-
},
|
|
499
|
-
/**
|
|
500
|
-
* Opens the multiselect’s dropdown.
|
|
501
|
-
* Sets this.isOpen to TRUE
|
|
502
|
-
*/
|
|
503
|
-
activate() {
|
|
504
|
-
this.isOpen || this.disabled || (this.adjustPosition(), this.groupValues && this.pointer === 0 && this.filteredOptions.length && (this.pointer = 1), this.isOpen = !0, this.searchable ? (this.preserveSearch || (this.search = ""), this.preventAutofocus || this.$nextTick(() => this.$refs.search && this.$refs.search.focus())) : this.preventAutofocus || typeof this.$el < "u" && this.$el.focus(), this.$emit("open", this.id));
|
|
505
|
-
},
|
|
506
|
-
/**
|
|
507
|
-
* Closes the multiselect’s dropdown.
|
|
508
|
-
* Sets this.isOpen to FALSE
|
|
509
|
-
*/
|
|
510
|
-
deactivate() {
|
|
511
|
-
this.isOpen && (this.isOpen = !1, this.searchable ? this.$refs.search !== null && typeof this.$refs.search < "u" && this.$refs.search.blur() : typeof this.$el < "u" && this.$el.blur(), this.preserveSearch || (this.search = ""), this.$emit("close", this.getValue(), this.id));
|
|
512
|
-
},
|
|
513
|
-
/**
|
|
514
|
-
* Call this.activate() or this.deactivate()
|
|
515
|
-
* depending on this.isOpen value.
|
|
516
|
-
*
|
|
517
|
-
* @fires this#activate || this#deactivate
|
|
518
|
-
* @property {Boolean} isOpen indicates if dropdown is open
|
|
519
|
-
*/
|
|
520
|
-
toggle() {
|
|
521
|
-
this.isOpen ? this.deactivate() : this.activate();
|
|
522
|
-
},
|
|
523
|
-
/**
|
|
524
|
-
* Updates the hasEnoughSpace variable used for
|
|
525
|
-
* detecting where to expand the dropdown
|
|
526
|
-
*/
|
|
527
|
-
adjustPosition() {
|
|
528
|
-
if (typeof window > "u") return;
|
|
529
|
-
const e = this.$el.getBoundingClientRect().top, t = window.innerHeight - this.$el.getBoundingClientRect().bottom;
|
|
530
|
-
t > this.maxHeight || t > e || this.openDirection === "below" || this.openDirection === "bottom" ? (this.preferredOpenDirection = "below", this.optimizedHeight = Math.min(t - 40, this.maxHeight)) : (this.preferredOpenDirection = "above", this.optimizedHeight = Math.min(e - 40, this.maxHeight));
|
|
531
|
-
},
|
|
532
|
-
/**
|
|
533
|
-
* Filters and sorts the options ready for selection
|
|
534
|
-
* @param {Array} options
|
|
535
|
-
* @param {String} search
|
|
536
|
-
* @param {String} label
|
|
537
|
-
* @param {Function} customLabel
|
|
538
|
-
* @returns {Array}
|
|
539
|
-
*/
|
|
540
|
-
filterOptions(e, t, i, l) {
|
|
541
|
-
return t ? e.filter((a) => A(l(a, i), t)).sort((a, n) => typeof this.filteringSortFunc == "function" ? this.filteringSortFunc(a, n) : l(a, i).length - l(n, i).length) : e;
|
|
85
|
+
default: !0
|
|
542
86
|
},
|
|
543
|
-
|
|
544
|
-
*
|
|
545
|
-
* @param {String} search
|
|
546
|
-
* @param {String} label
|
|
547
|
-
* @param {String} values
|
|
548
|
-
* @param {String} groupLabel
|
|
549
|
-
* @param {function} customLabel
|
|
550
|
-
* @returns {function(*): *}
|
|
551
|
-
*/
|
|
552
|
-
filterGroups(e, t, i, l, a) {
|
|
553
|
-
return (n) => n.map((s) => {
|
|
554
|
-
if (!s[i])
|
|
555
|
-
return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."), [];
|
|
556
|
-
const h = this.filterOptions(s[i], e, t, a);
|
|
557
|
-
return h.length ? {
|
|
558
|
-
[l]: s[l],
|
|
559
|
-
[i]: h
|
|
560
|
-
} : [];
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
}, F = {
|
|
565
|
-
data() {
|
|
566
|
-
return {
|
|
567
|
-
pointer: 0,
|
|
568
|
-
pointerDirty: !1
|
|
569
|
-
};
|
|
570
|
-
},
|
|
571
|
-
props: {
|
|
572
|
-
/**
|
|
573
|
-
* Enable/disable highlighting of the pointed value.
|
|
574
|
-
* @type {Boolean}
|
|
575
|
-
* @default true
|
|
576
|
-
*/
|
|
577
|
-
showPointer: {
|
|
87
|
+
showFilterMatchModes: {
|
|
578
88
|
type: Boolean,
|
|
579
89
|
default: !0
|
|
580
90
|
},
|
|
581
|
-
|
|
582
|
-
type:
|
|
583
|
-
default:
|
|
584
|
-
}
|
|
585
|
-
},
|
|
586
|
-
computed: {
|
|
587
|
-
pointerPosition() {
|
|
588
|
-
return this.pointer * this.optionHeight;
|
|
589
|
-
},
|
|
590
|
-
visibleElements() {
|
|
591
|
-
return this.optimizedHeight / this.optionHeight;
|
|
592
|
-
}
|
|
593
|
-
},
|
|
594
|
-
watch: {
|
|
595
|
-
filteredOptions() {
|
|
596
|
-
this.pointerAdjust();
|
|
597
|
-
},
|
|
598
|
-
isOpen() {
|
|
599
|
-
this.pointerDirty = !1;
|
|
600
|
-
},
|
|
601
|
-
pointer() {
|
|
602
|
-
this.$refs.search && this.$refs.search.setAttribute("aria-activedescendant", this.id + "-" + this.pointer.toString());
|
|
603
|
-
}
|
|
604
|
-
},
|
|
605
|
-
methods: {
|
|
606
|
-
optionHighlight(e, t) {
|
|
607
|
-
return {
|
|
608
|
-
"multiselect__option--highlight": e === this.pointer && this.showPointer,
|
|
609
|
-
"multiselect__option--selected": this.isSelected(t)
|
|
610
|
-
};
|
|
611
|
-
},
|
|
612
|
-
groupHighlight(e, t) {
|
|
613
|
-
if (!this.groupSelect)
|
|
614
|
-
return [
|
|
615
|
-
"multiselect__option--disabled",
|
|
616
|
-
{ "multiselect__option--group": t.$isLabel }
|
|
617
|
-
];
|
|
618
|
-
const i = this.options.find((l) => l[this.groupLabel] === t.$groupLabel);
|
|
619
|
-
return i && !this.wholeGroupDisabled(i) ? [
|
|
620
|
-
"multiselect__option--group",
|
|
621
|
-
{ "multiselect__option--highlight": e === this.pointer && this.showPointer },
|
|
622
|
-
{ "multiselect__option--group-selected": this.wholeGroupSelected(i) }
|
|
623
|
-
] : "multiselect__option--disabled";
|
|
624
|
-
},
|
|
625
|
-
addPointerElement({ key: e } = "Enter") {
|
|
626
|
-
this.filteredOptions.length > 0 && this.select(this.filteredOptions[this.pointer], e), this.pointerReset();
|
|
627
|
-
},
|
|
628
|
-
pointerForward() {
|
|
629
|
-
this.pointer < this.filteredOptions.length - 1 && (this.pointer++, this.$refs.list.scrollTop <= this.pointerPosition - (this.visibleElements - 1) * this.optionHeight && (this.$refs.list.scrollTop = this.pointerPosition - (this.visibleElements - 1) * this.optionHeight), this.filteredOptions[this.pointer] && this.filteredOptions[this.pointer].$isLabel && !this.groupSelect && this.pointerForward()), this.pointerDirty = !0;
|
|
91
|
+
showAddButton: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !0
|
|
630
94
|
},
|
|
631
|
-
|
|
632
|
-
|
|
95
|
+
filterMatchModeOptions: {
|
|
96
|
+
type: Array,
|
|
97
|
+
default: null
|
|
633
98
|
},
|
|
634
|
-
|
|
635
|
-
|
|
99
|
+
maxConstraints: {
|
|
100
|
+
type: Number,
|
|
101
|
+
default: 2
|
|
636
102
|
},
|
|
637
|
-
|
|
638
|
-
|
|
103
|
+
excludeGlobalFilter: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1
|
|
639
106
|
},
|
|
640
|
-
|
|
641
|
-
this.pointer = e, this.pointerDirty = !0;
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
}, G = {
|
|
645
|
-
name: "vue-multiselect",
|
|
646
|
-
mixins: [P, F],
|
|
647
|
-
compatConfig: {
|
|
648
|
-
MODE: 3,
|
|
649
|
-
ATTR_ENUMERATED_COERCION: !1
|
|
650
|
-
},
|
|
651
|
-
props: {
|
|
652
|
-
/**
|
|
653
|
-
* name attribute to match optional label element
|
|
654
|
-
* @default ''
|
|
655
|
-
* @type {String}
|
|
656
|
-
*/
|
|
657
|
-
name: {
|
|
107
|
+
filterHeaderClass: {
|
|
658
108
|
type: String,
|
|
659
|
-
default:
|
|
109
|
+
default: null
|
|
660
110
|
},
|
|
661
|
-
|
|
662
|
-
* Presets the selected options value.
|
|
663
|
-
* @type {Object||Array||String||Integer}
|
|
664
|
-
*/
|
|
665
|
-
modelValue: {
|
|
111
|
+
filterHeaderStyle: {
|
|
666
112
|
type: null,
|
|
667
|
-
default
|
|
668
|
-
return [];
|
|
669
|
-
}
|
|
670
|
-
},
|
|
671
|
-
/**
|
|
672
|
-
* String to show when pointing to an option
|
|
673
|
-
* @default 'Press enter to select'
|
|
674
|
-
* @type {String}
|
|
675
|
-
*/
|
|
676
|
-
selectLabel: {
|
|
677
|
-
type: String,
|
|
678
|
-
default: "Press enter to select"
|
|
679
|
-
},
|
|
680
|
-
/**
|
|
681
|
-
* String to show when pointing to an option
|
|
682
|
-
* @default 'Press enter to select'
|
|
683
|
-
* @type {String}
|
|
684
|
-
*/
|
|
685
|
-
selectGroupLabel: {
|
|
686
|
-
type: String,
|
|
687
|
-
default: "Press enter to select group"
|
|
113
|
+
default: null
|
|
688
114
|
},
|
|
689
|
-
|
|
690
|
-
* String to show next to selected option
|
|
691
|
-
* @default 'Selected'
|
|
692
|
-
* @type {String}
|
|
693
|
-
*/
|
|
694
|
-
selectedLabel: {
|
|
115
|
+
filterMenuClass: {
|
|
695
116
|
type: String,
|
|
696
|
-
default:
|
|
117
|
+
default: null
|
|
697
118
|
},
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
* @type {String}
|
|
702
|
-
*/
|
|
703
|
-
deselectLabel: {
|
|
704
|
-
type: String,
|
|
705
|
-
default: "Press enter to remove"
|
|
119
|
+
filterMenuStyle: {
|
|
120
|
+
type: null,
|
|
121
|
+
default: null
|
|
706
122
|
},
|
|
707
|
-
|
|
708
|
-
* String to show when pointing to an already selected option
|
|
709
|
-
* @default 'Press enter to remove'
|
|
710
|
-
* @type {String}
|
|
711
|
-
*/
|
|
712
|
-
deselectGroupLabel: {
|
|
123
|
+
selectionMode: {
|
|
713
124
|
type: String,
|
|
714
|
-
default:
|
|
125
|
+
default: null
|
|
715
126
|
},
|
|
716
|
-
|
|
717
|
-
* Decide whether to show pointer labels
|
|
718
|
-
* @default true
|
|
719
|
-
* @type {Boolean}
|
|
720
|
-
*/
|
|
721
|
-
showLabels: {
|
|
127
|
+
expander: {
|
|
722
128
|
type: Boolean,
|
|
723
|
-
default: !
|
|
129
|
+
default: !1
|
|
724
130
|
},
|
|
725
|
-
|
|
726
|
-
* Limit the display of selected options. The rest will be hidden within the limitText string.
|
|
727
|
-
* @default 99999
|
|
728
|
-
* @type {Integer}
|
|
729
|
-
*/
|
|
730
|
-
limit: {
|
|
131
|
+
colspan: {
|
|
731
132
|
type: Number,
|
|
732
|
-
default:
|
|
133
|
+
default: null
|
|
733
134
|
},
|
|
734
|
-
|
|
735
|
-
* Sets maxHeight style value of the dropdown
|
|
736
|
-
* @default 300
|
|
737
|
-
* @type {Integer}
|
|
738
|
-
*/
|
|
739
|
-
maxHeight: {
|
|
135
|
+
rowspan: {
|
|
740
136
|
type: Number,
|
|
741
|
-
default:
|
|
742
|
-
},
|
|
743
|
-
/**
|
|
744
|
-
* Function that process the message shown when selected
|
|
745
|
-
* elements pass the defined limit.
|
|
746
|
-
* @default 'and * more'
|
|
747
|
-
* @param {Int} count Number of elements more than limit
|
|
748
|
-
* @type {Function}
|
|
749
|
-
*/
|
|
750
|
-
limitText: {
|
|
751
|
-
type: Function,
|
|
752
|
-
default: (e) => `and ${e} more`
|
|
137
|
+
default: null
|
|
753
138
|
},
|
|
754
|
-
|
|
755
|
-
* Set true to trigger the loading spinner.
|
|
756
|
-
* @default False
|
|
757
|
-
* @type {Boolean}
|
|
758
|
-
*/
|
|
759
|
-
loading: {
|
|
139
|
+
rowReorder: {
|
|
760
140
|
type: Boolean,
|
|
761
141
|
default: !1
|
|
762
142
|
},
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
143
|
+
rowReorderIcon: {
|
|
144
|
+
type: String,
|
|
145
|
+
default: void 0
|
|
146
|
+
},
|
|
147
|
+
reorderableColumn: {
|
|
148
|
+
type: Boolean,
|
|
149
|
+
default: !0
|
|
150
|
+
},
|
|
151
|
+
rowEditor: {
|
|
769
152
|
type: Boolean,
|
|
770
153
|
default: !1
|
|
771
154
|
},
|
|
772
|
-
|
|
773
|
-
* Enables search input's spellcheck if true.
|
|
774
|
-
* @default false
|
|
775
|
-
* @type {Boolean}
|
|
776
|
-
*/
|
|
777
|
-
spellcheck: {
|
|
155
|
+
frozen: {
|
|
778
156
|
type: Boolean,
|
|
779
157
|
default: !1
|
|
780
158
|
},
|
|
781
|
-
|
|
782
|
-
* Fixed opening direction
|
|
783
|
-
* @default ''
|
|
784
|
-
* @type {String}
|
|
785
|
-
*/
|
|
786
|
-
openDirection: {
|
|
159
|
+
alignFrozen: {
|
|
787
160
|
type: String,
|
|
788
|
-
default: ""
|
|
161
|
+
default: "left"
|
|
789
162
|
},
|
|
790
|
-
|
|
791
|
-
* Shows slot with message about empty options
|
|
792
|
-
* @default true
|
|
793
|
-
* @type {Boolean}
|
|
794
|
-
*/
|
|
795
|
-
showNoOptions: {
|
|
163
|
+
exportable: {
|
|
796
164
|
type: Boolean,
|
|
797
165
|
default: !0
|
|
798
166
|
},
|
|
799
|
-
|
|
800
|
-
type:
|
|
801
|
-
default:
|
|
167
|
+
exportHeader: {
|
|
168
|
+
type: String,
|
|
169
|
+
default: null
|
|
802
170
|
},
|
|
803
|
-
|
|
804
|
-
type:
|
|
805
|
-
default:
|
|
171
|
+
exportFooter: {
|
|
172
|
+
type: String,
|
|
173
|
+
default: null
|
|
806
174
|
},
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
required: {
|
|
175
|
+
filterMatchMode: {
|
|
176
|
+
type: String,
|
|
177
|
+
default: null
|
|
178
|
+
},
|
|
179
|
+
hidden: {
|
|
813
180
|
type: Boolean,
|
|
814
181
|
default: !1
|
|
815
182
|
}
|
|
816
183
|
},
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
},
|
|
839
|
-
selectLabelText() {
|
|
840
|
-
return this.showLabels ? this.selectLabel : "";
|
|
841
|
-
},
|
|
842
|
-
selectGroupLabelText() {
|
|
843
|
-
return this.showLabels ? this.selectGroupLabel : "";
|
|
844
|
-
},
|
|
845
|
-
selectedLabelText() {
|
|
846
|
-
return this.showLabels ? this.selectedLabel : "";
|
|
847
|
-
},
|
|
848
|
-
inputStyle() {
|
|
849
|
-
return this.searchable || this.multiple && this.modelValue && this.modelValue.length ? this.isOpen ? { width: "100%" } : { width: "0", position: "absolute", padding: "0" } : "";
|
|
850
|
-
},
|
|
851
|
-
contentStyle() {
|
|
852
|
-
return this.options.length ? { display: "inline-block" } : { display: "block" };
|
|
853
|
-
},
|
|
854
|
-
isAbove() {
|
|
855
|
-
return this.openDirection === "above" || this.openDirection === "top" ? !0 : this.openDirection === "below" || this.openDirection === "bottom" ? !1 : this.preferredOpenDirection === "above";
|
|
856
|
-
},
|
|
857
|
-
showSearchInput() {
|
|
858
|
-
return this.searchable && (this.hasSingleSelectedSlot && (this.visibleSingleValue || this.visibleSingleValue === 0) ? this.isOpen : !0);
|
|
859
|
-
},
|
|
860
|
-
isRequired() {
|
|
861
|
-
return this.required === !1 ? !1 : this.internalValue.length <= 0;
|
|
862
|
-
}
|
|
184
|
+
style: n,
|
|
185
|
+
provide: function() {
|
|
186
|
+
return {
|
|
187
|
+
$parentInstance: this
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
}, r = {
|
|
191
|
+
name: "Column",
|
|
192
|
+
extends: u,
|
|
193
|
+
inheritAttrs: !1,
|
|
194
|
+
inject: ["$columns"],
|
|
195
|
+
mounted: function() {
|
|
196
|
+
var e;
|
|
197
|
+
(e = this.$columns) === null || e === void 0 || e.add(this.$);
|
|
198
|
+
},
|
|
199
|
+
unmounted: function() {
|
|
200
|
+
var e;
|
|
201
|
+
(e = this.$columns) === null || e === void 0 || e.delete(this.$);
|
|
202
|
+
},
|
|
203
|
+
render: function() {
|
|
204
|
+
return null;
|
|
863
205
|
}
|
|
864
206
|
};
|
|
865
|
-
const H = ["tabindex", "aria-expanded", "aria-owns", "aria-activedescendant"], C = {
|
|
866
|
-
ref: "tags",
|
|
867
|
-
class: "multiselect__tags"
|
|
868
|
-
}, K = { class: "multiselect__tags-wrap" }, N = ["textContent"], R = ["onKeypress", "onMousedown"], q = ["textContent"], z = { class: "multiselect__spinner" }, j = ["name", "id", "spellcheck", "placeholder", "required", "value", "disabled", "tabindex", "aria-label", "aria-controls"], I = ["id", "aria-multiselectable"], U = { key: 0 }, J = { class: "multiselect__option" }, Q = ["aria-selected", "id", "role"], W = ["onClick", "onMouseenter", "data-select", "data-selected", "data-deselect"], X = ["data-select", "data-deselect", "onMouseenter", "onMousedown"], Y = { class: "multiselect__option" }, Z = { class: "multiselect__option" };
|
|
869
|
-
function x(e, t, i, l, a, n) {
|
|
870
|
-
return p(), d("div", {
|
|
871
|
-
tabindex: e.searchable ? -1 : i.tabindex,
|
|
872
|
-
class: V([{ "multiselect--active": e.isOpen, "multiselect--disabled": i.disabled, "multiselect--above": n.isAbove, "multiselect--has-options-group": n.hasOptionGroup }, "multiselect"]),
|
|
873
|
-
onFocus: t[14] || (t[14] = (s) => e.activate()),
|
|
874
|
-
onBlur: t[15] || (t[15] = (s) => e.searchable ? !1 : e.deactivate()),
|
|
875
|
-
onKeydown: [
|
|
876
|
-
t[16] || (t[16] = f(r((s) => e.pointerForward(), ["self", "prevent"]), ["down"])),
|
|
877
|
-
t[17] || (t[17] = f(r((s) => e.pointerBackward(), ["self", "prevent"]), ["up"]))
|
|
878
|
-
],
|
|
879
|
-
onKeypress: t[18] || (t[18] = f(r((s) => e.addPointerElement(s), ["stop", "self"]), ["enter", "tab"])),
|
|
880
|
-
onKeyup: t[19] || (t[19] = f((s) => e.deactivate(), ["esc"])),
|
|
881
|
-
role: "combobox",
|
|
882
|
-
"aria-expanded": e.isOpen,
|
|
883
|
-
"aria-owns": "listbox-" + e.id,
|
|
884
|
-
"aria-activedescendant": e.isOpen && e.pointer !== null ? e.id + "-" + e.pointer : null
|
|
885
|
-
}, [
|
|
886
|
-
u(e.$slots, "caret", { toggle: e.toggle }, () => [
|
|
887
|
-
o(
|
|
888
|
-
"div",
|
|
889
|
-
{
|
|
890
|
-
onMousedown: t[0] || (t[0] = r((s) => e.toggle(), ["prevent", "stop"])),
|
|
891
|
-
class: "multiselect__select"
|
|
892
|
-
},
|
|
893
|
-
null,
|
|
894
|
-
32
|
|
895
|
-
/* NEED_HYDRATION */
|
|
896
|
-
)
|
|
897
|
-
]),
|
|
898
|
-
u(e.$slots, "clear", { search: e.search }),
|
|
899
|
-
o(
|
|
900
|
-
"div",
|
|
901
|
-
C,
|
|
902
|
-
[
|
|
903
|
-
u(e.$slots, "selection", {
|
|
904
|
-
search: e.search,
|
|
905
|
-
remove: e.removeElement,
|
|
906
|
-
values: n.visibleValues,
|
|
907
|
-
isOpen: e.isOpen
|
|
908
|
-
}, () => [
|
|
909
|
-
b(o(
|
|
910
|
-
"div",
|
|
911
|
-
K,
|
|
912
|
-
[
|
|
913
|
-
(p(!0), d(
|
|
914
|
-
$,
|
|
915
|
-
null,
|
|
916
|
-
B(n.visibleValues, (s, h) => u(e.$slots, "tag", {
|
|
917
|
-
option: s,
|
|
918
|
-
search: e.search,
|
|
919
|
-
remove: e.removeElement
|
|
920
|
-
}, () => [
|
|
921
|
-
(p(), d(
|
|
922
|
-
"span",
|
|
923
|
-
{
|
|
924
|
-
class: "multiselect__tag",
|
|
925
|
-
key: h,
|
|
926
|
-
onMousedown: t[1] || (t[1] = r(() => {
|
|
927
|
-
}, ["prevent"]))
|
|
928
|
-
},
|
|
929
|
-
[
|
|
930
|
-
o("span", {
|
|
931
|
-
textContent: g(e.getOptionLabel(s))
|
|
932
|
-
}, null, 8, N),
|
|
933
|
-
o("i", {
|
|
934
|
-
tabindex: "1",
|
|
935
|
-
onKeypress: f(r((m) => e.removeElement(s), ["prevent"]), ["enter"]),
|
|
936
|
-
onMousedown: r((m) => e.removeElement(s), ["prevent"]),
|
|
937
|
-
class: "multiselect__tag-icon"
|
|
938
|
-
}, null, 40, R)
|
|
939
|
-
],
|
|
940
|
-
32
|
|
941
|
-
/* NEED_HYDRATION */
|
|
942
|
-
))
|
|
943
|
-
])),
|
|
944
|
-
256
|
|
945
|
-
/* UNKEYED_FRAGMENT */
|
|
946
|
-
))
|
|
947
|
-
],
|
|
948
|
-
512
|
|
949
|
-
/* NEED_PATCH */
|
|
950
|
-
), [
|
|
951
|
-
[y, n.visibleValues.length > 0]
|
|
952
|
-
]),
|
|
953
|
-
e.internalValue && e.internalValue.length > i.limit ? u(e.$slots, "limit", { key: 0 }, () => [
|
|
954
|
-
o("strong", {
|
|
955
|
-
class: "multiselect__strong",
|
|
956
|
-
textContent: g(i.limitText(e.internalValue.length - i.limit))
|
|
957
|
-
}, null, 8, q)
|
|
958
|
-
]) : c("v-if", !0)
|
|
959
|
-
]),
|
|
960
|
-
L(k, { name: "multiselect__loading" }, {
|
|
961
|
-
default: D(() => [
|
|
962
|
-
u(e.$slots, "loading", {}, () => [
|
|
963
|
-
b(o(
|
|
964
|
-
"div",
|
|
965
|
-
z,
|
|
966
|
-
null,
|
|
967
|
-
512
|
|
968
|
-
/* NEED_PATCH */
|
|
969
|
-
), [
|
|
970
|
-
[y, i.loading]
|
|
971
|
-
])
|
|
972
|
-
])
|
|
973
|
-
]),
|
|
974
|
-
_: 3
|
|
975
|
-
/* FORWARDED */
|
|
976
|
-
}),
|
|
977
|
-
e.searchable ? (p(), d("input", {
|
|
978
|
-
key: 0,
|
|
979
|
-
ref: "search",
|
|
980
|
-
name: i.name,
|
|
981
|
-
id: e.id,
|
|
982
|
-
type: "text",
|
|
983
|
-
autocomplete: "off",
|
|
984
|
-
spellcheck: i.spellcheck,
|
|
985
|
-
placeholder: e.placeholder,
|
|
986
|
-
required: n.isRequired,
|
|
987
|
-
style: O(n.inputStyle),
|
|
988
|
-
value: e.search,
|
|
989
|
-
disabled: i.disabled,
|
|
990
|
-
tabindex: i.tabindex,
|
|
991
|
-
"aria-label": i.name + "-searchbox",
|
|
992
|
-
onInput: t[2] || (t[2] = (s) => e.updateSearch(s.target.value)),
|
|
993
|
-
onFocus: t[3] || (t[3] = r((s) => e.activate(), ["prevent"])),
|
|
994
|
-
onBlur: t[4] || (t[4] = r((s) => e.deactivate(), ["prevent"])),
|
|
995
|
-
onKeyup: t[5] || (t[5] = f((s) => e.deactivate(), ["esc"])),
|
|
996
|
-
onKeydown: [
|
|
997
|
-
t[6] || (t[6] = f(r((s) => e.pointerForward(), ["prevent"]), ["down"])),
|
|
998
|
-
t[7] || (t[7] = f(r((s) => e.pointerBackward(), ["prevent"]), ["up"])),
|
|
999
|
-
t[9] || (t[9] = f(r((s) => e.removeLastElement(), ["stop"]), ["delete"]))
|
|
1000
|
-
],
|
|
1001
|
-
onKeypress: t[8] || (t[8] = f(r((s) => e.addPointerElement(s), ["prevent", "stop", "self"]), ["enter"])),
|
|
1002
|
-
class: "multiselect__input",
|
|
1003
|
-
"aria-controls": "listbox-" + e.id
|
|
1004
|
-
}, null, 44, j)) : c("v-if", !0),
|
|
1005
|
-
n.isSingleLabelVisible ? (p(), d(
|
|
1006
|
-
"span",
|
|
1007
|
-
{
|
|
1008
|
-
key: 1,
|
|
1009
|
-
class: "multiselect__single",
|
|
1010
|
-
onMousedown: t[10] || (t[10] = r((...s) => e.toggle && e.toggle(...s), ["prevent"]))
|
|
1011
|
-
},
|
|
1012
|
-
[
|
|
1013
|
-
u(e.$slots, "singleLabel", { option: n.singleValue }, () => [
|
|
1014
|
-
v(
|
|
1015
|
-
g(e.currentOptionLabel),
|
|
1016
|
-
1
|
|
1017
|
-
/* TEXT */
|
|
1018
|
-
)
|
|
1019
|
-
])
|
|
1020
|
-
],
|
|
1021
|
-
32
|
|
1022
|
-
/* NEED_HYDRATION */
|
|
1023
|
-
)) : c("v-if", !0),
|
|
1024
|
-
n.isPlaceholderVisible ? (p(), d(
|
|
1025
|
-
"span",
|
|
1026
|
-
{
|
|
1027
|
-
key: 2,
|
|
1028
|
-
class: "multiselect__placeholder",
|
|
1029
|
-
onMousedown: t[11] || (t[11] = r((...s) => e.toggle && e.toggle(...s), ["prevent"]))
|
|
1030
|
-
},
|
|
1031
|
-
[
|
|
1032
|
-
u(e.$slots, "placeholder", {}, () => [
|
|
1033
|
-
v(
|
|
1034
|
-
g(e.placeholder),
|
|
1035
|
-
1
|
|
1036
|
-
/* TEXT */
|
|
1037
|
-
)
|
|
1038
|
-
])
|
|
1039
|
-
],
|
|
1040
|
-
32
|
|
1041
|
-
/* NEED_HYDRATION */
|
|
1042
|
-
)) : c("v-if", !0)
|
|
1043
|
-
],
|
|
1044
|
-
512
|
|
1045
|
-
/* NEED_PATCH */
|
|
1046
|
-
),
|
|
1047
|
-
L(k, {
|
|
1048
|
-
name: "multiselect",
|
|
1049
|
-
persisted: ""
|
|
1050
|
-
}, {
|
|
1051
|
-
default: D(() => [
|
|
1052
|
-
b(o(
|
|
1053
|
-
"div",
|
|
1054
|
-
{
|
|
1055
|
-
class: "multiselect__content-wrapper",
|
|
1056
|
-
onFocus: t[12] || (t[12] = (...s) => e.activate && e.activate(...s)),
|
|
1057
|
-
tabindex: "-1",
|
|
1058
|
-
onMousedown: t[13] || (t[13] = r(() => {
|
|
1059
|
-
}, ["prevent"])),
|
|
1060
|
-
style: O({ maxHeight: e.optimizedHeight + "px" }),
|
|
1061
|
-
ref: "list"
|
|
1062
|
-
},
|
|
1063
|
-
[
|
|
1064
|
-
o("ul", {
|
|
1065
|
-
class: "multiselect__content",
|
|
1066
|
-
style: O(n.contentStyle),
|
|
1067
|
-
role: "listbox",
|
|
1068
|
-
id: "listbox-" + e.id,
|
|
1069
|
-
"aria-multiselectable": e.multiple
|
|
1070
|
-
}, [
|
|
1071
|
-
u(e.$slots, "beforeList"),
|
|
1072
|
-
e.multiple && e.max === e.internalValue.length ? (p(), d("li", U, [
|
|
1073
|
-
o("span", J, [
|
|
1074
|
-
u(e.$slots, "maxElements", {}, () => [
|
|
1075
|
-
v(
|
|
1076
|
-
"Maximum of " + g(e.max) + " options selected. First remove a selected option to select another.",
|
|
1077
|
-
1
|
|
1078
|
-
/* TEXT */
|
|
1079
|
-
)
|
|
1080
|
-
])
|
|
1081
|
-
])
|
|
1082
|
-
])) : c("v-if", !0),
|
|
1083
|
-
!e.max || e.internalValue.length < e.max ? (p(!0), d(
|
|
1084
|
-
$,
|
|
1085
|
-
{ key: 1 },
|
|
1086
|
-
B(e.filteredOptions, (s, h) => (p(), d("li", {
|
|
1087
|
-
class: "multiselect__element",
|
|
1088
|
-
key: h,
|
|
1089
|
-
"aria-selected": e.isSelected(s),
|
|
1090
|
-
id: e.id + "-" + h,
|
|
1091
|
-
role: s && (s.$isLabel || s.$isDisabled) ? null : "option"
|
|
1092
|
-
}, [
|
|
1093
|
-
s && (s.$isLabel || s.$isDisabled) ? c("v-if", !0) : (p(), d("span", {
|
|
1094
|
-
key: 0,
|
|
1095
|
-
class: V([e.optionHighlight(h, s), "multiselect__option"]),
|
|
1096
|
-
onClick: r((m) => e.select(s), ["stop"]),
|
|
1097
|
-
onMouseenter: r((m) => e.pointerSet(h), ["self"]),
|
|
1098
|
-
"data-select": s && s.isTag ? e.tagPlaceholder : n.selectLabelText,
|
|
1099
|
-
"data-selected": n.selectedLabelText,
|
|
1100
|
-
"data-deselect": n.deselectLabelText
|
|
1101
|
-
}, [
|
|
1102
|
-
u(e.$slots, "option", {
|
|
1103
|
-
option: s,
|
|
1104
|
-
search: e.search,
|
|
1105
|
-
index: h
|
|
1106
|
-
}, () => [
|
|
1107
|
-
o(
|
|
1108
|
-
"span",
|
|
1109
|
-
null,
|
|
1110
|
-
g(e.getOptionLabel(s)),
|
|
1111
|
-
1
|
|
1112
|
-
/* TEXT */
|
|
1113
|
-
)
|
|
1114
|
-
])
|
|
1115
|
-
], 42, W)),
|
|
1116
|
-
s && (s.$isLabel || s.$isDisabled) ? (p(), d("span", {
|
|
1117
|
-
key: 1,
|
|
1118
|
-
"data-select": e.groupSelect && n.selectGroupLabelText,
|
|
1119
|
-
"data-deselect": e.groupSelect && n.deselectGroupLabelText,
|
|
1120
|
-
class: V([e.groupHighlight(h, s), "multiselect__option"]),
|
|
1121
|
-
onMouseenter: r((m) => e.groupSelect && e.pointerSet(h), ["self"]),
|
|
1122
|
-
onMousedown: r((m) => e.selectGroup(s), ["prevent"])
|
|
1123
|
-
}, [
|
|
1124
|
-
u(e.$slots, "option", {
|
|
1125
|
-
option: s,
|
|
1126
|
-
search: e.search,
|
|
1127
|
-
index: h
|
|
1128
|
-
}, () => [
|
|
1129
|
-
o(
|
|
1130
|
-
"span",
|
|
1131
|
-
null,
|
|
1132
|
-
g(e.getOptionLabel(s)),
|
|
1133
|
-
1
|
|
1134
|
-
/* TEXT */
|
|
1135
|
-
)
|
|
1136
|
-
])
|
|
1137
|
-
], 42, X)) : c("v-if", !0)
|
|
1138
|
-
], 8, Q))),
|
|
1139
|
-
128
|
|
1140
|
-
/* KEYED_FRAGMENT */
|
|
1141
|
-
)) : c("v-if", !0),
|
|
1142
|
-
b(o(
|
|
1143
|
-
"li",
|
|
1144
|
-
null,
|
|
1145
|
-
[
|
|
1146
|
-
o("span", Y, [
|
|
1147
|
-
u(e.$slots, "noResult", { search: e.search }, () => [
|
|
1148
|
-
t[20] || (t[20] = v("No elements found. Consider changing the search query."))
|
|
1149
|
-
])
|
|
1150
|
-
])
|
|
1151
|
-
],
|
|
1152
|
-
512
|
|
1153
|
-
/* NEED_PATCH */
|
|
1154
|
-
), [
|
|
1155
|
-
[y, i.showNoResults && e.filteredOptions.length === 0 && e.search && !i.loading]
|
|
1156
|
-
]),
|
|
1157
|
-
b(o(
|
|
1158
|
-
"li",
|
|
1159
|
-
null,
|
|
1160
|
-
[
|
|
1161
|
-
o("span", Z, [
|
|
1162
|
-
u(e.$slots, "noOptions", {}, () => [
|
|
1163
|
-
t[21] || (t[21] = v("List is empty."))
|
|
1164
|
-
])
|
|
1165
|
-
])
|
|
1166
|
-
],
|
|
1167
|
-
512
|
|
1168
|
-
/* NEED_PATCH */
|
|
1169
|
-
), [
|
|
1170
|
-
[y, i.showNoOptions && (e.options.length === 0 || n.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !i.loading]
|
|
1171
|
-
]),
|
|
1172
|
-
u(e.$slots, "afterList")
|
|
1173
|
-
], 12, I)
|
|
1174
|
-
],
|
|
1175
|
-
36
|
|
1176
|
-
/* STYLE, NEED_HYDRATION */
|
|
1177
|
-
), [
|
|
1178
|
-
[y, e.isOpen]
|
|
1179
|
-
])
|
|
1180
|
-
]),
|
|
1181
|
-
_: 3
|
|
1182
|
-
/* FORWARDED */
|
|
1183
|
-
})
|
|
1184
|
-
], 42, H);
|
|
1185
|
-
}
|
|
1186
|
-
G.render = x;
|
|
1187
207
|
export {
|
|
1188
|
-
|
|
1189
|
-
G as default,
|
|
1190
|
-
P as multiselectMixin,
|
|
1191
|
-
F as pointerMixin
|
|
208
|
+
r as default
|
|
1192
209
|
};
|