aloha-vue 2.85.0 → 2.87.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 (245) hide show
  1. package/CHANGELOG.md +1215 -1200
  2. package/README.md +117 -117
  3. package/dist/aloha-vue.css +13827 -13601
  4. package/dist/aloha-vue.css.map +1 -1
  5. package/dist/aloha-vue.es.js +60235 -57401
  6. package/dist/aloha-vue.umd.js +319 -319
  7. package/package.json +1 -1
  8. package/scss/components/AButton.scss +6 -6
  9. package/scss/components/ADivider.scss +9 -9
  10. package/scss/components/AElement.scss +6 -6
  11. package/scss/components/AGroupButtonDropdown.scss +4 -4
  12. package/scss/components/AIcon.scss +17 -17
  13. package/scss/components/ALoading.scss +18 -18
  14. package/scss/components/AMenu.scss +634 -634
  15. package/scss/components/AProgressCirle.scss +43 -43
  16. package/scss/components/AShowMore.scss +9 -9
  17. package/scss/components/ATableForm.scss +7 -7
  18. package/scss/components/ATabs.scss +186 -186
  19. package/scss/components/ui/AColorPicker.scss +243 -0
  20. package/scss/components/ui/AJson.scss +11 -11
  21. package/scss/components/ui/ui.scss +1 -0
  22. package/scss/text/text_line_height.scss +17 -17
  23. package/scss/text/text_size.scss +88 -88
  24. package/scss/utils/acordion.scss +173 -173
  25. package/scss/utils/alert.scss +81 -81
  26. package/scss/utils/aloha_prefix.scss +1 -1
  27. package/scss/utils/backdrop.scss +24 -24
  28. package/scss/utils/border.scss +65 -65
  29. package/scss/utils/breakpoint.scss +48 -48
  30. package/scss/utils/button_close.scss +22 -22
  31. package/scss/utils/button_group.scss +69 -69
  32. package/scss/utils/color_utils.scss +234 -234
  33. package/scss/utils/display.scss +67 -67
  34. package/scss/utils/flex.scss +141 -141
  35. package/scss/utils/float.scss +10 -10
  36. package/scss/utils/global.scss +44 -44
  37. package/scss/utils/global_variables.scss +26 -26
  38. package/scss/utils/grid.scss +95 -95
  39. package/scss/utils/list_columns.scss +31 -31
  40. package/scss/utils/list_group.scss +127 -127
  41. package/scss/utils/notification.scss +36 -36
  42. package/scss/utils/overflow.scss +40 -40
  43. package/scss/utils/pagination.scss +94 -94
  44. package/scss/utils/position.scss +90 -90
  45. package/scss/utils/progress.scss +70 -70
  46. package/scss/utils/screenreader.scss +16 -16
  47. package/scss/utils/spinner.scss +35 -35
  48. package/scss/utils/utils.scss +19 -19
  49. package/scss/utils/vars_global.scss +12 -12
  50. package/src/AAlert/i18n/AAlertI18n.js +4 -0
  51. package/src/AAlert/i18n/nl.json +3 -0
  52. package/src/AAlert/i18n/pl.json +3 -0
  53. package/src/ACarousel/i18n/ACarouselI18n.js +4 -0
  54. package/src/ACarousel/i18n/nl.json +9 -0
  55. package/src/ACarousel/i18n/pl.json +9 -0
  56. package/src/ACloak/i18n/ACloakI18n.js +4 -0
  57. package/src/ACloak/i18n/nl.json +3 -0
  58. package/src/ACloak/i18n/pl.json +3 -0
  59. package/src/ADisclosure/i18n/ADisclosureI18n.js +4 -0
  60. package/src/ADisclosure/i18n/nl.json +4 -0
  61. package/src/ADisclosure/i18n/pl.json +4 -0
  62. package/src/AFilters/i18n/AFiltersI18n.js +4 -0
  63. package/src/AFilters/i18n/nl.json +30 -0
  64. package/src/AFilters/i18n/pl.json +30 -0
  65. package/src/AGroupButtonDropdown/AGroupButtonDropdown.js +119 -119
  66. package/src/ALinkCopy/i18n/ALinkCopyI18n.js +4 -0
  67. package/src/ALinkCopy/i18n/nl.json +4 -0
  68. package/src/ALinkCopy/i18n/pl.json +4 -0
  69. package/src/ALoading/i18n/ALoadingI18n.js +4 -0
  70. package/src/ALoading/i18n/nl.json +3 -0
  71. package/src/ALoading/i18n/pl.json +3 -0
  72. package/src/AMenu/i18n/AMenu2I18n.js +4 -0
  73. package/src/AMenu/i18n/nl.json +14 -0
  74. package/src/AMenu/i18n/pl.json +14 -0
  75. package/src/AModal/compositionAPI/ZIndexAPI.js +48 -48
  76. package/src/AModal/i18n/AModalI18n.js +4 -0
  77. package/src/AModal/i18n/nl.json +7 -0
  78. package/src/AModal/i18n/pl.json +7 -0
  79. package/src/APagination/i18n/APaginationI18n.js +4 -0
  80. package/src/APagination/i18n/nl.json +12 -0
  81. package/src/APagination/i18n/pl.json +12 -0
  82. package/src/AProgress/AProgress.js +141 -141
  83. package/src/AProgressCircle/AProgressCircle.js +160 -160
  84. package/src/AShowMore/i18n/AShowMoreI18n.js +4 -0
  85. package/src/AShowMore/i18n/nl.json +6 -0
  86. package/src/AShowMore/i18n/pl.json +6 -0
  87. package/src/ASpinner/i18n/ASpinnerI18n.js +4 -0
  88. package/src/ASpinner/i18n/nl.json +3 -0
  89. package/src/ASpinner/i18n/pl.json +3 -0
  90. package/src/ATable/ATableHeaderTh/ATableHeaderTh.js +188 -188
  91. package/src/ATable/i18n/ATableI18n.js +4 -0
  92. package/src/ATable/i18n/nl.json +54 -0
  93. package/src/ATable/i18n/pl.json +54 -0
  94. package/src/ATableForm/i18n/ATableFormI18n.js +4 -0
  95. package/src/ATableForm/i18n/nl.json +18 -0
  96. package/src/ATableForm/i18n/pl.json +18 -0
  97. package/src/ATranslation/compositionAPI/UtilsAPI.js +6 -1
  98. package/src/ATranslation/compositionAPI/__tests__/UtilsAPI.getTranslatedText.test.js +38 -0
  99. package/src/AVerticalScroll/i18n/AVerticalScrollI18n.js +4 -0
  100. package/src/AVerticalScroll/i18n/nl.json +4 -0
  101. package/src/AVerticalScroll/i18n/pl.json +4 -0
  102. package/src/AWizard/i18n/AWizardI18n.js +4 -0
  103. package/src/AWizard/i18n/nl.json +16 -0
  104. package/src/AWizard/i18n/pl.json +16 -0
  105. package/src/PVP/new.txt +39 -39
  106. package/src/PuxDatepicker/PuxDatepicker.js +670 -670
  107. package/src/PuxDatepicker/PuxDatepicker.pug +131 -131
  108. package/src/PuxDatepicker/PuxDatepicker.vue +2 -2
  109. package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.pug +136 -136
  110. package/src/PuxDatepicker/PuxDatepickerCalendarPanel/PuxDatepickerCalendarPanel.vue +2 -2
  111. package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.js +30 -30
  112. package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.pug +6 -6
  113. package/src/PuxDatepicker/PuxDatepickerIcon/PuxDatepickerIcon.vue +2 -2
  114. package/src/PuxDatepicker/locale/languages.js +174 -174
  115. package/src/PuxDatepicker/mixins/PanelMixin.js +76 -76
  116. package/src/PuxDatepicker/panel/PanelDate/PanelDate.pug +41 -41
  117. package/src/PuxDatepicker/panel/PanelDate/PanelDate.vue +2 -2
  118. package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.pug +16 -16
  119. package/src/PuxDatepicker/panel/PanelMonth/PanelMonth.vue +2 -2
  120. package/src/PuxDatepicker/panel/PanelTime/PanelTime.pug +20 -20
  121. package/src/PuxDatepicker/panel/PanelTime/PanelTime.vue +2 -2
  122. package/src/PuxDatepicker/panel/PanelYear/PanelYear.pug +16 -16
  123. package/src/PuxDatepicker/panel/PanelYear/PanelYear.vue +2 -2
  124. package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.js +55 -55
  125. package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.pug +9 -9
  126. package/src/PuxDatepicker/panel/PanelYearItem/PanelYearItem.vue +2 -2
  127. package/src/PuxDatepicker/utils/keysCode.js +9 -9
  128. package/src/PuxDatepicker/utils/scroll-into-view.js +23 -23
  129. package/src/PuxDatepicker/utils/transform.js +23 -23
  130. package/src/filters/i18n/Filters18n.js +4 -0
  131. package/src/filters/i18n/nl.json +11 -0
  132. package/src/filters/i18n/pl.json +11 -0
  133. package/src/i18n/allLanguages.js +96 -0
  134. package/src/i18n/nl.json +4 -0
  135. package/src/i18n/pl.json +4 -0
  136. package/src/index.js +4 -0
  137. package/src/ui/ACheckbox/ACheckbox.js +5 -0
  138. package/src/ui/ACheckbox/i18n/ACheckboxI18n.js +4 -0
  139. package/src/ui/ACheckbox/i18n/nl.json +5 -0
  140. package/src/ui/ACheckbox/i18n/pl.json +5 -0
  141. package/src/ui/AColorPicker/AColorPicker.js +743 -0
  142. package/src/ui/AColorPicker/AColorPickerSaturation/AColorPickerSaturation.js +102 -0
  143. package/src/ui/AColorPicker/AColorPickerSaturation/compositionAPI/SaturationAPI.js +77 -0
  144. package/src/ui/AColorPicker/AColorPickerSlider/AColorPickerSlider.js +125 -0
  145. package/src/ui/AColorPicker/AColorPickerSlider/compositionAPI/SliderAPI.js +73 -0
  146. package/src/ui/AColorPicker/__tests__/AColorPicker.test.js +204 -0
  147. package/src/ui/AColorPicker/__tests__/colorUtils.test.js +104 -0
  148. package/src/ui/AColorPicker/compositionAPI/ColorStateAPI.js +133 -0
  149. package/src/ui/AColorPicker/compositionAPI/ConfirmAPI.js +36 -0
  150. package/src/ui/AColorPicker/compositionAPI/FormatAPI.js +59 -0
  151. package/src/ui/AColorPicker/compositionAPI/InputAPI.js +63 -0
  152. package/src/ui/AColorPicker/compositionAPI/KeyboardStepAPI.js +42 -0
  153. package/src/ui/AColorPicker/compositionAPI/PointerDragAPI.js +70 -0
  154. package/src/ui/AColorPicker/compositionAPI/PopoverAPI.js +196 -0
  155. package/src/ui/AColorPicker/compositionAPI/PredefineAPI.js +42 -0
  156. package/src/ui/AColorPicker/compositionAPI/ToggleClassAPI.js +24 -0
  157. package/src/ui/AColorPicker/i18n/AColorPickerI18n.js +25 -0
  158. package/src/ui/AColorPicker/i18n/ar.json +14 -0
  159. package/src/ui/AColorPicker/i18n/de.json +14 -0
  160. package/src/ui/AColorPicker/i18n/en.json +14 -0
  161. package/src/ui/AColorPicker/i18n/es.json +14 -0
  162. package/src/ui/AColorPicker/i18n/fr.json +14 -0
  163. package/src/ui/AColorPicker/i18n/hr.json +14 -0
  164. package/src/ui/AColorPicker/i18n/it.json +14 -0
  165. package/src/ui/AColorPicker/i18n/nl.json +14 -0
  166. package/src/ui/AColorPicker/i18n/pl.json +14 -0
  167. package/src/ui/AColorPicker/i18n/ru.json +14 -0
  168. package/src/ui/AColorPicker/i18n/uk.json +14 -0
  169. package/src/ui/AColorPicker/utils/colorUtils.js +296 -0
  170. package/src/ui/ADatepicker/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +68 -68
  171. package/src/ui/ADatepicker/i18n/ADatepickerI18n.js +4 -0
  172. package/src/ui/ADatepicker/i18n/nl.json +58 -0
  173. package/src/ui/ADatepicker/i18n/pl.json +58 -0
  174. package/src/ui/ADatepicker/panel/APanelTime/APanelTime.js +147 -147
  175. package/src/ui/ADatepicker/panel/APanelYear/APanelYear.js +123 -123
  176. package/src/ui/ADatepickerAlt/ADatepickerCalendarPanel/ADatepickerCalendarPanel.js +804 -804
  177. package/src/ui/ADatepickerAlt/panel/APanelDate/APanelDate.js +353 -353
  178. package/src/ui/ADatepickerAlt/panel/APanelMonth/APanelMonth.js +187 -187
  179. package/src/ui/ADatepickerAlt/panel/APanelTime/APanelTime.js +303 -303
  180. package/src/ui/ADatepickerAlt/panel/APanelYear/APanelYear.js +162 -162
  181. package/src/ui/ADatepickerRange/i18n/ADatepickerRangeI18n.js +4 -0
  182. package/src/ui/ADatepickerRange/i18n/nl.json +4 -0
  183. package/src/ui/ADatepickerRange/i18n/pl.json +4 -0
  184. package/src/ui/AErrors/i18n/AErrorsI18n.js +4 -0
  185. package/src/ui/AErrors/i18n/nl.json +3 -0
  186. package/src/ui/AErrors/i18n/pl.json +3 -0
  187. package/src/ui/AFieldset/__tests__/AFieldset.ClassColumn.test.js +1 -0
  188. package/src/ui/AFieldset/i18n/AFieldsetI18n.js +4 -0
  189. package/src/ui/AFieldset/i18n/nl.json +4 -0
  190. package/src/ui/AFieldset/i18n/pl.json +4 -0
  191. package/src/ui/AFormElementBtnClear/i18n/AFormElementBtnClearI18n.js +4 -0
  192. package/src/ui/AFormElementBtnClear/i18n/nl.json +3 -0
  193. package/src/ui/AFormElementBtnClear/i18n/pl.json +3 -0
  194. package/src/ui/AInput/i18n/AInputI18n.js +4 -0
  195. package/src/ui/AInput/i18n/nl.json +4 -0
  196. package/src/ui/AInput/i18n/pl.json +4 -0
  197. package/src/ui/AInputCurrency/i18n/AInputCurrencyI18n.js +4 -0
  198. package/src/ui/AInputCurrency/i18n/nl.json +4 -0
  199. package/src/ui/AInputCurrency/i18n/pl.json +4 -0
  200. package/src/ui/AInputNumber/i18n/AInputNumberI18n.js +4 -0
  201. package/src/ui/AInputNumber/i18n/nl.json +4 -0
  202. package/src/ui/AInputNumber/i18n/pl.json +4 -0
  203. package/src/ui/AInputNumberRange/i18n/AInputNumberRangeI18n.js +4 -0
  204. package/src/ui/AInputNumberRange/i18n/nl.json +4 -0
  205. package/src/ui/AInputNumberRange/i18n/pl.json +4 -0
  206. package/src/ui/AJson/i18n/AJsonI18n.js +4 -0
  207. package/src/ui/AJson/i18n/nl.json +8 -0
  208. package/src/ui/AJson/i18n/pl.json +8 -0
  209. package/src/ui/AMultiselectOrdered/i18n/AMultiselectOrderedI18n.js +4 -0
  210. package/src/ui/AMultiselectOrdered/i18n/nl.json +12 -0
  211. package/src/ui/AMultiselectOrdered/i18n/pl.json +12 -0
  212. package/src/ui/ARadio/i18n/ARadioI18n.js +4 -0
  213. package/src/ui/ARadio/i18n/nl.json +5 -0
  214. package/src/ui/ARadio/i18n/pl.json +5 -0
  215. package/src/ui/ARequired/i18n/ARequiredI18n.js +4 -0
  216. package/src/ui/ARequired/i18n/nl.json +3 -0
  217. package/src/ui/ARequired/i18n/pl.json +3 -0
  218. package/src/ui/ARouterLinkConfig/i18n/ARouterLinkConfigI18n.js +4 -0
  219. package/src/ui/ARouterLinkConfig/i18n/nl.json +14 -0
  220. package/src/ui/ARouterLinkConfig/i18n/pl.json +14 -0
  221. package/src/ui/ASelect/i18n/ASelectI18n.js +4 -0
  222. package/src/ui/ASelect/i18n/ar.json +5 -5
  223. package/src/ui/ASelect/i18n/de.json +4 -4
  224. package/src/ui/ASelect/i18n/en.json +5 -5
  225. package/src/ui/ASelect/i18n/es.json +5 -5
  226. package/src/ui/ASelect/i18n/fr.json +5 -5
  227. package/src/ui/ASelect/i18n/hr.json +5 -5
  228. package/src/ui/ASelect/i18n/it.json +5 -5
  229. package/src/ui/ASelect/i18n/nl.json +11 -0
  230. package/src/ui/ASelect/i18n/pl.json +11 -0
  231. package/src/ui/ASelect/i18n/ru.json +5 -5
  232. package/src/ui/ASelectStyle/i18n/ASelectStyleI18n.js +4 -0
  233. package/src/ui/ASelectStyle/i18n/nl.json +292 -0
  234. package/src/ui/ASelectStyle/i18n/pl.json +292 -0
  235. package/src/ui/ASlider/i18n/ASliderI18n.js +4 -0
  236. package/src/ui/ASlider/i18n/nl.json +5 -0
  237. package/src/ui/ASlider/i18n/pl.json +5 -0
  238. package/src/ui/ASwitch/i18n/ASwitchI18n.js +4 -0
  239. package/src/ui/ASwitch/i18n/nl.json +5 -0
  240. package/src/ui/ASwitch/i18n/pl.json +5 -0
  241. package/src/ui/AUiComponents.js +2 -0
  242. package/src/ui/AValidatedJson/i18n/AValidatedJsonI18n.js +4 -0
  243. package/src/ui/AValidatedJson/i18n/nl.json +25 -0
  244. package/src/ui/AValidatedJson/i18n/pl.json +25 -0
  245. package/src/ui/compositionApi/__tests__/UiStyleHideAPI.test.js +9 -4
