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,119 +1,122 @@
1
- import {
2
- h,
3
- } from "vue";
4
-
5
- import AButton from "../../AButton/AButton";
6
- import ADropdown from "../../ADropdown/ADropdown";
7
- import AMenuPanelLink from "../AMenuPanelLink/AMenuPanelLink";
8
-
9
- import BreadcrumbsItemsAPI from "./compositionAPI/BreadcrumbsItemsAPI";
10
- import EventsAPI from "./compositionAPI/EventsAPI";
11
-
12
- import ThreeDots from "aloha-svg/dist/js/bootstrap/ThreeDots";
13
-
14
- export default {
15
- name: "AMenuSearchPanelBreadcrumbs",
16
- props: {
17
- breadcrumbsLinkClass: {
18
- type: [String, Object],
19
- required: false,
20
- default: undefined,
21
- },
22
- breadcrumbsTruncatedDropdownProps: {
23
- type: Object,
24
- required: false,
25
- default: () => ({}),
26
- },
27
- dataProParentChildren: {
28
- type: Object,
29
- required: true,
30
- },
31
- item: {
32
- type: Object,
33
- required: true,
34
- },
35
- isSearchBreadcrumbsTruncated: {
36
- type: Boolean,
37
- required: false,
38
- default: false,
39
- },
40
- menuId: {
41
- type: String,
42
- required: true,
43
- },
44
- modelSearch: {
45
- type: String,
46
- required: false,
47
- default: undefined,
48
- },
49
- },
50
- setup(props) {
51
- const {
52
- breadcrumbsItems,
53
- } = BreadcrumbsItemsAPI(props);
54
-
55
- const {
56
- goTo,
57
- goToKeydown,
58
- } = EventsAPI();
59
-
60
- return {
61
- breadcrumbsItems,
62
- goTo,
63
- goToKeydown,
64
- };
65
- },
66
- render() {
67
- return h("li", {}, [
68
- h("ul", {
69
- class: "a_menu__breadcrumb__ul a_menu__breadcrumb__ul_search",
70
- }, [
71
- h("li", {}, [
72
- h(ADropdown, {
73
- buttonClass: "a_btn a_btn_secondary a_btn_small a_menu__breadcrumb__ul_truncated__btn",
74
- buttonIconLeft: ThreeDots,
75
- buttonTextScreenReader: "_A_MENU_2_BREADCRUMB_SHOW_BTN_",
76
- buttonTitle: "_A_MENU_2_BREADCRUMB_SHOW_BTN_",
77
- dropdownClass: "a_menu__breadcrumb__ul_truncated__dropdown",
78
- hasCaret: false,
79
- inBody: true,
80
- ...this.breadcrumbsTruncatedDropdownProps,
81
- }, {
82
- dropdown: () => [
83
- this.breadcrumbsItems.map(breadcrumbsItem => {
84
- return h("li", {
85
- key: breadcrumbsItem.parentId,
86
- class: "a_menu__breadcrumbs__item",
87
- }, [
88
- h(AButton, {
89
- text: breadcrumbsItem.label,
90
- title: breadcrumbsItem.label,
91
- tag: "a",
92
- class: [
93
- "a_menu__breadcrumbs__link",
94
- this.breadcrumbsLinkClass,
95
- ],
96
- role: "button",
97
- tabindex: 0,
98
- onClick: () => this.goTo({ parentIds: breadcrumbsItem.parentIds }),
99
- onKeydown: $event => this.goToKeydown({ $event, parentIds: breadcrumbsItem.parentIds }),
100
- }),
101
- h("span", {
102
- class: "a_menu__breadcrumbs__item__divider",
103
- }, "/"),
104
- ]);
105
- }),
106
- ],
107
- }),
108
- ]),
109
- h(AMenuPanelLink, {
110
- item: this.item,
111
- dataProParentChildren: this.dataProParentChildren,
112
- isLinkInSearchPanel: true,
113
- modelSearch: this.modelSearch,
114
- menuId: this.menuId,
115
- }, this.$slots),
116
- ]),
117
- ]);
118
- },
119
- };
1
+ import {
2
+ h,
3
+ } from "vue";
4
+
5
+ import AButton from "../../AButton/AButton";
6
+ import ADropdown from "../../ADropdown/ADropdown";
7
+ import AMenuPanelLink from "../AMenuPanelLink/AMenuPanelLink";
8
+
9
+ import BreadcrumbsItemsAPI from "./compositionAPI/BreadcrumbsItemsAPI";
10
+ import EventsAPI from "./compositionAPI/EventsAPI";
11
+
12
+ const ThreeDots = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-three-dots" viewBox="0 0 16 16">
13
+ <path d="M3 9.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m5 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3"/>
14
+ </svg>`;
15
+
16
+
17
+ export default {
18
+ name: "AMenuSearchPanelBreadcrumbs",
19
+ props: {
20
+ breadcrumbsLinkClass: {
21
+ type: [String, Object],
22
+ required: false,
23
+ default: undefined,
24
+ },
25
+ breadcrumbsTruncatedDropdownProps: {
26
+ type: Object,
27
+ required: false,
28
+ default: () => ({}),
29
+ },
30
+ dataProParentChildren: {
31
+ type: Object,
32
+ required: true,
33
+ },
34
+ item: {
35
+ type: Object,
36
+ required: true,
37
+ },
38
+ isSearchBreadcrumbsTruncated: {
39
+ type: Boolean,
40
+ required: false,
41
+ default: false,
42
+ },
43
+ menuId: {
44
+ type: String,
45
+ required: true,
46
+ },
47
+ modelSearch: {
48
+ type: String,
49
+ required: false,
50
+ default: undefined,
51
+ },
52
+ },
53
+ setup(props) {
54
+ const {
55
+ breadcrumbsItems,
56
+ } = BreadcrumbsItemsAPI(props);
57
+
58
+ const {
59
+ goTo,
60
+ goToKeydown,
61
+ } = EventsAPI();
62
+
63
+ return {
64
+ breadcrumbsItems,
65
+ goTo,
66
+ goToKeydown,
67
+ };
68
+ },
69
+ render() {
70
+ return h("li", {}, [
71
+ h("ul", {
72
+ class: "a_menu__breadcrumb__ul a_menu__breadcrumb__ul_search",
73
+ }, [
74
+ h("li", {}, [
75
+ h(ADropdown, {
76
+ buttonClass: "a_btn a_btn_secondary a_btn_small a_menu__breadcrumb__ul_truncated__btn",
77
+ buttonIconLeft: ThreeDots,
78
+ buttonTextScreenReader: "_A_MENU_2_BREADCRUMB_SHOW_BTN_",
79
+ buttonTitle: "_A_MENU_2_BREADCRUMB_SHOW_BTN_",
80
+ dropdownClass: "a_menu__breadcrumb__ul_truncated__dropdown",
81
+ hasCaret: false,
82
+ inBody: true,
83
+ ...this.breadcrumbsTruncatedDropdownProps,
84
+ }, {
85
+ dropdown: () => [
86
+ this.breadcrumbsItems.map(breadcrumbsItem => {
87
+ return h("li", {
88
+ key: breadcrumbsItem.parentId,
89
+ class: "a_menu__breadcrumbs__item",
90
+ }, [
91
+ h(AButton, {
92
+ text: breadcrumbsItem.label,
93
+ title: breadcrumbsItem.label,
94
+ tag: "a",
95
+ class: [
96
+ "a_menu__breadcrumbs__link",
97
+ this.breadcrumbsLinkClass,
98
+ ],
99
+ role: "button",
100
+ tabindex: 0,
101
+ onClick: () => this.goTo({ parentIds: breadcrumbsItem.parentIds }),
102
+ onKeydown: $event => this.goToKeydown({ $event, parentIds: breadcrumbsItem.parentIds }),
103
+ }),
104
+ h("span", {
105
+ class: "a_menu__breadcrumbs__item__divider",
106
+ }, "/"),
107
+ ]);
108
+ }),
109
+ ],
110
+ }),
111
+ ]),
112
+ h(AMenuPanelLink, {
113
+ item: this.item,
114
+ dataProParentChildren: this.dataProParentChildren,
115
+ isLinkInSearchPanel: true,
116
+ modelSearch: this.modelSearch,
117
+ menuId: this.menuId,
118
+ }, this.$slots),
119
+ ]),
120
+ ]);
121
+ },
122
+ };
@@ -5,13 +5,11 @@ import {
5
5
  import AModal from "../AModal/AModal";
6
6
  import AWizard from "../AWizard/AWizard";
7
7
 
8
- import EmitsAPI from "./compositionAPI/EmitsAPI";
9
- import IdsAPI from "./compositionAPI/IdsAPI";
10
- import ScrollAPI from "./compositionAPI/ScrollAPI";
11
- import VisibleAPI from "./compositionAPI/VisibleAPI";
8
+ import EmitsAPI from "./compositionAPI/EmitsAPI";
9
+ import IdsAPI from "./compositionAPI/IdsAPI";
10
+ import ScrollAPI from "./compositionAPI/ScrollAPI";
11
+ import VisibleAPI from "./compositionAPI/VisibleAPI";
12
12
 
13
- import ExclamationCircleFill from "aloha-svg/dist/js/bootstrap/ExclamationCircleFill";
14
- import XCircleFill from "aloha-svg/dist/js/bootstrap/XCircleFill";
15
13
  import {
16
14
  modalPluginOptions,
17
15
  } from "../plugins/AModalPlugin";
@@ -20,6 +18,13 @@ import {
20
18
  uniqueId,
21
19
  } from "lodash-es";
22
20
 
21
+ const ExclamationCircleFill = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-exclamation-circle-fill" viewBox="0 0 16 16">
22
+ <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4m.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2"/>
23
+ </svg>`;
24
+ const XCircleFill = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-x-circle-fill" viewBox="0 0 16 16">
25
+ <path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0M5.354 4.646a.5.5 0 1 0-.708.708L7.293 8l-2.647 2.646a.5.5 0 0 0 .708.708L8 8.707l2.646 2.647a.5.5 0 0 0 .708-.708L8.707 8l2.647-2.646a.5.5 0 0 0-.708-.708L8 7.293z"/>
26
+ </svg>`;
27
+
23
28
  // @vue/component
24
29
  export default {
25
30
  name: "AModalWizard",
@@ -351,16 +356,16 @@ export default {
351
356
  required: false,
352
357
  default: true,
353
358
  },
354
- keyId: {
355
- type: String,
356
- required: false,
357
- default: undefined,
358
- },
359
- scrollToTopOnStepChange: {
360
- type: Boolean,
361
- default: true,
362
- },
363
- showOnlyActiveStepMobile: {
359
+ keyId: {
360
+ type: String,
361
+ required: false,
362
+ default: undefined,
363
+ },
364
+ scrollToTopOnStepChange: {
365
+ type: Boolean,
366
+ default: true,
367
+ },
368
+ showOnlyActiveStepMobile: {
364
369
  type: Boolean,
365
370
  required: false,
366
371
  default: true,
@@ -432,51 +437,51 @@ export default {
432
437
  validator: value => ["arrows", "line", "round", "basic"].indexOf(value) !== -1,
433
438
  },
434
439
  },
435
- emits: [
436
- "changeStep",
437
- "goStepBack",
440
+ emits: [
441
+ "changeStep",
442
+ "goStepBack",
438
443
  "goStepForward",
439
444
  ],
440
445
  setup(props, context) {
441
- const {
442
- footerId,
446
+ const {
447
+ footerId,
443
448
  wizardId,
444
449
  } = IdsAPI(props);
445
450
 
446
- const {
447
- initWizard,
448
- isWizardVisible,
449
- } = VisibleAPI();
450
-
451
- const {
452
- modalBodyRef,
453
- scrollToTop,
454
- } = ScrollAPI(props);
455
-
456
- const {
457
- changeStepLocal,
458
- goStepBackLocal,
459
- goStepForwardLocal,
460
- } = EmitsAPI(context, {
461
- scrollToTop,
462
- });
451
+ const {
452
+ initWizard,
453
+ isWizardVisible,
454
+ } = VisibleAPI();
455
+
456
+ const {
457
+ modalBodyRef,
458
+ scrollToTop,
459
+ } = ScrollAPI(props);
460
+
461
+ const {
462
+ changeStepLocal,
463
+ goStepBackLocal,
464
+ goStepForwardLocal,
465
+ } = EmitsAPI(context, {
466
+ scrollToTop,
467
+ });
463
468
 
464
469
  initWizard();
465
470
 
466
471
  return {
467
- footerId,
468
- changeStepLocal,
469
- goStepBackLocal,
470
- goStepForwardLocal,
471
- isWizardVisible,
472
- modalBodyRef,
473
- wizardId,
472
+ footerId,
473
+ changeStepLocal,
474
+ goStepBackLocal,
475
+ goStepForwardLocal,
476
+ isWizardVisible,
477
+ modalBodyRef,
478
+ wizardId,
474
479
  };
475
480
  },
476
481
  render() {
477
- return h(AModal, {
478
- ref: "modalBodyRef",
479
- alwaysTranslate: this.alwaysTranslate,
482
+ return h(AModal, {
483
+ ref: "modalBodyRef",
484
+ alwaysTranslate: this.alwaysTranslate,
480
485
  backdropZIndex: this.backdropZIndex,
481
486
  classExtra: this.classExtra,
482
487
  close: this.close,
@@ -517,8 +522,8 @@ export default {
517
522
  }, {
518
523
  ...this.$slots || {},
519
524
  modalBody: () => [
520
- this.isWizardVisible && h(AWizard, {
521
- id: this.wizardId,
525
+ this.isWizardVisible && h(AWizard, {
526
+ id: this.wizardId,
522
527
  ariaLabel: this.ariaLabel,
523
528
  ariaLabelSteps: this.ariaLabelSteps,
524
529
  backButtonAttributes: this.backButtonAttributes,
@@ -563,9 +568,9 @@ export default {
563
568
  stepsVisited: this.stepsVisited,
564
569
  subType: this.subType,
565
570
  toolbarBottomTeleportId: this.footerId,
566
- type: this.type,
567
- onChangeStep: this.changeStepLocal,
568
- onGoStepBack: this.goStepBackLocal,
571
+ type: this.type,
572
+ onChangeStep: this.changeStepLocal,
573
+ onGoStepBack: this.goStepBackLocal,
569
574
  onGoStepForward: this.goStepForwardLocal,
570
575
  }, this.$slots),
571
576
  ],
@@ -1,46 +1,46 @@
1
- import {
2
- reactive,
3
- } from "vue";
4
- import {
5
- describe,
6
- expect,
7
- it,
8
- jest,
9
- } from "@jest/globals";
10
-
11
- import ScrollAPI from "../ScrollAPI";
12
-
13
- describe("AModalWizard ScrollAPI", () => {
14
- it("scrolls the modal body when the active step changes", () => {
15
- const props = reactive({
16
- scrollToTopOnStepChange: true,
17
- });
18
- const scrollTo = jest.fn();
19
- const modalBody = {
20
- scrollTo,
21
- };
22
-
23
- const {
24
- modalBodyRef,
25
- scrollToTop,
26
- } = ScrollAPI(props);
27
-
28
- modalBodyRef.value = {
29
- modalRef: {
30
- querySelector: jest.fn(() => modalBody),
31
- },
32
- };
33
-
34
- scrollToTop();
35
-
36
- expect(scrollTo).toHaveBeenCalledWith({
37
- top: 0,
38
- behavior: "auto",
39
- });
40
-
41
- props.scrollToTopOnStepChange = false;
42
- scrollToTop();
43
-
44
- expect(scrollTo).toHaveBeenCalledTimes(1);
45
- });
46
- });
1
+ import {
2
+ reactive,
3
+ } from "vue";
4
+ import {
5
+ describe,
6
+ expect,
7
+ it,
8
+ vi,
9
+ } from "vitest";
10
+
11
+ import ScrollAPI from "../ScrollAPI";
12
+
13
+ describe("AModalWizard ScrollAPI", () => {
14
+ it("scrolls the modal body when the active step changes", () => {
15
+ const props = reactive({
16
+ scrollToTopOnStepChange: true,
17
+ });
18
+ const scrollTo = vi.fn();
19
+ const modalBody = {
20
+ scrollTo,
21
+ };
22
+
23
+ const {
24
+ modalBodyRef,
25
+ scrollToTop,
26
+ } = ScrollAPI(props);
27
+
28
+ modalBodyRef.value = {
29
+ modalRef: {
30
+ querySelector: vi.fn(() => modalBody),
31
+ },
32
+ };
33
+
34
+ scrollToTop();
35
+
36
+ expect(scrollTo).toHaveBeenCalledWith({
37
+ top: 0,
38
+ behavior: "auto",
39
+ });
40
+
41
+ props.scrollToTopOnStepChange = false;
42
+ scrollToTop();
43
+
44
+ expect(scrollTo).toHaveBeenCalledTimes(1);
45
+ });
46
+ });
@@ -10,14 +10,25 @@ import PaginationItemsAPI from "./compositionAPI/PaginationItemsAPI";
10
10
  import TextsAPI from "./compositionAPI/TextsAPI";
11
11
  import UpdateOffsetAPI from "./compositionAPI/UpdateOffsetAPI";
12
12
 
13
- import ChevronDoubleLeft from "aloha-svg/dist/js/bootstrap/ChevronDoubleLeft";
14
- import ChevronDoubleRight from "aloha-svg/dist/js/bootstrap/ChevronDoubleRight";
15
- import ChevronLeft from "aloha-svg/dist/js/bootstrap/ChevronLeft";
16
- import ChevronRight from "aloha-svg/dist/js/bootstrap/ChevronRight";
17
13
  import {
18
14
  isInteger,
19
15
  } from "lodash-es";
20
16
 
17
+ const ChevronDoubleLeft = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-double-left" viewBox="0 0 16 16">
18
+ <path fill-rule="evenodd" d="M8.354 1.646a.5.5 0 0 1 0 .708L2.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"/>
19
+ <path fill-rule="evenodd" d="M12.354 1.646a.5.5 0 0 1 0 .708L6.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"/>
20
+ </svg>`;
21
+ const ChevronDoubleRight = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-double-right" viewBox="0 0 16 16">
22
+ <path fill-rule="evenodd" d="M3.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-.708L9.293 8 3.646 2.354a.5.5 0 0 1 0-.708"/>
23
+ <path fill-rule="evenodd" d="M7.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-.708L13.293 8 7.646 2.354a.5.5 0 0 1 0-.708"/>
24
+ </svg>`;
25
+ 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">
26
+ <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"/>
27
+ </svg>`;
28
+ 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">
29
+ <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"/>
30
+ </svg>`;
31
+
21
32
  export default {
22
33
  name: "APaginationPages",
23
34
  props: {