Skip to content

Commit da4098b

Browse files
Jim Grahamsmg6511
authored andcommitted
Progress changes
Post-rebase fixes and and updated modal behavior in response to reviewer feedback.
1 parent 8086271 commit da4098b

File tree

20 files changed

+983
-555
lines changed

20 files changed

+983
-555
lines changed

_build/data/transport.core.system_settings.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,5 +2148,59 @@
21482148
'area' => 'static_elements',
21492149
'editedon' => null,
21502150
], '', true, true);
2151+
$settings['enable_overlays'] = $xpdo->newObject(modSystemSetting::class);
2152+
$settings['enable_overlays']->fromArray([
2153+
'key' => 'enable_overlays',
2154+
'value' => true,
2155+
'xtype' => 'combo-boolean',
2156+
'namespace' => 'core',
2157+
'area' => 'manager',
2158+
'editedon' => null,
2159+
], '', true, true);
2160+
$settings['overlay_color'] = $xpdo->newObject(modSystemSetting::class);
2161+
$settings['overlay_color']->fromArray([
2162+
'key' => 'overlay_color',
2163+
'value' => '#0d141d',
2164+
'xtype' => 'textfield',
2165+
'namespace' => 'core',
2166+
'area' => 'manager',
2167+
'editedon' => null,
2168+
], '', true, true);
2169+
$settings['overlay_opacity_blocking'] = $xpdo->newObject(modSystemSetting::class);
2170+
$settings['overlay_opacity_blocking']->fromArray([
2171+
'key' => 'overlay_opacity_blocking',
2172+
'value' => 50,
2173+
'xtype' => 'numberfield',
2174+
'namespace' => 'core',
2175+
'area' => 'manager',
2176+
'editedon' => null,
2177+
], '', true, true);
2178+
$settings['overlay_opacity_nonblocking'] = $xpdo->newObject(modSystemSetting::class);
2179+
$settings['overlay_opacity_nonblocking']->fromArray([
2180+
'key' => 'overlay_opacity_nonblocking',
2181+
'value' => 50,
2182+
'xtype' => 'numberfield',
2183+
'namespace' => 'core',
2184+
'area' => 'manager',
2185+
'editedon' => null,
2186+
], '', true, true);
2187+
$settings['overlay_tint_blocking'] = $xpdo->newObject(modSystemSetting::class);
2188+
$settings['overlay_tint_blocking']->fromArray([
2189+
'key' => 'overlay_tint_blocking',
2190+
'value' => 0,
2191+
'xtype' => 'numberfield',
2192+
'namespace' => 'core',
2193+
'area' => 'manager',
2194+
'editedon' => null,
2195+
], '', true, true);
2196+
$settings['overlay_tint_nonblocking'] = $xpdo->newObject(modSystemSetting::class);
2197+
$settings['overlay_tint_nonblocking']->fromArray([
2198+
'key' => 'overlay_tint_nonblocking',
2199+
'value' => 70,
2200+
'xtype' => 'numberfield',
2201+
'namespace' => 'core',
2202+
'area' => 'manager',
2203+
'editedon' => null,
2204+
], '', true, true);
21512205

21522206
return $settings;

