@crystaldesign/diva-backoffice 24.2.0-beta.7 → 24.2.0-rc.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
|
@@ -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: {
|
|
@@ -6820,29 +6757,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
6820
6757
|
}]
|
|
6821
6758
|
}
|
|
6822
6759
|
},
|
|
6823
|
-
FormActivateUser: {
|
|
6824
|
-
type: 'Form',
|
|
6825
|
-
apiInterface: {
|
|
6826
|
-
create: {
|
|
6827
|
-
url: '${authService}/v2/users/{id}/activate?redirectTo={redirectTo}',
|
|
6828
|
-
method: 'POST'
|
|
6829
|
-
}
|
|
6830
|
-
},
|
|
6831
|
-
items: [{
|
|
6832
|
-
name: 'id',
|
|
6833
|
-
hidden: true,
|
|
6834
|
-
readonly: true
|
|
6835
|
-
}, {
|
|
6836
|
-
name: 'redirectTo',
|
|
6837
|
-
label: t('backoffice.form.activateuser.items.redirectTo'),
|
|
6838
|
-
rules: [{
|
|
6839
|
-
pattern: new RegExp('((https?)://).*'),
|
|
6840
|
-
required: true,
|
|
6841
|
-
message: t('backoffice.form.activateuser.items.redirectTo.rules')
|
|
6842
|
-
}],
|
|
6843
|
-
type: 'input'
|
|
6844
|
-
}]
|
|
6845
|
-
},
|
|
6846
6760
|
FormApplicationTranslationsEdit: {
|
|
6847
6761
|
type: 'Form',
|
|
6848
6762
|
title: t('backoffice.form.applicationtranslationedit.title'),
|
|
@@ -9010,50 +8924,6 @@ function loadConfiguration(t, root, config, lang) {
|
|
|
9010
8924
|
}]
|
|
9011
8925
|
}
|
|
9012
8926
|
},
|
|
9013
|
-
SelectOrCreateNewMember: {
|
|
9014
|
-
type: 'SelectOrCreate',
|
|
9015
|
-
mode: 'single',
|
|
9016
|
-
apiInterface: {
|
|
9017
|
-
create: '${authService}/v2/organizations/{organizationId}/members/{userId}?roleId=seller',
|
|
9018
|
-
read: {
|
|
9019
|
-
list: '${authService}/v2/organizations/${organizationId}/members?all=true',
|
|
9020
|
-
filterServerSide: true,
|
|
9021
|
-
fallBackToParams: false,
|
|
9022
|
-
permissions: {
|
|
9023
|
-
backoffice_admin_users: '${authService}/v2/users'
|
|
9024
|
-
}
|
|
9025
|
-
}
|
|
9026
|
-
},
|
|
9027
|
-
readMapping: {
|
|
9028
|
-
type: 'query',
|
|
9029
|
-
map: [{
|
|
9030
|
-
targetField: 'organizationId',
|
|
9031
|
-
globalValue: 'selectedOrganizationId'
|
|
9032
|
-
}]
|
|
9033
|
-
},
|
|
9034
|
-
selectMapping: {
|
|
9035
|
-
label: 'mainEmail',
|
|
9036
|
-
value: '_id',
|
|
9037
|
-
searchField: [{
|
|
9038
|
-
field: 'mainEmail',
|
|
9039
|
-
filter: 'contains'
|
|
9040
|
-
}]
|
|
9041
|
-
},
|
|
9042
|
-
formId: 'FormUserDetails',
|
|
9043
|
-
actionMapping: {
|
|
9044
|
-
type: 'body',
|
|
9045
|
-
map: [{
|
|
9046
|
-
targetField: 'userId',
|
|
9047
|
-
sourceField: '_id'
|
|
9048
|
-
}, {
|
|
9049
|
-
targetField: 'organizationId',
|
|
9050
|
-
globalValue: 'selectedOrganizationId'
|
|
9051
|
-
}]
|
|
9052
|
-
},
|
|
9053
|
-
onError: {
|
|
9054
|
-
AUTH_0020: t('errorcodes._source.labels.error.AUTH_0020')
|
|
9055
|
-
}
|
|
9056
|
-
},
|
|
9057
8927
|
MediaUploadOrganizationLogoMobile: {
|
|
9058
8928
|
type: 'MediaUpload',
|
|
9059
8929
|
size: 'medium',
|
|
@@ -17803,10 +17673,6 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
17803
17673
|
rules: state.configuration.downloadAction.rule
|
|
17804
17674
|
});
|
|
17805
17675
|
}
|
|
17806
|
-
function checkPermission(permission) {
|
|
17807
|
-
if (!permission) return true;
|
|
17808
|
-
return root.actions.userHasPermission(permission);
|
|
17809
|
-
}
|
|
17810
17676
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
17811
17677
|
children: [(state.canDelete || state.configuration.createAction || state.title || state.configuration.canRefresh || state.configuration.clientRelations) && /*#__PURE__*/jsx(Fragment, {
|
|
17812
17678
|
children: /*#__PURE__*/jsx(Descriptions, {
|
|
@@ -17902,7 +17768,7 @@ var TableWrapper = function TableWrapper(_ref) {
|
|
|
17902
17768
|
action: action,
|
|
17903
17769
|
state: state
|
|
17904
17770
|
}, action.id);
|
|
17905
|
-
}), state.configuration.createAction &&
|
|
17771
|
+
}), state.configuration.createAction && /*#__PURE__*/jsx(ActionButton, {
|
|
17906
17772
|
action: state.configuration.createAction,
|
|
17907
17773
|
callback: function callback(data) {
|
|
17908
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.0-
|
|
3
|
+
"version": "24.2.0-rc.11",
|
|
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": "ab1edae3d556ca459ce45181bcf2b228c4f513bb"
|
|
54
54
|
}
|