card-mod-bootstrap 0.13.3 → 0.14.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/assets/script/bootstrap_modal_decko.js +1 -1
  3. data/assets/script/manifest.yml +0 -5
  4. data/assets/style/bootstrap_colorpicker.scss +272 -0
  5. data/{lib/stylesheets → assets/style}/font_awesome.css +0 -0
  6. data/assets/style/manifest.yml +14 -0
  7. data/{lib/stylesheets → assets/style}/material_icons.css +0 -0
  8. data/{lib/stylesheets/style_select2_bootstrap.scss → assets/style/select2_bootstrap.scss} +0 -0
  9. data/{lib/stylesheets → assets/style}/style_bootstrap_cards.scss +5 -3
  10. data/locales/de.yml +3 -0
  11. data/set/abstract/bootswatch_theme.rb +44 -69
  12. data/set/all/bootstrap/helper.rb +1 -1
  13. data/set/type/customized_bootswatch_skin.rb +7 -10
  14. metadata +20 -165
  15. data/assets/script/script_pointer_config.js.coffee +0 -80
  16. data/assets/script/script_pointer_list_editor.js.coffee +0 -67
  17. data/file/cerulean_skin_image/image-icon.png +0 -0
  18. data/file/cerulean_skin_image/image-large.png +0 -0
  19. data/file/cerulean_skin_image/image-medium.png +0 -0
  20. data/file/cerulean_skin_image/image-original.png +0 -0
  21. data/file/cerulean_skin_image/image-small.png +0 -0
  22. data/file/cosmo_skin_image/image-icon.png +0 -0
  23. data/file/cosmo_skin_image/image-large.png +0 -0
  24. data/file/cosmo_skin_image/image-medium.png +0 -0
  25. data/file/cosmo_skin_image/image-original.png +0 -0
  26. data/file/cosmo_skin_image/image-small.png +0 -0
  27. data/file/cyborg_skin_image/image-icon.png +0 -0
  28. data/file/cyborg_skin_image/image-large.png +0 -0
  29. data/file/cyborg_skin_image/image-medium.png +0 -0
  30. data/file/cyborg_skin_image/image-original.png +0 -0
  31. data/file/cyborg_skin_image/image-small.png +0 -0
  32. data/file/darkly_skin_image/image-icon.png +0 -0
  33. data/file/darkly_skin_image/image-large.png +0 -0
  34. data/file/darkly_skin_image/image-medium.png +0 -0
  35. data/file/darkly_skin_image/image-original.png +0 -0
  36. data/file/darkly_skin_image/image-small.png +0 -0
  37. data/file/flatly_skin_image/image-icon.png +0 -0
  38. data/file/flatly_skin_image/image-large.png +0 -0
  39. data/file/flatly_skin_image/image-medium.png +0 -0
  40. data/file/flatly_skin_image/image-original.png +0 -0
  41. data/file/flatly_skin_image/image-small.png +0 -0
  42. data/file/journal_skin_image/image-icon.png +0 -0
  43. data/file/journal_skin_image/image-large.png +0 -0
  44. data/file/journal_skin_image/image-medium.png +0 -0
  45. data/file/journal_skin_image/image-original.png +0 -0
  46. data/file/journal_skin_image/image-small.png +0 -0
  47. data/file/litera_skin_image/image-icon.png +0 -0
  48. data/file/litera_skin_image/image-large.png +0 -0
  49. data/file/litera_skin_image/image-medium.png +0 -0
  50. data/file/litera_skin_image/image-original.png +0 -0
  51. data/file/litera_skin_image/image-small.png +0 -0
  52. data/file/lumen_skin_image/image-icon.png +0 -0
  53. data/file/lumen_skin_image/image-large.png +0 -0
  54. data/file/lumen_skin_image/image-medium.png +0 -0
  55. data/file/lumen_skin_image/image-original.png +0 -0
  56. data/file/lumen_skin_image/image-small.png +0 -0
  57. data/file/lux_skin_image/image-icon.png +0 -0
  58. data/file/lux_skin_image/image-large.png +0 -0
  59. data/file/lux_skin_image/image-medium.png +0 -0
  60. data/file/lux_skin_image/image-original.png +0 -0
  61. data/file/lux_skin_image/image-small.png +0 -0
  62. data/file/materia_skin_image/image-icon.png +0 -0
  63. data/file/materia_skin_image/image-large.png +0 -0
  64. data/file/materia_skin_image/image-medium.png +0 -0
  65. data/file/materia_skin_image/image-original.png +0 -0
  66. data/file/materia_skin_image/image-small.png +0 -0
  67. data/file/minty_skin_image/image-icon.png +0 -0
  68. data/file/minty_skin_image/image-large.png +0 -0
  69. data/file/minty_skin_image/image-medium.png +0 -0
  70. data/file/minty_skin_image/image-original.png +0 -0
  71. data/file/minty_skin_image/image-small.png +0 -0
  72. data/file/mod_bootstrap_script_bootstrap_machine_output/file.js +0 -25
  73. data/file/mod_bootstrap_script_pointer_machine_output/file.js +0 -223
  74. data/file/paper_skin_image/image-icon.png +0 -0
  75. data/file/paper_skin_image/image-large.png +0 -0
  76. data/file/paper_skin_image/image-medium.png +0 -0
  77. data/file/paper_skin_image/image-original.png +0 -0
  78. data/file/paper_skin_image/image-small.png +0 -0
  79. data/file/pulse_skin_image/image-icon.png +0 -0
  80. data/file/pulse_skin_image/image-large.png +0 -0
  81. data/file/pulse_skin_image/image-medium.png +0 -0
  82. data/file/pulse_skin_image/image-original.png +0 -0
  83. data/file/pulse_skin_image/image-small.png +0 -0
  84. data/file/readable_skin_image/image-icon.png +0 -0
  85. data/file/readable_skin_image/image-large.png +0 -0
  86. data/file/readable_skin_image/image-medium.png +0 -0
  87. data/file/readable_skin_image/image-original.png +0 -0
  88. data/file/readable_skin_image/image-small.png +0 -0
  89. data/file/sandstone_skin_image/image-icon.png +0 -0
  90. data/file/sandstone_skin_image/image-large.png +0 -0
  91. data/file/sandstone_skin_image/image-medium.png +0 -0
  92. data/file/sandstone_skin_image/image-original.png +0 -0
  93. data/file/sandstone_skin_image/image-small.png +0 -0
  94. data/file/simplex_skin_image/image-icon.png +0 -0
  95. data/file/simplex_skin_image/image-large.png +0 -0
  96. data/file/simplex_skin_image/image-medium.png +0 -0
  97. data/file/simplex_skin_image/image-original.png +0 -0
  98. data/file/simplex_skin_image/image-small.png +0 -0
  99. data/file/sketchy_skin_image/image-icon.png +0 -0
  100. data/file/sketchy_skin_image/image-large.png +0 -0
  101. data/file/sketchy_skin_image/image-medium.png +0 -0
  102. data/file/sketchy_skin_image/image-original.png +0 -0
  103. data/file/sketchy_skin_image/image-small.png +0 -0
  104. data/file/slate_skin_image/image-icon.png +0 -0
  105. data/file/slate_skin_image/image-large.png +0 -0
  106. data/file/slate_skin_image/image-medium.png +0 -0
  107. data/file/slate_skin_image/image-original.png +0 -0
  108. data/file/slate_skin_image/image-small.png +0 -0
  109. data/file/solar_skin_image/image-icon.png +0 -0
  110. data/file/solar_skin_image/image-large.png +0 -0
  111. data/file/solar_skin_image/image-medium.png +0 -0
  112. data/file/solar_skin_image/image-original.png +0 -0
  113. data/file/solar_skin_image/image-small.png +0 -0
  114. data/file/spacelab_skin_image/image-icon.png +0 -0
  115. data/file/spacelab_skin_image/image-large.png +0 -0
  116. data/file/spacelab_skin_image/image-medium.png +0 -0
  117. data/file/spacelab_skin_image/image-original.png +0 -0
  118. data/file/spacelab_skin_image/image-small.png +0 -0
  119. data/file/superhero_skin_image/image-icon.png +0 -0
  120. data/file/superhero_skin_image/image-large.png +0 -0
  121. data/file/superhero_skin_image/image-medium.png +0 -0
  122. data/file/superhero_skin_image/image-original.png +0 -0
  123. data/file/superhero_skin_image/image-small.png +0 -0
  124. data/file/united_skin_image/image-icon.png +0 -0
  125. data/file/united_skin_image/image-large.png +0 -0
  126. data/file/united_skin_image/image-medium.png +0 -0
  127. data/file/united_skin_image/image-original.png +0 -0
  128. data/file/united_skin_image/image-small.png +0 -0
  129. data/file/yeti_skin_image/image-icon.png +0 -0
  130. data/file/yeti_skin_image/image-large.png +0 -0
  131. data/file/yeti_skin_image/image-medium.png +0 -0
  132. data/file/yeti_skin_image/image-original.png +0 -0
  133. data/file/yeti_skin_image/image-small.png +0 -0
  134. data/lib/card/lazy_tab.rb +0 -37
  135. data/lib/card/tab.rb +0 -83
  136. data/lib/javascript/smartmenu.js +0 -94
  137. data/lib/stylesheets/smartmenu.css +0 -433
  138. data/set/all/bootstrap/tabs/tab_panel.haml +0 -7
  139. data/set/all/bootstrap/tabs.rb +0 -40
  140. data/set/self/font_awesome.rb +0 -2
  141. data/set/self/material_icons.rb +0 -2
  142. data/set/self/script_load_select2.rb +0 -2
  143. data/set/self/smartmenu_css.rb +0 -5
  144. data/set/self/smartmenu_js.rb +0 -5
  145. data/set/self/style_bootstrap_cards.rb +0 -1
  146. data/set/self/style_bootstrap_colorpicker.rb +0 -6
  147. data/set/self/style_select2.rb +0 -10
  148. data/set/self/style_select2_bootstrap.rb +0 -1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.3
