@helsenorge/datepicker 13.3.0 → 13.4.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.
- package/lib/CHANGELOG.md +16 -0
- package/lib/components/DatePicker/index.js +11 -5
- package/lib/components/DatePicker/index.js.map +1 -1
- package/lib/resources/HN.Designsystem.DatePicker.en-GB.json.d.ts +4 -1
- package/lib/resources/HN.Designsystem.DatePicker.nb-NO.json.d.ts +4 -1
- package/package.json +1 -1
package/lib/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## [13.4.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv13.3.0&targetVersion=GTv13.4.0) (2025-12-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* input og textarea får resources til maxcharacters tekst ([5057563](https://github.com/helsenorge/designsystem/commit/5057563de68c04df119ff8f16063041c05282562)), closes [#365224](https://github.com/helsenorge/designsystem/issues/365224)
|
|
7
|
+
* **formgroup:** fjerner ariadescribedby prop ([9aa55d4](https://github.com/helsenorge/designsystem/commit/9aa55d463caaeff7d715d3d604237a687c25dc1f)), closes [#367262](https://github.com/helsenorge/designsystem/issues/367262)
|
|
8
|
+
* **formgroup:** ny prop ariadescribedby og formfieldtag er koblet med ariadescribedby automatisk ([71569ef](https://github.com/helsenorge/designsystem/commit/71569ef9db0f955b6a06a363b137635703c2f123)), closes [#367262](https://github.com/helsenorge/designsystem/issues/367262)
|
|
9
|
+
* **linklist:** linkref prop kan være null ([b3bd5c1](https://github.com/helsenorge/designsystem/commit/b3bd5c1e5e786908269752cd4ccc672dd81ba88d)), closes [#367039](https://github.com/helsenorge/designsystem/issues/367039)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **datepicker:** popup vises delvis utenfor skjerm på smal desktop ([1a06d2a](https://github.com/helsenorge/designsystem/commit/1a06d2a27b3902d4fbf89a231ed13085aa1959f6)), closes [#367051](https://github.com/helsenorge/designsystem/issues/367051)
|
|
15
|
+
* **slider:** onclick oppfører seg rart med validering aktivert ([fe2c93a](https://github.com/helsenorge/designsystem/commit/fe2c93a917ce0b54b5f92283fd2340918529e42d)), closes [#357082](https://github.com/helsenorge/designsystem/issues/357082)
|
|
16
|
+
|
|
1
17
|
## [13.3.0](https://github.com/helsenorge/designsystem/branchCompare?baseVersion=GTv13.2.0&targetVersion=GTv13.3.0) (2025-12-11)
|
|
2
18
|
|
|
3
19
|
|
|
@@ -2005,15 +2005,15 @@ var getControllerRightEdgePx = (controllerSize) => document.documentElement.clie
|
|
|
2005
2005
|
var getBubbleRightPx = (controllerSize, bubbleSize) => {
|
|
2006
2006
|
return controllerSize.left + bubbleSize.width;
|
|
2007
2007
|
};
|
|
2008
|
-
var getBubbleLeftVisible = (controllerSize) => {
|
|
2009
|
-
return controllerSize
|
|
2008
|
+
var getBubbleLeftVisible = (controllerSize, bubbleSize) => {
|
|
2009
|
+
return getBubbleLeftPx(controllerSize, bubbleSize) > WINDOW_MARGIN_PX;
|
|
2010
2010
|
};
|
|
2011
2011
|
var getBubbleRightIsVisible = (controllerSize, bubbleSize) => {
|
|
2012
2012
|
return getBubbleRightPx(controllerSize, bubbleSize) < document.documentElement.clientWidth - WINDOW_MARGIN_PX;
|
|
2013
2013
|
};
|
|
2014
2014
|
var getHorizontalPosition = (controllerSize, bubbleSize) => {
|
|
2015
2015
|
if (!getBubbleRightIsVisible(controllerSize, bubbleSize)) return "right";
|
|
2016
|
-
if (!getBubbleLeftVisible(controllerSize)) return "left";
|
|
2016
|
+
if (!getBubbleLeftVisible(controllerSize, bubbleSize)) return "left";
|
|
2017
2017
|
return "floating";
|
|
2018
2018
|
};
|
|
2019
2019
|
var getBubbleAbovePx = (controllerSize, bubbleSize) => controllerSize.top - BUBBLE_VERTICAL_OFFSET_PX - bubbleSize.height;
|
|
@@ -2202,7 +2202,10 @@ var HN_Designsystem_DatePicker_en_GB_default = {
|
|
|
2202
2202
|
nextMonth: "Next month",
|
|
2203
2203
|
previousMonth: "Previous month",
|
|
2204
2204
|
monthDropdown: "Select month",
|
|
2205
|
-
yearDropdown: "Select year"
|
|
2205
|
+
yearDropdown: "Select year",
|
|
2206
|
+
dayFormatPlaceholder: "dd",
|
|
2207
|
+
monthFormatPlaceholder: "mm",
|
|
2208
|
+
yearFormatPlaceholder: "yyyy"
|
|
2206
2209
|
};
|
|
2207
2210
|
var HN_Designsystem_DatePicker_nb_NO_default = {
|
|
2208
2211
|
dateButtonAriaLabel: "Åpne datovelger",
|
|
@@ -2214,7 +2217,10 @@ var HN_Designsystem_DatePicker_nb_NO_default = {
|
|
|
2214
2217
|
monthDropdown: "Velg måned",
|
|
2215
2218
|
yearDropdown: "Velg år",
|
|
2216
2219
|
goToToday: "Gå til i dag",
|
|
2217
|
-
loadingText: "Henter info. Vennligst vent."
|
|
2220
|
+
loadingText: "Henter info. Vennligst vent.",
|
|
2221
|
+
dayFormatPlaceholder: "dd",
|
|
2222
|
+
monthFormatPlaceholder: "mm",
|
|
2223
|
+
yearFormatPlaceholder: "åååå"
|
|
2218
2224
|
};
|
|
2219
2225
|
const getResources = (language) => {
|
|
2220
2226
|
switch (language) {
|