card-mod-date 0.13.1 → 0.13.2

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: 5d0ac9c47f175f06b6dc0432dea8c00ffe3ba6aa869fe6024972083fb2fca33b
4
+ data.tar.gz: 498977ea113fef2b50bd97d8029a6b793fec8ec282d562c5c05b0e40e2b3e995
5
5
  SHA512:
6
- metadata.gz: 2c2375b6ea4e95e4be3fe9e5e6c8846613153fd303cec31edc895b5ac8e79196b0fddeda25d33898af70d8ecdd15baf19dfba655a1583775a38a8f559472204c
7
- data.tar.gz: 48675d7caee887e3343188323e745e387d85a390586c6c99b80fc9449f1bf313b50f9a708c39242ecf5b4f14d792368de3ede4e5fcec16be9ca8cb8bf9a26065
6
+ metadata.gz: be4fe9ecec1d68c994433e03168975e6ef73bdda102829dad49d0472991fbaff7314a65b2095b09fdd950da0e2fcca47d3b7500ef3ff69bd4eccb3ce3c3aaa16
7
+ data.tar.gz: 8e28f6325b0a6a195f169b5e2a90835259c9a945b93ad7786815fe5cda07ae925ab22f8c556ffacad873e25c534e19a0bdcfb43227cc81ac2233ebb7af17fd9b
@@ -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())
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.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ethan McCutchen
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.103.1
21
+ version: 1.103.2
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.103.2
29
29
  description: ''
30
30
  email:
31
31
  - info@decko.org
@@ -33,6 +33,8 @@ 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
36
38
  - db/migrate_core_cards/20180509141814_add_datepicker.rb
37
39
  - db/migrate_core_cards/20210509141814_remove_datepicker_script_card.rb
38
40
  - file/mod_date_script_datepicker_machine_output/file.js