4
+ version: 0.14.2
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-09-24 00:00:00.000000000 Z
13
+ date: 2022-01-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: card
@@ -18,84 +18,70 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.103.3
21
+ version: 1.104.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.3
29
- - !ruby/object:Gem::Dependency
30
- name: card-mod-assets
31
- requirement: !ruby/object:Gem::Requirement
32
- requirements:
33
- - - '='
34
- - !ruby/object:Gem::Version
35
- version: 0.13.3
36
- type: :runtime
37
- prerelease: false
38
- version_requirements: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - '='
41
- - !ruby/object:Gem::Version
42
- version: 0.13.3
28
+ version: 1.104.2
43
29
  - !ruby/object:Gem::Dependency
44
30
  name: card-mod-edit
45
31
  requirement: !ruby/object:Gem::Requirement
46
32
  requirements:
47
33
  - - '='
48
34
  - !ruby/object:Gem::Version
49
- version: 0.13.3
35
+ version: 0.14.2
50
36
  type: :runtime
51
37
  prerelease: false
52
38
  version_requirements: !ruby/object:Gem::Requirement
53
39
  requirements:
54
40
  - - '='
55
41
  - !ruby/object:Gem::Version
56
- version: 0.13.3
42
+ version: 0.14.2
57
43
  - !ruby/object:Gem::Dependency
