satis 2.1.57 → 2.1.58
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 271abfe1c1f9e7d4977ab25ece6471d65de545c5984800d9a4ca309c03ef8d4e
|
4
|
+
data.tar.gz: 1d083b8fffb2fc6580797301943465b9e463f25113f82a15e6c14b9858e4fbc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3e32d30f903c87179dd0504a827a39f4de9f92ce97b442d59c12b4bf6618b4e065619d61c4e0776c1aed09a676852b3bee67af9f38bec776c682b697d88a9dd
|
7
|
+
data.tar.gz: ad916009965a09484169136ccecd2fc5e636c8bc60f2c193c6d055e5e1179f0634f8e5d149bae86e19af2257fcee83b1814b2ce95f912d75f387370e199aa65b
|
@@ -8,25 +8,27 @@ div.satis-date-time-picker data-controller="satis-date-time-picker" data-satis-d
|
|
8
8
|
|
9
9
|
.container.z-10.shadow.bg-white.border.border-gray-300.dark:bg-gray-800.dark:border-gray-700.rounded.p-4.w-96 class="#{inline ? 'inline-block' : 'hidden'}" data-satis-date-time-picker-target="calendarView"
|
10
10
|
.flex.justify-between.items-center.mb-2
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
button type="button" class="transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 rounded-full" data-action="satis-date-time-picker#previousMonth"
|
12
|
+
i.text-gray-500.inline-flex.px-1.py-1 class=Satis.config.icons[:previous_month]
|
13
|
+
|
14
|
+
.flex.items-center.justify-center.gap-1.text-center.flex-grow
|
15
15
|
span.text-lg.font-bold.text-gray-800.dark:text-gray-200 data-satis-date-time-picker-target="month"
|
16
|
-
|
17
|
-
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
16
|
+
div.relative.flex.items-center
|
17
|
+
select.appearance-none.border-none.bg-transparent.text-lg.font-normal.text-gray-600.dark:text-gray-200.focus:outline-none.focus:ring-0.overflow-y-auto.max-h-12 data-satis-date-time-picker-target="select" data-action="change->satis-date-time-picker#selectYear"
|
18
|
+
- current_year = Time.current.year
|
19
|
+
- (current_year - 100..current_year + 100).each do |year|
|
20
|
+
- selected = true if year == current_year
|
21
|
+
option value=year selected=selected data-satis-date-time-picker-target="year" = year
|
22
|
+
|
23
|
+
button type="button" class="transition ease-in-out duration-100 inline-flex cursor-pointer hover:bg-gray-200 rounded-full" data-action="satis-date-time-picker#nextMonth"
|
24
|
+
i.text-gray-500.inline-flex.px-1.py-1 class=Satis.config.icons[:next_month]
|
23
25
|
|
24
26
|
.grid.grid-cols-7 data-satis-date-time-picker-target="weekDays"
|
25
27
|
template data-satis-date-time-picker-target="weekDayTemplate"
|
26
28
|
div.px-2.w-8
|
27
29
|
div.text-gray-800.dark:text-gray-200.font-medium.text-center.text-xs ${name}
|
28
30
|
|
29
|
-
.grid.grid-cols-7 data-satis-date-time-picker-target="days"
|
31
|
+
.grid.grid-cols-7.grid-rows-6 data-satis-date-time-picker-target="days"
|
30
32
|
|
31
33
|
- if time_picker
|
32
34
|
.flex.items-center.py-2.space-x-2
|
@@ -48,4 +50,4 @@ div.satis-date-time-picker data-controller="satis-date-time-picker" data-satis-d
|
|
48
50
|
.text-center.border.p-1.border-transparent.text-sm
|
49
51
|
template data-satis-date-time-picker-target="dayTemplate"
|
50
52
|
div
|
51
|
-
a.block.w-
|
53
|
+
a.block.w-10.h-10.cursor-pointer.text-center.text-sm.rounded-full.flex.items-center.justify-center.transition.ease-in-out.duration-100.hover:bg-primary-200 data-action="satis-date-time-picker#selectDay" ${day}
|
@@ -425,7 +425,20 @@ export default class DateTimePickerComponentController extends ApplicationContro
|
|
425
425
|
// Refreshes the calendar
|
426
426
|
refreshCalendar(refreshInputs) {
|
427
427
|
this.monthTarget.innerHTML = this.monthName
|
428
|
-
|
428
|
+
|
429
|
+
if(this.hiddenInputTarget.value != "") {
|
430
|
+
const year = this.displayValue.getFullYear()
|
431
|
+
const selectElement = document.querySelector('[data-satis-date-time-picker-target="select"]')
|
432
|
+
const options = selectElement.querySelectorAll('option')
|
433
|
+
|
434
|
+
options.forEach(option => {
|
435
|
+
if (parseInt(option.value) === year) {
|
436
|
+
option.selected = true
|
437
|
+
} else {
|
438
|
+
option.selected = false
|
439
|
+
}
|
440
|
+
})
|
441
|
+
}
|
429
442
|
|
430
443
|
this.weekDaysTarget.innerHTML = ""
|
431
444
|
this.getWeekDays(this.localeValue).forEach((dayName) => {
|
data/lib/satis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: satis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.58
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: browser
|