Global

Members

(constant) ACTIONS_TYPES

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) Component

Convenience function that returns a component that provides the passed `value` as context.
Source:

(constant) DEFAULT_CONFIG

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) DRAG_FIELD_TYPE_MOVE

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) FIELD_TYPES

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) FILTER_NAMES

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) getLocalizedValue

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) getLocalizedValue

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) isEqualObjects

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) OPERATOR_OPTIONS_TYPES

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

(constant) PluginContext

Context for shared data, intended as a mechanism for sharing between a host application that uses `usePlugins()` and its hosted plugin modules.
Source:
In general, we expect the sidebarPanelId to correspond with the name of a plugin. Here we deal with the exceptions by mapping IDs to plugin names.
Source:

(constant) swallow

Failure to preload is a non-critical failure, so we'll use this to swallow rejected promises silently.
Source:

(constant) TOKEN_TYPE_ACCEPTS_IMPLICIT_MULTIPLICATION

A Token can be have one of the following types: Token.FUNCTION = 'Function'; Token.LEFT_PARENTHESIS = 'Left Parenthesis'; Token.LITERAL = 'Literal'; Token.OPERATOR = 'Operator'; Token.RIGHT_PARENTHESIS = 'Right Parenthesis'; Token.VARIABLE = 'Variable'; See https://github.com/liferay/liferay-portal/blob/e066954b019e5fcf42ca45b69fd4da595ad58029/modules/apps/dynamic-data-mapping/dynamic-data-mapping-form-builder/src/main/resources/META-INF/resources/js/expressions/Token.es.js#L26 for more details. Each key in the following dictionary represents the type of a token in which the value is matched with the possible tokens that can add an implicit multiplication.
Source:

Methods

findField()

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

getColumn(Object)

This component will override the Column from Form Renderer and will check if field to be rendered has a custom field. If the field has a custom field, render it instead of children.
Parameters:
Name Type Description
Object customFields You can override fields passing as parameter the customFields: const customFields = { required: (props) => }
Source:

getDataDefinitionField(field)

Gets a data definition from a field
Parameters:
Name Type Description
field object The field
Properties
Name Type Description
nestedFields Array.<Object> The array containing all nested fields. It may be undefined
settingsContext object The settings context of a field
Source:

getDefinitionField(dataDefinition, field)

Get unformatted definition field
Parameters:
Name Type Description
dataDefinition object
field object
Source:

getFieldSetDDMForm()

Converts a FieldSet from data-engine to form-builder data definition
Source:

getSearchRegex()

Copyright (c) 2000-present Liferay, Inc. All rights reserved. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
Source:

normalizeDataDefinition(dataDefinition, defaultLanguageIdnullable, normalizeFieldsetnullable)

Normalize Data Definition
Parameters:
Name Type Attributes Description
dataDefinition Object
defaultLanguageId String <nullable>
normalizeFieldset boolean <nullable>
Source:

normalizeDataLayout(dataLayout, defaultLanguageIdnullable)

Normalize Data Layout
Parameters:
Name Type Attributes Description
dataLayout Object
defaultLanguageId String <nullable>
Source:

normalizeDataLayoutRows(dataLayoutPages)

Normalize data layout rows
Parameters:
Name Type Description
dataLayoutPages Array
Source:

normalizeField(availableLanguageIds, field, defaultLanguageIdnullable)

some fields are translated with the language of themeDisplay.getDefaultLanguageId() which is not necessarily the language of dataDefinition, so we need to normalize all fields so that they receive themeDisplay.getDefaultLanguageId()
Parameters:
Name Type Attributes Description
availableLanguageIds Array
field Object
defaultLanguageId String <nullable>
Source:

normalizeRule(dataRule)

Normalize rule
Parameters:
Name Type Description
dataRule Object
Source:

partitionPanels()

Instead of using fake panels with an ID of `separator`, partition the panels array into an array of arrays; we'll draw a separator between each group.
Source: