@crystaldesign/diva-backoffice 24.2.2-beta.2 → 24.2.2-rc.1
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
|
@@ -2054,37 +2054,7 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
2054
2054
|
}],
|
|
2055
2055
|
title: t('backoffice.table.allusers.roleselector.title'),
|
|
2056
2056
|
label: t('backoffice.table.allusers.roleselector.features')
|
|
2057
|
-
}
|
|
2058
|
-
actionType: 'Modal',
|
|
2059
|
-
title: t('backoffice.table.allusers.modal.title.aktivateuser'),
|
|
2060
|
-
text: t('backoffice.table.allusers.modal.text11'),
|
|
2061
|
-
label: t('backoffice.table.allusers.modal.label.aktivate'),
|
|
2062
|
-
type: 'Form',
|
|
2063
|
-
id: 'FormActivateUser',
|
|
2064
|
-
mapping: {
|
|
2065
|
-
type: 'body',
|
|
2066
|
-
map: [{
|
|
2067
|
-
sourceField: '_id',
|
|
2068
|
-
targetField: 'id'
|
|
2069
|
-
}, {
|
|
2070
|
-
sourceValue: window.location.origin,
|
|
2071
|
-
targetField: 'redirectTo'
|
|
2072
|
-
}]
|
|
2073
|
-
},
|
|
2074
|
-
rule: [{
|
|
2075
|
-
match: {
|
|
2076
|
-
sourceField: 'isActive',
|
|
2077
|
-
value: false
|
|
2078
|
-
}
|
|
2079
|
-
}]
|
|
2080
|
-
}],
|
|
2081
|
-
createAction: {
|
|
2082
|
-
actionType: 'Detail',
|
|
2083
|
-
type: 'Form',
|
|
2084
|
-
id: 'FormUserDetails',
|
|
2085
|
-
title: t('backoffice.table.allusers.createaction.title.userdetails'),
|
|
2086
|
-
permission: 'backoffice_admin_users'
|
|
2087
|
-
}
|
|
2057
|
+
}]
|
|
2088
2058
|
},
|
|
2089
2059
|
TableAllOrganizations: {
|
|
2090
2060
|
type: 'Table',
|
|
@@ -4006,15 +3976,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
4006
3976
|
targetField: 'organizationId'
|
|
4007
3977
|
}]
|
|
4008
3978
|
},
|
|
4009
|
-
createAction: {
|
|
4010
|
-
actionType: 'Detail',
|
|
4011
|
-
type: 'SelectOrCreate',
|
|
4012
|
-
id: 'SelectOrCreateNewMember',
|
|
4013
|
-
title: t('backoffice.table.allorgusers.createAction.title'),
|
|
4014
|
-
label: t('backoffice.table.allorgusers.createAction.title'),
|
|
4015
|
-
disableOnToggle: true,
|
|
4016
|
-
permission: 'backoffice_create_user'
|
|
4017
|
-
},
|
|
4018
3979
|
downloadAction: {
|
|
4019
3980
|
actionType: 'CsvExport',
|
|
4020
3981
|
fileName: 'benutzer'
|
|
@@ -4046,30 +4007,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
4046
4007
|
sourceField: 'phoneNumber'
|
|
4047
4008
|
}]
|
|
4048
4009
|
}
|
|
4049
|
-
}, {
|
|
4050
|
-
actionType: 'Modal',
|
|
4051
|
-
title: t('backoffice.table.allorgusers.rowAction.title.aktivateuser'),
|
|
4052
|
-
text: t('backoffice.table.allorgusers.rowAction.text'),
|
|
4053
|
-
label: t('backoffice.table.allorgusers.rowAction.lable.aktivate'),
|
|
4054
|
-
type: 'Form',
|
|
4055
|
-
id: 'FormActivateUser',
|
|
4056
|
-
permission: 'backoffice_create_user',
|
|
4057
|
-
mapping: {
|
|
4058
|
-
type: 'body',
|
|
4059
|
-
map: [{
|
|
4060
|
-
sourceField: '_id',
|
|
4061
|
-
targetField: 'id'
|
|
4062
|
-
}, {
|
|
4063
|
-
sourceValue: window.location.origin,
|
|
4064
|
-
targetField: 'redirectTo'
|
|
4065
|
-
}]
|
|
4066
|
-
},
|
|
4067
|
-
rule: [{
|
|
4068
|
-
match: {
|
|
4069
|
-
sourceField: 'isActive',
|
|
4070
|
-
value: false
|
|
4071
|
-
}
|
|
4072
|
-
}]
|
|
4073
4010
|
}]
|
|
4074
4011
|
},
|
|
4075
4012
|
TableViewpoints: {
|
|
@@ -5276,7 +5213,8 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5276
5213
|
}, {
|
|
5277
5214
|
title: t('backoffice.table.idmimports.fullName'),
|
|
5278
5215
|
field: 'fullName',
|
|
5279
|
-
sorter: 6
|
|
5216
|
+
sorter: 6,
|
|
5217
|
+
filter: 'advanced'
|
|
5280
5218
|
}, {
|
|
5281
5219
|
title: t('backoffice.table.idmimports.user.name'),
|
|
5282
5220
|
field: 'user.name',
|
|
@@ -5292,14 +5230,13 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5292
5230
|
field: 'startTime',
|
|
5293
5231
|
sorter: 3,
|
|
5294
5232
|
type: 'unixTimeStamp',
|
|
5295
|
-
filter: '
|
|
5233
|
+
filter: 'advanced'
|
|
5296
5234
|
}, {
|
|
5297
5235
|
title: t('backoffice.table.idmimports.endTime'),
|
|
5298
5236
|
field: 'endTime',
|
|
5299
5237
|
type: 'unixTimeStamp',
|
|
5300
5238
|
sorter: 2,
|
|
5301
|
-
dateInSeconds: false
|
|
5302
|
-
filter: 'interval'
|
|
5239
|
+
dateInSeconds: false
|
|
5303
5240
|
}, {
|
|
5304
5241
|
title: t('backoffice.table.idmimports.lastUpdated'),
|
|
5305
5242
|
field: 'lastUpdated',
|
|
@@ -5351,11 +5288,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
5351
5288
|
title: t('backoffice.table.idmimports.fileName'),
|
|
5352
5289
|
field: 'fileName'
|
|
5353
5290
|
}],
|
|
5354
|
-
filter: {
|
|
5355
|
-
search: {
|
|
5356
|
-
fields: ['_id', 'user.name', 'user.familyName', 'state', 'stateMessage', 'fullProgress', 'organizationId', 'serverName', 'fileName']
|
|
5357
|
-
}
|
|
5358
|
-
},
|
|
5359
5291
|
apiInterface: {
|
|
5360
5292
|
read: {
|
|
5361
5293
|
list: '${catalogService}/idmImports',
|
|
@@ -6825,29 +6757,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
6825
6757
|
}]
|
|
6826
6758
|
}
|
|
6827
6759
|
},
|
|
6828
|
-
FormActivateUser: {
|
|
6829
|
-
type: 'Form',
|
|
6830
|
-
apiInterface: {
|
|
6831
|
-
create: {
|
|
6832
|
-
url: '${authService}/v2/users/{id}/activate?redirectTo={redirectTo}',
|
|
6833
|
-
method: 'POST'
|
|
6834
|
-
}
|
|
6835
|
-
},
|
|
6836
|
-
items: [{
|
|
6837
|
-
name: 'id',
|
|
6838
|
-
hidden: true,
|
|
6839
|
-
readonly: true
|
|
6840
|
-
}, {
|
|
6841
|
-
name: 'redirectTo',
|
|
6842
|
-
label: t('backoffice.form.activateuser.items.redirectTo'),
|
|
6843
|
-
rules: [{
|
|
6844
|
-
pattern: new RegExp('((https?)://).*'),
|
|
6845
|
-
required: true,
|
|
6846
|
-
message: t('backoffice.form.activateuser.items.redirectTo.rules')
|
|
6847
|
-
}],
|
|
6848
|
-
type: 'input'
|
|
6849
|
-
}]
|
|
6850
|
-
},
|
|
6851
6760
|
FormApplicationTranslationsEdit: {
|
|
6852
6761
|
type: 'Form',
|
|
6853
6762
|
title: t('backoffice.form.applicationtranslationedit.title'),
|
|
@@ -9015,50 +8924,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
9015
8924
|
}]
|
|
9016
8925
|
}
|
|
9017
8926
|
},
|
|
9018
|
-
SelectOrCreateNewMember: {
|
|
9019
|
-
type: 'SelectOrCreate',
|
|
9020
|
-
mode: 'single',
|
|
9021
|
-
apiInterface: {
|
|
9022
|
-
create: '${authService}/v2/organizations/{organizationId}/members/{userId}?roleId=seller',
|
|
9023
|
-
read: {
|
|
9024
|
-
list: '${authService}/v2/organizations/${organizationId}/members?all=true',
|
|
9025
|
-
filterServerSide: true,
|
|
9026
|
-
fallBackToParams: false,
|
|
9027
|
-
permissions: {
|
|
9028
|
-
backoffice_admin_users: '${authService}/v2/users'
|
|
9029
|
-
}
|
|
9030
|
-
}
|
|
9031
|
-
},
|
|
9032
|
-
readMapping: {
|
|
9033
|
-
type: 'query',
|
|
9034
|
-
map: [{
|
|
9035
|
-
targetField: 'organizationId',
|
|
9036
|
-
globalValue: 'selectedOrganizationId'
|
|
9037
|
-
}]
|
|
9038
|
-
},
|
|
9039
|
-
selectMapping: {
|
|
9040
|
-
label: 'mainEmail',
|
|
9041
|
-
value: '_id',
|
|
9042
|
-
searchField: [{
|
|
9043
|
-
field: 'mainEmail',
|
|
9044
|
-
filter: 'contains'
|
|
9045
|
-
}]
|
|
9046
|
-
},
|
|
9047
|
-
formId: 'FormUserDetails',
|
|
9048
|
-
actionMapping: {
|
|
9049
|
-
type: 'body',
|
|
9050
|
-
map: [{
|
|
9051
|
-
targetField: 'userId',
|
|
9052
|
-
sourceField: '_id'
|
|
9053
|
-
}, {
|
|
9054
|
-
targetField: 'organizationId',
|
|
9055
|
-
globalValue: 'selectedOrganizationId'
|
|
9056
|
-
}]
|
|
9057
|
-
},
|
|
9058
|
-
onError: {
|
|
9059
|
-
AUTH_0020: t('errorcodes._source.labels.error.AUTH_0020')
|
|
9060
|
-
}
|
|
9061
|
-
},
|
|
9062
8927
|
MediaUploadOrganizationLogoMobile: {
|
|
9063
8928
|
type: 'MediaUpload',
|
|
9064
8929
|
size: 'medium',
|
|
@@ -17808,10 +17673,6 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
17808
17673
|
rules: state.configuration.downloadAction.rule
|
|
17809
17674
|
});
|
|
17810
17675
|
}
|
|
17811
|
-
function checkPermission(permission) {
|
|
17812
|
-
if (!permission) return true;
|
|
17813
|
-
return root.actions.userHasPermission(permission);
|
|
17814
|
-
}
|
|
17815
17676
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
17816
17677
|
children: [(state.canDelete || state.configuration.createAction || state.title || state.configuration.canRefresh || state.configuration.clientRelations) && /*#__PURE__*/jsx(Fragment, {
|
|
17817
17678
|
children: /*#__PURE__*/jsx(Descriptions, {
|
|
@@ -17907,7 +17768,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
17907
17768
|
action: action,
|
|
17908
17769
|
state: state
|
|
17909
17770
|
}, action.id);
|
|
17910
|
-
}), state.configuration.createAction &&
|
|
17771
|
+
}), state.configuration.createAction && /*#__PURE__*/jsx(ActionButton, {
|
|
17911
17772
|
action: state.configuration.createAction,
|
|
17912
17773
|
callback: function callback(data) {
|
|
17913
17774
|
var _state$onUpdate, _state$configuration$16, _state$configuration$17;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/BaseTable/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,EAAgB,MAAM,UAAU,CAAC;AA6B/C,eAAO,MAAM,UAAU,yCAAoB,CAAC;AAG5C,UAAU,KAAK,CAAC,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/Table/BaseTable/index.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,KAAK,EAAgB,MAAM,UAAU,CAAC;AA6B/C,eAAO,MAAM,UAAU,yCAAoB,CAAC;AAG5C,UAAU,KAAK,CAAC,CAAC;IACf,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;CACjB;;;;AAiRD,wBAAsC;AACtC,cAAc,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/diva-backoffice",
|
|
3
|
-
"version": "24.2.2-
|
|
3
|
+
"version": "24.2.2-rc.1",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@testing-library/jest-dom": "^5.15.0",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
},
|
|
51
51
|
"module": "build/esm/index.js",
|
|
52
52
|
"types": "./build/types/backoffice/src/index.d.ts",
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "69c5e21508c7625895bc609b985a14667d9a5e4e"
|
|
54
54
|
}
|