@griddo/ax 11.6.2-rc.0 → 11.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "11.6.2
|
|
4
|
+
"version": "11.6.2",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -223,5 +223,5 @@
|
|
|
223
223
|
"publishConfig": {
|
|
224
224
|
"access": "public"
|
|
225
225
|
},
|
|
226
|
-
"gitHead": "
|
|
226
|
+
"gitHead": "ce1be2946a2f6320ce6b82d38a3cdd6277b13000"
|
|
227
227
|
}
|
|
@@ -127,14 +127,12 @@ const MixableComponentArray = (props: IMixableComponentArrayProps): JSX.Element
|
|
|
127
127
|
const handleToggleModal = () =>
|
|
128
128
|
isFormArr && setSelectedFormFieldAction ? setSelectedFormFieldAction(field) : toggleModal();
|
|
129
129
|
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
whiteList.length > 0 &&
|
|
134
|
-
(!isFormArr || (isFormArr && !!setSelectedFormFieldAction));
|
|
130
|
+
const isAbletoAdd = (!maxItems || fixedValue.length < maxItems) && !disabled && whiteList.length > 0;
|
|
131
|
+
|
|
132
|
+
const showAddItemButton = isAbletoAdd && (!isFormArr || (isFormArr && !!setSelectedFormFieldAction));
|
|
135
133
|
|
|
136
134
|
const showPasteModuleButton =
|
|
137
|
-
|
|
135
|
+
isAbletoAdd &&
|
|
138
136
|
(isModuleArr || objKey === "componentModules") &&
|
|
139
137
|
(modulesToPaste.length > 0 || unavailableModules.length > 0);
|
|
140
138
|
|
|
@@ -175,7 +173,7 @@ const MixableComponentArray = (props: IMixableComponentArrayProps): JSX.Element
|
|
|
175
173
|
actions={actions}
|
|
176
174
|
selectedContent={selectedContent}
|
|
177
175
|
disabled={disabled || isModuleDisabled}
|
|
178
|
-
canDuplicate={
|
|
176
|
+
canDuplicate={isAbletoAdd && !isModuleDeactivated}
|
|
179
177
|
canDelete={canDelete}
|
|
180
178
|
parentKey={objKey}
|
|
181
179
|
theme={theme}
|