@@ -1,20 +1,20 @@
1
- .pux_datepicker__panel.pux_datepicker__panel_time
2
- ul.pux_datepicker__time_list(
3
- v-for="(timeList, timeListIndex) in timesFiltered"
4
- :key="timeListIndex"
5
- role="listbox"
6
- :aria-labelledby="idForHeader"
7
- :style="{ width: 100 / timesFiltered.length + '%' }"
8
- )
9
- li.cell(
10
- v-for="(time, timeIndex) in timeList"
11
- :id="time.id"
12
- :key="timeIndex"
13
- :class="{ actived: time.isActive, disabled: time.isDisabled, pux_datepicker__panel__cell_focus: timeListIndex + '_' + timeIndex === fullIndexForFocus }"
14
- tabindex="-1"
15
- role="option"
16
- :aria-selected="time.isActive ? 'true' : 'false'"
17
- :aria-label="time.ariaLabel"
18
- @click="selectTime(time.time)"
19
- @keypress.enter.space.prevent.stop="selectTime(time.time, timeListIndex === timesFiltered.length - 1)"
20
- ) {{ time.label }}
1
+ .pux_datepicker__panel.pux_datepicker__panel_time
2
+ ul.pux_datepicker__time_list(
3
+ v-for="(timeList, timeListIndex) in timesFiltered"
4
+ :key="timeListIndex"
5
+ role="listbox"
6
+ :aria-labelledby="idForHeader"
7
+ :style="{ width: 100 / timesFiltered.length + '%' }"
8
+ )
9
+ li.cell(
10
+ v-for="(time, timeIndex) in timeList"
11
+ :id="time.id"
12
+ :key="timeIndex"
13
+ :class="{ actived: time.isActive, disabled: time.isDisabled, pux_datepicker__panel__cell_focus: timeListIndex + '_' + timeIndex === fullIndexForFocus }"
14
+ tabindex="-1"
15
+ role="option"
16
+ :aria-selected="time.isActive ? 'true' : 'false'"
17
+ :aria-label="time.ariaLabel"
18
+ @click="selectTime(time.time)"
19
+ @keypress.enter.space.prevent.stop="selectTime(time.time, timeListIndex === timesFiltered.length - 1)"
20
+ ) {{ time.label }}
@@ -1,2 +1,2 @@
1
- <template lang="pug" src="./PanelTime.pug"></template>
2
- <script src="./PanelTime.js"></script>
1
+ <template lang="pug" src="./PanelTime.pug"></template>
2
+ <script src="./PanelTime.js"></script>
@@ -1,16 +1,16 @@
1
- ul.pux_datepicker__panel.pux_datepicker__panel_year.pux_datepicker__panel__list(
2
- role="listbox"
3
- :aria-labelledby="idForHeader"
4
- v-bind="attributesForMainElement"
5
- )
6
- panel-year-item(
7
- v-for="(e, index) in 10"
8
- :key="index"
9
- :class="{ pux_datepicker__panel__cell_focus: index === yearIndexForFocus }"
10
- :year="firstYearLocal + index"
11
- :year-from-value="yearFromValue"
12
- :year-index="index"
13
- :prefix-for-id="prefixForId"
14
- :is-disabled="isDisabled"
15
- @selectYear="selectYear"
16
- )
1
+ ul.pux_datepicker__panel.pux_datepicker__panel_year.pux_datepicker__panel__list(
2
+ role="listbox"
3
+ :aria-labelledby="idForHeader"
4
+ v-bind="attributesForMainElement"
5
+ )
6
+ panel-year-item(
7
+ v-for="(e, index) in 10"
8
+ :key="index"
9
+ :class="{ pux_datepicker__panel__cell_focus: index === yearIndexForFocus }"
10
+ :year="firstYearLocal + index"
11
+ :year-from-value="yearFromValue"
12
+ :year-index="index"
13
+ :prefix-for-id="prefixForId"
14
+ :is-disabled="isDisabled"
15
+ @selectYear="selectYear"
16
+ )
@@ -1,2 +1,2 @@
1
- <template lang="pug" src="./PanelYear.pug"></template>
2
- <script src="./PanelYear.js"></script>
1
+ <template lang="pug" src="./PanelYear.pug"></template>
2
+ <script src="./PanelYear.js"></script>
@@ -1,55 +1,55 @@
1
- // @vue/component
2
- export default {
3
- name: "PanelYearItem",
4
- props: {
5
- prefixForId: {
6
- type: String,
7
- required: true,
8
- },
9
- year: {
10
- type: Number,
11
- required: true,
12
- },
13
- yearFromValue: {
14
- type: Number,
15
- required: false,
16
- default: undefined,
17
- },
18
- yearIndex: {
19
- type: Number,
20
- required: true,
21
- },
22
- isDisabled: {
23
- type: Function,
24
- required: true,
25
- },
26
- },
27
- emits: [
28
- "selectYear",
29
- ],
30
- computed: {
31
- isDisabledLocal() {
32
- return this.isDisabled(this.year);
33
- },
34
-
35
- isYearActive() {
36
- return this.yearFromValue === this.year;
37
- },
38
-
39
- idForList() {
40
- return `${ this.prefixForId }${ this.yearIndex }`;
41
- },
42
-
43
- ariaSelected() {
44
- return `${ this.isYearActive }`;
45
- },
46
- },
47
- methods: {
48
- selectYearLocal(isButtonClick) {
49
- if (this.isDisabledLocal) {
50
- return;
51
- }
52
- this.$emit("selectYear", { year: this.year, isButtonClick });
53
- },
54
- },
55
- };
1
+ // @vue/component
2
+ export default {
3
+ name: "PanelYearItem",
4
+ props: {
5
+ prefixForId: {
6
+ type: String,
7
+ required: true,
8
+ },
9
+ year: {
10
+ type: Number,
11
+ required: true,
12
+ },
13
+ yearFromValue: {
14
+ type: Number,
15
+ required: false,
16
+ default: undefined,
17
+ },
18
+ yearIndex: {
19
+ type: Number,
20
+ required: true,
21
+ },
22
+ isDisabled: {
23
+ type: Function,
24
+ required: true,
25
+ },
26
+ },
27
+ emits: [
28
+ "selectYear",
29
+ ],
30
+ computed: {
31
+ isDisabledLocal() {
32
+ return this.isDisabled(this.year);
33
+ },
34
+
35
+ isYearActive() {
36
+ return this.yearFromValue === this.year;
37
+ },
38
+
39
+ idForList() {
40
+ return `${ this.prefixForId }${ this.yearIndex }`;
41
+ },
42
+
43
+ ariaSelected() {
44
+ return `${ this.isYearActive }`;
45
+ },
46
+ },
47
+ methods: {
48
+ selectYearLocal(isButtonClick) {
49
+ if (this.isDisabledLocal) {
50
+ return;
51
+ }
52
+ this.$emit("selectYear", { year: this.year, isButtonClick });
53
+ },
54
+ },
55
+ };
@@ -1,9 +1,9 @@
1
- li.cell(
2
- :id="idForList"
3
- :class="{ actived: isYearActive, disabled: isDisabledLocal }"
4
- role="option"
5
- tabindex="-1"
6
- :aria-selected="ariaSelected"
7
- @click="selectYearLocal()"
8
- @keypress.enter.space.prevent.stop="selectYearLocal(true)"
9
- ) {{ year }}
1
+ li.cell(
2
+ :id="idForList"
3
+ :class="{ actived: isYearActive, disabled: isDisabledLocal }"
4
+ role="option"
5
+ tabindex="-1"
6
+ :aria-selected="ariaSelected"
7
+ @click="selectYearLocal()"
8
+ @keypress.enter.space.prevent.stop="selectYearLocal(true)"
9
+ ) {{ year }}
@@ -1,2 +1,2 @@
1
- <template lang="pug" src="./PanelYearItem.pug"></template>
2
- <script src="./PanelYearItem.js"></script>
1
+ <template lang="pug" src="./PanelYearItem.pug"></template>
2
+ <script src="./PanelYearItem.js"></script>
@@ -1,9 +1,9 @@
1
- export default {
2
- tab: 9,
3
- enter: 13,
4
- arrowLeft: 37,
5
- arrowUp: 38,
6
- arrowRight: 39,
7
- arrowDown: 40,
8
- escape: 27,
9
- };
1
+ export default {
2
+ tab: 9,
3
+ enter: 13,
4
+ arrowLeft: 37,
5
+ arrowUp: 38,
6
+ arrowRight: 39,
7
+ arrowDown: 40,
8
+ escape: 27,
9
+ };
@@ -1,23 +1,23 @@
1
- export default function scrollIntoView(container, selected) {
2
- if (!selected) {
3
- container.scrollTop = 0;
4
- return;
5
- }
6
-
7
- const OFFSET_PARENTS = [];
8
- let pointer = selected.offsetParent;
9
- while (pointer && container !== pointer && container.contains(pointer)) {
10
- OFFSET_PARENTS.push(pointer);
11
- pointer = pointer.offsetParent;
12
- }
13
- const TOP = selected.offsetTop + OFFSET_PARENTS.reduce((prev, curr) => (prev + curr.offsetTop), 0);
14
- const BOTTOM = TOP + selected.offsetHeight;
15
- const VIEW_RECT_TOP = container.scrollTop;
16
- const VIEW_RECT_BOTTOM = VIEW_RECT_TOP + container.clientHeight;
17
-
18
- if (TOP < VIEW_RECT_TOP) {
19
- container.scrollTop = TOP;
20
- } else if (BOTTOM > VIEW_RECT_BOTTOM) {
21
- container.scrollTop = BOTTOM - container.clientHeight;
22
- }
23
- }
1
+ export default function scrollIntoView(container, selected) {
2
+ if (!selected) {
3
+ container.scrollTop = 0;
4
+ return;
5
+ }
6
+
7
+ const OFFSET_PARENTS = [];
8
+ let pointer = selected.offsetParent;
9
+ while (pointer && container !== pointer && container.contains(pointer)) {
10
+ OFFSET_PARENTS.push(pointer);
11
+ pointer = pointer.offsetParent;
12
+ }
13
+ const TOP = selected.offsetTop + OFFSET_PARENTS.reduce((prev, curr) => (prev + curr.offsetTop), 0);
14
+ const BOTTOM = TOP + selected.offsetHeight;
15
+ const VIEW_RECT_TOP = container.scrollTop;
16
+ const VIEW_RECT_BOTTOM = VIEW_RECT_TOP + container.clientHeight;
17
+
18
+ if (TOP < VIEW_RECT_TOP) {
19
+ container.scrollTop = TOP;
20
+ } else if (BOTTOM > VIEW_RECT_BOTTOM) {
21
+ container.scrollTop = BOTTOM - container.clientHeight;
22
+ }
23
+ }
@@ -1,23 +1,23 @@
1
- import {
2
- isValidDate,
3
- } from "./index";
4
-
5
-
6
- const TODAY = new Date();
7
-
8
- export const transformDate = {
9
- date: {
10
- value2date: value => {
11
- if (isValidDate(value)) {
12
- return new Date(value);
13
- }
14
- const DATE_STRING = `${ TODAY.toDateString() } ${ value }`;
15
- return isValidDate(DATE_STRING) ? new Date(DATE_STRING) : null;
16
- },
17
- date2value: date => date,
18
- },
19
- timestamp: {
20
- value2date: value => isValidDate(value) ? new Date(value) : null,
21
- date2value: date => date && new Date(date).getTime(),
22
- },
23
- };
1
+ import {
2
+ isValidDate,
3
+ } from "./index";
4
+
5
+
6
+ const TODAY = new Date();
7
+
8
+ export const transformDate = {
9
+ date: {
10
+ value2date: value => {
11
+ if (isValidDate(value)) {
12
+ return new Date(value);
13
+ }
14
+ const DATE_STRING = `${ TODAY.toDateString() } ${ value }`;
15
+ return isValidDate(DATE_STRING) ? new Date(DATE_STRING) : null;
16
+ },
17
+ date2value: date => date,
18
+ },
19
+ timestamp: {
20
+ value2date: value => isValidDate(value) ? new Date(value) : null,
21
+ date2value: date => date && new Date(date).getTime(),
22
+ },
23
+ };
@@ -5,6 +5,8 @@ import es from "./es.json";
5
5
  import fr from "./fr.json";
