Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update forms docs #252

Open
11 tasks
iruzevic opened this issue Jul 31, 2023 · 0 comments · Fixed by #279
Open
11 tasks

Update forms docs #252

iruzevic opened this issue Jul 31, 2023 · 0 comments · Fixed by #279
Assignees

Comments

@iruzevic
Copy link
Member

iruzevic commented Jul 31, 2023

Missing docs:

  • esFormsROISF shortcode
  • es_forms_block_form_component_show_form filter
  • add filter beforeSuccessResponse
  • add filter afterCustomResultOutputProcess
  • refactor variation docs
  • add result output functionality
  • add mailerSuccessRedirectUrl, mailerEntryId, mailerEntryUrl response keys
  • remove filters successRedirectVariation, successRedirectVariationOptions, preResponseAddonData, preResponseSuccessRedirectData, resultOutputItems, resultOutputParts
  • extend esFormsROIP for result output
  • new filter es_forms_blocks_tailwind_selectors
  • new filter es_forms_block_rating_star_icon
\add_filter('es_forms_blocks_tailwind_selectors', [$this, 'getBlockFormsTailwindSelectors'], 10, 2);

	/**
	 * Get the block forms tailwind selectors.
	 *
	 * @param array<string, string> $attributes The block attributes.
	 *
	 * @return array<string, string>
	 */
	public function getBlockFormsTailwindSelectors(array $output, array $attributes): array
	{
		return $output;
	}
$output = [
	'forms' => [
		'base' => '',
	],
	'form' => [
		'base' => '',
		'parts' => [
			'fields' => '',
		],
	],
	'form-edit-actions' => [
		'base' => '',
		'parts' => [
			'link' => '',
		],
	],
	'loader' => [
		'base' => '',
	],
	'global-msg' => [
		'base' => '',
	],
	'field' => [
		'base' => '',
		'parts' => [
			'inner' => '',
			'label' => '',
			'label-inner' => '',
			'before-content' => '',
			'content' => '',
			'content-wrap' => '',
			'after-content' => '',
			'help' => '',
			'error' => '',
		],
	],
	'input' => [
		'base' => '',
		'parts' => [
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'range' => [
		'base' => '',
		'parts' => [
			'min' => '',
			'max' => '',
			'current' => '',
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'rating' => [
		'base' => '',
		'parts' => [
			'input' => '',
			'star' => '',
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'radios' => [
		'parts' => [
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'radio' => [
		'base' => '',
		'parts' => [
			'input' => '',
			'content' => '',
			'label' => '',
			'label-icon' => '',
			'label-inner' => '',
		],
	],
	'checkboxes' => [
		'parts' => [
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'checkbox' => [
		'base' => '',
		'parts' => [
			'input' => '',
			'content' => '',
			'label' => '',
			'label-icon' => '',
			'label-inner' => '',
			'help' => '',
		],
	],
	'file' => [
		'base' => '',
		'parts' => [
			'button' => '',
			'custom-wrap' => '',
			'info' => '',
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'phone' => [
		'base' => '',
		'parts' => [
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'textarea' => [
		'base' => '',
		'parts' => [
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'date' => [
		'base' => '',
		'parts' => [
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'submit' => [
		'base' => '',
		'parts' => [
			'inner' => '',
			'field' => '',
			'field-inner' => '',
			'field-label' => '',
			'field-label-inner' => '',
			'field-before-content' => '',
			'field-content' => '',
			'field-content-wrap' => '',
			'field-after-content' => '',
			'field-help' => '',
			'field-error' => '',
		],
	],
	'step' => [
		'base' => '',
		'parts' => [
			'debug-details' => '',
			'inner' => '',
			'navigation' => '',
			'navigation-inner' => '',
			'navigation-prev'	=> '',
			'navigation-next'	=> '',
		],
	],
	'step-navigation-prev' => [
		'base' => '',
		'parts' => [
			'inner' => '',
		],
	],
	'step-navigation-next' => [
		'base' => '',
		'parts' => [
			'inner' => '',
		],
	],
	'progress-bar' => [
		'base' => '',
		'parts' => [
			'item' => '',
			'item-inner' => '',
			'multiflow' => '',
			'multistep' => '',
		],
	],
];
@iruzevic iruzevic self-assigned this Jul 31, 2023
@iruzevic iruzevic mentioned this issue Jul 31, 2023
@iruzevic iruzevic pinned this issue Sep 27, 2023
@iruzevic iruzevic linked a pull request Oct 13, 2023 that will close this issue
@iruzevic iruzevic reopened this Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant