aloha-vue 2.74.0 → 2.75.0

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 (166) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +22 -21
  3. package/dist/aloha-vue.css +13594 -13594
  4. package/dist/aloha-vue.css.map +1 -1
  5. package/dist/aloha-vue.es.js +59266 -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/compositionAPI/EventsAPI.js +297 -297
  100. package/src/ui/ADatepicker/utils/index.js +76 -76
  101. package/src/ui/ADatepickerAlt/ADatepicker.js +912 -912
  102. package/src/ui/ADatepickerAlt/utils/index.js +98 -98
  103. package/src/ui/AFieldset/__tests__/AFieldset.ClassColumn.test.js +113 -114
  104. package/src/ui/AFormElementBtnClear/AFormElementBtnClear.js +4 -1
  105. package/src/ui/AInputCurrency/AInputCurrency.js +20 -15
  106. package/src/ui/AInputCurrency/__tests__/AInputCurrency.ModelAPI.test.js +73 -73
  107. package/src/ui/AInputNumber/AInputNumber.js +17 -12
  108. package/src/ui/AJson/AJson.js +12 -3
  109. package/src/ui/AJson/compositionAPI/JsonAPI.js +116 -116
  110. package/src/ui/ALabel/__tests__/ALabel.IdAPI.test.js +42 -42
  111. package/src/ui/ALabel/__tests__/ALabel.LabelAPI.test.js +33 -33
  112. package/src/ui/ARadio/ARadio.js +80 -77
  113. package/src/ui/ASelect/ASelect.js +390 -383
  114. package/src/ui/ASelect/ASelectElement/ASelectElement.js +179 -176
  115. package/src/ui/ASelect/ASelectValueCloseable/ASelectValueCloseable.js +143 -141
  116. package/src/ui/ASelect/__tests__/SelectedFirstAPI.test.js +101 -101
  117. package/src/ui/ASelect/__tests__/SelectedVisibleAPI.test.js +98 -98
  118. package/src/ui/ASlider/compositionAPI/SliderAPI.js +23 -23
  119. package/src/ui/AValidatedJson/AValidatedJson.js +4 -1
  120. package/src/ui/AValidatedJson/AValidatedJsonItem/AValidatedJsonItem.js +308 -298
  121. package/src/ui/compositionApi/UiCollapseAPI.js +68 -63
  122. package/src/ui/compositionApi/UiInputAutofillAPI.js +41 -41
  123. package/src/ui/compositionApi/__tests__/UIDataGroupAPI.test.js +106 -106
  124. package/src/ui/compositionApi/__tests__/UIExcludeRenderAttributesAPI.test.js +39 -39
  125. package/src/ui/compositionApi/__tests__/UiDataWithKeyIdAndLabelAPI.test.js +128 -128
  126. package/src/ui/compositionApi/__tests__/UiSearchAPI.test.js +71 -71
  127. package/src/utils/EventBus.js +51 -8
  128. package/src/utils/__tests__/EventBus.test.js +138 -0
  129. package/src/utils/__tests__/utils.aOrderBy.test.js +1 -1
  130. package/src/utils/__tests__/utils.aSortBy.test.js +1 -1
  131. package/src/utils/__tests__/utils.getTotalNestedCount.test.js +56 -56
  132. package/src/utils/__tests__/utils.isArrayOfArrays.test.js +44 -44
  133. package/src/utils/__tests__/utils.isArrayOfStrings.test.js +36 -36
  134. package/src/utils/__tests__/utilsArray.aFirst.test.js +1 -1
  135. package/src/utils/__tests__/utilsArray.aLast.test.js +1 -1
  136. package/src/utils/__tests__/utilsLang.isArguments.test.js +1 -1
  137. package/src/utils/__tests__/utilsLang.isArray.test.js +1 -1
  138. package/src/utils/__tests__/utilsLang.isArrayBuffer.test.js +1 -1
  139. package/src/utils/__tests__/utilsLang.isBoolean.test.js +1 -1
  140. package/src/utils/__tests__/utilsLang.isBuffer.test.js +1 -1
  141. package/src/utils/__tests__/utilsLang.isDate.test.js +1 -1
  142. package/src/utils/__tests__/utilsLang.isElement.test.js +5 -3
  143. package/src/utils/__tests__/utilsLang.isError.test.js +1 -1
  144. package/src/utils/__tests__/utilsLang.isFinite.test.js +1 -1
  145. package/src/utils/__tests__/utilsLang.isFunction.test.js +1 -1
  146. package/src/utils/__tests__/utilsLang.isInteger.test.js +1 -1
  147. package/src/utils/__tests__/utilsLang.isMap.test.js +1 -1
  148. package/src/utils/__tests__/utilsLang.isNaN.test.js +1 -1
  149. package/src/utils/__tests__/utilsLang.isNil.test.js +1 -1
  150. package/src/utils/__tests__/utilsLang.isNull.test.js +1 -1
  151. package/src/utils/__tests__/utilsLang.isNumber.test.js +1 -1
  152. package/src/utils/__tests__/utilsLang.isObject.test.js +1 -1
  153. package/src/utils/__tests__/utilsLang.isObjectLike.test.js +5 -3
  154. package/src/utils/__tests__/utilsLang.isPlainObject.test.js +3 -2
  155. package/src/utils/__tests__/utilsLang.isPromise.test.js +5 -2
  156. package/src/utils/__tests__/utilsLang.isRegExp.test.js +1 -1
  157. package/src/utils/__tests__/utilsLang.isSet.test.js +1 -1
  158. package/src/utils/__tests__/utilsLang.isString.test.js +1 -1
  159. package/src/utils/__tests__/utilsLang.isSymbol.test.js +5 -3
  160. package/src/utils/__tests__/utilsLang.isUndefined.test.js +1 -1
  161. package/src/utils/__tests__/utilsLang.isWeakMap.test.js +1 -1
  162. package/src/utils/__tests__/utilsLang.isWeakSet.test.js +1 -1
  163. package/src/utils/__tests__/utilsMath.isEven.test.js +43 -43
  164. package/src/utils/__tests__/utilsMath.isOdd.test.js +43 -43
  165. package/src/utils/__tests__/utilsUi.isModelForFilterNotEmpty.test.js +65 -65
  166. package/src/utils/autosize.js +1 -1