58
44
  name: card-mod-bar_and_box
59
45
  requirement: !ruby/object:Gem::Requirement
60
46
  requirements:
61
47
  - - '='
62
48
  - !ruby/object:Gem::Version
63
- version: 0.13.3
49
+ version: 0.14.2
64
50
  type: :runtime
65
51
  prerelease: false
66
52
  version_requirements: !ruby/object:Gem::Requirement
67
53
  requirements:
68
54
  - - '='
69
55
  - !ruby/object:Gem::Version
70
- version: 0.13.3
56
+ version: 0.14.2
71
57
  - !ruby/object:Gem::Dependency
72
58
  name: card-mod-style
73
59
  requirement: !ruby/object:Gem::Requirement
74
60
  requirements:
75
61
  - - '='
76
62
  - !ruby/object:Gem::Version
77
- version: 0.13.3
63
+ version: 0.14.2
78
64
  type: :runtime
79
65
  prerelease: false
80
66
  version_requirements: !ruby/object:Gem::Requirement
81
67
  requirements:
82
68
  - - '='
83
69
  - !ruby/object:Gem::Version
84
- version: 0.13.3
70
+ version: 0.14.2
85
71
  - !ruby/object:Gem::Dependency
86
72
  name: card-mod-script
87
73
  requirement: !ruby/object:Gem::Requirement
