card-mod-date 0.13.0 → 0.13.4

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: 1c7013895a871516b6105855b17c58037d3b1ffe74b0fd25a36357ee00a10a5c
4
- data.tar.gz: b2b29b14cf1d50fdefa6e06b68bde04e996d71af75ac812af2d808bdfce90bee
3
+ metadata.gz: 92decf95ebff8f0a03ac27e7f3d1f70efa49977b49be69786484ef950ad746af
4
+ data.tar.gz: 35555c683b35267a5d78c36ee755eafe1f21b7b3da313d47ebb58df1a59ef9f9
5
5
  SHA512:
6
- metadata.gz: ad905bb19d45df2933ab0c9bfb1bb5c829ea8aec92a95b748c7dd1573945de92c6819f01cd317a769ada443dd507a2f875a5ba6e9e84cdc84d390b775806ef12
7
- data.tar.gz: 94a30fed9ee679e125fe233e4889f24c2ba8f1aac0acbf3e8c87c4ae1e44f265ee6e3b095dc20295b5b27d5c74e2ac0696e893ce99b3013aaa713cdf0ed99ff4
6
+ metadata.gz: a71b3c4d147130dd906c7bfcf974ae4fa10e3b9bee74785920806183a65f1003ebd3ad3f4ef5a8b15a874e781c6d7dee6f130e7eb75c671e8990ae287a56e30b
7
+ data.tar.gz: b5efdb97137f4e15ef0090767e5136f3de017ec91bae235e884b57c11d39738e46ca6aa06efb3e4a1f8a272052fba351be03aadef2a8c9a459a8b244280e6bbc
@@ -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())
data/set/all/calendar.rb CHANGED
@@ -1,4 +1,4 @@
1
- Self::InputOptions.add_to_basket :options, "calendar"
1
+ basket[:list_input_options] << "calendar"
2
2
 
3
3
  format :html do
4
4
  def calendar_input
@@ -1,3 +1,3 @@
1
1
  include_set Abstract::CodeFile
2
2
 
3
- All::Head::HtmlFormat.add_to_basket :mod_js_config, [:datepicker, "setDatepickerConfig"]
3
+ basket[:script_config][:datepicker] = "setDatepickerConfig"
@@ -1,5 +1,5 @@
1
1
  include_set Abstract::CodeFile
2
- Self::StyleLibraries.add_item :style_datepicker
2
+ basket[:style_libraries] << :style_datepicker
3
3
 
4
4
  def source_files
5
5
  %w[lib/stylesheets/tempusdominus.scss
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.0
4
+ version: 0.13.4
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-09-24 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.0
21
+ version: 1.103.4
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.0
28
+ version: 1.103.4
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