@weni/unnnic-system 3.36.1-alpha.0 → 3.36.1
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/assets/scss/tailwind.css +1 -1
- package/dist/components/MultiSelect/MultiSelectOption.css +1 -1
- package/dist/components/MultiSelect/MultiSelectOption.vue.mjs +2 -2
- package/dist/components/MultiSelect/MultiSelectOption.vue2.mjs +15 -41
- package/dist/components/MultiSelect/index.css +1 -1
- package/dist/components/MultiSelect/index.vue.mjs +2 -2
- package/dist/components/MultiSelect/index.vue2.mjs +114 -126
- package/dist/components/SelectTime/index.css +1 -1
- package/dist/components/SelectTime/index.vue.mjs +55 -42
- package/dist/composables/useSelectBase.mjs +39 -44
- package/dist/composables/useSelectKeyboard.mjs +35 -70
- package/dist/locales/en.json.mjs +5 -9
- package/dist/style.css +4 -6
- package/dist/unnnic.umd.js +19 -19
- package/package.json +2 -2
- package/src/components/MultiSelect/MultiSelectOption.vue +3 -66
- package/src/components/MultiSelect/__tests__/MultiSelect.spec.js +0 -556
- package/src/components/MultiSelect/__tests__/MultiSelectOption.spec.js +1 -55
- package/src/components/MultiSelect/__tests__/__snapshots__/MultiSelectOption.spec.js.snap +0 -5
- package/src/components/MultiSelect/index.vue +50 -57
- package/src/components/Select/_select-shared.scss +0 -8
- package/src/components/Select/types.ts +0 -1
- package/src/components/SelectTime/__tests__/SelectTime.spec.js +88 -0
- package/src/components/SelectTime/index.vue +31 -7
- package/src/composables/useSelectBase.ts +16 -40
- package/src/composables/useSelectKeyboard.ts +18 -92
- package/src/locales/en.json +1 -3
- package/src/stories/MultiSelect.stories.js +1 -62
- package/src/stories/SelectTime.stories.js +5 -1
- package/dist/components/MultiSelect/MultiSelectTreeOptions.css +0 -1
- package/dist/components/MultiSelect/MultiSelectTreeOptions.vue.mjs +0 -7
- package/dist/components/MultiSelect/MultiSelectTreeOptions.vue2.mjs +0 -50
- package/dist/composables/useMultiSelectRows.mjs +0 -74
- package/dist/composables/useMultiSelectSelection.mjs +0 -44
- package/dist/composables/useTreeExpansion.mjs +0 -24
- package/dist/lib/tree-selection.mjs +0 -66
- package/src/components/MultiSelect/MultiSelectTreeOptions.vue +0 -73
- package/src/composables/useMultiSelectRows.ts +0 -121
- package/src/composables/useMultiSelectSelection.ts +0 -97
- package/src/composables/useTreeExpansion.ts +0 -44
- package/src/lib/__tests__/tree-selection.spec.ts +0 -141
- package/src/lib/tree-selection.ts +0 -156
|
@@ -1,56 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Shared keyboard navigation for Select and MultiSelect
|
|
3
|
-
* (ArrowUp, ArrowDown, Enter, optional ArrowRight, ArrowLeft and Space).
|
|
2
|
+
* Shared keyboard navigation for Select and MultiSelect (ArrowUp, ArrowDown, Enter).
|
|
4
3
|
* Binds keydown to document when popover is open and unbinds when closed.
|
|
5
4
|
*/
|
|
6
|
-
import {
|
|
7
|
-
ref,
|
|
8
|
-
nextTick,
|
|
9
|
-
watch,
|
|
10
|
-
onBeforeUnmount,
|
|
11
|
-
toValue,
|
|
12
|
-
type MaybeRefOrGetter,
|
|
13
|
-
type Ref,
|
|
14
|
-
} from 'vue';
|
|
5
|
+
import { ref, nextTick, watch, onBeforeUnmount, type Ref } from 'vue';
|
|
15
6
|
import type { SelectOption } from '../components/Select/types';
|
|
16
7
|
|
|
17
8
|
const DATA_OPTION_INDEX = 'data-option-index';
|
|
18
9
|
|
|
19
|
-
export interface UseSelectKeyboardOptions
|
|
20
|
-
T extends SelectOption = SelectOption,
|
|
21
|
-
> {
|
|
10
|
+
export interface UseSelectKeyboardOptions {
|
|
22
11
|
closeOnSelect?: boolean;
|
|
23
12
|
closePopover: () => void;
|
|
24
13
|
openPopoverRef: Ref<boolean>;
|
|
25
|
-
/** May return the index to focus next. */
|
|
26
|
-
onArrowRight?: (index: number, option: T) => number | void;
|
|
27
|
-
/** May return the index to focus next. */
|
|
28
|
-
onArrowLeft?: (index: number, option: T) => number | void;
|
|
29
|
-
toggleOnSpace?: MaybeRefOrGetter<boolean>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function isEditableTarget(event: KeyboardEvent) {
|
|
33
|
-
const target = event.target;
|
|
34
|
-
if (!(target instanceof HTMLElement)) return false;
|
|
35
|
-
if (target.closest('input, textarea, button, [contenteditable="true"]')) {
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
return target.isContentEditable;
|
|
39
14
|
}
|
|
40
15
|
|
|
41
16
|
export function useSelectKeyboard<T extends SelectOption>(
|
|
42
17
|
getFilteredOptions: () => T[],
|
|
43
18
|
onSelectOption: (option: T) => void,
|
|
44
|
-
options: UseSelectKeyboardOptions
|
|
19
|
+
options: UseSelectKeyboardOptions,
|
|
45
20
|
) {
|
|
46
|
-
const {
|
|
47
|
-
closeOnSelect = true,
|
|
48
|
-
closePopover,
|
|
49
|
-
openPopoverRef,
|
|
50
|
-
onArrowRight,
|
|
51
|
-
onArrowLeft,
|
|
52
|
-
toggleOnSpace = false,
|
|
53
|
-
} = options;
|
|
21
|
+
const { closeOnSelect = true, closePopover, openPopoverRef } = options;
|
|
54
22
|
const focusedOptionIndex = ref(-1);
|
|
55
23
|
|
|
56
24
|
function scrollToOption(
|
|
@@ -66,64 +34,30 @@ export function useSelectKeyboard<T extends SelectOption>(
|
|
|
66
34
|
});
|
|
67
35
|
}
|
|
68
36
|
|
|
69
|
-
function selectFocusedOption() {
|
|
70
|
-
const list = getFilteredOptions();
|
|
71
|
-
const option = list[focusedOptionIndex.value];
|
|
72
|
-
if (focusedOptionIndex.value < 0 || !option) return;
|
|
73
|
-
if (option.disabled) return;
|
|
74
|
-
onSelectOption(option);
|
|
75
|
-
if (closeOnSelect) closePopover();
|
|
76
|
-
}
|
|
77
|
-
|
|
78
37
|
function handleKeyDown(event: KeyboardEvent) {
|
|
38
|
+
const validKeys = ['ArrowUp', 'ArrowDown', 'Enter'];
|
|
39
|
+
if (!validKeys.includes(event.key)) return;
|
|
40
|
+
|
|
41
|
+
event.preventDefault();
|
|
79
42
|
const list = getFilteredOptions();
|
|
80
43
|
|
|
81
44
|
if (event.key === 'ArrowUp') {
|
|
82
|
-
event.preventDefault();
|
|
83
45
|
if (focusedOptionIndex.value <= 0) return;
|
|
84
46
|
focusedOptionIndex.value--;
|
|
85
47
|
scrollToOption(focusedOptionIndex.value);
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if (event.key === 'ArrowDown') {
|
|
90
|
-
event.preventDefault();
|
|
48
|
+
} else if (event.key === 'ArrowDown') {
|
|
91
49
|
if (focusedOptionIndex.value >= list.length - 1) return;
|
|
92
50
|
focusedOptionIndex.value++;
|
|
93
51
|
scrollToOption(focusedOptionIndex.value);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
selectFocusedOption();
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const horizontalHandler =
|
|
104
|
-
event.key === 'ArrowRight'
|
|
105
|
-
? onArrowRight
|
|
106
|
-
: event.key === 'ArrowLeft'
|
|
107
|
-
? onArrowLeft
|
|
108
|
-
: undefined;
|
|
109
|
-
|
|
110
|
-
if (horizontalHandler) {
|
|
111
|
-
if (isEditableTarget(event)) return;
|
|
112
|
-
event.preventDefault();
|
|
52
|
+
} else if (
|
|
53
|
+
event.key === 'Enter' &&
|
|
54
|
+
focusedOptionIndex.value >= 0 &&
|
|
55
|
+
list[focusedOptionIndex.value]
|
|
56
|
+
) {
|
|
113
57
|
const option = list[focusedOptionIndex.value];
|
|
114
|
-
if (
|
|
115
|
-
|
|
116
|
-
if (
|
|
117
|
-
focusedOptionIndex.value = nextIndex;
|
|
118
|
-
scrollToOption(nextIndex);
|
|
119
|
-
}
|
|
120
|
-
return;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (event.key === ' ' && toValue(toggleOnSpace)) {
|
|
124
|
-
if (isEditableTarget(event)) return;
|
|
125
|
-
event.preventDefault();
|
|
126
|
-
selectFocusedOption();
|
|
58
|
+
if (option?.disabled) return;
|
|
59
|
+
onSelectOption(option);
|
|
60
|
+
if (closeOnSelect) closePopover();
|
|
127
61
|
}
|
|
128
62
|
}
|
|
129
63
|
|
|
@@ -145,14 +79,6 @@ export function useSelectKeyboard<T extends SelectOption>(
|
|
|
145
79
|
if (isOpen) nextTick(bindKeydown);
|
|
146
80
|
else unbindKeydown();
|
|
147
81
|
});
|
|
148
|
-
watch(
|
|
149
|
-
() => getFilteredOptions().length,
|
|
150
|
-
(length) => {
|
|
151
|
-
if (focusedOptionIndex.value >= length) {
|
|
152
|
-
focusedOptionIndex.value = length - 1;
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
);
|
|
156
82
|
onBeforeUnmount(unbindKeydown);
|
|
157
83
|
}
|
|
158
84
|
|
package/src/locales/en.json
CHANGED
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
argTypes: {
|
|
29
29
|
options: {
|
|
30
30
|
description:
|
|
31
|
-
'List of items to be displayed in the options. If an item has a `disabled` key set to `true`, that item will be disabled. By default, the component looks for the `label` and `value` keys to display and update the model, but these are not required if you wish to customize them using the `itemLabel` and `itemValue` props, respectively.
|
|
31
|
+
'List of items to be displayed in the options. If an item has a `disabled` key set to `true`, that item will be disabled. By default, the component looks for the `label` and `value` keys to display and update the model, but these are not required if you wish to customize them using the `itemLabel` and `itemValue` props, respectively.',
|
|
32
32
|
},
|
|
33
33
|
placeholder: {
|
|
34
34
|
description: 'Text to be displayed in the placeholder.',
|
|
@@ -180,67 +180,6 @@ export const WithSearch = {
|
|
|
180
180
|
},
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
const topicOptions = [
|
|
184
|
-
{
|
|
185
|
-
label: 'Status do pedido',
|
|
186
|
-
value: 'status-do-pedido',
|
|
187
|
-
children: [
|
|
188
|
-
{ label: 'Atraso na entrega', value: 'atraso-na-entrega' },
|
|
189
|
-
{ label: 'Rastreamento', value: 'rastreamento' },
|
|
190
|
-
{ label: 'Nota fiscal', value: 'nota-fiscal' },
|
|
191
|
-
],
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
label: 'Troca e devolução',
|
|
195
|
-
value: 'troca-e-devolucao',
|
|
196
|
-
children: [
|
|
197
|
-
{ label: 'Produto com defeito', value: 'produto-com-defeito' },
|
|
198
|
-
{ label: 'Arrependimento', value: 'arrependimento' },
|
|
199
|
-
],
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
label: 'Pagamento',
|
|
203
|
-
value: 'pagamento',
|
|
204
|
-
children: [
|
|
205
|
-
{ label: 'Pix', value: 'pix' },
|
|
206
|
-
{ label: 'Cartão', value: 'cartao' },
|
|
207
|
-
],
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
label: 'Dúvidas sobre produto',
|
|
211
|
-
value: 'duvidas-sobre-produto',
|
|
212
|
-
children: [
|
|
213
|
-
{ label: 'Tamanho', value: 'tamanho' },
|
|
214
|
-
{ label: 'Cor', value: 'cor' },
|
|
215
|
-
],
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
label: 'Cancelamento',
|
|
219
|
-
value: 'cancelamento',
|
|
220
|
-
children: [{ label: 'Pedido', value: 'pedido' }],
|
|
221
|
-
},
|
|
222
|
-
{ label: 'Unclassified', value: 'unclassified' },
|
|
223
|
-
{ label: 'Other', value: 'other' },
|
|
224
|
-
];
|
|
225
|
-
|
|
226
|
-
export const WithChildren = {
|
|
227
|
-
args: {
|
|
228
|
-
placeholder: 'All topics',
|
|
229
|
-
label: 'Topic',
|
|
230
|
-
options: topicOptions,
|
|
231
|
-
},
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
export const WithChildrenAndSearch = {
|
|
235
|
-
args: {
|
|
236
|
-
placeholder: 'All topics',
|
|
237
|
-
label: 'Topic',
|
|
238
|
-
options: topicOptions,
|
|
239
|
-
enableSearch: true,
|
|
240
|
-
search: '',
|
|
241
|
-
},
|
|
242
|
-
};
|
|
243
|
-
|
|
244
183
|
export const WithInfiniteScroll = {
|
|
245
184
|
render: () => ({
|
|
246
185
|
components: { UnnnicMultiSelect },
|
|
@@ -3,7 +3,11 @@ import unnnicSelectTime from '../components/SelectTime/index.vue';
|
|
|
3
3
|
export default {
|
|
4
4
|
title: 'Select/SelectTime',
|
|
5
5
|
component: unnnicSelectTime,
|
|
6
|
-
argTypes: {
|
|
6
|
+
argTypes: {
|
|
7
|
+
enable24hTime: {
|
|
8
|
+
control: 'boolean',
|
|
9
|
+
},
|
|
10
|
+
},
|
|
7
11
|
render: (args) => ({
|
|
8
12
|
components: {
|
|
9
13
|
unnnicSelectTime,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[data-v-9071f528]:export{unnnicColorBackgroundSolo:var(--unnnic-color-bg-accent-plain)}.color-background-solo[data-v-9071f528]{color:var(--unnnic-color-bg-accent-plain)}.bg-background-solo[data-v-9071f528]{background-color:var(--unnnic-color-bg-accent-plain)}.color-background-sky[data-v-9071f528]{color:var(--unnnic-color-bg-base-soft)}.bg-background-sky[data-v-9071f528]{background-color:var(--unnnic-color-bg-base-soft)}.color-background-grass[data-v-9071f528]{color:var(--unnnic-color-bg-base-soft)}.bg-background-grass[data-v-9071f528]{background-color:var(--unnnic-color-bg-base-soft)}.color-background-carpet[data-v-9071f528]{color:var(--unnnic-color-bg-base-soft)}.bg-background-carpet[data-v-9071f528]{background-color:var(--unnnic-color-bg-base-soft)}.color-background-snow[data-v-9071f528]{color:var(--unnnic-color-bg-base)}.bg-background-snow[data-v-9071f528]{background-color:var(--unnnic-color-bg-base)}.color-background-lightest[data-v-9071f528]{color:var(--unnnic-color-bg-base-soft)}.bg-background-lightest[data-v-9071f528]{background-color:var(--unnnic-color-bg-base-soft)}.color-background-white[data-v-9071f528]{color:var(--unnnic-color-bg-base)}.bg-background-white[data-v-9071f528]{background-color:var(--unnnic-color-bg-base)}.color-neutral-black[data-v-9071f528]{color:#1f1f1f}.bg-neutral-black[data-v-9071f528]{background-color:#1f1f1f}.color-neutral-darkest[data-v-9071f528]{color:#1f1f1f}.bg-neutral-darkest[data-v-9071f528]{background-color:#1f1f1f}.color-neutral-dark[data-v-9071f528]{color:#3d3d3d}.bg-neutral-dark[data-v-9071f528]{background-color:#3d3d3d}.color-neutral-cloudy[data-v-9071f528]{color:#3d3d3d}.bg-neutral-cloudy[data-v-9071f528]{background-color:#3d3d3d}.color-neutral-cleanest[data-v-9071f528]{color:#999}.bg-neutral-cleanest[data-v-9071f528]{background-color:#999}.color-neutral-clean[data-v-9071f528]{color:#3d3d3d}.bg-neutral-clean[data-v-9071f528]{background-color:#3d3d3d}.color-neutral-soft[data-v-9071f528]{color:#e0e0e0}.bg-neutral-soft[data-v-9071f528]{background-color:#e0e0e0}.color-neutral-lightest[data-v-9071f528]{color:#f5f5f5}.bg-neutral-lightest[data-v-9071f528]{background-color:#f5f5f5}.color-neutral-light[data-v-9071f528]{color:#ebebeb}.bg-neutral-light[data-v-9071f528]{background-color:#ebebeb}.color-neutral-white[data-v-9071f528]{color:#fff}.bg-neutral-white[data-v-9071f528]{background-color:#fff}.color-neutral-snow[data-v-9071f528]{color:var(--unnnic-color-bg-base)}.bg-neutral-snow[data-v-9071f528]{background-color:var(--unnnic-color-bg-base)}.color-feedback-red[data-v-9071f528]{color:#f95d47}.bg-feedback-red[data-v-9071f528]{background-color:#f95d47}.color-feedback-green[data-v-9071f528]{color:#4fd051}.bg-feedback-green[data-v-9071f528]{background-color:#4fd051}.color-feedback-yellow[data-v-9071f528]{color:#ffa138}.bg-feedback-yellow[data-v-9071f528]{background-color:#ffa138}.color-feedback-blue[data-v-9071f528]{color:#157bf4}.bg-feedback-blue[data-v-9071f528]{background-color:#157bf4}.color-feedback-grey[data-v-9071f528]{color:#ebebeb}.bg-feedback-grey[data-v-9071f528]{background-color:#ebebeb}.color-aux-blue[data-v-9071f528]{color:#66dbd3}.bg-aux-blue[data-v-9071f528]{background-color:#66dbd3}.color-aux-purple[data-v-9071f528]{color:#883ce6}.bg-aux-purple[data-v-9071f528]{background-color:#883ce6}.color-aux-orange[data-v-9071f528]{color:#f78612}.bg-aux-orange[data-v-9071f528]{background-color:#f78612}.color-aux-lemon[data-v-9071f528]{color:#fade1e}.bg-aux-lemon[data-v-9071f528]{background-color:#fade1e}.color-aux-pink[data-v-9071f528]{color:#ca226a}.bg-aux-pink[data-v-9071f528]{background-color:#ca226a}.color-aux-baby-blue[data-v-9071f528]{color:#89e8fb}.bg-aux-baby-blue[data-v-9071f528]{background-color:#89e8fb}.color-aux-baby-yellow[data-v-9071f528]{color:#fdf5ad}.bg-aux-baby-yellow[data-v-9071f528]{background-color:#fdf5ad}.color-aux-baby-red[data-v-9071f528]{color:#ff9e8b}.bg-aux-baby-red[data-v-9071f528]{background-color:#ff9e8b}.color-aux-baby-green[data-v-9071f528]{color:#aff79e}.bg-aux-baby-green[data-v-9071f528]{background-color:#aff79e}.color-aux-baby-pink[data-v-9071f528]{color:#ffc8dc}.bg-aux-baby-pink[data-v-9071f528]{background-color:#ffc8dc}.color-aux-green-50[data-v-9071f528]{color:#e9fce3}.bg-aux-green-50[data-v-9071f528]{background-color:#e9fce3}.color-aux-green-100[data-v-9071f528]{color:#cefdc0}.bg-aux-green-100[data-v-9071f528]{background-color:#cefdc0}.color-aux-green-200[data-v-9071f528]{color:#97ef86}.bg-aux-green-200[data-v-9071f528]{background-color:#97ef86}.color-aux-green-300[data-v-9071f528]{color:#74e26c}.bg-aux-green-300[data-v-9071f528]{background-color:#74e26c}.color-aux-green-400[data-v-9071f528]{color:#4fd051}.bg-aux-green-400[data-v-9071f528]{background-color:#4fd051}.color-aux-green-500[data-v-9071f528]{color:#28bc37}.bg-aux-green-500[data-v-9071f528]{background-color:#28bc37}.color-aux-green-600[data-v-9071f528]{color:#08a822}.bg-aux-green-600[data-v-9071f528]{background-color:#08a822}.color-aux-green-700[data-v-9071f528]{color:#017d10}.bg-aux-green-700[data-v-9071f528]{background-color:#017d10}.color-aux-green-800[data-v-9071f528]{color:#01540e}.bg-aux-green-800[data-v-9071f528]{background-color:#01540e}.color-aux-green-900[data-v-9071f528]{color:#01410b}.bg-aux-green-900[data-v-9071f528]{background-color:#01410b}.color-aux-green-950[data-v-9071f528]{color:#01410b}.bg-aux-green-950[data-v-9071f528]{background-color:#01410b}.color-aux-blue-50[data-v-9071f528]{color:#f1f8fd}.bg-aux-blue-50[data-v-9071f528]{background-color:#f1f8fd}.color-aux-blue-100[data-v-9071f528]{color:#e1f3ff}.bg-aux-blue-100[data-v-9071f528]{background-color:#e1f3ff}.color-aux-blue-200[data-v-9071f528]{color:#b6dfff}.bg-aux-blue-200[data-v-9071f528]{background-color:#b6dfff}.color-aux-blue-300[data-v-9071f528]{color:#97cffe}.bg-aux-blue-300[data-v-9071f528]{background-color:#97cffe}.color-aux-blue-400[data-v-9071f528]{color:#79bcfb}.bg-aux-blue-400[data-v-9071f528]{background-color:#79bcfb}.color-aux-blue-500[data-v-9071f528]{color:#5aa8f7}.bg-aux-blue-500[data-v-9071f528]{background-color:#5aa8f7}.color-aux-blue-600[data-v-9071f528]{color:#3993f4}.bg-aux-blue-600[data-v-9071f528]{background-color:#3993f4}.color-aux-blue-700[data-v-9071f528]{color:#0366dd}.bg-aux-blue-700[data-v-9071f528]{background-color:#0366dd}.color-aux-blue-800[data-v-9071f528]{color:#014592}.bg-aux-blue-800[data-v-9071f528]{background-color:#014592}.color-aux-blue-900[data-v-9071f528]{color:#013672}.bg-aux-blue-900[data-v-9071f528]{background-color:#013672}.color-aux-blue-950[data-v-9071f528]{color:#013672}.bg-aux-blue-950[data-v-9071f528]{background-color:#013672}.color-aux-purple-50[data-v-9071f528]{color:#f9f5fd}.bg-aux-purple-50[data-v-9071f528]{background-color:#f9f5fd}.color-aux-purple-100[data-v-9071f528]{color:#f5eafe}.bg-aux-purple-100[data-v-9071f528]{background-color:#f5eafe}.color-aux-purple-200[data-v-9071f528]{color:#e5cffe}.bg-aux-purple-200[data-v-9071f528]{background-color:#e5cffe}.color-aux-purple-300[data-v-9071f528]{color:#dabafd}.bg-aux-purple-300[data-v-9071f528]{background-color:#dabafd}.color-aux-purple-400[data-v-9071f528]{color:#cba3fc}.bg-aux-purple-400[data-v-9071f528]{background-color:#cba3fc}.color-aux-purple-500[data-v-9071f528]{color:#bc8afb}.bg-aux-purple-500[data-v-9071f528]{background-color:#bc8afb}.color-aux-purple-600[data-v-9071f528]{color:#ad71f8}.bg-aux-purple-600[data-v-9071f528]{background-color:#ad71f8}.color-aux-purple-700[data-v-9071f528]{color:#883ce6}.bg-aux-purple-700[data-v-9071f528]{background-color:#883ce6}.color-aux-purple-800[data-v-9071f528]{color:#5c12b6}.bg-aux-purple-800[data-v-9071f528]{background-color:#5c12b6}.color-aux-purple-900[data-v-9071f528]{color:#460b93}.bg-aux-purple-900[data-v-9071f528]{background-color:#460b93}.color-aux-purple-950[data-v-9071f528]{color:#460b93}.bg-aux-purple-950[data-v-9071f528]{background-color:#460b93}.color-aux-red-50[data-v-9071f528]{color:#fdf6f5}.bg-aux-red-50[data-v-9071f528]{background-color:#fdf6f5}.color-aux-red-100[data-v-9071f528]{color:#ffedea}.bg-aux-red-100[data-v-9071f528]{background-color:#ffedea}.color-aux-red-200[data-v-9071f528]{color:#ffd0c7}.bg-aux-red-200[data-v-9071f528]{background-color:#ffd0c7}.color-aux-red-300[data-v-9071f528]{color:#ffbbad}.bg-aux-red-300[data-v-9071f528]{background-color:#ffbbad}.color-aux-red-400[data-v-9071f528]{color:#ff9e8b}.bg-aux-red-400[data-v-9071f528]{background-color:#ff9e8b}.color-aux-red-500[data-v-9071f528]{color:#ff7f68}.bg-aux-red-500[data-v-9071f528]{background-color:#ff7f68}.color-aux-red-600[data-v-9071f528]{color:#f95d47}.bg-aux-red-600[data-v-9071f528]{background-color:#f95d47}.color-aux-red-700[data-v-9071f528]{color:#d31a15}.bg-aux-red-700[data-v-9071f528]{background-color:#d31a15}.color-aux-red-800[data-v-9071f528]{color:#940303}.bg-aux-red-800[data-v-9071f528]{background-color:#940303}.color-aux-red-900[data-v-9071f528]{color:#720000}.bg-aux-red-900[data-v-9071f528]{background-color:#720000}.color-aux-red-950[data-v-9071f528]{color:#720000}.bg-aux-red-950[data-v-9071f528]{background-color:#720000}.color-aux-orange-50[data-v-9071f528]{color:#fdf5e9}.bg-aux-orange-50[data-v-9071f528]{background-color:#fdf5e9}.color-aux-orange-100[data-v-9071f528]{color:#ffedcd}.bg-aux-orange-100[data-v-9071f528]{background-color:#ffedcd}.color-aux-orange-200[data-v-9071f528]{color:#fed392}.bg-aux-orange-200[data-v-9071f528]{background-color:#fed392}.color-aux-orange-300[data-v-9071f528]{color:#febc64}.bg-aux-orange-300[data-v-9071f528]{background-color:#febc64}.color-aux-orange-400[data-v-9071f528]{color:#ffa138}.bg-aux-orange-400[data-v-9071f528]{background-color:#ffa138}.color-aux-orange-500[data-v-9071f528]{color:#f78612}.bg-aux-orange-500[data-v-9071f528]{background-color:#f78612}.color-aux-orange-600[data-v-9071f528]{color:#e57001}.bg-aux-orange-600[data-v-9071f528]{background-color:#e57001}.color-aux-orange-700[data-v-9071f528]{color:#b24d01}.bg-aux-orange-700[data-v-9071f528]{background-color:#b24d01}.color-aux-orange-800[data-v-9071f528]{color:#7b3001}.bg-aux-orange-800[data-v-9071f528]{background-color:#7b3001}.color-aux-orange-900[data-v-9071f528]{color:#622401}.bg-aux-orange-900[data-v-9071f528]{background-color:#622401}.color-aux-orange-950[data-v-9071f528]{color:#622401}.bg-aux-orange-950[data-v-9071f528]{background-color:#622401}.color-aux-yellow-50[data-v-9071f528]{color:#fbf7d4}.bg-aux-yellow-50[data-v-9071f528]{background-color:#fbf7d4}.color-aux-yellow-100[data-v-9071f528]{color:#fdf5ad}.bg-aux-yellow-100[data-v-9071f528]{background-color:#fdf5ad}.color-aux-yellow-200[data-v-9071f528]{color:#fade1e}.bg-aux-yellow-200[data-v-9071f528]{background-color:#fade1e}.color-aux-yellow-300[data-v-9071f528]{color:#e9c701}.bg-aux-yellow-300[data-v-9071f528]{background-color:#e9c701}.color-aux-yellow-400[data-v-9071f528]{color:#d8b401}.bg-aux-yellow-400[data-v-9071f528]{background-color:#d8b401}.color-aux-yellow-500[data-v-9071f528]{color:#c5a001}.bg-aux-yellow-500[data-v-9071f528]{background-color:#c5a001}.color-aux-yellow-600[data-v-9071f528]{color:#b18d01}.bg-aux-yellow-600[data-v-9071f528]{background-color:#b18d01}.color-aux-yellow-700[data-v-9071f528]{color:#866701}.bg-aux-yellow-700[data-v-9071f528]{background-color:#866701}.color-aux-yellow-800[data-v-9071f528]{color:#5c4401}.bg-aux-yellow-800[data-v-9071f528]{background-color:#5c4401}.color-aux-yellow-900[data-v-9071f528]{color:#493401}.bg-aux-yellow-900[data-v-9071f528]{background-color:#493401}.color-aux-yellow-950[data-v-9071f528]{color:#493401}.bg-aux-yellow-950[data-v-9071f528]{background-color:#493401}.color-floweditor-blue[data-v-9071f528]{color:#0172a0}.bg-floweditor-blue[data-v-9071f528]{background-color:#0172a0}.color-floweditor-purple[data-v-9071f528]{color:#7225d2}.bg-floweditor-purple[data-v-9071f528]{background-color:#7225d2}.color-floweditor-wine[data-v-9071f528]{color:#af0956}.bg-floweditor-wine[data-v-9071f528]{background-color:#af0956}.color-floweditor-orange[data-v-9071f528]{color:#f78612}.bg-floweditor-orange[data-v-9071f528]{background-color:#f78612}.color-floweditor-pink[data-v-9071f528]{color:#ca226a}.bg-floweditor-pink[data-v-9071f528]{background-color:#ca226a}.color-floweditor-turquoise[data-v-9071f528]{color:#10b6af}.bg-floweditor-turquoise[data-v-9071f528]{background-color:#10b6af}.color-floweditor-green[data-v-9071f528]{color:#019213}.bg-floweditor-green[data-v-9071f528]{background-color:#019213}.color-weni-50[data-v-9071f528]{color:#e9faf8}.bg-weni-50[data-v-9071f528]{background-color:#e9faf8}.color-weni-100[data-v-9071f528]{color:#cff8f4}.bg-weni-100[data-v-9071f528]{background-color:#cff8f4}.color-weni-200[data-v-9071f528]{color:#8deae3}.bg-weni-200[data-v-9071f528]{background-color:#8deae3}.color-weni-300[data-v-9071f528]{color:#66dbd3}.bg-weni-300[data-v-9071f528]{background-color:#66dbd3}.color-weni-400[data-v-9071f528]{color:#40cac2}.bg-weni-400[data-v-9071f528]{background-color:#40cac2}.color-weni-500[data-v-9071f528]{color:#10b6af}.bg-weni-500[data-v-9071f528]{background-color:#10b6af}.color-weni-600[data-v-9071f528]{color:#01a29b}.bg-weni-600[data-v-9071f528]{background-color:#01a29b}.color-weni-700[data-v-9071f528]{color:#017873}.bg-weni-700[data-v-9071f528]{background-color:#017873}.color-weni-800[data-v-9071f528]{color:#0d504d}.bg-weni-800[data-v-9071f528]{background-color:#0d504d}.color-weni-900[data-v-9071f528]{color:#133d3b}.bg-weni-900[data-v-9071f528]{background-color:#133d3b}.color-weni-950[data-v-9071f528]{color:#133d3b}.bg-weni-950[data-v-9071f528]{background-color:#133d3b}.color-brand-weni[data-v-9071f528]{color:#01a29b}.bg-brand-weni[data-v-9071f528]{background-color:#01a29b}.color-brand-weni-dark[data-v-9071f528]{color:#0d504d}.bg-brand-weni-dark[data-v-9071f528]{background-color:#0d504d}.color-brand-weni-soft[data-v-9071f528]{color:#01a29b}.bg-brand-weni-soft[data-v-9071f528]{background-color:#01a29b}.color-brand-sec-dark[data-v-9071f528]{color:#1f1f1f}.bg-brand-sec-dark[data-v-9071f528]{background-color:#1f1f1f}.color-brand-sec-soft[data-v-9071f528]{color:#3d3d3d}.bg-brand-sec-soft[data-v-9071f528]{background-color:#3d3d3d}.color-brand-sec[data-v-9071f528]{color:#999}.bg-brand-sec[data-v-9071f528]{background-color:#999}.u.color-background-solo[data-v-9071f528]{color:var(--unnnic-color-bg-accent-plain)}.u.bg-background-solo[data-v-9071f528]{background-color:var(--unnnic-color-bg-accent-plain)}.u.color-background-sky[data-v-9071f528]{color:var(--unnnic-color-bg-base-soft)}.u.bg-background-sky[data-v-9071f528]{background-color:var(--unnnic-color-bg-base-soft)}.u.color-background-grass[data-v-9071f528]{color:var(--unnnic-color-bg-base-soft)}.u.bg-background-grass[data-v-9071f528]{background-color:var(--unnnic-color-bg-base-soft)}.u.color-background-carpet[data-v-9071f528]{color:var(--unnnic-color-bg-base-soft)}.u.bg-background-carpet[data-v-9071f528]{background-color:var(--unnnic-color-bg-base-soft)}.u.color-background-snow[data-v-9071f528]{color:var(--unnnic-color-bg-base)}.u.bg-background-snow[data-v-9071f528]{background-color:var(--unnnic-color-bg-base)}.u.color-background-lightest[data-v-9071f528]{color:var(--unnnic-color-bg-base-soft)}.u.bg-background-lightest[data-v-9071f528]{background-color:var(--unnnic-color-bg-base-soft)}.u.color-background-white[data-v-9071f528]{color:var(--unnnic-color-bg-base)}.u.bg-background-white[data-v-9071f528]{background-color:var(--unnnic-color-bg-base)}.u.color-neutral-black[data-v-9071f528]{color:#1f1f1f}.u.bg-neutral-black[data-v-9071f528]{background-color:#1f1f1f}.u.color-neutral-darkest[data-v-9071f528]{color:#1f1f1f}.u.bg-neutral-darkest[data-v-9071f528]{background-color:#1f1f1f}.u.color-neutral-dark[data-v-9071f528]{color:#3d3d3d}.u.bg-neutral-dark[data-v-9071f528]{background-color:#3d3d3d}.u.color-neutral-cloudy[data-v-9071f528]{color:#3d3d3d}.u.bg-neutral-cloudy[data-v-9071f528]{background-color:#3d3d3d}.u.color-neutral-cleanest[data-v-9071f528]{color:#999}.u.bg-neutral-cleanest[data-v-9071f528]{background-color:#999}.u.color-neutral-clean[data-v-9071f528]{color:#3d3d3d}.u.bg-neutral-clean[data-v-9071f528]{background-color:#3d3d3d}.u.color-neutral-soft[data-v-9071f528]{color:#e0e0e0}.u.bg-neutral-soft[data-v-9071f528]{background-color:#e0e0e0}.u.color-neutral-lightest[data-v-9071f528]{color:#f5f5f5}.u.bg-neutral-lightest[data-v-9071f528]{background-color:#f5f5f5}.u.color-neutral-light[data-v-9071f528]{color:#ebebeb}.u.bg-neutral-light[data-v-9071f528]{background-color:#ebebeb}.u.color-neutral-white[data-v-9071f528]{color:#fff}.u.bg-neutral-white[data-v-9071f528]{background-color:#fff}.u.color-neutral-snow[data-v-9071f528]{color:var(--unnnic-color-bg-base)}.u.bg-neutral-snow[data-v-9071f528]{background-color:var(--unnnic-color-bg-base)}.u.color-feedback-red[data-v-9071f528]{color:#f95d47}.u.bg-feedback-red[data-v-9071f528]{background-color:#f95d47}.u.color-feedback-green[data-v-9071f528]{color:#4fd051}.u.bg-feedback-green[data-v-9071f528]{background-color:#4fd051}.u.color-feedback-yellow[data-v-9071f528]{color:#ffa138}.u.bg-feedback-yellow[data-v-9071f528]{background-color:#ffa138}.u.color-feedback-blue[data-v-9071f528]{color:#157bf4}.u.bg-feedback-blue[data-v-9071f528]{background-color:#157bf4}.u.color-feedback-grey[data-v-9071f528]{color:#ebebeb}.u.bg-feedback-grey[data-v-9071f528]{background-color:#ebebeb}.u.color-aux-blue[data-v-9071f528]{color:#66dbd3}.u.bg-aux-blue[data-v-9071f528]{background-color:#66dbd3}.u.color-aux-purple[data-v-9071f528]{color:#883ce6}.u.bg-aux-purple[data-v-9071f528]{background-color:#883ce6}.u.color-aux-orange[data-v-9071f528]{color:#f78612}.u.bg-aux-orange[data-v-9071f528]{background-color:#f78612}.u.color-aux-lemon[data-v-9071f528]{color:#fade1e}.u.bg-aux-lemon[data-v-9071f528]{background-color:#fade1e}.u.color-aux-pink[data-v-9071f528]{color:#ca226a}.u.bg-aux-pink[data-v-9071f528]{background-color:#ca226a}.u.color-aux-baby-blue[data-v-9071f528]{color:#89e8fb}.u.bg-aux-baby-blue[data-v-9071f528]{background-color:#89e8fb}.u.color-aux-baby-yellow[data-v-9071f528]{color:#fdf5ad}.u.bg-aux-baby-yellow[data-v-9071f528]{background-color:#fdf5ad}.u.color-aux-baby-red[data-v-9071f528]{color:#ff9e8b}.u.bg-aux-baby-red[data-v-9071f528]{background-color:#ff9e8b}.u.color-aux-baby-green[data-v-9071f528]{color:#aff79e}.u.bg-aux-baby-green[data-v-9071f528]{background-color:#aff79e}.u.color-aux-baby-pink[data-v-9071f528]{color:#ffc8dc}.u.bg-aux-baby-pink[data-v-9071f528]{background-color:#ffc8dc}.u.color-aux-green-50[data-v-9071f528]{color:#e9fce3}.u.bg-aux-green-50[data-v-9071f528]{background-color:#e9fce3}.u.color-aux-green-100[data-v-9071f528]{color:#cefdc0}.u.bg-aux-green-100[data-v-9071f528]{background-color:#cefdc0}.u.color-aux-green-200[data-v-9071f528]{color:#97ef86}.u.bg-aux-green-200[data-v-9071f528]{background-color:#97ef86}.u.color-aux-green-300[data-v-9071f528]{color:#74e26c}.u.bg-aux-green-300[data-v-9071f528]{background-color:#74e26c}.u.color-aux-green-400[data-v-9071f528]{color:#4fd051}.u.bg-aux-green-400[data-v-9071f528]{background-color:#4fd051}.u.color-aux-green-500[data-v-9071f528]{color:#28bc37}.u.bg-aux-green-500[data-v-9071f528]{background-color:#28bc37}.u.color-aux-green-600[data-v-9071f528]{color:#08a822}.u.bg-aux-green-600[data-v-9071f528]{background-color:#08a822}.u.color-aux-green-700[data-v-9071f528]{color:#017d10}.u.bg-aux-green-700[data-v-9071f528]{background-color:#017d10}.u.color-aux-green-800[data-v-9071f528]{color:#01540e}.u.bg-aux-green-800[data-v-9071f528]{background-color:#01540e}.u.color-aux-green-900[data-v-9071f528]{color:#01410b}.u.bg-aux-green-900[data-v-9071f528]{background-color:#01410b}.u.color-aux-green-950[data-v-9071f528]{color:#01410b}.u.bg-aux-green-950[data-v-9071f528]{background-color:#01410b}.u.color-aux-blue-50[data-v-9071f528]{color:#f1f8fd}.u.bg-aux-blue-50[data-v-9071f528]{background-color:#f1f8fd}.u.color-aux-blue-100[data-v-9071f528]{color:#e1f3ff}.u.bg-aux-blue-100[data-v-9071f528]{background-color:#e1f3ff}.u.color-aux-blue-200[data-v-9071f528]{color:#b6dfff}.u.bg-aux-blue-200[data-v-9071f528]{background-color:#b6dfff}.u.color-aux-blue-300[data-v-9071f528]{color:#97cffe}.u.bg-aux-blue-300[data-v-9071f528]{background-color:#97cffe}.u.color-aux-blue-400[data-v-9071f528]{color:#79bcfb}.u.bg-aux-blue-400[data-v-9071f528]{background-color:#79bcfb}.u.color-aux-blue-500[data-v-9071f528]{color:#5aa8f7}.u.bg-aux-blue-500[data-v-9071f528]{background-color:#5aa8f7}.u.color-aux-blue-600[data-v-9071f528]{color:#3993f4}.u.bg-aux-blue-600[data-v-9071f528]{background-color:#3993f4}.u.color-aux-blue-700[data-v-9071f528]{color:#0366dd}.u.bg-aux-blue-700[data-v-9071f528]{background-color:#0366dd}.u.color-aux-blue-800[data-v-9071f528]{color:#014592}.u.bg-aux-blue-800[data-v-9071f528]{background-color:#014592}.u.color-aux-blue-900[data-v-9071f528]{color:#013672}.u.bg-aux-blue-900[data-v-9071f528]{background-color:#013672}.u.color-aux-blue-950[data-v-9071f528]{color:#013672}.u.bg-aux-blue-950[data-v-9071f528]{background-color:#013672}.u.color-aux-purple-50[data-v-9071f528]{color:#f9f5fd}.u.bg-aux-purple-50[data-v-9071f528]{background-color:#f9f5fd}.u.color-aux-purple-100[data-v-9071f528]{color:#f5eafe}.u.bg-aux-purple-100[data-v-9071f528]{background-color:#f5eafe}.u.color-aux-purple-200[data-v-9071f528]{color:#e5cffe}.u.bg-aux-purple-200[data-v-9071f528]{background-color:#e5cffe}.u.color-aux-purple-300[data-v-9071f528]{color:#dabafd}.u.bg-aux-purple-300[data-v-9071f528]{background-color:#dabafd}.u.color-aux-purple-400[data-v-9071f528]{color:#cba3fc}.u.bg-aux-purple-400[data-v-9071f528]{background-color:#cba3fc}.u.color-aux-purple-500[data-v-9071f528]{color:#bc8afb}.u.bg-aux-purple-500[data-v-9071f528]{background-color:#bc8afb}.u.color-aux-purple-600[data-v-9071f528]{color:#ad71f8}.u.bg-aux-purple-600[data-v-9071f528]{background-color:#ad71f8}.u.color-aux-purple-700[data-v-9071f528]{color:#883ce6}.u.bg-aux-purple-700[data-v-9071f528]{background-color:#883ce6}.u.color-aux-purple-800[data-v-9071f528]{color:#5c12b6}.u.bg-aux-purple-800[data-v-9071f528]{background-color:#5c12b6}.u.color-aux-purple-900[data-v-9071f528]{color:#460b93}.u.bg-aux-purple-900[data-v-9071f528]{background-color:#460b93}.u.color-aux-purple-950[data-v-9071f528]{color:#460b93}.u.bg-aux-purple-950[data-v-9071f528]{background-color:#460b93}.u.color-aux-red-50[data-v-9071f528]{color:#fdf6f5}.u.bg-aux-red-50[data-v-9071f528]{background-color:#fdf6f5}.u.color-aux-red-100[data-v-9071f528]{color:#ffedea}.u.bg-aux-red-100[data-v-9071f528]{background-color:#ffedea}.u.color-aux-red-200[data-v-9071f528]{color:#ffd0c7}.u.bg-aux-red-200[data-v-9071f528]{background-color:#ffd0c7}.u.color-aux-red-300[data-v-9071f528]{color:#ffbbad}.u.bg-aux-red-300[data-v-9071f528]{background-color:#ffbbad}.u.color-aux-red-400[data-v-9071f528]{color:#ff9e8b}.u.bg-aux-red-400[data-v-9071f528]{background-color:#ff9e8b}.u.color-aux-red-500[data-v-9071f528]{color:#ff7f68}.u.bg-aux-red-500[data-v-9071f528]{background-color:#ff7f68}.u.color-aux-red-600[data-v-9071f528]{color:#f95d47}.u.bg-aux-red-600[data-v-9071f528]{background-color:#f95d47}.u.color-aux-red-700[data-v-9071f528]{color:#d31a15}.u.bg-aux-red-700[data-v-9071f528]{background-color:#d31a15}.u.color-aux-red-800[data-v-9071f528]{color:#940303}.u.bg-aux-red-800[data-v-9071f528]{background-color:#940303}.u.color-aux-red-900[data-v-9071f528]{color:#720000}.u.bg-aux-red-900[data-v-9071f528]{background-color:#720000}.u.color-aux-red-950[data-v-9071f528]{color:#720000}.u.bg-aux-red-950[data-v-9071f528]{background-color:#720000}.u.color-aux-orange-50[data-v-9071f528]{color:#fdf5e9}.u.bg-aux-orange-50[data-v-9071f528]{background-color:#fdf5e9}.u.color-aux-orange-100[data-v-9071f528]{color:#ffedcd}.u.bg-aux-orange-100[data-v-9071f528]{background-color:#ffedcd}.u.color-aux-orange-200[data-v-9071f528]{color:#fed392}.u.bg-aux-orange-200[data-v-9071f528]{background-color:#fed392}.u.color-aux-orange-300[data-v-9071f528]{color:#febc64}.u.bg-aux-orange-300[data-v-9071f528]{background-color:#febc64}.u.color-aux-orange-400[data-v-9071f528]{color:#ffa138}.u.bg-aux-orange-400[data-v-9071f528]{background-color:#ffa138}.u.color-aux-orange-500[data-v-9071f528]{color:#f78612}.u.bg-aux-orange-500[data-v-9071f528]{background-color:#f78612}.u.color-aux-orange-600[data-v-9071f528]{color:#e57001}.u.bg-aux-orange-600[data-v-9071f528]{background-color:#e57001}.u.color-aux-orange-700[data-v-9071f528]{color:#b24d01}.u.bg-aux-orange-700[data-v-9071f528]{background-color:#b24d01}.u.color-aux-orange-800[data-v-9071f528]{color:#7b3001}.u.bg-aux-orange-800[data-v-9071f528]{background-color:#7b3001}.u.color-aux-orange-900[data-v-9071f528]{color:#622401}.u.bg-aux-orange-900[data-v-9071f528]{background-color:#622401}.u.color-aux-orange-950[data-v-9071f528]{color:#622401}.u.bg-aux-orange-950[data-v-9071f528]{background-color:#622401}.u.color-aux-yellow-50[data-v-9071f528]{color:#fbf7d4}.u.bg-aux-yellow-50[data-v-9071f528]{background-color:#fbf7d4}.u.color-aux-yellow-100[data-v-9071f528]{color:#fdf5ad}.u.bg-aux-yellow-100[data-v-9071f528]{background-color:#fdf5ad}.u.color-aux-yellow-200[data-v-9071f528]{color:#fade1e}.u.bg-aux-yellow-200[data-v-9071f528]{background-color:#fade1e}.u.color-aux-yellow-300[data-v-9071f528]{color:#e9c701}.u.bg-aux-yellow-300[data-v-9071f528]{background-color:#e9c701}.u.color-aux-yellow-400[data-v-9071f528]{color:#d8b401}.u.bg-aux-yellow-400[data-v-9071f528]{background-color:#d8b401}.u.color-aux-yellow-500[data-v-9071f528]{color:#c5a001}.u.bg-aux-yellow-500[data-v-9071f528]{background-color:#c5a001}.u.color-aux-yellow-600[data-v-9071f528]{color:#b18d01}.u.bg-aux-yellow-600[data-v-9071f528]{background-color:#b18d01}.u.color-aux-yellow-700[data-v-9071f528]{color:#866701}.u.bg-aux-yellow-700[data-v-9071f528]{background-color:#866701}.u.color-aux-yellow-800[data-v-9071f528]{color:#5c4401}.u.bg-aux-yellow-800[data-v-9071f528]{background-color:#5c4401}.u.color-aux-yellow-900[data-v-9071f528]{color:#493401}.u.bg-aux-yellow-900[data-v-9071f528]{background-color:#493401}.u.color-aux-yellow-950[data-v-9071f528]{color:#493401}.u.bg-aux-yellow-950[data-v-9071f528]{background-color:#493401}.u.color-floweditor-blue[data-v-9071f528]{color:#0172a0}.u.bg-floweditor-blue[data-v-9071f528]{background-color:#0172a0}.u.color-floweditor-purple[data-v-9071f528]{color:#7225d2}.u.bg-floweditor-purple[data-v-9071f528]{background-color:#7225d2}.u.color-floweditor-wine[data-v-9071f528]{color:#af0956}.u.bg-floweditor-wine[data-v-9071f528]{background-color:#af0956}.u.color-floweditor-orange[data-v-9071f528]{color:#f78612}.u.bg-floweditor-orange[data-v-9071f528]{background-color:#f78612}.u.color-floweditor-pink[data-v-9071f528]{color:#ca226a}.u.bg-floweditor-pink[data-v-9071f528]{background-color:#ca226a}.u.color-floweditor-turquoise[data-v-9071f528]{color:#10b6af}.u.bg-floweditor-turquoise[data-v-9071f528]{background-color:#10b6af}.u.color-floweditor-green[data-v-9071f528]{color:#019213}.u.bg-floweditor-green[data-v-9071f528]{background-color:#019213}.u.color-weni-50[data-v-9071f528]{color:#e9faf8}.u.bg-weni-50[data-v-9071f528]{background-color:#e9faf8}.u.color-weni-100[data-v-9071f528]{color:#cff8f4}.u.bg-weni-100[data-v-9071f528]{background-color:#cff8f4}.u.color-weni-200[data-v-9071f528]{color:#8deae3}.u.bg-weni-200[data-v-9071f528]{background-color:#8deae3}.u.color-weni-300[data-v-9071f528]{color:#66dbd3}.u.bg-weni-300[data-v-9071f528]{background-color:#66dbd3}.u.color-weni-400[data-v-9071f528]{color:#40cac2}.u.bg-weni-400[data-v-9071f528]{background-color:#40cac2}.u.color-weni-500[data-v-9071f528]{color:#10b6af}.u.bg-weni-500[data-v-9071f528]{background-color:#10b6af}.u.color-weni-600[data-v-9071f528]{color:#01a29b}.u.bg-weni-600[data-v-9071f528]{background-color:#01a29b}.u.color-weni-700[data-v-9071f528]{color:#017873}.u.bg-weni-700[data-v-9071f528]{background-color:#017873}.u.color-weni-800[data-v-9071f528]{color:#0d504d}.u.bg-weni-800[data-v-9071f528]{background-color:#0d504d}.u.color-weni-900[data-v-9071f528]{color:#133d3b}.u.bg-weni-900[data-v-9071f528]{background-color:#133d3b}.u.color-weni-950[data-v-9071f528]{color:#133d3b}.u.bg-weni-950[data-v-9071f528]{background-color:#133d3b}.u.color-brand-weni[data-v-9071f528]{color:#01a29b}.u.bg-brand-weni[data-v-9071f528]{background-color:#01a29b}.u.color-brand-weni-dark[data-v-9071f528]{color:#0d504d}.u.bg-brand-weni-dark[data-v-9071f528]{background-color:#0d504d}.u.color-brand-weni-soft[data-v-9071f528]{color:#01a29b}.u.bg-brand-weni-soft[data-v-9071f528]{background-color:#01a29b}.u.color-brand-sec-dark[data-v-9071f528]{color:#1f1f1f}.u.bg-brand-sec-dark[data-v-9071f528]{background-color:#1f1f1f}.u.color-brand-sec-soft[data-v-9071f528]{color:#3d3d3d}.u.bg-brand-sec-soft[data-v-9071f528]{background-color:#3d3d3d}.u.color-brand-sec[data-v-9071f528]{color:#999}.u.bg-brand-sec[data-v-9071f528]{background-color:#999}.unnnic-multi-select__option-group[data-v-9071f528]{display:flex;flex-direction:column;gap:16px}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import t from "./MultiSelectTreeOptions.vue2.mjs";
|
|
2
|
-
import './MultiSelectTreeOptions.css';/* empty css */
|
|
3
|
-
import o from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-9071f528"]]);
|
|
5
|
-
export {
|
|
6
|
-
p as default
|
|
7
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as n, createElementBlock as i, Fragment as c, renderList as p, createBlock as x } from "vue";
|
|
2
|
-
import f from "./MultiSelectOption.vue.mjs";
|
|
3
|
-
const _ = {
|
|
4
|
-
class: "unnnic-multi-select__options",
|
|
5
|
-
role: "tree",
|
|
6
|
-
"aria-multiselectable": "true"
|
|
7
|
-
}, k = /* @__PURE__ */ m({
|
|
8
|
-
name: "UnnnicMultiSelectTreeOptions",
|
|
9
|
-
__name: "MultiSelectTreeOptions",
|
|
10
|
-
props: {
|
|
11
|
-
groups: {},
|
|
12
|
-
itemLabel: {},
|
|
13
|
-
itemValue: {},
|
|
14
|
-
focusedIndex: {}
|
|
15
|
-
},
|
|
16
|
-
emits: ["select", "expand"],
|
|
17
|
-
setup(s, { emit: r }) {
|
|
18
|
-
const t = s, d = r;
|
|
19
|
-
function u(a) {
|
|
20
|
-
return a === "less" ? "mixed" : a ? "true" : "false";
|
|
21
|
-
}
|
|
22
|
-
return (a, h) => (n(), i("div", _, [
|
|
23
|
-
(n(!0), i(c, null, p(t.groups, (o) => (n(), i("div", {
|
|
24
|
-
key: String(o[0].option[t.itemValue]),
|
|
25
|
-
class: "unnnic-multi-select__option-group"
|
|
26
|
-
}, [
|
|
27
|
-
(n(!0), i(c, null, p(o, (e) => (n(), x(f, {
|
|
28
|
-
key: String(e.option[t.itemValue]),
|
|
29
|
-
"data-option-index": e.index,
|
|
30
|
-
label: String(e.option[t.itemLabel] ?? ""),
|
|
31
|
-
active: e.checkState,
|
|
32
|
-
focused: t.focusedIndex === e.index,
|
|
33
|
-
disabled: e.option.disabled,
|
|
34
|
-
level: e.level,
|
|
35
|
-
expandable: e.hasChildren,
|
|
36
|
-
expanded: e.isExpanded,
|
|
37
|
-
role: "treeitem",
|
|
38
|
-
"aria-level": e.level,
|
|
39
|
-
"aria-checked": u(e.checkState),
|
|
40
|
-
"aria-expanded": e.hasChildren ? e.isExpanded : void 0,
|
|
41
|
-
"onUpdate:modelValue": (l) => d("select", e.option, l),
|
|
42
|
-
"onUpdate:expanded": (l) => d("expand", e.option, l)
|
|
43
|
-
}, null, 8, ["data-option-index", "label", "active", "focused", "disabled", "level", "expandable", "expanded", "aria-level", "aria-checked", "aria-expanded", "onUpdate:modelValue", "onUpdate:expanded"]))), 128))
|
|
44
|
-
]))), 128))
|
|
45
|
-
]));
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
export {
|
|
49
|
-
k as default
|
|
50
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { computed as c, toValue as w } from "vue";
|
|
2
|
-
import { getVisibleChildren as V } from "../lib/tree-selection.mjs";
|
|
3
|
-
import { useTreeExpansion as C } from "./useTreeExpansion.mjs";
|
|
4
|
-
function S(x, {
|
|
5
|
-
filteredOptions: h,
|
|
6
|
-
isSearchActive: m,
|
|
7
|
-
matchesSearch: E,
|
|
8
|
-
getCheckState: a
|
|
9
|
-
}) {
|
|
10
|
-
const i = C(m);
|
|
11
|
-
function s(n) {
|
|
12
|
-
return n[x.itemValue];
|
|
13
|
-
}
|
|
14
|
-
const l = c(() => {
|
|
15
|
-
let n = 0;
|
|
16
|
-
return w(h).map((e) => {
|
|
17
|
-
const r = V(e, E), u = r.length > 0, d = u && i.isExpanded(s(e)), p = {
|
|
18
|
-
option: e,
|
|
19
|
-
parent: null,
|
|
20
|
-
level: 1,
|
|
21
|
-
hasChildren: u,
|
|
22
|
-
isExpanded: d,
|
|
23
|
-
checkState: a(e),
|
|
24
|
-
index: n++
|
|
25
|
-
};
|
|
26
|
-
return d ? [
|
|
27
|
-
p,
|
|
28
|
-
...r.map(
|
|
29
|
-
(f) => ({
|
|
30
|
-
option: f,
|
|
31
|
-
parent: e,
|
|
32
|
-
level: 2,
|
|
33
|
-
hasChildren: !1,
|
|
34
|
-
isExpanded: !1,
|
|
35
|
-
checkState: a(f),
|
|
36
|
-
index: n++
|
|
37
|
-
})
|
|
38
|
-
)
|
|
39
|
-
] : [p];
|
|
40
|
-
});
|
|
41
|
-
}), t = c(() => l.value.flat());
|
|
42
|
-
function o(n, e) {
|
|
43
|
-
i.setExpanded(s(n), e);
|
|
44
|
-
}
|
|
45
|
-
function v(n) {
|
|
46
|
-
const e = t.value[n];
|
|
47
|
-
if (e != null && e.hasChildren) {
|
|
48
|
-
if (e.isExpanded) return n + 1;
|
|
49
|
-
o(e.option, !0);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function g(n) {
|
|
53
|
-
const e = t.value[n];
|
|
54
|
-
if (e) {
|
|
55
|
-
if (e.isExpanded) {
|
|
56
|
-
o(e.option, !1);
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (e.parent)
|
|
60
|
-
return t.value.findIndex((r) => r.option === e.parent);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return {
|
|
64
|
-
optionGroups: l,
|
|
65
|
-
visibleRows: t,
|
|
66
|
-
toggleExpanded: o,
|
|
67
|
-
resetExpanded: i.reset,
|
|
68
|
-
handleArrowRight: v,
|
|
69
|
-
handleArrowLeft: g
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
export {
|
|
73
|
-
S as useMultiSelectRows
|
|
74
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { computed as l } from "vue";
|
|
2
|
-
import { isTreeOptions as S, withImpliedChildren as h, getDisplayOptions as y, toggleOptionValue as b, getCheckState as C, flattenTreeOptions as I } from "../lib/tree-selection.mjs";
|
|
3
|
-
function k(e, f) {
|
|
4
|
-
const c = l(() => S(e.options));
|
|
5
|
-
function n(t) {
|
|
6
|
-
return t[e.itemValue];
|
|
7
|
-
}
|
|
8
|
-
const a = l(
|
|
9
|
-
() => Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]
|
|
10
|
-
), g = l(
|
|
11
|
-
() => e.returnObject ? a.value.map(n) : a.value
|
|
12
|
-
), r = l(
|
|
13
|
-
() => h(e.options, g.value, n)
|
|
14
|
-
), m = l(() => new Set(r.value));
|
|
15
|
-
function V(t) {
|
|
16
|
-
if (!e.returnObject) return t;
|
|
17
|
-
const o = [
|
|
18
|
-
...I(e.options),
|
|
19
|
-
...a.value
|
|
20
|
-
], i = new Map(o.map((u) => [n(u), u]));
|
|
21
|
-
return t.map((u) => i.get(u));
|
|
22
|
-
}
|
|
23
|
-
function s(t) {
|
|
24
|
-
return C(t, m.value, n);
|
|
25
|
-
}
|
|
26
|
-
function d(t, o) {
|
|
27
|
-
const i = b(
|
|
28
|
-
e.options,
|
|
29
|
-
r.value,
|
|
30
|
-
t,
|
|
31
|
-
o,
|
|
32
|
-
n
|
|
33
|
-
);
|
|
34
|
-
f("update:modelValue", V(i));
|
|
35
|
-
}
|
|
36
|
-
function v(t) {
|
|
37
|
-
t.disabled || d(t, s(t) !== !0);
|
|
38
|
-
}
|
|
39
|
-
const O = l(() => e.returnObject && !c.value ? e.modelValue : y(e.options, m.value, n));
|
|
40
|
-
return { isTreeMode: c, getCheckState: s, toggleOption: d, toggle: v, displayItems: O };
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
k as useMultiSelectSelection
|
|
44
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ref as d, watch as i, toValue as a } from "vue";
|
|
2
|
-
function h(t) {
|
|
3
|
-
const s = d(/* @__PURE__ */ new Set()), n = d(/* @__PURE__ */ new Set());
|
|
4
|
-
i(
|
|
5
|
-
() => a(t),
|
|
6
|
-
() => {
|
|
7
|
-
n.value = /* @__PURE__ */ new Set();
|
|
8
|
-
}
|
|
9
|
-
);
|
|
10
|
-
function u(e) {
|
|
11
|
-
return a(t) ? !n.value.has(e) : s.value.has(e);
|
|
12
|
-
}
|
|
13
|
-
function f(e, l = !u(e)) {
|
|
14
|
-
const r = a(t), c = r ? n : s, p = r ? !l : l, o = new Set(c.value);
|
|
15
|
-
p ? o.add(e) : o.delete(e), c.value = o;
|
|
16
|
-
}
|
|
17
|
-
function w() {
|
|
18
|
-
s.value = /* @__PURE__ */ new Set(), n.value = /* @__PURE__ */ new Set();
|
|
19
|
-
}
|
|
20
|
-
return { isExpanded: u, setExpanded: f, reset: w };
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
h as useTreeExpansion
|
|
24
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
function l(e) {
|
|
2
|
-
return Array.isArray(e.children) ? e.children : [];
|
|
3
|
-
}
|
|
4
|
-
function a(e) {
|
|
5
|
-
return l(e).length > 0;
|
|
6
|
-
}
|
|
7
|
-
function y(e) {
|
|
8
|
-
return e.some(a);
|
|
9
|
-
}
|
|
10
|
-
function C(e) {
|
|
11
|
-
return e.flatMap((t) => [t, ...l(t)]);
|
|
12
|
-
}
|
|
13
|
-
function o(e) {
|
|
14
|
-
const t = l(e), n = t.filter((i) => !i.disabled);
|
|
15
|
-
return n.length ? n : t;
|
|
16
|
-
}
|
|
17
|
-
function b(e, t) {
|
|
18
|
-
return e.filter(
|
|
19
|
-
(n) => t(n) || l(n).some(t)
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
function S(e, t) {
|
|
23
|
-
const n = l(e);
|
|
24
|
-
return t(e) ? n : n.filter(t);
|
|
25
|
-
}
|
|
26
|
-
function p(e, t, n) {
|
|
27
|
-
const i = new Set(t), r = e.filter((s) => i.has(n(s))).flatMap(l).filter((s) => !s.disabled && !i.has(n(s))).map(n);
|
|
28
|
-
return [...t, ...r];
|
|
29
|
-
}
|
|
30
|
-
function g(e, t, n) {
|
|
31
|
-
const i = (s) => t.has(n(s)), r = l(e);
|
|
32
|
-
return r.length ? o(e).every(i) ? !0 : r.some(i) ? "less" : !1 : i(e);
|
|
33
|
-
}
|
|
34
|
-
function O(e, t, n) {
|
|
35
|
-
const i = n(t);
|
|
36
|
-
return e.find(
|
|
37
|
-
(r) => l(r).some((s) => n(s) === i)
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
function m(e, t, n) {
|
|
41
|
-
const i = n(e), r = new Set(t), s = t.filter((c) => c !== i);
|
|
42
|
-
return o(e).every(
|
|
43
|
-
(c) => r.has(n(c))
|
|
44
|
-
) ? [...s, i] : s;
|
|
45
|
-
}
|
|
46
|
-
function w(e, t, n, i, r) {
|
|
47
|
-
const s = a(n), f = s ? n : O(e, n, r), h = (s ? l(n).filter((d) => !d.disabled) : [n]).map(r), u = t.filter((d) => !h.includes(d));
|
|
48
|
-
return i && u.push(...h), f ? m(f, u, r) : u;
|
|
49
|
-
}
|
|
50
|
-
function x(e, t, n) {
|
|
51
|
-
const i = (r) => t.has(n(r));
|
|
52
|
-
return e.flatMap((r) => a(r) ? g(r, t, n) === !0 ? [r] : l(r).filter(i) : i(r) ? [r] : []);
|
|
53
|
-
}
|
|
54
|
-
export {
|
|
55
|
-
b as filterTreeOptions,
|
|
56
|
-
C as flattenTreeOptions,
|
|
57
|
-
g as getCheckState,
|
|
58
|
-
x as getDisplayOptions,
|
|
59
|
-
o as getDrivingChildren,
|
|
60
|
-
l as getOptionChildren,
|
|
61
|
-
S as getVisibleChildren,
|
|
62
|
-
a as hasOptionChildren,
|
|
63
|
-
y as isTreeOptions,
|
|
64
|
-
w as toggleOptionValue,
|
|
65
|
-
p as withImpliedChildren
|
|
66
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="unnnic-multi-select__options"
|
|
4
|
-
role="tree"
|
|
5
|
-
aria-multiselectable="true"
|
|
6
|
-
>
|
|
7
|
-
<div
|
|
8
|
-
v-for="group in props.groups"
|
|
9
|
-
:key="String(group[0].option[props.itemValue])"
|
|
10
|
-
class="unnnic-multi-select__option-group"
|
|
11
|
-
>
|
|
12
|
-
<UnnnicMultiSelectOption
|
|
13
|
-
v-for="row in group"
|
|
14
|
-
:key="String(row.option[props.itemValue])"
|
|
15
|
-
:data-option-index="row.index"
|
|
16
|
-
:label="String(row.option[props.itemLabel] ?? '')"
|
|
17
|
-
:active="row.checkState"
|
|
18
|
-
:focused="props.focusedIndex === row.index"
|
|
19
|
-
:disabled="row.option.disabled"
|
|
20
|
-
:level="row.level"
|
|
21
|
-
:expandable="row.hasChildren"
|
|
22
|
-
:expanded="row.isExpanded"
|
|
23
|
-
role="treeitem"
|
|
24
|
-
:aria-level="row.level"
|
|
25
|
-
:aria-checked="toAriaChecked(row.checkState)"
|
|
26
|
-
:aria-expanded="row.hasChildren ? row.isExpanded : undefined"
|
|
27
|
-
@update:model-value="emit('select', row.option, $event)"
|
|
28
|
-
@update:expanded="emit('expand', row.option, $event)"
|
|
29
|
-
/>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
|
|
34
|
-
<script setup lang="ts">
|
|
35
|
-
import UnnnicMultiSelectOption from './MultiSelectOption.vue';
|
|
36
|
-
|
|
37
|
-
import type { OptionRow } from '../../composables/useMultiSelectRows';
|
|
38
|
-
import type { CheckboxValue } from '../Checkbox/Checkbox.vue';
|
|
39
|
-
import type { SelectOption } from '../Select/types';
|
|
40
|
-
|
|
41
|
-
defineOptions({
|
|
42
|
-
name: 'UnnnicMultiSelectTreeOptions',
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
interface MultiSelectTreeOptionsProps {
|
|
46
|
-
groups: OptionRow[][];
|
|
47
|
-
itemLabel: string;
|
|
48
|
-
itemValue: string;
|
|
49
|
-
focusedIndex: number;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const props = defineProps<MultiSelectTreeOptionsProps>();
|
|
53
|
-
|
|
54
|
-
const emit = defineEmits<{
|
|
55
|
-
select: [option: SelectOption, selected: boolean];
|
|
56
|
-
expand: [option: SelectOption, expanded: boolean];
|
|
57
|
-
}>();
|
|
58
|
-
|
|
59
|
-
function toAriaChecked(state: CheckboxValue) {
|
|
60
|
-
if (state === 'less') return 'mixed';
|
|
61
|
-
return state ? 'true' : 'false';
|
|
62
|
-
}
|
|
63
|
-
</script>
|
|
64
|
-
|
|
65
|
-
<style lang="scss" scoped>
|
|
66
|
-
@use '@/assets/scss/unnnic' as *;
|
|
67
|
-
|
|
68
|
-
.unnnic-multi-select__option-group {
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-direction: column;
|
|
71
|
-
gap: $unnnic-space-4;
|
|
72
|
-
}
|
|
73
|
-
</style>
|