aloha-vue 1.0.170 → 1.0.172

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 (110) hide show
  1. package/docs/src/components/TheMenu/TheMenu.js +16 -0
  2. package/docs/src/router/index.js +10 -0
  3. package/docs/src/views/PageSvg/PageSvg.js +23 -0
  4. package/docs/src/views/PageSvg/PageSvg.pug +18 -0
  5. package/docs/src/views/PageSvg/PageSvg.vue +2 -0
  6. package/docs/src/views/PageTable/PageTable.js +22 -20
  7. package/docs/src/views/PageWizard/PageWizard.js +160 -0
  8. package/docs/src/views/PageWizard/PageWizard.pug +62 -0
  9. package/docs/src/views/PageWizard/PageWizard.vue +2 -0
  10. package/docs/styles/styles.scss +4 -0
  11. package/package.json +1 -1
  12. package/src/AAccordion/AAccordionItem.js +11 -7
  13. package/src/AButton/AButton.js +4 -1
  14. package/src/AFormElement/AFormElementBtnClear/AFormElementBtnClear.js +3 -1
  15. package/src/AGet/AGet.js +14 -10
  16. package/src/AIcon/AIcon.js +8 -2
  17. package/src/AIcon/SVG-icons/waage.svg +19 -0
  18. package/src/AList/AListItem.js +6 -3
  19. package/src/AMenu/AMenuPanelLink/AMenuPanelLink.js +9 -6
  20. package/src/AMenu/AMenuSearchGroup.js +9 -4
  21. package/src/AModal/AModal.js +6 -3
  22. package/src/ANotification/ANotification.js +6 -3
  23. package/src/ATable/ATable.js +30 -18
  24. package/src/ATable/ATableActionItem/ATableActionItem.js +14 -7
  25. package/src/ATable/ATableFilterCenter/ATableFilterCenterItem.js +10 -1
  26. package/src/ATable/ATableHeader/ATableHeader.js +7 -2
  27. package/src/ATable/ATableHeaderThAction/ATableHeaderThActionItem.js +6 -3
  28. package/src/ATable/ATableListItem/ATableListItem.js +2 -2
  29. package/src/ATable/ATableTd/ATableTd.js +34 -12
  30. package/src/ATable/ATableTdActionItem/ATableTdActionItem.js +14 -6
  31. package/src/ATable/ATableTopPanel/ATableTopPanel.js +144 -80
  32. package/src/ATable/{compositionAPI/TableActionsAPI.js → ATableTopPanel/compositionAPI/ActionsAPI.js} +18 -4
  33. package/src/ATable/ATableTopPanel/compositionAPI/MultipleAPI.js +45 -0
  34. package/src/ATable/ATableTr/ATableTr.js +9 -1
  35. package/src/ATable/compositionAPI/MultipleActionAPI.js +20 -2
  36. package/src/ATable/compositionAPI/ScrollControlAPI.js +11 -7
  37. package/src/ATabs/ATabsContent.js +6 -3
  38. package/src/ATabs/ATabsTab.js +6 -3
  39. package/src/ATranslation/ATranslation.js +6 -2
  40. package/src/ATranslation/compositionAPI/ATranslationAPI.js +3 -4
  41. package/src/ATranslation/compositionAPI/AttributesAPI.js +0 -4
  42. package/src/ATranslation/compositionAPI/UtilsAPI.js +5 -1
  43. package/src/AWizard/AWizard.js +286 -0
  44. package/src/AWizard/AWizardStep/AWizardStep.js +145 -0
  45. package/src/AWizard/AWizardStep/compositionAPI/ActiveAPI.js +17 -0
  46. package/src/AWizard/AWizardStep/compositionAPI/AttributesAPI.js +26 -0
  47. package/src/AWizard/AWizardStep/compositionAPI/DisabledAPI.js +39 -0
  48. package/src/AWizard/AWizardStep/compositionAPI/EventsAPI.js +36 -0
  49. package/src/AWizard/AWizardStep/compositionAPI/LinkClassAPI.js +32 -0
  50. package/src/AWizard/AWizardStep/compositionAPI/NumberAPI.js +22 -0
  51. package/src/AWizard/AWizardTab/AWizardTab.js +58 -0
  52. package/src/AWizard/AWizardTab/compositionAPI/ActiveAPI.js +17 -0
  53. package/src/AWizard/AWizardTab/compositionAPI/VisibilityAPI.js +24 -0
  54. package/src/AWizard/AWizardToolbar/AWizardToolbar.js +182 -0
  55. package/src/AWizard/AWizardToolbar/compositionAPI/DisabledAPI.js +31 -0
  56. package/src/AWizard/AWizardToolbar/compositionAPI/EventsAPI.js +14 -0
  57. package/src/AWizard/AWizardToolbar/compositionAPI/FirstLastAPI.js +22 -0
  58. package/src/AWizard/AWizardToolbar/compositionAPI/HideAPI.js +33 -0
  59. package/src/AWizard/compositionAPI/ClassAPI.js +21 -0
  60. package/src/AWizard/compositionAPI/EventsAPI.js +74 -0
  61. package/src/AWizard/compositionAPI/FocusAPI.js +20 -0
  62. package/src/AWizard/compositionAPI/LocalAPI.js +31 -0
  63. package/src/AWizard/compositionAPI/StepsAPI.js +64 -0
  64. package/src/AWizard/temp/Wizard.js +181 -0
  65. package/src/AWizard/temp/Wizard.pug +120 -0
  66. package/src/AWizard/temp/scss/core/_base.scss +188 -0
  67. package/src/AWizard/temp/scss/core/_root.scss +6 -0
  68. package/src/AWizard/temp/scss/core/_variables.scss +32 -0
  69. package/src/AWizard/temp/scss/smart_wizard.scss +24 -0
  70. package/src/AWizard/temp/scss/smart_wizard_all.scss +36 -0
  71. package/src/AWizard/temp/scss/smart_wizard_arrows.scss +24 -0
  72. package/src/AWizard/temp/scss/smart_wizard_dots.scss +24 -0
  73. package/src/AWizard/temp/scss/smart_wizard_round.scss +24 -0
  74. package/src/AWizard/temp/scss/smart_wizard_square.scss +24 -0
  75. package/src/AWizard/temp/scss/themes/_arrows.scss +239 -0
  76. package/src/AWizard/temp/scss/themes/_basic.scss +82 -0
  77. package/src/AWizard/temp/scss/themes/_dots.scss +197 -0
  78. package/src/AWizard/temp/scss/themes/_round.scss +67 -0
  79. package/src/AWizard/temp/scss/themes/_square.scss +175 -0
  80. package/src/i18n/de.json +10 -3
  81. package/src/i18n/en.json +10 -3
  82. package/src/i18n/hr.json +10 -3
  83. package/src/i18n/ru.json +10 -3
  84. package/src/styles/components/ATable.scss +47 -1
  85. package/src/styles/components/AWizard.scss +537 -0
  86. package/src/styles/styles.scss +1 -0
  87. package/src/ui/ACheckbox/ACheckbox.js +13 -7
  88. package/src/ui/ACheckbox/ACheckboxItem.js +13 -5
  89. package/src/ui/ADatepicker/ADatepicker.js +14 -7
  90. package/src/ui/AErrors/AErrorsElement.js +6 -3
  91. package/src/ui/AFieldset/AFieldset.js +13 -7
  92. package/src/ui/AGroup/AGroup.js +7 -3
  93. package/src/ui/AInput/AInput.js +7 -3
  94. package/src/ui/AInputFile/AInputFile.js +7 -3
  95. package/src/ui/AOneCheckbox/AOneCheckbox.js +10 -6
  96. package/src/ui/ARadio/ARadio.js +13 -7
  97. package/src/ui/ARadio/ARadioItem.js +9 -4
  98. package/src/ui/ARequired/ARequired.js +4 -2
  99. package/src/ui/ASelect/ASelect.js +7 -3
  100. package/src/ui/ASelect/ASelectElement.js +6 -3
  101. package/src/ui/ASelect/ASelectLabelElement.js +6 -3
  102. package/src/ui/ASwitch/ASwitch.js +11 -6
  103. package/src/ui/ATemplate/ATemplate.js +7 -16
  104. package/src/ui/ATextarea/ATextarea.js +7 -3
  105. package/src/ui/ATinymce/ATinymce.js +9 -4
  106. package/src/styles/utils/display.scss +0 -30
  107. package/src/styles/utils/flex.scss +0 -50
  108. package/src/styles/utils/paddingMargin.scss +0 -28
  109. package/src/styles/utils/utils.scss +0 -19
  110. package/src/styles/utils/widthHeight.scss +0 -17