@@ -1,167 +1,172 @@
1
- import {
2
- computed,
3
- h,
4
- inject,
5
- toRef,
6
- } from "vue";
7
-
8
- import AIcon from "../../../AIcon/AIcon";
9
-
10
- import CaretDownFill from "aloha-svg/dist/js/bootstrap/CaretDownFill";
11
- import CaretUpFill from "aloha-svg/dist/js/bootstrap/CaretUpFill";
12
- import {
13
- tablePluginOptions,
14
- } from "../../../plugins/ATablePlugin";
15
-
16
- export default function SortAPI(props) {
17
- const column = toRef(props, "column");
18
- const columnIndex = toRef(props, "columnIndex");
19
- const disabledSort = toRef(props, "disabledSort");
20
- const isSortingMultiColumn = toRef(props, "isSortingMultiColumn");
21
- const modelSort = toRef(props, "modelSort");
22
- const showFirstSortingSequenceNumber = toRef(props, "showFirstSortingSequenceNumber");
23
-
24
- const changeModelSort = inject("changeModelSort");
25
- const tableId = inject("tableId");
26
-
27
- const sortId = computed(() => {
28
- return column.value.sortId;
29
- });
30
-
31
- const isSortable = computed(() => {
32
- return !!sortId.value;
33
- });
34
-
35
- const modelSortIndexAscending = computed(() => {
36
- return modelSort.value.indexOf(sortId.value);
37
- });
38
-
39
- const modelSortIndexDescending = computed(() => {
40
- return modelSort.value.indexOf(`-${ sortId.value }`);
41
- });
42
-
43
- const isSortAscending = computed(() => {
44
- return modelSortIndexAscending.value !== -1;
45
- });
46
-
47
- const isSortDescending = computed(() => {
48
- return modelSortIndexDescending.value !== -1;
49
- });
50
-
51
- const isSorting = computed(() => {
52
- return isSortable.value &&
53
- (isSortAscending.value ||
54
- isSortDescending.value);
55
- });
56
-
57
- const ariaSort = computed(() => {
58
- if (isSortable.value) {
59
- let ariaSortValue = "none";
60
- if (isSortAscending.value) {
61
- ariaSortValue = "ascending";
62
- } else if (isSortDescending.value) {
63
- ariaSortValue = "descending";
64
- }
65
- return {
66
- "aria-sort": ariaSortValue,
67
- };
68
- }
69
- return {};
70
- });
71
-
72
- const iconSortDescending = computed(() => {
73
- return h(AIcon, {
74
- icon: CaretUpFill,
75
- class: "a_table__th__sort__icon a_table__th__sort__icon_up",
76
- });
77
- });
78
-
79
- const iconSortAscending = computed(() => {
80
- return h(AIcon, {
81
- icon: CaretDownFill,
82
- class: "a_table__th__sort__icon a_table__th__sort__icon_down",
83
- });
84
- });
85
-
86
- const iconsSortable = computed(() => {
87
- const ICONS = [];
88
- if (isSortable.value) {
89
- if (!isSortDescending.value) {
90
- ICONS.push(iconSortDescending.value);
91
- }
92
- if (!isSortAscending.value) {
93
- ICONS.push(iconSortAscending.value);
94
- }
95
- }
96
- return ICONS;
97
- });
98
-
99
- const changeModelSortLocal = ({ $event }) => {
100
- if (disabledSort.value) {
101
- return;
102
- }
103
- changeModelSort({
104
- $event,
105
- sortId: sortId.value,
106
- });
107
- };
108
-
109
- const columnTextScreenReaderId = computed(() => {
110
- return `${ tableId.value }_th_${ columnIndex.value }_screen_reader`;
111
- });
112
-
113
- const attributesForButtonSort = computed(() => {
114
- if (isSortable.value) {
115
- return {
116
- type: "button",
117
- disabled: disabledSort.value,
118
- isTitleHtml: tablePluginOptions.value.config?.isHtmlTitleSort || false,
119
- "aria-describedby": columnTextScreenReaderId.value,
120
- onClick: changeModelSortLocal,
121
- };
122
- }
123
- return {
124
- tag: "span",
125
- };
126
- });
127
-
128
- const sequenceNumberSort = computed(() => {
129
- if (!isSortingMultiColumn.value &&
130
- !isSorting.value) {
131
- return undefined;
132
- }
133
- if (modelSort.value.length <= 1 &&
134
- !showFirstSortingSequenceNumber.value) {
135
- return undefined;
136
- }
137
- if (modelSortIndexAscending.value !== -1) {
138
- return modelSortIndexAscending.value + 1;
139
- }
140
- if (modelSortIndexDescending.value !== -1) {
141
- return modelSortIndexDescending.value + 1;
142
- }
143
- return undefined;
144
- });
145
-
146
- const titlesSort = computed(() => {
147
- const TITLES = [];
148
- if (isSortable.value) {
149
- TITLES.push("_A_TABLE_SORT_TITLE_");
150
- if (isSortingMultiColumn.value) {
151
- TITLES.push("_A_TABLE_SORT_TITLE_MULTI_COLUMN_");
152
- }
153
- }
154
- return TITLES;
155
- });
156
-
157
- return {
158
- ariaSort,
159
- attributesForButtonSort,
160
- columnTextScreenReaderId,
161
- iconsSortable,
162
- isSortable,
163
- isSorting,
164
- sequenceNumberSort,
165
- titlesSort,
166
- };
167
- }
1
+ import {
2
+ computed,
3
+ h,
4
+ inject,
5
+ toRef,
6
+ } from "vue";
7
+
8
+ import AIcon from "../../../AIcon/AIcon";
9
+
10
+ import {
11
+ tablePluginOptions,
12
+ } from "../../../plugins/ATablePlugin";
13
+
14
+ const CaretDownFill = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-down-fill" viewBox="0 0 16 16">
15
+ <path d="M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z"/>
16
+ </svg>`;
17
+ const CaretUpFill = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-caret-up-fill" viewBox="0 0 16 16">
18
+ <path d="m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z"/>
19
+ </svg>`;
20
+
21
+ export default function SortAPI(props) {
22
+ const column = toRef(props, "column");
23
+ const columnIndex = toRef(props, "columnIndex");
24
+ const disabledSort = toRef(props, "disabledSort");
25
+ const isSortingMultiColumn = toRef(props, "isSortingMultiColumn");
26
+ const modelSort = toRef(props, "modelSort");
27
+ const showFirstSortingSequenceNumber = toRef(props, "showFirstSortingSequenceNumber");
28
+
29
+ const changeModelSort = inject("changeModelSort");
30
+ const tableId = inject("tableId");
31
+
32
+ const sortId = computed(() => {
33
+ return column.value.sortId;
34
+ });
35
+
36
+ const isSortable = computed(() => {
37
+ return !!sortId.value;
38
+ });
39
+
40
+ const modelSortIndexAscending = computed(() => {
41
+ return modelSort.value.indexOf(sortId.value);
42
+ });
43
+
44
+ const modelSortIndexDescending = computed(() => {
45
+ return modelSort.value.indexOf(`-${ sortId.value }`);
46
+ });
47
+
48
+ const isSortAscending = computed(() => {
49
+ return modelSortIndexAscending.value !== -1;
50
+ });
51
+
52
+ const isSortDescending = computed(() => {
53
+ return modelSortIndexDescending.value !== -1;
54
+ });
55
+
56
+ const isSorting = computed(() => {
57
+ return isSortable.value &&
58
+ (isSortAscending.value ||
59
+ isSortDescending.value);
60
+ });
61
+
62
+ const ariaSort = computed(() => {
63
+ if (isSortable.value) {
64
+ let ariaSortValue = "none";
65
+ if (isSortAscending.value) {
66
+ ariaSortValue = "ascending";
67
+ } else if (isSortDescending.value) {
68
+ ariaSortValue = "descending";
69
+ }
70
+ return {
71
+ "aria-sort": ariaSortValue,
72
+ };
73
+ }
74
+ return {};
75
+ });
76
+
77
+ const iconSortDescending = computed(() => {
78
+ return h(AIcon, {
79
+ icon: CaretUpFill,
80
+ class: "a_table__th__sort__icon a_table__th__sort__icon_up",
81
+ });
82
+ });
83
+
84
+ const iconSortAscending = computed(() => {
85
+ return h(AIcon, {
86
+ icon: CaretDownFill,
87
+ class: "a_table__th__sort__icon a_table__th__sort__icon_down",
88
+ });
89
+ });
90
+
91
+ const iconsSortable = computed(() => {
92
+ const ICONS = [];
93
+ if (isSortable.value) {
94
+ if (!isSortDescending.value) {
95
+ ICONS.push(iconSortDescending.value);
96
+ }
97
+ if (!isSortAscending.value) {
98
+ ICONS.push(iconSortAscending.value);
99
+ }
100
+ }
101
+ return ICONS;
102
+ });
103
+
104
+ const changeModelSortLocal = ({ $event }) => {
105
+ if (disabledSort.value) {
106
+ return;
107
+ }
108
+ changeModelSort({
109
+ $event,
110
+ sortId: sortId.value,
111
+ });
112
+ };
113
+
114
+ const columnTextScreenReaderId = computed(() => {
115
+ return `${ tableId.value }_th_${ columnIndex.value }_screen_reader`;
116
+ });
117
+
118
+ const attributesForButtonSort = computed(() => {
119
+ if (isSortable.value) {
120
+ return {
121
+ type: "button",
122
+ disabled: disabledSort.value,
123
+ isTitleHtml: tablePluginOptions.value.config?.isHtmlTitleSort || false,
124
+ "aria-describedby": columnTextScreenReaderId.value,
125
+ onClick: changeModelSortLocal,
126
+ };
127
+ }
128
+ return {
129
+ tag: "span",
130
+ };
131
+ });
132
+
133
+ const sequenceNumberSort = computed(() => {
134
+ if (!isSortingMultiColumn.value &&
135
+ !isSorting.value) {
136
+ return undefined;
137
+ }
138
+ if (modelSort.value.length <= 1 &&
139
+ !showFirstSortingSequenceNumber.value) {
140
+ return undefined;
141
+ }
142
+ if (modelSortIndexAscending.value !== -1) {
143
+ return modelSortIndexAscending.value + 1;
144
+ }
145
+ if (modelSortIndexDescending.value !== -1) {
146
+ return modelSortIndexDescending.value + 1;
147
+ }
148
+ return undefined;
149
+ });
150
+
151
+ const titlesSort = computed(() => {
152
+ const TITLES = [];
153
+ if (isSortable.value) {
154
+ TITLES.push("_A_TABLE_SORT_TITLE_");
155
+ if (isSortingMultiColumn.value) {
156
+ TITLES.push("_A_TABLE_SORT_TITLE_MULTI_COLUMN_");
157
+ }
158
+ }
159
+ return TITLES;
160
+ });
161
+
162
+ return {
163
+ ariaSort,
164
+ attributesForButtonSort,
165
+ columnTextScreenReaderId,
166
+ iconsSortable,
167
+ isSortable,
168
+ isSorting,
169
+ sequenceNumberSort,
170
+ titlesSort,
171
+ };
172
+ }
@@ -15,14 +15,24 @@ import ColumnSearchAPI from "../compositionAPI/ColumnSearchAPI";
15
15
  import DragAndDropParentAPI from "../compositionAPI/DragAndDropParentAPI";
16
16
  import StylesThTdAction from "./compositionAPI/StylesThTdAction";
17
17
 
18
- import ArrowCounterclockwise from "aloha-svg/dist/js/bootstrap/ArrowCounterclockwise";
19
- import CheckLg from "aloha-svg/dist/js/bootstrap/CheckLg";
20
- import GearFill from "aloha-svg/dist/js/bootstrap/GearFill";
21
- import XLg from "aloha-svg/dist/js/bootstrap/XLg";
22
18
  import {
23
19
  forEach,
24
20
  } from "lodash-es";
25
21
 
22
+ const ArrowCounterclockwise = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-counterclockwise" viewBox="0 0 16 16">
23
+ <path fill-rule="evenodd" d="M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2z"/>
24
+ <path d="M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466"/>
25
+ </svg>`;
26
+ 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">
27
+ <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"/>
28
+ </svg>`;
29
+ const GearFill = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear-fill" viewBox="0 0 16 16">
30
+ <path d="M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z"/>
31
+ </svg>`;
32
+ 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">
33
+ <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"/>
34
+ </svg>`;
35
+
26
36
  export default {
27
37
  name: "ATableHeaderThAction",
28
38
  inject: [