@crystaldesign/diva-backoffice 26.5.0-beta.39 → 26.5.0-beta.40
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/build/esm/index.js
CHANGED
|
@@ -10098,6 +10098,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
10098
10098
|
hidden: function hidden(data) {
|
|
10099
10099
|
return !showCampaignFields(data);
|
|
10100
10100
|
}
|
|
10101
|
+
}, {
|
|
10102
|
+
name: ['settings', 'campaignSettings', 'variants'],
|
|
10103
|
+
label: t('backoffice.form.organizationdetails.items.variants'),
|
|
10104
|
+
tabgroup: t('backoffice.form.organizationdetails.campaignLandingPage'),
|
|
10105
|
+
type: 'select',
|
|
10106
|
+
mode: 'tags',
|
|
10107
|
+
hidden: function hidden(data) {
|
|
10108
|
+
return !showCampaignFields(data);
|
|
10109
|
+
}
|
|
10101
10110
|
}, {
|
|
10102
10111
|
name: ['settings', 'campaignSettings', 'metaCampaignId'],
|
|
10103
10112
|
label: t('backoffice.form.organizationdetails.items.metaCampaignId'),
|
|
@@ -10183,13 +10192,48 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
10183
10192
|
},
|
|
10184
10193
|
mainColorField: ['settings', 'campaignSettings', 'theme', 'secondaryColor']
|
|
10185
10194
|
}, {
|
|
10186
|
-
|
|
10195
|
+
type: 'subTitle',
|
|
10196
|
+
name: t('backoffice.form.organizationdetails.items.aboutData'),
|
|
10197
|
+
tabgroup: t('backoffice.form.organizationdetails.campaignLandingPage'),
|
|
10198
|
+
orientation: 'horizontal',
|
|
10199
|
+
style: {
|
|
10200
|
+
marginBottom: '20px'
|
|
10201
|
+
},
|
|
10202
|
+
hidden: function hidden(data) {
|
|
10203
|
+
return !showCampaignFields(data);
|
|
10204
|
+
}
|
|
10205
|
+
}, {
|
|
10206
|
+
name: ['settings', 'campaignSettings', 'aboutData', 'title'],
|
|
10207
|
+
label: t('backoffice.form.organizationdetails.items.aboutTitle'),
|
|
10208
|
+
tabgroup: t('backoffice.form.organizationdetails.campaignLandingPage'),
|
|
10209
|
+
type: 'input',
|
|
10210
|
+
hidden: function hidden(data) {
|
|
10211
|
+
return !showCampaignFields(data);
|
|
10212
|
+
}
|
|
10213
|
+
}, {
|
|
10214
|
+
name: ['settings', 'campaignSettings', 'aboutData', 'text'],
|
|
10187
10215
|
label: t('backoffice.form.organizationdetails.items.aboutText'),
|
|
10188
10216
|
tabgroup: t('backoffice.form.organizationdetails.campaignLandingPage'),
|
|
10189
10217
|
type: 'textarea',
|
|
10190
10218
|
hidden: function hidden(data) {
|
|
10191
10219
|
return !showCampaignFields(data);
|
|
10192
10220
|
}
|
|
10221
|
+
}, {
|
|
10222
|
+
name: ['settings', 'campaignSettings', 'aboutData', 'img', 'id'],
|
|
10223
|
+
label: t('backoffice.form.organizationdetails.items.aboutImg'),
|
|
10224
|
+
tabgroup: t('backoffice.form.organizationdetails.campaignLandingPage'),
|
|
10225
|
+
type: 'media',
|
|
10226
|
+
hideTrash: false,
|
|
10227
|
+
allowedTypes: ['image/*'],
|
|
10228
|
+
functionType: 'BAN',
|
|
10229
|
+
mediaItemRefField: 'refId',
|
|
10230
|
+
urlField: 'url',
|
|
10231
|
+
hidden: function hidden(data) {
|
|
10232
|
+
return !showCampaignFields(data);
|
|
10233
|
+
},
|
|
10234
|
+
onSave: function onSave(data) {
|
|
10235
|
+
return data;
|
|
10236
|
+
}
|
|
10193
10237
|
}, {
|
|
10194
10238
|
name: ['settings', 'campaignSettings', 'testimonials'],
|
|
10195
10239
|
label: t('backoffice.form.organizationdetails.items.testimonials'),
|
|
@@ -10206,6 +10250,10 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
10206
10250
|
name: 'name',
|
|
10207
10251
|
label: t('backoffice.form.organizationdetails.items.testimonialName'),
|
|
10208
10252
|
type: 'input'
|
|
10253
|
+
}, {
|
|
10254
|
+
name: 'location',
|
|
10255
|
+
label: t('backoffice.form.organizationdetails.items.testimonialLocation'),
|
|
10256
|
+
type: 'input'
|
|
10209
10257
|
}, {
|
|
10210
10258
|
name: 'additionalInfo',
|
|
10211
10259
|
label: t('backoffice.form.organizationdetails.items.testimonialAdditionalInfo'),
|
|
@@ -19077,7 +19125,6 @@ var _excluded$9 = ["key", "name"];
|
|
|
19077
19125
|
function ownKeys$1l(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; }
|
|
19078
19126
|
function _objectSpread$1l(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1l(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1l(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19079
19127
|
var FormList$2 = function FormList(_ref) {
|
|
19080
|
-
var _item$initialValue;
|
|
19081
19128
|
var value = _ref.value,
|
|
19082
19129
|
item = _ref.item,
|
|
19083
19130
|
state = _ref.state,
|
|
@@ -19104,13 +19151,16 @@ var FormList$2 = function FormList(_ref) {
|
|
|
19104
19151
|
var add = function add(a) {
|
|
19105
19152
|
a();
|
|
19106
19153
|
};
|
|
19154
|
+
var initialValue = useMemo(function () {
|
|
19155
|
+
return value !== null && value !== void 0 ? value : item.initialValue;
|
|
19156
|
+
}, [item.initialValue, value]);
|
|
19107
19157
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
19108
19158
|
children: [/*#__PURE__*/jsx(Divider, {
|
|
19109
19159
|
orientation: "horizontal",
|
|
19110
19160
|
children: item.label ? t(item.label) : Array.isArray(item.name) ? t(item.name[0].toString()) : t(item.name)
|
|
19111
19161
|
}), /*#__PURE__*/jsx(Form$2.List, {
|
|
19112
19162
|
name: absoluteName,
|
|
19113
|
-
initialValue:
|
|
19163
|
+
initialValue: initialValue,
|
|
19114
19164
|
children: function children(fields, _ref2) {
|
|
19115
19165
|
var a = _ref2.add,
|
|
19116
19166
|
r = _ref2.remove;
|
|
@@ -22408,16 +22458,20 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
|
|
|
22408
22458
|
translationPrefix: item.translationPrefix
|
|
22409
22459
|
});
|
|
22410
22460
|
case 'array':
|
|
22411
|
-
|
|
22412
|
-
|
|
22413
|
-
|
|
22414
|
-
|
|
22415
|
-
|
|
22416
|
-
|
|
22417
|
-
|
|
22418
|
-
|
|
22419
|
-
|
|
22420
|
-
|
|
22461
|
+
{
|
|
22462
|
+
var arrayValue = state.getData(absoluteName, state.data);
|
|
22463
|
+
return /*#__PURE__*/jsx(FormList$3, {
|
|
22464
|
+
value: arrayValue,
|
|
22465
|
+
item: item,
|
|
22466
|
+
state: state,
|
|
22467
|
+
onError: _onError,
|
|
22468
|
+
root: root,
|
|
22469
|
+
setCanSave: setCanSave,
|
|
22470
|
+
form: form,
|
|
22471
|
+
postFixName: postFixName,
|
|
22472
|
+
absoluteName: absoluteName
|
|
22473
|
+
});
|
|
22474
|
+
}
|
|
22421
22475
|
case 'translation':
|
|
22422
22476
|
return /*#__PURE__*/jsx(Translation$1, {
|
|
22423
22477
|
item: item,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Form/Fields/FormList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAQ,MAAM,aAAa,CAAC;AACjD,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/ui/Form/Fields/FormList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAQ,MAAM,aAAa,CAAC;AACjD,OAAO,KAAkB,MAAM,OAAO,CAAC;AACvC,OAAO,EA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B,IAAI,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,EACxB,MAAM,CAAC,EAAE,OAAO,EAEhB,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/Form/elements.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAW,YAAY,EAAwB,MAAM,MAAM,CAAC;AACnE,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAc,MAAM,SAAS,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAoB1C,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,GAAG,EACf,KAAK,EAAE,SAAS,EAChB,YAAY,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAC1C,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EACjE,OAAO,EAAE,GAAG,EACZ,IAAI,CAAC,EAAE,SAAS,EAChB,IAAI,CAAC,EAAE,YAAY,CAAC,GAAG,CAAC,EACxB,MAAM,CAAC,EAAE,OAAO,EAEhB,WAAW,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,qBA+P3C;AAQD,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,uBAY/C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "26.5.0-beta.
|
|
3
|
+
"version": "26.5.0-beta.40",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@ant-design/icons": "6.1.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "26.5.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "26.5.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "26.5.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "26.5.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "26.5.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "26.5.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "26.5.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "26.5.0-beta.40",
|
|
19
|
+
"@crystaldesign/content-item": "26.5.0-beta.40",
|
|
20
|
+
"@crystaldesign/diva-core": "26.5.0-beta.40",
|
|
21
|
+
"@crystaldesign/diva-utils": "26.5.0-beta.40",
|
|
22
|
+
"@crystaldesign/media-upload": "26.5.0-beta.40",
|
|
23
|
+
"@crystaldesign/rtf-editor": "26.5.0-beta.40",
|
|
24
|
+
"@crystaldesign/spreadsheet": "26.5.0-beta.40",
|
|
25
25
|
"@google/genai": "^1.22.0",
|
|
26
26
|
"@google/model-viewer": "3.5.0",
|
|
27
27
|
"ag-charts-community": "^10.1.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
},
|
|
54
54
|
"module": "build/esm/index.js",
|
|
55
55
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "c6311f72589fb3c9a3b65a28117116a391569605"
|
|
57
57
|
}
|