glib-web 4.16.0 → 4.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/concerns/glib/json/new_dynamic_text.rb +0 -0
- data/app/controllers/glib/home_controller.rb +2 -0
- data/app/helpers/glib/app_feature_support_helper.rb +0 -0
- data/app/helpers/glib/dynamic_texts_helper.rb +0 -0
- data/app/helpers/glib/json_ui/analytics_helper.rb +0 -0
- data/app/helpers/glib/json_ui/generic_builders.rb +0 -0
- data/app/helpers/glib/json_ui/view_builder/fields.rb +0 -2
- data/app/helpers/glib/json_ui/view_builder.rb +10 -0
- data/app/models/glib/active_storage/attachment.rb +0 -0
- data/app/models/glib/active_storage/blob.rb +0 -0
- data/app/models/glib/dynamic_text_record.rb +0 -0
- data/app/models/glib/text.rb +0 -0
- data/app/validators/email_typo_validator.rb +0 -0
- data/app/validators/email_validator.rb +0 -0
- data/app/validators/url_validator.rb +0 -0
- data/app/views/json_ui/garage/actions/dialogs_oauth_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/dirty_prompt.json.jbuilder +0 -3
- data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_flow.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_flow_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_indicator.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/submission_indicator_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/home/blank.json.jbuilder +0 -0
- data/app/views/json_ui/garage/home/slow.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/autoload_all.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/autoload_as_needed.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/chat_ui.json.jbuilder +0 -0
- data/app/views/json_ui/garage/lists/fab.json.jbuilder +0 -0
- data/app/views/json_ui/garage/notifications/web_socket.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/custom_style_class.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/full_width.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/full_width_height.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/layout.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/loading_indicator.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/nested_scroll.json.jbuilder +0 -0
- data/app/views/json_ui/garage/pages/redirect_onload.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/_styled.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/card.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/custom.json.jbuilder +0 -0
- data/app/views/json_ui/garage/panels/outlined.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/dynamic_text.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/image.json.jbuilder +0 -0
- data/app/views/json_ui/garage/services/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/_autoload_section.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/autoload_all.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/autoload_as_needed.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/export_import.json.jbuilder +0 -0
- data/app/views/json_ui/garage/tables/index.json.jbuilder +0 -0
- data/app/views/json_ui/garage/test_page/_header.json.jbuilder +1 -1
- data/app/views/json_ui/garage/test_page/dirty_state.json.jbuilder +46 -0
- data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/controls.json.jbuilder +3 -3
- data/app/views/json_ui/garage/views/map_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/views/multimedia.json.jbuilder +0 -0
- data/app/views/layouts/json_ui/no_custom.html.erb +0 -0
- data/lib/generators/glib/install_generator.rb +0 -0
- data/lib/generators/templates/20191017062519_create_texts.rb +0 -0
- data/lib/generators/templates/20191024063257_add_scope_to_texts.rb +0 -0
- data/lib/generators/templates/20191112095018_add_lang_to_texts.rb +0 -0
- data/lib/generators/templates/20191126071051_create_active_storage_tables.active_storage.rb +0 -0
- data/lib/generators/templates/database.yml +0 -0
- data/lib/generators/templates/dynamic_text.rb +0 -0
- data/lib/glib/dynamic_text/config.rb +0 -0
- data/lib/glib/dynamic_text.rb +0 -0
- data/lib/glib/json_crawler/action_crawler.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/action_http.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/dialogs_alert.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/menu.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/run_multiple.rb +0 -0
- data/lib/glib/json_crawler/action_crawlers/windows_open.rb +0 -0
- data/lib/glib/json_crawler/coverage.rb +0 -0
- data/lib/glib/value.rb +0 -0
- data/lib/glib/version.rb +0 -0
- metadata +3 -4
- data/app/views/json_ui/garage/forms/blank_get.json.jbuilder +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef11a5ce52461fa118abf8e4fbc32331d993b5377b0848d581d90839a8b593f9
|
4
|
+
data.tar.gz: 31526b9747c9db566b289279638d861c4a75c4ae918ad41d6cce14cf4ee49350
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db769bbb2e4b7beabd4bc5f753e92eb962c4608eca2cd0646796b0e243e4fd2c15078af6d53e30f95a4179251a6b4f2a8cc58e4164584037863a448310d27833
|
7
|
+
data.tar.gz: 8e70533b7e2e64677284ccc85d635c147d01e796c502b89fb4dbf944258c53d07b9431a2597c07acb38f468eef8cd2b478c6fd8eb5e2ccc536cb8838fc81661d
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -312,6 +312,16 @@ module Glib
|
|
312
312
|
color :color
|
313
313
|
color :backgroundColor
|
314
314
|
bool :reversed
|
315
|
+
|
316
|
+
def rounded(value)
|
317
|
+
@rounded = value
|
318
|
+
end
|
319
|
+
|
320
|
+
def create
|
321
|
+
@rounded = true if @rounded.nil?
|
322
|
+
|
323
|
+
json.rounded @rounded
|
324
|
+
end
|
315
325
|
end
|
316
326
|
|
317
327
|
class ProgressCircle < View
|
File without changes
|
File without changes
|
File without changes
|
data/app/models/glib/text.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -11,9 +11,6 @@ page.form \
|
|
11
11
|
method: 'post',
|
12
12
|
padding: glib_json_padding_body,
|
13
13
|
childViews: ->(form) do
|
14
|
-
form.spacer height: 14
|
15
|
-
form.label text: 'This page will not show a dirty prompt even when the form field content has changed'
|
16
|
-
form.spacer height: 14
|
17
14
|
form.h3 text: "Hello #{ data[:name] }"
|
18
15
|
form.spacer height: 4
|
19
16
|
form.fields_text name: 'user[dirty_check_enabled]', width: 'matchParent', label: 'Dirty check enabled'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
navs = ['form', 'dialog', 'form_dynamic', 'auto_validate', 'multiupload']
|
1
|
+
navs = ['form', 'dialog', 'form_dynamic', 'auto_validate', 'multiupload', 'dirty_state']
|
2
2
|
|
3
3
|
view.panels_flow innerPadding: { bottom: 0 }, styleClass: 'align-right', width: 'matchParent', childViews: ->(res) do
|
4
4
|
navs.each_with_index do |nav, index|
|
@@ -0,0 +1,46 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
json.title 'Test Page (Dirty state)'
|
4
|
+
|
5
|
+
page = json_ui_page json
|
6
|
+
|
7
|
+
page.body childViews: ->(body) do
|
8
|
+
render 'json_ui/garage/test_page/header', view: body
|
9
|
+
|
10
|
+
body.panels_form padding: glib_json_padding_body, childViews: ->(form) do
|
11
|
+
form.h2 text: 'Dirty state'
|
12
|
+
form.spacer height: 8
|
13
|
+
|
14
|
+
form.fields_text name: 'user[dirty_check_disabled]', width: 'matchParent', label: 'Dirty check disabled', disableDirtyCheck: true
|
15
|
+
form.spacer height: 14
|
16
|
+
|
17
|
+
form.h3 text: 'Radio'
|
18
|
+
form.spacer height: 14
|
19
|
+
form.fields_radioGroup name: 'user[gender]', value: 'F', childViews: ->(group) do
|
20
|
+
group.fields_radio value: '', label: 'Unknown'
|
21
|
+
group.fields_radio value: 'M', label: 'Male'
|
22
|
+
group.fields_radio value: 'F', label: 'Female'
|
23
|
+
end
|
24
|
+
|
25
|
+
form.h3 text: 'Check group'
|
26
|
+
form.spacer height: 14
|
27
|
+
form.fields_check name: 'user[check][]', checkValue: 'choice1', label: 'choice1', value: 'choice2'
|
28
|
+
form.fields_check name: 'user[check][]', checkValue: 'choice2', label: 'choice2'
|
29
|
+
form.fields_check name: 'user[check][]', checkValue: 'choice2', label: 'choice3', value: 'choice2'
|
30
|
+
|
31
|
+
form.spacer height: 24
|
32
|
+
form.panels_split width: 'matchParent', content: ->(split) do
|
33
|
+
split.left childViews: ->(left) do
|
34
|
+
left.panels_horizontal height: 'matchParent', align: 'middle', childViews: ->(horizontal) do
|
35
|
+
horizontal.label text: 'Dialog Form', onClick: ->(action) do
|
36
|
+
action.dialogs_open url: json_ui_garage_url(path: 'forms/basic', mode: 'dialog')
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
split.right childViews: ->(right) do
|
42
|
+
right.fields_submit text: 'Submit'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
File without changes
|
@@ -42,11 +42,11 @@ page.scroll padding: glib_json_padding_body, childViews: ->(scroll) do
|
|
42
42
|
content: ->(dialog) do
|
43
43
|
dialog.body childViews: ->(view) do
|
44
44
|
view.panels_responsive styleClass: 'popover-menu', width: 200, childViews: ->(res) do
|
45
|
-
res.label text: '
|
45
|
+
res.label text: 'GOTO pages/index', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
46
46
|
saction.windows_open url: json_ui_garage_url(path: 'pages/index')
|
47
47
|
end
|
48
|
-
res.label text: '
|
49
|
-
saction.
|
48
|
+
res.label text: 'closeAllWithOpen', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
49
|
+
saction.windows_closeAllWithOpen url: json_ui_garage_url(path: 'home/blank')
|
50
50
|
end
|
51
51
|
res.label text: 'close', styleClass: 'popover-menu-item', onClick: ->(saction) do
|
52
52
|
saction.popovers_close key: 'menu'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/glib/dynamic_text.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/glib/value.rb
CHANGED
File without changes
|
data/lib/glib/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glib-web
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.17.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -203,7 +203,6 @@ files:
|
|
203
203
|
- app/views/json_ui/garage/forms/_read_more_text.json.jbuilder
|
204
204
|
- app/views/json_ui/garage/forms/basic.json.jbuilder
|
205
205
|
- app/views/json_ui/garage/forms/basic_post.json.jbuilder
|
206
|
-
- app/views/json_ui/garage/forms/blank_get.json.jbuilder
|
207
206
|
- app/views/json_ui/garage/forms/bulk_edit_post.json.jbuilder
|
208
207
|
- app/views/json_ui/garage/forms/bulk_edit_post2.json.jbuilder
|
209
208
|
- app/views/json_ui/garage/forms/checkboxes.json.jbuilder
|
@@ -319,6 +318,7 @@ files:
|
|
319
318
|
- app/views/json_ui/garage/test_page/auto_validate.json.jbuilder
|
320
319
|
- app/views/json_ui/garage/test_page/dialog.json.jbuilder
|
321
320
|
- app/views/json_ui/garage/test_page/dialog_open.json.jbuilder
|
321
|
+
- app/views/json_ui/garage/test_page/dirty_state.json.jbuilder
|
322
322
|
- app/views/json_ui/garage/test_page/form.json.jbuilder
|
323
323
|
- app/views/json_ui/garage/test_page/form_dynamic.json.jbuilder
|
324
324
|
- app/views/json_ui/garage/test_page/multiupload.json.jbuilder
|
@@ -404,8 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
404
404
|
- !ruby/object:Gem::Version
|
405
405
|
version: '0'
|
406
406
|
requirements: []
|
407
|
-
|
408
|
-
rubygems_version: 2.7.6
|
407
|
+
rubygems_version: 3.4.6
|
409
408
|
signing_key:
|
410
409
|
specification_version: 4
|
411
410
|
summary: ''
|