88
74
  requirements:
89
75
  - - '='
90
76
  - !ruby/object:Gem::Version
91
- version: 0.13.3
77
+ version: 0.14.2
92
78
  type: :runtime
93
79
  prerelease: false
94
80
  version_requirements: !ruby/object:Gem::Requirement
95
81
  requirements:
96
82
  - - '='
97
83
  - !ruby/object:Gem::Version
98
- version: 0.13.3
84
+ version: 0.14.2
99
85
  description: ''
100
86
  email:
101
87
  - info@decko.org
@@ -107,8 +93,12 @@ files:
107
93
  - assets/script/manifest.yml
108
94
  - assets/script/script_colorpicker.js.coffee
109
95
  - assets/script/script_load_select2.js.coffee
110
- - assets/script/script_pointer_config.js.coffee
111
- - assets/script/script_pointer_list_editor.js.coffee
96
+ - assets/style/bootstrap_colorpicker.scss
97
+ - assets/style/font_awesome.css
98
+ - assets/style/manifest.yml
99
+ - assets/style/material_icons.css
100
+ - assets/style/select2_bootstrap.scss
101
+ - assets/style/style_bootstrap_cards.scss
112
102
  - db/migrate_core_cards/20170719163733_update_bootswatch_themes_to_4_beta.rb
113
103
  - db/migrate_core_cards/20170726111053_add_bootstrap_mixins.rb
114
104
  - db/migrate_core_cards/20170726145012_select2.rb
@@ -133,123 +123,6 @@ files:
133
123
  - db/migrate_core_cards/data/custom_theme/more.scss
134
124
  - db/migrate_core_cards/data/custom_theme/spacing.scss
135
125
  - db/migrate_core_cards/lib/skin.rb
