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.
Files changed (167) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/LICENSE +22 -21
  3. package/dist/aloha-vue.css +105 -105
  4. package/dist/aloha-vue.css.map +1 -1
  5. package/dist/aloha-vue.es.js +59267 -64918
  6. package/dist/aloha-vue.umd.js +338 -211
  7. package/package.json +27 -34
  8. package/scss/components/ATable.scss +2 -2
  9. package/scss/utils/button.scss +362 -362
  10. package/scss/utils/funktions.scss +162 -162
  11. package/src/AAccordion/AAccordionItem/AAccordionItem.js +235 -230
  12. package/src/ACarousel/ACarousel.js +7 -2
  13. package/src/ADropdown/ADropdown.js +4 -1
  14. package/src/AFilters/AFilterCenter/AFilterCenter.js +5 -1
  15. package/src/AFilters/AFilterCenter/AFilterCenterItem/AFilterCenterItem.js +7 -2
  16. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontal.js +412 -396
  17. package/src/AFilters/AFiltersHorizontal/AFiltersHorizontalFilter/AFiltersHorizontalFilter.js +102 -99
  18. package/src/AFilters/AFiltersHorizontal/compositionAPI/FiltersSavedDeleteAPI.js +108 -108
  19. package/src/AFilters/AFiltersMain/AFiltersMain.js +114 -111
  20. package/src/AFilters/AFiltersSaveModal/compositionAPI/SaveAPI.js +65 -65
  21. package/src/ALinkCopy/ALinkCopy.js +98 -95
  22. package/src/ALinkCopy/compositionAPI/CopyAPI.js +48 -48
  23. package/src/AList/__tests__/AList.test.js +33 -33
  24. package/src/AList/compositionAPI/__tests__/TagAPI.test.js +43 -43
  25. package/src/AMenu/AMenu.js +4 -1
  26. package/src/AMenu/AMenuBreadcrumbs/AMenuBreadcrumbs.js +240 -237
  27. package/src/AMenu/AMenuPanelLink/AMenuPanelLink.js +4 -1
  28. package/src/AMenu/AMenuSearchPanelBreadcrumbs/AMenuSearchPanelBreadcrumbs.js +122 -119
  29. package/src/AModalWizard/AModalWizard.js +58 -53
  30. package/src/AModalWizard/compositionAPI/__tests__/ScrollAPI.test.js +46 -46
  31. package/src/APagination/APaginationPages/APaginationPages.js +15 -4
  32. package/src/ARate/ARate.js +254 -249
  33. package/src/ARate/ARateIcon/ADecimalIcon/ADecimalIcon.js +53 -50
  34. package/src/ARate/ARateIcon/ARateIcon.js +109 -104
  35. package/src/AResizer/AResizer.js +167 -162
  36. package/src/ATable/ATableHeaderTh/compositionAPI/SortAPI.js +172 -167
  37. package/src/ATable/ATableHeaderThAction/ATableHeaderThAction.js +14 -4
  38. package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem/ATableHeaderThActionItem.js +191 -184
  39. package/src/ATable/ATablePreviewDown/ATablePreviewDown.js +72 -69
  40. package/src/ATable/ATablePreviewRight/ATablePreviewRight.js +265 -258
  41. package/src/ATable/ATableSortingAdditional/ATableSortingAdditional.js +224 -219
  42. package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.AttributesAPI.test.js +39 -39
  43. package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.ColumnsAPI.test.js +68 -68
  44. package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.DropdownAPI.test.js +45 -45
  45. package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.FormAPI.test.js +95 -95
  46. package/src/ATable/ATableSortingAdditional/__tests__/ATableSortingAdditional.ModelAPI.test.js +1 -1
  47. package/src/ATable/ATableTd/ATableTd.js +4 -1
  48. package/src/ATable/ATableTdAction/ATableTdAction.js +19 -12
  49. package/src/ATable/ATableTopPanel/ATableTopPanel.js +11 -3
  50. package/src/ATable/ATableTr/ATableTr.js +408 -405
  51. package/src/ATable/__tests__/ATable.HeaderSlot.test.js +102 -97
  52. package/src/ATable/__tests__/ATable.RowIdsAPI.test.js +66 -66
  53. package/src/ATableForm/ATableForm.js +88 -85
  54. package/src/ATableForm/ATableFormCellAction/ATableFormCellAction.js +14 -4
  55. package/src/ATableForm/ATableFormCellDnd/ATableFormCellDnd.js +196 -187
  56. package/src/ATableForm/ATableFormRow/compositionAPI/EditAPI.js +104 -104
  57. package/src/ATableForm/__tests__/ATableForm.DragAndDropAPI.test.js +200 -212
  58. package/src/ATableForm/__tests__/ATableForm.ListView.test.js +134 -174
  59. package/src/ATableForm/compositionAPI/IconsAPI.js +24 -21
  60. package/src/AVerticalScroll/AVerticalScroll.js +182 -177
  61. package/src/AWizard/AWizard.js +26 -21
  62. package/src/AWizard/AWizardStep/AWizardStep.js +275 -270
  63. package/src/AWizard/compositionAPI/__tests__/ChangeStepAPI.test.js +32 -32
  64. package/src/AWizard/compositionAPI/__tests__/LocalAPI.test.js +55 -55
  65. package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.js +646 -648
  66. package/src/PuxDatepicker/panel/PanelDate/PanelDate.js +300 -301
  67. package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.js +148 -149
  68. package/src/PuxDatepicker/panel/PanelTime/PanelTime.js +256 -257
  69. package/src/PuxDatepicker/panel/PanelYear/PanelYear.js +136 -137
  70. package/src/PuxDatepicker/utils/index.js +100 -100
  71. package/src/compositionAPI/AHttpAPI.js +593 -593
  72. package/src/compositionAPI/__tests__/AHttpAPI.test.js +42 -42
  73. package/src/filters/__tests__/filterBoolean.test.js +38 -38
  74. package/src/filters/__tests__/filterCapitalize.test.js +38 -38
  75. package/src/filters/__tests__/filterCurrency.test.js +21 -21
  76. package/src/filters/__tests__/filterDate.test.js +42 -42
  77. package/src/filters/__tests__/filterDefaultForEmpty.test.js +24 -24
  78. package/src/filters/__tests__/filterEmail.test.js +42 -42
  79. package/src/filters/__tests__/filterEscapeHtml.test.js +45 -45
  80. package/src/filters/__tests__/filterFileSize.test.js +45 -45
  81. package/src/filters/__tests__/filterFloat.test.js +74 -74
  82. package/src/filters/__tests__/filterJson.test.js +74 -74
  83. package/src/filters/__tests__/filterKeyValue.test.js +50 -50
  84. package/src/filters/__tests__/filterLimitTo.test.js +39 -39
  85. package/src/filters/__tests__/filterLink.test.js +41 -41
  86. package/src/filters/__tests__/filterList.test.js +149 -149
  87. package/src/filters/__tests__/filterLowerCase.test.js +38 -38
  88. package/src/filters/__tests__/filterMask.test.js +80 -80
  89. package/src/filters/__tests__/filterPropertyByValue.test.js +27 -27
  90. package/src/filters/__tests__/filterSearchHighlight.test.js +129 -129
  91. package/src/filters/__tests__/filterUpperCase.test.js +38 -38
  92. package/src/filters/__tests__/filterValueByCondition.test.js +3 -3
  93. package/src/filters/filterJson.js +39 -39
  94. package/src/filters/filterValueByCondition.js +2 -2
  95. package/src/plugins/AAlertPlugin.js +16 -5
  96. package/src/plugins/AMultiselectOrderedPlugin.js +88 -81
  97. package/src/plugins/ASelectPlugin.js +12 -10
  98. package/src/ui/ACheckbox/ACheckbox.js +82 -79
  99. package/src/ui/ADatepicker/ADatepicker.js +6 -5
  100. package/src/ui/ADatepicker/compositionAPI/EventsAPI.js +297 -297
  101. package/src/ui/ADatepicker/utils/index.js +76 -76
  102. package/src/ui/ADatepickerAlt/ADatepicker.js +912 -912
  103. package/src/ui/ADatepickerAlt/utils/index.js +98 -98
  104. package/src/ui/AFieldset/__tests__/AFieldset.ClassColumn.test.js +113 -114
  105. package/src/ui/AFormElementBtnClear/AFormElementBtnClear.js +4 -1
  106. package/src/ui/AInputCurrency/AInputCurrency.js +20 -15
  107. package/src/ui/AInputCurrency/__tests__/AInputCurrency.ModelAPI.test.js +73 -73
  108. package/src/ui/AInputNumber/AInputNumber.js +17 -12
  109. package/src/ui/AJson/AJson.js +12 -3
  110. package/src/ui/AJson/compositionAPI/JsonAPI.js +116 -116
  111. package/src/ui/ALabel/__tests__/ALabel.IdAPI.test.js +42 -42
  112. package/src/ui/ALabel/__tests__/ALabel.LabelAPI.test.js +33 -33
  113. package/src/ui/ARadio/ARadio.js +80 -77
  114. package/src/ui/ASelect/ASelect.js +390 -383
  115. package/src/ui/ASelect/ASelectElement/ASelectElement.js +179 -176
  116. package/src/ui/ASelect/ASelectValueCloseable/ASelectValueCloseable.js +143 -141
  117. package/src/ui/ASelect/__tests__/SelectedFirstAPI.test.js +101 -101
  118. package/src/ui/ASelect/__tests__/SelectedVisibleAPI.test.js +98 -98
  119. package/src/ui/ASlider/compositionAPI/SliderAPI.js +23 -23
  120. package/src/ui/AValidatedJson/AValidatedJson.js +4 -1
  121. package/src/ui/AValidatedJson/AValidatedJsonItem/AValidatedJsonItem.js +308 -298
  122. package/src/ui/compositionApi/UiCollapseAPI.js +68 -63
  123. package/src/ui/compositionApi/UiInputAutofillAPI.js +41 -41
  124. package/src/ui/compositionApi/__tests__/UIDataGroupAPI.test.js +106 -106
  125. package/src/ui/compositionApi/__tests__/UIExcludeRenderAttributesAPI.test.js +39 -39
  126. package/src/ui/compositionApi/__tests__/UiDataWithKeyIdAndLabelAPI.test.js +128 -128
  127. package/src/ui/compositionApi/__tests__/UiSearchAPI.test.js +71 -71
  128. package/src/utils/EventBus.js +51 -8
  129. package/src/utils/__tests__/EventBus.test.js +138 -0
  130. package/src/utils/__tests__/utils.aOrderBy.test.js +1 -1
  131. package/src/utils/__tests__/utils.aSortBy.test.js +1 -1
  132. package/src/utils/__tests__/utils.getTotalNestedCount.test.js +56 -56
  133. package/src/utils/__tests__/utils.isArrayOfArrays.test.js +44 -44
  134. package/src/utils/__tests__/utils.isArrayOfStrings.test.js +36 -36
  135. package/src/utils/__tests__/utilsArray.aFirst.test.js +1 -1
  136. package/src/utils/__tests__/utilsArray.aLast.test.js +1 -1
  137. package/src/utils/__tests__/utilsLang.isArguments.test.js +1 -1
  138. package/src/utils/__tests__/utilsLang.isArray.test.js +1 -1
  139. package/src/utils/__tests__/utilsLang.isArrayBuffer.test.js +1 -1
  140. package/src/utils/__tests__/utilsLang.isBoolean.test.js +1 -1
  141. package/src/utils/__tests__/utilsLang.isBuffer.test.js +1 -1
  142. package/src/utils/__tests__/utilsLang.isDate.test.js +1 -1
  143. package/src/utils/__tests__/utilsLang.isElement.test.js +5 -3
  144. package/src/utils/__tests__/utilsLang.isError.test.js +1 -1
  145. package/src/utils/__tests__/utilsLang.isFinite.test.js +1 -1
  146. package/src/utils/__tests__/utilsLang.isFunction.test.js +1 -1
  147. package/src/utils/__tests__/utilsLang.isInteger.test.js +1 -1
  148. package/src/utils/__tests__/utilsLang.isMap.test.js +1 -1
  149. package/src/utils/__tests__/utilsLang.isNaN.test.js +1 -1
  150. package/src/utils/__tests__/utilsLang.isNil.test.js +1 -1
  151. package/src/utils/__tests__/utilsLang.isNull.test.js +1 -1
  152. package/src/utils/__tests__/utilsLang.isNumber.test.js +1 -1
  153. package/src/utils/__tests__/utilsLang.isObject.test.js +1 -1
  154. package/src/utils/__tests__/utilsLang.isObjectLike.test.js +5 -3
  155. package/src/utils/__tests__/utilsLang.isPlainObject.test.js +3 -2
  156. package/src/utils/__tests__/utilsLang.isPromise.test.js +5 -2
  157. package/src/utils/__tests__/utilsLang.isRegExp.test.js +1 -1
  158. package/src/utils/__tests__/utilsLang.isSet.test.js +1 -1
  159. package/src/utils/__tests__/utilsLang.isString.test.js +1 -1
  160. package/src/utils/__tests__/utilsLang.isSymbol.test.js +5 -3
  161. package/src/utils/__tests__/utilsLang.isUndefined.test.js +1 -1
  162. package/src/utils/__tests__/utilsLang.isWeakMap.test.js +1 -1
  163. package/src/utils/__tests__/utilsLang.isWeakSet.test.js +1 -1
  164. package/src/utils/__tests__/utilsMath.isEven.test.js +43 -43
  165. package/src/utils/__tests__/utilsMath.isOdd.test.js +43 -43
  166. package/src/utils/__tests__/utilsUi.isModelForFilterNotEmpty.test.js +65 -65
  167. package/src/utils/autosize.js +1 -1
