Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 85 additions & 66 deletions src/components/accordions.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
export default [
{
name: 'Variable',
name: "Variable",
fields: [
{ name: 'name', hideFor: 'FormImage' },
'fieldValue',
'label',
'dataFormat',
'dataMask',
'validation',
'readonly',
'disabled',
'initiallyChecked',
'screen',
'multipleUpload',
'linkUrl',
'collection',
'record',
'collectionmode',
'submitCollectionCheck',
{ name: "name", hideFor: "FormImage" },
"fieldValue",
"label",
"dataFormat",
"dataMask",
"validation",
"readonly",
"disabled",
"initiallyChecked",
"screen",
"multipleUpload",
"linkUrl",
"collection",
"record",
"collectionmode",
"submitCollectionCheck"
],
open: true,
open: true
},
{
name: 'Configuration',
name: "Configuration",
fields: [
{ name: 'name', showFor: 'FormImage' },
'image',
'eventData',
'tooltip',
'type',
'placeholder',
'content',
'helper',
'Multiselect checkbox (doesn’t exist)',
'richtext',
'rows',
{ name: 'options', showFor: 'FormMultiColumn' },
'form',
'editable',
{ name: "name", showFor: "FormImage" },
"image",
"eventData",
"tooltip",
"type",
"placeholder",
"content",
"helper",
"Multiselect checkbox (doesn’t exist)",
"richtext",
"rows",
{ name: "options", showFor: "FormMultiColumn" },
"form",
"editable"
],
open: false,
open: false
},
{
name(control) {
Expand All @@ -50,43 +50,62 @@ export default [
return control.component === "FormRecordList" ? "Columns" : "Data Source";
},
fields: [
'fields',
'paginationOption',
{ name: 'options', hideFor: 'FormMultiColumn' },
"fields",
"paginationOption",
{ name: "options", hideFor: "FormMultiColumn" }
],
open: false,
open: false
},
{
name: 'Design',
fields: ['color', 'bgcolor', 'variant', 'toggle', 'height', 'width', 'designerMode', 'bgcolormodern'],
open: false,
name: "Design",
fields: [
"color",
"bgcolor",
"variant",
"toggle",
"height",
"width",
"designerMode",
"bgcolormodern"
],
open: false
},
{
name: 'Advanced',
fields: ['conditionalHide', 'deviceVisibility', 'customCssSelector', 'defaultValue', 'showForDesktop',
{name: 'customFormatter', showFor: 'FormInput'},
{name: 'ariaLabel', showFor: 'FormInput'},
{name: 'ariaLabel', showFor: 'FormSelectList'},
{name: 'ariaLabel', showFor: 'FormDatePicker'},
{name: 'ariaLabel', showFor: 'FormCheckbox'},
{name: 'ariaLabel', showFor: 'FormDatePicker'},
{name: 'ariaLabel', showFor: 'FileUpload'},
{name: 'ariaLabel', showFor: 'FileDownload'},
{name: 'ariaLabel', showFor: 'FormSelectList'},
{name: 'ariaLabel', showFor: 'FormButton'},
{name: 'ariaLabel', showFor: 'FormTextArea'},
{name: 'tabindex', showFor: 'FormInput'},
{name: 'tabindex', showFor: 'FormSelectList'},
{name: 'tabindex', showFor: 'FormDatePicker'},
{name: 'tabindex', showFor: 'FormCheckbox'},
{name: 'tabindex', showFor: 'FormDatePicker'},
{name: 'tabindex', showFor: 'FileUpload'},
{name: 'tabindex', showFor: 'FileDownload'},
{name: 'tabindex', showFor: 'FormSelectList'},
{name: 'tabindex', showFor: 'FormButton'},
{name: 'tabindex', showFor: 'FormTextArea'},
{name: 'encryptedConfig', showFor: 'FormInput'},
name: "Advanced",
fields: [
"conditionalHide",
"deviceVisibility",
"customCssSelector",
"defaultValue",
"showForDesktop",
{ name: "customFormatter", showFor: "FormInput" },
{ name: "encryptedConfig", showFor: "FormInput" }
],
open: false,
open: false
},
{
name: "Accessibility",
fields: [
{ name: "ariaLabel", showFor: "FormInput" },
{ name: "ariaLabel", showFor: "FormSelectList" },
{ name: "ariaLabel", showFor: "FormDatePicker" },
{ name: "ariaLabel", showFor: "FormCheckbox" },
{ name: "ariaLabel", showFor: "FormDatePicker" },
{ name: "ariaLabel", showFor: "FileUpload" },
{ name: "ariaLabel", showFor: "FileDownload" },
{ name: "ariaLabel", showFor: "FormSelectList" },
{ name: "ariaLabel", showFor: "FormButton" },
{ name: "ariaLabel", showFor: "FormTextArea" },
{ name: "tabindex", showFor: "FormInput" },
{ name: "tabindex", showFor: "FormSelectList" },
{ name: "tabindex", showFor: "FormDatePicker" },
{ name: "tabindex", showFor: "FormCheckbox" },
{ name: "tabindex", showFor: "FileUpload" },
{ name: "tabindex", showFor: "FileDownload" },
{ name: "tabindex", showFor: "FormSelectList" },
{ name: "tabindex", showFor: "FormButton" },
{ name: "tabindex", showFor: "FormTextArea" }
],
open: false
}
];
4 changes: 2 additions & 2 deletions tests/e2e/specs/FormTextArea.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe("Form Text Area Field", () => {
{ position: "bottom" }
);
cy.get("[data-cy=screen-element-container]").click();
cy.get("[data-cy=accordion-Advanced]").click();
cy.get("[data-cy=accordion-Accessibility]").click();
cy.get("[data-cy=inspector-ariaLabel]").clear().type("Aria label test");
cy.get("[data-cy=mode-preview]").click();
cy.get("[data-cy=preview-content] [name=form_text_area_1]").should(
Expand All @@ -182,7 +182,7 @@ describe("Form Text Area Field", () => {
{ position: "bottom" }
);
cy.get("[data-cy=screen-element-container]").click();
cy.get("[data-cy=accordion-Advanced]").click();
cy.get("[data-cy=accordion-Accessibility]").click();
cy.get("[data-cy=inspector-tabindex]").clear().type("5");
cy.get("[data-cy=mode-preview]").click();
cy.get("[data-cy=preview-content] [name=form_text_area_1]").should(
Expand Down
Loading