@@ -253,6 +253,22 @@ export default {
253
253
  icon: "Dnd",
254
254
  titleHtml: "PageTitle PageTitle PageTitle PageTitle PageTitle PageTitle",
255
255
  },
256
+ {
257
+ id: "svg",
258
+ label: "Svg",
259
+ to: {
260
+ name: "PageSvg",
261
+ },
262
+ icon: "Dnd",
263
+ },
264
+ {
265
+ id: "wizard",
266
+ label: "Wizard",
267
+ to: {
268
+ name: "PageWizard",
269
+ },
270
+ icon: "Dnd",
271
+ },
256
272
  ],
257
273
  };
258
274
  },
@@ -139,6 +139,16 @@ const ROUTES = [
139
139
  name: "PageTitle",
140
140
  component: () => import(/* webpackChunkName: "PageTitle" */ "../views/PageTitle/PageTitle.vue"),
141
141
  },
142
+ {
143
+ path: "/svg",
144
+ name: "PageSvg",
145
+ component: () => import(/* webpackChunkName: "PageSvg" */ "../views/PageSvg/PageSvg.vue"),
146
+ },
147
+ {
148
+ path: "/wizard",
149
+ name: "PageWizard",
150
+ component: () => import(/* webpackChunkName: "PageWizard" */ "../views/PageWizard/PageWizard.vue"),
151
+ },
142
152
  {
143
153
  // If the routing configuration '*' reports an error, replace it with '/: catchAll(. *)'
144
154
  // caught Error: Catch all routes ("*") must now be defined using a param with a custom regexp
@@ -0,0 +1,23 @@
1
+ export default {
2
+ name: "PageSvg",
3
+ components: {
4
+
5
+ },
6
+ setup() {
7
+ const pathD = `M3,1
8
+ A3,1 0 0,0 3,2
9
+ A0.8,1 0 0,1 3,4
10
+ A3,1 0 0,0 0,5
11
+ V15
12
+ A5,1 0 1,0 10,15
13
+ V5
14
+ A3,1 0 0,0 7,4
15
+ A0.8,1 0 0,1 7,2
16
+ A3,1 0 0,0 7,1
17
+ A2.4,1 0 0,0 3,1`;
18
+
19
+ return {
20
+ pathD,
21
+ };
22
+ },
23
+ };
@@ -0,0 +1,18 @@
1
+ div
2
+ h1 SVG
3
+
4
+ svg(
5
+ width="300"
6
+ height="300"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ version="1.1"
9
+ viewBox="0 0 18 18"
10
+ style="border: 1px solid red;"
11
+ )
12
+ path(
13
+ :d="pathD"
14
+ )
15
+
16
+ img(
17
+ src="public/Width.png"
18
+ )
@@ -0,0 +1,2 @@
1
+ <template lang="pug" src="./PageSvg.pug"></template>
2
+ <script src="./PageSvg.js"></script>
@@ -17,7 +17,7 @@ export default {
17
17
  {
18
18
  label: "Aloha",
19
19
  id: "aloha",
20
- path: "aloha",
20
+ keyLabel: "aloha",
21
21
  sortId: "aloha",
22
22
  locked: true,
23
23
  grow: 2,
@@ -28,34 +28,34 @@ export default {
28
28
  {
29
29
  label: "Alohafreidsfdsfdsfsdfdsfdsfdsfsd",
30
30
  id: "aloha1",
31
- path: "aloha",
31
+ keyLabel: "aloha",
32
32
  sortId: "aloha",
33
33
  grow: 0,
34
- footerPath: "aloha",
34
+ footerKeyLabel: "aloha",
35
35
  class: "a_justify_content_end",
36
36
  },
37
37
  {
38
38
  label: "Hola",
39
39
  id: "hola",
40
- path: "hola",
40
+ keyLabel: "hola",
41
41
  sortId: "hola",
42
- footerPath: "hola",
42
+ footerKeyLabel: "hola",
43
43
  },
44
44
  {
45
45
  label: "Default",
46
46
  id: "default",
47
- path: "default",
47
+ keyLabel: "default",
48
48
  defaultValue: "-",
49
- footerPath: "default",
49
+ footerKeyLabel: "default",
50
50
  footerDefaultValue: "-",
51
51
  },
52
52
  {
53
53
  label: "Hola2",
54
54
  id: "hola2",
55
- path: "hola",
55
+ keyLabel: "hola",
56
56
  sortId: "hola",
57
57
  hide: true,
58
- footerPath: "hola",
58
+ footerKeyLabel: "hola",
59
59
  },
60
60
  {
61
61
  label: "Slot",
@@ -66,44 +66,44 @@ export default {
66
66
  {
67
67
  label: "Obj",
68
68
  id: "obj",
69
- path: "obj.aloha",
69
+ keyLabel: "obj.aloha",
70
70
  sortId: "obj.aloha",
71
71
  slot: "get",
72
72
  filter: "boolean",
73
- footerPath: "obj.aloha",
73
+ footerKeyLabel: "obj.aloha",
74
74
  width: 220,
75
75
  },
76
76
  {
77
77
  label: "Test",
78
78
  id: "test",
79
- path: "test",
79
+ keyLabel: "test",
80
80
  sortId: "test",
81
81
  width: 200,
82
82
  },
83
83
  {
84
84
  label: "Obj2",
85
85
  id: "obj2",
86
- path: "obj.aloha",
86
+ keyLabel: "obj.aloha",
87
87
  sortId: "obj.aloha",
88
- footerPath: "obj.aloha",
88
+ footerKeyLabel: "obj.aloha",
89
89
  },
90
90
  {
91
91
  label: "Obj3",
92
92
  id: "obj3",
93
- path: "obj.aloha",
94
- footerPath: "obj.aloha",
93
+ keyLabel: "obj.aloha",
94
+ footerKeyLabel: "obj.aloha",
95
95
  },
96
96
  {
97
97
  label: "Obj4",
98
98
  id: "obj4",
99
- path: "obj.aloha",
100
- footerPath: "obj.aloha",
99
+ keyLabel: "obj.aloha",
100
+ footerKeyLabel: "obj.aloha",
101
101
  },
102
102
  {
103
103
  label: "Geld",
104
104
  id: "geld",
105
- path: "geld",
106
- footerPath: "geld",
105
+ keyLabel: "geld",
106
+ footerKeyLabel: "geld",
107
107
  },
108
108
 
109
109
  {
@@ -159,6 +159,7 @@ export default {
159
159
  disabled: true,
160
160
  icon: "Plus",
161
161
  isConfirm: true,
162
+ isAllRowsSelected: true,
162
163
  },
163
164
  {
164
165
  isDivider: true,
@@ -265,6 +266,7 @@ export default {
265
266
  bez: "Aloha 3",
266
267
  },
267
268
  ],
269
+ hasNotClose: true,
268
270
  // url: "katalog/?fields=id&fields=bez&key=syterminberechnung",
269
271
  keyLabel: "bez",
270
272
  keyId: "id",
@@ -0,0 +1,160 @@
1
+ import {
2
+ ref,
3
+ } from "vue";
4
+
5
+
6
+ import AForm from "../../../../src/ui/AForm/AForm";
7
+ import AWizard from "../../../../src/AWizard/AWizard";
8
+
9
+ export default {
10
+ name: "PageWizard",
11
+ components: {
12
+ AForm,
13
+ AWizard,
14
+ },
15
+ setup() {
16
+ const model = ref({
17
+ type: "square",
18
+ isForwardStepButtonDisabled: true,
19
+ isBackStepButtonDisabled: false,
20
+ isStepNumberVisible: true,
21
+ isForwardButtonDisabled: false,
22
+ isBackButtonDisabled: false,
23
+ isForwardButtonHide: false,
24
+ isBackButtonHide: false,
25
+ isForwardLastButtonHide: false,
26
+ isBackFirstButtonHide: false,
27
+ isButtonsLoading: false,
28
+ });
29
+
30
+ const formData = [
31
+ {
32
+ id: "type",
33
+ type: "select",
34
+ label: "Type",
35
+ keyId: "value",
36
+ keyLabel: "label",
37
+ data: [
38
+ {
39
+ label: "basic",
40
+ value: "basic",
41
+ },
42
+ {
43
+ label: "arrows",
44
+ value: "arrows",
45
+ },
46
+ {
47
+ label: "square",
48
+ value: "square",
49
+ },
50
+ {
51
+ label: "round",
52
+ value: "round",
53
+ },
54
+ ],
55
+ },
56
+ {
57
+ id: "isForwardStepButtonDisabled",
58
+ type: "switch",
59
+ label: "isForwardStepButtonDisabled",
60
+ },
61
+ {
62
+ id: "isBackStepButtonDisabled",
63
+ type: "switch",
64
+ label: "isBackStepButtonDisabled",
65
+ },
66
+ {
67
+ id: "isForwardButtonDisabled",
68
+ type: "switch",
69
+ label: "isForwardButtonDisabled",
70
+ },
71
+ {
72
+ id: "isBackButtonDisabled",
73
+ type: "switch",
74
+ label: "isBackButtonDisabled",
75
+ },
76
+ {
77
+ id: "isForwardButtonHide",
78
+ type: "switch",
79
+ label: "isForwardButtonHide",
80
+ },
81
+ {
82
+ id: "isBackButtonHide",
83
+ type: "switch",
84
+ label: "isBackButtonHide",
85
+ },
86
+ {
87
+ id: "isForwardLastButtonHide",
88
+ type: "switch",
89
+ label: "isForwardLastButtonHide",
90
+ },
91
+ {
92
+ id: "isBackFirstButtonHide",
93
+ type: "switch",
94
+ label: "isBackFirstButtonHide",
95
+ },
96
+ {
97
+ id: "isStepNumberVisible",
98
+ type: "switch",
99
+ label: "isStepNumberVisible",
100
+ },
101
+ {
102
+ id: "isButtonsLoading",
103
+ type: "switch",
104
+ label: "isButtonsLoading",
105
+ },
106
+ ];
107
+
108
+ const wizardSteps = [
109
+ {
110
+ slot: "step1",
111
+ label: "Schritt 1",
112
+ title: "Schritt 1",
113
+ },
114
+ {
115
+ slot: "step2",
116
+ label: "Schritt 2",
117
+ title: "Schritt 2",
118
+ },
119
+ {
120
+ slot: "step3",
121
+ label: "Schritt 3",
122
+ title: "Schritt 3",
123
+ error: true,
124
+ },
125
+ {
126
+ slot: "step4",
127
+ label: "Schritt 4",
128
+ title: "Schritt 4",
129
+ warning: true,
130
+ },
131
+ {
132
+ slot: "step5",
133
+ label: "Schritt 5",
134
+ title: "Schritt 5",
135
+ },
136
+ {
137
+ slot: "step6",
138
+ label: "Schritt langeeeeeeeeeeeeeeeeeeeeeeee text 6",
139
+ title: "Schritt 6",
140
+ },
141
+ {
142
+ slot: "step7",
143
+ label: "Schritt 7",
144
+ title: "Schritt 7",
145
+ },
146
+ ];
147
+
148
+ const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque nisl eros,
149
+ pulvinar facilisis justo mollis, auctor consequat urna. Morbi a bibendum metus.
150
+ Donec scelerisque sollicitudin enim eu venenatis. Duis tincidunt laoreet ex,
151
+ in pretium orci vestibulum eget. Class aptent taciti sociosqu ad litora torquent`;
152
+
153
+ return {
154
+ formData,
155
+ model,
156
+ text,
157
+ wizardSteps,
158
+ };
159
+ },
160
+ };
@@ -0,0 +1,62 @@
1
+ div
2
+ h1 Wizard
3
+ div
4
+ a-form(
5
+ v-model="model"
6
+ :data="formData"
7
+ )
8
+
9
+ a-wizard.a_mt_4(
10
+ :steps="wizardSteps"
11
+ :type="model.type"
12
+ :is-forward-step-button-disabled="model.isForwardStepButtonDisabled"
13
+ :is-back-step-button-disabled="model.isBackStepButtonDisabled"
14
+ :is-step-number-visible="model.isStepNumberVisible"
15
+ :is-forward-button-disabled="model.isForwardButtonDisabled"
16
+ :is-back-button-disabled="model.isBackButtonDisabled"
17
+ :is-forward-button-hide="model.isForwardButtonHide"
18
+ :is-back-button-hide="model.isBackButtonHide"
19
+ :is-forward-last-button-hide="model.isForwardLastButtonHide"
20
+ :is-back-first-button-hide="model.isBackFirstButtonHide"
21
+ :is-buttons-loading="model.isButtonsLoading"
22
+ )
23
+ template(
24
+ v-slot:toolbar
25
+ )
26
+ button.a_btn.a_btn_primary Slot-button
27
+
28
+ template(
29
+ v-slot:step1
30
+ )
31
+ h2 Schritt 1
32
+ p {{ text }}
33
+
34
+ template(
35
+ v-slot:step2
36
+ )
37
+ h2 Schritt 2
38
+ p {{ text }}
39
+
40
+ template(
41
+ v-slot:step3
42
+ )
43
+ h2 Schritt 3
44
+ p {{ text }}
45
+
46
+ template(
47
+ v-slot:step4
48
+ )
49
+ h2 Schritt 4
50
+ p {{ text }}
51
+
52
+ template(
53
+ v-slot:step5
54
+ )
55
+ h2 Schritt 5
56
+ p {{ text }}
57
+
58
+ template(
59
+ v-slot:step6
60
+ )
61
+ h2 Schritt 6
62
+ p {{ text }}
@@ -0,0 +1,2 @@
1
+ <template lang="pug" src="./PageWizard.pug"></template>
2
+ <script src="./PageWizard.js"></script>
@@ -1,3 +1,7 @@
1
1
  @import "./node_modules/aloha-css/sass/aloha";
2
2
 
3
3
  @import "../src/styles/styles";
4
+
5
+ .a_menu__page {
6
+ padding: 0 1rem;
7
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aloha-vue",
3
3
  "description": "Project aloha",
4
- "version": "1.0.170",
4
+ "version": "1.0.172",
5
5
  "author": "Ilia Brykin",
6
6
  "scripts": {
7
7
  "build-icons": "node scriptsNode/iconsSvgToJs.js bootstrap3 && node scriptsNode/iconsSvgToJs.js bootstrap-1-9-1"
@@ -4,9 +4,13 @@ import {
4
4
  inject,
5
5
  ref,
6
6
  resolveComponent,
7
- toRef, watch,
7
+ toRef,
8
+ watch,
9
+ withDirectives,
8
10
  } from "vue";
9
11
 
12
+ import ASafeHtml from "../directives/ASafeHtml";
13
+
10
14
  import {
11
15
  cloneDeep,
12
16
  get,
@@ -222,9 +226,9 @@ export default {
222
226
  parentIndexes: this.parentIndexes,
223
227
  id: this.id,
224
228
  }) :
225
- this.contentLocal && h("div", {
226
- innerHTML: this.contentLocal,
227
- }),
229
+ this.contentLocal && withDirectives(h("div"), [
230
+ [ASafeHtml, this.contentLocal],
231
+ ]),
228
232
  this.hasChildren && h("div", {
229
233
  class: ["a_accordion", {
230
234
  a_accordion__with_gap: this.withGap,
@@ -258,9 +262,9 @@ export default {
258
262
  parentIndexes: this.parentIndexes,
259
263
  id: this.id,
260
264
  }),
261
- this.labelLocal && h("span", {
262
- innerHTML: this.labelLocal,
263
- }),
265
+ this.labelLocal && withDirectives(h("span"), [
266
+ [ASafeHtml, this.labelLocal],
267
+ ]),
264
268
  ]),
265
269
  ]),
266
270
  h("div", {
@@ -63,7 +63,7 @@ export default {
63
63
  loadingClass: {
64
64
  type: [String, Object],
65
65
  required: false,
66
- default: undefined,
66
+ default: "a_spinner_small",
67
67
  },
68
68
  loadingAlign: {
69
69
  type: String,
@@ -128,6 +128,7 @@ export default {
128
128
  extraTranslate: {
129
129
  type: Object,
130
130
  required: false,
131
+ default: undefined,
131
132
  },
132
133
  },
133
134
  emits: [
@@ -204,6 +205,7 @@ export default {
204
205
  }),
205
206
  this.$slots.default && this.$slots.default(),
206
207
  this.isTextVisible && h(ATranslation, {
208
+ tag: "span",
207
209
  class: this.textClass,
208
210
  html: this.text,
209
211
  extra: this.extraTranslate,
@@ -211,6 +213,7 @@ export default {
211
213
  }),
212
214
  this.isTextScreenReaderVisible && h(ATranslation, {
213
215
  class: "a_sr_only",
216
+ tag: "span",
214
217
  html: this.text,
215
218
  extra: this.extraTranslate,
216
219
  }),
@@ -35,11 +35,13 @@ export default {
35
35
  return h("button", {
36
36
  class: ["a_form_element__btn_close", this.clearButtonClass],
37
37
  type: "button",
38
+ tabindex: -1,
39
+ ariaHidden: true,
38
40
  disabled: this.disabled,
39
41
  onClick: this.clearLocal,
40
42
  }, [
41
43
  h(ATranslation, {
42
- class: "a_absolute_all",
44
+ class: "a_position_absolute_all",
43
45
  tag: "span",
44
46
  title: "_REMOVE_FIELD_CONTENT_",
45
47
  "aria-hidden": "true",
package/src/AGet/AGet.js CHANGED
@@ -1,11 +1,14 @@
1
1
  import {
2
- capitalize,
3
2
  h,
3
+ withDirectives,
4
4
  } from "vue";
5
5
 
6
6
  import AFiltersAPI from "../compositionAPI/AFiltersAPI";
7
7
 
8
+ import ASafeHtml from "../directives/ASafeHtml";
9
+
8
10
  import {
11
+ capitalize,
9
12
  forEach,
10
13
  get,
11
14
  isArray,
@@ -14,11 +17,12 @@ import {
14
17
  isUndefined,
15
18
  } from "lodash-es";
16
19
 
20
+
17
21
  // @vue/component
18
22
  export default {
19
23
  name: "AGet",
20
24
  props: {
21
- path: {
25
+ keyLabel: {
22
26
  type: [String, Array],
23
27
  required: true,
24
28
  info: "Weg zu Informationen. Z.B.('a[0].b.c', 'vertrag.antrag_obj.pk', ['vertrag', aloha, 'pk'])",
@@ -65,7 +69,7 @@ export default {
65
69
  },
66
70
  computed: {
67
71
  valueLocal() {
68
- let value = get(this.data, this.pathLocal);
72
+ let value = get(this.data, this.keyLabelLocal);
69
73
  if (isNil(value)) {
70
74
  value = this.defaultValue;
71
75
  }
@@ -82,11 +86,11 @@ export default {
82
86
  return value;
83
87
  },
84
88
 
85
- pathLocal() {
86
- if (isArray(this.path)) {
87
- return this.path.join(".");
89
+ keyLabelLocal() {
90
+ if (isArray(this.keyLabel)) {
91
+ return this.keyLabel.join(".");
88
92
  }
89
- return this.path;
93
+ return this.keyLabel;
90
94
  },
91
95
  },
92
96
  methods: {
@@ -109,8 +113,8 @@ export default {
109
113
  },
110
114
  },
111
115
  render() {
112
- return h(this.tag, {
113
- innerHTML: this.valueLocal,
114
- });
116
+ return withDirectives(h(this.tag), [
117
+ [ASafeHtml, this.valueLocal],
118
+ ]);
115
119
  },
116
120
  };
@@ -1,8 +1,11 @@
1
1
  import {
2
2
  h,
3
3
  inject,
4
+ withDirectives,
4
5
  } from "vue";
5
6
 
7
+ import ASafeHtml from "../directives/ASafeHtml";
8
+
6
9
  import Aloha from "./Icons/Aloha";
7
10
  import AngleDown from "./Icons/AngleDown";
8
11
  import AngleLeft from "./Icons/AngleLeft";
@@ -35,6 +38,7 @@ import Search from "./Icons/Search";
35
38
  import ThList from "./Icons/ThList";
36
39
  import Trash from "./Icons/Trash";
37
40
  import _NoImage from "./Icons/_NoImage";
41
+ import PinFill from "./Icons/bootstrap-1-9-1/PinFill";
38
42
 
39
43
  import {
40
44
  assign,
@@ -87,6 +91,7 @@ export default {
87
91
  OptionHorizontal,
88
92
  OptionVertical,
89
93
  Pencil,
94
+ PinFill,
90
95
  Plus,
91
96
  Reset,
92
97
  Search,
@@ -115,7 +120,6 @@ export default {
115
120
  attributesLocal() {
116
121
  const ATTRIBUTES = {
117
122
  class: ["a_icon", this.iconClass],
118
- innerHTML: this.iconSvg,
119
123
  };
120
124
  if (this.ariLabel) {
121
125
  ATTRIBUTES["aria-label"] = this.ariLabel;
@@ -126,6 +130,8 @@ export default {
126
130
  },
127
131
  },
128
132
  render() {
129
- return h(this.iconTag, this.attributesLocal, this.$slots.default && this.$slots.default());
133
+ return withDirectives(h(this.iconTag, this.attributesLocal, this.$slots.default && this.$slots.default()), [
134
+ [ASafeHtml, this.iconSvg],
135
+ ]);
130
136
  },
131
137
  };
@@ -0,0 +1,19 @@
1
+ <svg
2
+ width="300"
3
+ height="300"
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ version="1.1"
6
+ viewBox="0 0 18 18"
7
+ >
8
+ <path d="M3,1
9
+ A3,1 0 0,0 3,2
10
+ A0.8,1 0 0,1 3,4
11
+ A3,1 0 0,0 0,5
12
+ V17
13
+ A5,1 0 1,0 10,17
14
+ V5
15
+ A3,1 0 0,0 7,4
16
+ A0.8,1 0 0,1 7,2
17
+ A3,1 0 0,0 7,1
18
+ A2.4,1 0 0,0 3,1"></path>
19
+ </svg>