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/CalculateTransitForm.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' => 'calculateTransit',
    2324                        'title'        => __( 'Transit Analysis', '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' => 'birthDate',
    32                                         'label' => __( 'Birth date', 'roxyapi' ),
     33                                        'label' => $labels['fields']['birthDate'] ?? 'Birth date',
    3334                                        'required' => true,
    34                                         'help' => __( 'Birth date in YYYY-MM-DD format', 'roxyapi' ),
    3535                                        'type' => 'date',
     36                                        'fold' => false,
    3637                                ),
    3738                                array(
    3839                                        'name' => 'birthTime',
    39                                         'label' => __( 'Birth time', 'roxyapi' ),
     40                                        'label' => $labels['fields']['birthTime'] ?? 'Birth time',
    4041                                        'required' => true,
    41                                         'help' => __( 'Birth time in HH:MM:SS format (24-hour)', 'roxyapi' ),
    4242                                        'type' => 'time',
     43                                        'fold' => false,
    4344                                ),
    4445                                array(
    4546                                        'name' => 'transitDate',
    46                                         'label' => __( 'Transit date', 'roxyapi' ),
     47                                        'label' => $labels['fields']['transitDate'] ?? 'Transit date',
    4748                                        'required' => true,
    48                                         'help' => __( 'Transit date to analyze in YYYY-MM-DD format', 'roxyapi' ),
    4949                                        'type' => 'date',
     50                                        'fold' => false,
    5051                                ),
    5152                                array(
    5253                                        'name' => 'transitTime',
    53                                         'label' => __( 'Transit time', 'roxyapi' ),
     54                                        'label' => $labels['fields']['transitTime'] ?? 'Transit time',
    5455                                        'required' => false,
    55                                         'help' => __( 'Transit time in HH:MM:SS format (24-hour)', 'roxyapi' ),
    5656                                        'type' => 'time',
     57                                        'fold' => true,
    5758                                ),
    5859                                array(
    5960                                        'name' => 'latitude',
    60                                         'label' => __( 'Latitude', 'roxyapi' ),
     61                                        'label' => $labels['fields']['latitude'] ?? 'Latitude',
    6162                                        'required' => true,
    62                                         'help' => __( 'Observer latitude in decimal degrees', 'roxyapi' ),
    6363                                        'type' => 'number',
    6464                                        'min' => -90,
    6565                                        'max' => 90,
    6666                                        'step' => 'any',
     67                                        'fold' => false,
    6768                                ),
    6869                                array(
    6970                                        'name' => 'longitude',
    70                                         'label' => __( 'Longitude', 'roxyapi' ),
     71                                        'label' => $labels['fields']['longitude'] ?? 'Longitude',
    7172                                        'required' => true,
    72                                         'help' => __( 'Observer longitude in decimal degrees', 'roxyapi' ),
    7373                                        'type' => 'number',
    7474                                        'min' => -180,
    7575                                        'max' => 180,
    7676                                        'step' => 'any',
     77                                        'fold' => false,
    7778                                ),
    7879                                array(
    7980                                        'name' => 'timezone',
    80                                         'label' => __( 'Timezone', 'roxyapi' ),
     81                                        'label' => $labels['fields']['timezone'] ?? 'Timezone',
    8182                                        'required' => false,
    8283                                        'help' => __( 'Select the timezone of the location.', 'roxyapi' ),
    8384                                        'type' => 'timezone',
     85                                        'min' => -14,
     86                                        'max' => 14,
     87                                        'default' => 5.5,
     88                                        'fold' => false,
    8489                                ),
    8590                                array(
    8691                                        'name' => 'coordinateSystem',
    87                                         'label' => __( 'Coordinate system', 'roxyapi' ),
     92                                        'label' => $labels['fields']['coordinateSystem'] ?? 'Coordinate system',
    8893                                        'required' => false,
    89                                         'help' => __( 'Coordinate system for longitude output', 'roxyapi' ),
    9094                                        'type' => 'enum',
    9195                                        'enum' => array( 'sidereal', 'tropical' ),
     96                                        'default' => 'sidereal',
     97                                        'enum_labels' => array( $labels['enums']['coordinateSystem.sidereal'] ?? 'Sidereal', $labels['enums']['coordinateSystem.tropical'] ?? 'Tropical' ),
     98                                        'fold' => true,
    9299                                ),
    93100                        ),
Note: See TracChangeset for help on using the changeset viewer.