card-mod-date 0.13.1 → 0.14.0

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: 0efea8afdfa8bfab0695e1e7d2700190f2a6839adb514d08598dbbfe8546ef9a
4
- data.tar.gz: 74b814e05b698016f4c10399cb1c1be6a1f25793bc28f0b99715641e83f476ef
3
+ metadata.gz: cf10724dd1e031de21841ae4e444c9539ae90d88e290baeb546b6570654e30bd
4
+ data.tar.gz: ce068cd5644b719055ce864cea93786aa9f8f714ee67d7364acdc5a0e1dddd9d
5
5
  SHA512:
6
- metadata.gz: 2c2375b6ea4e95e4be3fe9e5e6c8846613153fd303cec31edc895b5ac8e79196b0fddeda25d33898af70d8ecdd15baf19dfba655a1583775a38a8f559472204c
7
- data.tar.gz: 48675d7caee887e3343188323e745e387d85a390586c6c99b80fc9449f1bf313b50f9a708c39242ecf5b4f14d792368de3ede4e5fcec16be9ca8cb8bf9a26065
6
+ metadata.gz: 525e133cff5a27eae45e2f814a111297533ea3f3781164b3851c8bec7ba460903b8a510ac3f4d9de7b886d8d8863b733e22c1e1a0e3da1c4855b0598441b2eb5
7
+ data.tar.gz: 63350c2266a6067be26e4cd9a139c55b11496a471575b4089480a74da4ae43924f0fbb74d6b7d19438c9ba416a4bab30d8d7856545bcfe3e173626c4d99aac90
@@ -0,0 +1,5 @@
1
+ datepicker:
2
+ items:
3
+ - ../../vendor/moment/min/moment-with-locales.min.js
4
+ - ../../vendor/tempusdominus/build/js/tempusdominus-bootstrap-4.js
5
+ - script_datepicker_config.js.coffee
@@ -0,0 +1,26 @@
1
+ decko.addEditor(
2
+ '.date-editor',
3
+ ->
4
+ decko.initDatepicker($(this))
5
+ ->
6
+ @val()
7
+ )
8
+
9
+ $.extend decko,
10
+ setDatepickerConfig: (string) ->
11
+ setter = ->
12
+ try
13
+ $.parseJSON string
14
+ catch
15
+ {}
16
+ decko.datepickerConfig = setter()
17
+
18
+ configDatepicker: () ->
19
+ conf = { format: "YY-MM-DD" }
20
+ hard_conf = {}
21
+ user_conf = if decko.datepickerConfig? then decko.datepickerConfig else {}
22
+ $.extend conf, user_conf, hard_conf
23
+ conf
24
+
25
+ initDatepicker: (input) ->
26
+ input.datetimepicker(decko.configDatepicker())
@@ -0,0 +1,4 @@
1
+ datepicker:
2
+ items:
3
+ - tempusdominus.scss
4
+ - ../../vendor/tempusdominus/src/sass/_tempusdominus-bootstrap-4.scss
data/set/all/calendar.rb CHANGED
@@ -1,4 +1,5 @@
1
- Self::InputOptions.add_to_basket :options, "calendar"
1
+ basket[:list_input_options] << "calendar"
2
+ basket[:script_config][:datepicker] = "setDatepickerConfig"
2
3
 
3
4
  format :html do
4
5
  def calendar_input
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-date
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-06 00:00:00.000000000 Z
13
+ date: 2021-12-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.103.1
21
+ version: 1.104.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.103.1
28
+ version: 1.104.0
29
29
  description: ''
30
30
  email:
31
31
  - info@decko.org
@@ -33,17 +33,17 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - assets/script/manifest.yml
37
+ - assets/script/script_datepicker_config.js.coffee
38
+ - assets/style/manifest.yml
39
+ - assets/style/tempusdominus.scss
36
40
  - db/migrate_core_cards/20180509141814_add_datepicker.rb
37
41
  - db/migrate_core_cards/20210509141814_remove_datepicker_script_card.rb
38
- - file/mod_date_script_datepicker_machine_output/file.js
39
- - lib/stylesheets/tempusdominus.scss
40
42
  - set/all/calendar.rb
41
43
  - set/right/when_created.rb
42
44
  - set/right/when_last_edited.rb
43
45
  - set/self/datepicker.rb
44
46
  - set/self/now.rb
45
- - set/self/script_datepicker_config.rb
46
- - set/self/style_datepicker.rb
47
47
  - set/type/date.rb
48
48
  - vendor/moment/CHANGELOG.md
49
49
  - vendor/moment/CONTRIBUTING.md
@@ -947,7 +947,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
947
947
  - !ruby/object:Gem::Version
948
948
  version: '0'
949
949
  requirements: []
950
- rubygems_version: 3.1.6
950
+ rubygems_version: 3.2.15
951
951
  signing_key:
952
952
  specification_version: 4
953
953
  summary: Calendar editor