@crystaldesign/diva-backoffice 25.13.0-beta.41 → 25.13.0-beta.43

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.
Files changed (2) hide show
  1. package/build/esm/index.js +44 -0
  2. package/package.json +9 -9
@@ -9368,6 +9368,50 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
9368
9368
  hidden: function hidden(data) {
9369
9369
  return (data === null || data === void 0 ? void 0 : data.type) !== 'RETAILER' && (data === null || data === void 0 ? void 0 : data.parentType) !== 'RETAILER';
9370
9370
  }
9371
+ },
9372
+ // Theme Configuration
9373
+ {
9374
+ name: ['settings', 'theme', 'main'],
9375
+ label: t('backoffice.form.organizationdetails.items.theme.main'),
9376
+ type: 'input',
9377
+ tabgroup: t('backoffice.form.organizationdetails.items.theme.tabgroup'),
9378
+ placeholder: '#713434',
9379
+ permission: 'backoffice_admin_organizations'
9380
+ }, {
9381
+ name: ['settings', 'theme', 'light'],
9382
+ label: t('backoffice.form.organizationdetails.items.theme.main_light'),
9383
+ type: 'input',
9384
+ tabgroup: t('backoffice.form.organizationdetails.items.theme.tabgroup'),
9385
+ placeholder: '#e4b9b8',
9386
+ permission: 'backoffice_admin_organizations'
9387
+ }, {
9388
+ name: ['settings', 'theme', 'dark'],
9389
+ label: t('backoffice.form.organizationdetails.items.theme.main_dark'),
9390
+ type: 'input',
9391
+ tabgroup: t('backoffice.form.organizationdetails.items.theme.tabgroup'),
9392
+ placeholder: '#42090e',
9393
+ permission: 'backoffice_admin_organizations'
9394
+ }, {
9395
+ name: ['settings', 'theme', 'customCssVariables'],
9396
+ label: t('backoffice.form.organizationdetails.items.theme.custom.variables'),
9397
+ type: 'textarea',
9398
+ tabgroup: t('backoffice.form.organizationdetails.items.theme.tabgroup'),
9399
+ placeholder: '--my-custom-css-variable: #ff0000;',
9400
+ onLoad: function onLoad(data) {
9401
+ var _data$settings7;
9402
+ var customCssVariables = data === null || data === void 0 || (_data$settings7 = data.settings) === null || _data$settings7 === void 0 || (_data$settings7 = _data$settings7.theme) === null || _data$settings7 === void 0 ? void 0 : _data$settings7.customCssVariables;
9403
+ if (!customCssVariables || _typeof(customCssVariables) === 'object' && !Object.keys(customCssVariables).length) return data;
9404
+ if (_typeof(data.settings.theme.customCssVariables) === 'object') {
9405
+ data.settings.theme.customCssVariables = Object.entries(data.settings.theme.customCssVariables).map(function (_ref) {
9406
+ var _ref2 = _slicedToArray(_ref, 2),
9407
+ key = _ref2[0],
9408
+ value = _ref2[1];
9409
+ return "".concat(key, ": ").concat(value, ";");
9410
+ }).join('\n');
9411
+ }
9412
+ return data;
9413
+ },
9414
+ permission: 'backoffice_admin_organizations'
9371
9415
  }]
9372
9416
  },
9373
9417
  FromAffilateOrganizationDetails: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.13.0-beta.41",
3
+ "version": "25.13.0-beta.43",
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-beta.41",
19
- "@crystaldesign/content-item": "25.13.0-beta.41",
20
- "@crystaldesign/diva-core": "25.13.0-beta.41",
21
- "@crystaldesign/diva-utils": "25.13.0-beta.41",
22
- "@crystaldesign/media-upload": "25.13.0-beta.41",
23
- "@crystaldesign/rtf-editor": "25.13.0-beta.41",
24
- "@crystaldesign/spreadsheet": "25.13.0-beta.41",
18
+ "@crystaldesign/content-box": "25.13.0-beta.43",
19
+ "@crystaldesign/content-item": "25.13.0-beta.43",
20
+ "@crystaldesign/diva-core": "25.13.0-beta.43",
21
+ "@crystaldesign/diva-utils": "25.13.0-beta.43",
22
+ "@crystaldesign/media-upload": "25.13.0-beta.43",
23
+ "@crystaldesign/rtf-editor": "25.13.0-beta.43",
24
+ "@crystaldesign/spreadsheet": "25.13.0-beta.43",
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": "5e64cfd2c9967a1a7974728b330ec42cd5760939"
54
+ "gitHead": "196351759d00fbe65dbb60ef733d2efe0a88f14b"
55
55
  }