hr-design-system-handlebars 1.88.0 → 1.88.1
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 +12 -0
- package/dist/assets/index.css +14 -6
- package/dist/assets/js/components/event/filtererDs.feature.js +36 -4
- package/dist/views/components/event/calendar/event_calendar_nav.hbs +2 -2
- package/dist/views_static/components/event/calendar/event_calendar_nav.hbs +2 -2
- package/package.json +1 -1
- package/src/stories/views/components/event/calendar/event_calendar_nav.hbs +2 -2
- package/src/stories/views/components/event/filtererDs.feature.js +36 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
# v1.88.1 (Fri Aug 02 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- DPE-3121 Monats-Übersicht im Eventkalender [#1037](https://github.com/mumprod/hr-design-system-handlebars/pull/1037) ([@Sunny1112358](https://github.com/Sunny1112358))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- [@Sunny1112358](https://github.com/Sunny1112358)
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v1.88.0 (Thu Aug 01 2024)
|
|
2
14
|
|
|
3
15
|
#### 🚀 Enhancement
|
package/dist/assets/index.css
CHANGED
|
@@ -1687,6 +1687,9 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
1687
1687
|
.w-15\/12 {
|
|
1688
1688
|
width: 120%;
|
|
1689
1689
|
}
|
|
1690
|
+
.w-16 {
|
|
1691
|
+
width: 4rem;
|
|
1692
|
+
}
|
|
1690
1693
|
.w-2 {
|
|
1691
1694
|
width: 0.5rem;
|
|
1692
1695
|
}
|
|
@@ -1699,9 +1702,6 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
1699
1702
|
.w-22 {
|
|
1700
1703
|
width: 5.5rem;
|
|
1701
1704
|
}
|
|
1702
|
-
.w-24 {
|
|
1703
|
-
width: 6rem;
|
|
1704
|
-
}
|
|
1705
1705
|
.w-3 {
|
|
1706
1706
|
width: 0.75rem;
|
|
1707
1707
|
}
|
|
@@ -2323,6 +2323,10 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
2323
2323
|
--tw-bg-opacity: 1;
|
|
2324
2324
|
background-color: rgba(227, 227, 227, var(--tw-bg-opacity));
|
|
2325
2325
|
}
|
|
2326
|
+
.bg-black {
|
|
2327
|
+
--tw-bg-opacity: 1;
|
|
2328
|
+
background-color: rgba(0, 0, 0, var(--tw-bg-opacity));
|
|
2329
|
+
}
|
|
2326
2330
|
.bg-black\/\[0\.5\] {
|
|
2327
2331
|
background-color: rgba(0, 0, 0, 0.5);
|
|
2328
2332
|
}
|
|
@@ -3089,6 +3093,10 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3089
3093
|
color: #606060;
|
|
3090
3094
|
color: var(--color-secondary-ds);
|
|
3091
3095
|
}
|
|
3096
|
+
.text-slate-500 {
|
|
3097
|
+
--tw-text-opacity: 1;
|
|
3098
|
+
color: rgba(100, 116, 139, var(--tw-text-opacity));
|
|
3099
|
+
}
|
|
3092
3100
|
.text-stageLink {
|
|
3093
3101
|
color: #006eb7;
|
|
3094
3102
|
color: var(--color-stage-link);
|
|
@@ -3319,7 +3327,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3319
3327
|
border-bottom-color: var(--color-secondary-ds);
|
|
3320
3328
|
}
|
|
3321
3329
|
.counter-reset {
|
|
3322
|
-
counter-reset:
|
|
3330
|
+
counter-reset: cnt1722602731623;
|
|
3323
3331
|
}
|
|
3324
3332
|
.hyphens-auto {
|
|
3325
3333
|
-webkit-hyphens: auto;
|
|
@@ -3727,7 +3735,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3727
3735
|
--tw-ring-color: rgba(255, 255, 255, 0.5);
|
|
3728
3736
|
}
|
|
3729
3737
|
.-ordered {
|
|
3730
|
-
counter-increment:
|
|
3738
|
+
counter-increment: cnt1722602731623 1;
|
|
3731
3739
|
}
|
|
3732
3740
|
.-ordered::before {
|
|
3733
3741
|
position: absolute;
|
|
@@ -3743,7 +3751,7 @@ article.indexTextDS .indexTextHighlighted .link {
|
|
|
3743
3751
|
letter-spacing: .0125em;
|
|
3744
3752
|
--tw-text-opacity: 1;
|
|
3745
3753
|
color: rgba(0, 0, 0, var(--tw-text-opacity));
|
|
3746
|
-
content: counter(
|
|
3754
|
+
content: counter(cnt1722602731623);
|
|
3747
3755
|
}
|
|
3748
3756
|
/*! ****************************/
|
|
3749
3757
|
/*! DataPolicy stuff */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { color } from '@storybook/theming'
|
|
1
2
|
import { pi, uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
2
3
|
import { hr$, isString, listen, reinitializeFeature, simulateClickOn } from 'hrQuery'
|
|
3
4
|
import $ from 'zepto-modules'
|
|
@@ -22,9 +23,14 @@ const Filterer = (context) => {
|
|
|
22
23
|
errorTargetDomNodes = hr$(`.${errorTargetClass}`, rootElement),
|
|
23
24
|
errorDomNodes = hr$(`.${errorClass}`),
|
|
24
25
|
contentTargetDomNode = hr$(contentTargetClass, rootElement)[0]
|
|
25
|
-
let targetDomNodes = hr$(`.${targetClass}`, rootElement)
|
|
26
|
+
let targetDomNodes = hr$(`.${targetClass}`, rootElement),
|
|
27
|
+
currentMonth = document.getElementsByClassName('-currentMonth')[0];
|
|
28
|
+
|
|
29
|
+
const init = function () {
|
|
30
|
+
currentMonth.classList.add('text-white');
|
|
31
|
+
currentMonth.classList.add('bg-black');
|
|
32
|
+
|
|
26
33
|
|
|
27
|
-
const init = function () {
|
|
28
34
|
for (let i = 0; i < triggerDomNodes.length; i++) {
|
|
29
35
|
triggerDomNodes[i].addEventListener('click', doSetSelectedFilter.bind(this))
|
|
30
36
|
triggerDomNodes[i].addEventListener('touch', doSetSelectedFilter.bind(this))
|
|
@@ -68,9 +74,22 @@ const Filterer = (context) => {
|
|
|
68
74
|
|
|
69
75
|
const doSetSelectedFilter = function (e, forceReset) {
|
|
70
76
|
clearSelected()
|
|
71
|
-
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
let monthWrapper = e.currentTarget.closest('.js-ns-month');
|
|
80
|
+
let monthName = monthWrapper.querySelector('.js-monthName');
|
|
81
|
+
|
|
72
82
|
if (!forceReset) {
|
|
73
|
-
e.currentTarget.classList.add(navItemSelectedCssTrigger)
|
|
83
|
+
e.currentTarget.classList.add(navItemSelectedCssTrigger)
|
|
84
|
+
if (monthWrapper) {
|
|
85
|
+
|
|
86
|
+
if (monthName) {
|
|
87
|
+
monthName.classList.remove('text-slate-500')
|
|
88
|
+
monthName.classList.remove('bg-white')
|
|
89
|
+
monthName.classList.add('text-white');
|
|
90
|
+
monthName.classList.add('bg-black');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
74
93
|
}
|
|
75
94
|
|
|
76
95
|
//hacky weil e beim start auch kein Event sein kann
|
|
@@ -82,7 +101,20 @@ const Filterer = (context) => {
|
|
|
82
101
|
const clearSelected = function () {
|
|
83
102
|
let triggerDomNodes = hr$(`.${triggerClass}.${navItemSelectedCssTrigger}`, rootElement)
|
|
84
103
|
|
|
104
|
+
// hacky die würde bald verändert
|
|
105
|
+
currentMonth.classList.remove('text-white');
|
|
106
|
+
currentMonth.classList.remove('bg-black');
|
|
107
|
+
currentMonth.classList.add('text-slate-500');
|
|
108
|
+
currentMonth.classList.add('bg-white');
|
|
109
|
+
|
|
110
|
+
|
|
85
111
|
triggerDomNodes.forEach(function (triggerDomNode) {
|
|
112
|
+
|
|
113
|
+
// hacky die würde bald verändert
|
|
114
|
+
triggerDomNode.closest('.js-ns-month').firstElementChild.classList.remove('text-white');
|
|
115
|
+
triggerDomNode.closest('.js-ns-month').firstElementChild.classList.remove('bg-black');
|
|
116
|
+
triggerDomNode.closest('.js-ns-month').firstElementChild.classList.add('text-slate-500');
|
|
117
|
+
triggerDomNode.closest('.js-ns-month').firstElementChild.classList.add('bg-white');
|
|
86
118
|
triggerDomNode.classList.remove(navItemSelectedCssTrigger)
|
|
87
119
|
})
|
|
88
120
|
}
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<div class="flex mb-0 overflow-x-auto overflow-y-hidden whitespace-nowrap scroll-smooth js-ns-scroll -horizontal">
|
|
10
10
|
{{#each this}}
|
|
11
11
|
<div class="inline-block items-center justify-center border-event-calendar-secondary border-l js-ns-month {{#if
|
|
12
|
-
this.isCurrentMonth}} -currentMonth{{/if}}{{#if
|
|
13
12
|
this.hasFutureEventsFromNow}} -selected{{else}} js-fr-reload-trigger{{/if}}">
|
|
14
|
-
<span class="block font-heading font-bold w-
|
|
13
|
+
<span class="js-monthName block font-heading font-bold w-16 sticky left-0 px-2 py-3 {{#if
|
|
14
|
+
this.isCurrentMonth}} -currentMonth{{else}}text-slate-500{{/if}}">{{this.date.monthNameShort}} {{this.date.yearShort}}</span>
|
|
15
15
|
<ul class="flex">
|
|
16
16
|
{{#each this.days}}
|
|
17
17
|
<li class="inline-block h-full group cursor-pointer js-ns-item{{#if
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<div class="flex mb-0 overflow-x-auto overflow-y-hidden whitespace-nowrap scroll-smooth js-ns-scroll -horizontal">
|
|
10
10
|
{{#each this}}
|
|
11
11
|
<div class="inline-block items-center justify-center border-event-calendar-secondary border-l js-ns-month {{#if
|
|
12
|
-
this.isCurrentMonth}} -currentMonth{{/if}}{{#if
|
|
13
12
|
this.hasFutureEventsFromNow}} -selected{{else}} js-fr-reload-trigger{{/if}}">
|
|
14
|
-
<span class="block font-heading font-bold w-
|
|
13
|
+
<span class="js-monthName block font-heading font-bold w-16 sticky left-0 px-2 py-3 {{#if
|
|
14
|
+
this.isCurrentMonth}} -currentMonth{{else}}text-slate-500{{/if}}">{{this.date.monthNameShort}} {{this.date.yearShort}}</span>
|
|
15
15
|
<ul class="flex">
|
|
16
16
|
{{#each this.days}}
|
|
17
17
|
<li class="inline-block h-full group cursor-pointer js-ns-item{{#if
|
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.88.
|
|
9
|
+
"version": "1.88.1",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
12
|
"storybook": "storybook dev -p 6006 public",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
<div class="flex mb-0 overflow-x-auto overflow-y-hidden whitespace-nowrap scroll-smooth js-ns-scroll -horizontal">
|
|
10
10
|
{{#each this}}
|
|
11
11
|
<div class="inline-block items-center justify-center border-event-calendar-secondary border-l js-ns-month {{#if
|
|
12
|
-
this.isCurrentMonth}} -currentMonth{{/if}}{{#if
|
|
13
12
|
this.hasFutureEventsFromNow}} -selected{{else}} js-fr-reload-trigger{{/if}}">
|
|
14
|
-
<span class="block font-heading font-bold w-
|
|
13
|
+
<span class="js-monthName block font-heading font-bold w-16 sticky left-0 px-2 py-3 {{#if
|
|
14
|
+
this.isCurrentMonth}} -currentMonth{{else}}text-slate-500{{/if}}">{{this.date.monthNameShort}} {{this.date.yearShort}}</span>
|
|
15
15
|
<ul class="flex">
|
|
16
16
|
{{#each this.days}}
|
|
17
17
|
<li class="inline-block h-full group cursor-pointer js-ns-item{{#if
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { color } from '@storybook/theming'
|
|
1
2
|
import { pi, uxAction } from 'base/tracking/pianoHelper.subfeature'
|
|
2
3
|
import { hr$, isString, listen, reinitializeFeature, simulateClickOn } from 'hrQuery'
|
|
3
4
|
import $ from 'zepto-modules'
|
|
@@ -22,9 +23,14 @@ const Filterer = (context) => {
|
|
|
22
23
|
errorTargetDomNodes = hr$(`.${errorTargetClass}`, rootElement),
|
|
23
24
|
errorDomNodes = hr$(`.${errorClass}`),
|
|
24
25
|
contentTargetDomNode = hr$(contentTargetClass, rootElement)[0]
|
|
25
|
-
let targetDomNodes = hr$(`.${targetClass}`, rootElement)
|
|
26
|
+
let targetDomNodes = hr$(`.${targetClass}`, rootElement),
|
|
27
|
+
currentMonth = document.getElementsByClassName('-currentMonth')[0];
|
|
28
|
+
|
|
29
|
+
const init = function () {
|
|
30
|
+
currentMonth.classList.add('text-white');
|
|
31
|
+
currentMonth.classList.add('bg-black');
|
|
32
|
+
|
|
26
33
|
|
|
27
|
-
const init = function () {
|
|
28
34
|
for (let i = 0; i < triggerDomNodes.length; i++) {
|
|
29
35
|
triggerDomNodes[i].addEventListener('click', doSetSelectedFilter.bind(this))
|
|
30
36
|
triggerDomNodes[i].addEventListener('touch', doSetSelectedFilter.bind(this))
|
|
@@ -68,9 +74,22 @@ const Filterer = (context) => {
|
|
|
68
74
|
|
|
69
75
|
const doSetSelectedFilter = function (e, forceReset) {
|
|
70
76
|
clearSelected()
|
|
71
|
-
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
let monthWrapper = e.currentTarget.closest('.js-ns-month');
|
|
80
|
+
let monthName = monthWrapper.querySelector('.js-monthName');
|
|
81
|
+
|
|
72
82
|
if (!forceReset) {
|
|
73
|
-
e.currentTarget.classList.add(navItemSelectedCssTrigger)
|
|
83
|
+
e.currentTarget.classList.add(navItemSelectedCssTrigger)
|
|
84
|
+
if (monthWrapper) {
|
|
85
|
+
|
|
86
|
+
if (monthName) {
|
|
87
|
+
monthName.classList.remove('text-slate-500')
|
|
88
|
+
monthName.classList.remove('bg-white')
|
|
89
|
+
monthName.classList.add('text-white');
|
|
90
|
+
monthName.classList.add('bg-black');
|
|
91
|
+
}
|
|
92
|
+
}
|
|
74
93
|
}
|
|
75
94
|
|
|
76
95
|
//hacky weil e beim start auch kein Event sein kann
|
|
@@ -82,7 +101,20 @@ const Filterer = (context) => {
|
|
|
82
101
|
const clearSelected = function () {
|
|
83
102
|
let triggerDomNodes = hr$(`.${triggerClass}.${navItemSelectedCssTrigger}`, rootElement)
|
|
84
103
|
|
|
104
|
+
// hacky die würde bald verändert
|
|
105
|
+
currentMonth.classList.remove('text-white');
|
|
106
|
+
currentMonth.classList.remove('bg-black');
|
|
107
|
+
currentMonth.classList.add('text-slate-500');
|
|
108
|
+
currentMonth.classList.add('bg-white');
|
|
109
|
+
|
|
110
|
+
|
|
85
111
|
triggerDomNodes.forEach(function (triggerDomNode) {
|
|
112
|
+
|
|
113
|
+
// hacky die würde bald verändert
|
|
114
|
+
triggerDomNode.closest('.js-ns-month').firstElementChild.classList.remove('text-white');
|
|
115
|
+
triggerDomNode.closest('.js-ns-month').firstElementChild.classList.remove('bg-black');
|
|
116
|
+
triggerDomNode.closest('.js-ns-month').firstElementChild.classList.add('text-slate-500');
|
|
117
|
+
triggerDomNode.closest('.js-ns-month').firstElementChild.classList.add('bg-white');
|
|
86
118
|
triggerDomNode.classList.remove(navItemSelectedCssTrigger)
|
|
87
119
|
})
|
|
88
120
|
}
|