@crystaldesign/diva-backoffice 25.14.0-beta.10 → 25.14.0-beta.11
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
|
@@ -9225,14 +9225,6 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9225
9225
|
label: t('backoffice.form.organizationdetails.items.settings.externalContactUrl'),
|
|
9226
9226
|
tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
|
|
9227
9227
|
type: 'input'
|
|
9228
|
-
}, {
|
|
9229
|
-
name: t('backoffice.subtitle.ai'),
|
|
9230
|
-
type: 'subTitle',
|
|
9231
|
-
orientation: 'left',
|
|
9232
|
-
style: {
|
|
9233
|
-
marginBottom: '40px'
|
|
9234
|
-
},
|
|
9235
|
-
permission: 'backoffice_admin_organizations'
|
|
9236
9228
|
}, {
|
|
9237
9229
|
name: ['settings', 'aiSettings', 'monthlyOrgRenderingLimit'],
|
|
9238
9230
|
label: t('backoffice.form.organizationdetails.items.ai.monthlyOrgRenderingLimit'),
|
|
@@ -9240,7 +9232,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9240
9232
|
permission: 'backoffice_admin_organizations',
|
|
9241
9233
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9242
9234
|
hidden: function hidden(data) {
|
|
9243
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9235
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9244
9236
|
},
|
|
9245
9237
|
disabled: function disabled(data) {
|
|
9246
9238
|
var _data$settings;
|
|
@@ -9306,7 +9298,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9306
9298
|
permission: 'backoffice_admin_organizations',
|
|
9307
9299
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9308
9300
|
hidden: function hidden(data) {
|
|
9309
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9301
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9310
9302
|
},
|
|
9311
9303
|
disabled: function disabled(data) {
|
|
9312
9304
|
var _data$settings2;
|
|
@@ -9320,7 +9312,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9320
9312
|
permission: 'backoffice_admin_organizations',
|
|
9321
9313
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9322
9314
|
hidden: function hidden(data) {
|
|
9323
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9315
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9324
9316
|
},
|
|
9325
9317
|
disabled: function disabled(data) {
|
|
9326
9318
|
var _data$settings3;
|
|
@@ -9334,7 +9326,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9334
9326
|
permission: 'backoffice_admin_organizations',
|
|
9335
9327
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9336
9328
|
hidden: function hidden(data) {
|
|
9337
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9329
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9338
9330
|
},
|
|
9339
9331
|
disabled: function disabled(data) {
|
|
9340
9332
|
var _data$settings4;
|
|
@@ -9348,7 +9340,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9348
9340
|
permission: 'backoffice_admin_organizations',
|
|
9349
9341
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9350
9342
|
hidden: function hidden(data) {
|
|
9351
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9343
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9352
9344
|
},
|
|
9353
9345
|
disabled: function disabled(data) {
|
|
9354
9346
|
var _data$settings5;
|
|
@@ -9362,7 +9354,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9362
9354
|
permission: 'backoffice_admin_organizations',
|
|
9363
9355
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9364
9356
|
hidden: function hidden(data) {
|
|
9365
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9357
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9366
9358
|
},
|
|
9367
9359
|
disabled: function disabled(data) {
|
|
9368
9360
|
var _data$settings6;
|
|
@@ -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: 'anonymous 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
|
helpText: 'logged in enduser limit'
|
|
9392
9384
|
}, {
|
|
@@ -9396,7 +9388,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9396
9388
|
permission: 'backoffice_admin_organizations',
|
|
9397
9389
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
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
|
name: ['settings', 'aiSettings', 'noLimit'],
|
|
@@ -9406,7 +9398,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
9406
9398
|
tabgroup: t('backoffice.form.organizationdetails.items.ai.tabgroup'),
|
|
9407
9399
|
defaultValue: false,
|
|
9408
9400
|
hidden: function hidden(data) {
|
|
9409
|
-
return (data === null || data === void 0 ? void 0 : data.type)
|
|
9401
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER' || (data === null || data === void 0 ? void 0 : data.parentType) === 'SUPPLIER';
|
|
9410
9402
|
}
|
|
9411
9403
|
},
|
|
9412
9404
|
// Theme Configuration
|
|
@@ -13424,6 +13416,14 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
13424
13416
|
create: '${adminService}/cache/invalidate'
|
|
13425
13417
|
}
|
|
13426
13418
|
},
|
|
13419
|
+
ButtonAiServiceCache: {
|
|
13420
|
+
type: 'CustomButton',
|
|
13421
|
+
text: t('backoffice.ButtonAnalyticsServiceCache'),
|
|
13422
|
+
resetAfterTime: 3,
|
|
13423
|
+
apiInterface: {
|
|
13424
|
+
create: '${aiService}/cache/invalidate'
|
|
13425
|
+
}
|
|
13426
|
+
},
|
|
13427
13427
|
ButtonAnalyticsServiceCache: {
|
|
13428
13428
|
type: 'CustomButton',
|
|
13429
13429
|
text: t('backoffice.ButtonAnalyticsServiceCache'),
|
|
@@ -13536,6 +13536,11 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
13536
13536
|
isTitle: true,
|
|
13537
13537
|
text: 'Admin Service'
|
|
13538
13538
|
},
|
|
13539
|
+
LabelAiService: {
|
|
13540
|
+
type: 'CustomText',
|
|
13541
|
+
isTitle: true,
|
|
13542
|
+
text: 'Ai Service'
|
|
13543
|
+
},
|
|
13539
13544
|
LabelAnalyticsService: {
|
|
13540
13545
|
type: 'CustomText',
|
|
13541
13546
|
isTitle: true,
|
|
@@ -14064,6 +14069,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
|
14064
14069
|
id: 'ButtonAdminServiceCache',
|
|
14065
14070
|
type: 'CustomButton'
|
|
14066
14071
|
}]
|
|
14072
|
+
}, {
|
|
14073
|
+
type: 'SideBySide',
|
|
14074
|
+
items: [{
|
|
14075
|
+
id: 'LabelAiService',
|
|
14076
|
+
type: 'CustomText'
|
|
14077
|
+
}, {
|
|
14078
|
+
id: 'ButtonAiServiceCache',
|
|
14079
|
+
type: 'CustomButton'
|
|
14080
|
+
}]
|
|
14067
14081
|
}, {
|
|
14068
14082
|
type: 'SideBySide',
|
|
14069
14083
|
items: [{
|
|
@@ -18508,6 +18522,19 @@ function useSelectSimpleData (_ref) {
|
|
|
18508
18522
|
});
|
|
18509
18523
|
return selected.value;
|
|
18510
18524
|
}, [selected]);
|
|
18525
|
+
|
|
18526
|
+
//initialize the selected value if it is not set yet and handle race condition between value and options
|
|
18527
|
+
useEffect(function () {
|
|
18528
|
+
if (value && options && selected == undefined) {
|
|
18529
|
+
var sel = findByValue(value, options, selectMapping);
|
|
18530
|
+
if (sel) {
|
|
18531
|
+
var selectedValues = Array.isArray(sel) ? sel.map(function (item) {
|
|
18532
|
+
return item.value;
|
|
18533
|
+
}) : sel.value;
|
|
18534
|
+
onSelectionChanged(selectedValues, sel);
|
|
18535
|
+
}
|
|
18536
|
+
}
|
|
18537
|
+
}, [value, options]);
|
|
18511
18538
|
var setLoadedOptions = function setLoadedOptions(options) {
|
|
18512
18539
|
var _options$;
|
|
18513
18540
|
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.14.0-beta.
|
|
3
|
+
"version": "25.14.0-beta.11",
|
|
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.14.0-beta.
|
|
19
|
-
"@crystaldesign/content-item": "25.14.0-beta.
|
|
20
|
-
"@crystaldesign/diva-core": "25.14.0-beta.
|
|
21
|
-
"@crystaldesign/diva-utils": "25.14.0-beta.
|
|
22
|
-
"@crystaldesign/media-upload": "25.14.0-beta.
|
|
23
|
-
"@crystaldesign/rtf-editor": "25.14.0-beta.
|
|
24
|
-
"@crystaldesign/spreadsheet": "25.14.0-beta.
|
|
18
|
+
"@crystaldesign/content-box": "25.14.0-beta.11",
|
|
19
|
+
"@crystaldesign/content-item": "25.14.0-beta.11",
|
|
20
|
+
"@crystaldesign/diva-core": "25.14.0-beta.11",
|
|
21
|
+
"@crystaldesign/diva-utils": "25.14.0-beta.11",
|
|
22
|
+
"@crystaldesign/media-upload": "25.14.0-beta.11",
|
|
23
|
+
"@crystaldesign/rtf-editor": "25.14.0-beta.11",
|
|
24
|
+
"@crystaldesign/spreadsheet": "25.14.0-beta.11",
|
|
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": "da3d89b6ddecc2ca97b45b14b962f4bc03bbe91b"
|
|
55
55
|
}
|