6
6
  import hr from "./hr.json";
7
7
  import it from "./it.json";
8
+ import nl from "./nl.json";
9
+ import pl from "./pl.json";
8
10
  import ru from "./ru.json";
9
11
  import uk from "./uk.json";
10
12
 
@@ -16,6 +18,8 @@ export default {
16
18
  fr,
17
19
  hr,
18
20
  it,
21
+ nl,
22
+ pl,
19
23
  ru,
20
24
  uk,
21
25
  };
@@ -0,0 +1,11 @@
1
+ {
2
+ "_A_FILE_SIZE_B_": "Bytes",
3
+ "_A_FILE_SIZE_KB_": "KB",
4
+ "_A_FILE_SIZE_MB_": "MB",
5
+ "_A_FILE_SIZE_GB_": "GB",
6
+ "_A_FILE_SIZE_TB_": "TB",
7
+ "_A_FILE_SIZE_PB_": "PB",
8
+ "_A_FILE_SIZE_EB_": "EB",
9
+ "_A_FILE_SIZE_ZB_": "ZB",
10
+ "_A_FILE_SIZE_YB_": "YB"
11
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "_A_FILE_SIZE_B_": "Bajty",
3
+ "_A_FILE_SIZE_KB_": "KB",
4
+ "_A_FILE_SIZE_MB_": "MB",
5
+ "_A_FILE_SIZE_GB_": "GB",
6
+ "_A_FILE_SIZE_TB_": "TB",
7
+ "_A_FILE_SIZE_PB_": "PB",
8
+ "_A_FILE_SIZE_EB_": "EB",
9
+ "_A_FILE_SIZE_ZB_": "ZB",
10
+ "_A_FILE_SIZE_YB_": "YB"
11
+ }
@@ -2,6 +2,7 @@ import AAlertI18n from "../AAlert/i18n/AAlertI18n";
2
2
  import ACarouselI18n from "../ACarousel/i18n/ACarouselI18n";