_build/templates/default/sass/_forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,8 +449,8 @@ input::-moz-focus-inner {
449449
color: $darkGray;
450450
}
451451
}
452-
}
453452
}
453+
454454
.feedback {
455455
margin-left: 1.4rem;
456456
color: scale-color($blue, $lightness: -35%);

_build/templates/default/sass/_windows.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,13 @@
306306
.ext-el-mask {
307307
background-color: $colorSplashShadow;
308308
opacity: 0;
309-
transition: opacity .25s;
309+
transition: opacity .5s;
310310
/*z-index: 10;*/ /* this is handeled by extjs and set to 9000 on show */
311311

312+
&.clickthrough {
313+
pointer-events: none;
314+
}
315+
312316
&.fade-in {
313317
opacity: .5;
314318
}

core/lexicon/en/chunk.inc.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
* @subpackage lexicon
88
*/
99

10-
// Entry out of alpha order because it must come before the entry it's used in below
11-
$_lang['example_tag_chunk_name'] = 'NameOfChunk';
12-
1310
$_lang['chunk'] = 'Chunk';
1411
$_lang['chunk_category_desc'] = 'Use to group Chunks within the Elements tree.';
1512
$_lang['chunk_delete_confirm'] = 'Are you sure you want to delete this chunk?';
@@ -27,11 +24,11 @@
2724
$_lang['chunk_err_ns_name'] = 'Please specify a name.';
2825
$_lang['chunk_lock'] = 'Lock chunk for editing';
2926
$_lang['chunk_lock_desc'] = 'Only users with “edit_locked” permissions can edit this Chunk.';
30-
$_lang['chunk_name_desc'] = 'Place the content generated by this Chunk in a Resource, Template, or other Chunk using the following MODX tag: [[+tag]]';
3127
$_lang['chunk_new'] = 'Create Chunk';
3228
$_lang['chunk_properties'] = 'Default Properties';
3329
$_lang['chunk_tab_general_desc'] = 'Here you can enter the basic attributes for this <em>Chunk</em> as well as its content. The content must be HTML, either placed in the <em>Chunk Code</em> field below or in a static external file, and may include MODX tags. Note, however, that PHP code will not run in this element.';
34-
$_lang['chunk_tag_copied'] = 'Chunk tag copied!';
30+
$_lang['chunk_title'] = 'Create/edit chunk';
31+
$_lang['chunk_untitled'] = 'Untitled Chunk';
3532
$_lang['chunks'] = 'Chunks';
3633

3734
// Temporarily match old keys to new ones to ensure compatibility
@@ -49,6 +46,9 @@
4946
quick create/edit panels access to them when opened
5047
outside the context of their respective element types)
5148
49+
example_tag_chunk_name
5250
chunk_code
5351
chunk_description_desc
52+
chunk_name_desc
53+
chunk_tag_copied
5454
*/

core/lexicon/en/default.inc.php

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -572,10 +572,16 @@
572572
*/
573573

574574
// All
575+
$_lang['static_file'] = 'Static File';
576+
$_lang['static_file_desc'] = 'The external file location where the source code for this element is stored.';
575577

576578
// Chunks
579+
$_lang['example_tag_chunk_name'] = 'NameOfChunk';
577580
$_lang['chunk_code'] = 'Chunk Code (HTML)';
578581
$_lang['chunk_description_desc'] = 'Usage information for this Chunk shown in search results and as a tooltip in the Elements tree.';
582+
$_lang['chunk_name_desc'] = 'Place the content generated by this Chunk in a Resource, Template, or other Chunk using the following MODX tag: [[+tag]]';
583+
$_lang['chunk_new_name'] = 'New Chunk Name';
584+
$_lang['chunk_tag_copied'] = 'Chunk tag copied!';
579585
// Temporarily match old keys to new ones to ensure compatibility
580586
$_lang['chunk_desc_description'] = $_lang['chunk_description_desc'];
581587

@@ -584,32 +590,46 @@
584590
$_lang['plugin_description_desc'] = 'Usage information for this Plugin shown in search results and as a tooltip in the Elements tree.';
585591
$_lang['plugin_disabled'] = 'Deactivate Plugin';
586592
$_lang['plugin_disabled_desc'] = 'When deactivated, this Plugin will not respond to events.';
593+
$_lang['plugin_new_name'] = 'New Plugin Name';
587594
// Temporarily match old keys to new ones to ensure compatibility
588595
$_lang['plugin_desc'] = $_lang['description'];
589596
$_lang['plugin_desc_description'] = $_lang['plugin_description_desc'];
590597
$_lang['plugin_disabled_msg'] = $_lang['plugin_disabled_desc'];
591598

592599
// Snippets
600+
$_lang['example_tag_snippet_name'] = 'NameOfSnippet';
593601
$_lang['snippet_code'] = 'Snippet Code (PHP)';
594602
$_lang['snippet_description_desc'] = 'Usage information for this Snippet shown in search results and as a tooltip in the Elements tree.';
603+
$_lang['snippet_name_desc'] = 'Place the content generated by this Snippet in a Resource, Template, or Chunk using the following MODX tag: [[+tag]]';
604+
$_lang['snippet_new_name'] = 'New Snippet Name';
605+
$_lang['snippet_tag_copied'] = 'Snippet tag copied!';
595606
// Temporarily match old keys to new ones to ensure compatibility
596607
$_lang['snippet_desc'] = $_lang['description'];
597608
$_lang['snippet_desc_description'] = $_lang['snippet_description_desc'];
598609

599610
// Templates
600611
$_lang['template_code'] = 'Template Code (HTML)';
601612
$_lang['template_description_desc'] = 'Usage information for this Template shown in search results and as a tooltip in the Elements tree.';
613+
$_lang['template_new_name'] = 'New Template Name';
602614
// Temporarily match old keys to new ones to ensure compatibility
603615
$_lang['template_desc'] = $_lang['description'];
604616
$_lang['template_desc_description'] = $_lang['template_description_desc'];
605617

606618
// TVs
607-
$_lang['tv_tab_input_options'] = 'Input Options';
608-
$_lang['tv_type'] = 'Input Type';
609-
$_lang['tv_default'] = 'Default Value';
610-
$_lang['tv_default_desc'] = 'The content this TV will show if user-entered content is not provided.';
619+
$_lang['example_tag_tv_name'] = 'NameOfTV';
611620
$_lang['tv_caption_desc'] = 'The label shown for this TV in Resource editing pages (can be overridden per template or other criteria using <a href="?a=security/forms" target="_blank">Form Customization</a>).';
612621
$_lang['tv_category_desc'] = 'Use to group TVs in Resource editing pages and within the Elements tree.';
613-
$_lang['tv_description_desc'] = 'Usage information for this TV shown next to its caption in Resource editing pages and as a tooltip in the Elements tree.';
622+
$_lang['tv_default'] = 'Default Value';
623+
$_lang['tv_default_desc'] = 'The content this TV will show if user-entered content is not provided.';
624+
// $_lang['tv_description_desc'] = 'Usage information for this TV shown next to its caption in Resource editing pages and as a tooltip in the Elements tree.';
625+
$_lang['tv_description_desc'] = 'Usage information for this TV shown next to its caption in Resource editing pages, as a tooltip in the Elements tree, and within search results.';
614626
$_lang['tv_elements'] = 'Input Option Values';
615627
$_lang['tv_elements_short_desc'] = 'Defines the selectable options for this TV, which may be manually entered or built with a one-line <a href="https://docs.modx.com/current/en/building-sites/elements/template-variables/bindings/select-binding" target="_blank">database query</a>.';
628+
$_lang['tv_name_desc'] = 'Place the content generated by this TV in a Resource, Template, or Chunk using the following MODX tag: [[+tag]]';
629+
$_lang['tv_new_caption'] = 'New TV Caption';
630+
$_lang['tv_new_name'] = 'New TV Name';
631+
$_lang['tv_tag_copied'] = 'TV tag copied!';
632+
$_lang['tv_type'] = 'Input Type';
633+
$_lang['tv_type_desc'] = 'The html input or content component type generated by this TV.';
634+
// Temporarily match old keys to new ones to ensure compatibility
635+
$_lang['tv_description'] = $_lang['description'];

core/lexicon/en/element.inc.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
$_lang['quick_update_tv'] = 'Quick Edit TV';
2828
$_lang['property_preprocess'] = 'Pre-process tags in Property Values';
2929
$_lang['property_preprocess_msg'] = 'If enabled, tags in Default Property/Property Set values will be processed before they are used for Element processing.';
30-
$_lang['static_file'] = 'Static File';
31-
$_lang['static_file_desc'] = 'The external file location where the source code for this element is stored.';
3230
$_lang['static_source'] = 'Media Source';
3331
$_lang['static_source_desc'] = 'Sets the basePath for the Static File to the one specified in the chosen Media Source. Choose “None” when specifying an absolute or other custom path to the file.';
3432
$_lang['tv_elements'] = 'Input Option Values';
@@ -42,3 +40,14 @@
4240
$_lang['is_static_msg'] = $_lang['is_static_desc'];
4341
$_lang['static_file_msg'] = $_lang['static_file_desc'];
4442
$_lang['static_source_msg'] = $_lang['static_source_desc'];
43+
44+
/*
45+
Refer to default.inc.php for the keys below.
46+
(Placement in this default file necessary to allow
47+
quick create/edit/duplicate panels access to them when opened
48+
outside the context of their respective element types)
49+
50+
static_file
51+
static_file_desc
52+
53+
*/

core/lexicon/en/setting.inc.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,23 @@
494494

495495
$_lang['setting_package_installer_at_top'] = 'Pin Package-Installer at top';
496496
$_lang['setting_package_installer_at_top_desc'] = 'If enabled, the Installer entry will be pinned to the top of the Extras menu. Otherwise it will be positioned according to its menuindex.';
497+
$_lang['setting_enable_overlays'] = 'Enable Overlays';
498+
$_lang['setting_enable_overlays_desc'] = 'If enabled, a semi-transparent overlay will mask the manager’s main interface below editing windows and dialog boxes, enhancing user focus on the front window(s).';
499+
500+
$_lang['setting_overlay_color'] = 'Overlay Color';
501+
$_lang['setting_overlay_color_desc'] = 'Any valid css color specified in Hexadecimal, RGB/A, HSL/A, W3C named, or transparent format.';
502+
503+
$_lang['setting_overlay_opacity_blocking'] = 'Overlay Opacity (Blocking)';
504+
$_lang['setting_overlay_opacity_blocking_desc'] = 'Controls how opaque a dialog window’s underlying overlay (mask) will be. This type of overlay is also used as a mask for disabled grids and blocks interaction with the elements below. Valid values range from 0 (completely transparent) to 100 (completely opaque).';
505+
506+
$_lang['setting_overlay_opacity_nonblocking'] = 'Overlay Opacity (Non-Blocking)';
507+
$_lang['setting_overlay_opacity_nonblocking_desc'] = 'Controls how opaque an editing window’s non-blocking underlying overlay (mask) will be. This type of overlay allows interaction with the elements below. Valid values range from 0 (completely transparent) to 100 (completely opaque).';
508+
509+
$_lang['setting_overlay_tint_blocking'] = 'Overlay Tint (Blocking)';
510+
$_lang['setting_overlay_tint_blocking_desc'] = 'The percentage of white added to lighten a dialog window’s underlying overlay color. This type of overlay is also used as a mask for disabled grids and blocks interaction with the elements below. Valid values range from 0 (no lightening) to 100 (completely white) in increments of 5.';
511+
512+
$_lang['setting_overlay_tint_nonblocking'] = 'Overlay Tint (Non-Blocking)';
513+
$_lang['setting_overlay_tint_nonblocking_desc'] = 'The percentage of white added to lighten an editing window’s non-blocking underlying overlay color. This type of overlay allows interaction with the elements below. Valid values range from 0 (no lightening) to 100 (completely white) in increments of 5.';
497514

498515
$_lang['setting_parser_recurse_uncacheable'] = 'Delay Uncacheable Parsing';
499516
$_lang['setting_parser_recurse_uncacheable_desc'] = 'If disabled, uncacheable elements may have their output cached inside cacheable element content. Disable this ONLY if you are having problems with complex nested parsing which stopped working as expected.';

core/lexicon/en/snippet.inc.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* @package modx
77
* @subpackage lexicon
88
*/
9-
$_lang['example_tag_snippet_name'] = 'NameOfSnippet';
109
$_lang['snippet'] = 'Snippet';
1110
$_lang['snippets_available'] = 'Snippets available for you to include in your page';
1211
$_lang['snippet_category_desc'] = 'Use to group Snippets within the Elements tree.';
@@ -28,11 +27,11 @@
2827
$_lang['snippet_lock'] = 'Lock snippet for editing';
2928
$_lang['snippet_lock_desc'] = 'Only users with “edit_locked” permissions can edit this Snippet.';
3029
$_lang['snippet_management_msg'] = 'Here you can choose which snippet you wish to edit.';
31-
$_lang['snippet_name_desc'] = 'Place the content generated by this Snippet in a Resource, Template, or Chunk using the following MODX tag: [[+tag]]';
3230
$_lang['snippet_new'] = 'Create Snippet';
3331
$_lang['snippet_properties'] = 'Default Properties';
34-
$_lang['snippet_tab_general_desc'] = 'Here you can enter the basic attributes for this <em>Snippet</em> as well as its content. The content must be PHP, either placed in the <em>Snippet Code</em> field below or in a static external file. To receive output from your Snippet at the point where it is called (within a Template or Chunk), a value must be returned from within the code.';
35-
$_lang['snippet_tag_copied'] = 'Snippet tag copied!';
32+
$_lang['snippet_tab_general_desc'] = 'Here you can enter the basic attributes for this <em>Snippet</em> as well as its content. The content must be PHP, either placed in the <a href="#x-form-el-modx-snippet-snippet">Snippet Code</a> field below or in a static external file. To receive output from your Snippet at the point where it is called (within a Template or Chunk), a value must be returned from within the code.';
33+
$_lang['snippet_title'] = 'Create/edit snippet';
34+
$_lang['snippet_untitled'] = 'Untitled snippet';
3635
$_lang['snippets'] = 'Snippets';
3736

3837
// Temporarily match old keys to new ones to ensure compatibility
@@ -50,6 +49,9 @@
5049
quick create/edit panels access to them when opened
5150
outside the context of their respective element types)
5251
52+
example_tag_snippet_name
5353
snippet_code
5454
snippet_description_desc
55+
snippet_name_desc
56+
snippet_tag_copied
5557
*/

