Plugin Directory


Ignore:
Timestamp:
10/15/2026 07:29:29 PM (4 days ago)
Author:
roxyapi
Message:

Update to version 1.21.0 from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roxyapi/trunk/src/Generated/Forms/GetPlanetaryPositionsForm.php

    r3747703 r3749195  
    1919
    2020        public static function spec(): array {
     21                $labels = \RoxyAPI\Generated\FormLabels::for_language( \RoxyAPI\Support\Language::from_locale( determine_locale() ) );
    2122                return array(
    2223                        'operation_id' => 'getPlanetaryPositions',
    2324                        'title'        => __( 'Planetary Positions', 'roxyapi' ),
    2425                        'submit_label' => __( 'Get reading', 'roxyapi' ),
    25                         'fold_optional' => true,
     26                        'locations'    => array( array( 'anchor' => 'latitude', 'section' => '', 'id' => '', 'fields' => array( 'latitude' => 'latitude', 'longitude' => 'longitude', 'timezone' => 'timezone' ) ) ),
    2627                        'sections'     => array(
    2728
    … …  
    3031                                array(
    3132                                        'name' => 'date',
    32                                         'label' => __( 'Date', 'roxyapi' ),
     33                                        'label' => $labels['fields']['date'] ?? 'Date',
    3334                                        'required' => true,
    34                                         'help' => __( 'Target date for planetary positions in YYYY-MM-DD format', 'roxyapi' ),
    3535                                        'type' => 'date',
     36                                        'fold' => false,
    3637                                ),
    3738                                array(
    3839                                        'name' => 'time',
    39                                         'label' => __( 'Time', 'roxyapi' ),
     40                                        'label' => $labels['fields']['time'] ?? 'Time',
    4041                                        'required' => true,
    41                                         'help' => __( 'Time in 24-hour HH:MM:SS format for precise calculations', 'roxyapi' ),
    4242                                        'type' => 'time',
     43                                        'fold' => false,
    4344                                ),
    4445                                array(
    4546                                        'name' => 'nodeType',
    46                                         'label' => __( 'Node type', 'roxyapi' ),
     47                                        'label' => $labels['fields']['nodeType'] ?? 'Lunar node type',
    4748                                        'required' => false,
    48                                         'help' => __( 'Lunar node convention', 'roxyapi' ),
    4949                                        'type' => 'enum',
    5050                                        'enum' => array( 'mean', 'true' ),
     51                                        'default' => 'true',
     52                                        'enum_labels' => array( $labels['enums']['nodeType.mean'] ?? 'Mean', $labels['enums']['nodeType.true'] ?? 'True' ),
     53                                        'fold' => true,
    5154                                ),
    5255                                array(
    5356                                        'name' => 'latitude',
    54                                         'label' => __( 'Latitude', 'roxyapi' ),
     57                                        'label' => $labels['fields']['latitude'] ?? 'Latitude',
    5558                                        'required' => true,
    56                                         'help' => __( 'Observer latitude in decimal degrees (-90 to 90)', 'roxyapi' ),
    5759                                        'type' => 'number',
    5860                                        'min' => -90,
    5961                                        'max' => 90,
    6062                                        'step' => 'any',
     63                                        'fold' => false,
    6164                                ),
    6265                                array(
    6366                                        'name' => 'longitude',
    64                                         'label' => __( 'Longitude', 'roxyapi' ),
     67                                        'label' => $labels['fields']['longitude'] ?? 'Longitude',
    6568                                        'required' => true,
    66                                         'help' => __( 'Observer longitude in decimal degrees (-180 to 180)', 'roxyapi' ),
    6769                                        'type' => 'number',
    6870                                        'min' => -180,
    6971                                        'max' => 180,
    7072                                        'step' => 'any',
     73                                        'fold' => false,
    7174                                ),
    7275                                array(
    7376                                        'name' => 'timezone',
    74                                         'label' => __( 'Timezone', 'roxyapi' ),
     77                                        'label' => $labels['fields']['timezone'] ?? 'Timezone',
    7578                                        'required' => true,
    7679                                        'help' => __( 'Select the timezone of the location.', 'roxyapi' ),
    7780                                        'type' => 'timezone',
     81                                        'min' => -14,
     82                                        'max' => 14,
     83                                        'fold' => false,
    7884                                ),
    7985                        ),
Note: See TracChangeset for help on using the changeset viewer.