136
- - file/cerulean_skin_image/image-icon.png
137
- - file/cerulean_skin_image/image-large.png
138
- - file/cerulean_skin_image/image-medium.png
139
- - file/cerulean_skin_image/image-original.png
140
- - file/cerulean_skin_image/image-small.png
141
- - file/cosmo_skin_image/image-icon.png
142
- - file/cosmo_skin_image/image-large.png
143
- - file/cosmo_skin_image/image-medium.png
144
- - file/cosmo_skin_image/image-original.png
145
- - file/cosmo_skin_image/image-small.png
146
- - file/cyborg_skin_image/image-icon.png
147
- - file/cyborg_skin_image/image-large.png
148
- - file/cyborg_skin_image/image-medium.png
149
- - file/cyborg_skin_image/image-original.png
150
- - file/cyborg_skin_image/image-small.png
151
- - file/darkly_skin_image/image-icon.png
152
- - file/darkly_skin_image/image-large.png
153
- - file/darkly_skin_image/image-medium.png
154
- - file/darkly_skin_image/image-original.png
155
- - file/darkly_skin_image/image-small.png
156
- - file/flatly_skin_image/image-icon.png
157
- - file/flatly_skin_image/image-large.png
158
- - file/flatly_skin_image/image-medium.png
159
- - file/flatly_skin_image/image-original.png
160
- - file/flatly_skin_image/image-small.png
161
- - file/journal_skin_image/image-icon.png
162
- - file/journal_skin_image/image-large.png
163
- - file/journal_skin_image/image-medium.png
164
- - file/journal_skin_image/image-original.png
165
- - file/journal_skin_image/image-small.png
166
- - file/litera_skin_image/image-icon.png
167
- - file/litera_skin_image/image-large.png
168
- - file/litera_skin_image/image-medium.png
169
- - file/litera_skin_image/image-original.png
170
- - file/litera_skin_image/image-small.png
171
- - file/lumen_skin_image/image-icon.png
172
- - file/lumen_skin_image/image-large.png
173
- - file/lumen_skin_image/image-medium.png
174
- - file/lumen_skin_image/image-original.png
175
- - file/lumen_skin_image/image-small.png
176
- - file/lux_skin_image/image-icon.png
177
- - file/lux_skin_image/image-large.png
178
- - file/lux_skin_image/image-medium.png
179
- - file/lux_skin_image/image-original.png
180
- - file/lux_skin_image/image-small.png
181
- - file/materia_skin_image/image-icon.png
182
- - file/materia_skin_image/image-large.png
183
- - file/materia_skin_image/image-medium.png
184
- - file/materia_skin_image/image-original.png
185
- - file/materia_skin_image/image-small.png
186
- - file/minty_skin_image/image-icon.png
187
- - file/minty_skin_image/image-large.png
188
- - file/minty_skin_image/image-medium.png
189
- - file/minty_skin_image/image-original.png
190
- - file/minty_skin_image/image-small.png
191
- - file/mod_bootstrap_script_bootstrap_machine_output/file.js
192
- - file/mod_bootstrap_script_pointer_machine_output/file.js
193
- - file/paper_skin_image/image-icon.png
194
- - file/paper_skin_image/image-large.png
195
- - file/paper_skin_image/image-medium.png
196
- - file/paper_skin_image/image-original.png
197
- - file/paper_skin_image/image-small.png
198
- - file/pulse_skin_image/image-icon.png
199
- - file/pulse_skin_image/image-large.png
200
- - file/pulse_skin_image/image-medium.png
201
- - file/pulse_skin_image/image-original.png
202
- - file/pulse_skin_image/image-small.png
203
- - file/readable_skin_image/image-icon.png
204
- - file/readable_skin_image/image-large.png
205
- - file/readable_skin_image/image-medium.png
206
- - file/readable_skin_image/image-original.png
207
- - file/readable_skin_image/image-small.png
208
- - file/sandstone_skin_image/image-icon.png
209
- - file/sandstone_skin_image/image-large.png
210
- - file/sandstone_skin_image/image-medium.png
211
- - file/sandstone_skin_image/image-original.png
212
- - file/sandstone_skin_image/image-small.png
213
- - file/simplex_skin_image/image-icon.png
214
- - file/simplex_skin_image/image-large.png
215
- - file/simplex_skin_image/image-medium.png
216
- - file/simplex_skin_image/image-original.png
217
- - file/simplex_skin_image/image-small.png
218
- - file/sketchy_skin_image/image-icon.png
219
- - file/sketchy_skin_image/image-large.png
220
- - file/sketchy_skin_image/image-medium.png
221
- - file/sketchy_skin_image/image-original.png
222
- - file/sketchy_skin_image/image-small.png
223
- - file/slate_skin_image/image-icon.png
224
- - file/slate_skin_image/image-large.png
225
- - file/slate_skin_image/image-medium.png
226
- - file/slate_skin_image/image-original.png
227
- - file/slate_skin_image/image-small.png
228
- - file/solar_skin_image/image-icon.png
229
- - file/solar_skin_image/image-large.png
230
- - file/solar_skin_image/image-medium.png
231
- - file/solar_skin_image/image-original.png
232
- - file/solar_skin_image/image-small.png
233
- - file/spacelab_skin_image/image-icon.png
234
- - file/spacelab_skin_image/image-large.png
235
- - file/spacelab_skin_image/image-medium.png
236
- - file/spacelab_skin_image/image-original.png
237
- - file/spacelab_skin_image/image-small.png
238
- - file/superhero_skin_image/image-icon.png
239
- - file/superhero_skin_image/image-large.png
240
- - file/superhero_skin_image/image-medium.png
241
- - file/superhero_skin_image/image-original.png
242
- - file/superhero_skin_image/image-small.png
243
- - file/united_skin_image/image-icon.png
244
- - file/united_skin_image/image-large.png
245
- - file/united_skin_image/image-medium.png
246
- - file/united_skin_image/image-original.png
247
- - file/united_skin_image/image-small.png
248
- - file/yeti_skin_image/image-icon.png
249
- - file/yeti_skin_image/image-large.png
250
- - file/yeti_skin_image/image-medium.png
251
- - file/yeti_skin_image/image-original.png
252
- - file/yeti_skin_image/image-small.png
253
126
  - lib/card/bootstrap.rb
254
127
  - lib/card/bootstrap/basic_tags.rb
255
128
  - lib/card/bootstrap/component.rb
@@ -265,14 +138,7 @@ files:
265
138
  - lib/card/bootstrap/old_component.rb
266
139
  - lib/card/bootstrap/tag_method.rb
267
140
  - lib/card/bootstrapper.rb