core/lexicon/en/tv.inc.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* @package modx
77
* @subpackage lexicon
88
*/
9-
$_lang['example_tag_tv_name'] = 'NameOfTV';
109
$_lang['has_access'] = 'Has Access?';
1110
$_lang['filter_by_category'] = 'Filter by Category...';
1211
$_lang['rank'] = 'Rank';
@@ -15,12 +14,8 @@
1514
$_lang['tvs'] = 'Template Variables';
1615
$_lang['tv_binding_msg'] = 'This field supports data source bindings using the @ commands';
1716
$_lang['tv_caption'] = 'Caption';
18-
$_lang['tv_caption_desc'] = 'The label shown for this TV in Resource editing pages (can be overridden per template or other criteria using <a href="?a=security/forms" target="_blank">Form Customization</a>).';
19-
$_lang['tv_category_desc'] = 'Use to group TVs in Resource editing pages and within the Elements tree.';
2017
$_lang['tv_change_template_msg'] = 'Changing this template will cause the page to reload the TVs, losing any unsaved changes.<br /><br /> Are you sure you want to change this template?';
2118
$_lang['tv_delete_confirm'] = 'Are you sure you want to delete this TV?';
22-
$_lang['tv_description'] = 'Description';
23-
$_lang['tv_description_desc'] = 'Usage information for this TV shown next to its caption in Resource editing pages, as a tooltip in the Elements tree, and within search results.';
2419
$_lang['tv_err_delete'] = 'An error occurred while trying to delete the TV.';
2520
$_lang['tv_err_duplicate'] = 'An error occurred while trying to duplicate the TV.';
2621
$_lang['tv_err_duplicate_templates'] = 'An error occurred while duplicating the TV templates.';
@@ -42,7 +37,7 @@
4237
$_lang['tv_lock'] = 'Restrict Editing';
4338
$_lang['tv_lock_desc'] = 'Only users with “edit_locked” permissions can edit this TV.';
4439
$_lang['tv_management_msg'] = 'Manage additional custom TVs for your documents.';
45-
$_lang['tv_name_desc'] = 'Place the content generated by this TV in a Resource, Template, or Chunk using the following MODX tag: [[+tag]]';
40+
$_lang['tv_name'] = 'TV Name';
4641
$_lang['tv_new'] = 'Create TV';
4742
$_lang['tv_novars'] = 'No TVs found';
4843
$_lang['tv_properties'] = 'Default Properties';
@@ -51,13 +46,13 @@
5146
$_lang['tv_reset_params'] = 'Reset parameters';
5247
$_lang['tv_tab_access_desc'] = 'Select the Resource Groups that this TV belongs to. Only users with access to the Groups selected will be able to modify this TV. If no Groups are selected, all users with access to the Manager will be able to modify the TV.';
5348
$_lang['tv_tab_general_desc'] = 'Here you can enter the basic attributes for this <em>Template Variable</em> (TV). Note that TVs must be assigned to templates in order to access them from snippets and documents.';
49+
$_lang['tv_tab_input_options'] = 'Input Options';
5450
$_lang['tv_tab_input_options_desc'] = '<p>Here you can edit the input options for the TV, specific to the type of input render that you select.</p>';
5551
$_lang['tv_tab_output_options'] = 'Output Options';
5652
$_lang['tv_tab_output_options_desc'] = '<p>Here you can edit the output options for the TV, specific to the type of output render that you select.</p>';
5753
$_lang['tv_tab_sources_desc'] = 'Here you can assign the Media Sources that are to be used for this TV in each specified Context. Double-click on the Source name in the grid to change it.';
5854
$_lang['tv_tab_tmpl_access'] = 'Template Access';
5955
$_lang['tv_tab_tmpl_access_desc'] = 'Select the templates that are allowed to access this TV.';
60-
$_lang['tv_tag_copied'] = 'TV tag copied!';
6156
$_lang['tv_widget'] = 'Widget';
6257
$_lang['tv_widget_prop'] = 'Widget Properties';
6358
$_lang['tvd_err_remove'] = 'An error occurred while trying to delete the TV from the document.';
@@ -94,9 +89,11 @@
9489
quick create/edit panels access to them when opened
9590
outside the context of their respective element types)
9691
97-
tv_tab_input_options
9892
tv_caption_desc
9993
tv_category_desc
10094
tv_description_desc
95+
tv_name_desc
96+
tv_tag_copied
97+
tv_type_desc
10198
10299
*/

0 commit comments

Comments
 (0)