@@ -1,230 +1,235 @@
1
- import {
2
- h,
3
- onBeforeUnmount,
4
- resolveComponent,
5
- watch,
6
- withDirectives,
7
- } from "vue";
8
-
9
- import AIcon from "../../AIcon/AIcon";
10
-
11
- import AttributesAPI from "./compositionAPI/AttributesAPI";
12
- import ChildrenAPI from "./compositionAPI/ChildrenAPI";
13
- import ClassAPI from "./compositionAPI/ClassAPI";
14
- import ToggleAPI from "./compositionAPI/ToggleAPI";
15
- import VisibleAPI from "./compositionAPI/VisibleAPI";
16
-
17
- import ASafeHtml from "../../directives/ASafeHtml";
18
- import ChevronDown from "aloha-svg/dist/js/bootstrap/ChevronDown";
19
- import ChevronUp from "aloha-svg/dist/js/bootstrap/ChevronUp";
20
- import {
21
- AKeyId,
22
- } from "../../const/AKeys";
23
-
24
- export default {
25
- name: "AAccordionItem",
26
- props: {
27
- isParentOpen: {
28
- type: Boolean,
29
- required: true,
30
- },
31
- item: {
32
- type: Object,
33
- required: true,
34
- },
35
- itemIndex: {
36
- type: Number,
37
- required: true,
38
- },
39
- keyId: {
40
- type: String,
41
- required: false,
42
- default: undefined,
43
- },
44
- parentsIds: {
45
- type: Array,
46
- required: false,
47
- default: () => [],
48
- },
49
- parentIndexes: {
50
- type: Array,
51
- required: false,
52
- default: () => [],
53
- },
54
- },
55
- inject: [
56
- "classBody",
57
- "classHeader",
58
- "id",
59
- "withGap",
60
- ],
61
- setup(props) {
62
- const {
63
- closeItemIfOpen,
64
- currentId,
65
- isOpen,
66
- parentIndexesForChild,
67
- parentsIdsForChild,
68
- toggleLocal,
69
- } = ToggleAPI(props);
70
-
71
- const {
72
- children,
73
- hasChildren,
74
- } = ChildrenAPI(props);
75
-
76
- const {
77
- classBodyLocal,
78
- classButtonLocal,
79
- classHeaderLocal,
80
- } = ClassAPI(props);
81
-
82
- const {
83
- isBodyVisible,
84
- isOpenFirst,
85
- isRender,
86
- } = VisibleAPI(props);
87
-
88
- const {
89
- buttonAttributes,
90
- buttonTag,
91
- contentLocal,
92
- idForCollapse,
93
- isCaretLocal,
94
- labelLocal,
95
- } = AttributesAPI(props, {
96
- classButtonLocal,
97
- isOpen,
98
- toggleLocal,
99
- currentId,
100
- });
101
-
102
- watch(isOpen, newValue => {
103
- if (newValue && !isOpenFirst.value) {
104
- isOpenFirst.value = true;
105
- }
106
- }, {
107
- immediate: true,
108
- });
109
-
110
- onBeforeUnmount(() => {
111
- closeItemIfOpen();
112
- });
113
-
114
- return {
115
- buttonAttributes,
116
- buttonTag,
117
- children,
118
- classBodyLocal,
119
- classButtonLocal,
120
- classHeaderLocal,
121
- contentLocal,
122
- currentId,
123
- hasChildren,
124
- idForCollapse,
125
- isCaretLocal,
126
- isBodyVisible,
127
- isOpen,
128
- isRender,
129
- labelLocal,
130
- parentIndexesForChild,
131
- parentsIdsForChild,
132
- };
133
- },
134
- render() {
135
- let body = [];
136
- if (this.isBodyVisible) {
137
- body = [
138
- (this.item.slotContent && this.$slots[this.item.slotContent]) ?
139
- this.$slots[this.item.slotContent]({
140
- item: this.item,
141
- itemIndex: this.itemIndex,
142
- parentsIds: this.parentsIds,
143
- parentIndexes: this.parentIndexes,
144
- id: this.id,
145
- currentId: this.currentId,
146
- }) :
147
- this.$slots.accordionContent ?
148
- this.$slots.accordionContent({
149
- item: this.item,
150
- itemIndex: this.itemIndex,
151
- parentsIds: this.parentsIds,
152
- parentIndexes: this.parentIndexes,
153
- id: this.id,
154
- currentId: this.currentId,
155
- }) :
156
- this.contentLocal && withDirectives(h("div"), [
157
- [ASafeHtml, this.contentLocal],
158
- ]),
159
- this.hasChildren && h("div", {
160
- class: ["a_accordion"],
161
- }, [
162
- this.children.map((itemChild, itemChildIndex) => {
163
- return h(resolveComponent("AAccordionItem"), {
164
- key: itemChild[AKeyId],
165
- item: itemChild,
166
- itemIndex: itemChildIndex,
167
- isParentOpen: this.isOpen,
168
- parentsIds: this.parentsIdsForChild,
169
- parentIndexes: this.parentIndexesForChild,
170
- keyId: this.keyId,
171
- }, this.$slots);
172
- }),
173
- ]),
174
- ];
175
- }
176
-
177
-
178
- return this.isRender && h("div", {
179
- class: [
180
- "a_accordion__item",
181
- {
182
- a_accordion__item_with_gap: this.withGap,
183
- a_accordion__item_open: this.isOpen,
184
- a_accordion__item_close: !this.isOpen,
185
- },
186
- ],
187
- }, [
188
- h("div", {
189
- class: ["a_accordion__header", this.classHeader, this.classHeaderLocal],
190
- }, [
191
- h(this.buttonTag, this.buttonAttributes, [
192
- this.item.slotButton && this.$slots[this.item.slotButton] ?
193
- this.$slots[this.item.slotButton]({
194
- item: this.item,
195
- itemIndex: this.itemIndex,
196
- parentsIds: this.parentsIds,
197
- parentIndexes: this.parentIndexes,
198
- id: this.id,
199
- currentId: this.currentId,
200
- }) :
201
- this.$slots.accordionButton && this.$slots.accordionButton({
202
- item: this.item,
203
- itemIndex: this.itemIndex,
204
- parentsIds: this.parentsIds,
205
- parentIndexes: this.parentIndexes,
206
- id: this.id,
207
- currentId: this.currentId,
208
- }),
209
- this.labelLocal && withDirectives(h("span"), [
210
- [ASafeHtml, this.labelLocal],
211
- ]),
212
- this.isCaretLocal && h(AIcon, {
213
- class: "a_accordion__button__icon",
214
- icon: this.isOpen ? ChevronUp : ChevronDown,
215
- }),
216
- ]),
217
- ]),
218
- h("div", {
219
- id: this.idForCollapse,
220
- class: ["a_accordion__collapse_box", {
221
- a_accordion__collapse_box_show: this.isOpen,
222
- }],
223
- }, [
224
- h("div", {
225
- class: ["a_accordion__body", this.classBody, this.classBodyLocal],
226
- }, body),
227
- ]),
228
- ]);
229
- },
230
- };
1
+ import {
2
+ h,
3
+ onBeforeUnmount,
4
+ resolveComponent,
5
+ watch,
6
+ withDirectives,
7
+ } from "vue";
8
+
9
+ import AIcon from "../../AIcon/AIcon";
10
+
11
+ import AttributesAPI from "./compositionAPI/AttributesAPI";
12
+ import ChildrenAPI from "./compositionAPI/ChildrenAPI";
13
+ import ClassAPI from "./compositionAPI/ClassAPI";
14
+ import ToggleAPI from "./compositionAPI/ToggleAPI";
15
+ import VisibleAPI from "./compositionAPI/VisibleAPI";
16
+
17
+ import ASafeHtml from "../../directives/ASafeHtml";
18
+ import {
19
+ AKeyId,
20
+ } from "../../const/AKeys";
21
+
22
+ const ChevronDown = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
23
+ <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>
24
+ </svg>`;
25
+ const ChevronUp = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-up" viewBox="0 0 16 16">
26
+ <path fill-rule="evenodd" d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"/>
27
+ </svg>`;
28
+
29
+ export default {
30
+ name: "AAccordionItem",
31
+ props: {
32
+ isParentOpen: {
33
+ type: Boolean,
34
+ required: true,
35
+ },
36
+ item: {
37
+ type: Object,
38
+ required: true,
39
+ },
40
+ itemIndex: {
41
+ type: Number,
42
+ required: true,
43
+ },
44
+ keyId: {
45
+ type: String,
46
+ required: false,
47
+ default: undefined,
48
+ },
49
+ parentsIds: {
50
+ type: Array,
51
+ required: false,
52
+ default: () => [],
53
+ },
54
+ parentIndexes: {
55
+ type: Array,
56
+ required: false,
57
+ default: () => [],
58
+ },
59
+ },
60
+ inject: [
61
+ "classBody",
62
+ "classHeader",
63
+ "id",
64
+ "withGap",
65
+ ],
66
+ setup(props) {
67
+ const {
68
+ closeItemIfOpen,
69
+ currentId,
70
+ isOpen,
71
+ parentIndexesForChild,
72
+ parentsIdsForChild,
73
+ toggleLocal,
74
+ } = ToggleAPI(props);
75
+
76
+ const {
77
+ children,
78
+ hasChildren,
79
+ } = ChildrenAPI(props);
80
+
81
+ const {
82
+ classBodyLocal,
83
+ classButtonLocal,
84
+ classHeaderLocal,
85
+ } = ClassAPI(props);
86
+
87
+ const {
88
+ isBodyVisible,
89
+ isOpenFirst,
90
+ isRender,
91
+ } = VisibleAPI(props);
92
+
93
+ const {
94
+ buttonAttributes,
95
+ buttonTag,
96
+ contentLocal,
97
+ idForCollapse,
98
+ isCaretLocal,
99
+ labelLocal,
100
+ } = AttributesAPI(props, {
101
+ classButtonLocal,
102
+ isOpen,
103
+ toggleLocal,
104
+ currentId,
105
+ });
106
+
107
+ watch(isOpen, newValue => {
108
+ if (newValue && !isOpenFirst.value) {
109
+ isOpenFirst.value = true;
110
+ }
111
+ }, {
112
+ immediate: true,
113
+ });
114
+
115
+ onBeforeUnmount(() => {
116
+ closeItemIfOpen();
117
+ });
118
+
119
+ return {
120
+ buttonAttributes,
121
+ buttonTag,
122
+ children,
123
+ classBodyLocal,
124
+ classButtonLocal,
125
+ classHeaderLocal,
126
+ contentLocal,
127
+ currentId,
128
+ hasChildren,
129
+ idForCollapse,
130
+ isCaretLocal,
131
+ isBodyVisible,
132
+ isOpen,
133
+ isRender,
134
+ labelLocal,
135
+ parentIndexesForChild,
136
+ parentsIdsForChild,
137
+ };
138
+ },
139
+ render() {
140
+ let body = [];
141
+ if (this.isBodyVisible) {
142
+ body = [
143
+ (this.item.slotContent && this.$slots[this.item.slotContent]) ?
144
+ this.$slots[this.item.slotContent]({
145
+ item: this.item,
146
+ itemIndex: this.itemIndex,
147
+ parentsIds: this.parentsIds,
148
+ parentIndexes: this.parentIndexes,
149
+ id: this.id,
150
+ currentId: this.currentId,
151
+ }) :
152
+ this.$slots.accordionContent ?
153
+ this.$slots.accordionContent({
154
+ item: this.item,
155
+ itemIndex: this.itemIndex,
156
+ parentsIds: this.parentsIds,
157
+ parentIndexes: this.parentIndexes,
158
+ id: this.id,
159
+ currentId: this.currentId,
160
+ }) :
161
+ this.contentLocal && withDirectives(h("div"), [
162
+ [ASafeHtml, this.contentLocal],
163
+ ]),
164
+ this.hasChildren && h("div", {
165
+ class: ["a_accordion"],
166
+ }, [
167
+ this.children.map((itemChild, itemChildIndex) => {
168
+ return h(resolveComponent("AAccordionItem"), {
169
+ key: itemChild[AKeyId],
170
+ item: itemChild,
171
+ itemIndex: itemChildIndex,
172
+ isParentOpen: this.isOpen,
173
+ parentsIds: this.parentsIdsForChild,
174
+ parentIndexes: this.parentIndexesForChild,
175
+ keyId: this.keyId,
176
+ }, this.$slots);
177
+ }),
178
+ ]),
179
+ ];
180
+ }
181
+
182
+
183
+ return this.isRender && h("div", {
184
+ class: [
185
+ "a_accordion__item",
186
+ {
187
+ a_accordion__item_with_gap: this.withGap,
188
+ a_accordion__item_open: this.isOpen,
189
+ a_accordion__item_close: !this.isOpen,
190
+ },
191
+ ],
192
+ }, [
193
+ h("div", {
194
+ class: ["a_accordion__header", this.classHeader, this.classHeaderLocal],
195
+ }, [
196
+ h(this.buttonTag, this.buttonAttributes, [
197
+ this.item.slotButton && this.$slots[this.item.slotButton] ?
198
+ this.$slots[this.item.slotButton]({
199
+ item: this.item,
200
+ itemIndex: this.itemIndex,
201
+ parentsIds: this.parentsIds,
202
+ parentIndexes: this.parentIndexes,
203
+ id: this.id,
204
+ currentId: this.currentId,
205
+ }) :
206
+ this.$slots.accordionButton && this.$slots.accordionButton({
207
+ item: this.item,
208
+ itemIndex: this.itemIndex,
209
+ parentsIds: this.parentsIds,
210
+ parentIndexes: this.parentIndexes,
211
+ id: this.id,
212
+ currentId: this.currentId,
213
+ }),
214
+ this.labelLocal && withDirectives(h("span"), [
215
+ [ASafeHtml, this.labelLocal],
216
+ ]),
217
+ this.isCaretLocal && h(AIcon, {
218
+ class: "a_accordion__button__icon",
219
+ icon: this.isOpen ? ChevronUp : ChevronDown,
220
+ }),
221
+ ]),
222
+ ]),
223
+ h("div", {
224
+ id: this.idForCollapse,
225
+ class: ["a_accordion__collapse_box", {
226
+ a_accordion__collapse_box_show: this.isOpen,
227
+ }],
228
+ }, [
229
+ h("div", {
230
+ class: ["a_accordion__body", this.classBody, this.classBodyLocal],
231
+ }, body),
232
+ ]),
233
+ ]);
234
+ },
235
+ };
@@ -17,8 +17,6 @@ import DataAPI from "./compositionAPI/DataAPI";
17
17
  import IndicatorsAPI from "./compositionAPI/IndicatorsAPI";