268
- - lib/card/lazy_tab.rb
269
- - lib/card/tab.rb
270
- - lib/javascript/smartmenu.js
271
- - lib/stylesheets/font_awesome.css
272
- - lib/stylesheets/material_icons.css
273
- - lib/stylesheets/smartmenu.css
274
- - lib/stylesheets/style_bootstrap_cards.scss
275
- - lib/stylesheets/style_select2_bootstrap.scss
141
+ - locales/de.yml
276
142
  - locales/en.yml
277
143
  - public/fonts/MaterialIcons-Regular.eot
278
144
  - public/fonts/MaterialIcons-Regular.ijmap
@@ -316,21 +182,10 @@ files:
316
182
  - set/all/bootstrap/navbar.rb
317
183
  - set/all/bootstrap/navbar/navbar_responsive.haml
318
184
  - set/all/bootstrap/table.rb
319
- - set/all/bootstrap/tabs.rb
320
- - set/all/bootstrap/tabs/tab_panel.haml
321
185
  - set/all/bootstrap/wrapper.rb
322
186
  - set/all/rich_bootstrap.rb
323
187
  - set/self/bootstrap_core.rb
324
188
  - set/self/bootstrap_functions.rb
325
- - set/self/font_awesome.rb
326
- - set/self/material_icons.rb
327
- - set/self/script_load_select2.rb
328
- - set/self/smartmenu_css.rb
329
- - set/self/smartmenu_js.rb
330
- - set/self/style_bootstrap_cards.rb
331
- - set/self/style_bootstrap_colorpicker.rb
332
- - set/self/style_select2.rb
333
- - set/self/style_select2_bootstrap.rb
334
189
  - set/type/bootswatch_skin.rb
335
190
  - set/type/customized_bootswatch_skin.rb
336
191
  - set/type/customized_bootswatch_skin/core.haml
@@ -3015,7 +2870,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3015
2870
  - !ruby/object:Gem::Version
3016
2871
  version: '0'
3017
2872
  requirements: []
3018
- rubygems_version: 3.1.6
2873
+ rubygems_version: 3.2.15
3019
2874
  signing_key:
3020
2875
  specification_version: 4
3021
2876
  summary: Bootstrap
