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
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Deckkraft",
3
+ "_A_COLOR_PICKER_CLEAR_": "Leeren",
4
+ "_A_COLOR_PICKER_CONFIRM_": "OK",
5
+ "_A_COLOR_PICKER_DIALOG_": "Farbe wählen",
6
+ "_A_COLOR_PICKER_EMPTY_": "Keine Farbe ausgewählt",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Farbformat {{format}}, wechseln zu {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Farbton",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Farbwert ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Ungültiger Farbwert. Erlaubt: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Vordefinierte Farben",
12
+ "_A_COLOR_PICKER_SATURATION_": "Sättigung und Helligkeit",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Sättigung {{saturation}} %, Helligkeit {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Opacity",
3
+ "_A_COLOR_PICKER_CLEAR_": "Clear",
4
+ "_A_COLOR_PICKER_CONFIRM_": "OK",
5
+ "_A_COLOR_PICKER_DIALOG_": "Choose color",
6
+ "_A_COLOR_PICKER_EMPTY_": "No color selected",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Color format {{format}}, switch to {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Hue",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Color value ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Invalid color value. Allowed: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Predefined colors",
12
+ "_A_COLOR_PICKER_SATURATION_": "Saturation and brightness",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Saturation {{saturation}} %, brightness {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Opacidad",
3
+ "_A_COLOR_PICKER_CLEAR_": "Borrar",
4
+ "_A_COLOR_PICKER_CONFIRM_": "Aceptar",
5
+ "_A_COLOR_PICKER_DIALOG_": "Elegir color",
6
+ "_A_COLOR_PICKER_EMPTY_": "Ningún color seleccionado",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Formato de color {{format}}, cambiar a {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Tono",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Valor del color ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Valor de color no válido. Permitido: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Colores predefinidos",
12
+ "_A_COLOR_PICKER_SATURATION_": "Saturación y brillo",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Saturación {{saturation}} %, brillo {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Opacité",
3
+ "_A_COLOR_PICKER_CLEAR_": "Effacer",
4
+ "_A_COLOR_PICKER_CONFIRM_": "OK",
5
+ "_A_COLOR_PICKER_DIALOG_": "Choisir une couleur",
6
+ "_A_COLOR_PICKER_EMPTY_": "Aucune couleur sélectionnée",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Format de couleur {{format}}, passer à {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Teinte",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Valeur de couleur ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Valeur de couleur invalide. Autorisé : #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Couleurs prédéfinies",
12
+ "_A_COLOR_PICKER_SATURATION_": "Saturation et luminosité",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Saturation {{saturation}} %, luminosité {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Neprozirnost",
3
+ "_A_COLOR_PICKER_CLEAR_": "Očisti",
4
+ "_A_COLOR_PICKER_CONFIRM_": "U redu",
5
+ "_A_COLOR_PICKER_DIALOG_": "Odaberi boju",
6
+ "_A_COLOR_PICKER_EMPTY_": "Nije odabrana boja",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Format boje {{format}}, prebaci na {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Nijansa",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Vrijednost boje ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Nevaljana vrijednost boje. Dopušteno: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Unaprijed definirane boje",
12
+ "_A_COLOR_PICKER_SATURATION_": "Zasićenost i svjetlina",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Zasićenost {{saturation}} %, svjetlina {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Opacità",
3
+ "_A_COLOR_PICKER_CLEAR_": "Cancella",
4
+ "_A_COLOR_PICKER_CONFIRM_": "OK",
5
+ "_A_COLOR_PICKER_DIALOG_": "Scegli colore",
6
+ "_A_COLOR_PICKER_EMPTY_": "Nessun colore selezionato",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Formato colore {{format}}, passa a {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Tonalità",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Valore del colore ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Valore del colore non valido. Consentito: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Colori predefiniti",
12
+ "_A_COLOR_PICKER_SATURATION_": "Saturazione e luminosità",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Saturazione {{saturation}} %, luminosità {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Dekking",
3
+ "_A_COLOR_PICKER_CLEAR_": "Wissen",
4
+ "_A_COLOR_PICKER_CONFIRM_": "OK",
5
+ "_A_COLOR_PICKER_DIALOG_": "Kleur kiezen",
6
+ "_A_COLOR_PICKER_EMPTY_": "Geen kleur geselecteerd",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Kleurformaat {{format}}, wisselen naar {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Tint",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Kleurwaarde ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Ongeldige kleurwaarde. Toegestaan: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Vooraf gedefinieerde kleuren",
12
+ "_A_COLOR_PICKER_SATURATION_": "Verzadiging en helderheid",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Verzadiging {{saturation}} %, helderheid {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Krycie",
3
+ "_A_COLOR_PICKER_CLEAR_": "Wyczyść",
4
+ "_A_COLOR_PICKER_CONFIRM_": "OK",
5
+ "_A_COLOR_PICKER_DIALOG_": "Wybierz kolor",
6
+ "_A_COLOR_PICKER_EMPTY_": "Nie wybrano koloru",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Format koloru {{format}}, przełącz na {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Odcień",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Wartość koloru ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Nieprawidłowa wartość koloru. Dozwolone: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Kolory predefiniowane",
12
+ "_A_COLOR_PICKER_SATURATION_": "Nasycenie i jasność",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Nasycenie {{saturation}} %, jasność {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Непрозрачность",
3
+ "_A_COLOR_PICKER_CLEAR_": "Очистить",
4
+ "_A_COLOR_PICKER_CONFIRM_": "OK",
5
+ "_A_COLOR_PICKER_DIALOG_": "Выбор цвета",
6
+ "_A_COLOR_PICKER_EMPTY_": "Цвет не выбран",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Формат цвета {{format}}, переключить на {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Оттенок",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Значение цвета ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Недопустимое значение цвета. Допустимо: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Предустановленные цвета",
12
+ "_A_COLOR_PICKER_SATURATION_": "Насыщенность и яркость",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Насыщенность {{saturation}} %, яркость {{brightness}} %"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_A_COLOR_PICKER_ALPHA_": "Непрозорість",
3
+ "_A_COLOR_PICKER_CLEAR_": "Очистити",
4
+ "_A_COLOR_PICKER_CONFIRM_": "OK",
5
+ "_A_COLOR_PICKER_DIALOG_": "Вибір кольору",
6
+ "_A_COLOR_PICKER_EMPTY_": "Колір не вибрано",
7
+ "_A_COLOR_PICKER_FORMAT_SWITCH_{{format}}_{{next}}_": "Формат кольору {{format}}, перемкнути на {{next}}",
8
+ "_A_COLOR_PICKER_HUE_": "Відтінок",
9
+ "_A_COLOR_PICKER_INPUT_{{format}}_": "Значення кольору ({{format}})",
10
+ "_A_COLOR_PICKER_INVALID_": "Неприпустиме значення кольору. Дозволено: #rrggbb, rgb(), hsl(), hsv().",
11
+ "_A_COLOR_PICKER_PREDEFINE_": "Попередньо визначені кольори",
12
+ "_A_COLOR_PICKER_SATURATION_": "Насиченість і яскравість",
13
+ "_A_COLOR_PICKER_SATURATION_VALUE_{{saturation}}_{{brightness}}_": "Насиченість {{saturation}} %, яскравість {{brightness}} %"
14
+ }
@@ -0,0 +1,296 @@
1
+ import {
2
+ isNil,
3
+ isString,
4
+ } from "lodash-es";
5
+
6
+ export const COLOR_FORMATS = ["hex", "rgb", "hsl", "hsv"];
7
+
8
+ export function clamp(value, min, max) {
9
+ return Math.min(max, Math.max(min, value));
10
+ }
11
+
12
+ function round(value, digits = 0) {
13
+ const FACTOR = 10 ** digits;
14
+ return Math.round(value * FACTOR) / FACTOR;
15
+ }
16
+
17
+ /**
18
+ * HSV (h 0-360, s 0-100, v 0-100) → RGB (0-255).
19
+ */
20
+ export function hsvToRgb({ h, s, v }) {
21
+ const S = s / 100;
22
+ const V = v / 100;
23
+ const f = n => {
24
+ const k = (n + h / 60) % 6;
25
+ return V - V * S * Math.max(0, Math.min(k, 4 - k, 1));
26
+ };
27
+ return {
28
+ r: Math.round(f(5) * 255),
29
+ g: Math.round(f(3) * 255),
30
+ b: Math.round(f(1) * 255),
31
+ };
32
+ }
33
+
34
+ /**
35
+ * RGB (0-255) → HSV (h 0-360, s 0-100, v 0-100).
36
+ */
37
+ export function rgbToHsv({ r, g, b }) {
38
+ const R = r / 255;
39
+ const G = g / 255;
40
+ const B = b / 255;
41
+ const MAX = Math.max(R, G, B);
42
+ const D = MAX - Math.min(R, G, B);
43
+ let h = 0;
44
+ if (D) {
45
+ if (MAX === R) {
46
+ h = ((G - B) / D) % 6;
47
+ } else if (MAX === G) {
48
+ h = (B - R) / D + 2;
49
+ } else {
50
+ h = (R - G) / D + 4;
51
+ }
52
+ h *= 60;
53
+ if (h < 0) {
54
+ h += 360;
55
+ }
56
+ }
57
+ return {
58
+ h,
59
+ s: MAX ? D / MAX * 100 : 0,
60
+ v: MAX * 100,
61
+ };
62
+ }
63
+
64
+ /**
65
+ * HSL (h 0-360, s 0-100, l 0-100) → RGB (0-255).
66
+ */
67
+ export function hslToRgb({ h, s, l }) {
68
+ const S = s / 100;
69
+ const L = l / 100;
70
+ const A = S * Math.min(L, 1 - L);
71
+ const f = n => {
72
+ const k = (n + h / 30) % 12;
73
+ return L - A * Math.max(-1, Math.min(k - 3, 9 - k, 1));
74
+ };
75
+ return {
76
+ r: Math.round(f(0) * 255),
77
+ g: Math.round(f(8) * 255),
78
+ b: Math.round(f(4) * 255),
79
+ };
80
+ }
81
+
82
+ /**
83
+ * RGB (0-255) → HSL (h 0-360, s 0-100, l 0-100).
84
+ */
85
+ export function rgbToHsl({ r, g, b }) {
86
+ const { h, s: sv, v } = rgbToHsv({ r, g, b });
87
+ const V = v / 100;
88
+ const SV = sv / 100;
89
+ const L = V * (1 - SV / 2);
90
+ const S = L === 0 || L === 1 ? 0 : (V - L) / Math.min(L, 1 - L);
91
+ return {
92
+ h,
93
+ s: S * 100,
94
+ l: L * 100,
95
+ };
96
+ }
97
+
98
+ export function hsvToHsl({ h, s, v }) {
99
+ const V = v / 100;
100
+ const SV = s / 100;
101
+ const L = V * (1 - SV / 2);
102
+ const S = L === 0 || L === 1 ? 0 : (V - L) / Math.min(L, 1 - L);
103
+ return {
104
+ h,
105
+ s: S * 100,
106
+ l: L * 100,
107
+ };
108
+ }
109
+
110
+ export function hslToHsv({ h, s, l }) {
111
+ const L = l / 100;
112
+ const SL = s / 100;
113
+ const V = L + SL * Math.min(L, 1 - L);
114
+ return {
115
+ h,
116
+ s: V ? 2 * (1 - L / V) * 100 : 0,
117
+ v: V * 100,
118
+ };
119
+ }
120
+
121
+ function parseAlpha(value) {
122
+ if (isNil(value) || value === "") {
123
+ return 1;
124
+ }
125
+ const TEXT = String(value).trim();
126
+ const NUMBER = parseFloat(TEXT);
127
+ if (Number.isNaN(NUMBER)) {
128
+ return undefined;
129
+ }
130
+ return clamp(TEXT.endsWith("%") ? NUMBER / 100 : NUMBER, 0, 1);
131
+ }
132
+
133
+ function parseHex(text) {
134
+ const MATCH = /^#?([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.exec(text);
135
+ if (!MATCH) {
136
+ return undefined;
137
+ }
138
+ let hex = MATCH[1];
139
+ if (hex.length <= 4) {
140
+ hex = hex.split("").map(char => char + char).join("");
141
+ }
142
+ return {
143
+ r: parseInt(hex.slice(0, 2), 16),
144
+ g: parseInt(hex.slice(2, 4), 16),
145
+ b: parseInt(hex.slice(4, 6), 16),
146
+ a: hex.length === 8 ? round(parseInt(hex.slice(6, 8), 16) / 255, 2) : 1,
147
+ };
148
+ }
149
+
150
+ function parseFunction(text) {
151
+ const MATCH = /^(rgba?|hsla?|hsva?)\(([^)]*)\)$/i.exec(text);
152
+ if (!MATCH) {
153
+ return undefined;
154
+ }
155
+ const NAME = MATCH[1].toLowerCase().replace("a", "");
156
+ const PARTS = MATCH[2].trim().split(/\s*[,/]\s*|\s+/).filter(Boolean);
157
+ if (PARTS.length < 3 || PARTS.length > 4) {
158
+ return undefined;
159
+ }
160
+ const NUMBERS = PARTS.slice(0, 3).map(part => parseFloat(part));
161
+ if (NUMBERS.some(number => Number.isNaN(number))) {
162
+ return undefined;
163
+ }
164
+ const A = parseAlpha(PARTS[3]);
165
+ if (isNil(A)) {
166
+ return undefined;
167
+ }
168
+ if (NAME === "rgb") {
169
+ const [R, G, B] = PARTS.slice(0, 3).map((part, index) => {
170
+ return part.endsWith("%") ? NUMBERS[index] * 2.55 : NUMBERS[index];
171
+ });
172
+ return {
173
+ r: Math.round(clamp(R, 0, 255)),
174
+ g: Math.round(clamp(G, 0, 255)),
175
+ b: Math.round(clamp(B, 0, 255)),
176
+ a: A,
177
+ };
178
+ }
179
+ const H = ((NUMBERS[0] % 360) + 360) % 360;
180
+ const S = clamp(NUMBERS[1], 0, 100);
181
+ const THIRD = clamp(NUMBERS[2], 0, 100);
182
+ const RGB = NAME === "hsl" ?
183
+ hslToRgb({ h: H, s: S, l: THIRD }) :
184
+ hsvToRgb({ h: H, s: S, v: THIRD });
185
+ return {
186
+ ...RGB,
187
+ a: A,
188
+ };
189
+ }
190
+
191
+ /**
192
+ * Format of a color value: "hex", "rgb", "hsl", "hsv" or undefined.
193
+ */
194
+ export function detectColorFormat(value) {
195
+ if (!isString(value)) {
196
+ return undefined;
197
+ }
198
+ const TEXT = value.trim().toLowerCase();
199
+ const MATCH = /^(rgb|hsl|hsv)a?\(/.exec(TEXT);
200
+ if (MATCH) {
201
+ return MATCH[1];
202
+ }
203
+ return parseHex(TEXT) ? "hex" : undefined;
204
+ }
205
+
206
+ /**
207
+ * Parses hex (#rgb, #rgba, #rrggbb, #rrggbbaa), rgb(a), hsl(a) and hsv(a).
208
+ * Returns { r, g, b, a } or undefined for an invalid value.
209
+ */
210
+ export function parseColor(value) {
211
+ if (!isString(value)) {
212
+ return undefined;
213
+ }
214
+ const TEXT = value.trim();
215
+ if (!TEXT) {
216
+ return undefined;
217
+ }
218
+ return parseHex(TEXT) || parseFunction(TEXT);
219
+ }
220
+
221
+ function toHex(number) {
222
+ return Math.round(number).toString(16).padStart(2, "0");
223
+ }
224
+
225
+ /**
226
+ * Formats a color { r, g, b, a } as hex, rgb, hsl or hsv.
227
+ * The alpha channel is written only if showAlpha is set and the color is not opaque.
228
+ */
229
+ export function formatColor({ r, g, b, a = 1 }, format = "hex", showAlpha = false) {
230
+ const IS_ALPHA = showAlpha && a < 1;
231
+ const ALPHA = round(a, 2);
232
+ if (format === "rgb") {
233
+ return IS_ALPHA ?
234
+ `rgba(${ r }, ${ g }, ${ b }, ${ ALPHA })` :
235
+ `rgb(${ r }, ${ g }, ${ b })`;
236
+ }
237
+ if (format === "hsl") {
238
+ const { h, s, l } = rgbToHsl({ r, g, b });
239
+ const VALUES = `${ Math.round(h) }, ${ Math.round(s) }%, ${ Math.round(l) }%`;
240
+ return IS_ALPHA ? `hsla(${ VALUES }, ${ ALPHA })` : `hsl(${ VALUES })`;
241
+ }
242
+ if (format === "hsv") {
243
+ const { h, s, v } = rgbToHsv({ r, g, b });
244
+ const VALUES = `${ Math.round(h) }, ${ Math.round(s) }%, ${ Math.round(v) }%`;
245
+ return IS_ALPHA ? `hsva(${ VALUES }, ${ ALPHA })` : `hsv(${ VALUES })`;
246
+ }
247
+ return `#${ toHex(r) }${ toHex(g) }${ toHex(b) }${ IS_ALPHA ? toHex(a * 255) : "" }`;
248
+ }
249
+
250
+ /**
251
+ * CSS value for the browser (hsv is not a CSS color).
252
+ */
253
+ export function toCssColor({ r, g, b, a = 1 }) {
254
+ return a < 1 ?
255
+ `rgba(${ r }, ${ g }, ${ b }, ${ round(a, 2) })` :
256
+ `rgb(${ r }, ${ g }, ${ b })`;
257
+ }
258
+
259
+ function relativeLuminance({ r, g, b }) {
260
+ const [R, G, B] = [r, g, b].map(channel => {
261
+ const C = channel / 255;
262
+ return C <= 0.03928 ? C / 12.92 : ((C + 0.055) / 1.055) ** 2.4;
263
+ });
264
+ return 0.2126 * R + 0.7152 * G + 0.0722 * B;
265
+ }
266
+
267
+ export function contrastRatio(colorA, colorB) {
268
+ const LA = relativeLuminance(colorA);
269
+ const LB = relativeLuminance(colorB);
270
+ return (Math.max(LA, LB) + 0.05) / (Math.min(LA, LB) + 0.05);
271
+ }
272
+
273
+ /**
274
+ * Black or white, whichever is more readable on the color.
275
+ * A transparent color is blended over the background (white by default).
276
+ */
277
+ export function getContrastTextColor({ r, g, b, a = 1 }, background = { r: 255, g: 255, b: 255 }) {
278
+ const COLOR = {
279
+ r: r * a + background.r * (1 - a),
280
+ g: g * a + background.g * (1 - a),
281
+ b: b * a + background.b * (1 - a),
282
+ };
283
+ const ON_BLACK = contrastRatio(COLOR, { r: 0, g: 0, b: 0 });
284
+ const ON_WHITE = contrastRatio(COLOR, { r: 255, g: 255, b: 255 });
285
+ return ON_BLACK >= ON_WHITE ? "#000" : "#fff";
286
+ }
287
+
288
+ export function isSameColor(colorA, colorB) {
289
+ if (!colorA || !colorB) {
290
+ return false;
291
+ }
292
+ return colorA.r === colorB.r &&
293
+ colorA.g === colorB.g &&
294
+ colorA.b === colorB.b &&
295
+ round(colorA.a ?? 1, 2) === round(colorB.a ?? 1, 2);
296
+ }
@@ -89,17 +89,17 @@ export default {
89
89
  return !val || isValidDate(val);
90
90
  },
91
91
  },
92
- minuteStep: {
93
- type: Number,
94
- default: 0,
95
- validator: val => val >= 0 && val <= 60,
96
- },
97
- timePrecision: {
98
- type: String,
99
- required: false,
100
- default: undefined,
101
- validator: value => ["hour", "minute", "second"].indexOf(value) !== -1,
102
- },
92
+ minuteStep: {
93
+ type: Number,
94
+ default: 0,
95
+ validator: val => val >= 0 && val <= 60,
96
+ },
97
+ timePrecision: {
98
+ type: String,
99
+ required: false,
100
+ default: undefined,
101
+ validator: value => ["hour", "minute", "second"].indexOf(value) !== -1,
102
+ },
103
103
  startAt: {
104
104
  type: [String, Number, Boolean, Array, Object, Date, Function, Symbol],
105
105
  required: false,
@@ -156,7 +156,7 @@ export default {
156
156
  isWorkWithKeyboard: false,
157
157
  };
158
158
  },
159
- computed: {
159
+ computed: {
160
160
  now: {
161
161
  get() {
162
162
  return new Date(this.calendarYear, this.calendarMonth).getTime();
@@ -168,32 +168,32 @@ export default {
168
168
  },
169
169
  },
170
170
 
171
- formatForTimePanel() {
172
- return typeof this.$parent.formatLocal === "string" ?
173
- this.$parent.formatLocal :
174
- this.$parent.format;
175
- },
176
-
177
- timeType() {
178
- const h = /h+/.test(this.formatForTimePanel) ? "12" : "24";
179
- const a = /A/.test(this.formatForTimePanel) ? "A" : "a";
180
- return [h, a];
181
- },
182
-
183
- timePrecisionLocal() {
184
- if (this.timePrecision) {
185
- return this.timePrecision;
186
- }
187
-
188
- return this.minuteStep === 0 ? "second" : "minute";
189
- },
190
-
191
- timeHeader() {
192
- if (this.type === "time") {
193
- return this.formatForTimePanel;
194
- }
195
- return this.value && formatDate(this.value, this.dateFormat);
196
- },
171
+ formatForTimePanel() {
172
+ return typeof this.$parent.formatLocal === "string" ?
173
+ this.$parent.formatLocal :
174
+ this.$parent.format;
175
+ },
176
+
177
+ timeType() {
178
+ const h = /h+/.test(this.formatForTimePanel) ? "12" : "24";
179
+ const a = /A/.test(this.formatForTimePanel) ? "A" : "a";
180
+ return [h, a];
181
+ },
182
+
183
+ timePrecisionLocal() {
184
+ if (this.timePrecision) {
185
+ return this.timePrecision;
186
+ }
187
+
188
+ return this.minuteStep === 0 ? "second" : "minute";
189
+ },
190
+
191
+ timeHeader() {
192
+ if (this.type === "time") {
193
+ return this.formatForTimePanel;
194
+ }
195
+ return this.value && formatDate(this.value, this.dateFormat);
196
+ },
197
197
 
198
198
  yearHeader() {
199
199
  const LAST_YEAR = this.firstYear + 9;
@@ -402,19 +402,19 @@ export default {
402
402
  );
403
403
  },
404
404
 
405
- selectDate(date) {
406
- if (this.type === "datetime") {
407
- let time = new Date(date);
408
- if (isDateObject(this.value)) {
409
- time.setHours(
405
+ selectDate(date) {
406
+ if (this.type === "datetime") {
407
+ let time = new Date(date);
408
+ if (isDateObject(this.value)) {
409
+ time.setHours(
410
410
  this.value.getHours(),
411
- this.value.getMinutes(),
412
- this.value.getSeconds(),
413
- );
414
- }
415
- time = this.normalizeTimeByPrecision(time);
416
- if (this.isDisabledTime(time)) {
417
- time.setHours(0, 0, 0, 0);
411
+ this.value.getMinutes(),
412
+ this.value.getSeconds(),
413
+ );
414
+ }
415
+ time = this.normalizeTimeByPrecision(time);
416
+ if (this.isDisabledTime(time)) {
417
+ time.setHours(0, 0, 0, 0);
418
418
  if (this.notBefore &&
419
419
  time.getTime() < new Date(this.notBefore).getTime()) {
420
420
  time = new Date(this.notBefore);
@@ -429,19 +429,19 @@ export default {
429
429
  return;
430
430
  }
431
431
  this.$emit("selectDate", date);
432
- },
433
-
434
- normalizeTimeByPrecision(time) {
435
- const TIME_LOCAL = new Date(time);
436
-
437
- if (this.timePrecisionLocal === "hour") {
438
- TIME_LOCAL.setMinutes(0, 0, 0);
439
- } else if (this.timePrecisionLocal === "minute") {
440
- TIME_LOCAL.setSeconds(0, 0);
441
- }
442
-
443
- return TIME_LOCAL;
444
- },
432
+ },
433
+
434
+ normalizeTimeByPrecision(time) {
435
+ const TIME_LOCAL = new Date(time);
436
+
437
+ if (this.timePrecisionLocal === "hour") {
438
+ TIME_LOCAL.setMinutes(0, 0, 0);
439
+ } else if (this.timePrecisionLocal === "minute") {
440
+ TIME_LOCAL.setSeconds(0, 0);
441
+ }
442
+
443
+ return TIME_LOCAL;
444
+ },
445
445
 
446
446
  selectYear({ year, isButtonClick }) {
447
447
  this.changeCalendarYear(year);
@@ -849,11 +849,11 @@ export default {
849
849
  pux_datepicker__panel_focus: this.isFocusPanelChild,
850
850
  pux_datepicker__calendar__tab: this.panel === "TIME",
851
851
  },
852
- minuteStep: this.minuteStep,
853
- timePrecision: this.timePrecision,
854
- value: this.value,
855
- disabledTime: this.isDisabledTime,
856
- timeType: this.timeType,
852
+ minuteStep: this.minuteStep,
853
+ timePrecision: this.timePrecision,
854
+ value: this.value,
855
+ disabledTime: this.isDisabledTime,
856
+ timeType: this.timeType,
857
857
  currentLanguage: this.currentLanguage,
858
858
  onSelect: this.selectTime,
859
859
  }),
@@ -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
  };