para 0.11.4 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/para/admin/main.scss +31 -0
- data/app/assets/stylesheets/para/admin/src/_affix.scss +7 -0
- data/app/assets/stylesheets/para/admin/src/_alert.scss +35 -0
- data/app/assets/stylesheets/para/admin/src/_base.scss +63 -0
- data/app/assets/stylesheets/para/admin/src/_bootstrap-variables.scss +766 -379
- data/app/assets/stylesheets/para/admin/src/_breadcrumb.scss +37 -0
- data/app/assets/stylesheets/para/admin/src/_buttons.scss +128 -0
- data/app/assets/stylesheets/para/admin/src/_checkable.scss +106 -0
- data/app/assets/stylesheets/para/admin/src/_common.scss +250 -0
- data/app/assets/stylesheets/para/admin/src/_dropdown.scss +52 -0
- data/app/assets/stylesheets/para/admin/src/_form.scss +359 -0
- data/app/assets/stylesheets/para/admin/src/_list.scss +96 -0
- data/app/assets/stylesheets/para/admin/src/_mixins.scss +109 -0
- data/app/assets/stylesheets/para/admin/src/_multi-select.scss +110 -0
- data/app/assets/stylesheets/para/admin/src/_navigation.scss +210 -0
- data/app/assets/stylesheets/para/admin/src/_navtabs.scss +68 -0
- data/app/assets/stylesheets/para/admin/src/_nested-many.scss +87 -0
- data/app/assets/stylesheets/para/admin/src/_nested_one.scss +26 -0
- data/app/assets/stylesheets/para/admin/src/_orderable.scss +48 -0
- data/app/assets/stylesheets/para/admin/src/_page-loading.scss +40 -0
- data/app/assets/stylesheets/para/admin/src/_pagination.scss +39 -0
- data/app/assets/stylesheets/para/admin/src/_panel.scss +61 -0
- data/app/assets/stylesheets/para/admin/src/_responsive.scss +133 -0
- data/app/assets/stylesheets/para/admin/src/_sorting.scss +43 -0
- data/app/assets/stylesheets/para/admin/src/_statcard.scss +46 -0
- data/app/assets/stylesheets/para/admin/src/_table.scss +36 -0
- data/app/assets/stylesheets/para/admin/src/_tree.scss +60 -0
- data/app/assets/stylesheets/para/admin/src/{_variables.sass → _variables.scss} +7 -7
- data/app/assets/stylesheets/para/admin/src/{_well.sass → _well.scss} +5 -4
- data/app/assets/stylesheets/para/admin.scss +15 -0
- data/app/assets/stylesheets/para/index.scss +1 -0
- data/app/assets/stylesheets/para/lib/datetimepicker.scss +15 -0
- data/app/assets/stylesheets/para/lib/fuelux.scss +46 -0
- data/app/assets/stylesheets/para/lib/jasny-bootstrap.scss +100 -0
- data/app/assets/stylesheets/para/lib/selectize.scss +129 -0
- data/app/assets/stylesheets/para/lib/slider.scss +14 -0
- data/app/controllers/para/admin/crud_resources_controller.rb +16 -9
- data/app/controllers/para/admin/imports_controller.rb +9 -9
- data/app/controllers/para/admin/jobs_controller.rb +7 -1
- data/app/controllers/para/admin/resources_controller.rb +17 -18
- data/app/controllers/para/admin/settings_component_controller.rb +2 -2
- data/app/helpers/para/admin/base_helper.rb +36 -25
- data/app/helpers/para/admin/page_helper.rb +8 -9
- data/app/helpers/para/flash_helper.rb +7 -28
- data/app/helpers/para/model_helper.rb +5 -8
- data/app/helpers/para/tree_helper.rb +4 -4
- data/app/javascripts/para/admin/async-progress.js +58 -0
- data/app/javascripts/para/admin/filters-form.js +12 -0
- data/app/javascripts/para/admin/job-tracker.js +33 -0
- data/app/javascripts/para/admin/table.js +58 -0
- data/app/javascripts/para/admin/tabs.js +110 -0
- data/app/javascripts/para/admin/theme_actions.js +39 -0
- data/app/javascripts/para/admin/tree.js +124 -0
- data/app/javascripts/para/application.js +2 -0
- data/app/javascripts/para/controllers/application.js +17 -0
- data/app/javascripts/para/controllers/index.js +10 -0
- data/app/javascripts/para/controllers/para_admin_flash_message_controller.js +48 -0
- data/app/javascripts/para/controllers/para_admin_modal_controller.js +43 -0
- data/app/javascripts/para/controllers/selectize_field_controller.js +142 -0
- data/app/javascripts/para/index.js +31 -0
- data/app/javascripts/para/inputs/material-input.js +7 -0
- data/app/javascripts/para/inputs/multi-select-input.js +343 -0
- data/app/javascripts/para/inputs/nested_many.js +151 -0
- data/app/javascripts/para/lib/fetch.js +41 -0
- data/app/javascripts/para/lib/page-loading.js +42 -0
- data/app/javascripts/para/simple_form_extension/colorpicker.js +30 -0
- data/app/javascripts/para/simple_form_extension/datetimepicker.js +115 -0
- data/app/javascripts/para/simple_form_extension/fileinput.js +57 -0
- data/app/javascripts/para/simple_form_extension/index.js +12 -0
- data/app/javascripts/para/simple_form_extension/selectize.js +160 -0
- data/app/javascripts/para/simple_form_extension/simple_form_extension_initialization.js +62 -0
- data/app/javascripts/para/simple_form_extension/slider.js +43 -0
- data/app/javascripts/para/simple_form_extension/spinbox.js +35 -0
- data/app/javascripts/para/vendor/bootstrap-colorpicker.js +1025 -0
- data/app/javascripts/para/vendor/bootstrap-slider.js +1610 -0
- data/app/javascripts/para/vendor/cocoon.js +150 -0
- data/app/javascripts/para/vendor/jquery.datetimepicker.js +2156 -0
- data/app/javascripts/para/vendor/jquery.js +3 -0
- data/app/javascripts/para/vendor/spinbox.js +438 -0
- data/app/javascripts/para/vendor/vertebra.js +224 -0
- data/app/views/admin/para/exporter/bases/_completed.html.haml +1 -1
- data/app/views/layouts/para/admin.html.haml +4 -2
- data/app/views/para/admin/imports/new.html.haml +12 -11
- data/app/views/para/admin/jobs/_completed.html.haml +1 -1
- data/app/views/para/admin/jobs/_failed.html.haml +1 -1
- data/app/views/para/admin/jobs/_job.html.haml +11 -0
- data/app/views/para/admin/jobs/show.html.haml +1 -10
- data/app/views/para/admin/resources/_add_button.html.haml +1 -1
- data/app/views/para/admin/resources/_exports_menu.html.haml +2 -2
- data/app/views/para/admin/resources/_filters.html.haml +1 -1
- data/app/views/para/admin/resources/_imports_menu.html.haml +2 -2
- data/app/views/para/admin/resources/_list.html.haml +27 -26
- data/app/views/para/admin/resources/_navigation.html.haml +10 -11
- data/app/views/para/admin/resources/_subclassable_add_button.html.haml +1 -1
- data/app/views/para/admin/shared/_flash.html.haml +18 -0
- data/app/views/para/admin/shared/_header.html.haml +1 -1
- data/app/views/para/form/_tabs.html.haml +1 -1
- data/app/views/para/inputs/_nested_many.html.haml +3 -3
- data/app/views/para/inputs/nested_many/_add.html.haml +1 -1
- data/app/views/para/inputs/nested_many/_add_with_subclasses.html.haml +2 -2
- data/app/views/para/inputs/nested_many/_container.html.haml +1 -1
- data/config/locales/fr.yml +1 -0
- data/lib/generators/para/install/install_generator.rb +10 -14
- data/lib/para/attribute_field/base.rb +3 -0
- data/lib/para/attribute_field/wysiwyg_editor.rb +15 -0
- data/lib/para/attribute_field.rb +1 -1
- data/lib/para/components_configuration.rb +1 -1
- data/lib/para/engine.rb +20 -22
- data/lib/para/ext/turbo_stream.rb +13 -0
- data/lib/para/ext.rb +1 -1
- data/lib/para/form_builder/containers.rb +33 -22
- data/lib/para/form_builder/nested_form.rb +6 -5
- data/lib/para/inputs/nested_many_input.rb +5 -0
- data/lib/para/markup/modal.rb +30 -15
- data/lib/para/markup/resources_buttons.rb +15 -11
- data/lib/para/model_field_parsers/wysiwyg_editor.rb +19 -0
- data/lib/para/model_field_parsers.rb +1 -1
- data/lib/para/version.rb +1 -1
- data/lib/para.rb +2 -8
- data/lib/simple_form_extension/components/icons.rb +13 -0
- data/lib/simple_form_extension/components/popovers.rb +46 -0
- data/lib/simple_form_extension/components.rb +8 -0
- data/lib/simple_form_extension/ext/form_builder.rb +20 -0
- data/lib/simple_form_extension/file_concern.rb +74 -0
- data/lib/simple_form_extension/inputs/boolean_input.rb +16 -0
- data/lib/simple_form_extension/inputs/collection_check_boxes_input.rb +15 -0
- data/lib/simple_form_extension/inputs/collection_radio_buttons_input.rb +15 -0
- data/lib/simple_form_extension/inputs/color_input.rb +37 -0
- data/lib/simple_form_extension/inputs/date_time_input.rb +48 -0
- data/lib/simple_form_extension/inputs/file_input.rb +41 -0
- data/lib/simple_form_extension/inputs/image_input.rb +110 -0
- data/lib/simple_form_extension/inputs/numeric_input.rb +27 -0
- data/lib/simple_form_extension/inputs/selectize_input.rb +210 -0
- data/lib/simple_form_extension/inputs/slider_input.rb +30 -0
- data/lib/simple_form_extension/inputs.rb +16 -0
- data/lib/simple_form_extension/railtie.rb +21 -0
- data/lib/simple_form_extension/resource_name_helper.rb +9 -0
- data/lib/simple_form_extension/translations.rb +7 -0
- data/lib/simple_form_extension/version.rb +3 -0
- data/lib/simple_form_extension.rb +30 -0
- data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/alpha.png +0 -0
- data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/hue.png +0 -0
- data/vendor/assets/images/simple_form_extension/bootstrap-colorpicker/saturation.png +0 -0
- data/vendor/assets/stylesheets/bootstrap-colorpicker.scss +227 -0
- data/vendor/assets/stylesheets/bootstrap-slider.scss +246 -0
- data/vendor/assets/stylesheets/bootstrap.scss +6032 -0
- data/vendor/assets/stylesheets/jquery.datetimepicker.scss +568 -0
- metadata +120 -188
- data/app/assets/javascripts/admin/app.coffee +0 -1
- data/app/assets/javascripts/para/admin/async-progress.coffee +0 -29
- data/app/assets/javascripts/para/admin/filters-form.coffee +0 -11
- data/app/assets/javascripts/para/admin/job-tracker.coffee +0 -39
- data/app/assets/javascripts/para/admin/table.coffee +0 -44
- data/app/assets/javascripts/para/admin/tabs.coffee +0 -63
- data/app/assets/javascripts/para/admin/theme_actions.coffee +0 -25
- data/app/assets/javascripts/para/admin/tree.coffee +0 -105
- data/app/assets/javascripts/para/admin.coffee +0 -22
- data/app/assets/javascripts/para/application.js +0 -13
- data/app/assets/javascripts/para/inputs/material-input.coffee +0 -4
- data/app/assets/javascripts/para/inputs/multi-select-input.coffee +0 -174
- data/app/assets/javascripts/para/inputs/nested_many.coffee +0 -108
- data/app/assets/javascripts/para/lib/ajax.coffee +0 -11
- data/app/assets/javascripts/para/lib/remote-file-forms.coffee +0 -59
- data/app/assets/javascripts/para/lib/turbolinks-forms.coffee +0 -23
- data/app/assets/javascripts/para/lib/turbolinks-loading.coffee +0 -25
- data/app/assets/javascripts/para/lib/turbolinks-reloader.coffee +0 -19
- data/app/assets/stylesheets/para/admin/main.sass +0 -33
- data/app/assets/stylesheets/para/admin/src/_affix.sass +0 -4
- data/app/assets/stylesheets/para/admin/src/_alert.sass +0 -17
- data/app/assets/stylesheets/para/admin/src/_base.sass +0 -54
- data/app/assets/stylesheets/para/admin/src/_breadcrumb.sass +0 -32
- data/app/assets/stylesheets/para/admin/src/_buttons.sass +0 -107
- data/app/assets/stylesheets/para/admin/src/_checkable.sass +0 -94
- data/app/assets/stylesheets/para/admin/src/_common.sass +0 -202
- data/app/assets/stylesheets/para/admin/src/_dropdown.sass +0 -40
- data/app/assets/stylesheets/para/admin/src/_form.sass +0 -299
- data/app/assets/stylesheets/para/admin/src/_list.sass +0 -89
- data/app/assets/stylesheets/para/admin/src/_mixins.sass +0 -113
- data/app/assets/stylesheets/para/admin/src/_multi-select.sass +0 -91
- data/app/assets/stylesheets/para/admin/src/_navigation.sass +0 -171
- data/app/assets/stylesheets/para/admin/src/_navtabs.sass +0 -58
- data/app/assets/stylesheets/para/admin/src/_nested-many.sass +0 -75
- data/app/assets/stylesheets/para/admin/src/_nested_one.sass +0 -22
- data/app/assets/stylesheets/para/admin/src/_orderable.sass +0 -44
- data/app/assets/stylesheets/para/admin/src/_page-loading.sass +0 -39
- data/app/assets/stylesheets/para/admin/src/_pagination.sass +0 -34
- data/app/assets/stylesheets/para/admin/src/_panel.sass +0 -55
- data/app/assets/stylesheets/para/admin/src/_responsive.sass +0 -117
- data/app/assets/stylesheets/para/admin/src/_sorting.sass +0 -36
- data/app/assets/stylesheets/para/admin/src/_statcard.sass +0 -41
- data/app/assets/stylesheets/para/admin/src/_table.sass +0 -33
- data/app/assets/stylesheets/para/admin/src/_tree.sass +0 -52
- data/app/assets/stylesheets/para/admin.sass +0 -12
- data/app/assets/stylesheets/para/lib/compass/_support.scss +0 -447
- data/app/assets/stylesheets/para/lib/compass/css3/_box-shadow.scss +0 -88
- data/app/assets/stylesheets/para/lib/compass/css3/_images.scss +0 -152
- data/app/assets/stylesheets/para/lib/compass/css3/_inline-block.scss +0 -31
- data/app/assets/stylesheets/para/lib/compass/css3/_text-shadow.scss +0 -82
- data/app/assets/stylesheets/para/lib/compass/css3/_transform.scss +0 -590
- data/app/assets/stylesheets/para/lib/compass/css3/_transition.scss +0 -190
- data/app/assets/stylesheets/para/lib/compass/css3/_user-interface.scss +0 -71
- data/app/assets/stylesheets/para/lib/compass/utilities/general/_hacks.scss +0 -65
- data/app/assets/stylesheets/para/lib/datetimepicker.sass +0 -15
- data/app/assets/stylesheets/para/lib/fuelux.sass +0 -40
- data/app/assets/stylesheets/para/lib/jasny-bootstrap.sass +0 -97
- data/app/assets/stylesheets/para/lib/redactor.sass +0 -86
- data/app/assets/stylesheets/para/lib/selectize.sass +0 -111
- data/app/assets/stylesheets/para/lib/slider.sass +0 -12
- data/app/assets/stylesheets/para/plugins-includes.sass.erb +0 -1
- data/lib/para/attribute_field/redactor.rb +0 -22
- data/lib/para/ext/request_iframe_xhr.rb +0 -17
- data/lib/para/iframe_transport/middleware.rb +0 -58
- data/lib/para/iframe_transport.rb +0 -7
- data/lib/para/model_field_parsers/redactor.rb +0 -19
- data/vendor/assets/javascripts/jquery.iframe-transport.js +0 -260
- data/vendor/assets/javascripts/jquery.remote-modal-form.coffee +0 -145
- /data/app/assets/stylesheets/admin/{app.sass → app.scss} +0 -0
- /data/app/{assets/javascripts → javascripts}/para/plugins-includes.js.erb +0 -0
- /data/{vendor/assets/javascripts → app/javascripts/para/vendor}/Sortable.js +0 -0
- /data/{vendor/assets/javascripts → app/javascripts/para/vendor}/jasny-bootstrap.js +0 -0
- /data/{vendor/assets/javascripts → app/javascripts/para/vendor}/jquery.scrollto.js +0 -0
- /data/{vendor/assets/javascripts → app/javascripts/para/vendor}/jquery.sortable.js +0 -0
- /data/vendor/assets/stylesheets/{animate.css → animate.scss} +0 -0
- /data/vendor/assets/stylesheets/{hint.css → hint.scss} +0 -0
- /data/vendor/assets/stylesheets/{jasny-bootstrap.css → jasny-bootstrap.scss} +0 -0
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: para
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Valentin Ballestrino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: active_decorator
|
@@ -128,20 +128,6 @@ dependencies:
|
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '5.1'
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: jquery-rails
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - ">="
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '0'
|
138
|
-
type: :runtime
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0'
|
145
131
|
- !ruby/object:Gem::Dependency
|
146
132
|
name: kaminari
|
147
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -280,20 +266,6 @@ dependencies:
|
|
280
266
|
- - ">="
|
281
267
|
- !ruby/object:Gem::Version
|
282
268
|
version: '3.1'
|
283
|
-
- !ruby/object:Gem::Dependency
|
284
|
-
name: simple_form_extension
|
285
|
-
requirement: !ruby/object:Gem::Requirement
|
286
|
-
requirements:
|
287
|
-
- - ">="
|
288
|
-
- !ruby/object:Gem::Version
|
289
|
-
version: 1.4.5
|
290
|
-
type: :runtime
|
291
|
-
prerelease: false
|
292
|
-
version_requirements: !ruby/object:Gem::Requirement
|
293
|
-
requirements:
|
294
|
-
- - ">="
|
295
|
-
- !ruby/object:Gem::Version
|
296
|
-
version: 1.4.5
|
297
269
|
- !ruby/object:Gem::Dependency
|
298
270
|
name: spreadsheet
|
299
271
|
requirement: !ruby/object:Gem::Requirement
|
@@ -309,7 +281,7 @@ dependencies:
|
|
309
281
|
- !ruby/object:Gem::Version
|
310
282
|
version: '0'
|
311
283
|
- !ruby/object:Gem::Dependency
|
312
|
-
name:
|
284
|
+
name: stimulus-rails
|
313
285
|
requirement: !ruby/object:Gem::Requirement
|
314
286
|
requirements:
|
315
287
|
- - ">="
|
@@ -323,7 +295,7 @@ dependencies:
|
|
323
295
|
- !ruby/object:Gem::Version
|
324
296
|
version: '0'
|
325
297
|
- !ruby/object:Gem::Dependency
|
326
|
-
name:
|
298
|
+
name: truncate_html
|
327
299
|
requirement: !ruby/object:Gem::Requirement
|
328
300
|
requirements:
|
329
301
|
- - ">="
|
@@ -337,25 +309,19 @@ dependencies:
|
|
337
309
|
- !ruby/object:Gem::Version
|
338
310
|
version: '0'
|
339
311
|
- !ruby/object:Gem::Dependency
|
340
|
-
name:
|
312
|
+
name: turbo-rails
|
341
313
|
requirement: !ruby/object:Gem::Requirement
|
342
314
|
requirements:
|
343
315
|
- - ">="
|
344
316
|
- !ruby/object:Gem::Version
|
345
|
-
version: '
|
346
|
-
- - "<"
|
347
|
-
- !ruby/object:Gem::Version
|
348
|
-
version: '3.5'
|
317
|
+
version: '0'
|
349
318
|
type: :runtime
|
350
319
|
prerelease: false
|
351
320
|
version_requirements: !ruby/object:Gem::Requirement
|
352
321
|
requirements:
|
353
322
|
- - ">="
|
354
323
|
- !ruby/object:Gem::Version
|
355
|
-
version: '
|
356
|
-
- - "<"
|
357
|
-
- !ruby/object:Gem::Version
|
358
|
-
version: '3.5'
|
324
|
+
version: '0'
|
359
325
|
- !ruby/object:Gem::Dependency
|
360
326
|
name: font-awesome-rails
|
361
327
|
requirement: !ruby/object:Gem::Requirement
|
@@ -370,26 +336,6 @@ dependencies:
|
|
370
336
|
- - "~>"
|
371
337
|
- !ruby/object:Gem::Version
|
372
338
|
version: 4.7.0
|
373
|
-
- !ruby/object:Gem::Dependency
|
374
|
-
name: font-awesome-sass
|
375
|
-
requirement: !ruby/object:Gem::Requirement
|
376
|
-
requirements:
|
377
|
-
- - ">="
|
378
|
-
- !ruby/object:Gem::Version
|
379
|
-
version: 4.7.0
|
380
|
-
- - "<="
|
381
|
-
- !ruby/object:Gem::Version
|
382
|
-
version: 6.0.0
|
383
|
-
type: :runtime
|
384
|
-
prerelease: false
|
385
|
-
version_requirements: !ruby/object:Gem::Requirement
|
386
|
-
requirements:
|
387
|
-
- - ">="
|
388
|
-
- !ruby/object:Gem::Version
|
389
|
-
version: 4.7.0
|
390
|
-
- - "<="
|
391
|
-
- !ruby/object:Gem::Version
|
392
|
-
version: 6.0.0
|
393
339
|
- !ruby/object:Gem::Dependency
|
394
340
|
name: haml-rails
|
395
341
|
requirement: !ruby/object:Gem::Requirement
|
@@ -404,54 +350,6 @@ dependencies:
|
|
404
350
|
- - ">="
|
405
351
|
- !ruby/object:Gem::Version
|
406
352
|
version: '0'
|
407
|
-
- !ruby/object:Gem::Dependency
|
408
|
-
name: sass-rails
|
409
|
-
requirement: !ruby/object:Gem::Requirement
|
410
|
-
requirements:
|
411
|
-
- - ">="
|
412
|
-
- !ruby/object:Gem::Version
|
413
|
-
version: '0'
|
414
|
-
type: :runtime
|
415
|
-
prerelease: false
|
416
|
-
version_requirements: !ruby/object:Gem::Requirement
|
417
|
-
requirements:
|
418
|
-
- - ">="
|
419
|
-
- !ruby/object:Gem::Version
|
420
|
-
version: '0'
|
421
|
-
- !ruby/object:Gem::Dependency
|
422
|
-
name: coffee-rails
|
423
|
-
requirement: !ruby/object:Gem::Requirement
|
424
|
-
requirements:
|
425
|
-
- - ">="
|
426
|
-
- !ruby/object:Gem::Version
|
427
|
-
version: '0'
|
428
|
-
type: :runtime
|
429
|
-
prerelease: false
|
430
|
-
version_requirements: !ruby/object:Gem::Requirement
|
431
|
-
requirements:
|
432
|
-
- - ">="
|
433
|
-
- !ruby/object:Gem::Version
|
434
|
-
version: '0'
|
435
|
-
- !ruby/object:Gem::Dependency
|
436
|
-
name: vertebra
|
437
|
-
requirement: !ruby/object:Gem::Requirement
|
438
|
-
requirements:
|
439
|
-
- - "~>"
|
440
|
-
- !ruby/object:Gem::Version
|
441
|
-
version: '0.1'
|
442
|
-
- - ">="
|
443
|
-
- !ruby/object:Gem::Version
|
444
|
-
version: 0.1.2
|
445
|
-
type: :runtime
|
446
|
-
prerelease: false
|
447
|
-
version_requirements: !ruby/object:Gem::Requirement
|
448
|
-
requirements:
|
449
|
-
- - "~>"
|
450
|
-
- !ruby/object:Gem::Version
|
451
|
-
version: '0.1'
|
452
|
-
- - ">="
|
453
|
-
- !ruby/object:Gem::Version
|
454
|
-
version: 0.1.2
|
455
353
|
- !ruby/object:Gem::Dependency
|
456
354
|
name: rspec-core
|
457
355
|
requirement: !ruby/object:Gem::Requirement
|
@@ -493,72 +391,43 @@ files:
|
|
493
391
|
- app/assets/images/para/admin/loading-spinner.gif
|
494
392
|
- app/assets/images/para/admin/tangram-mosaic.png
|
495
393
|
- app/assets/images/para/admin/template-section.svg
|
496
|
-
- app/assets/
|
497
|
-
- app/assets/
|
498
|
-
- app/assets/
|
499
|
-
- app/assets/
|
500
|
-
- app/assets/
|
501
|
-
- app/assets/
|
502
|
-
- app/assets/javascripts/para/admin/tabs.coffee
|
503
|
-
- app/assets/javascripts/para/admin/theme_actions.coffee
|
504
|
-
- app/assets/javascripts/para/admin/tree.coffee
|
505
|
-
- app/assets/javascripts/para/application.js
|
506
|
-
- app/assets/javascripts/para/inputs/material-input.coffee
|
507
|
-
- app/assets/javascripts/para/inputs/multi-select-input.coffee
|
508
|
-
- app/assets/javascripts/para/inputs/nested_many.coffee
|
509
|
-
- app/assets/javascripts/para/lib/ajax.coffee
|
510
|
-
- app/assets/javascripts/para/lib/remote-file-forms.coffee
|
511
|
-
- app/assets/javascripts/para/lib/turbolinks-forms.coffee
|
512
|
-
- app/assets/javascripts/para/lib/turbolinks-loading.coffee
|
513
|
-
- app/assets/javascripts/para/lib/turbolinks-reloader.coffee
|
514
|
-
- app/assets/javascripts/para/plugins-includes.js.erb
|
515
|
-
- app/assets/stylesheets/admin/app.sass
|
516
|
-
- app/assets/stylesheets/para/admin.sass
|
517
|
-
- app/assets/stylesheets/para/admin/main.sass
|
518
|
-
- app/assets/stylesheets/para/admin/src/_affix.sass
|
519
|
-
- app/assets/stylesheets/para/admin/src/_alert.sass
|
520
|
-
- app/assets/stylesheets/para/admin/src/_base.sass
|
394
|
+
- app/assets/stylesheets/admin/app.scss
|
395
|
+
- app/assets/stylesheets/para/admin.scss
|
396
|
+
- app/assets/stylesheets/para/admin/main.scss
|
397
|
+
- app/assets/stylesheets/para/admin/src/_affix.scss
|
398
|
+
- app/assets/stylesheets/para/admin/src/_alert.scss
|
399
|
+
- app/assets/stylesheets/para/admin/src/_base.scss
|
521
400
|
- app/assets/stylesheets/para/admin/src/_bootstrap-variables.scss
|
522
|
-
- app/assets/stylesheets/para/admin/src/_breadcrumb.
|
523
|
-
- app/assets/stylesheets/para/admin/src/_buttons.
|
524
|
-
- app/assets/stylesheets/para/admin/src/_checkable.
|
525
|
-
- app/assets/stylesheets/para/admin/src/_common.
|
526
|
-
- app/assets/stylesheets/para/admin/src/_dropdown.
|
527
|
-
- app/assets/stylesheets/para/admin/src/_form.
|
528
|
-
- app/assets/stylesheets/para/admin/src/_list.
|
529
|
-
- app/assets/stylesheets/para/admin/src/_mixins.
|
530
|
-
- app/assets/stylesheets/para/admin/src/_multi-select.
|
531
|
-
- app/assets/stylesheets/para/admin/src/_navigation.
|
532
|
-
- app/assets/stylesheets/para/admin/src/_navtabs.
|
533
|
-
- app/assets/stylesheets/para/admin/src/_nested-many.
|
534
|
-
- app/assets/stylesheets/para/admin/src/_nested_one.
|
535
|
-
- app/assets/stylesheets/para/admin/src/_orderable.
|
536
|
-
- app/assets/stylesheets/para/admin/src/_page-loading.
|
537
|
-
- app/assets/stylesheets/para/admin/src/_pagination.
|
538
|
-
- app/assets/stylesheets/para/admin/src/_panel.
|
539
|
-
- app/assets/stylesheets/para/admin/src/_responsive.
|
540
|
-
- app/assets/stylesheets/para/admin/src/_sorting.
|
541
|
-
- app/assets/stylesheets/para/admin/src/_statcard.
|
542
|
-
- app/assets/stylesheets/para/admin/src/_table.
|
543
|
-
- app/assets/stylesheets/para/admin/src/_tree.
|
544
|
-
- app/assets/stylesheets/para/admin/src/_variables.
|
545
|
-
- app/assets/stylesheets/para/admin/src/_well.
|
546
|
-
- app/assets/stylesheets/para/
|
547
|
-
- app/assets/stylesheets/para/lib/
|
548
|
-
- app/assets/stylesheets/para/lib/
|
549
|
-
- app/assets/stylesheets/para/lib/
|
550
|
-
- app/assets/stylesheets/para/lib/
|
551
|
-
- app/assets/stylesheets/para/lib/
|
552
|
-
- app/assets/stylesheets/para/lib/compass/css3/_transition.scss
|
553
|
-
- app/assets/stylesheets/para/lib/compass/css3/_user-interface.scss
|
554
|
-
- app/assets/stylesheets/para/lib/compass/utilities/general/_hacks.scss
|
555
|
-
- app/assets/stylesheets/para/lib/datetimepicker.sass
|
556
|
-
- app/assets/stylesheets/para/lib/fuelux.sass
|
557
|
-
- app/assets/stylesheets/para/lib/jasny-bootstrap.sass
|
558
|
-
- app/assets/stylesheets/para/lib/redactor.sass
|
559
|
-
- app/assets/stylesheets/para/lib/selectize.sass
|
560
|
-
- app/assets/stylesheets/para/lib/slider.sass
|
561
|
-
- app/assets/stylesheets/para/plugins-includes.sass.erb
|
401
|
+
- app/assets/stylesheets/para/admin/src/_breadcrumb.scss
|
402
|
+
- app/assets/stylesheets/para/admin/src/_buttons.scss
|
403
|
+
- app/assets/stylesheets/para/admin/src/_checkable.scss
|
404
|
+
- app/assets/stylesheets/para/admin/src/_common.scss
|
405
|
+
- app/assets/stylesheets/para/admin/src/_dropdown.scss
|
406
|
+
- app/assets/stylesheets/para/admin/src/_form.scss
|
407
|
+
- app/assets/stylesheets/para/admin/src/_list.scss
|
408
|
+
- app/assets/stylesheets/para/admin/src/_mixins.scss
|
409
|
+
- app/assets/stylesheets/para/admin/src/_multi-select.scss
|
410
|
+
- app/assets/stylesheets/para/admin/src/_navigation.scss
|
411
|
+
- app/assets/stylesheets/para/admin/src/_navtabs.scss
|
412
|
+
- app/assets/stylesheets/para/admin/src/_nested-many.scss
|
413
|
+
- app/assets/stylesheets/para/admin/src/_nested_one.scss
|
414
|
+
- app/assets/stylesheets/para/admin/src/_orderable.scss
|
415
|
+
- app/assets/stylesheets/para/admin/src/_page-loading.scss
|
416
|
+
- app/assets/stylesheets/para/admin/src/_pagination.scss
|
417
|
+
- app/assets/stylesheets/para/admin/src/_panel.scss
|
418
|
+
- app/assets/stylesheets/para/admin/src/_responsive.scss
|
419
|
+
- app/assets/stylesheets/para/admin/src/_sorting.scss
|
420
|
+
- app/assets/stylesheets/para/admin/src/_statcard.scss
|
421
|
+
- app/assets/stylesheets/para/admin/src/_table.scss
|
422
|
+
- app/assets/stylesheets/para/admin/src/_tree.scss
|
423
|
+
- app/assets/stylesheets/para/admin/src/_variables.scss
|
424
|
+
- app/assets/stylesheets/para/admin/src/_well.scss
|
425
|
+
- app/assets/stylesheets/para/index.scss
|
426
|
+
- app/assets/stylesheets/para/lib/datetimepicker.scss
|
427
|
+
- app/assets/stylesheets/para/lib/fuelux.scss
|
428
|
+
- app/assets/stylesheets/para/lib/jasny-bootstrap.scss
|
429
|
+
- app/assets/stylesheets/para/lib/selectize.scss
|
430
|
+
- app/assets/stylesheets/para/lib/slider.scss
|
562
431
|
- app/controllers/concerns/para/admin/resource_controller_concerns.rb
|
563
432
|
- app/controllers/para/admin/base_controller.rb
|
564
433
|
- app/controllers/para/admin/component_controller.rb
|
@@ -600,6 +469,45 @@ files:
|
|
600
469
|
- app/helpers/para/tag_helper.rb
|
601
470
|
- app/helpers/para/translations_helper.rb
|
602
471
|
- app/helpers/para/tree_helper.rb
|
472
|
+
- app/javascripts/para/admin/async-progress.js
|
473
|
+
- app/javascripts/para/admin/filters-form.js
|
474
|
+
- app/javascripts/para/admin/job-tracker.js
|
475
|
+
- app/javascripts/para/admin/table.js
|
476
|
+
- app/javascripts/para/admin/tabs.js
|
477
|
+
- app/javascripts/para/admin/theme_actions.js
|
478
|
+
- app/javascripts/para/admin/tree.js
|
479
|
+
- app/javascripts/para/application.js
|
480
|
+
- app/javascripts/para/controllers/application.js
|
481
|
+
- app/javascripts/para/controllers/index.js
|
482
|
+
- app/javascripts/para/controllers/para_admin_flash_message_controller.js
|
483
|
+
- app/javascripts/para/controllers/para_admin_modal_controller.js
|
484
|
+
- app/javascripts/para/controllers/selectize_field_controller.js
|
485
|
+
- app/javascripts/para/index.js
|
486
|
+
- app/javascripts/para/inputs/material-input.js
|
487
|
+
- app/javascripts/para/inputs/multi-select-input.js
|
488
|
+
- app/javascripts/para/inputs/nested_many.js
|
489
|
+
- app/javascripts/para/lib/fetch.js
|
490
|
+
- app/javascripts/para/lib/page-loading.js
|
491
|
+
- app/javascripts/para/plugins-includes.js.erb
|
492
|
+
- app/javascripts/para/simple_form_extension/colorpicker.js
|
493
|
+
- app/javascripts/para/simple_form_extension/datetimepicker.js
|
494
|
+
- app/javascripts/para/simple_form_extension/fileinput.js
|
495
|
+
- app/javascripts/para/simple_form_extension/index.js
|
496
|
+
- app/javascripts/para/simple_form_extension/selectize.js
|
497
|
+
- app/javascripts/para/simple_form_extension/simple_form_extension_initialization.js
|
498
|
+
- app/javascripts/para/simple_form_extension/slider.js
|
499
|
+
- app/javascripts/para/simple_form_extension/spinbox.js
|
500
|
+
- app/javascripts/para/vendor/Sortable.js
|
501
|
+
- app/javascripts/para/vendor/bootstrap-colorpicker.js
|
502
|
+
- app/javascripts/para/vendor/bootstrap-slider.js
|
503
|
+
- app/javascripts/para/vendor/cocoon.js
|
504
|
+
- app/javascripts/para/vendor/jasny-bootstrap.js
|
505
|
+
- app/javascripts/para/vendor/jquery.datetimepicker.js
|
506
|
+
- app/javascripts/para/vendor/jquery.js
|
507
|
+
- app/javascripts/para/vendor/jquery.scrollto.js
|
508
|
+
- app/javascripts/para/vendor/jquery.sortable.js
|
509
|
+
- app/javascripts/para/vendor/spinbox.js
|
510
|
+
- app/javascripts/para/vendor/vertebra.js
|
603
511
|
- app/models/application_record.rb
|
604
512
|
- app/models/para/ability.rb
|
605
513
|
- app/models/para/application_record.rb
|
@@ -625,6 +533,7 @@ files:
|
|
625
533
|
- app/views/para/admin/imports/new.html.haml
|
626
534
|
- app/views/para/admin/jobs/_completed.html.haml
|
627
535
|
- app/views/para/admin/jobs/_failed.html.haml
|
536
|
+
- app/views/para/admin/jobs/_job.html.haml
|
628
537
|
- app/views/para/admin/jobs/_progress.html.haml
|
629
538
|
- app/views/para/admin/jobs/show.html.haml
|
630
539
|
- app/views/para/admin/main/index.html.haml
|
@@ -651,6 +560,7 @@ files:
|
|
651
560
|
- app/views/para/admin/search/index.html.haml
|
652
561
|
- app/views/para/admin/settings_component/show.html.haml
|
653
562
|
- app/views/para/admin/shared/_breadcrumbs.html.haml
|
563
|
+
- app/views/para/admin/shared/_flash.html.haml
|
654
564
|
- app/views/para/admin/shared/_header.html.haml
|
655
565
|
- app/views/para/admin/shared/_navigation.html.haml
|
656
566
|
- app/views/para/form/_tabs.html.haml
|
@@ -729,9 +639,9 @@ files:
|
|
729
639
|
- lib/para/attribute_field/nested_many.rb
|
730
640
|
- lib/para/attribute_field/nested_one.rb
|
731
641
|
- lib/para/attribute_field/password.rb
|
732
|
-
- lib/para/attribute_field/redactor.rb
|
733
642
|
- lib/para/attribute_field/relation.rb
|
734
643
|
- lib/para/attribute_field/translation.rb
|
644
|
+
- lib/para/attribute_field/wysiwyg_editor.rb
|
735
645
|
- lib/para/attribute_field_mappings.rb
|
736
646
|
- lib/para/breadcrumbs.rb
|
737
647
|
- lib/para/breadcrumbs/breadcrumb.rb
|
@@ -763,7 +673,7 @@ files:
|
|
763
673
|
- lib/para/ext/active_record_nested_attributes.rb
|
764
674
|
- lib/para/ext/deep_cloneable.rb
|
765
675
|
- lib/para/ext/paperclip.rb
|
766
|
-
- lib/para/ext/
|
676
|
+
- lib/para/ext/turbo_stream.rb
|
767
677
|
- lib/para/form_builder.rb
|
768
678
|
- lib/para/form_builder/attributes_mappings_tracker.rb
|
769
679
|
- lib/para/form_builder/containers.rb
|
@@ -780,8 +690,6 @@ files:
|
|
780
690
|
- lib/para/helpers.rb
|
781
691
|
- lib/para/helpers/attributes_mappings.rb
|
782
692
|
- lib/para/helpers/resource_name.rb
|
783
|
-
- lib/para/iframe_transport.rb
|
784
|
-
- lib/para/iframe_transport/middleware.rb
|
785
693
|
- lib/para/importer.rb
|
786
694
|
- lib/para/importer/base.rb
|
787
695
|
- lib/para/inputs.rb
|
@@ -811,9 +719,9 @@ files:
|
|
811
719
|
- lib/para/model_field_parsers/globalize.rb
|
812
720
|
- lib/para/model_field_parsers/orderable.rb
|
813
721
|
- lib/para/model_field_parsers/paperclip.rb
|
814
|
-
- lib/para/model_field_parsers/redactor.rb
|
815
722
|
- lib/para/model_field_parsers/relations.rb
|
816
723
|
- lib/para/model_field_parsers/store.rb
|
724
|
+
- lib/para/model_field_parsers/wysiwyg_editor.rb
|
817
725
|
- lib/para/orderable.rb
|
818
726
|
- lib/para/page.rb
|
819
727
|
- lib/para/page/model.rb
|
@@ -833,16 +741,40 @@ files:
|
|
833
741
|
- lib/para/version.rb
|
834
742
|
- lib/rails/relation_length_validator.rb
|
835
743
|
- lib/rails/routing_mapper.rb
|
744
|
+
- lib/simple_form_extension.rb
|
745
|
+
- lib/simple_form_extension/components.rb
|
746
|
+
- lib/simple_form_extension/components/icons.rb
|
747
|
+
- lib/simple_form_extension/components/popovers.rb
|
748
|
+
- lib/simple_form_extension/ext/form_builder.rb
|
749
|
+
- lib/simple_form_extension/file_concern.rb
|
750
|
+
- lib/simple_form_extension/inputs.rb
|
751
|
+
- lib/simple_form_extension/inputs/boolean_input.rb
|
752
|
+
- lib/simple_form_extension/inputs/collection_check_boxes_input.rb
|
753
|
+
- lib/simple_form_extension/inputs/collection_radio_buttons_input.rb
|
754
|
+
- lib/simple_form_extension/inputs/color_input.rb
|
755
|
+
- lib/simple_form_extension/inputs/date_time_input.rb
|
756
|
+
- lib/simple_form_extension/inputs/file_input.rb
|
757
|
+
- lib/simple_form_extension/inputs/image_input.rb
|
758
|
+
- lib/simple_form_extension/inputs/numeric_input.rb
|
759
|
+
- lib/simple_form_extension/inputs/selectize_input.rb
|
760
|
+
- lib/simple_form_extension/inputs/slider_input.rb
|
761
|
+
- lib/simple_form_extension/railtie.rb
|
762
|
+
- lib/simple_form_extension/resource_name_helper.rb
|
763
|
+
- lib/simple_form_extension/translations.rb
|
764
|
+
- lib/simple_form_extension/version.rb
|
836
765
|
- lib/tasks/para_tasks.rake
|
837
|
-
- vendor/assets/
|
838
|
-
- vendor/assets/
|
839
|
-
- vendor/assets/
|
840
|
-
- vendor/assets/
|
841
|
-
- vendor/assets/
|
842
|
-
- vendor/assets/
|
843
|
-
- vendor/assets/stylesheets/
|
844
|
-
- vendor/assets/stylesheets/
|
845
|
-
- vendor/assets/stylesheets/
|
766
|
+
- vendor/assets/images/simple_form_extension/bootstrap-colorpicker/alpha-horizontal.png
|
767
|
+
- vendor/assets/images/simple_form_extension/bootstrap-colorpicker/alpha.png
|
768
|
+
- vendor/assets/images/simple_form_extension/bootstrap-colorpicker/hue-horizontal.png
|
769
|
+
- vendor/assets/images/simple_form_extension/bootstrap-colorpicker/hue.png
|
770
|
+
- vendor/assets/images/simple_form_extension/bootstrap-colorpicker/saturation.png
|
771
|
+
- vendor/assets/stylesheets/animate.scss
|
772
|
+
- vendor/assets/stylesheets/bootstrap-colorpicker.scss
|
773
|
+
- vendor/assets/stylesheets/bootstrap-slider.scss
|
774
|
+
- vendor/assets/stylesheets/bootstrap.scss
|
775
|
+
- vendor/assets/stylesheets/hint.scss
|
776
|
+
- vendor/assets/stylesheets/jasny-bootstrap.scss
|
777
|
+
- vendor/assets/stylesheets/jquery.datetimepicker.scss
|
846
778
|
homepage: http://github.com/glyph-fr/para
|
847
779
|
licenses:
|
848
780
|
- MIT
|
@@ -1 +0,0 @@
|
|
1
|
-
# Override in app
|
@@ -1,29 +0,0 @@
|
|
1
|
-
class Para.AsyncProgress extends Vertebra.View
|
2
|
-
initialize: (options) ->
|
3
|
-
@targetUrl = options.progressUrl || @$el.data('async-progress-url')
|
4
|
-
@$progressBar = @$el.find('.progress-bar')
|
5
|
-
@trackProgress()
|
6
|
-
|
7
|
-
trackProgress: =>
|
8
|
-
$.get(@targetUrl).done(@onTrackingDataReceived).fail(@onJobError)
|
9
|
-
|
10
|
-
stop: ->
|
11
|
-
clearTimeout(@progressTimeout)
|
12
|
-
|
13
|
-
onTrackingDataReceived: (data) =>
|
14
|
-
if data.status is 'completed' then @completed() else @setProgress(data.progress)
|
15
|
-
|
16
|
-
setProgress: (progress) ->
|
17
|
-
@$progressBar.css(width: "#{ progress }%")
|
18
|
-
@progressTimeout = setTimeout(@trackProgress, 1500)
|
19
|
-
@trigger('progress')
|
20
|
-
|
21
|
-
completed: ->
|
22
|
-
@$progressBar.css(width: "100%")
|
23
|
-
@$progressBar.removeClass('progress-bar-striped').addClass('progress-bar-success')
|
24
|
-
@trigger('completed')
|
25
|
-
|
26
|
-
onJobError: =>
|
27
|
-
@$progressBar.css(width: "100%")
|
28
|
-
@$progressBar.removeClass('progress-bar-striped').addClass('progress-bar-error')
|
29
|
-
@trigger('failed')
|
@@ -1,11 +0,0 @@
|
|
1
|
-
class FiltersForm
|
2
|
-
constructor: (options = {}) ->
|
3
|
-
@$el = options.$el
|
4
|
-
@$el.on('change', 'input, select', @onChange)
|
5
|
-
|
6
|
-
onChange: =>
|
7
|
-
@$el.submit()
|
8
|
-
|
9
|
-
$(document).on 'page:change turbolinks:load', ->
|
10
|
-
$('[data-filters-form]').each (i, el) ->
|
11
|
-
new FiltersForm($el: $(el))
|
@@ -1,39 +0,0 @@
|
|
1
|
-
class Para.JobTracker extends RemoteModalForm
|
2
|
-
initialize: (options = {}) ->
|
3
|
-
super(options)
|
4
|
-
@refreshOnClose = false
|
5
|
-
@trackProgress()
|
6
|
-
|
7
|
-
formSuccess: (e, response) ->
|
8
|
-
super(e, response)
|
9
|
-
@trackProgress()
|
10
|
-
|
11
|
-
trackProgress: ($progressBar) ->
|
12
|
-
return unless ($progressBar = @$el.find('[data-async-progress]')).length
|
13
|
-
|
14
|
-
@jobStatusURL = @$el.data('job-status-url')
|
15
|
-
@progress = new Para.AsyncProgress(el: $progressBar, progressUrl: @jobStatusURL)
|
16
|
-
@listenTo(@progress, 'completed', @onImportComplete)
|
17
|
-
@listenTo(@progress, 'failed', @onImportComplete)
|
18
|
-
|
19
|
-
onImportComplete: ->
|
20
|
-
$.ajax(
|
21
|
-
url: @jobStatusURL
|
22
|
-
# Force HTTP ACCEPT header to HTML since Rails treats XHR request without
|
23
|
-
# a specific ACCEPT header as JS or JSON by defaut.
|
24
|
-
accepts:
|
25
|
-
'html': 'text/html'
|
26
|
-
dataType: 'html'
|
27
|
-
).done(@onFinalModalLoaded)
|
28
|
-
|
29
|
-
onFinalModalLoaded: (response) =>
|
30
|
-
@formSuccess(null, response)
|
31
|
-
@refreshOnClose = !(@$link?.data('refresh-on-close') is false)
|
32
|
-
|
33
|
-
modalHide: ->
|
34
|
-
super()
|
35
|
-
@progress?.stop()
|
36
|
-
|
37
|
-
$(document).on 'page:change turbolinks:load', ->
|
38
|
-
$('body').on 'ajax:success', '[data-job-tracker-button]', (e, response) ->
|
39
|
-
new Para.JobTracker(modalMarkup: response, $link: $(e.currentTarget))
|
@@ -1,44 +0,0 @@
|
|
1
|
-
class Para.ResourceTable
|
2
|
-
constructor: (@$table) ->
|
3
|
-
@$tbody = @$table.find('tbody')
|
4
|
-
@initializeOrderable()
|
5
|
-
|
6
|
-
initializeOrderable: ->
|
7
|
-
@orderable = @$table.hasClass('orderable')
|
8
|
-
|
9
|
-
return unless @orderable
|
10
|
-
|
11
|
-
@orderUrl = @$table.data('order-url')
|
12
|
-
|
13
|
-
@$tbody.sortable
|
14
|
-
handle: '.order-anchor'
|
15
|
-
draggable: 'tr'
|
16
|
-
ghostClass: 'sortable-placeholder'
|
17
|
-
onUpdate: $.proxy(@sortUpdate, this)
|
18
|
-
|
19
|
-
sortUpdate: ->
|
20
|
-
@$tbody.find('tr').each (i, el) ->
|
21
|
-
$(el).find('.resource-position-field').val(i)
|
22
|
-
|
23
|
-
@updateOrder()
|
24
|
-
|
25
|
-
updateOrder: ->
|
26
|
-
Para.ajax(
|
27
|
-
url: @orderUrl
|
28
|
-
method: 'patch'
|
29
|
-
data:
|
30
|
-
resources: @buildOrderedData()
|
31
|
-
success: $.proxy(@orderUpdated, this)
|
32
|
-
)
|
33
|
-
|
34
|
-
buildOrderedData: ->
|
35
|
-
for i, field of @$tbody.find('.resource-position-field').get()
|
36
|
-
$field = $(field)
|
37
|
-
{ id: $field.closest('.order-anchor').data('id'), position: $field.val() }
|
38
|
-
|
39
|
-
orderUpdated: ->
|
40
|
-
# TODO: Add flash message to display ordering success
|
41
|
-
|
42
|
-
$(document).on 'page:change turbolinks:load', ->
|
43
|
-
$('.para-component-relation-table').each (i, el) ->
|
44
|
-
new Para.ResourceTable($(el))
|
@@ -1,63 +0,0 @@
|
|
1
|
-
# Tabs hash management adapted from SO answer :
|
2
|
-
# http://stackoverflow.com/a/21443271/685925
|
3
|
-
#
|
4
|
-
class Para.Tabs extends Vertebra.View
|
5
|
-
events:
|
6
|
-
'shown.bs.tab a[data-toggle="tab"]': 'onTabShown'
|
7
|
-
'change .tab-pane': 'onFormInputUpdate'
|
8
|
-
|
9
|
-
initialize: (options = {}) ->
|
10
|
-
@$anchorInput = options.$anchorInput
|
11
|
-
@showActiveTab()
|
12
|
-
@refreshTabsErrors()
|
13
|
-
@initializeAffix()
|
14
|
-
|
15
|
-
showActiveTab: ->
|
16
|
-
if (hash = (location.hash or @$anchorInput?.val()))
|
17
|
-
@findTab(hash).tab('show')
|
18
|
-
|
19
|
-
onTabShown: (e) =>
|
20
|
-
$tab = $(e.target)
|
21
|
-
return unless $tab.closest('[data-form-tabs]').is('[data-top-level-tabs]')
|
22
|
-
|
23
|
-
tabHash = $tab.attr('href')
|
24
|
-
history.pushState(null, null, tabHash)
|
25
|
-
@updateAnchorInput()
|
26
|
-
|
27
|
-
updateAnchorInput: ->
|
28
|
-
@$anchorInput.val(location.hash) if @$anchorInput.length
|
29
|
-
|
30
|
-
refreshTabsErrors: ->
|
31
|
-
@$('[data-toggle="tab"]').each (i, tab) =>
|
32
|
-
@refreshTabErrors($(tab))
|
33
|
-
|
34
|
-
refreshTabErrors: ($tab) ->
|
35
|
-
$panel = @$($tab.attr('href'))
|
36
|
-
$tab.addClass('has-error') if $panel.find('.has-error').length
|
37
|
-
|
38
|
-
#
|
39
|
-
initializeAffix: ->
|
40
|
-
return unless (@$nav = @$('[data-tabs-nav-affix]')).length
|
41
|
-
|
42
|
-
headerHeight = $('[data-header]').outerHeight()
|
43
|
-
offsetTop = @$nav.offset().top - headerHeight
|
44
|
-
sidebarWidth = $('[data-admin-left-sidebar]').outerWidth()
|
45
|
-
|
46
|
-
@$nav.affix(offset: { top: offsetTop })
|
47
|
-
.css(top: headerHeight, left: sidebarWidth)
|
48
|
-
|
49
|
-
# Fix parent wrapper height to maintain the same scroll position when the
|
50
|
-
# nav tabs are fixed to top
|
51
|
-
@$nav.closest('[data-nav-tabs-wrapper]').height(@$nav.outerHeight())
|
52
|
-
|
53
|
-
onFormInputUpdate: (e) ->
|
54
|
-
$tab = @findTab($(e.currentTarget).attr('id'))
|
55
|
-
@refreshTabErrors($tab)
|
56
|
-
|
57
|
-
findTab: (id) ->
|
58
|
-
id = "##{ id }" unless id.indexOf('#') >= 0
|
59
|
-
@$('a[href="' + id + '"]')
|
60
|
-
|
61
|
-
$(document).on 'page:change turbolinks:load', ->
|
62
|
-
$('[data-form-tabs]').each (i, el) ->
|
63
|
-
new Para.Tabs(el: el, $anchorInput: $('[data-current-anchor]'))
|
@@ -1,25 +0,0 @@
|
|
1
|
-
scrollToComponentSection = ($component, duration = 0) ->
|
2
|
-
sectionOffset = $component.closest('.component-section-item').offset().top + $('.navmenu').scrollTop()
|
3
|
-
headerHeight = $('.navmenu .navmenu-brand').outerHeight()
|
4
|
-
$('.navmenu-nav').scrollTo(sectionOffset - headerHeight, duration: duration)
|
5
|
-
|
6
|
-
responsive_sidebar_navigation = ->
|
7
|
-
# Scroll to active element's section on page change
|
8
|
-
if ($activeItem = $('.component-item.active')).length
|
9
|
-
scrollToComponentSection($activeItem)
|
10
|
-
|
11
|
-
$('.component-item').on 'click', 'a', (e) ->
|
12
|
-
scrollToComponentSection($(e.currentTarget), 150)
|
13
|
-
|
14
|
-
$(document).on 'page:change turbolinks:load', ->
|
15
|
-
responsive_sidebar_navigation()
|
16
|
-
|
17
|
-
$(".selectize-tags").selectize
|
18
|
-
delimiter: ","
|
19
|
-
persist: false
|
20
|
-
create: (input) ->
|
21
|
-
value: input
|
22
|
-
text: input
|
23
|
-
|
24
|
-
$(window).resize ->
|
25
|
-
responsive_sidebar_navigation()
|