@@ -1,80 +0,0 @@
1
- $.extend decko.editorContentFunctionMap,
2
- 'select.pointer-select': ->
3
- pointerContent @val()
4
- 'select.pointer-multiselect': ->
5
- pointerContent @val()
6
- '.pointer-radio-list': ->
7
- pointerContent @find('input:checked').val()
8
- '.pointer-list-ul': ->
9
- pointerContent @find('input').map( -> $(this).val() )
10
- '.pointer-link-list-ul': ->
11
- decko.linkListContent @find('.input-group')
12
- '._nest-list-ul': ->
13
- decko.nestListContent @find('.input-group')
14
- '.pointer-checkbox-list': ->
15
- pointerContent @find('input:checked').map( -> $(this).val() )
16
- '.pointer-select-list': ->
17
- pointerContent @find('.pointer-select select').map( -> $(this).val() )
18
- '._pointer-filtered-list': ->
19
- pointerContent @find('._filtered-list-item').map( -> $(this).data('cardName') )
20
- '._pointer-list': ->
21
- pointerContent @find('._pointer-item').map( -> $(this).val() )
22
- # can't find evidence that the following is in use: #efm
23
- # '.pointer-mixed': ->
24
- # element = '.pointer-checkbox-sublist input:checked,\
25
- # .pointer-sublist-ul input'
26
- # pointerContent @find(element).map( -> $(this).val() )
27
- # must happen after pointer-list-ul, I think
28
- '.perm-editor': -> permissionsContent this
29
-
30
- decko.editorInitFunctionMap['.pointer-list-editor'] = ->
31
- @sortable({handle: '.handle', cancel: ''})
32
- decko.initPointerList @find('input')
33
-
34
- decko.editorInitFunctionMap['._pointer-filtered-list'] = ->
35
- @sortable({handle: '._handle', cancel: ''})
36
-
37
- $.extend decko,
38
- initPointerList: (input) ->
39
- decko.initAutoCardPlete input
40
-
41
- initAutoCardPlete: (input) ->
42
- optionsCard = input.data 'options-card'
43
- return unless !!optionsCard
44
- path = optionsCard + '.json?view=name_match'
45
- input.autocomplete { source: decko.slotPath(path) }
46
-
47
- pointerContent: (vals) ->
48
- list = $.map $.makeArray(vals), (v) -> if v then '[[' + v + ']]'
49
- $.makeArray(list).join "\n"
50
-
51
- linkListContent: (input_groups) ->
52
- vals = input_groups.map( ->
53
- v = $(this).find('input._reference').val()
54
- title = $(this).find('input._title').val()
55
- v += "|#{title}" if title.length > 0
56
- v
57
- )
58
- list = $.map $.makeArray(vals), (v) -> if v then '[[' + v + ']]'
59
- $.makeArray(list).join "\n"
60
-
61
- nestListContent: (input_groups) ->
62
- vals = input_groups.map( ->
63
- v = $(this).find('input._reference').val()
64
- options = $(this).find('input._nest-options').val()
65
- v += "|#{options}" if options.length > 0
66
- v
67
- )
68
- list = $.map $.makeArray(vals), (v) -> if v then '{{' + v + '}}'
69
- $.makeArray(list).join "\n"
70
-
71
-
72
- pointerContent = (vals) ->
73
- decko.pointerContent vals
74
- # deprecated. backwards compatibility
75
-
76
- permissionsContent = (ed) ->
77
- return '_left' if ed.find('#inherit').is(':checked')
78
- groups = ed.find('.perm-group input:checked').map( -> $(this).val() )
79
- indivs = ed.find('.perm-indiv input' ).map( -> $(this).val() )
80
- pointerContent $.makeArray(groups).concat($.makeArray(indivs))
@@ -1,67 +0,0 @@
1
- $(window).ready ->
2
- # add pointer item when clicking on "add another" button
3
- $('body').on 'click', '._pointer-item-add', (event)->
4
- decko.addPointerItem this
5
- event.preventDefault() # Prevent link from following its href
6
-
7
- # add pointer item when you hit enter in an item
8
- $('body').on 'keydown', '.pointer-item-text', (event)->
9
- if event.key == 'Enter'
10
- decko.addPointerItem this
11
- event.preventDefault() # was triggering extra item in unrelated pointer
12
-
13
- # enable/disable add
14
- $('body').on 'keyup', '.pointer-item-text', (_event)->
15
- decko.updateAddItemButton this
16
-
17
- $('body').on 'click', '.pointer-item-delete', ->
18
- item = $(this).closest 'li'
19
- list = item.closest('ul')
20
- if list.find('.pointer-li').length > 1
21
- item.remove()
22
- else
23
- item.find('input').val ''
24
- decko.updateAddItemButton(list)
25
-
26
- decko.slotReady (slot) ->
27
- slot.find('.pointer-list-editor').each ->
28
- decko.updateAddItemButton this
29
-
30
- $.extend decko,
31
- addPointerItem: (el) ->
32
- slot = $(el).slot()
33
- slot.trigger "slotDestroy"
34
- # why is this necessary?
35
- # this can have a lot of side effects in a multi-card form.
36
-
37
- newInput = decko.nextPointerInput decko.lastPointerItem(el)
38
- newInput.val ''
39
-
40
- slot.trigger "slotReady"
41
- decko.initializeEditors slot
42
- # should be (but is not) handled by slotReady
43
- # without this, "add another" was breaking tinymce editors in same slot
44
-
45
- newInput.first().focus()
46
- decko.updateAddItemButton el
47
- decko.initPointerList newInput
48
-
49
- nextPointerInput: (lastItem)->
50
- lastInputs = lastItem.find 'input'
51
- all_empty = true
52
- for input in lastInputs
53
- all_empty = all_empty and $(input).val() == ''
54
- return lastInputs if all_empty
55
-
56
- newItem = lastItem.clone()
57
- lastItem.after newItem
58
- newItem.attr("data-index", parseInt(lastItem.attr("data-index") + 1))
59
- newItem.find 'input'
60
-
61
- lastPointerItem: (el)->
62
- $(el).closest('.content-editor').find '.pointer-li:last'
63
-
64
- updateAddItemButton: (el)->
65
- button = $(el).closest('.content-editor').find '._pointer-item-add'
66
- disabled = decko.lastPointerItem(el).find('input').val() == ''
67
- button.prop 'disabled', disabled
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file