@crystaldesign/diva-backoffice 25.13.0-rc.3 → 25.13.0-rc.4
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
|
@@ -9215,14 +9215,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9215
9215
|
label: t('backoffice.form.organizationdetails.items.settings.externalContactUrl'),
|
|
9216
9216
|
tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
|
|
9217
9217
|
type: 'input'
|
|
9218
|
-
}, {
|
|
9219
|
-
name: t('backoffice.subtitle.ai'),
|
|
9220
|
-
type: 'subTitle',
|
|
9221
|
-
orientation: 'left',
|
|
9222
|
-
style: {
|
|
9223
|
-
marginBottom: '40px'
|
|
9224
|
-
},
|
|
9225
|
-
permission: 'backoffice_admin_organizations'
|
|
9226
9218
|
}, {
|
|
9227
9219
|
name: ['settings', 'aiSettings', 'monthlyOrgRenderingLimit'],
|
|
9228
9220
|
label: t('backoffice.form.organizationdetails.items.ai.monthlyOrgRenderingLimit'),
|
|
@@ -9230,7 +9222,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9230
9222
|
permission: 'backoffice_admin_organizations',
|
|
9231
9223
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9232
9224
|
hidden: function hidden(data) {
|
|
9233
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9225
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9234
9226
|
},
|
|
9235
9227
|
disabled: function disabled(data) {
|
|
9236
9228
|
var _data$settings;
|
|
@@ -9296,7 +9288,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9296
9288
|
permission: 'backoffice_admin_organizations',
|
|
9297
9289
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9298
9290
|
hidden: function hidden(data) {
|
|
9299
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9291
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9300
9292
|
},
|
|
9301
9293
|
disabled: function disabled(data) {
|
|
9302
9294
|
var _data$settings2;
|
|
@@ -9310,7 +9302,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9310
9302
|
permission: 'backoffice_admin_organizations',
|
|
9311
9303
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9312
9304
|
hidden: function hidden(data) {
|
|
9313
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9305
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9314
9306
|
},
|
|
9315
9307
|
disabled: function disabled(data) {
|
|
9316
9308
|
var _data$settings3;
|
|
@@ -9324,7 +9316,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9324
9316
|
permission: 'backoffice_admin_organizations',
|
|
9325
9317
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9326
9318
|
hidden: function hidden(data) {
|
|
9327
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9319
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9328
9320
|
},
|
|
9329
9321
|
disabled: function disabled(data) {
|
|
9330
9322
|
var _data$settings4;
|
|
@@ -9338,7 +9330,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9338
9330
|
permission: 'backoffice_admin_organizations',
|
|
9339
9331
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9340
9332
|
hidden: function hidden(data) {
|
|
9341
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9333
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9342
9334
|
},
|
|
9343
9335
|
disabled: function disabled(data) {
|
|
9344
9336
|
var _data$settings5;
|
|
@@ -9352,7 +9344,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9352
9344
|
permission: 'backoffice_admin_organizations',
|
|
9353
9345
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9354
9346
|
hidden: function hidden(data) {
|
|
9355
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9347
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9356
9348
|
},
|
|
9357
9349
|
disabled: function disabled(data) {
|
|
9358
9350
|
var _data$settings6;
|
|
@@ -9366,7 +9358,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9366
9358
|
permission: 'backoffice_admin_organizations',
|
|
9367
9359
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9368
9360
|
hidden: function hidden(data) {
|
|
9369
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9361
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9370
9362
|
},
|
|
9371
9363
|
helpText: 'anonymous enduser limit'
|
|
9372
9364
|
}, {
|
|
@@ -9376,7 +9368,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9376
9368
|
permission: 'backoffice_admin_organizations',
|
|
9377
9369
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9378
9370
|
hidden: function hidden(data) {
|
|
9379
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9371
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9380
9372
|
},
|
|
9381
9373
|
helpText: 'logged in enduser limit'
|
|
9382
9374
|
}, {
|
|
@@ -9386,7 +9378,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9386
9378
|
permission: 'backoffice_admin_organizations',
|
|
9387
9379
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9388
9380
|
hidden: function hidden(data) {
|
|
9389
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9381
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9390
9382
|
}
|
|
9391
9383
|
}, {
|
|
9392
9384
|
name: ['settings', 'aiSettings', 'noLimit'],
|
|
@@ -9396,7 +9388,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9396
9388
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9397
9389
|
defaultValue: false,
|
|
9398
9390
|
hidden: function hidden(data) {
|
|
9399
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9391
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9400
9392
|
}
|
|
9401
9393
|
},
|
|
9402
9394
|
// Theme Configuration
|
|
@@ -13414,6 +13406,14 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
13414
13406
|
create: '${adminService}/cache/invalidate'
|
|
13415
13407
|
}
|
|
13416
13408
|
},
|
|
13409
|
+
ButtonAiServiceCache: {
|
|
13410
|
+
type: 'CustomButton',
|
|
13411
|
+
text: t('backoffice.ButtonAnalyticsServiceCache'),
|
|
13412
|
+
resetAfterTime: 3,
|
|
13413
|
+
apiInterface: {
|
|
13414
|
+
create: '${aiService}/cache/invalidate'
|
|
13415
|
+
}
|
|
13416
|
+
},
|
|
13417
13417
|
ButtonAnalyticsServiceCache: {
|
|
13418
13418
|
type: 'CustomButton',
|
|
13419
13419
|
text: t('backoffice.ButtonAnalyticsServiceCache'),
|
|
@@ -13526,6 +13526,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
13526
13526
|
isTitle: true,
|
|
13527
13527
|
text: 'Admin Service'
|
|
13528
13528
|
},
|
|
13529
|
+
LabelAiService: {
|
|
13530
|
+
type: 'CustomText',
|
|
13531
|
+
isTitle: true,
|
|
13532
|
+
text: 'Ai Service'
|
|
13533
|
+
},
|
|
13529
13534
|
LabelAnalyticsService: {
|
|
13530
13535
|
type: 'CustomText',
|
|
13531
13536
|
isTitle: true,
|
|
@@ -14054,6 +14059,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
14054
14059
|
id: 'ButtonAdminServiceCache',
|
|
14055
14060
|
type: 'CustomButton'
|
|
14056
14061
|
}]
|
|
14062
|
+
}, {
|
|
14063
|
+
type: 'SideBySide',
|
|
14064
|
+
items: [{
|
|
14065
|
+
id: 'LabelAiService',
|
|
14066
|
+
type: 'CustomText'
|
|
14067
|
+
}, {
|
|
14068
|
+
id: 'ButtonAiServiceCache',
|
|
14069
|
+
type: 'CustomButton'
|
|
14070
|
+
}]
|
|
14057
14071
|
}, {
|
|
14058
14072
|
type: 'SideBySide',
|
|
14059
14073
|
items: [{
|
|
@@ -18498,6 +18512,19 @@ function useSelectSimpleData (_ref) {
|
|
|
18498
18512
|
});
|
|
18499
18513
|
return selected.value;
|
|
18500
18514
|
}, [selected]);
|
|
18515
|
+
|
|
18516
|
+
//initialize the selected value if it is not set yet and handle race condition between value and options
|
|
18517
|
+
useEffect(function () {
|
|
18518
|
+
if (value && options && selected == undefined) {
|
|
18519
|
+
var sel = findByValue(value, options, selectMapping);
|
|
18520
|
+
if (sel) {
|
|
18521
|
+
var selectedValues = Array.isArray(sel) ? sel.map(function (item) {
|
|
18522
|
+
return item.value;
|
|
18523
|
+
}) : sel.value;
|
|
18524
|
+
onSelectionChanged(selectedValues, sel);
|
|
18525
|
+
}
|
|
18526
|
+
}
|
|
18527
|
+
}, [value, options]);
|
|
18501
18528
|
var setLoadedOptions = function setLoadedOptions(options) {
|
|
18502
18529
|
var _options$;
|
|
18503
18530
|
setOptions(options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectSimpleData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SelectSimple/useSelectSimpleData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAiB,MAAM,SAAS,CAAC;AAOvE,MAAM,CAAC,OAAO,WAAW,EACvB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,KAAK,EACL,OAAO,EAAE,iBAAiB,EAC1B,eAAe,EACf,WAAW,GACZ,EAAE,qBAAqB;;;;
|
|
1
|
+
{"version":3,"file":"useSelectSimpleData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/SelectSimple/useSelectSimpleData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAiB,MAAM,SAAS,CAAC;AAOvE,MAAM,CAAC,OAAO,WAAW,EACvB,YAAY,EACZ,aAAa,EACb,UAAU,EACV,QAAQ,EACR,KAAK,EACL,OAAO,EAAE,iBAAiB,EAC1B,eAAe,EACf,WAAW,GACZ,EAAE,qBAAqB;;;;sBAkFa,GAAG,UAAU,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;;EAiB9E"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "25.13.0-rc.
|
|
3
|
+
"version": "25.13.0-rc.4",
|
|
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": "5.4.0",
|
|
17
17
|
"@babel/runtime": "7.24.7",
|
|
18
|
-
"@crystaldesign/content-box": "25.13.0-rc.
|
|
19
|
-
"@crystaldesign/content-item": "25.13.0-rc.
|
|
20
|
-
"@crystaldesign/diva-core": "25.13.0-rc.
|
|
21
|
-
"@crystaldesign/diva-utils": "25.13.0-rc.
|
|
22
|
-
"@crystaldesign/media-upload": "25.13.0-rc.
|
|
23
|
-
"@crystaldesign/rtf-editor": "25.13.0-rc.
|
|
24
|
-
"@crystaldesign/spreadsheet": "25.13.0-rc.
|
|
18
|
+
"@crystaldesign/content-box": "25.13.0-rc.4",
|
|
19
|
+
"@crystaldesign/content-item": "25.13.0-rc.4",
|
|
20
|
+
"@crystaldesign/diva-core": "25.13.0-rc.4",
|
|
21
|
+
"@crystaldesign/diva-utils": "25.13.0-rc.4",
|
|
22
|
+
"@crystaldesign/media-upload": "25.13.0-rc.4",
|
|
23
|
+
"@crystaldesign/rtf-editor": "25.13.0-rc.4",
|
|
24
|
+
"@crystaldesign/spreadsheet": "25.13.0-rc.4",
|
|
25
25
|
"@google/model-viewer": "3.5.0",
|
|
26
26
|
"ag-charts-community": "^10.1.0",
|
|
27
27
|
"ag-charts-react": "^10.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
},
|
|
52
52
|
"module": "build/esm/index.js",
|
|
53
53
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "5dae5150195252115fa6b0e01ac93ecbb1e4f17e"
|
|
55
55
|
}
|