glib-web 4.7.0 → 4.8.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/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/action_builder/files.rb +3 -0
- data/app/helpers/glib/json_ui/action_builder/sheets.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 +11 -2
- data/app/helpers/glib/json_ui/view_builder/panels.rb +2 -0
- data/app/helpers/glib/json_ui/view_builder.rb +1 -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/dynamic_select_data.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/generic_post.json.jbuilder +0 -0
- data/app/views/json_ui/garage/forms/rich_text.json.jbuilder +1 -1
- data/app/views/json_ui/garage/forms/show_hide.json.jbuilder +3 -3
- 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/panels/tree.json.jbuilder +11 -3
- 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/form.json.jbuilder +20 -2
- data/app/views/json_ui/garage/views/calendar_data.json.jbuilder +0 -0
- 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 +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14b477903f0539909ec17ac01c7f892fc27a90dfc205680435539c2eb7cfc688
|
|
4
|
+
data.tar.gz: c08e982d602198ee4a1d5568143ed0a763d3f19a6f3fb9289ad37faa9c2519c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a25abbe0d1571f5545e4edb184899a90c5159069672ec3d88d353ca450add1b264b2d172b4b90caa94ae24cebf9dbb1b5e7cd015fe1c239eef47c85daf71923
|
|
7
|
+
data.tar.gz: 9f65a3e84dc11bb8b87c2af03c028e7722f3b57b994bb746d494da000e9e0b85b1a290ebea7289535bf5d6daba2a69f0a20533f59ae0334af14b8d6b63dc3d99
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -191,7 +191,9 @@ class Glib::JsonUi::ViewBuilder
|
|
|
191
191
|
end
|
|
192
192
|
|
|
193
193
|
class Select < AbstractField
|
|
194
|
-
|
|
194
|
+
attr_reader :_options
|
|
195
|
+
|
|
196
|
+
# array :options
|
|
195
197
|
# bool :readOnly
|
|
196
198
|
bool :multiple, cache: true
|
|
197
199
|
# bool :manualEntry
|
|
@@ -200,6 +202,11 @@ class Glib::JsonUi::ViewBuilder
|
|
|
200
202
|
panels_builder :accessory, :header, :footer
|
|
201
203
|
bool :clearable
|
|
202
204
|
|
|
205
|
+
def options(value)
|
|
206
|
+
@_options = value
|
|
207
|
+
json.set! 'options', value&.to_a
|
|
208
|
+
end
|
|
209
|
+
|
|
203
210
|
def searchable(value)
|
|
204
211
|
@searchable = value
|
|
205
212
|
end
|
|
@@ -207,7 +214,9 @@ class Glib::JsonUi::ViewBuilder
|
|
|
207
214
|
def created
|
|
208
215
|
super
|
|
209
216
|
|
|
210
|
-
|
|
217
|
+
if @searchable.nil?
|
|
218
|
+
@searchable = _options.size >= 10
|
|
219
|
+
end
|
|
211
220
|
json.set! 'searchable', @searchable
|
|
212
221
|
end
|
|
213
222
|
end
|
|
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
|
|
File without changes
|
|
@@ -46,7 +46,7 @@ page.form url: json_ui_garage_url(path: 'forms/basic_post'), method: 'post', pad
|
|
|
46
46
|
],
|
|
47
47
|
imageUploader: {
|
|
48
48
|
name: 'user[images_attributes][]',
|
|
49
|
-
accepts: { fileType: 'image
|
|
49
|
+
accepts: { fileType: 'image', maxFileSize: 5000 },
|
|
50
50
|
directUploadUrl: glib_direct_uploads_url
|
|
51
51
|
},
|
|
52
52
|
onChange: ->(action) do
|
|
@@ -383,7 +383,7 @@ page.form \
|
|
|
383
383
|
end
|
|
384
384
|
end
|
|
385
385
|
|
|
386
|
-
form.
|
|
386
|
+
form.panels_responsive \
|
|
387
387
|
id: 'panel7a',
|
|
388
388
|
styleClass: 'border-2',
|
|
389
389
|
width: 'matchParent',
|
|
@@ -392,7 +392,7 @@ page.form \
|
|
|
392
392
|
vertical.fields_text name: 'user[0][loadif_target9]', width: 'matchParent', value: 'Value 7a'
|
|
393
393
|
end
|
|
394
394
|
|
|
395
|
-
form.
|
|
395
|
+
form.panels_responsive \
|
|
396
396
|
id: 'panel7b',
|
|
397
397
|
styleClass: 'border-2',
|
|
398
398
|
width: 'matchParent',
|
|
@@ -401,7 +401,7 @@ page.form \
|
|
|
401
401
|
vertical.fields_text name: 'user[1][loadif_target9]', width: 'matchParent', value: 'Value 7b'
|
|
402
402
|
end
|
|
403
403
|
|
|
404
|
-
form.
|
|
404
|
+
form.panels_responsive \
|
|
405
405
|
id: 'panel7c',
|
|
406
406
|
styleClass: 'border-2',
|
|
407
407
|
width: 'matchParent',
|
|
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,9 +1,12 @@
|
|
|
1
1
|
json.title 'Panels'
|
|
2
2
|
|
|
3
3
|
onDropFile = ->(action) do
|
|
4
|
-
action.files_upload
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
action.files_upload \
|
|
5
|
+
directUploadUrl: glib_direct_uploads_url,
|
|
6
|
+
paramNameForFiles: 'signedIds',
|
|
7
|
+
onFinished: ->(saction) do
|
|
8
|
+
saction.http_post url: json_ui_garage_url(path: 'forms/generic_post_all')
|
|
9
|
+
end
|
|
7
10
|
end
|
|
8
11
|
onDropView = ->(action) do
|
|
9
12
|
action.http_post url: json_ui_garage_url(path: 'forms/generic_post_all')
|
|
@@ -18,6 +21,8 @@ json_ui_page json do |page|
|
|
|
18
21
|
|
|
19
22
|
scroll.panels_column md: { cols: 4 }, childViews: ->(col) do
|
|
20
23
|
scroll.panels_tree \
|
|
24
|
+
paramNameForContext: 'moved',
|
|
25
|
+
# paramNameForFormData: 'message',
|
|
21
26
|
onDropFile: onDropFile,
|
|
22
27
|
onDropView: onDropView,
|
|
23
28
|
selected: params[:selected] || 'arabian-1.mp3',
|
|
@@ -33,6 +38,7 @@ json_ui_page json do |page|
|
|
|
33
38
|
id: 'pop',
|
|
34
39
|
title: 'Pop',
|
|
35
40
|
icon: { name: 'folder', size: 24, color: '#6e6e6e' },
|
|
41
|
+
dropData: { genre: 'pop' },
|
|
36
42
|
onClick: ->(action) { action.windows_reload url: json_ui_garage_current_url(selected: 'pop') },
|
|
37
43
|
subtitle: params['selected'] == 'pop' ? 'Pop music is a genre of popular music that originated in its modern' : nil,
|
|
38
44
|
rows: ['pop-1.mp3', 'pop-2.mp3', 'pop-3.mp3']
|
|
@@ -40,6 +46,7 @@ json_ui_page json do |page|
|
|
|
40
46
|
id: 'arab',
|
|
41
47
|
title: 'Arabian',
|
|
42
48
|
icon: { name: 'folder', size: 24, color: '#6e6e6e' },
|
|
49
|
+
dropData: { genre: 'arab' },
|
|
43
50
|
onClick: ->(action) { action.windows_reload url: json_ui_garage_current_url(selected: 'arab') },
|
|
44
51
|
subtitle: params['selected'] == 'arab' ? 'Arabic music is the music of the Arab world' : nil,
|
|
45
52
|
rows: ['arabian-1.mp3', 'arabian-2.mp3', 'arabian-3.mp3']
|
|
@@ -48,6 +55,7 @@ json_ui_page json do |page|
|
|
|
48
55
|
title: 'Phonk',
|
|
49
56
|
onClick: ->(action) { action.windows_reload url: json_ui_garage_current_url(selected: 'phonk') },
|
|
50
57
|
icon: { name: 'folder', size: 24, color: '#6e6e6e' },
|
|
58
|
+
dropData: { genre: 'phonk' },
|
|
51
59
|
subtitle: params['selected'] == 'phonk' ? 'Phonk is a subgenre of hip hop and trap music' : nil,
|
|
52
60
|
rows: ['phonk1.mp3', 'phonk-2.mp3', { id: 'hard-phonk', title: 'Hard Phonk', rows: ['hard-phonk-1.mp3', 'hard-phonk-2.mp3'] }]
|
|
53
61
|
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -44,7 +44,11 @@ page.body childViews: ->(body) do
|
|
|
44
44
|
end
|
|
45
45
|
hori.spacer width: 4
|
|
46
46
|
hori.button text: 'hide select', onClick: ->(action) do
|
|
47
|
-
action.
|
|
47
|
+
action.runMultiple childActions: ->(saction) do
|
|
48
|
+
['select', 'select1', 'select2', 'select3'].each do |id|
|
|
49
|
+
saction.components_set targetId: id, data: { displayed: false }
|
|
50
|
+
end
|
|
51
|
+
end
|
|
48
52
|
end
|
|
49
53
|
hori.spacer height: 4
|
|
50
54
|
hori.button text: 'hide jack', onClick: ->(action) do
|
|
@@ -71,8 +75,22 @@ page.body childViews: ->(body) do
|
|
|
71
75
|
|
|
72
76
|
form.fields_date width: 'matchParent', name: 'user[date]', id: 'date', value: Date.new(2024, 7, 24), validation: validation
|
|
73
77
|
form.hr width: 'matchParent'
|
|
74
|
-
form.fields_select multiple: true, width: 'matchParent', name: 'user[select][]', id: 'select', options: options, value: ['option1', 'option2'], validation: validation
|
|
78
|
+
form.fields_select clearable: true, multiple: true, width: 'matchParent', name: 'user[select][]', id: 'select', options: options, value: ['option1', 'option2'], validation: validation
|
|
75
79
|
form.hr width: 'matchParent'
|
|
80
|
+
form.panels_flow innerPadding: { bottom: 0 }, width: 'matchParent', id: 'select1', childViews: ->(flow) do
|
|
81
|
+
form.fields_select clearable: true, width: 'matchParent', name: 'user[select1]', options: options, value: 'option1'
|
|
82
|
+
form.hr width: 'matchParent'
|
|
83
|
+
end
|
|
84
|
+
form.panels_horizontal id: 'select2', width: 'matchParent', childViews: ->(hori) do
|
|
85
|
+
form.fields_select clearable: true, width: 'matchParent', name: 'user[select2]', options: options, value: 'option2'
|
|
86
|
+
form.hr width: 'matchParent'
|
|
87
|
+
end
|
|
88
|
+
form.panels_split id: 'select3', width: 'matchParent', content: ->(split) do
|
|
89
|
+
split.left childViews: ->(right) do
|
|
90
|
+
form.fields_select clearable: true, width: 'matchParent', name: 'user[select3]', options: options, value: 'option3'
|
|
91
|
+
form.hr width: 'matchParent'
|
|
92
|
+
end
|
|
93
|
+
end
|
|
76
94
|
form.fields_chipGroup width: 'matchParent', name: 'user[chip_group]', id: 'chip_group', options: options, value: ['option2'], validation: validation
|
|
77
95
|
form.hr width: 'matchParent'
|
|
78
96
|
form.fields_radioGroup width: 'matchParent', name: 'user[radio_group]', id: 'radio_group', value: 'option3', validation: validation, childViews: ->(radio) do
|
|
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
|
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.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ''
|
|
@@ -381,8 +381,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
381
381
|
- !ruby/object:Gem::Version
|
|
382
382
|
version: '0'
|
|
383
383
|
requirements: []
|
|
384
|
-
|
|
385
|
-
rubygems_version: 2.7.6
|
|
384
|
+
rubygems_version: 3.4.6
|
|
386
385
|
signing_key:
|
|
387
386
|
specification_version: 4
|
|
388
387
|
summary: ''
|