@knovator/pagecreator-admin 1.5.9 → 1.6.1
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 -8
- package/index.js +9 -8
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -4029,8 +4029,6 @@ const DNDItemsList = ({
|
|
|
4029
4029
|
onFilterClick,
|
|
4030
4030
|
disableSettings: _disableSettings = false
|
|
4031
4031
|
}) => {
|
|
4032
|
-
console.log('listCode: ', listCode);
|
|
4033
|
-
console.log('items: ', items);
|
|
4034
4032
|
return /*#__PURE__*/React__default["default"].createElement(DragDropContextWrapper, {
|
|
4035
4033
|
onDragEnd: onDragEnd
|
|
4036
4034
|
}, /*#__PURE__*/React__default["default"].createElement(DroppableWrapper, {
|
|
@@ -7146,7 +7144,10 @@ const WidgetForm = ({
|
|
|
7146
7144
|
setError,
|
|
7147
7145
|
getValues
|
|
7148
7146
|
} = reactHookForm.useForm({
|
|
7149
|
-
shouldUnregister: false
|
|
7147
|
+
shouldUnregister: false,
|
|
7148
|
+
defaultValues: {
|
|
7149
|
+
backgroundColor: '#ffffff'
|
|
7150
|
+
}
|
|
7150
7151
|
});
|
|
7151
7152
|
const {
|
|
7152
7153
|
switchClass,
|
|
@@ -7529,11 +7530,6 @@ const WidgetForm = ({
|
|
|
7529
7530
|
required: widgetTranslations.itemsTypePlaceholder
|
|
7530
7531
|
},
|
|
7531
7532
|
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
7533
|
}, {
|
|
7538
7534
|
label: widgetTranslations.webPerRow,
|
|
7539
7535
|
accessor: 'webPerRow',
|
|
@@ -7596,6 +7592,11 @@ const WidgetForm = ({
|
|
|
7596
7592
|
listCode: selectedCollectionType === null || selectedCollectionType === void 0 ? void 0 : selectedCollectionType.value,
|
|
7597
7593
|
customStyles: reactSelectStyles || {},
|
|
7598
7594
|
selectKey: selectedCollectionType === null || selectedCollectionType === void 0 ? void 0 : selectedCollectionType.value
|
|
7595
|
+
}, {
|
|
7596
|
+
label: widgetTranslations.color,
|
|
7597
|
+
accessor: 'backgroundColor',
|
|
7598
|
+
type: 'color',
|
|
7599
|
+
className: 'khb_input-color'
|
|
7599
7600
|
}];
|
|
7600
7601
|
if (!canAdd || !canUpdate) return null;
|
|
7601
7602
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
package/index.js
CHANGED
|
@@ -4017,8 +4017,6 @@ const DNDItemsList = ({
|
|
|
4017
4017
|
onFilterClick,
|
|
4018
4018
|
disableSettings: _disableSettings = false
|
|
4019
4019
|
}) => {
|
|
4020
|
-
console.log('listCode: ', listCode);
|
|
4021
|
-
console.log('items: ', items);
|
|
4022
4020
|
return /*#__PURE__*/React.createElement(DragDropContextWrapper, {
|
|
4023
4021
|
onDragEnd: onDragEnd
|
|
4024
4022
|
}, /*#__PURE__*/React.createElement(DroppableWrapper, {
|
|
@@ -7134,7 +7132,10 @@ const WidgetForm = ({
|
|
|
7134
7132
|
setError,
|
|
7135
7133
|
getValues
|
|
7136
7134
|
} = useForm({
|
|
7137
|
-
shouldUnregister: false
|
|
7135
|
+
shouldUnregister: false,
|
|
7136
|
+
defaultValues: {
|
|
7137
|
+
backgroundColor: '#ffffff'
|
|
7138
|
+
}
|
|
7138
7139
|
});
|
|
7139
7140
|
const {
|
|
7140
7141
|
switchClass,
|
|
@@ -7517,11 +7518,6 @@ const WidgetForm = ({
|
|
|
7517
7518
|
required: widgetTranslations.itemsTypePlaceholder
|
|
7518
7519
|
},
|
|
7519
7520
|
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
7521
|
}, {
|
|
7526
7522
|
label: widgetTranslations.webPerRow,
|
|
7527
7523
|
accessor: 'webPerRow',
|
|
@@ -7584,6 +7580,11 @@ const WidgetForm = ({
|
|
|
7584
7580
|
listCode: selectedCollectionType === null || selectedCollectionType === void 0 ? void 0 : selectedCollectionType.value,
|
|
7585
7581
|
customStyles: reactSelectStyles || {},
|
|
7586
7582
|
selectKey: selectedCollectionType === null || selectedCollectionType === void 0 ? void 0 : selectedCollectionType.value
|
|
7583
|
+
}, {
|
|
7584
|
+
label: widgetTranslations.color,
|
|
7585
|
+
accessor: 'backgroundColor',
|
|
7586
|
+
type: 'color',
|
|
7587
|
+
className: 'khb_input-color'
|
|
7587
7588
|
}];
|
|
7588
7589
|
if (!canAdd || !canUpdate) return null;
|
|
7589
7590
|
return /*#__PURE__*/React.createElement("div", {
|