Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
144 commits
Select commit Hold shift + click to select a range
7190150
New Radio/Checkbox option for interactive target type
Geraint2 Jun 16, 2023
aa99cc3
Put advanced options on second tab in step editing
Geraint2 Jun 16, 2023
c35540a
handle required value for tests on text type input fields
hans2103 Jun 19, 2023
fa9672f
handle required value for tests on text type input fields - store dat…
Geraint2 Jun 19, 2023
fad0c9f
Add support for select list interactive type
Geraint2 Jun 21, 2023
0ddc801
Remove redundant use statement
Geraint2 Jun 21, 2023
8b0b6a5
allow text field to support textarea too
Geraint2 Jun 21, 2023
041589f
make the required value field a text area
Geraint2 Jun 21, 2023
e96cb4e
remove Factory::getLanguage
Geraint2 Jun 21, 2023
c5868ce
Merge branch '5.0-dev' into tour-4
GeraintEdwards Jun 21, 2023
8a6acb7
PHP code style
Geraint2 Jun 21, 2023
dec5adf
PHP code style
Geraint2 Jun 21, 2023
2ef9adf
PHP code style
Geraint2 Jun 21, 2023
7f7314f
PHP code style
Geraint2 Jun 21, 2023
cb7200f
PHP code style
Geraint2 Jun 21, 2023
949de72
PHP code style
Geraint2 Jun 21, 2023
72cea45
bad cut and paste of SQL :(
Geraint2 Jun 21, 2023
94481f9
reoder use statements
Geraint2 Jun 21, 2023
4bc1f4e
Merge branch '5.0-dev' into tour-4
GeraintEdwards Jun 29, 2023
d92b11e
Remove unecessary use Rules
Geraint2 Jun 30, 2023
34a4115
Change required field to radiobox/selector
Jul 2, 2023
589973b
Merge branch '5.0-dev' into tour-4
GeraintEdwards Jul 2, 2023
7b10c7e
Language file typo
Geraint2 Jul 3, 2023
685fac2
Merge branch '5.0-dev' into tour-4
GeraintEdwards Jul 3, 2023
1fe8041
change fieldset name for required values
Geraint2 Jul 3, 2023
cff1124
Merge remote-tracking branch 'origin/tour-4' into tour-4
Geraint2 Jul 3, 2023
f4d369a
Merge branch '5.0-dev' into tour-4
GeraintEdwards Jul 10, 2023
70e258c
Merge branch '5.0-dev' into tour-4
GeraintEdwards Jul 12, 2023
896090e
No need to include reference to es5 javascript 5 at all.
Geraint2 Jul 12, 2023
20c8ac4
Merge remote-tracking branch 'origin/tour-4' into tour-4
Geraint2 Jul 12, 2023
2d1ae9b
Merge branch '5.0-dev' into tour-4
GeraintEdwards Jul 18, 2023
6acad72
Add missing can fail installer hint (#41184)
richard67 Jul 18, 2023
da6e373
[4.4] Unification of the spelling in plg_quickicon_eos.sys.ini (#41099)
tecpromotion Jul 3, 2023
dc855f7
[5.0] New onAfterInitialiseDocument event (#40512)
Fedik Jul 21, 2023
16e8b59
[5.0] Application event classes (#40522)
Fedik Jul 21, 2023
7874bc1
[5.0] b/c plugin - Load class aliases earlier and move es5 assets (#4…
HLeithner Jul 22, 2023
bc54879
Fix excluded files from PR #41065 (#41207)
richard67 Jul 22, 2023
8250276
[5.0] Rename Login with Web Authentication to Login with Passkeys (#4…
brianteeman Jul 23, 2023
147d788
[5.x] SQL field plugin (#41122)
brianteeman Jul 23, 2023
3ebce64
[5.x] Redirect filter (#41166)
brianteeman Jul 23, 2023
ef60f67
[5.0] Replace JPATH_PLATFORM with _JEXEC (#41212)
heelc29 Jul 23, 2023
fe481c4
Translation Update (#40731)
joomla-translation-bot Jun 30, 2023
20bf372
[4.3] Update readme (#41088)
heelc29 Jul 1, 2023
2890713
Color issue (#40435)
sandewt Jul 2, 2023
6df06df
Translation Update (#41100)
joomla-translation-bot Jul 9, 2023
cf6f369
[4.3] typo (#41121)
brianteeman Jul 14, 2023
7bc40fd
fix on change JavaScript event on color form field with layout advanc…
jurihahn Jul 14, 2023
d358aeb
[4.3] check of invalid json 'joomla.asset.json' (#41135)
heelc29 Jul 14, 2023
249ca35
[4.3] Colour fields doc blocks (#41128)
brianteeman Jul 14, 2023
97c3add
[4.3] guided tours module count (#40447)
brianteeman Jul 14, 2023
d69506b
[4.3] Single line comment (#41168)
brianteeman Jul 15, 2023
c15ad40
[4.3] Fix workflow filter (#41167)
brianteeman Jul 18, 2023
2c2b9ca
Record currentStepId in sessionStorage when responding to an interact…
GeraintEdwards Jul 18, 2023
2b0a90c
Fix for TypeError: count() in webservices when running PHP 8.x (#40610)
MacJoom Jul 20, 2023
15ff69e
Added an Api test for contact group field (#41145)
rajputanuj31 Jul 22, 2023
6336a62
Added an api test for content group fields (#41147)
rajputanuj31 Jul 22, 2023
ef7b3c6
[4.4] Bootstrap 5.3 (#41101)
wilsonge Jul 23, 2023
caec518
[4.4] update to 5 from cli (#41117)
alikon Jul 23, 2023
24b7580
[5.0] Fix cli installation (#41213)
heelc29 Jul 24, 2023
f9d51e5
[5.0] replace deprecated access of input property (#41215)
heelc29 Jul 24, 2023
253cd06
[5.0] uf8 encoding consistent (#41216)
heelc29 Jul 24, 2023
cfd5513
[5.0] Update deleted files list in script.php for 5.0.0-alpha3 (#41211)
richard67 Jul 24, 2023
9ec09d4
[[5.x]Compatibility Plugin (BC) added to system info (#41209)
brianteeman Jul 24, 2023
b467c0b
[5.x] System - Backward Compatibility params (#41214)
brianteeman Jul 24, 2023
91ccde0
[5.0] replace deprecated access of input property (#41219)
heelc29 Jul 24, 2023
54b433f
[5.0] [GSoC22] Rich Snippets - schema.org implementation (#41151)
shazmasiddiqui Jul 25, 2023
5059d4c
[5.x] schemaorg plugins mark as core (#41227)
brianteeman Jul 25, 2023
8b2cb15
Revert part of #40429
HLeithner Jul 25, 2023
6d2104f
Joomla! 5.0.0 Alpha 3
HLeithner Jul 25, 2023
26fc0e8
Reset to dev
HLeithner Jul 25, 2023
16f6e3a
[5.0] schemaorg missing namespace (#41237)
brianteeman Jul 25, 2023
9c69035
[5.0] schemaorg missing copyright (#41234)
brianteeman Jul 25, 2023
a2439bc
[5.0] Schemaorg missing string (#41232)
brianteeman Jul 25, 2023
ebda94c
[5.0] schemaorg xml (#41235)
brianteeman Jul 25, 2023
3643ddd
[5.0] schemaorg spelling alrady\already (#41241)
brianteeman Jul 25, 2023
34a0160
[5.0] update language strings of eos quickicon plugin (#41248)
heelc29 Jul 25, 2023
c39b8eb
[5.0] scheaeorg return array (#41240)
brianteeman Jul 25, 2023
1b1cdab
[5.0] schemaorg utf8 encoding consistent (#41247)
heelc29 Jul 25, 2023
75eb5cf
[5.0] schemaorg use injected application from plugin provider (#41246)
heelc29 Jul 25, 2023
755442a
[5.0] schemaorg fix deploy version (#41245)
heelc29 Jul 25, 2023
b93f5c4
[5.0] schemaorg replace JPATH_PLATFORM with _JEXEC (#41244)
heelc29 Jul 25, 2023
d73c1df
[5.0] schemaorg language files (#41243)
heelc29 Jul 25, 2023
9a55ff0
[5.0] schemaorg sort imports (#41242)
heelc29 Jul 25, 2023
ee760e2
Fix missing legacy schema for category,featured,archive view (#41250)
HLeithner Jul 25, 2023
1c1e1dd
Fix XML syntax error from PR #41247 (#41257)
richard67 Jul 26, 2023
4eb3fec
[5.0] Update bootstrap modal layout - add modalCss optional parameter…
sergeytolkachyov Jul 26, 2023
f6ffc12
[5.0] LICENSE.txt (#41277)
heelc29 Jul 29, 2023
9cf6bd6
[5.0] Move the compatibility plugin from system to behaviour folder (…
HLeithner Aug 1, 2023
26e9bfa
Remove class aliases to non existing classes (#41302)
HLeithner Aug 2, 2023
c17c10c
[5.0] fix compat plugin folder change (#41310)
heelc29 Aug 2, 2023
568bdf5
[5.0] schema.org cleanup (#41260)
bembelimen Aug 5, 2023
8048d0b
[5.0] schemaorg fix user parameter (#41269)
heelc29 Aug 7, 2023
9f86b1a
[5.0] schemaorg fix schema forms (#41323)
heelc29 Aug 7, 2023
2c28557
[5.0] Archive content schemaorg (#41344)
brianteeman Aug 9, 2023
443bd6a
[5.0] link docblock (#41178)
brianteeman Aug 9, 2023
4bdb1c4
[4.4] Fix minor UI issues caused by bootstrap 5.3 version bump (#41286)
wilsonge Aug 1, 2023
039d2e6
[4.4] Deprecation string (#41210)
brianteeman Aug 4, 2023
3b33bf3
Fix error rendering with unclosed Output buffers (#41188)
Fedik Jul 24, 2023
83f2769
[4.3] Guided Tours disabled plugin (#40449)
brianteeman Jul 26, 2023
b1064c2
Fix com_config dispatcher (#41262)
SniperSister Jul 29, 2023
9c989a9
Validation Issue (#41285)
iamrobert Jul 31, 2023
9786894
[4.3] Display Contact quickicon (#41282)
brianteeman Jul 31, 2023
d24ab08
[4.3] com_messages typo (#41295)
brianteeman Aug 1, 2023
c600dbe
Fix when deprecation was introduced
wilsonge Aug 3, 2023
2782903
[4.3] PHP 8.2 Dynamic property - com_config request controller (#41292)
heelc29 Aug 6, 2023
92a03c6
[4.3] Content Archive a11y (#41329)
brianteeman Aug 7, 2023
746e86a
[4.3] Finder: Fixing tokenisation for chinese text (#41275)
Hackwar Aug 7, 2023
cca64d3
[5.0] build tools creates wrong folder (#41321)
heelc29 Aug 11, 2023
7d187b0
[5][com_joomlaupdate] Deprecated: Creation of dynamic property php 8.…
alikon Aug 13, 2023
58c57d4
[5.0] schemaorg format json-ld (#41271)
heelc29 Aug 13, 2023
8c318b1
[5.0] fix joomla no download url (#41364)
heelc29 Aug 14, 2023
f4a42b4
[5.0] Update JSON flags for rendering slashes and unicode, and debugg…
Fedik Aug 14, 2023
503f591
[5.0] TinyMCE highlighter plugin with CodeMirror 6 (#41289)
Fedik Aug 14, 2023
3ee51a8
Merge remote-tracking branch 'upstream/5.0-dev' into tour-4
Geraint2 Aug 14, 2023
8da3f98
Merge head correctly
Geraint2 Aug 14, 2023
9f31e8e
Update administrator/components/com_guidedtours/forms/step.xml
GeraintEdwards Aug 14, 2023
34391e5
Update administrator/components/com_guidedtours/src/Model/StepsModel.php
GeraintEdwards Aug 14, 2023
7d74601
Merge remote-tracking branch 'upstream/5.0-dev' into tour-4
Geraint2 Aug 16, 2023
3e7c0a8
Merge and resolve conclict with head
Geraint2 Aug 16, 2023
46fcbb3
Merge remote-tracking branch 'origin/tour-4' into tour-4
Geraint2 Aug 16, 2023
8759032
Merge branch '5.0-dev' into tour-4
GeraintEdwards Aug 27, 2023
4b42c74
Merge branch '5.1-dev' into tour-4
obuisard Nov 18, 2023
02e4592
Update StepTable.php
obuisard Nov 18, 2023
9238982
Update step.xml
obuisard Feb 2, 2024
85652b1
Merge branch '5.1-dev' into tour-4
obuisard Feb 2, 2024
253fbd1
Update edit.php
obuisard Feb 2, 2024
524bf66
Update com_guidedtours.ini
obuisard Feb 2, 2024
ec7bb35
Update com_guidedtours.ini
obuisard Feb 2, 2024
ba55ac0
Update step.xml
obuisard Feb 2, 2024
4e9d741
Update step.xml
obuisard Feb 2, 2024
af03e7c
Update step.xml
obuisard Feb 2, 2024
fb453de
Merge branch '5.1-dev' into tour-4
obuisard Feb 2, 2024
b140a56
Update administrator/language/en-GB/com_guidedtours.ini
obuisard Feb 10, 2024
9f8f378
Rename 5.0.0-2023-06-21.sql to 5.1.0-2024-02-10.sql
obuisard Feb 10, 2024
230b00a
Rename 5.0.0-2023-06-21.sql to 5.1.0-2024-02-10.sql
obuisard Feb 10, 2024
ab40a59
Merge branch '5.1-dev' into tour-4
richard67 Feb 10, 2024
6dbd6e6
Merge branch '5.1-dev' into tour-4
LadySolveig Feb 18, 2024
3013181
Update administrator/components/com_admin/sql/updates/mysql/5.1.0-202…
obuisard Feb 18, 2024
5f6c640
Update installation/sql/mysql/extensions.sql
obuisard Feb 18, 2024
e78d2ae
Update administrator/components/com_admin/sql/updates/postgresql/5.1.…
obuisard Feb 18, 2024
fa159d5
Update installation/sql/postgresql/extensions.sql
obuisard Feb 18, 2024
9b5acbf
Update administrator/language/en-GB/com_guidedtours.ini
obuisard Feb 18, 2024
64781d3
Update build/media_source/plg_system_guidedtours/js/guidedtours.es6.js
obuisard Feb 18, 2024
67aa5ff
Update com_guidedtours.ini
obuisard Feb 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE `#__guidedtour_steps` ADD COLUMN `params` text NULL /** CAN FAIL **/;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "#__guidedtour_steps" ADD COLUMN "params" text NULL /** CAN FAIL **/;
45 changes: 45 additions & 0 deletions administrator/components/com_guidedtours/forms/step.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
>
<option value="1">COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_FORM_SUBMIT</option>
<option value="2">COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_TEXT_FIELD</option>
<option value="5">COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_CHECKBOX_RADIO_FIELD</option>
<option value="6">COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_SELECT_LIST</option>
<option value="4">COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_BUTTON</option>
<option value="3">COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_OTHER</option>
</field>
Expand Down Expand Up @@ -189,4 +191,47 @@
maxlength="255"
/>

<fields name="params">

<fieldset name="options">

<fieldset name="targetvalues" label="COM_GUIDEDTOURS_STEP_TARGETVALUES_HEADING">
<field
name="notetarget"
type="note"
class="alert alert-info"
description="COM_GUIDEDTOURS_STEP_TARGETNOTE_MESSAGE"
showon=".type!:2[OR].interactive_type!:2,5,6" />

<field
name="required"
type="radio"
label="COM_GUIDEDTOURS_TYPE_INPUT_REQUIRED_LABEL"
description="COM_GUIDEDTOURS_TYPE_INPUT_REQUIRED_DESC"
showon=".type:2[AND].interactive_type:2,5,6"
layout="joomla.form.field.radio.switcher"
filter="integer"
validate="options"
default="1"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>

<field
name="requiredvalue"
type="textarea"
label="COM_GUIDEDTOURS_TYPE_INPUT_REQUIREDVALUE_LABEL"
description="COM_GUIDEDTOURS_TYPE_INPUT_REQUIREDVALUE_DESC"
showon=".type:2[AND].interactive_type:2,6[AND]required:1"
filter="safehtml"
cols="80"
rows="3"
default=""
/>

</fieldset>
</fieldset>
</fields>

</form>
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,20 @@ class GuidedtoursComponent extends MVCComponent implements BootableExtensionInte
*/
public const STEP_INTERACTIVETYPE_OTHER = 3;

/**
* An interactive step for checkbox/radio fields
*
* @since __DEPLOY_VERSION__
*/
public const STEP_INTERACTIVETYPE_CHECKBOX_RADIO = 5;

/**
* An interactive step for select element fields
*
* @since __DEPLOY_VERSION__
*/
public const STEP_INTERACTIVETYPE_SELECT = 6;

/**
* Booting the extension. This is the function to set up the environment of the extension like
* registering new class loaders, etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Joomla\Component\Guidedtours\Administrator\Helper\GuidedtoursHelper;
use Joomla\Database\DatabaseQuery;
use Joomla\Database\ParameterType;
use Joomla\Registry\Registry;
use Joomla\Utilities\ArrayHelper;

// phpcs:disable PSR1.Files.SideEffects
Expand Down Expand Up @@ -248,6 +249,13 @@ public function getItems()

$item->title = Text::_($item->title);
$item->description = Text::_($item->description);

if (isset($item->params)) {
$params = new Registry($item->params);
if (!empty($item->params->requiredvalue)) {
$item->params->requiredvalue = Text::_($item->params->requiredvalue);
}
}
}

return $items;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ public function duplicate(&$pks)
'checked_out_time',
'checked_out',
'language',
'params',
'note',
]
)
Expand Down Expand Up @@ -400,6 +401,7 @@ public function duplicate(&$pks)
$db->quoteName('modified'),
$db->quoteName('modified_by'),
$db->quoteName('language'),
$db->quoteName('params'),
$db->quoteName('note'),
]
);
Expand All @@ -421,6 +423,7 @@ public function duplicate(&$pks)
ParameterType::INTEGER,
ParameterType::STRING,
ParameterType::STRING,
ParameterType::STRING,
];

$query->values(
Expand All @@ -442,6 +445,7 @@ public function duplicate(&$pks)
$date,
$user->id,
$step->language,
$step->params,
$step->note,
],
$dataTypes
Expand Down
23 changes: 23 additions & 0 deletions administrator/components/com_guidedtours/src/Table/StepTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Joomla\CMS\User\CurrentUserTrait;
use Joomla\Database\DatabaseDriver;
use Joomla\Event\DispatcherInterface;
use Joomla\Registry\Registry;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
Expand Down Expand Up @@ -51,6 +52,28 @@ public function __construct(DatabaseDriver $db, DispatcherInterface $dispatcher
parent::__construct('#__guidedtour_steps', 'id', $db, $dispatcher);
}

/**
* Overloaded bind function.
*
* @param array $array named array
* @param string $ignore An optional array or space separated list of properties
* to ignore while binding.
*
* @return mixed Null if operation was satisfactory, otherwise returns an error
*
* @see Table::bind()
* @since __DEPLOY_VERSION__
*/
public function bind($array, $ignore = '')
{
if (isset($array['params']) && \is_array($array['params'])) {
$registry = new Registry($array['params']);
$array['params'] = (string) $registry;
}

return parent::bind($array, $ignore);
}

/**
* Stores a step.
*
Expand Down
9 changes: 7 additions & 2 deletions administrator/components/com_guidedtours/tmpl/step/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,16 @@
/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
->useScript('form.validate');
->useScript('form.validate')
->useScript('com_guidedtours.tour-edit');

if (empty($this->item->tour_id)) {
throw new GenericDataException("\nThe Tour id was not set!\n", 500);
}

$lang = $this->getLanguage()->getTag();

$this->useCoreUI = true;
?>

<form action="<?php echo Route::_('index.php?option=com_guidedtours&view=step&layout=edit&id=' .
Expand Down Expand Up @@ -79,14 +82,16 @@
</div>
<?php echo HTMLHelper::_('uitab.endTab'); ?>

<?php echo LayoutHelper::render('joomla.edit.params', $this); ?>

<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'publishing', Text::_('JGLOBAL_FIELDSET_PUBLISHING')); ?>
<div class="row">
<div class="col-12 col-lg-8">
<fieldset id="fieldset-publishingdata" class="options-form">
<legend><?php echo Text::_('JGLOBAL_FIELDSET_PUBLISHING'); ?></legend>
<div>
<?php
$this->fields = [];
$this->fields = [];
$this->hidden_fields = [];
echo LayoutHelper::render('joomla.edit.publishingdata', $this); ?>
</div>
Expand Down
10 changes: 9 additions & 1 deletion administrator/language/en-GB/com_guidedtours.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ COM_GUIDEDTOURS_EXTENSIONS_DESC="Restrict the tour to be displayed only when the
COM_GUIDEDTOURS_EXTENSIONS_LABEL="Component Selector"
COM_GUIDEDTOURS_FIELD_NOTE_LABEL="Note"
COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_BUTTON="Button"
COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_CHECKBOX_RADIO_FIELD="Checkbox/Radio"
COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_FORM_SUBMIT="Form Submit"
COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_OTHER="Other"
COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_SELECT_LIST="Select List"
COM_GUIDEDTOURS_FIELD_VALUE_INTERACTIVESTEP_TYPE_TEXT_FIELD="Text Field"
COM_GUIDEDTOURS_FIELD_VALUE_STEP_TYPE_INTERACTIVE="Interactive"
COM_GUIDEDTOURS_FIELD_VALUE_STEP_TYPE_NEXT="Next"
Expand Down Expand Up @@ -49,6 +51,8 @@ COM_GUIDEDTOURS_STEP_FILTER_SEARCH_LABEL="Search Steps"
COM_GUIDEDTOURS_STEP_NEW_STEP="New Step"
COM_GUIDEDTOURS_STEP_POSITION_DESC="Select the position of the step popup, relative to the element it points to."
COM_GUIDEDTOURS_STEP_POSITION_LABEL="Position"
COM_GUIDEDTOURS_STEP_TARGETNOTE_MESSAGE="When a step is identified as interactive, specific interactive options might carry extra parameters for the user's interaction with a target."
COM_GUIDEDTOURS_STEP_TARGETVALUES_HEADING="Target Value Options"
COM_GUIDEDTOURS_STEP_TITLE="Title"
COM_GUIDEDTOURS_STEP_TITLE_TRANSLATION="Title (%s)"
COM_GUIDEDTOURS_STEP_TARGET_DESC="The target element the step will be attached to. Options: .classname, #id, any selector following the CSS syntax (make sure it is a focusable element if the step is interactive), or leave blank for a centered step."
Expand All @@ -74,7 +78,11 @@ COM_GUIDEDTOURS_TOURS_LIST="Guided Tours"
COM_GUIDEDTOURS_TOURS_LIST_EMPTYSTATE_BUTTON_ADD="Add your first tour"
COM_GUIDEDTOURS_TOURS_LIST_EMPTYSTATE_CONTENT="Create a tour to make it functional."
COM_GUIDEDTOURS_TOURS_LIST_EMPTYSTATE_TITLE="No tours have been created yet."
COM_GUIDEDTOURS_TYPE_INTERACTIVE_STEP_DESC="Select <em>Form Submit</em> to submit a form, <em>Text Field</em> for user input, <em>Button</em> for buttons, or <em>Other</em> for any other interaction."
COM_GUIDEDTOURS_TYPE_INPUT_REQUIRED_DESC="Enable if the user is required to provide a value, activate a radio button or check a box to move forward to the next step of the tour."
COM_GUIDEDTOURS_TYPE_INPUT_REQUIRED_LABEL="Required"
COM_GUIDEDTOURS_TYPE_INPUT_REQUIREDVALUE_DESC="The exact value to be entered, including case and punctuation, to move forward to the next step (if the target is a list of items, use the value of the select's option element)."
COM_GUIDEDTOURS_TYPE_INPUT_REQUIREDVALUE_LABEL="Required Value"
COM_GUIDEDTOURS_TYPE_INTERACTIVE_STEP_DESC="Select <em>Form Submit</em> to submit a form, <em>Text Field</em> for user input, <em>Button</em> for buttons, <em>Checkbox/Radio</em> or <em>Select List</em> for selection, or <em>Other</em> for any other interaction."
COM_GUIDEDTOURS_TYPE_INTERACTIVE_STEP_LABEL="Interactive Type"
COM_GUIDEDTOURS_TYPE_REDIRECT_URL_DESC="Enter the relative URL of the page you want the step to redirect to, eg administrator/index.php?option=com_guidedtours&view=tours for the tours' list page."
COM_GUIDEDTOURS_TYPE_REDIRECT_URL_LABEL="Relative URL"
Expand Down
21 changes: 21 additions & 0 deletions build/media_source/com_guidedtours/joomla.asset.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://developer.joomla.org/schemas/json-schema/web_assets.json",
"name": "com_guidedtours",
"version": "4.0.0",
"description": "Joomla CMS",
"license": "GPL-2.0-or-later",
"assets": [
{
"name": "com_guidedtours.tour-edit",
"type": "script",
"uri": "com_guidedtours/tour-edit.min.js",
"dependencies": [
"core"
],
"attributes": {
"type": "module",
"defer": true
}
}
]
}
37 changes: 37 additions & 0 deletions build/media_source/com_guidedtours/js/tour-edit.es6.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/**
* @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

(() => {
'use strict';

// before 'joomla:showon-processed' is implemented in Showon we must use more frequent 'joomla:showon-show' and'joomla:showon-hide' events
['joomla:showon-show', 'joomla:showon-hide'].forEach((eventType) => {
document.addEventListener(eventType, () => {
document.querySelectorAll('#guidedtour-dates-form fieldset').forEach((fieldset) => {
// Only hide fieldsets containing field control-group i.e. not radio selectors etc. that may use fieldsets
if (fieldset.querySelectorAll(':scope .control-group').length === 0) {
return;
}
const visibleChildren = fieldset.querySelectorAll(':scope .control-group:not(.hidden)');
if (visibleChildren.length) {
fieldset.classList.remove('hidden');
} else {
fieldset.classList.add('hidden');
}
});
document.querySelectorAll('#guidedtour-dates-form joomla-tab-element').forEach((tabelement) => {
const tabLabel = document.querySelector(`button[aria-controls="${tabelement.id}"]`);
if (tabLabel) {
const visibleChildren = tabelement.querySelectorAll(':scope .control-group:not(.hidden)');
if (visibleChildren.length) {
tabLabel.removeAttribute('hidden');
} else {
tabLabel.setAttribute('hidden', 'hidden');
}
}
});
});
});
})();
Loading