@k-int/stripes-kint-components 5.25.2 → 5.26.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/CHANGELOG.md +19 -0
- package/es/__mocks__/@folio/stripes/components.js +7 -3
- package/es/__mocks__/@folio/stripes/core.js +6 -4
- package/es/__mocks__/@folio/stripes/smart-components.js +6 -4
- package/es/__mocks__/react-query.js +6 -4
- package/es/__mocks__/react-router-dom.js +6 -6
- package/es/lib/ActionList/ActionList.js +33 -26
- package/es/lib/ActionList/ActionListFieldArray.js +119 -103
- package/es/lib/ComboButton/ComboButton.js +47 -42
- package/es/lib/CustomProperties/Config/CustomPropertiesLookup.js +17 -11
- package/es/lib/CustomProperties/Config/CustomPropertiesSettings.js +46 -42
- package/es/lib/CustomProperties/Config/CustomPropertyForm.js +58 -58
- package/es/lib/CustomProperties/Config/CustomPropertyForm.test.js +8 -4
- package/es/lib/CustomProperties/Config/CustomPropertyView.js +33 -32
- package/es/lib/CustomProperties/Config/CustomPropertyView.test.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEdit.js +1 -1
- package/es/lib/CustomProperties/Edit/CustomPropertiesEditCtx.js +3 -3
- package/es/lib/CustomProperties/Edit/CustomPropertiesListField.js +35 -29
- package/es/lib/CustomProperties/Edit/CustomPropertyField.js +59 -61
- package/es/lib/CustomProperties/Edit/CustomPropertyField.test.js +20 -20
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.js +2 -2
- package/es/lib/CustomProperties/Edit/CustomPropertyFormCard.test.js +1 -1
- package/es/lib/CustomProperties/Edit/testResources.js +12 -11
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilter.js +33 -22
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.js +35 -23
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterField.test.js +1 -1
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterFieldArray.js +6 -6
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.js +6 -3
- package/es/lib/CustomProperties/Filter/CustomPropertiesFilterForm.test.js +8 -4
- package/es/lib/CustomProperties/Filter/CustomPropertiesRule.js +17 -14
- package/es/lib/CustomProperties/Filter/testResources.js +2 -1
- package/es/lib/CustomProperties/Filter/useParseActiveFilterStrings.js +2 -1
- package/es/lib/CustomProperties/View/CustomPropertiesView.js +1 -1
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.js +26 -18
- package/es/lib/CustomProperties/View/CustomPropertiesViewCtx.test.js +6 -3
- package/es/lib/CustomProperties/View/CustomPropertyCard.js +11 -7
- package/es/lib/CycleButton/CycleButton.js +17 -9
- package/es/lib/EditableRefdataCategoryList/EditableRefdataCategoryList.js +46 -30
- package/es/lib/EditableRefdataList/EditableRefdataList.js +43 -33
- package/es/lib/EditableSettingsList/EditableSettingsListFieldArray/EditableSettingsListFieldArray.js +9 -5
- package/es/lib/EditableSettingsList/SettingField/EditSettingValue/EditSettingValue.js +6 -6
- package/es/lib/EditableSettingsList/SettingField/RenderSettingValue/RenderSettingValue.js +12 -10
- package/es/lib/EditableSettingsList/SettingField/SettingField.js +12 -8
- package/es/lib/EditableSettingsList/SettingField/SettingField.test.js +3 -3
- package/es/lib/FormModal/FormModal.js +32 -24
- package/es/lib/FormattedKintMessage/FormattedKintMessage.js +30 -23
- package/es/lib/IconSelect/IconSelect.js +32 -22
- package/es/lib/NoResultsMessage/NoResultsMessage.js +5 -4
- package/es/lib/NumberField/NumberField.js +25 -17
- package/es/lib/NumberField/NumberField.test.js +7 -6
- package/es/lib/QueryTypedown/QueryTypedown.js +15 -8
- package/es/lib/RefdataButtons/RefdataButtons.js +9 -6
- package/es/lib/RefdataCategoriesSettings/RefdataCategoriesSettings.js +26 -19
- package/es/lib/ResponsiveButtonGroup/ResponsiveButtonGroup.js +60 -48
- package/es/lib/ResponsiveButtonGroup/useResponsiveButtonGroupSizing.js +6 -5
- package/es/lib/RichSelect/RichSelect.js +36 -31
- package/es/lib/RichSelect/useSelectedOption.js +2 -1
- package/es/lib/SASQLookupComponent/SASQLookupComponent.js +94 -91
- package/es/lib/SASQLookupComponent/TableBody/TableBody.js +54 -42
- package/es/lib/SASQRoute/SASQRoute.js +29 -25
- package/es/lib/SASQViewComponent/SASQViewComponent.js +76 -68
- package/es/lib/SearchField/SearchField.js +13 -7
- package/es/lib/SearchKeyControl/SearchKeyControl.js +13 -8
- package/es/lib/SearchKeyControl/SearchKeyControl.test.js +6 -2
- package/es/lib/SettingPage/SettingPagePane/SettingPagePane.js +2 -2
- package/es/lib/SettingsFormContainer/SettingsFormContainer.js +35 -30
- package/es/lib/Tags/Tags.js +8 -5
- package/es/lib/Tags/hooks/useTags.js +1 -1
- package/es/lib/Tags/hooks/useTagsEnabled.js +1 -1
- package/es/lib/Tags/tagsConfig.js +1 -1
- package/es/lib/Typedown/Typedown.js +28 -21
- package/es/lib/hooks/__mocks__/index.js +7 -3
- package/es/lib/hooks/intlHooks/useIntlKeyStore/useIntlKeyStore.js +26 -20
- package/es/lib/hooks/intlHooks/useKintIntl/useKintIntl.js +34 -24
- package/es/lib/hooks/typedownHooks/useTypedown.js +2 -2
- package/es/lib/hooks/typedownHooks/useTypedownToggle.js +2 -2
- package/es/lib/hooks/useActionListRef.js +1 -1
- package/es/lib/hooks/useActiveElement.js +1 -1
- package/es/lib/hooks/useCustomProperties.js +10 -6
- package/es/lib/hooks/useHelperApp.js +16 -13
- package/es/lib/hooks/useKiwtFieldArray.js +8 -7
- package/es/lib/hooks/useKiwtSASQuery.js +19 -15
- package/es/lib/hooks/useLocalPageStore.js +10 -7
- package/es/lib/hooks/useModConfigEntries.js +2 -2
- package/es/lib/hooks/useMutateCustomProperties/useMutateCustomProperties.js +17 -10
- package/es/lib/hooks/useMutateGeneric/useMutateGeneric.js +2 -2
- package/es/lib/hooks/useMutateModConfigEntry.js +2 -2
- package/es/lib/hooks/useMutateRefdataCategory/useMutateRefdataCategory.js +21 -15
- package/es/lib/hooks/useMutateRefdataValue/useMutateRefdataValue.js +23 -16
- package/es/lib/hooks/usePrevNextPagination.js +19 -17
- package/es/lib/hooks/useQIndex.js +14 -11
- package/es/lib/hooks/useRefdata.js +3 -3
- package/es/lib/hooks/useTemplates.js +4 -4
- package/es/lib/settingsHooks/useAppSettings/useAppSettings.js +11 -7
- package/es/lib/settingsHooks/useSettingSection/useSettingSection.js +18 -12
- package/es/lib/settingsHooks/useSettings/useSettings.js +60 -60
- package/es/lib/utils/buildUrl.js +3 -2
- package/es/lib/utils/filterParsers/deparseKiwtQueryFilters.js +5 -5
- package/es/lib/utils/filterParsers/parseKiwtQueryFilters.js +2 -2
- package/es/lib/utils/filterParsers/parseKiwtQueryGroups.js +5 -4
- package/es/lib/utils/filterParsers/parseKiwtQueryString.js +1 -1
- package/es/lib/utils/generateKiwtQueryParams/generateKiwtQueryParams.js +82 -70
- package/es/lib/utils/groupCustomPropertiesByCtx.js +9 -5
- package/es/lib/utils/matchString.js +7 -5
- package/es/lib/utils/parseErrorResponse.js +4 -3
- package/es/lib/utils/selectorSafe.js +3 -2
- package/es/lib/utils/sortByLabel.js +3 -2
- package/es/lib/validators/validators.js +9 -6
- package/package.json +1 -1
- package/src/lib/CustomProperties/Edit/CustomPropertiesListField.js +1 -1
- package/src/lib/SASQLookupComponent/README.md +1 -0
- package/src/lib/SASQLookupComponent/TableBody/README.md +15 -14
- package/src/lib/SASQLookupComponent/TableBody/TableBody.js +8 -3
- package/styles/TypeDown.css +3 -1
|
@@ -30,9 +30,9 @@ const CustomPropertyForm = _ref => {
|
|
|
30
30
|
change
|
|
31
31
|
} = (0, _reactFinalForm.useForm)();
|
|
32
32
|
const kintIntl = (0, _hooks.useKintIntl)(passedIntlKey, passedIntlNS);
|
|
33
|
-
const booleanToString = booleanValue => booleanValue
|
|
33
|
+
const booleanToString = booleanValue => booleanValue === null || booleanValue === void 0 ? void 0 : booleanValue.toString();
|
|
34
34
|
const stringToBoolean = stringValue => stringValue === 'true';
|
|
35
|
-
const [contextOptions, setContextOptions] = (0, _react.useState)(contextFilterOptions
|
|
35
|
+
const [contextOptions, setContextOptions] = (0, _react.useState)(contextFilterOptions === null || contextFilterOptions === void 0 ? void 0 : contextFilterOptions.filter(ctx => ctx.value !== '' && (ctx === null || ctx === void 0 ? void 0 : ctx.value) !== 'isNull'));
|
|
36
36
|
const addCtx = _ref2 => {
|
|
37
37
|
let {
|
|
38
38
|
_r,
|
|
@@ -56,7 +56,7 @@ const CustomPropertyForm = _ref => {
|
|
|
56
56
|
} else {
|
|
57
57
|
return kintIntl.formatKintMessage({
|
|
58
58
|
id: 'customProperties.ctx.addContext',
|
|
59
|
-
overrideValue: labelOverrides
|
|
59
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.addCtx
|
|
60
60
|
}, {
|
|
61
61
|
value: filterValue
|
|
62
62
|
});
|
|
@@ -66,7 +66,7 @@ const CustomPropertyForm = _ref => {
|
|
|
66
66
|
if (allValues.primary && allValues.retired) {
|
|
67
67
|
return kintIntl.formatKintMessage({
|
|
68
68
|
id: 'customProperties.errors.primaryRetired',
|
|
69
|
-
overrideValue: labelOverrides
|
|
69
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.primaryRetired
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
return null;
|
|
@@ -82,48 +82,48 @@ const CustomPropertyForm = _ref => {
|
|
|
82
82
|
value: ''
|
|
83
83
|
}, {
|
|
84
84
|
label: kintIntl.formatKintMessage({
|
|
85
|
-
id:
|
|
86
|
-
overrideValue: labelOverrides
|
|
85
|
+
id: "customProperties.type.".concat(_customProperties.DECIMAL_CLASS_NAME),
|
|
86
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.DECIMAL_CLASS_NAME]
|
|
87
87
|
}),
|
|
88
88
|
value: _customProperties.DECIMAL_CLASS_NAME
|
|
89
89
|
}, {
|
|
90
90
|
label: kintIntl.formatKintMessage({
|
|
91
|
-
id:
|
|
92
|
-
overrideValue: labelOverrides
|
|
91
|
+
id: "customProperties.type.".concat(_customProperties.INTEGER_CLASS_NAME),
|
|
92
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.INTEGER_CLASS_NAME]
|
|
93
93
|
}),
|
|
94
94
|
value: _customProperties.INTEGER_CLASS_NAME
|
|
95
95
|
}, {
|
|
96
96
|
label: kintIntl.formatKintMessage({
|
|
97
|
-
id:
|
|
98
|
-
overrideValue: labelOverrides
|
|
97
|
+
id: "customProperties.type.".concat(_customProperties.TEXT_CLASS_NAME),
|
|
98
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.TEXT_CLASS_NAME]
|
|
99
99
|
}),
|
|
100
100
|
value: _customProperties.TEXT_CLASS_NAME
|
|
101
101
|
}, {
|
|
102
102
|
label: kintIntl.formatKintMessage({
|
|
103
|
-
id:
|
|
104
|
-
overrideValue: labelOverrides
|
|
103
|
+
id: "customProperties.type.".concat(_customProperties.REFDATA_CLASS_NAME),
|
|
104
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.REFDATA_CLASS_NAME]
|
|
105
105
|
}),
|
|
106
106
|
value: _customProperties.REFDATA_CLASS_NAME
|
|
107
107
|
}, {
|
|
108
108
|
label: kintIntl.formatKintMessage({
|
|
109
|
-
id:
|
|
110
|
-
overrideValue: labelOverrides
|
|
109
|
+
id: "customProperties.type.".concat(_customProperties.MULTI_REFDATA_CLASS_NAME),
|
|
110
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.MULTI_REFDATA_CLASS_NAME]
|
|
111
111
|
}),
|
|
112
112
|
value: _customProperties.MULTI_REFDATA_CLASS_NAME
|
|
113
113
|
}, {
|
|
114
114
|
label: kintIntl.formatKintMessage({
|
|
115
|
-
id:
|
|
116
|
-
overrideValue: labelOverrides
|
|
115
|
+
id: "customProperties.type.".concat(_customProperties.DATE_CLASS_NAME),
|
|
116
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[_customProperties.DATE_CLASS_NAME]
|
|
117
117
|
}),
|
|
118
118
|
value: _customProperties.DATE_CLASS_NAME
|
|
119
119
|
}],
|
|
120
|
-
disabled: !!values
|
|
120
|
+
disabled: !!(values !== null && values !== void 0 && values.id),
|
|
121
121
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
122
122
|
children: [kintIntl.formatKintMessage({
|
|
123
123
|
id: 'customProperties.type',
|
|
124
|
-
overrideValue: labelOverrides
|
|
125
|
-
}), helpPopovers
|
|
126
|
-
content: helpPopovers
|
|
124
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.type
|
|
125
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.type ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
126
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.type
|
|
127
127
|
}) : null]
|
|
128
128
|
}),
|
|
129
129
|
name: "type",
|
|
@@ -132,19 +132,19 @@ const CustomPropertyForm = _ref => {
|
|
|
132
132
|
})
|
|
133
133
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
134
134
|
xs: 6,
|
|
135
|
-
children: (values
|
|
135
|
+
children: ((values === null || values === void 0 ? void 0 : values.type) === _customProperties.REFDATA_CLASS_NAME || (values === null || values === void 0 ? void 0 : values.type) === _customProperties.MULTI_REFDATA_CLASS_NAME) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactFinalForm.Field, {
|
|
136
136
|
component: _components.Select,
|
|
137
137
|
dataOptions: [{
|
|
138
138
|
label: '',
|
|
139
139
|
value: ''
|
|
140
140
|
}, ...refdata],
|
|
141
|
-
disabled: !!values
|
|
141
|
+
disabled: !!(values !== null && values !== void 0 && values.id),
|
|
142
142
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
143
143
|
children: [kintIntl.formatKintMessage({
|
|
144
144
|
id: 'customProperties.category',
|
|
145
|
-
overrideValue: labelOverrides
|
|
146
|
-
}), helpPopovers
|
|
147
|
-
content: helpPopovers
|
|
145
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.category
|
|
146
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.category ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
147
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.category
|
|
148
148
|
}) : null]
|
|
149
149
|
}),
|
|
150
150
|
name: "category",
|
|
@@ -161,9 +161,9 @@ const CustomPropertyForm = _ref => {
|
|
|
161
161
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
162
162
|
children: [kintIntl.formatKintMessage({
|
|
163
163
|
id: 'customProperties.label',
|
|
164
|
-
overrideValue: labelOverrides
|
|
165
|
-
}), helpPopovers
|
|
166
|
-
content: helpPopovers
|
|
164
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.label
|
|
165
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
166
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.label
|
|
167
167
|
}) : null]
|
|
168
168
|
}),
|
|
169
169
|
name: "label",
|
|
@@ -178,9 +178,9 @@ const CustomPropertyForm = _ref => {
|
|
|
178
178
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
179
179
|
children: [kintIntl.formatKintMessage({
|
|
180
180
|
id: 'customProperties.name',
|
|
181
|
-
overrideValue: labelOverrides
|
|
182
|
-
}), helpPopovers
|
|
183
|
-
content: helpPopovers
|
|
181
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.name
|
|
182
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.name ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
183
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.name
|
|
184
184
|
}) : null]
|
|
185
185
|
}),
|
|
186
186
|
name: "name",
|
|
@@ -189,7 +189,7 @@ const CustomPropertyForm = _ref => {
|
|
|
189
189
|
if (v && v.length) {
|
|
190
190
|
return /^[a-z][a-z0-9]*$/i.test(v) ? undefined : kintIntl.formatKintMessage({
|
|
191
191
|
id: 'errors.hasNonAlphaName',
|
|
192
|
-
overrideValue: labelOverrides
|
|
192
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.hasNonAlphaName
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
195
|
return (0, _validators.required)(v);
|
|
@@ -205,9 +205,9 @@ const CustomPropertyForm = _ref => {
|
|
|
205
205
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
206
206
|
children: [kintIntl.formatKintMessage({
|
|
207
207
|
id: 'customProperties.description',
|
|
208
|
-
overrideValue: labelOverrides
|
|
209
|
-
}), helpPopovers
|
|
210
|
-
content: helpPopovers
|
|
208
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.description
|
|
209
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.description ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
210
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.description
|
|
211
211
|
}) : null]
|
|
212
212
|
}),
|
|
213
213
|
name: "description",
|
|
@@ -227,20 +227,20 @@ const CustomPropertyForm = _ref => {
|
|
|
227
227
|
dataOptions: contextOptions,
|
|
228
228
|
emptyMessage: kintIntl.formatKintMessage({
|
|
229
229
|
id: 'customProperties.noCtxFound',
|
|
230
|
-
overrideValue: labelOverrides
|
|
230
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.noCtxFound
|
|
231
231
|
}),
|
|
232
232
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
233
233
|
children: [kintIntl.formatKintMessage({
|
|
234
234
|
id: 'customProperties.ctx',
|
|
235
|
-
overrideValue: labelOverrides
|
|
236
|
-
}), helpPopovers
|
|
237
|
-
content: helpPopovers
|
|
235
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.ctx
|
|
236
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.ctx ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
237
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.ctx
|
|
238
238
|
}) : null]
|
|
239
239
|
}),
|
|
240
240
|
name: "ctx",
|
|
241
241
|
onChange: selectedItems => {
|
|
242
242
|
if (selectedItems.length) {
|
|
243
|
-
change('ctx', [selectedItems
|
|
243
|
+
change('ctx', [selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems[(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) - 1]]);
|
|
244
244
|
} else {
|
|
245
245
|
change('ctx', undefined);
|
|
246
246
|
}
|
|
@@ -256,9 +256,9 @@ const CustomPropertyForm = _ref => {
|
|
|
256
256
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
257
257
|
children: [kintIntl.formatKintMessage({
|
|
258
258
|
id: 'customProperties.weight',
|
|
259
|
-
overrideValue: labelOverrides
|
|
260
|
-
}), helpPopovers
|
|
261
|
-
content: helpPopovers
|
|
259
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.weight
|
|
260
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.weight ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
261
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.weight
|
|
262
262
|
}) : null]
|
|
263
263
|
}),
|
|
264
264
|
name: "weight",
|
|
@@ -272,13 +272,13 @@ const CustomPropertyForm = _ref => {
|
|
|
272
272
|
dataOptions: [{
|
|
273
273
|
label: kintIntl.formatKintMessage({
|
|
274
274
|
id: 'yes',
|
|
275
|
-
overrideValue: labelOverrides
|
|
275
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.yes
|
|
276
276
|
}),
|
|
277
277
|
value: 'true'
|
|
278
278
|
}, {
|
|
279
279
|
label: kintIntl.formatKintMessage({
|
|
280
280
|
id: 'no',
|
|
281
|
-
overrideValue: labelOverrides
|
|
281
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.no
|
|
282
282
|
}),
|
|
283
283
|
value: 'false'
|
|
284
284
|
}],
|
|
@@ -286,9 +286,9 @@ const CustomPropertyForm = _ref => {
|
|
|
286
286
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
287
287
|
children: [kintIntl.formatKintMessage({
|
|
288
288
|
id: 'customProperties.primary',
|
|
289
|
-
overrideValue: labelOverrides
|
|
290
|
-
}), helpPopovers
|
|
291
|
-
content: helpPopovers
|
|
289
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.primary
|
|
290
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.primary ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
291
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.primary
|
|
292
292
|
}) : null]
|
|
293
293
|
}),
|
|
294
294
|
name: "primary",
|
|
@@ -303,13 +303,13 @@ const CustomPropertyForm = _ref => {
|
|
|
303
303
|
dataOptions: [{
|
|
304
304
|
label: kintIntl.formatKintMessage({
|
|
305
305
|
id: 'yes',
|
|
306
|
-
overrideValue: labelOverrides
|
|
306
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.yes
|
|
307
307
|
}),
|
|
308
308
|
value: 'true'
|
|
309
309
|
}, {
|
|
310
310
|
label: kintIntl.formatKintMessage({
|
|
311
311
|
id: 'no',
|
|
312
|
-
overrideValue: labelOverrides
|
|
312
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.no
|
|
313
313
|
}),
|
|
314
314
|
value: 'false'
|
|
315
315
|
}],
|
|
@@ -317,9 +317,9 @@ const CustomPropertyForm = _ref => {
|
|
|
317
317
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
318
318
|
children: [kintIntl.formatKintMessage({
|
|
319
319
|
id: 'customProperties.retired',
|
|
320
|
-
overrideValue: labelOverrides
|
|
321
|
-
}), helpPopovers
|
|
322
|
-
content: helpPopovers
|
|
320
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.retired
|
|
321
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.retired ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
322
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.retired
|
|
323
323
|
}) : null]
|
|
324
324
|
}),
|
|
325
325
|
name: "retired",
|
|
@@ -334,13 +334,13 @@ const CustomPropertyForm = _ref => {
|
|
|
334
334
|
dataOptions: [{
|
|
335
335
|
label: kintIntl.formatKintMessage({
|
|
336
336
|
id: 'customProperties.internalTrue',
|
|
337
|
-
overrideValue: labelOverrides
|
|
337
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.internalTrue
|
|
338
338
|
}),
|
|
339
339
|
value: 'true'
|
|
340
340
|
}, {
|
|
341
341
|
label: kintIntl.formatKintMessage({
|
|
342
342
|
id: 'customProperties.internalFalse',
|
|
343
|
-
overrideValue: labelOverrides
|
|
343
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.internalFalse
|
|
344
344
|
}),
|
|
345
345
|
value: 'false'
|
|
346
346
|
}],
|
|
@@ -348,9 +348,9 @@ const CustomPropertyForm = _ref => {
|
|
|
348
348
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
349
349
|
children: [kintIntl.formatKintMessage({
|
|
350
350
|
id: 'customProperties.defaultVisibility',
|
|
351
|
-
overrideValue: labelOverrides
|
|
352
|
-
}), helpPopovers
|
|
353
|
-
content: helpPopovers
|
|
351
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.defaultVisibility
|
|
352
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.defaultVisibility ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
353
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.defaultVisibility
|
|
354
354
|
}) : null]
|
|
355
355
|
}),
|
|
356
356
|
name: "defaultInternal",
|
|
@@ -8,15 +8,19 @@ var _customProperties = _interopRequireDefault(require("../../../../test/jest/cu
|
|
|
8
8
|
var _jest = require("../../../../test/jest");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
15
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
|
+
const initialValues = _objectSpread(_objectSpread({}, _customProperties.default === null || _customProperties.default === void 0 ? void 0 : _customProperties.default.find(cp => cp.name === 'test')), {}, {
|
|
13
17
|
// Just massage the type/ctx value to be of the shape the form expects
|
|
14
18
|
type: 'Decimal',
|
|
15
19
|
ctx: [{
|
|
16
20
|
value: 'OpenAccess',
|
|
17
21
|
label: 'OpenAccess'
|
|
18
22
|
}]
|
|
19
|
-
};
|
|
23
|
+
});
|
|
20
24
|
const onSubmit = jest.fn();
|
|
21
25
|
jest.mock('../../hooks');
|
|
22
26
|
describe('CustomPropertyForm', () => {
|
|
@@ -140,7 +144,7 @@ describe('CustomPropertyForm', () => {
|
|
|
140
144
|
name: 'Primary'
|
|
141
145
|
})).toHaveDisplayValue('Yes');
|
|
142
146
|
});
|
|
143
|
-
['Decimal', 'Refdata (multi-select)', 'Refdata', 'Text', 'Integer'].forEach(type => it(
|
|
147
|
+
['Decimal', 'Refdata (multi-select)', 'Refdata', 'Text', 'Integer'].forEach(type => it("Displays expected ".concat(type, " option"), () => {
|
|
144
148
|
const {
|
|
145
149
|
getByText
|
|
146
150
|
} = renderComponent;
|
|
@@ -12,6 +12,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
// A default option for CustProp view pane, with the ability to override labels for fields
|
|
14
14
|
const CustomPropertyView = _ref => {
|
|
15
|
+
var _customProperty$ctx, _customProperty$categ, _customProperty$categ2;
|
|
15
16
|
let {
|
|
16
17
|
customProperty,
|
|
17
18
|
helpPopovers,
|
|
@@ -28,12 +29,12 @@ const CustomPropertyView = _ref => {
|
|
|
28
29
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
29
30
|
children: [kintIntl.formatKintMessage({
|
|
30
31
|
id: 'customProperties.label',
|
|
31
|
-
overrideValue: labelOverrides
|
|
32
|
-
}), helpPopovers
|
|
33
|
-
content: helpPopovers
|
|
32
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.label
|
|
33
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
34
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.label
|
|
34
35
|
}) : null]
|
|
35
36
|
}),
|
|
36
|
-
value: customProperty
|
|
37
|
+
value: customProperty === null || customProperty === void 0 ? void 0 : customProperty.label
|
|
37
38
|
})
|
|
38
39
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
39
40
|
xs: 6,
|
|
@@ -41,12 +42,12 @@ const CustomPropertyView = _ref => {
|
|
|
41
42
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
42
43
|
children: [kintIntl.formatKintMessage({
|
|
43
44
|
id: 'customProperties.name',
|
|
44
|
-
overrideValue: labelOverrides
|
|
45
|
-
}), helpPopovers
|
|
46
|
-
content: helpPopovers
|
|
45
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.name
|
|
46
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.name ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
47
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.name
|
|
47
48
|
}) : null]
|
|
48
49
|
}),
|
|
49
|
-
value: customProperty
|
|
50
|
+
value: customProperty === null || customProperty === void 0 ? void 0 : customProperty.name
|
|
50
51
|
})
|
|
51
52
|
})]
|
|
52
53
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Row, {
|
|
@@ -55,9 +56,9 @@ const CustomPropertyView = _ref => {
|
|
|
55
56
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
|
|
56
57
|
label: kintIntl.formatKintMessage({
|
|
57
58
|
id: 'customProperties.description',
|
|
58
|
-
overrideValue: labelOverrides
|
|
59
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.description
|
|
59
60
|
}),
|
|
60
|
-
value: customProperty
|
|
61
|
+
value: customProperty === null || customProperty === void 0 ? void 0 : customProperty.description
|
|
61
62
|
})
|
|
62
63
|
})
|
|
63
64
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Row, {
|
|
@@ -66,11 +67,11 @@ const CustomPropertyView = _ref => {
|
|
|
66
67
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
|
|
67
68
|
label: kintIntl.formatKintMessage({
|
|
68
69
|
id: 'customProperties.primary',
|
|
69
|
-
overrideValue: labelOverrides
|
|
70
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.primary
|
|
70
71
|
}),
|
|
71
72
|
value: kintIntl.formatKintMessage({
|
|
72
|
-
id: customProperty
|
|
73
|
-
overrideValue: customProperty
|
|
73
|
+
id: customProperty !== null && customProperty !== void 0 && customProperty.primary ? 'yes' : 'no',
|
|
74
|
+
overrideValue: customProperty !== null && customProperty !== void 0 && customProperty.primary ? labelOverrides.yes : labelOverrides.no
|
|
74
75
|
})
|
|
75
76
|
})
|
|
76
77
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
@@ -78,11 +79,11 @@ const CustomPropertyView = _ref => {
|
|
|
78
79
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
|
|
79
80
|
label: kintIntl.formatKintMessage({
|
|
80
81
|
id: 'customProperties.retired',
|
|
81
|
-
overrideValue: labelOverrides
|
|
82
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.retired
|
|
82
83
|
}),
|
|
83
84
|
value: kintIntl.formatKintMessage({
|
|
84
|
-
id: customProperty
|
|
85
|
-
overrideValue: customProperty
|
|
85
|
+
id: customProperty !== null && customProperty !== void 0 && customProperty.retired ? 'yes' : 'no',
|
|
86
|
+
overrideValue: customProperty !== null && customProperty !== void 0 && customProperty.retired ? labelOverrides.yes : labelOverrides.no
|
|
86
87
|
})
|
|
87
88
|
})
|
|
88
89
|
})]
|
|
@@ -92,20 +93,20 @@ const CustomPropertyView = _ref => {
|
|
|
92
93
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
|
|
93
94
|
label: kintIntl.formatKintMessage({
|
|
94
95
|
id: 'customProperties.weight',
|
|
95
|
-
overrideValue: labelOverrides
|
|
96
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.weight
|
|
96
97
|
}),
|
|
97
|
-
value: customProperty
|
|
98
|
+
value: customProperty === null || customProperty === void 0 ? void 0 : customProperty.weight
|
|
98
99
|
})
|
|
99
100
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
100
101
|
xs: 6,
|
|
101
102
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
|
|
102
103
|
label: kintIntl.formatKintMessage({
|
|
103
104
|
id: 'customProperties.defaultVisibility',
|
|
104
|
-
overrideValue: labelOverrides
|
|
105
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.defaultVisibility
|
|
105
106
|
}),
|
|
106
107
|
value: kintIntl.formatKintMessage({
|
|
107
|
-
id: customProperty
|
|
108
|
-
overrideValue: customProperty
|
|
108
|
+
id: customProperty !== null && customProperty !== void 0 && customProperty.defaultInternal ? 'customProperties.internalTrue' : 'customProperties.internalFalse',
|
|
109
|
+
overrideValue: customProperty !== null && customProperty !== void 0 && customProperty.defaultInternal ? labelOverrides.internalTrue : labelOverrides.internalFalse
|
|
109
110
|
})
|
|
110
111
|
})
|
|
111
112
|
})]
|
|
@@ -116,35 +117,35 @@ const CustomPropertyView = _ref => {
|
|
|
116
117
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
117
118
|
children: [kintIntl.formatKintMessage({
|
|
118
119
|
id: 'customProperties.ctx',
|
|
119
|
-
overrideValue: labelOverrides
|
|
120
|
-
}), helpPopovers
|
|
121
|
-
content: helpPopovers
|
|
120
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.ctx
|
|
121
|
+
}), helpPopovers !== null && helpPopovers !== void 0 && helpPopovers.ctx ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.InfoPopover, {
|
|
122
|
+
content: helpPopovers === null || helpPopovers === void 0 ? void 0 : helpPopovers.ctx
|
|
122
123
|
}) : null]
|
|
123
124
|
}),
|
|
124
|
-
value: customProperty
|
|
125
|
+
value: (_customProperty$ctx = customProperty === null || customProperty === void 0 ? void 0 : customProperty.ctx) !== null && _customProperty$ctx !== void 0 ? _customProperty$ctx : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.NoValue, {})
|
|
125
126
|
})
|
|
126
127
|
})
|
|
127
128
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_components.Row, {
|
|
128
129
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
129
130
|
xs: 6,
|
|
130
|
-
children: customProperty
|
|
131
|
+
children: (customProperty === null || customProperty === void 0 ? void 0 : customProperty.type) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
|
|
131
132
|
label: kintIntl.formatKintMessage({
|
|
132
133
|
id: 'customProperties.type',
|
|
133
|
-
overrideValue: labelOverrides
|
|
134
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.type
|
|
134
135
|
}),
|
|
135
136
|
value: kintIntl.formatKintMessage({
|
|
136
|
-
id:
|
|
137
|
-
overrideValue: labelOverrides
|
|
137
|
+
id: "customProperties.type.".concat(customProperty === null || customProperty === void 0 ? void 0 : customProperty.type),
|
|
138
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides[customProperty === null || customProperty === void 0 ? void 0 : customProperty.type]
|
|
138
139
|
})
|
|
139
140
|
})
|
|
140
141
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Col, {
|
|
141
142
|
xs: 6,
|
|
142
|
-
children: (customProperty
|
|
143
|
+
children: ((customProperty === null || customProperty === void 0 ? void 0 : customProperty.type) === _customProperties.REFDATA_CLASS_NAME || (customProperty === null || customProperty === void 0 ? void 0 : customProperty.type) === _customProperties.MULTI_REFDATA_CLASS_NAME) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.KeyValue, {
|
|
143
144
|
label: kintIntl.formatKintMessage({
|
|
144
145
|
id: 'customProperties.category',
|
|
145
|
-
overrideValue: labelOverrides
|
|
146
|
+
overrideValue: labelOverrides === null || labelOverrides === void 0 ? void 0 : labelOverrides.category
|
|
146
147
|
}),
|
|
147
|
-
value: customProperty
|
|
148
|
+
value: (_customProperty$categ = customProperty === null || customProperty === void 0 || (_customProperty$categ2 = customProperty.category) === null || _customProperty$categ2 === void 0 ? void 0 : _customProperty$categ2.desc) !== null && _customProperty$categ !== void 0 ? _customProperty$categ : /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.NoValue, {})
|
|
148
149
|
})
|
|
149
150
|
})]
|
|
150
151
|
})]
|
|
@@ -13,7 +13,7 @@ describe('CustomPropertyView', () => {
|
|
|
13
13
|
beforeEach(() => {
|
|
14
14
|
(0, _jest.renderWithKintHarness)(/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactRouterDom.MemoryRouter, {
|
|
15
15
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertyView.default, {
|
|
16
|
-
customProperty: _customProperties.default
|
|
16
|
+
customProperty: _customProperties.default === null || _customProperties.default === void 0 ? void 0 : _customProperties.default.find(cp => cp.name === 'Eligible authors')
|
|
17
17
|
})
|
|
18
18
|
}));
|
|
19
19
|
});
|
|
@@ -26,7 +26,7 @@ const CustomPropertiesEdit = _ref => {
|
|
|
26
26
|
intlNS: passedIntlNS,
|
|
27
27
|
labelOverrides,
|
|
28
28
|
nameOverride
|
|
29
|
-
},
|
|
29
|
+
}, "customPropertiesEdit-".concat(ctx)));
|
|
30
30
|
};
|
|
31
31
|
CustomPropertiesEdit.propTypes = {
|
|
32
32
|
contexts: _propTypes.default.arrayOf(_propTypes.default.string),
|
|
@@ -35,7 +35,7 @@ const CustomPropertiesEditCtx = _ref => {
|
|
|
35
35
|
// Chain formatKintMessages together using provided fallbackMessage to
|
|
36
36
|
// allow for "If override or translation exists, use it, else use default"
|
|
37
37
|
return kintIntl.formatKintMessage({
|
|
38
|
-
id:
|
|
38
|
+
id: "customProperties.ctx.".concat(ctx),
|
|
39
39
|
overrideValue: labelOverrides[ctx],
|
|
40
40
|
fallbackMessage: kintIntl.formatKintMessage({
|
|
41
41
|
id: 'customProperties.defaultTitle',
|
|
@@ -66,7 +66,7 @@ const CustomPropertiesEditCtx = _ref => {
|
|
|
66
66
|
return null;
|
|
67
67
|
}
|
|
68
68
|
return custprops.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_components.Accordion, {
|
|
69
|
-
id:
|
|
69
|
+
id: "".concat(id, "-accordion-").concat(ctx),
|
|
70
70
|
label: getAccordionLabel(),
|
|
71
71
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CustomPropertiesListField.default, {
|
|
72
72
|
ctx: ctx,
|
|
@@ -74,7 +74,7 @@ const CustomPropertiesEditCtx = _ref => {
|
|
|
74
74
|
intlKey: passedIntlKey,
|
|
75
75
|
intlNS: passedIntlNS,
|
|
76
76
|
labelOverrides: labelOverrides,
|
|
77
|
-
name: nameOverride
|
|
77
|
+
name: nameOverride !== null && nameOverride !== void 0 ? nameOverride : 'customProperties'
|
|
78
78
|
})
|
|
79
79
|
});
|
|
80
80
|
};
|