mod_version_calendar_svg/mod_version_calendar_svg.xml

378 lines
10 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<extension type="module" version="4" client="site" method="upgrade">
<name>MOD_VERSION_CALENDAR_SVG</name>
<creationDate>11th August, 2023</creationDate>
<author>Joomla! Project</author>
<authorEmail>admin@joomla.org</authorEmail>
<authorUrl>http://www.joomla.org</authorUrl>
<copyright>(C) 2020 Open Source Matters, Inc.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>2.0.1</version>
<description>MOD_VERSION_CALENDAR_SVG_XML_DESCRIPTION</description>
<!-- Scripts to run on installation -->
<scriptfile>script.php</scriptfile>
<!-- Language files -->
<languages folder="language">
<language tag="en-GB">en-GB/en-GB.mod_version_calendar_svg.ini</language>
<language tag="en-GB">en-GB/en-GB.mod_version_calendar_svg.sys.ini</language>
</languages>
<!-- Model files -->
<files>
<filename module="mod_version_calendar_svg">mod_version_calendar_svg.php</filename>
<filename>LICENSE.txt</filename>
<filename>README.md</filename>
<filename>helper.php</filename>
<filename>index.html</filename>
<folder>language</folder>
<folder>fields</folder>
<folder>rules</folder>
<folder>tmpl</folder>
</files>
<!-- Config parameter -->
<config>
<fields name="params">
<!-- default paths of dimention fieldset points to the module -->
<fieldset name="dimention" label="MOD_VERSION_CALENDAR_SVG_DIMENTIONS"
addrulepath="/modules/mod_version_calendar_svg/rules"
addfieldpath="/modules/mod_version_calendar_svg/fields"
>
<!-- Header_height Field. Type: Number. (joomla) -->
<field
type="number"
name="header_height"
label="MOD_VERSION_CALENDAR_SVG_HEADER_HEIGHT_LABEL"
default="24"
class="text_area"
required="true"
min="10"
max="80"
step="1"
validate="number"
/>
<!-- Branch_height Field. Type: Number. (joomla) -->
<field
type="number"
name="branch_height"
label="MOD_VERSION_CALENDAR_SVG_BRANCH_HEIGHT_LABEL"
default="30"
class="text_area"
required="true"
min="20"
max="100"
step="5"
validate="number"
/>
<!-- Margin_right Field. Type: Number. (joomla) -->
<field
type="number"
name="margin_right"
label="MOD_VERSION_CALENDAR_SVG_MARGIN_RIGHT_LABEL"
default="50"
class="text_area"
required="true"
min="20"
max="100"
step="5"
validate="number"
/>
<!-- Margin_left Field. Type: Number. (joomla) -->
<field
type="number"
name="margin_left"
label="MOD_VERSION_CALENDAR_SVG_MARGIN_LEFT_LABEL"
default="80"
class="text_area"
required="true"
min="40"
max="140"
step="5"
validate="number"
/>
<!-- Year_width Field. Type: Number. (joomla) -->
<field
type="number"
name="year_width"
label="MOD_VERSION_CALENDAR_SVG_YEAR_WIDTH_LABEL"
default="120"
class="text_area"
required="true"
min="50"
max="300"
step="5"
validate="number"
/>
<!-- Footer_height Field. Type: Number. (joomla) -->
<field
type="number"
name="footer_height"
label="MOD_VERSION_CALENDAR_SVG_FOOTER_HEIGHT_LABEL"
default="24"
class="text_area"
required="true"
min="10"
max="80"
step="1"
validate="number"
/>
</fieldset>
<!-- default paths of style fieldset points to the module -->
<fieldset name="style" label="MOD_VERSION_CALENDAR_SVG_STYLES"
addrulepath="/modules/mod_version_calendar_svg/rules"
addfieldpath="/modules/mod_version_calendar_svg/fields"
>
<!-- Text_color Field. Type: Color. (joomla) -->
<field
type="color"
name="text_color"
default="#ffffff"
label="MOD_VERSION_CALENDAR_SVG_TEXT_COLOR_LABEL"
required="true"
/>
<!-- Future_text_color Field. Type: Color. (joomla) -->
<field
type="color"
name="future_text_color"
default="#fbf3ef"
label="MOD_VERSION_CALENDAR_SVG_FUTURE_TEXT_COLOR_LABEL"
required="true"
/>
<!-- Future_color Field. Type: Color. (joomla) -->
<field
type="color"
name="future_color"
default="#5091cd"
label="MOD_VERSION_CALENDAR_SVG_FUTURE_COLOR_LABEL"
required="true"
/>
<!-- End_of_life_text_color Field. Type: Color. (joomla) -->
<field
type="color"
name="end_of_life_text_color"
default="#ffffff"
label="MOD_VERSION_CALENDAR_SVG_END_OF_LIFE_TEXT_COLOR_LABEL"
required="true"
/>
<!-- End_of_life_color Field. Type: Color. (joomla) -->
<field
type="color"
name="end_of_life_color"
default="#f44321"
label="MOD_VERSION_CALENDAR_SVG_END_OF_LIFE_COLOR_LABEL"
required="true"
/>
<!-- Years_line_color Field. Type: Color. (joomla) -->
<field
type="color"
name="years_line_color"
default="#5091cd"
label="MOD_VERSION_CALENDAR_SVG_YEARS_LINE_COLOR_LABEL"
required="true"
/>
<!-- Years_text_color Field. Type: Color. (joomla) -->
<field
type="color"
name="years_text_color"
default="#000"
label="MOD_VERSION_CALENDAR_SVG_YEARS_TEXT_COLOR_LABEL"
required="true"
/>
<!-- Today_line_color Field. Type: Color. (joomla) -->
<field
type="color"
name="today_line_color"
default="#f44321"
label="MOD_VERSION_CALENDAR_SVG_TODAY_LINE_COLOR_LABEL"
required="true"
/>
<!-- Today_text_color Field. Type: Color. (joomla) -->
<field
type="color"
name="today_text_color"
default="#f44321"
label="MOD_VERSION_CALENDAR_SVG_TODAY_TEXT_COLOR_LABEL"
required="true"
/>
<!-- Show_legend Field. Type: Radio. (joomla) -->
<field
type="radio"
name="show_legend"
label="MOD_VERSION_CALENDAR_SVG_SHOW_LEGEND_LABEL"
description="MOD_VERSION_CALENDAR_SVG_SHOW_LEGEND_DESCRIPTION"
class="btn-group btn-group-yesno"
default="1">
<!-- Option Set. -->
<option value="1">
MOD_VERSION_CALENDAR_SVG_YES</option>
<option value="0">
MOD_VERSION_CALENDAR_SVG_NO</option>
</field>
<!-- Legend_background_color Field. Type: Color. (joomla) -->
<field
type="color"
name="legend_background_color"
default="#494444"
label="MOD_VERSION_CALENDAR_SVG_LEGEND_BACKGROUND_COLOR_LABEL"
showon="show_legend:1"
/>
<!-- Legend_text_color Field. Type: Color. (joomla) -->
<field
type="color"
name="legend_text_color"
default="#fbf3ef"
label="MOD_VERSION_CALENDAR_SVG_LEGEND_TEXT_COLOR_LABEL"
showon="show_legend:1"
/>
</fieldset>
<!-- default paths of versions fieldset points to the module -->
<fieldset name="versions" label="MOD_VERSION_CALENDAR_SVG_VERSIONS"
addrulepath="/modules/mod_version_calendar_svg/rules"
addfieldpath="/modules/mod_version_calendar_svg/fields"
>
<!-- Max_years Field. Type: Number. (joomla) -->
<field
type="number"
name="max_years"
label="MOD_VERSION_CALENDAR_SVG_MAX_YEARS_LABEL"
default="5"
class="text_area"
required="true"
min="1"
max="20"
step="1"
validate="number"
/>
<!-- Min_years Field. Type: Number. (joomla) -->
<field
type="number"
name="min_years"
label="MOD_VERSION_CALENDAR_SVG_MIN_YEARS_LABEL"
default="3"
class="text_area"
required="true"
min="1"
max="10"
step="1"
validate="number"
/>
<!-- Versions Field. Type: Subform. (joomla) -->
<field
type="subform"
name="versions"
label="MOD_VERSION_CALENDAR_SVG_VERSIONS_LABEL"
layout="joomla.form.field.subform.repeatable"
multiple="true"
buttons="add,remove,move"
icon="list"
max="10"
min="1">
<form hidden="true" name="list_versions_modal" repeat="true">
<!-- Version Field. Type: Text. (joomla) -->
<field
type="text"
name="version"
label="MOD_VERSION_CALENDAR_SVG_VERSION_LABEL"
size="40"
maxlength="50"
default="1.0.0"
description="MOD_VERSION_CALENDAR_SVG_VERSION_DESCRIPTION"
class="text_area"
required="true"
filter="CMD"
message="MOD_VERSION_CALENDAR_SVG_VERSION_MESSAGE"
hint="MOD_VERSION_CALENDAR_SVG_VERSION_HINT"
/>
<!-- Dates Field. Type: Subform. (joomla) -->
<field
type="subform"
name="dates"
label="MOD_VERSION_CALENDAR_SVG_DATES_LABEL"
layout="joomla.form.field.subform.repeatable"
multiple="true"
buttons="add,remove,move"
icon="list"
max="10"
min="1"
nested_depth="1">
<form hidden="true" name="list_dates_modal" repeat="true">
<!-- State Field. Type: Text. (joomla) -->
<field
type="text"
name="state"
label="MOD_VERSION_CALENDAR_SVG_STATE_LABEL"
size="10"
maxlength="50"
class="text_area"
required="true"
filter="WORD"
hint="MOD_VERSION_CALENDAR_SVG_STATE_HINT"
autocomplete="on"
/>
<!-- Label Field. Type: Text. (joomla) -->
<field
type="text"
name="label"
label="MOD_VERSION_CALENDAR_SVG_LABEL_LABEL"
size="40"
maxlength="50"
class="text_area"
required="true"
filter="STRING"
hint="MOD_VERSION_CALENDAR_SVG_LABEL_HINT"
autocomplete="on"
/>
<!-- Description Field. Type: Text. (joomla) -->
<field
type="text"
name="description"
label="MOD_VERSION_CALENDAR_SVG_DESCRIPTION_LABEL"
size="50"
maxlength="150"
class="text_area"
required="false"
filter="STRING"
hint="MOD_VERSION_CALENDAR_SVG_DESCRIPTION_HINT"
autocomplete="on"
/>
<!-- Color Field. Type: Color. (joomla) -->
<field
type="color"
name="color"
default="#5091cd"
label="MOD_VERSION_CALENDAR_SVG_COLOR_LABEL"
description="MOD_VERSION_CALENDAR_SVG_COLOR_DESCRIPTION"
required="true"
/>
<!-- Start Field. Type: Calendar. (joomla) -->
<field
type="calendar"
name="start"
label="MOD_VERSION_CALENDAR_SVG_START_LABEL"
format="%d-%m-%Y"
filter="CMD"
message="MOD_VERSION_CALENDAR_SVG_START_MESSAGE"
size="40"
required="true"
/>
<!-- End Field. Type: Calendar. (joomla) -->
<field
type="calendar"
name="end"
label="MOD_VERSION_CALENDAR_SVG_END_LABEL"
format="%d-%m-%Y"
filter="CMD"
message="MOD_VERSION_CALENDAR_SVG_END_MESSAGE"
size="40"
required="true"
/>
</form>
</field>
</form>
</field>
</fieldset>
</fields>
</config>
</extension>