/** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Progress.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form\Control; use ARUNOX\Plugins\REST\Generator\Config; use ARUNOX\Plugins\REST\Generator\Data\Form\Control; class Progress extends Control { /* ### VARIABLES ################################################ # */ protected array $ALLOWED_CONFIG = [ "api" => Config\Type::String, ]; /* ### PUBLIC FUNCTIONS ######################################### # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Checkbox.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form\Control; use ARUNOX\Plugins\REST\Generator\Config; use ARUNOX\Plugins\REST\Generator\Data\Form\Control; class Checkbox extends Control { /* ### VARIABLES ################################################ # */ protected array $ALLOWED_CONFIG = [ "options" => Config\Type::Array, ]; /* ### PUBLIC FUNCTIONS ######################################### # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Range.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form\Control; use ARUNOX\Plugins\REST\Generator\Config; use ARUNOX\Plugins\REST\Generator\Data\Form\Control; class Range extends Control { /* ### VARIABLES ################################################ # */ protected array $ALLOWED_CONFIG = [ "min" => Config\Type::Numeric, "max" => Config\Type::Numeric, "step" => Config\Type::Numeric, ]; /* ### PUBLIC FUNCTIONS ######################################### # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Textarea.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form\Control; use ARUNOX\Plugins\REST\Generator\Config; use ARUNOX\Plugins\REST\Generator\Data\Form\Control; class Textarea extends Control { /* ### VARIABLES ################################################ # */ protected array $ALLOWED_CONFIG = [ "lines" => Config\Type::Numeric, ]; /* ### PUBLIC FUNCTIONS ######################################### # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Radio.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form\Control; use ARUNOX\Plugins\REST\Generator\Config; use ARUNOX\Plugins\REST\Generator\Data\Form\Control; class Radio extends Control { /* ### VARIABLES ################################################ # */ protected array $ALLOWED_CONFIG = [ "options" => Config\Type::Array, ]; /* ### PUBLIC FUNCTIONS ######################################### # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Type.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form\Control; /* ### ENUMS ######################################################## # */ enum Type : string { case Tel = "tel"; case URL = "url"; case Text = "text"; case Code = "code"; case Date = "date"; case Time = "time"; case File = "file"; case Range = "range"; case Email = "email"; case Radio = "radio"; case Select = "select"; case Hidden = "hidden"; case Number = "number"; case Custom = "custom"; case DateTime = "datetime-local"; case Textarea = "textarea"; case Checkbox = "checkbox"; case Password = "password"; case Progress = "progress"; /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Password.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form\Control; use ARUNOX\Plugins\REST\Generator\Config; use ARUNOX\Plugins\REST\Generator\Data\Form\Control; class Password extends Control { /* ### VARIABLES ################################################ # */ protected array $ALLOWED_CONFIG = [ "confirm" => Config\Type::String, ]; /* ### PUBLIC FUNCTIONS ######################################### # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Select.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form\Control; use ARUNOX\Plugins\REST\Generator\Config; use ARUNOX\Plugins\REST\Generator\Data\Form\Control; class Select extends Control { /* ### VARIABLES ################################################ # */ protected array $ALLOWED_CONFIG = [ "choose" => Config\Type::String, "choose_id" => [ Config\Type::String, Config\Type::Numeric ], "options" => Config\Type::Array, ]; /* ### PUBLIC FUNCTIONS ######################################### # */ /* ### MAGIC FUNCTIONS ########################################## # */ } /** Datei: plugins/rest/library/ARUNOX/Plugins/REST/Generator/Data/Form/Control/Control.php **/ * @copyright 2025 ARUNOX * @version 1.0.0 * @since 1.0.0 File is created */ namespace ARUNOX\Plugins\REST\Generator\Data\Form; use ARUNOX\Plugins\REST\Generator\Config; use ARUNOX\Plugins\REST\Generator\Base\BaseGenerator; use ARUNOX\Plugins\REST\Generator\Helpers\ActionHelpers; use ARUNOX\Plugins\REST\Generator\Data\Form\Control\Type; class Control extends BaseGenerator { /* ### TRAITS ################################################### # */ use ActionHelpers; /* ### VARIABLES ################################################ # */ protected static ?string $PRIMARYKEY = "key"; protected ?string $GENERATOR = "control"; protected array $ALLOWED_CONFIG = [ "key" => Config\Type::String, "label" => Config\Type::String, "title" => Config\Type::String, "hint" => Config\Type::String, "required" => Config\Type::String, "readonly" => Config\Type::Bool, "validate" => [ Config\Type::Array, Config\Type::String ], "value" => [ Config\Type::Scalar, Config\Type::Array ], "type" => Control\Type::class ]; /* ### PUBLIC FUNCTIONS ######################################### # */ /* ### MAGIC FUNCTIONS ########################################## # */ }