18
18
  import TextsAPI from "./compositionAPI/TextsAPI";
19
19
 
20
- import ChevronLeft from "aloha-svg/dist/js/bootstrap/ChevronLeft";
21
- import ChevronRight from "aloha-svg/dist/js/bootstrap/ChevronRight";
22
20
  import {
23
21
  AKeyId,
24
22
  } from "../const/AKeys";
@@ -29,6 +27,13 @@ import {
29
27
  uniqueId,
30
28
  } from "lodash-es";
31
29
 
30
+ const ChevronLeft = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
31
+ <path fill-rule="evenodd" d="M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0"/>
32
+ </svg>`;
33
+ const ChevronRight = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-right" viewBox="0 0 16 16">
34
+ <path fill-rule="evenodd" d="M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"/>
35
+ </svg>`;
36
+
32
37
  export default {
33
38
  name: "ACarousel",
34
39
  props: {
@@ -27,12 +27,15 @@ import RefsAPI from "./compositionAPI/RefsAPI";
27
27
  import ToggleAPI from "./compositionAPI/ToggleAPI";
28
28
 
29
29
  import ADropdownGroup from "./ADropdownGroup";
30
- import ChevronDown from "aloha-svg/dist/js/bootstrap/ChevronDown";
31
30
  import {
32
31
  difference,
33
32
  uniqueId,
34
33
  } from "lodash-es";
35
34
 
35
+ const ChevronDown = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
36
+ <path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"/>
37
+ </svg>`;
38
+
36
39
  export default {
37
40
  name: "ADropdown",
38
41
  inheritAttrs: false,
@@ -11,7 +11,11 @@ import AFilterCenterItem from "./AFilterCenterItem/AFilterCenterItem";
11
11
  import LoadingFiltersAPI from "./compositionAPI/LoadingFiltersAPI";
12
12
  import VisibleFiltersAPI from "./compositionAPI/VisibleFiltersAPI";
13
13
 
14
- import ArrowClockwise from "aloha-svg/dist/js/bootstrap/ArrowClockwise";
14
+ const ArrowClockwise = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-clockwise" viewBox="0 0 16 16">
15
+ <path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"/>
16
+ <path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"/>
17
+ </svg>`;
18
+
15
19
 
16
20
  export default {
17
21
  name: "AFilterCenter",
@@ -16,8 +16,13 @@ import IsDataLoadingAPI from "./compositionAPI/IsDataLoadingAPI";
16
16
  import LabelAPI from "./compositionAPI/LabelAPI";
17
17
  import ModelValuesAPI from "./compositionAPI/ModelValuesAPI";
18
18
 
19
- import PinFill from "aloha-svg/dist/js/bootstrap/PinFill";
20
- import XLg from "aloha-svg/dist/js/bootstrap/XLg";
19
+ const PinFill = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pin-fill" viewBox="0 0 16 16">
20
+ <path d="M4.146.146A.5.5 0 0 1 4.5 0h7a.5.5 0 0 1 .5.5c0 .68-.342 1.174-.646 1.479-.126.125-.25.224-.354.298v4.431l.078.048c.203.127.476.314.751.555C12.36 7.775 13 8.527 13 9.5a.5.5 0 0 1-.5.5h-4v4.5c0 .276-.224 1.5-.5 1.5s-.5-1.224-.5-1.5V10h-4a.5.5 0 0 1-.5-.5c0-.973.64-1.725 1.17-2.189A6 6 0 0 1 5 6.708V2.277a3 3 0 0 1-.354-.298C4.342 1.674 4 1.179 4 .5a.5.5 0 0 1 .146-.354"/>
21
+ </svg>`;
22
+ 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">
23
+ <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"/>
24
+ </svg>`;
25
+
21
26
 
22
27
  export default {
23
28
  name: "AFilterCenterItem",