@knovator/pagecreator-admin 1.5.9 → 1.6.0
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/index.cjs +9 -6
- package/index.js +9 -6
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -7146,7 +7146,10 @@ const WidgetForm = ({
|
|
|
7146
7146
|
setError,
|
|
7147
7147
|
getValues
|
|
7148
7148
|
} = reactHookForm.useForm({
|
|
7149
|
-
shouldUnregister: false
|
|
7149
|
+
shouldUnregister: false,
|
|
7150
|
+
defaultValues: {
|
|
7151
|
+
backgroundColor: '#ffffff'
|
|
7152
|
+
}
|
|
7150
7153
|
});
|
|
7151
7154
|
const {
|
|
7152
7155
|
switchClass,
|
|
@@ -7529,11 +7532,6 @@ const WidgetForm = ({
|
|
|
7529
7532
|
required: widgetTranslations.itemsTypePlaceholder
|
|
7530
7533
|
},
|
|
7531
7534
|
options: (selectedWidgetType === null || selectedWidgetType === void 0 ? void 0 : selectedWidgetType.value) === constants.linksWidgetTypeValue ? itemsTypes.filter(item => item.value === constants.pagesItemsTypeValue) : (selectedWidgetType === null || selectedWidgetType === void 0 ? void 0 : selectedWidgetType.value) === constants.tabsWidgetTypeValue || (selectedWidgetType === null || selectedWidgetType === void 0 ? void 0 : selectedWidgetType.collectionsOnly) ? itemsTypes.filter(item => item.label !== constants.imageItemsTypeValue && item.value !== constants.pagesItemsTypeValue) : (selectedWidgetType === null || selectedWidgetType === void 0 ? void 0 : selectedWidgetType.imageOnly) ? itemsTypes.filter(item => item.label === constants.imageItemsTypeValue) : itemsTypes.filter(item => item.value !== constants.pagesItemsTypeValue)
|
|
7532
|
-
}, {
|
|
7533
|
-
label: widgetTranslations.color,
|
|
7534
|
-
accessor: 'backgroundColor',
|
|
7535
|
-
type: 'color',
|
|
7536
|
-
className: 'khb_input-color'
|
|
7537
7535
|
}, {
|
|
7538
7536
|
label: widgetTranslations.webPerRow,
|
|
7539
7537
|
accessor: 'webPerRow',
|
|
@@ -7596,6 +7594,11 @@ const WidgetForm = ({
|
|
|
7596
7594
|
listCode: selectedCollectionType === null || selectedCollectionType === void 0 ? void 0 : selectedCollectionType.value,
|
|
7597
7595
|
customStyles: reactSelectStyles || {},
|
|
7598
7596
|
selectKey: selectedCollectionType === null || selectedCollectionType === void 0 ? void 0 : selectedCollectionType.value
|
|
7597
|
+
}, {
|
|
7598
|
+
label: widgetTranslations.color,
|
|
7599
|
+
accessor: 'backgroundColor',
|
|
7600
|
+
type: 'color',
|
|
7601
|
+
className: 'khb_input-color'
|
|
7599
7602
|
}];
|
|
7600
7603
|
if (!canAdd || !canUpdate) return null;
|
|
7601
7604
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
package/index.js
CHANGED
|
@@ -7134,7 +7134,10 @@ const WidgetForm = ({
|
|
|
7134
7134
|
setError,
|
|
7135
7135
|
getValues
|
|
7136
7136
|
} = useForm({
|
|
7137
|
-
shouldUnregister: false
|
|
7137
|
+
shouldUnregister: false,
|
|
7138
|
+
defaultValues: {
|
|
7139
|
+
backgroundColor: '#ffffff'
|
|
7140
|
+
}
|
|
7138
7141
|
});
|
|
7139
7142
|
const {
|
|
7140
7143
|
switchClass,
|
|
@@ -7517,11 +7520,6 @@ const WidgetForm = ({
|
|
|
7517
7520
|
required: widgetTranslations.itemsTypePlaceholder
|
|
7518
7521
|
},
|
|
7519
7522
|
options: (selectedWidgetType === null || selectedWidgetType === void 0 ? void 0 : selectedWidgetType.value) === constants.linksWidgetTypeValue ? itemsTypes.filter(item => item.value === constants.pagesItemsTypeValue) : (selectedWidgetType === null || selectedWidgetType === void 0 ? void 0 : selectedWidgetType.value) === constants.tabsWidgetTypeValue || (selectedWidgetType === null || selectedWidgetType === void 0 ? void 0 : selectedWidgetType.collectionsOnly) ? itemsTypes.filter(item => item.label !== constants.imageItemsTypeValue && item.value !== constants.pagesItemsTypeValue) : (selectedWidgetType === null || selectedWidgetType === void 0 ? void 0 : selectedWidgetType.imageOnly) ? itemsTypes.filter(item => item.label === constants.imageItemsTypeValue) : itemsTypes.filter(item => item.value !== constants.pagesItemsTypeValue)
|
|
7520
|
-
}, {
|
|
7521
|
-
label: widgetTranslations.color,
|
|
7522
|
-
accessor: 'backgroundColor',
|
|
7523
|
-
type: 'color',
|
|
7524
|
-
className: 'khb_input-color'
|
|
7525
7523
|
}, {
|
|
7526
7524
|
label: widgetTranslations.webPerRow,
|
|
7527
7525
|
accessor: 'webPerRow',
|
|
@@ -7584,6 +7582,11 @@ const WidgetForm = ({
|
|
|
7584
7582
|
listCode: selectedCollectionType === null || selectedCollectionType === void 0 ? void 0 : selectedCollectionType.value,
|
|
7585
7583
|
customStyles: reactSelectStyles || {},
|
|
7586
7584
|
selectKey: selectedCollectionType === null || selectedCollectionType === void 0 ? void 0 : selectedCollectionType.value
|
|
7585
|
+
}, {
|
|
7586
|
+
label: widgetTranslations.color,
|
|
7587
|
+
accessor: 'backgroundColor',
|
|
7588
|
+
type: 'color',
|
|
7589
|
+
className: 'khb_input-color'
|
|
7587
7590
|
}];
|
|
7588
7591
|
if (!canAdd || !canUpdate) return null;
|
|
7589
7592
|
return /*#__PURE__*/React.createElement("div", {
|