3
3
  import ACheckboxI18n from "../ui/ACheckbox/i18n/ACheckboxI18n";
4
4
  import ACloakI18n from "../ACloak/i18n/ACloakI18n";
5
+ import AColorPickerI18n from "../ui/AColorPicker/i18n/AColorPickerI18n";
5
6
  import ADatepickerI18n from "../ui/ADatepicker/i18n/ADatepickerI18n";
6
7
  import ADatepickerRangeI18n from "../ui/ADatepickerRange/i18n/ADatepickerRangeI18n";
7
8
  import ADisclosureI18n from "../ADisclosure/i18n/ADisclosureI18n";
@@ -42,6 +43,8 @@ import esJson from "./es.json";
42
43
  import frJson from "./fr.json";
43
44
  import hrJson from "./hr.json";
44
45
  import itJson from "./it.json";
46
+ import nlJson from "./nl.json";
47
+ import plJson from "./pl.json";
45
48
  import ruJson from "./ru.json";
46
49
  import ukJson from "./uk.json";
47
50
 
@@ -51,6 +54,7 @@ export const ar = {
51
54
  ...ACarouselI18n.ar,
52
55
  ...ACheckboxI18n.ar,
53
56
  ...ACloakI18n.ar,
57
+ ...AColorPickerI18n.ar,
54
58
  ...ADatepickerI18n.ar,
55
59
  ...ADatepickerRangeI18n.ar,
56
60
  ...ADisclosureI18n.ar,
@@ -91,6 +95,7 @@ export const de = {
91
95
  ...ACarouselI18n.de,
92
96
  ...ACheckboxI18n.de,
93
97
  ...ACloakI18n.de,
98
+ ...AColorPickerI18n.de,
94
99
  ...ADatepickerI18n.de,
95
100
  ...ADatepickerRangeI18n.de,
96
101
  ...ADisclosureI18n.de,
@@ -131,6 +136,7 @@ export const en = {
131
136
  ...ACarouselI18n.en,
132
137
  ...ACheckboxI18n.en,
133
138
  ...ACloakI18n.en,
139
+ ...AColorPickerI18n.en,
134
140
  ...ADatepickerI18n.en,
135
141
  ...ADatepickerRangeI18n.en,
136
142
  ...ADisclosureI18n.en,
@@ -171,6 +177,7 @@ export const es = {
171
177
  ...ACarouselI18n.es,
172
178
  ...ACheckboxI18n.es,
173
179
  ...ACloakI18n.es,
180
+ ...AColorPickerI18n.es,
174
181
  ...ADatepickerI18n.es,
175
182
  ...ADatepickerRangeI18n.es,
176
183
  ...ADisclosureI18n.es,
@@ -211,6 +218,7 @@ export const fr = {
211
218
  ...ACarouselI18n.fr,
212
219
  ...ACheckboxI18n.fr,
213
220
  ...ACloakI18n.fr,
221
+ ...AColorPickerI18n.fr,
214
222
  ...ADatepickerI18n.fr,
215
223
  ...ADatepickerRangeI18n.fr,
216
224
  ...ADisclosureI18n.fr,
@@ -251,6 +259,7 @@ export const hr = {
251
259
  ...ACarouselI18n.hr,
252
260
  ...ACheckboxI18n.hr,
253
261
  ...ACloakI18n.hr,
262
+ ...AColorPickerI18n.hr,
254
263
  ...ADatepickerI18n.hr,
255
264
  ...ADatepickerRangeI18n.hr,
256
265
  ...ADisclosureI18n.hr,
@@ -291,6 +300,7 @@ export const it = {
291
300
  ...ACarouselI18n.it,
292
301
  ...ACheckboxI18n.it,
293
302
  ...ACloakI18n.it,
303
+ ...AColorPickerI18n.it,
294
304
  ...ADatepickerI18n.it,
295
305
  ...ADatepickerRangeI18n.it,
296
306
  ...ADisclosureI18n.it,
@@ -325,12 +335,95 @@ export const it = {
325
335
  ...AWizardI18n.it,
326
336
  ...Filters18n.it,
327
337
  };
338
+ export const nl = {
339
+ ...nlJson,
340
+ ...AAlertI18n.nl,
341
+ ...ACarouselI18n.nl,
342
+ ...ACheckboxI18n.nl,
343
+ ...ACloakI18n.nl,
344
+ ...AColorPickerI18n.nl,
345
+ ...ADatepickerI18n.nl,
346
+ ...ADatepickerRangeI18n.nl,
347
+ ...ADisclosureI18n.nl,
348
+ ...AErrorsI18n.nl,
349
+ ...AFieldsetI18n.nl,
350
+ ...AFiltersI18n.nl,
351
+ ...AFormElementBtnClearI18n.nl,
352
+ ...AInputCurrencyI18n.nl,
353
+ ...AInputI18n.nl,
354
+ ...AInputNumberI18n.nl,
355
+ ...AInputNumberRangeI18n.nl,
356
+ ...AJsonI18n.nl,
357
+ ...ALinkCopyI18n.nl,
358
+ ...ALoadingI18n.nl,
359
+ ...AMenu2I18n.nl,
360
+ ...AModalI18n.nl,
361
+ ...AMultiselectOrderedI18n.nl,
362
+ ...APaginationI18n.nl,
363
+ ...ARadioI18n.nl,
364
+ ...ARequiredI18n.nl,
365
+ ...ARouterLinkConfigI18n.nl,
366
+ ...ASelectI18n.nl,
367
+ ...ASelectStyleI18n.nl,
368
+ ...AShowMoreI18n.nl,
369
+ ...ATableFormI18n.nl,
370
+ ...ASliderI18n.nl,
371
+ ...ASpinnerI18n.nl,
372
+ ...ASwitchI18n.nl,
373
+ ...ATableI18n.nl,
374
+ ...AValidatedJsonI18n.nl,
375
+ ...AVerticalScrollI18n.nl,
376
+ ...AWizardI18n.nl,
377
+ ...Filters18n.nl,
378
+ };
379
+ export const pl = {
380
+ ...plJson,
381
+ ...AAlertI18n.pl,
382
+ ...ACarouselI18n.pl,
383
+ ...ACheckboxI18n.pl,
384
+ ...ACloakI18n.pl,
385
+ ...AColorPickerI18n.pl,
386
+ ...ADatepickerI18n.pl,
387
+ ...ADatepickerRangeI18n.pl,
388
+ ...ADisclosureI18n.pl,
389
+ ...AErrorsI18n.pl,
390
+ ...AFieldsetI18n.pl,
391
+ ...AFiltersI18n.pl,
392
+ ...AFormElementBtnClearI18n.pl,
393
+ ...AInputCurrencyI18n.pl,
394
+ ...AInputI18n.pl,
395
+ ...AInputNumberI18n.pl,
396
+ ...AInputNumberRangeI18n.pl,
397
+ ...AJsonI18n.pl,
398
+ ...ALinkCopyI18n.pl,
399
+ ...ALoadingI18n.pl,
400
+ ...AMenu2I18n.pl,
401
+ ...AModalI18n.pl,
402
+ ...AMultiselectOrderedI18n.pl,
403
+ ...APaginationI18n.pl,
404
+ ...ARadioI18n.pl,
405
+ ...ARequiredI18n.pl,
406
+ ...ARouterLinkConfigI18n.pl,
407
+ ...ASelectI18n.pl,
408
+ ...ASelectStyleI18n.pl,
409
+ ...AShowMoreI18n.pl,
410
+ ...ATableFormI18n.pl,
411
+ ...ASliderI18n.pl,
412
+ ...ASpinnerI18n.pl,
413
+ ...ASwitchI18n.pl,
414
+ ...ATableI18n.pl,
415
+ ...AValidatedJsonI18n.pl,
416
+ ...AVerticalScrollI18n.pl,
417
+ ...AWizardI18n.pl,
418
+ ...Filters18n.pl,
419
+ };
328
420
  export const ru = {
329
421
  ...ruJson,
330
422
  ...AAlertI18n.ru,
331
423
  ...ACarouselI18n.ru,
332
424
  ...ACheckboxI18n.ru,
333
425
  ...ACloakI18n.ru,
426
+ ...AColorPickerI18n.ru,
334
427
  ...ADatepickerI18n.ru,
335
428
  ...ADatepickerRangeI18n.ru,
336
429
  ...ADisclosureI18n.ru,
@@ -371,6 +464,7 @@ export const uk = {
371
464
  ...ACarouselI18n.uk,
372
465
  ...ACheckboxI18n.uk,
373
466
  ...ACloakI18n.uk,
467
+ ...AColorPickerI18n.uk,
374
468
  ...ADatepickerI18n.uk,
375
469
  ...ADatepickerRangeI18n.uk,
376
470
  ...ADisclosureI18n.uk,
@@ -414,6 +508,8 @@ export default {
414
508
  fr,
415
509
  hr,
416
510
  it,
511
+ nl,
512
+ pl,
417
513
  ru,
418
514
  uk,
419
515
  };
@@ -0,0 +1,4 @@
1
+ {
2
+ "_NO_": "Nee",
3
+ "_YES_": "Ja"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_NO_": "Nie",
3
+ "_YES_": "Tak"
4
+ }
package/src/index.js CHANGED
@@ -65,6 +65,7 @@ export { default as ASelect } from "./ui/ASelect/ASelect";
65
65
  export { default as ASelectIcon } from "./ui/ASelectIcon/ASelectIcon";
66
66
  export { default as ASelectStyle } from "./ui/ASelectStyle/ASelectStyle";
67
67
  export { default as ASlider } from "./ui/ASlider/ASlider";
68
+ export { default as AColorPicker } from "./ui/AColorPicker/AColorPicker";
68
69
  export { default as AShowMore } from "./AShowMore/AShowMore";
69
70
  export { default as ATableForm } from "./ATableForm/ATableForm";
70
71
  export { default as ASpinner } from "./ASpinner/ASpinner";
@@ -345,6 +346,8 @@ export {
345
346
  fr as i18nFR,
346
347
  hr as i18nHR,
347
348
  it as i18nIT,
349
+ nl as i18nNL,
350
+ pl as i18nPL,
348
351
  ru as i18nRU,
349
352
  uk as i18nUK,
350
353
  } from "./i18n/allLanguages";
@@ -385,6 +388,7 @@ export { default as AWizardI18n } from "./AWizard/i18n/AWizardI18n";
385
388
  export { default as Filters18n } from "./filters/i18n/Filters18n";
386
389
  export { default as AValidatedJsonI18n } from "./ui/AValidatedJson/i18n/AValidatedJsonI18n";
387
390
  export { default as ASliderI18n } from "./ui/ASlider/i18n/ASliderI18n";
391
+ export { default as AColorPickerI18n } from "./ui/AColorPicker/i18n/AColorPickerI18n";
388
392
  export {
389
393
  getTranslatedAttributes,
390
394
  getTranslatedText,
@@ -116,6 +116,11 @@ export default {
116
116
  required: false,
117
117
  default: undefined,
118
118
  },
119
+ errorsClass: {
120
+ type: [String, Object],
121
+ required: false,
122
+ default: undefined,
123
+ },
119
124
  excludeRenderAttributes: {
120
125
  type: Array,
121
126
  required: false,
@@ -5,6 +5,8 @@ import es from "./es.json";
5
5
  import fr from "./fr.json";
6
6
  import hr from "./hr.json";
7
7
  import it from "./it.json";
8
+ import nl from "./nl.json";
9
+ import pl from "./pl.json";
8
10
  import ru from "./ru.json";
9
11
  import uk from "./uk.json";
10
12
 
@@ -16,6 +18,8 @@ export default {
16
18
  fr,
17
19
  hr,
18
20
  it,
21
+ nl,
22
+ pl,
19
23
  ru,
20
24
  uk,
21
25
  };
@@ -0,0 +1,5 @@
1
+ {
2
+ "_A_CHECKBOX_GROUP_INVALID_ENTRIES_": "Ongeldige invoer",
3
+ "_A_CHECKBOX_HAS_NOT_ELEMENTS_WITH_SEARCH_": "[Geen items beschikbaar voor selectie]",
4
+ "_A_CHECKBOX_SEARCH_": "Zoeken"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "_A_CHECKBOX_GROUP_INVALID_ENTRIES_": "Nieprawidłowe wpisy",
3
+ "_A_CHECKBOX_HAS_NOT_ELEMENTS_WITH_SEARCH_": "[Brak elementów do wyboru]",
4
+ "_A_CHECKBOX_SEARCH_": "Szukaj"
5
+ }