aloha-vue 2.74.0 → 2.75.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/CHANGELOG.md +12 -0
- package/LICENSE +22 -21
- package/dist/aloha-vue.css +105 -105
- package/dist/aloha-vue.css.map +1 -1
- package/dist/aloha-vue.es.js +59267 -64918
- package/dist/aloha-vue.umd.js +338 -211
- package/package.json +27 -34
- package/scss/components/ATable.scss +2 -2
- package/scss/utils/button.scss +362 -362
- package/scss/utils/funktions.scss +162 -162
- package/src/AAccordion/AAccordionItem/AAccordionItem.js +235 -230
- package/src/ACarousel/ACarousel.js +7 -2
- package/src/ADropdown/ADropdown.js +4 -1
- package/src/AFilters/AFilterCenter/AFilterCenter.js +5 -1
- package/src/AFilters/AFilterCenter/AFilterCenterItem/AFilterCenterItem.js +7 -2
- package/src/AFilters/AFiltersHorizontal/AFiltersHorizontal.js +412 -396
- package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilter/AFiltersHorizontalFilter.js +102 -99
- package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersSavedDeleteAPI.js +108 -108
- package/src/AFilters/AFiltersMain/AFiltersMain.js +114 -111
- package/src/AFilters/AFiltersSaveModal/compositionAPI/SaveAPI.js +65 -65
- package/src/ALinkCopy/ALinkCopy.js +98 -95
- package/src/ALinkCopy/compositionAPI/CopyAPI.js +48 -48
- package/src/AList/__tests__/AList.test.js +33 -33
- package/src/AList/compositionAPI/__tests__/TagAPI.test.js +43 -43
- package/src/AMenu/AMenu.js +4 -1
- package/src/AMenu/AMenuBreadcrumbs/AMenuBreadcrumbs.js +240 -237
- package/src/AMenu/AMenuPanelLink/AMenuPanelLink.js +4 -1
- package/src/AMenu/AMenuSearchPanelBreadcrumbs/AMenuSearchPanelBreadcrumbs.js +122 -119
- package/src/AModalWizard/AModalWizard.js +58 -53
- package/src/AModalWizard/compositionAPI/__tests__/ScrollAPI.test.js +46 -46
- package/src/APagination/APaginationPages/APaginationPages.js +15 -4
- package/src/ARate/ARate.js +254 -249
- package/src/ARate/ARateIcon/ADecimalIcon/ADecimalIcon.js +53 -50
- package/src/ARate/ARateIcon/ARateIcon.js +109 -104
- package/src/AResizer/AResizer.js +167 -162
- package/src/ATable/ATableHeaderTh/compositionAPI/SortAPI.js +172 -167
- package/src/ATable/ATableHeaderThAction/ATableHeaderThAction.js +14 -4
- package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem/ATableHeaderThActionItem.js +191 -184
- package/src/ATable/ATablePreviewDown/ATablePreviewDown.js +72 -69
- package/src/ATable/ATablePreviewRight/ATablePreviewRight.js +265 -258
- package/src/ATable/ATableSortingAdditional/ATableSortingAdditional.js +224 -219
- package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.AttributesAPI.test.js +39 -39
- package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.ColumnsAPI.test.js +68 -68
- package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.DropdownAPI.test.js +45 -45
- package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.FormAPI.test.js +95 -95
- package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.ModelAPI.test.js +1 -1
- package/src/ATable/ATableTd/ATableTd.js +4 -1
- package/src/ATable/ATableTdAction/ATableTdAction.js +19 -12
- package/src/ATable/ATableTopPanel/ATableTopPanel.js +11 -3
- package/src/ATable/ATableTr/ATableTr.js +408 -405
- package/src/ATable/__tests__/ATable.HeaderSlot.test.js +102 -97
- package/src/ATable/__tests__/ATable.RowIdsAPI.test.js +66 -66
- package/src/ATableForm/ATableForm.js +88 -85
- package/src/ATableForm/ATableFormCellAction/ATableFormCellAction.js +14 -4
- package/src/ATableForm/ATableFormCellDnd/ATableFormCellDnd.js +196 -187
- package/src/ATableForm/ATableFormRow/compositionAPI/EditAPI.js +104 -104
- package/src/ATableForm/__tests__/ATableForm.DragAndDropAPI.test.js +200 -212
- package/src/ATableForm/__tests__/ATableForm.ListView.test.js +134 -174
- package/src/ATableForm/compositionAPI/IconsAPI.js +24 -21
- package/src/AVerticalScroll/AVerticalScroll.js +182 -177
- package/src/AWizard/AWizard.js +26 -21
- package/src/AWizard/AWizardStep/AWizardStep.js +275 -270
- package/src/AWizard/compositionAPI/__tests__/ChangeStepAPI.test.js +32 -32
- package/src/AWizard/compositionAPI/__tests__/LocalAPI.test.js +55 -55
- package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.js +646 -648
- package/src/PuxDatepicker/panel/PanelDate/PanelDate.js +300 -301
- package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.js +148 -149
- package/src/PuxDatepicker/panel/PanelTime/PanelTime.js +256 -257
- package/src/PuxDatepicker/panel/PanelYear/PanelYear.js +136 -137
- package/src/PuxDatepicker/utils/index.js +100 -100
- package/src/compositionAPI/AHttpAPI.js +593 -593
- package/src/compositionAPI/__tests__/AHttpAPI.test.js +42 -42
- package/src/filters/__tests__/filterBoolean.test.js +38 -38
- package/src/filters/__tests__/filterCapitalize.test.js +38 -38
- package/src/filters/__tests__/filterCurrency.test.js +21 -21
- package/src/filters/__tests__/filterDate.test.js +42 -42
- package/src/filters/__tests__/filterDefaultForEmpty.test.js +24 -24
- package/src/filters/__tests__/filterEmail.test.js +42 -42
- package/src/filters/__tests__/filterEscapeHtml.test.js +45 -45
- package/src/filters/__tests__/filterFileSize.test.js +45 -45
- package/src/filters/__tests__/filterFloat.test.js +74 -74
- package/src/filters/__tests__/filterJson.test.js +74 -74
- package/src/filters/__tests__/filterKeyValue.test.js +50 -50
- package/src/filters/__tests__/filterLimitTo.test.js +39 -39
- package/src/filters/__tests__/filterLink.test.js +41 -41
- package/src/filters/__tests__/filterList.test.js +149 -149
- package/src/filters/__tests__/filterLowerCase.test.js +38 -38
- package/src/filters/__tests__/filterMask.test.js +80 -80
- package/src/filters/__tests__/filterPropertyByValue.test.js +27 -27
- package/src/filters/__tests__/filterSearchHighlight.test.js +129 -129
- package/src/filters/__tests__/filterUpperCase.test.js +38 -38
- package/src/filters/__tests__/filterValueByCondition.test.js +3 -3
- package/src/filters/filterJson.js +39 -39
- package/src/filters/filterValueByCondition.js +2 -2
- package/src/plugins/AAlertPlugin.js +16 -5
- package/src/plugins/AMultiselectOrderedPlugin.js +88 -81
- package/src/plugins/ASelectPlugin.js +12 -10
- package/src/ui/ACheckbox/ACheckbox.js +82 -79
- package/src/ui/ADatepicker/ADatepicker.js +6 -5
- package/src/ui/ADatepicker/compositionAPI/EventsAPI.js +297 -297
- package/src/ui/ADatepicker/utils/index.js +76 -76
- package/src/ui/ADatepickerAlt/ADatepicker.js +912 -912
- package/src/ui/ADatepickerAlt/utils/index.js +98 -98
- package/src/ui/AFieldset/__tests__/AFieldset.ClassColumn.test.js +113 -114
- package/src/ui/AFormElementBtnClear/AFormElementBtnClear.js +4 -1
- package/src/ui/AInputCurrency/AInputCurrency.js +20 -15
- package/src/ui/AInputCurrency/__tests__/AInputCurrency.ModelAPI.test.js +73 -73
- package/src/ui/AInputNumber/AInputNumber.js +17 -12
- package/src/ui/AJson/AJson.js +12 -3
- package/src/ui/AJson/compositionAPI/JsonAPI.js +116 -116
- package/src/ui/ALabel/__tests__/ALabel.IdAPI.test.js +42 -42
- package/src/ui/ALabel/__tests__/ALabel.LabelAPI.test.js +33 -33
- package/src/ui/ARadio/ARadio.js +80 -77
- package/src/ui/ASelect/ASelect.js +390 -383
- package/src/ui/ASelect/ASelectElement/ASelectElement.js +179 -176
- package/src/ui/ASelect/ASelectValueCloseable/ASelectValueCloseable.js +143 -141
- package/src/ui/ASelect/__tests__/SelectedFirstAPI.test.js +101 -101
- package/src/ui/ASelect/__tests__/SelectedVisibleAPI.test.js +98 -98
- package/src/ui/ASlider/compositionAPI/SliderAPI.js +23 -23
- package/src/ui/AValidatedJson/AValidatedJson.js +4 -1
- package/src/ui/AValidatedJson/AValidatedJsonItem/AValidatedJsonItem.js +308 -298
- package/src/ui/compositionApi/UiCollapseAPI.js +68 -63
- package/src/ui/compositionApi/UiInputAutofillAPI.js +41 -41
- package/src/ui/compositionApi/__tests__/UIDataGroupAPI.test.js +106 -106
- package/src/ui/compositionApi/__tests__/UIExcludeRenderAttributesAPI.test.js +39 -39
- package/src/ui/compositionApi/__tests__/UiDataWithKeyIdAndLabelAPI.test.js +128 -128
- package/src/ui/compositionApi/__tests__/UiSearchAPI.test.js +71 -71
- package/src/utils/EventBus.js +51 -8
- package/src/utils/__tests__/EventBus.test.js +138 -0
- package/src/utils/__tests__/utils.aOrderBy.test.js +1 -1
- package/src/utils/__tests__/utils.aSortBy.test.js +1 -1
- package/src/utils/__tests__/utils.getTotalNestedCount.test.js +56 -56
- package/src/utils/__tests__/utils.isArrayOfArrays.test.js +44 -44
- package/src/utils/__tests__/utils.isArrayOfStrings.test.js +36 -36
- package/src/utils/__tests__/utilsArray.aFirst.test.js +1 -1
- package/src/utils/__tests__/utilsArray.aLast.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isArguments.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isArray.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isArrayBuffer.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isBoolean.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isBuffer.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isDate.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isElement.test.js +5 -3
- package/src/utils/__tests__/utilsLang.isError.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isFinite.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isFunction.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isInteger.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isMap.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isNaN.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isNil.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isNull.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isNumber.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isObject.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isObjectLike.test.js +5 -3
- package/src/utils/__tests__/utilsLang.isPlainObject.test.js +3 -2
- package/src/utils/__tests__/utilsLang.isPromise.test.js +5 -2
- package/src/utils/__tests__/utilsLang.isRegExp.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isSet.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isString.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isSymbol.test.js +5 -3
- package/src/utils/__tests__/utilsLang.isUndefined.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isWeakMap.test.js +1 -1
- package/src/utils/__tests__/utilsLang.isWeakSet.test.js +1 -1
- package/src/utils/__tests__/utilsMath.isEven.test.js +43 -43
- package/src/utils/__tests__/utilsMath.isOdd.test.js +43 -43
- package/src/utils/__tests__/utilsUi.isModelForFilterNotEmpty.test.js +65 -65
- package/src/utils/autosize.js +1 -1
|
@@ -1,68 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
computed,
|
|
3
|
-
h,
|
|
4
|
-
onBeforeUnmount,
|
|
5
|
-
onMounted,
|
|
6
|
-
ref,
|
|
7
|
-
Teleport,
|
|
8
|
-
toRef,
|
|
9
|
-
watch,
|
|
10
|
-
} from "vue";
|
|
11
|
-
import {
|
|
12
|
-
ACheckboxRadioGroups,
|
|
13
|
-
ACloak,
|
|
14
|
-
AElement,
|
|
15
|
-
AErrorsText,
|
|
16
|
-
AFormHelpText,
|
|
17
|
-
AFormLabelDescription,
|
|
18
|
-
AFormReadonly,
|
|
19
|
-
AIcon,
|
|
20
|
-
AInput,
|
|
21
|
-
AKeyId,
|
|
22
|
-
ALabel,
|
|
23
|
-
APlacements,
|
|
24
|
-
APopupAPI,
|
|
25
|
-
ATranslation,
|
|
26
|
-
UiAPI,
|
|
27
|
-
UiDataFromServerAPI,
|
|
28
|
-
UIDataGroupAPI,
|
|
29
|
-
UiDataSortAPI,
|
|
30
|
-
UiDataWatchEmitAPI,
|
|
31
|
-
UiDataWithKeyIdAndLabelAPI,
|
|
32
|
-
UIExcludeRenderAttributesAPI,
|
|
33
|
-
UiLabelClickEventBusAPI,
|
|
34
|
-
UiLoadingAPI,
|
|
35
|
-
UiSearchAPI,
|
|
36
|
-
UiStyleHideAPI,
|
|
37
|
-
} from "../../index";
|
|
38
|
-
|
|
39
|
-
import ASelectElement from "./ASelectElement/ASelectElement";
|
|
40
|
-
import ASelectLabelElement from "./ASelectLabelElement/ASelectLabelElement";
|
|
41
|
-
import ASelectValueCloseable from "./ASelectValueCloseable/ASelectValueCloseable";
|
|
42
|
-
|
|
43
|
-
import AttributesAPI from "./compositionAPI/AttributesAPI";
|
|
44
|
-
import DisabledAPI from "./compositionAPI/DisabledAPI";
|
|
45
|
-
import DividerAPI from "./compositionAPI/DividerAPI";
|
|
46
|
-
import ExclusiveOptionsAPI from "./compositionAPI/ExclusiveOptionsAPI";
|
|
47
|
-
import ModeAPI from "./compositionAPI/ModeAPI";
|
|
48
|
-
import ModelAPI from "./compositionAPI/ModelAPI";
|
|
49
|
-
import ModelChangeAPI from "./compositionAPI/ModelChangeAPI";
|
|
50
|
-
import PopperContainerAPI from "../../ATooltip/compositionAPI/PopperContainerAPI";
|
|
51
|
-
import SelectedFirstAPI from "./compositionAPI/SelectedFirstAPI";
|
|
52
|
-
import SelectedTitleAPI from "./compositionAPI/SelectedTitleAPI";
|
|
53
|
-
import SelectedVisibleAPI from "./compositionAPI/SelectedVisibleAPI";
|
|
54
|
-
import ToggleAPI from "./compositionAPI/ToggleAPI";
|
|
55
|
-
|
|
56
|
-
import
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
import {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
1
|
+
import {
|
|
2
|
+
computed,
|
|
3
|
+
h,
|
|
4
|
+
onBeforeUnmount,
|
|
5
|
+
onMounted,
|
|
6
|
+
ref,
|
|
7
|
+
Teleport,
|
|
8
|
+
toRef,
|
|
9
|
+
watch,
|
|
10
|
+
} from "vue";
|
|
11
|
+
import {
|
|
12
|
+
ACheckboxRadioGroups,
|
|
13
|
+
ACloak,
|
|
14
|
+
AElement,
|
|
15
|
+
AErrorsText,
|
|
16
|
+
AFormHelpText,
|
|
17
|
+
AFormLabelDescription,
|
|
18
|
+
AFormReadonly,
|
|
19
|
+
AIcon,
|
|
20
|
+
AInput,
|
|
21
|
+
AKeyId,
|
|
22
|
+
ALabel,
|
|
23
|
+
APlacements,
|
|
24
|
+
APopupAPI,
|
|
25
|
+
ATranslation,
|
|
26
|
+
UiAPI,
|
|
27
|
+
UiDataFromServerAPI,
|
|
28
|
+
UIDataGroupAPI,
|
|
29
|
+
UiDataSortAPI,
|
|
30
|
+
UiDataWatchEmitAPI,
|
|
31
|
+
UiDataWithKeyIdAndLabelAPI,
|
|
32
|
+
UIExcludeRenderAttributesAPI,
|
|
33
|
+
UiLabelClickEventBusAPI,
|
|
34
|
+
UiLoadingAPI,
|
|
35
|
+
UiSearchAPI,
|
|
36
|
+
UiStyleHideAPI,
|
|
37
|
+
} from "../../index";
|
|
38
|
+
|
|
39
|
+
import ASelectElement from "./ASelectElement/ASelectElement";
|
|
40
|
+
import ASelectLabelElement from "./ASelectLabelElement/ASelectLabelElement";
|
|
41
|
+
import ASelectValueCloseable from "./ASelectValueCloseable/ASelectValueCloseable";
|
|
42
|
+
|
|
43
|
+
import AttributesAPI from "./compositionAPI/AttributesAPI";
|
|
44
|
+
import DisabledAPI from "./compositionAPI/DisabledAPI";
|
|
45
|
+
import DividerAPI from "./compositionAPI/DividerAPI";
|
|
46
|
+
import ExclusiveOptionsAPI from "./compositionAPI/ExclusiveOptionsAPI";
|
|
47
|
+
import ModeAPI from "./compositionAPI/ModeAPI";
|
|
48
|
+
import ModelAPI from "./compositionAPI/ModelAPI";
|
|
49
|
+
import ModelChangeAPI from "./compositionAPI/ModelChangeAPI";
|
|
50
|
+
import PopperContainerAPI from "../../ATooltip/compositionAPI/PopperContainerAPI";
|
|
51
|
+
import SelectedFirstAPI from "./compositionAPI/SelectedFirstAPI";
|
|
52
|
+
import SelectedTitleAPI from "./compositionAPI/SelectedTitleAPI";
|
|
53
|
+
import SelectedVisibleAPI from "./compositionAPI/SelectedVisibleAPI";
|
|
54
|
+
import ToggleAPI from "./compositionAPI/ToggleAPI";
|
|
55
|
+
|
|
56
|
+
import {
|
|
57
|
+
ASelectPluginOptions,
|
|
58
|
+
} from "../../plugins/ASelectPlugin";
|
|
59
|
+
import {
|
|
60
|
+
take,
|
|
61
|
+
uniqueId,
|
|
62
|
+
} from "lodash-es";
|
|
63
|
+
|
|
64
|
+
const CheckLg = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-check-lg" viewBox="0 0 16 16">
|
|
65
|
+
<path d="M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z"/>
|
|
66
|
+
</svg>`;
|
|
67
|
+
const Search = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16">
|
|
68
|
+
<path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0"/>
|
|
69
|
+
</svg>`;
|
|
70
|
+
const XLg = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-lg" viewBox="0 0 16 16">
|
|
71
|
+
<path d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"/>
|
|
72
|
+
</svg>`;
|
|
66
73
|
|
|
67
74
|
export default {
|
|
68
75
|
name: "ASelect",
|
|
@@ -122,17 +129,17 @@ export default {
|
|
|
122
129
|
required: false,
|
|
123
130
|
default: undefined,
|
|
124
131
|
},
|
|
125
|
-
dataExtra: {
|
|
126
|
-
type: Array,
|
|
127
|
-
required: false,
|
|
128
|
-
default: () => ASelectPluginOptions.propsDefault.dataExtra,
|
|
129
|
-
},
|
|
130
|
-
mergeData: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
required: false,
|
|
133
|
-
default: false,
|
|
134
|
-
},
|
|
135
|
-
dependencies: {
|
|
132
|
+
dataExtra: {
|
|
133
|
+
type: Array,
|
|
134
|
+
required: false,
|
|
135
|
+
default: () => ASelectPluginOptions.propsDefault.dataExtra,
|
|
136
|
+
},
|
|
137
|
+
mergeData: {
|
|
138
|
+
type: Boolean,
|
|
139
|
+
required: false,
|
|
140
|
+
default: false,
|
|
141
|
+
},
|
|
142
|
+
dependencies: {
|
|
136
143
|
type: [Array, Object],
|
|
137
144
|
required: false,
|
|
138
145
|
default: undefined,
|
|
@@ -452,16 +459,16 @@ export default {
|
|
|
452
459
|
required: false,
|
|
453
460
|
default: undefined,
|
|
454
461
|
},
|
|
455
|
-
showNotFound: {
|
|
456
|
-
type: Boolean,
|
|
457
|
-
required: false,
|
|
458
|
-
default: () => ASelectPluginOptions.propsDefault.showNotFound,
|
|
459
|
-
},
|
|
460
|
-
showSelectedFirst: {
|
|
461
|
-
type: Boolean,
|
|
462
|
-
required: false,
|
|
463
|
-
default: () => ASelectPluginOptions.propsDefault.showSelectedFirst,
|
|
464
|
-
},
|
|
462
|
+
showNotFound: {
|
|
463
|
+
type: Boolean,
|
|
464
|
+
required: false,
|
|
465
|
+
default: () => ASelectPluginOptions.propsDefault.showNotFound,
|
|
466
|
+
},
|
|
467
|
+
showSelectedFirst: {
|
|
468
|
+
type: Boolean,
|
|
469
|
+
required: false,
|
|
470
|
+
default: () => ASelectPluginOptions.propsDefault.showSelectedFirst,
|
|
471
|
+
},
|
|
465
472
|
slotName: {
|
|
466
473
|
type: String,
|
|
467
474
|
required: false,
|
|
@@ -489,16 +496,16 @@ export default {
|
|
|
489
496
|
required: false,
|
|
490
497
|
default: () => ASelectPluginOptions.propsDefault.textSelectAll,
|
|
491
498
|
},
|
|
492
|
-
translateData: {
|
|
493
|
-
type: Boolean,
|
|
494
|
-
required: false,
|
|
495
|
-
default: () => ASelectPluginOptions.propsDefault.translateData,
|
|
496
|
-
},
|
|
497
|
-
translateGroup: {
|
|
498
|
-
type: Boolean,
|
|
499
|
-
required: false,
|
|
500
|
-
default: () => ASelectPluginOptions.propsDefault.translateGroup,
|
|
501
|
-
},
|
|
499
|
+
translateData: {
|
|
500
|
+
type: Boolean,
|
|
501
|
+
required: false,
|
|
502
|
+
default: () => ASelectPluginOptions.propsDefault.translateData,
|
|
503
|
+
},
|
|
504
|
+
translateGroup: {
|
|
505
|
+
type: Boolean,
|
|
506
|
+
required: false,
|
|
507
|
+
default: () => ASelectPluginOptions.propsDefault.translateGroup,
|
|
508
|
+
},
|
|
502
509
|
type: {
|
|
503
510
|
type: String,
|
|
504
511
|
required: false,
|
|
@@ -645,64 +652,64 @@ export default {
|
|
|
645
652
|
htmlIdLocal,
|
|
646
653
|
});
|
|
647
654
|
|
|
648
|
-
const {
|
|
649
|
-
dataSort,
|
|
650
|
-
} = UiDataSortAPI(props, {
|
|
651
|
-
data: dataLocal,
|
|
652
|
-
});
|
|
653
|
-
|
|
654
|
-
const {
|
|
655
|
-
dataExtraWithoutSelected,
|
|
656
|
-
dataSelected,
|
|
657
|
-
dataWithoutSelected,
|
|
658
|
-
exclusiveOptionWithoutSelected,
|
|
659
|
-
} = SelectedFirstAPI(props, {
|
|
660
|
-
data: dataSort,
|
|
661
|
-
dataExtra: dataExtraLocal,
|
|
662
|
-
exclusiveOption,
|
|
663
|
-
});
|
|
664
|
-
|
|
665
|
-
const {
|
|
666
|
-
dataGrouped,
|
|
667
|
-
groupsForLever,
|
|
668
|
-
hasKeyGroup,
|
|
669
|
-
keyGroupArray,
|
|
670
|
-
} = UIDataGroupAPI(props, {
|
|
671
|
-
data: dataWithoutSelected,
|
|
672
|
-
});
|
|
673
|
-
|
|
674
|
-
const {
|
|
675
|
-
dataGrouped: dataExtraGrouped,
|
|
676
|
-
groupsForLever: groupsForLeverExtra,
|
|
677
|
-
} = UIDataGroupAPI(props, {
|
|
678
|
-
data: dataExtraWithoutSelected,
|
|
679
|
-
});
|
|
680
|
-
|
|
681
|
-
const {
|
|
682
|
-
groupsForLever: groupsForLeverSearch,
|
|
683
|
-
} = UIDataGroupAPI(props, {
|
|
684
|
-
data: dataSort,
|
|
685
|
-
});
|
|
686
|
-
|
|
687
|
-
const {
|
|
688
|
-
groupsForLever: groupsForLeverExtraSearch,
|
|
689
|
-
} = UIDataGroupAPI(props, {
|
|
690
|
-
data: dataExtraLocal,
|
|
691
|
-
});
|
|
692
|
-
|
|
693
|
-
const {
|
|
694
|
-
dataGrouped: dataGroupedAll,
|
|
695
|
-
} = UIDataGroupAPI(props, {
|
|
696
|
-
data: dataAll,
|
|
697
|
-
});
|
|
655
|
+
const {
|
|
656
|
+
dataSort,
|
|
657
|
+
} = UiDataSortAPI(props, {
|
|
658
|
+
data: dataLocal,
|
|
659
|
+
});
|
|
660
|
+
|
|
661
|
+
const {
|
|
662
|
+
dataExtraWithoutSelected,
|
|
663
|
+
dataSelected,
|
|
664
|
+
dataWithoutSelected,
|
|
665
|
+
exclusiveOptionWithoutSelected,
|
|
666
|
+
} = SelectedFirstAPI(props, {
|
|
667
|
+
data: dataSort,
|
|
668
|
+
dataExtra: dataExtraLocal,
|
|
669
|
+
exclusiveOption,
|
|
670
|
+
});
|
|
671
|
+
|
|
672
|
+
const {
|
|
673
|
+
dataGrouped,
|
|
674
|
+
groupsForLever,
|
|
675
|
+
hasKeyGroup,
|
|
676
|
+
keyGroupArray,
|
|
677
|
+
} = UIDataGroupAPI(props, {
|
|
678
|
+
data: dataWithoutSelected,
|
|
679
|
+
});
|
|
698
680
|
|
|
699
|
-
const
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
681
|
+
const {
|
|
682
|
+
dataGrouped: dataExtraGrouped,
|
|
683
|
+
groupsForLever: groupsForLeverExtra,
|
|
684
|
+
} = UIDataGroupAPI(props, {
|
|
685
|
+
data: dataExtraWithoutSelected,
|
|
686
|
+
});
|
|
687
|
+
|
|
688
|
+
const {
|
|
689
|
+
groupsForLever: groupsForLeverSearch,
|
|
690
|
+
} = UIDataGroupAPI(props, {
|
|
691
|
+
data: dataSort,
|
|
692
|
+
});
|
|
693
|
+
|
|
694
|
+
const {
|
|
695
|
+
groupsForLever: groupsForLeverExtraSearch,
|
|
696
|
+
} = UIDataGroupAPI(props, {
|
|
697
|
+
data: dataExtraLocal,
|
|
698
|
+
});
|
|
699
|
+
|
|
700
|
+
const {
|
|
701
|
+
dataGrouped: dataGroupedAll,
|
|
702
|
+
} = UIDataGroupAPI(props, {
|
|
703
|
+
data: dataAll,
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
const validDataSort = computed(() => {
|
|
707
|
+
return dataWithoutSelected.value.filter(item => !item.__invalidEntry__);
|
|
708
|
+
});
|
|
709
|
+
|
|
710
|
+
const invalidDataSort = computed(() => {
|
|
711
|
+
return dataWithoutSelected.value.filter(item => item.__invalidEntry__);
|
|
712
|
+
});
|
|
706
713
|
|
|
707
714
|
const {
|
|
708
715
|
dataGrouped: dataGroupedValid,
|
|
@@ -724,98 +731,98 @@ export default {
|
|
|
724
731
|
searchingElements,
|
|
725
732
|
searchingElementsExclusive,
|
|
726
733
|
searchingElementsExtra,
|
|
727
|
-
searchingGroupsWithSearchInGroup,
|
|
734
|
+
searchingGroupsWithSearchInGroup,
|
|
728
735
|
searchOutsideOrApi,
|
|
729
736
|
searchOutsideRef,
|
|
730
737
|
updateModelSearch,
|
|
731
738
|
updateModelSearchOutside,
|
|
732
|
-
} = UiSearchAPI(props, context, {
|
|
733
|
-
data: dataSort,
|
|
734
|
-
dataExtra: dataExtraLocal,
|
|
735
|
-
exclusiveOption,
|
|
736
|
-
groupsForLever: groupsForLeverSearch,
|
|
737
|
-
groupsForLeverExtra: groupsForLeverExtraSearch,
|
|
739
|
+
} = UiSearchAPI(props, context, {
|
|
740
|
+
data: dataSort,
|
|
741
|
+
dataExtra: dataExtraLocal,
|
|
742
|
+
exclusiveOption,
|
|
743
|
+
groupsForLever: groupsForLeverSearch,
|
|
744
|
+
groupsForLeverExtra: groupsForLeverExtraSearch,
|
|
738
745
|
hasKeyGroup,
|
|
739
746
|
htmlIdLocal,
|
|
740
747
|
keyGroupArray,
|
|
741
748
|
onSearchInApi,
|
|
742
|
-
searchApiLocal,
|
|
743
|
-
});
|
|
744
|
-
|
|
745
|
-
const {
|
|
746
|
-
dataSelectedVisible,
|
|
747
|
-
searchingElementsSelected,
|
|
748
|
-
searchingGroupsVisible: searchingGroupsSelected,
|
|
749
|
-
} = SelectedVisibleAPI({
|
|
750
|
-
dataSelected,
|
|
751
|
-
keyGroupArray,
|
|
752
|
-
searching,
|
|
753
|
-
searchingElements,
|
|
754
|
-
searchingElementsExclusive,
|
|
755
|
-
searchingElementsExtra,
|
|
756
|
-
searchingGroupsWithSearchInGroup,
|
|
757
|
-
});
|
|
758
|
-
|
|
759
|
-
const dataOptionsWithoutSelected = computed(() => [
|
|
760
|
-
...dataExtraWithoutSelected.value,
|
|
761
|
-
...dataWithoutSelected.value,
|
|
762
|
-
exclusiveOptionWithoutSelected.value,
|
|
763
|
-
].filter(Boolean));
|
|
764
|
-
|
|
765
|
-
const {
|
|
766
|
-
dataSelectedVisible: dataOptionsWithoutSelectedVisible,
|
|
767
|
-
} = SelectedVisibleAPI({
|
|
768
|
-
dataSelected: dataOptionsWithoutSelected,
|
|
769
|
-
keyGroupArray,
|
|
770
|
-
searching,
|
|
771
|
-
searchingElements,
|
|
772
|
-
searchingElementsExclusive,
|
|
773
|
-
searchingElementsExtra,
|
|
774
|
-
searchingGroupsWithSearchInGroup,
|
|
775
|
-
});
|
|
776
|
-
|
|
777
|
-
const {
|
|
778
|
-
dataSelectedVisible: dataWithoutSelectedVisible,
|
|
779
|
-
} = SelectedVisibleAPI({
|
|
780
|
-
dataSelected: dataWithoutSelected,
|
|
781
|
-
keyGroupArray,
|
|
782
|
-
searching,
|
|
783
|
-
searchingElements,
|
|
784
|
-
searchingElementsExclusive,
|
|
785
|
-
searchingElementsExtra,
|
|
786
|
-
searchingGroupsWithSearchInGroup,
|
|
787
|
-
});
|
|
788
|
-
|
|
789
|
-
const {
|
|
790
|
-
searchingGroupsVisible: searchingGroupsExtraWithoutSelected,
|
|
791
|
-
} = SelectedVisibleAPI({
|
|
792
|
-
dataSelected: dataExtraWithoutSelected,
|
|
793
|
-
keyGroupArray,
|
|
794
|
-
searching,
|
|
795
|
-
searchingElements,
|
|
796
|
-
searchingElementsExclusive,
|
|
797
|
-
searchingElementsExtra,
|
|
798
|
-
searchingGroupsWithSearchInGroup,
|
|
799
|
-
});
|
|
800
|
-
|
|
801
|
-
const {
|
|
802
|
-
searchingGroupsVisible: searchingGroupsValidWithoutSelected,
|
|
803
|
-
} = SelectedVisibleAPI({
|
|
804
|
-
dataSelected: validDataSort,
|
|
805
|
-
keyGroupArray,
|
|
806
|
-
searching,
|
|
807
|
-
searchingElements,
|
|
808
|
-
searchingElementsExclusive,
|
|
809
|
-
searchingElementsExtra,
|
|
810
|
-
searchingGroupsWithSearchInGroup,
|
|
811
|
-
});
|
|
812
|
-
|
|
813
|
-
const {
|
|
814
|
-
dataGrouped: dataSelectedGrouped,
|
|
815
|
-
groupsForLever: groupsForLeverSelected,
|
|
816
|
-
} = UIDataGroupAPI(props, {
|
|
817
|
-
data: dataSelectedVisible,
|
|
818
|
-
});
|
|
749
|
+
searchApiLocal,
|
|
750
|
+
});
|
|
751
|
+
|
|
752
|
+
const {
|
|
753
|
+
dataSelectedVisible,
|
|
754
|
+
searchingElementsSelected,
|
|
755
|
+
searchingGroupsVisible: searchingGroupsSelected,
|
|
756
|
+
} = SelectedVisibleAPI({
|
|
757
|
+
dataSelected,
|
|
758
|
+
keyGroupArray,
|
|
759
|
+
searching,
|
|
760
|
+
searchingElements,
|
|
761
|
+
searchingElementsExclusive,
|
|
762
|
+
searchingElementsExtra,
|
|
763
|
+
searchingGroupsWithSearchInGroup,
|
|
764
|
+
});
|
|
765
|
+
|
|
766
|
+
const dataOptionsWithoutSelected = computed(() => [
|
|
767
|
+
...dataExtraWithoutSelected.value,
|
|
768
|
+
...dataWithoutSelected.value,
|
|
769
|
+
exclusiveOptionWithoutSelected.value,
|
|
770
|
+
].filter(Boolean));
|
|
771
|
+
|
|
772
|
+
const {
|
|
773
|
+
dataSelectedVisible: dataOptionsWithoutSelectedVisible,
|
|
774
|
+
} = SelectedVisibleAPI({
|
|
775
|
+
dataSelected: dataOptionsWithoutSelected,
|
|
776
|
+
keyGroupArray,
|
|
777
|
+
searching,
|
|
778
|
+
searchingElements,
|
|
779
|
+
searchingElementsExclusive,
|
|
780
|
+
searchingElementsExtra,
|
|
781
|
+
searchingGroupsWithSearchInGroup,
|
|
782
|
+
});
|
|
783
|
+
|
|
784
|
+
const {
|
|
785
|
+
dataSelectedVisible: dataWithoutSelectedVisible,
|
|
786
|
+
} = SelectedVisibleAPI({
|
|
787
|
+
dataSelected: dataWithoutSelected,
|
|
788
|
+
keyGroupArray,
|
|
789
|
+
searching,
|
|
790
|
+
searchingElements,
|
|
791
|
+
searchingElementsExclusive,
|
|
792
|
+
searchingElementsExtra,
|
|
793
|
+
searchingGroupsWithSearchInGroup,
|
|
794
|
+
});
|
|
795
|
+
|
|
796
|
+
const {
|
|
797
|
+
searchingGroupsVisible: searchingGroupsExtraWithoutSelected,
|
|
798
|
+
} = SelectedVisibleAPI({
|
|
799
|
+
dataSelected: dataExtraWithoutSelected,
|
|
800
|
+
keyGroupArray,
|
|
801
|
+
searching,
|
|
802
|
+
searchingElements,
|
|
803
|
+
searchingElementsExclusive,
|
|
804
|
+
searchingElementsExtra,
|
|
805
|
+
searchingGroupsWithSearchInGroup,
|
|
806
|
+
});
|
|
807
|
+
|
|
808
|
+
const {
|
|
809
|
+
searchingGroupsVisible: searchingGroupsValidWithoutSelected,
|
|
810
|
+
} = SelectedVisibleAPI({
|
|
811
|
+
dataSelected: validDataSort,
|
|
812
|
+
keyGroupArray,
|
|
813
|
+
searching,
|
|
814
|
+
searchingElements,
|
|
815
|
+
searchingElementsExclusive,
|
|
816
|
+
searchingElementsExtra,
|
|
817
|
+
searchingGroupsWithSearchInGroup,
|
|
818
|
+
});
|
|
819
|
+
|
|
820
|
+
const {
|
|
821
|
+
dataGrouped: dataSelectedGrouped,
|
|
822
|
+
groupsForLever: groupsForLeverSelected,
|
|
823
|
+
} = UIDataGroupAPI(props, {
|
|
824
|
+
data: dataSelectedVisible,
|
|
825
|
+
});
|
|
819
826
|
|
|
820
827
|
const {
|
|
821
828
|
buttonRef,
|
|
@@ -840,7 +847,7 @@ export default {
|
|
|
840
847
|
} = ModelChangeAPI(props, {
|
|
841
848
|
changeModel,
|
|
842
849
|
dataAll,
|
|
843
|
-
dataGrouped: dataGroupedAll,
|
|
850
|
+
dataGrouped: dataGroupedAll,
|
|
844
851
|
dataKeyByKeyIdLocal,
|
|
845
852
|
disabledLocal,
|
|
846
853
|
isMultiselect,
|
|
@@ -904,16 +911,16 @@ export default {
|
|
|
904
911
|
clearModel,
|
|
905
912
|
componentStyleHide,
|
|
906
913
|
containerId,
|
|
907
|
-
dataExtraLocal,
|
|
908
|
-
dataExtraGrouped,
|
|
909
|
-
dataGrouped,
|
|
910
|
-
dataSelected,
|
|
911
|
-
dataSelectedGrouped,
|
|
912
|
-
dataSelectedVisible,
|
|
913
|
-
dataWithoutSelected,
|
|
914
|
-
dataWithoutSelectedVisible,
|
|
915
|
-
dataOptionsWithoutSelectedVisible,
|
|
916
|
-
dataGroupedValid,
|
|
914
|
+
dataExtraLocal,
|
|
915
|
+
dataExtraGrouped,
|
|
916
|
+
dataGrouped,
|
|
917
|
+
dataSelected,
|
|
918
|
+
dataSelectedGrouped,
|
|
919
|
+
dataSelectedVisible,
|
|
920
|
+
dataWithoutSelected,
|
|
921
|
+
dataWithoutSelectedVisible,
|
|
922
|
+
dataOptionsWithoutSelectedVisible,
|
|
923
|
+
dataGroupedValid,
|
|
917
924
|
dataKeyByKeyIdLocal,
|
|
918
925
|
dataLocal,
|
|
919
926
|
dataSort,
|
|
@@ -923,16 +930,16 @@ export default {
|
|
|
923
930
|
disabledLocalAttribut,
|
|
924
931
|
errorsId,
|
|
925
932
|
hasErrorIcon,
|
|
926
|
-
exclusiveDataKeyByKeyIdLocal,
|
|
927
|
-
exclusiveOption,
|
|
928
|
-
exclusiveOptionWithoutSelected,
|
|
929
|
-
groupsForLever,
|
|
930
|
-
groupsForLeverExtra,
|
|
931
|
-
groupsForLeverSelected,
|
|
933
|
+
exclusiveDataKeyByKeyIdLocal,
|
|
934
|
+
exclusiveOption,
|
|
935
|
+
exclusiveOptionWithoutSelected,
|
|
936
|
+
groupsForLever,
|
|
937
|
+
groupsForLeverExtra,
|
|
938
|
+
groupsForLeverSelected,
|
|
932
939
|
groupsForLeverValid,
|
|
933
940
|
handleKeydown,
|
|
934
|
-
hasDataExtra,
|
|
935
|
-
dataExtraWithoutSelected,
|
|
941
|
+
hasDataExtra,
|
|
942
|
+
dataExtraWithoutSelected,
|
|
936
943
|
hasKeyGroup,
|
|
937
944
|
invalidDataSort,
|
|
938
945
|
hasNotElementsExclusiveWithSearch,
|
|
@@ -975,12 +982,12 @@ export default {
|
|
|
975
982
|
searching,
|
|
976
983
|
searchingElements,
|
|
977
984
|
searchingElementsExclusive,
|
|
978
|
-
searchingElementsExtra,
|
|
979
|
-
searchingElementsSelected,
|
|
980
|
-
searchingGroupsExtraWithoutSelected,
|
|
981
|
-
searchingGroupsSelected,
|
|
982
|
-
searchingGroupsValidWithoutSelected,
|
|
983
|
-
searchingGroupsWithSearchInGroup,
|
|
985
|
+
searchingElementsExtra,
|
|
986
|
+
searchingElementsSelected,
|
|
987
|
+
searchingGroupsExtraWithoutSelected,
|
|
988
|
+
searchingGroupsSelected,
|
|
989
|
+
searchingGroupsValidWithoutSelected,
|
|
990
|
+
searchingGroupsWithSearchInGroup,
|
|
984
991
|
searchOutsideOrApi,
|
|
985
992
|
searchOutsideRef,
|
|
986
993
|
selectedTitle,
|
|
@@ -1043,11 +1050,11 @@ export default {
|
|
|
1043
1050
|
"");
|
|
1044
1051
|
}
|
|
1045
1052
|
|
|
1046
|
-
const hasInvalidEntries = this.invalidDataSort.length > 0;
|
|
1047
|
-
const isDividerBeforeInvalidVisible = !!(
|
|
1048
|
-
this.validDataSort.length ||
|
|
1049
|
-
(this.exclusiveOptionWithoutSelected && !this.dataExtraWithoutSelected.length)
|
|
1050
|
-
);
|
|
1053
|
+
const hasInvalidEntries = this.invalidDataSort.length > 0;
|
|
1054
|
+
const isDividerBeforeInvalidVisible = !!(
|
|
1055
|
+
this.validDataSort.length ||
|
|
1056
|
+
(this.exclusiveOptionWithoutSelected && !this.dataExtraWithoutSelected.length)
|
|
1057
|
+
);
|
|
1051
1058
|
const renderInvalidEntries = () => {
|
|
1052
1059
|
if (!hasInvalidEntries) {
|
|
1053
1060
|
return null;
|
|
@@ -1056,7 +1063,7 @@ export default {
|
|
|
1056
1063
|
return h("div", {
|
|
1057
1064
|
class: "a_select__invalid_entries",
|
|
1058
1065
|
}, [
|
|
1059
|
-
isDividerBeforeInvalidVisible && h("div", {
|
|
1066
|
+
isDividerBeforeInvalidVisible && h("div", {
|
|
1060
1067
|
class: "a_select__divider",
|
|
1061
1068
|
ariaHidden: true,
|
|
1062
1069
|
}),
|
|
@@ -1107,11 +1114,11 @@ export default {
|
|
|
1107
1114
|
a_form_element__parent_not_empty: this.isModelValue || this.isOpen,
|
|
1108
1115
|
}],
|
|
1109
1116
|
}, [
|
|
1110
|
-
this.label && h(ALabel, {
|
|
1111
|
-
id: this.htmlIdLocal,
|
|
1112
|
-
alwaysTranslate: this.alwaysTranslate,
|
|
1113
|
-
extra: this.extra,
|
|
1114
|
-
isLabelFloat: this.isLabelFloat,
|
|
1117
|
+
this.label && h(ALabel, {
|
|
1118
|
+
id: this.htmlIdLocal,
|
|
1119
|
+
alwaysTranslate: this.alwaysTranslate,
|
|
1120
|
+
extra: this.extra,
|
|
1121
|
+
isLabelFloat: this.isLabelFloat,
|
|
1115
1122
|
label: this.label,
|
|
1116
1123
|
labelClass: this.labelClass,
|
|
1117
1124
|
labelScreenReader: this.labelScreenReader,
|
|
@@ -1188,10 +1195,10 @@ export default {
|
|
|
1188
1195
|
keyGroupLabelCallback: this.keyGroupLabelCallback,
|
|
1189
1196
|
labelNotFound: this.labelNotFound,
|
|
1190
1197
|
showNotFound: this.showNotFound,
|
|
1191
|
-
mode: this.mode,
|
|
1192
|
-
slotName: this.slotName,
|
|
1193
|
-
translateGroup: this.translateGroup,
|
|
1194
|
-
onChangeModelValue: this.onChangeModelValue,
|
|
1198
|
+
mode: this.mode,
|
|
1199
|
+
slotName: this.slotName,
|
|
1200
|
+
translateGroup: this.translateGroup,
|
|
1201
|
+
onChangeModelValue: this.onChangeModelValue,
|
|
1195
1202
|
}, this.$slots);
|
|
1196
1203
|
}),
|
|
1197
1204
|
this.isModelLengthLimitExceeded && h(ASelectValueCloseable, {
|
|
@@ -1201,10 +1208,10 @@ export default {
|
|
|
1201
1208
|
disabled: this.disabledLocal,
|
|
1202
1209
|
keyGroup: this.keyGroup,
|
|
1203
1210
|
keyGroupLabelCallback: this.keyGroupLabelCallback,
|
|
1204
|
-
mode: this.mode,
|
|
1205
|
-
hideDeleteButton: !this.exceededItemsDeletable,
|
|
1206
|
-
translateGroup: this.translateGroup,
|
|
1207
|
-
onChangeModelValue: this.deleteExceededItems,
|
|
1211
|
+
mode: this.mode,
|
|
1212
|
+
hideDeleteButton: !this.exceededItemsDeletable,
|
|
1213
|
+
translateGroup: this.translateGroup,
|
|
1214
|
+
onChangeModelValue: this.deleteExceededItems,
|
|
1208
1215
|
}),
|
|
1209
1216
|
]) :
|
|
1210
1217
|
h("span", {
|
|
@@ -1368,106 +1375,106 @@ export default {
|
|
|
1368
1375
|
tag: "span",
|
|
1369
1376
|
}),
|
|
1370
1377
|
]),
|
|
1371
|
-
(this.isDividerSelectDeselectVisible) && h("div", {
|
|
1372
|
-
class: "a_select__divider",
|
|
1373
|
-
ariaHidden: true,
|
|
1374
|
-
}),
|
|
1375
|
-
!!this.dataSelectedVisible.length && h("div", {
|
|
1376
|
-
class: "a_select__selected_first",
|
|
1377
|
-
}, [
|
|
1378
|
-
...(this.hasKeyGroup ?
|
|
1379
|
-
[h(ACheckboxRadioGroups, {
|
|
1380
|
-
id: `${ this.htmlIdLocal }_selected_lev_0`,
|
|
1381
|
-
alwaysTranslate: this.alwaysTranslate,
|
|
1382
|
-
dataGrouped: this.dataSelectedGrouped,
|
|
1383
|
-
disabled: this.disabled,
|
|
1384
|
-
groupsForLever: this.groupsForLeverSelected,
|
|
1385
|
-
isErrors: this.isErrors,
|
|
1386
|
-
keyDisabled: this.keyDisabled,
|
|
1387
|
-
keyDisabledCallback: this.keyDisabledCallback,
|
|
1388
|
-
levelIndex: 0,
|
|
1389
|
-
modelSearch: this.modelSearchLowerCase,
|
|
1390
|
-
modelValue: this.modelValue,
|
|
1391
|
-
searching: this.searching,
|
|
1392
|
-
searchingElements: this.searchingElementsSelected,
|
|
1393
|
-
searchingGroups: this.searchingGroupsSelected,
|
|
1394
|
-
searchingGroupsWithSearchInGroup: this.searchingGroupsWithSearchInGroup,
|
|
1395
|
-
searchTextInHtml: this.searchTextInHtml,
|
|
1396
|
-
slotName: this.slotName,
|
|
1397
|
-
type: this.type,
|
|
1398
|
-
onChangeModelValue: this.onChangeModelValue,
|
|
1399
|
-
}, this.$slots)] :
|
|
1400
|
-
this.dataSelectedVisible.map((item, itemIndex) => {
|
|
1401
|
-
return h(ASelectElement, {
|
|
1402
|
-
key: item[AKeyId],
|
|
1403
|
-
id: this.htmlIdLocal,
|
|
1404
|
-
alwaysTranslate: this.alwaysTranslate,
|
|
1405
|
-
dataItem: item,
|
|
1406
|
-
disabled: this.disabled,
|
|
1407
|
-
itemIndex,
|
|
1408
|
-
keyDisabled: this.keyDisabled,
|
|
1409
|
-
keyDisabledCallback: this.keyDisabledCallback,
|
|
1410
|
-
modelSearch: this.modelSearchLowerCase,
|
|
1411
|
-
modelValue: this.modelValue,
|
|
1412
|
-
searching: this.searching,
|
|
1413
|
-
searchingElements: this.searchingElementsSelected,
|
|
1414
|
-
searchTextInHtml: this.searchTextInHtml,
|
|
1415
|
-
slotName: this.slotName,
|
|
1416
|
-
type: this.type,
|
|
1417
|
-
onChangeModelValue: this.onChangeModelValue,
|
|
1418
|
-
}, this.$slots);
|
|
1419
|
-
})),
|
|
1420
|
-
]),
|
|
1421
|
-
(!!this.dataSelectedVisible.length &&
|
|
1422
|
-
!!this.dataOptionsWithoutSelectedVisible.length) && h("div", {
|
|
1423
|
-
class: "a_select__divider",
|
|
1424
|
-
ariaHidden: true,
|
|
1425
|
-
}),
|
|
1426
|
-
(this.loadingLocal || this.loadingSearchApi) ?
|
|
1427
|
-
h(ACloak) :
|
|
1428
|
-
"",
|
|
1429
|
-
(this.isMultiselect && this.exclusiveOptionWithoutSelected) && h("div", {}, [
|
|
1430
|
-
h(ASelectElement, {
|
|
1431
|
-
key: this.exclusiveOptionValue,
|
|
1432
|
-
id: this.htmlIdLocal,
|
|
1433
|
-
alwaysTranslate: true,
|
|
1434
|
-
dataItem: this.exclusiveOptionWithoutSelected,
|
|
1378
|
+
(this.isDividerSelectDeselectVisible) && h("div", {
|
|
1379
|
+
class: "a_select__divider",
|
|
1380
|
+
ariaHidden: true,
|
|
1381
|
+
}),
|
|
1382
|
+
!!this.dataSelectedVisible.length && h("div", {
|
|
1383
|
+
class: "a_select__selected_first",
|
|
1384
|
+
}, [
|
|
1385
|
+
...(this.hasKeyGroup ?
|
|
1386
|
+
[h(ACheckboxRadioGroups, {
|
|
1387
|
+
id: `${ this.htmlIdLocal }_selected_lev_0`,
|
|
1388
|
+
alwaysTranslate: this.alwaysTranslate,
|
|
1389
|
+
dataGrouped: this.dataSelectedGrouped,
|
|
1390
|
+
disabled: this.disabled,
|
|
1391
|
+
groupsForLever: this.groupsForLeverSelected,
|
|
1392
|
+
isErrors: this.isErrors,
|
|
1393
|
+
keyDisabled: this.keyDisabled,
|
|
1394
|
+
keyDisabledCallback: this.keyDisabledCallback,
|
|
1395
|
+
levelIndex: 0,
|
|
1396
|
+
modelSearch: this.modelSearchLowerCase,
|
|
1397
|
+
modelValue: this.modelValue,
|
|
1398
|
+
searching: this.searching,
|
|
1399
|
+
searchingElements: this.searchingElementsSelected,
|
|
1400
|
+
searchingGroups: this.searchingGroupsSelected,
|
|
1401
|
+
searchingGroupsWithSearchInGroup: this.searchingGroupsWithSearchInGroup,
|
|
1402
|
+
searchTextInHtml: this.searchTextInHtml,
|
|
1403
|
+
slotName: this.slotName,
|
|
1404
|
+
type: this.type,
|
|
1405
|
+
onChangeModelValue: this.onChangeModelValue,
|
|
1406
|
+
}, this.$slots)] :
|
|
1407
|
+
this.dataSelectedVisible.map((item, itemIndex) => {
|
|
1408
|
+
return h(ASelectElement, {
|
|
1409
|
+
key: item[AKeyId],
|
|
1410
|
+
id: this.htmlIdLocal,
|
|
1411
|
+
alwaysTranslate: this.alwaysTranslate,
|
|
1412
|
+
dataItem: item,
|
|
1413
|
+
disabled: this.disabled,
|
|
1414
|
+
itemIndex,
|
|
1415
|
+
keyDisabled: this.keyDisabled,
|
|
1416
|
+
keyDisabledCallback: this.keyDisabledCallback,
|
|
1417
|
+
modelSearch: this.modelSearchLowerCase,
|
|
1418
|
+
modelValue: this.modelValue,
|
|
1419
|
+
searching: this.searching,
|
|
1420
|
+
searchingElements: this.searchingElementsSelected,
|
|
1421
|
+
searchTextInHtml: this.searchTextInHtml,
|
|
1422
|
+
slotName: this.slotName,
|
|
1423
|
+
type: this.type,
|
|
1424
|
+
onChangeModelValue: this.onChangeModelValue,
|
|
1425
|
+
}, this.$slots);
|
|
1426
|
+
})),
|
|
1427
|
+
]),
|
|
1428
|
+
(!!this.dataSelectedVisible.length &&
|
|
1429
|
+
!!this.dataOptionsWithoutSelectedVisible.length) && h("div", {
|
|
1430
|
+
class: "a_select__divider",
|
|
1431
|
+
ariaHidden: true,
|
|
1432
|
+
}),
|
|
1433
|
+
(this.loadingLocal || this.loadingSearchApi) ?
|
|
1434
|
+
h(ACloak) :
|
|
1435
|
+
"",
|
|
1436
|
+
(this.isMultiselect && this.exclusiveOptionWithoutSelected) && h("div", {}, [
|
|
1437
|
+
h(ASelectElement, {
|
|
1438
|
+
key: this.exclusiveOptionValue,
|
|
1439
|
+
id: this.htmlIdLocal,
|
|
1440
|
+
alwaysTranslate: true,
|
|
1441
|
+
dataItem: this.exclusiveOptionWithoutSelected,
|
|
1435
1442
|
disabled: false,
|
|
1436
1443
|
itemIndex: 0,
|
|
1437
1444
|
modelSearch: this.modelSearchLowerCase,
|
|
1438
1445
|
modelValue: this.modelValue,
|
|
1439
1446
|
searching: this.searching,
|
|
1440
1447
|
searchingElements: this.searchingElementsExclusive,
|
|
1441
|
-
searchTextInHtml: this.searchTextInHtml,
|
|
1448
|
+
searchTextInHtml: this.searchTextInHtml,
|
|
1442
1449
|
type: this.type,
|
|
1443
1450
|
onChangeModelValue: this.onChangeModelValue,
|
|
1444
1451
|
}, this.$slots),
|
|
1445
1452
|
]),
|
|
1446
|
-
!!this.dataExtraWithoutSelected.length && h("div", {}, [
|
|
1447
|
-
...(this.hasKeyGroup ?
|
|
1448
|
-
[h(ACheckboxRadioGroups, {
|
|
1449
|
-
id: `${ this.htmlIdLocal }_extra_lev_0`,
|
|
1450
|
-
alwaysTranslate: this.alwaysTranslate,
|
|
1451
|
-
dataGrouped: this.dataExtraGrouped,
|
|
1452
|
-
disabled: this.disabledLocal,
|
|
1453
|
-
groupsForLever: this.groupsForLeverExtra,
|
|
1454
|
-
isErrors: this.isErrors,
|
|
1455
|
-
keyDisabled: this.keyDisabled,
|
|
1456
|
-
keyDisabledCallback: this.keyDisabledCallback,
|
|
1457
|
-
levelIndex: 0,
|
|
1458
|
-
modelSearch: this.modelSearchLowerCase,
|
|
1459
|
-
modelValue: this.modelValue,
|
|
1460
|
-
searching: this.searching,
|
|
1461
|
-
searchingElements: this.searchingElementsExtra,
|
|
1462
|
-
searchingGroups: this.searchingGroupsExtraWithoutSelected,
|
|
1463
|
-
searchingGroupsWithSearchInGroup: this.searchingGroupsWithSearchInGroup,
|
|
1464
|
-
searchTextInHtml: this.searchTextInHtml,
|
|
1465
|
-
slotName: this.slotName,
|
|
1466
|
-
type: this.type,
|
|
1467
|
-
onChangeModelValue: this.onChangeModelValue,
|
|
1468
|
-
}, this.$slots)] :
|
|
1469
|
-
this.dataExtraWithoutSelected.map((item, itemIndex) => {
|
|
1470
|
-
return h(ASelectElement, {
|
|
1453
|
+
!!this.dataExtraWithoutSelected.length && h("div", {}, [
|
|
1454
|
+
...(this.hasKeyGroup ?
|
|
1455
|
+
[h(ACheckboxRadioGroups, {
|
|
1456
|
+
id: `${ this.htmlIdLocal }_extra_lev_0`,
|
|
1457
|
+
alwaysTranslate: this.alwaysTranslate,
|
|
1458
|
+
dataGrouped: this.dataExtraGrouped,
|
|
1459
|
+
disabled: this.disabledLocal,
|
|
1460
|
+
groupsForLever: this.groupsForLeverExtra,
|
|
1461
|
+
isErrors: this.isErrors,
|
|
1462
|
+
keyDisabled: this.keyDisabled,
|
|
1463
|
+
keyDisabledCallback: this.keyDisabledCallback,
|
|
1464
|
+
levelIndex: 0,
|
|
1465
|
+
modelSearch: this.modelSearchLowerCase,
|
|
1466
|
+
modelValue: this.modelValue,
|
|
1467
|
+
searching: this.searching,
|
|
1468
|
+
searchingElements: this.searchingElementsExtra,
|
|
1469
|
+
searchingGroups: this.searchingGroupsExtraWithoutSelected,
|
|
1470
|
+
searchingGroupsWithSearchInGroup: this.searchingGroupsWithSearchInGroup,
|
|
1471
|
+
searchTextInHtml: this.searchTextInHtml,
|
|
1472
|
+
slotName: this.slotName,
|
|
1473
|
+
type: this.type,
|
|
1474
|
+
onChangeModelValue: this.onChangeModelValue,
|
|
1475
|
+
}, this.$slots)] :
|
|
1476
|
+
this.dataExtraWithoutSelected.map((item, itemIndex) => {
|
|
1477
|
+
return h(ASelectElement, {
|
|
1471
1478
|
key: item[AKeyId],
|
|
1472
1479
|
id: this.htmlIdLocal,
|
|
1473
1480
|
alwaysTranslate: this.alwaysTranslate,
|
|
@@ -1483,12 +1490,12 @@ export default {
|
|
|
1483
1490
|
modelValue: this.modelValue,
|
|
1484
1491
|
slotName: this.slotName,
|
|
1485
1492
|
type: this.type,
|
|
1486
|
-
onChangeModelValue: this.onChangeModelValue,
|
|
1487
|
-
}, this.$slots);
|
|
1488
|
-
})),
|
|
1489
|
-
!!this.dataWithoutSelectedVisible.length &&
|
|
1490
|
-
!this.hasNotElementsExtraWithSearch &&
|
|
1491
|
-
!this.hasNotElementsExclusiveWithSearch && h("div", {
|
|
1493
|
+
onChangeModelValue: this.onChangeModelValue,
|
|
1494
|
+
}, this.$slots);
|
|
1495
|
+
})),
|
|
1496
|
+
!!this.dataWithoutSelectedVisible.length &&
|
|
1497
|
+
!this.hasNotElementsExtraWithSearch &&
|
|
1498
|
+
!this.hasNotElementsExclusiveWithSearch && h("div", {
|
|
1492
1499
|
class: "a_select__divider",
|
|
1493
1500
|
ariaHidden: true,
|
|
1494
1501
|
}),
|
|
@@ -1509,7 +1516,7 @@ export default {
|
|
|
1509
1516
|
modelValue: this.modelValue,
|
|
1510
1517
|
searching: this.searching,
|
|
1511
1518
|
searchingElements: this.searchingElements,
|
|
1512
|
-
searchingGroups: this.searchingGroupsValidWithoutSelected,
|
|
1519
|
+
searchingGroups: this.searchingGroupsValidWithoutSelected,
|
|
1513
1520
|
searchingGroupsWithSearchInGroup: this.searchingGroupsWithSearchInGroup,
|
|
1514
1521
|
searchTextInHtml: this.searchTextInHtml,
|
|
1515
1522
|
slotName: this.slotName,
|
|
@@ -1542,11 +1549,11 @@ export default {
|
|
|
1542
1549
|
]),
|
|
1543
1550
|
]),
|
|
1544
1551
|
renderInvalidEntries(),
|
|
1545
|
-
((!this.dataWithoutSelected.length &&
|
|
1546
|
-
!this.dataExtraWithoutSelected.length &&
|
|
1547
|
-
!this.exclusiveOptionWithoutSelected &&
|
|
1548
|
-
!this.dataSelected.length
|
|
1549
|
-
) || this.hasNotElementsWithSearch) ?
|
|
1552
|
+
((!this.dataWithoutSelected.length &&
|
|
1553
|
+
!this.dataExtraWithoutSelected.length &&
|
|
1554
|
+
!this.exclusiveOptionWithoutSelected &&
|
|
1555
|
+
!this.dataSelected.length
|
|
1556
|
+
) || this.hasNotElementsWithSearch) ?
|
|
1550
1557
|
h(ATranslation, {
|
|
1551
1558
|
alwaysTranslate: this.alwaysTranslate,
|
|
1552
1559
|
class: "a_form__not_elements",
|