@crystaldesign/diva-backoffice 25.11.0-beta.2 → 25.11.0-beta.20

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 +26 -3
  2. package/package.json +9 -9
@@ -8686,6 +8686,20 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8686
8686
  label: t('backoffice.currentorg.items.shopType.store'),
8687
8687
  value: 'store'
8688
8688
  }]
8689
+ }, {
8690
+ name: ['settings', 'discountImage', 'id'],
8691
+ label: t('backoffice.form.organizationdetails.items.settings.discountImage'),
8692
+ permission: 'backoffice_admin_organizations',
8693
+ type: 'media',
8694
+ hideTrash: false,
8695
+ hidden: false,
8696
+ allowedTypes: ['image/*'],
8697
+ functionType: 'BAN',
8698
+ mediaItemRefField: 'refId',
8699
+ urlField: 'url',
8700
+ onSave: function onSave(data) {
8701
+ return data;
8702
+ }
8689
8703
  }, {
8690
8704
  type: 'subTitle',
8691
8705
  name: t('backoffice.form.organizationdetails.socialUrls'),
@@ -8811,6 +8825,15 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
8811
8825
  name: ''
8812
8826
  }],
8813
8827
  initialValue: []
8828
+ }, {
8829
+ type: 'subTitle',
8830
+ name: 'Sonstiges',
8831
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData')
8832
+ }, {
8833
+ name: ['settings', 'externalContactUrl'],
8834
+ label: t('backoffice.form.organizationdetails.items.settings.externalContactUrl'),
8835
+ tabgroup: t('backoffice.form.organizationdetails.additionalContactData'),
8836
+ type: 'input'
8814
8837
  }]
8815
8838
  },
8816
8839
  FromAffilateOrganizationDetails: {
@@ -17711,7 +17734,7 @@ var InputComponent = function InputComponent(_ref, ref) {
17711
17734
  value: item.type === 'dateinput' ? new Date((_item$value5 = item.value) !== null && _item$value5 !== void 0 ? _item$value5 : value).toLocaleString().replace('Invalid Date', '') : (_item$value6 = item.value) !== null && _item$value6 !== void 0 ? _item$value6 : value,
17712
17735
  placeholder: item.placeholder,
17713
17736
  onChange: function onChange(e) {
17714
- return _onChange === null || _onChange === void 0 ? void 0 : _onChange(item.name, e.target.value);
17737
+ return _onChange === null || _onChange === void 0 ? void 0 : _onChange(item.name, e.target.value.trim());
17715
17738
  }
17716
17739
  });
17717
17740
  };
@@ -20077,8 +20100,8 @@ function getElement(item, setCanSave, state, absoluteName, _onChange, _onError,
20077
20100
  disabled: disabled,
20078
20101
  value: item.value,
20079
20102
  placeholder: item.placeholder,
20080
- onBlur: function onBlur() {
20081
- return state.onInputChanged();
20103
+ onBlur: function onBlur(e) {
20104
+ return state.onInputChanged(item.name, e.target.value.trim());
20082
20105
  }
20083
20106
  });
20084
20107
  case 'detailaction':
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaldesign/diva-backoffice",
3
- "version": "25.11.0-beta.2",
3
+ "version": "25.11.0-beta.20",
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.11.0-beta.2",
19
- "@crystaldesign/content-item": "25.11.0-beta.2",
20
- "@crystaldesign/diva-core": "25.11.0-beta.2",
21
- "@crystaldesign/diva-utils": "25.11.0-beta.2",
22
- "@crystaldesign/media-upload": "25.11.0-beta.2",
23
- "@crystaldesign/rtf-editor": "25.11.0-beta.2",
24
- "@crystaldesign/spreadsheet": "25.11.0-beta.2",
18
+ "@crystaldesign/content-box": "25.11.0-beta.20",
19
+ "@crystaldesign/content-item": "25.11.0-beta.20",
20
+ "@crystaldesign/diva-core": "25.11.0-beta.20",
21
+ "@crystaldesign/diva-utils": "25.11.0-beta.20",
22
+ "@crystaldesign/media-upload": "25.11.0-beta.20",
23
+ "@crystaldesign/rtf-editor": "25.11.0-beta.20",
24
+ "@crystaldesign/spreadsheet": "25.11.0-beta.20",
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": "4375d48249af53b05153e48f68efd43a82bf43b5"
54
+ "gitHead": "7cd150fe282b157b09fbfecd0226fafce166e382"
55
55
  }