@crystaldesign/diva-backoffice 25.6.0-beta.7 → 25.6.0-beta.8
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 +193 -2
- package/package.json +9 -9
package/build/esm/index.js
CHANGED
@@ -1837,7 +1837,7 @@ function runThroughObjectReqursive(obj, apiConfig) {
|
|
1837
1837
|
}
|
1838
1838
|
}
|
1839
1839
|
function loadConfiguration(t, root, config, lang, apiConfig) {
|
1840
|
-
var _organization$setting, _organization$setting2, _organization$setting3, _organization$setting4, _parentOrganizations, _parentOrganizations2, _parentOrganizations3, _parentOrganizations4, _parentOrganizations5, _parentOrganizations6, _parentOrganizations7, _parentOrganizations8, _parentOrganizations9, _parentOrganizations10, _parentOrganizations11, _parentOrganizations12, _parentOrganizations13;
|
1840
|
+
var _organization$setting, _organization$setting2, _organization$setting3, _organization$setting4, _parentOrganizations, _parentOrganizations2, _parentOrganizations3, _parentOrganizations4, _parentOrganizations5, _parentOrganizations6, _parentOrganizations7, _parentOrganizations8, _parentOrganizations9, _parentOrganizations10, _parentOrganizations11, _parentOrganizations12, _parentOrganizations13, _parentOrganizations14, _parentOrganizations15, _parentOrganizations16, _parentOrganizations17, _parentOrganizations18, _parentOrganizations19;
|
1841
1841
|
var organization = toJS(root.dataStore.currentOrganization);
|
1842
1842
|
return {
|
1843
1843
|
TableApplicationLogs: {
|
@@ -3334,6 +3334,13 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
3334
3334
|
sorter: 4,
|
3335
3335
|
filter: 'search',
|
3336
3336
|
width: 100
|
3337
|
+
}, {
|
3338
|
+
title: t('backoffice.table.clientrelations.columns.idmenricher'),
|
3339
|
+
field: 'idmenricher',
|
3340
|
+
sorter: 4,
|
3341
|
+
filter: 'search',
|
3342
|
+
type: 'boolean',
|
3343
|
+
width: 100
|
3337
3344
|
}, {
|
3338
3345
|
title: t('backoffice.table.clientrelations.columns.created'),
|
3339
3346
|
field: 'created',
|
@@ -3418,7 +3425,7 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
3418
3425
|
inverted: true
|
3419
3426
|
},
|
3420
3427
|
search: {
|
3421
|
-
fields: ['nameSource', 'nameTarget', 'externalCloudName', 'state', 'name']
|
3428
|
+
fields: ['nameSource', 'nameTarget', 'externalCloudName', 'state', 'idmenricher', 'name']
|
3422
3429
|
}
|
3423
3430
|
},
|
3424
3431
|
rowAction: [{
|
@@ -10639,6 +10646,9 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
10639
10646
|
}, {
|
10640
10647
|
value: 'ASSOCIATION',
|
10641
10648
|
label: 'Verband'
|
10649
|
+
}, {
|
10650
|
+
value: 'ENRICHER',
|
10651
|
+
label: 'Retailer'
|
10642
10652
|
}]
|
10643
10653
|
},
|
10644
10654
|
itemSelectorReset: true,
|
@@ -11047,6 +11057,187 @@ function loadConfiguration(t, root, config, lang, apiConfig) {
|
|
11047
11057
|
type: 'checkbox',
|
11048
11058
|
required: false,
|
11049
11059
|
defaultValue: true
|
11060
|
+
}], [{
|
11061
|
+
name: 'name',
|
11062
|
+
label: t('backoffice.form.createclientrelation.name'),
|
11063
|
+
type: 'input',
|
11064
|
+
required: true
|
11065
|
+
}, {
|
11066
|
+
type: 'subTitle',
|
11067
|
+
orientation: 'center',
|
11068
|
+
name: t('backoffice.form.createclientrelation.src')
|
11069
|
+
}, {
|
11070
|
+
type: 'select',
|
11071
|
+
mode: 'single',
|
11072
|
+
label: t('backoffice.form.createclientrelation.externalCloudSource'),
|
11073
|
+
name: 'externalCloudSource',
|
11074
|
+
disabled: function disabled(d) {
|
11075
|
+
return d && (d.externalCloudTarget && d.externalCloudTarget._id !== 'LOCAL' || !!(d !== null && d !== void 0 && d.organizationSource));
|
11076
|
+
},
|
11077
|
+
required: true,
|
11078
|
+
selectMapping: {
|
11079
|
+
label: '${name}',
|
11080
|
+
value: '_id',
|
11081
|
+
prefilter: '[{hideInSource,ne,true}]',
|
11082
|
+
searchField: [{
|
11083
|
+
field: 'name',
|
11084
|
+
filter: 'contains'
|
11085
|
+
}, {
|
11086
|
+
field: '_id',
|
11087
|
+
filter: 'eq'
|
11088
|
+
}]
|
11089
|
+
},
|
11090
|
+
mapping: {
|
11091
|
+
type: 'body',
|
11092
|
+
map: [{
|
11093
|
+
targetField: '_id',
|
11094
|
+
globalValue: 'externalCloudSource'
|
11095
|
+
}]
|
11096
|
+
},
|
11097
|
+
useFirstValueAsDefault: true,
|
11098
|
+
apiInterface: {
|
11099
|
+
read: {
|
11100
|
+
list: '${authService}/externalclouds',
|
11101
|
+
filterServerSide: true
|
11102
|
+
}
|
11103
|
+
},
|
11104
|
+
canSetToUndefined: true
|
11105
|
+
}, {
|
11106
|
+
type: 'select',
|
11107
|
+
mode: 'single',
|
11108
|
+
label: t('backoffice.form.createclientrelation.organizationTarget'),
|
11109
|
+
name: 'organizationSource',
|
11110
|
+
hidden: function hidden(data) {
|
11111
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER';
|
11112
|
+
},
|
11113
|
+
required: true,
|
11114
|
+
selectMapping: {
|
11115
|
+
label: '${displayName}',
|
11116
|
+
value: '_id',
|
11117
|
+
searchField: [{
|
11118
|
+
field: 'displayName',
|
11119
|
+
filter: 'contains'
|
11120
|
+
}, {
|
11121
|
+
field: '_id',
|
11122
|
+
filter: 'eq'
|
11123
|
+
}],
|
11124
|
+
prefilter: '+[{type,eq,ASSOCIATION},{type,eq,RETAILER}]',
|
11125
|
+
prefilterMapping: {
|
11126
|
+
map: [{
|
11127
|
+
sourceField: 'externalCloudSource._id',
|
11128
|
+
targetField: 'cloudId'
|
11129
|
+
}],
|
11130
|
+
type: 'query'
|
11131
|
+
}
|
11132
|
+
},
|
11133
|
+
defaultValue: [organization].concat(_toConsumableArray((_parentOrganizations14 = organization.parentOrganizations) !== null && _parentOrganizations14 !== void 0 ? _parentOrganizations14 : [])).find(function (o) {
|
11134
|
+
return o.type === 'ASSOCIATION';
|
11135
|
+
}) ? {
|
11136
|
+
_id: [organization].concat(_toConsumableArray((_parentOrganizations15 = organization.parentOrganizations) !== null && _parentOrganizations15 !== void 0 ? _parentOrganizations15 : [])).find(function (o) {
|
11137
|
+
return o.type === 'ASSOCIATION';
|
11138
|
+
})._id,
|
11139
|
+
label: [organization].concat(_toConsumableArray((_parentOrganizations16 = organization.parentOrganizations) !== null && _parentOrganizations16 !== void 0 ? _parentOrganizations16 : [])).find(function (o) {
|
11140
|
+
return o.type === 'ASSOCIATION';
|
11141
|
+
}).displayName
|
11142
|
+
} : undefined,
|
11143
|
+
apiInterface: {
|
11144
|
+
read: {
|
11145
|
+
list: '${authService}/externalclouds/${cloudId}/organizations',
|
11146
|
+
filterServerSide: true
|
11147
|
+
}
|
11148
|
+
},
|
11149
|
+
canSetToUndefined: true
|
11150
|
+
}, {
|
11151
|
+
type: 'subTitle',
|
11152
|
+
orientation: 'center',
|
11153
|
+
name: t('backoffice.form.createclientrelation.targetretass')
|
11154
|
+
}, {
|
11155
|
+
type: 'select',
|
11156
|
+
mode: 'single',
|
11157
|
+
label: t('backoffice.form.createclientrelation.externalCloudTarget'),
|
11158
|
+
name: 'externalCloudTarget',
|
11159
|
+
hidden: function hidden(data) {
|
11160
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER';
|
11161
|
+
},
|
11162
|
+
required: true,
|
11163
|
+
selectMapping: {
|
11164
|
+
label: '${name}',
|
11165
|
+
value: '_id',
|
11166
|
+
prefilter: '[{hideInTarget,ne,true}]',
|
11167
|
+
searchField: [{
|
11168
|
+
field: 'name',
|
11169
|
+
filter: 'contains'
|
11170
|
+
}, {
|
11171
|
+
field: '_id',
|
11172
|
+
filter: 'eq'
|
11173
|
+
}]
|
11174
|
+
},
|
11175
|
+
apiInterface: {
|
11176
|
+
read: {
|
11177
|
+
list: '${authService}/externalclouds',
|
11178
|
+
filterServerSide: true
|
11179
|
+
}
|
11180
|
+
},
|
11181
|
+
useFirstValueAsDefault: true,
|
11182
|
+
canSetToUndefined: true
|
11183
|
+
}, {
|
11184
|
+
type: 'select',
|
11185
|
+
mode: 'single',
|
11186
|
+
label: t('backoffice.form.createclientrelation.organizationTarget'),
|
11187
|
+
name: 'organizationTarget',
|
11188
|
+
hidden: function hidden(data) {
|
11189
|
+
return (data === null || data === void 0 ? void 0 : data.type) === 'SUPPLIER';
|
11190
|
+
},
|
11191
|
+
required: true,
|
11192
|
+
selectMapping: {
|
11193
|
+
label: '${displayName}',
|
11194
|
+
value: '_id',
|
11195
|
+
searchField: [{
|
11196
|
+
field: 'displayName',
|
11197
|
+
filter: 'contains'
|
11198
|
+
}, {
|
11199
|
+
field: '_id',
|
11200
|
+
filter: 'eq'
|
11201
|
+
}],
|
11202
|
+
prefilter: '+[{type,eq,ASSOCIATION},{type,eq,RETAILER}]',
|
11203
|
+
prefilterMapping: {
|
11204
|
+
map: [{
|
11205
|
+
sourceField: 'externalCloudTarget._id',
|
11206
|
+
targetField: 'cloudId'
|
11207
|
+
}],
|
11208
|
+
type: 'query'
|
11209
|
+
}
|
11210
|
+
},
|
11211
|
+
apiInterface: {
|
11212
|
+
read: {
|
11213
|
+
list: '${authService}/externalclouds/${cloudId}/organizations',
|
11214
|
+
filterServerSide: true
|
11215
|
+
}
|
11216
|
+
},
|
11217
|
+
defaultValue: [organization].concat(_toConsumableArray((_parentOrganizations17 = organization.parentOrganizations) !== null && _parentOrganizations17 !== void 0 ? _parentOrganizations17 : [])).find(function (o) {
|
11218
|
+
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11219
|
+
}) ? {
|
11220
|
+
_id: [organization].concat(_toConsumableArray((_parentOrganizations18 = organization.parentOrganizations) !== null && _parentOrganizations18 !== void 0 ? _parentOrganizations18 : [])).find(function (o) {
|
11221
|
+
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11222
|
+
})._id,
|
11223
|
+
label: [organization].concat(_toConsumableArray((_parentOrganizations19 = organization.parentOrganizations) !== null && _parentOrganizations19 !== void 0 ? _parentOrganizations19 : [])).find(function (o) {
|
11224
|
+
return ['RETAILER', 'ASSOCIATION'].includes(o.type);
|
11225
|
+
}).displayName
|
11226
|
+
} : undefined,
|
11227
|
+
canSetToUndefined: true
|
11228
|
+
}, {
|
11229
|
+
label: t('backoffice.form.createclientrelation.aktivate'),
|
11230
|
+
name: 'state',
|
11231
|
+
type: 'checkbox',
|
11232
|
+
required: false,
|
11233
|
+
defaultValue: true
|
11234
|
+
}, {
|
11235
|
+
label: 'idmenricher',
|
11236
|
+
name: 'idmenricher',
|
11237
|
+
type: 'checkbox',
|
11238
|
+
required: false,
|
11239
|
+
defaultValue: true,
|
11240
|
+
hidden: true
|
11050
11241
|
}]]
|
11051
11242
|
},
|
11052
11243
|
FormPartlistArticlePrefix: {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
3
|
-
"version": "25.6.0-beta.
|
3
|
+
"version": "25.6.0-beta.8",
|
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.6.0-beta.
|
19
|
-
"@crystaldesign/content-item": "25.6.0-beta.
|
20
|
-
"@crystaldesign/diva-core": "25.6.0-beta.
|
21
|
-
"@crystaldesign/diva-utils": "25.6.0-beta.
|
22
|
-
"@crystaldesign/media-upload": "25.6.0-beta.
|
23
|
-
"@crystaldesign/rtf-editor": "25.6.0-beta.
|
24
|
-
"@crystaldesign/spreadsheet": "25.6.0-beta.
|
18
|
+
"@crystaldesign/content-box": "25.6.0-beta.8",
|
19
|
+
"@crystaldesign/content-item": "25.6.0-beta.8",
|
20
|
+
"@crystaldesign/diva-core": "25.6.0-beta.8",
|
21
|
+
"@crystaldesign/diva-utils": "25.6.0-beta.8",
|
22
|
+
"@crystaldesign/media-upload": "25.6.0-beta.8",
|
23
|
+
"@crystaldesign/rtf-editor": "25.6.0-beta.8",
|
24
|
+
"@crystaldesign/spreadsheet": "25.6.0-beta.8",
|
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": "67c30722f35f70790be18fcf17e714d6a7738ed6"
|
55
55
|
}
|