hr-design-system-handlebars 1.114.31 → 1.114.32
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v1.114.32 (Mon Dec 09 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- fix javascript bug in voting [#1181](https://github.com/mumprod/hr-design-system-handlebars/pull/1181) ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Geraldo ([@hanswurstsalat](https://github.com/hanswurstsalat))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v1.114.31 (Thu Dec 05 2024)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/dist/assets/index.css
CHANGED
|
@@ -3689,7 +3689,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3689
3689
|
border-bottom-color: var(--color-secondary-ds);
|
|
3690
3690
|
}
|
|
3691
3691
|
.counter-reset {
|
|
3692
|
-
counter-reset:
|
|
3692
|
+
counter-reset: cnt1733751399327;
|
|
3693
3693
|
}
|
|
3694
3694
|
.placeholder-text-xs::-webkit-input-placeholder {
|
|
3695
3695
|
font-size: 0.75rem;
|
|
@@ -4103,7 +4103,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
4103
4103
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
4104
4104
|
}
|
|
4105
4105
|
.-ordered {
|
|
4106
|
-
counter-increment:
|
|
4106
|
+
counter-increment: cnt1733751399327 1;
|
|
4107
4107
|
}
|
|
4108
4108
|
.-ordered::before {
|
|
4109
4109
|
position: absolute;
|
|
@@ -4121,7 +4121,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
4121
4121
|
--tw-text-opacity: 1;
|
|
4122
4122
|
color: rgba(0, 0, 0, 1);
|
|
4123
4123
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
4124
|
-
content: counter(
|
|
4124
|
+
content: counter(cnt1733751399327);
|
|
4125
4125
|
}
|
|
4126
4126
|
/*! ****************************/
|
|
4127
4127
|
/*! DataPolicy stuff */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hr$, listen, replaceAnimated } from 'hrQuery'
|
|
1
|
+
import { hr$, listen, replaceAnimated, reinitializeFeature } from 'hrQuery'
|
|
2
2
|
import $ from 'zepto-modules'
|
|
3
3
|
|
|
4
4
|
require('zepto-modules/callbacks')
|
|
@@ -136,6 +136,17 @@ const Voting = (context) => {
|
|
|
136
136
|
})
|
|
137
137
|
}, 850)
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
const scrollIntoVotingAndReinitialize = function (vertical) {
|
|
141
|
+
setTimeout(function () {
|
|
142
|
+
rootElement.scrollIntoView({
|
|
143
|
+
behavior: 'smooth',
|
|
144
|
+
block: 'center',
|
|
145
|
+
})
|
|
146
|
+
reinitializeFeature(votingWrapper.parentNode.parentNode)
|
|
147
|
+
}, 850)
|
|
148
|
+
}
|
|
149
|
+
|
|
139
150
|
/**
|
|
140
151
|
* Handles click events globally
|
|
141
152
|
* and delegates to concrete handlers
|
|
@@ -151,7 +162,7 @@ const Voting = (context) => {
|
|
|
151
162
|
|
|
152
163
|
const handleFormReload = function (event) {
|
|
153
164
|
event.preventDefault()
|
|
154
|
-
replaceAnimated(votingWrapper, votingTmpl, true,
|
|
165
|
+
replaceAnimated(votingWrapper, votingTmpl, true, scrollIntoVotingAndReinitialize)
|
|
155
166
|
}
|
|
156
167
|
|
|
157
168
|
const handleKeydown = function (event) {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"repository": "https://github.com/szuelch/hr-design-system-handlebars",
|
|
9
|
-
"version": "1.114.
|
|
9
|
+
"version": "1.114.32",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hr$, listen, replaceAnimated } from 'hrQuery'
|
|
1
|
+
import { hr$, listen, replaceAnimated, reinitializeFeature } from 'hrQuery'
|
|
2
2
|
import $ from 'zepto-modules'
|
|
3
3
|
|
|
4
4
|
require('zepto-modules/callbacks')
|
|
@@ -136,6 +136,17 @@ const Voting = (context) => {
|
|
|
136
136
|
})
|
|
137
137
|
}, 850)
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
const scrollIntoVotingAndReinitialize = function (vertical) {
|
|
141
|
+
setTimeout(function () {
|
|
142
|
+
rootElement.scrollIntoView({
|
|
143
|
+
behavior: 'smooth',
|
|
144
|
+
block: 'center',
|
|
145
|
+
})
|
|
146
|
+
reinitializeFeature(votingWrapper.parentNode.parentNode)
|
|
147
|
+
}, 850)
|
|
148
|
+
}
|
|
149
|
+
|
|
139
150
|
/**
|
|
140
151
|
* Handles click events globally
|
|
141
152
|
* and delegates to concrete handlers
|
|
@@ -151,7 +162,7 @@ const Voting = (context) => {
|
|
|
151
162
|
|
|
152
163
|
const handleFormReload = function (event) {
|
|
153
164
|
event.preventDefault()
|
|
154
|
-
replaceAnimated(votingWrapper, votingTmpl, true,
|
|
165
|
+
replaceAnimated(votingWrapper, votingTmpl, true, scrollIntoVotingAndReinitialize)
|
|
155
166
|
}
|
|
156
167
|
|
|
157
168
|
const handleKeydown = function (event) {
|