Tests / metadata (push) Canceled after 0s
Tests / nova-credentials (push) Canceled after 0s
Tests / PHP 8.2 (push) Canceled after 0s
Tests / PHP 8.3 (push) Canceled after 0s
Tests / PHP 8.4 (push) Canceled after 0s
Tests / PHP 8.5 (push) Canceled after 0s
124 lines
4.4 KiB
PHP
124 lines
4.4 KiB
PHP
<?php
|
|
|
|
return [
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Enable Nova Form Dock
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| This option controls whether the package registers its stylesheet,
|
|
| JavaScript, and frontend configuration with Nova. Set it to false to
|
|
| disable the package completely without removing the Composer dependency.
|
|
|
|
|
*/
|
|
'enabled' => true,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Activation Mode
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| The "automatic" mode docks actions only when the natural form height is
|
|
| greater than the available viewport height. The "always" mode docks every
|
|
| supported full-page form regardless of its height.
|
|
|
|
|
| Supported values: "automatic", "always"
|
|
|
|
|
*/
|
|
'mode' => 'automatic',
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Minimum Form Height
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Define the minimum form height, in CSS pixels, required before automatic
|
|
| mode activates the dock. When this value is null, the package calculates
|
|
| the available viewport height dynamically for each form.
|
|
|
|
|
*/
|
|
'minimum_form_height' => null,
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Supported Form Types
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| These options independently enable the dock for Nova's full-page create
|
|
| and update forms. Relationship modals and attached-resource forms are
|
|
| excluded even when both options are enabled.
|
|
|
|
|
*/
|
|
'forms' => [
|
|
'create' => true,
|
|
'update' => true,
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Resource Scoping
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Scope the dock using Nova resource URI keys, such as "users" or "posts".
|
|
| Leave "only" empty to allow every resource. Resources in "except" are
|
|
| always excluded and take precedence over resources listed in "only".
|
|
|
|
|
*/
|
|
'resources' => [
|
|
'only' => [],
|
|
'except' => [],
|
|
],
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Dock Appearance
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Configure where the action dock appears and how Nova's existing buttons
|
|
| are arranged. These settings change only presentation; the original Nova
|
|
| buttons and their submission behavior remain unchanged.
|
|
|
|
|
*/
|
|
'appearance' => [
|
|
/*
|
|
| The desktop viewport edge used by the dock. Top and bottom docks use
|
|
| a horizontal layout, while left and right docks use a vertical layout.
|
|
|
|
|
| Supported values: "top", "bottom", "left", "right"
|
|
*/
|
|
'position' => 'bottom',
|
|
|
|
/*
|
|
| The viewport edge used on screens narrower than 768 pixels. Keeping
|
|
| this set to "bottom" provides a usable fallback when the desktop dock
|
|
| is positioned on the left or right side of the form.
|
|
|
|
|
| Supported values: "top", "bottom", "left", "right"
|
|
*/
|
|
'mobile_position' => 'bottom',
|
|
|
|
/*
|
|
| The button alignment inside the dock. For horizontal docks, "start"
|
|
| and "end" follow the document direction and therefore support RTL.
|
|
| For vertical docks, they correspond to the top and bottom respectively.
|
|
|
|
|
| Supported values: "start", "center", "end"
|
|
*/
|
|
'alignment' => 'end',
|
|
|
|
/*
|
|
| When enabled, mobile top and bottom docks place the primary submit
|
|
| button on its own row and arrange secondary actions compactly below it.
|
|
| Disable this option to retain Nova's default mobile button arrangement.
|
|
*/
|
|
'compact_mobile' => true,
|
|
|
|
/*
|
|
| The space, in CSS pixels, between the dock and its selected viewport
|
|
| edge. Bottom and vertically aligned docks also include the device's
|
|
| safe-area inset automatically when one is present.
|
|
*/
|
|
'floating_gap' => 12,
|
|
],
|
|
];
|