@ukpc-lib/react 0.2.22 → 0.2.23

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 (30) hide show
  1. package/dist/application.d.ts +1 -0
  2. package/dist/components/MultiProvider.d.ts +6 -0
  3. package/dist/components/index.cjs +1 -1
  4. package/dist/components/index.js +2 -2
  5. package/dist/components/main.d.ts +5 -4
  6. package/dist/{index.module-eaf7a821.cjs → index.module-3c7dfdd1.cjs} +75 -75
  7. package/dist/{index.module-a18bd948.js → index.module-97c322f5.js} +4701 -4698
  8. package/dist/main.d.ts +1 -0
  9. package/dist/share/index.cjs +1 -1
  10. package/dist/share/index.js +2 -2
  11. package/dist/theme/Colors.d.ts +33 -0
  12. package/dist/theme/SaasThemeProvider.d.ts +2 -0
  13. package/dist/theme/Theme.d.ts +21 -0
  14. package/dist/theme/index.cjs +1 -1
  15. package/dist/theme/index.d.ts +3 -0
  16. package/dist/theme/index.js +7 -6
  17. package/dist/translations/config.d.ts +10 -0
  18. package/dist/translations/de/translation.json.d.ts +230 -0
  19. package/dist/translations/en/translation.json.d.ts +230 -0
  20. package/dist/web-components/global-menu.d.ts +1 -0
  21. package/dist/web-components/global-topbar.d.ts +1 -0
  22. package/dist/web-components/has-permission.d.ts +1 -0
  23. package/dist/web-components/index.d.ts +2 -0
  24. package/package.json +1 -1
  25. package/web-components-bundle/global-topbar/index.cjs +1 -1
  26. package/web-components-bundle/global-topbar/index.js +1 -1
  27. package/web-components-bundle/has-permission/index.cjs +1 -1
  28. package/web-components-bundle/has-permission/index.js +1 -1
  29. package/web-components-bundle/{index-2c1ba689.cjs → index-a1eabc81.cjs} +68 -68
  30. package/web-components-bundle/{index-8d8b181c.js → index-f74899a8.js} +5833 -5836
@@ -0,0 +1,230 @@
1
+ declare const _default: {
2
+ "errorMessage": {
3
+ "400": "Bad Request - The request cannot be fulfilled due to bad syntax.",
4
+ "401": "The request requires user authentication.",
5
+ "403": "The user does not have permission.",
6
+ "404": "Item Not Found",
7
+ "500": "Server got a error, please contact for assistance",
8
+ "502": "Server got a bad gateway, please contact for assistance",
9
+ "503": "Server is unavailable, please contact for assistance",
10
+ "504": "Server is timeout, please contact for assistance"
11
+ },
12
+ "components": {
13
+ "unauthorizedPage": {
14
+ "title": "Access Denied: No Access Permission",
15
+ "description1": "We regret to inform you that you do not have the necessary permissions to access this page.",
16
+ "description2": "Please contact our administrator for assistance. Thank you for your understanding."
17
+ }
18
+ },
19
+ "configurations": {
20
+ "saasAdmin": {
21
+ "servicePackage": {
22
+ "errorMessage": {
23
+ "packageNotFound": "Package not found.",
24
+ "languageInvalid": "Field language is invalid.",
25
+ "packageNameExists": "The package name already exists.",
26
+ "serviceNotFound": "Service not found.",
27
+ "serviceNotBelongToPackage": "Service not found or does not belong to the correct package",
28
+ "serviceNotBelongToServiceParent": "Service not found or does not belong to the correct service parent",
29
+ "canNotGetServiceListPleaseTryAgain": "Can not get service list now, please try again"
30
+ }
31
+ },
32
+ "tenantManagement": {
33
+ "errorMessage": {
34
+ "tenantNotFound": "Tenant not found.",
35
+ "countryInvalid": "Field country is invalid.",
36
+ "createTenantFailed": "Create tenant failed. Please try again",
37
+ "isTenantMailExist": "The email is already exist."
38
+ }
39
+ },
40
+ "brandManagement": {
41
+ "errorMessage": {
42
+ "firstNameInvalid": "Field first name is invalid. Must be of length 3 to 40 and no special characters.",
43
+ "createdAtInvalid": "Field createdAt is invalid.",
44
+ "brandNotFound": "Brand not found.",
45
+ "lastNameInvalid": "Field last name is invalid. Must be of length 3 to 40 and no special characters.",
46
+ "idInvalid": "Field id is invalid. Must be uuid v4 format.",
47
+ "updatedAtInvalid": "Field createdAt is invalid. Must be date format.",
48
+ "countryInvalid": "Field Country is invalid. Please select a Country that we support.",
49
+ "termTypeInvalid": "Field TermType invalid. Please select a TermType that we support.",
50
+ "baseCostTypeInvalid": "Field BaseCostType invalid. Please select a BaseCostType that we support.",
51
+ "brandStatusesInvalid": "BrandStatuses is invalid. Please select a BrandStatuses that we support.",
52
+ "informationPlanIsRequired": "Information Plan is required.",
53
+ "settingStatusesInvalid": "SettingStatuses is invalid. Please select a BaseCostType that we support.",
54
+ "languagesInvalid": "Langagues is invalid. Please select a Langagues that we support.",
55
+ "currencyInvalid": "Currency is invalid. Please select a Currency that we support.",
56
+ "distanceMetricInvalid": "DistanceMetric is invalid. Please select a DistanceMetric that we support.",
57
+ "settingNotFound": "Setting not found.",
58
+ "subscriptionNotFound": "Subscription not found.",
59
+ "subscriptionNameExists": "The subscription name already exists.",
60
+ "subscriptionServiceNotFound": "subscriptionService not found.",
61
+ "subscriptionServiceNotBelongToPackage": "subscriptionService not found or does not belong to the correct package",
62
+ "subscriptionServiceNotBelongTosubscriptionServiceParent": "subscriptionService not found or does not belong to the correct subscriptionService parent",
63
+ "canNotGetsubscriptionServiceListPleaseTryAgain": "Can not get subscriptionService list now, please try again"
64
+ }
65
+ }
66
+ },
67
+ "tenantAdmin": {
68
+ "brandManagement": {
69
+ "errorMessage": {
70
+ "firstNameInvalid": "Field first name is invalid. Must be of length 3 to 40 and no special characters.",
71
+ "createdAtInvalid": "Field createdAt is invalid.",
72
+ "brandNotFound": "Brand not found.",
73
+ "lastNameInvalid": "Field last name is invalid. Must be of length 3 to 40 and no special characters.",
74
+ "idInvalid": "Field id is invalid. Must be uuid v4 format.",
75
+ "updatedAtInvalid": "Field createdAt is invalid. Must be date format.",
76
+ "countryInvalid": "Field Country is invalid. Please select a Country that we support.",
77
+ "termTypeInvalid": "Field TermType invalid. Please select a TermType that we support.",
78
+ "baseCostTypeInvalid": "Field BaseCostType invalid. Please select a BaseCostType that we support.",
79
+ "brandStatusesInvalid": "BrandStatuses is invalid. Please select a BrandStatuses that we support.",
80
+ "informationPlanIsRequired": "Information Plan is required.",
81
+ "settingStatusesInvalid": "SettingStatuses is invalid. Please select a BaseCostType that we support.",
82
+ "languagesInvalid": "Langagues is invalid. Please select a Langagues that we support.",
83
+ "currencyInvalid": "Currency is invalid. Please select a Currency that we support.",
84
+ "distanceMetricInvalid": "DistanceMetric is invalid. Please select a DistanceMetric that we support.",
85
+ "settingNotFound": "Setting not found.",
86
+ "subscriptionNotFound": "Subscription not found.",
87
+ "subscriptionNameExists": "The subscription name already exists.",
88
+ "subscriptionServiceNotFound": "subscriptionService not found.",
89
+ "subscriptionServiceNotBelongToPackage": "subscriptionService not found or does not belong to the correct package",
90
+ "subscriptionServiceNotBelongTosubscriptionServiceParent": "subscriptionService not found or does not belong to the correct subscriptionService parent",
91
+ "canNotGetsubscriptionServiceListPleaseTryAgain": "Can not get subscriptionService list now, please try again"
92
+ }
93
+ }
94
+ },
95
+ "brandAdmin": {
96
+ "errorMessage": {
97
+ "firstNameInvalid": "Field first name is invalid. Must be of length 3 to 40 and no special characters.",
98
+ "createdAtInvalid": "Field createdAt is invalid.",
99
+ "brandNotFound": "Brand not found.",
100
+ "lastNameInvalid": "Field last name is invalid. Must be of length 3 to 40 and no special characters.",
101
+ "idInvalid": "Field id is invalid. Must be uuid v4 format.",
102
+ "updatedAtInvalid": "Field createdAt is invalid. Must be date format.",
103
+ "countryInvalid": "Field Country is invalid. Please select a Country that we support.",
104
+ "termTypeInvalid": "Field TermType invalid. Please select a TermType that we support.",
105
+ "baseCostTypeInvalid": "Field BaseCostType invalid. Please select a BaseCostType that we support.",
106
+ "brandStatusesInvalid": "BrandStatuses is invalid. Please select a BrandStatuses that we support.",
107
+ "informationPlanIsRequired": "Information Plan is required.",
108
+ "settingStatusesInvalid": "SettingStatuses is invalid. Please select a BaseCostType that we support.",
109
+ "languagesInvalid": "Langagues is invalid. Please select a Langagues that we support.",
110
+ "currencyInvalid": "Currency is invalid. Please select a Currency that we support.",
111
+ "distanceMetricInvalid": "DistanceMetric is invalid. Please select a DistanceMetric that we support.",
112
+ "settingNotFound": "Setting not found.",
113
+ "subscriptionNotFound": "Subscription not found.",
114
+ "subscriptionNameExists": "The subscription name already exists.",
115
+ "subscriptionServiceNotFound": "subscriptionService not found.",
116
+ "subscriptionServiceNotBelongToPackage": "subscriptionService not found or does not belong to the correct package",
117
+ "subscriptionServiceNotBelongTosubscriptionServiceParent": "subscriptionService not found or does not belong to the correct subscriptionService parent",
118
+ "canNotGetsubscriptionServiceListPleaseTryAgain": "Can not get subscriptionService list now, please try again"
119
+ }
120
+ },
121
+ "iam": {
122
+ "usersManagement": {
123
+ "errorMessage": {
124
+ "firstNameInvalid": "Field first name is invalid. Must be of length 1 to 40 and no special characters.",
125
+ "createdAtInvalid": "Field createdAt is invalid.",
126
+ "notFound": "User not found.",
127
+ "lastNameInvalid": "Field last name is invalid. Must be of length 1 to 40 and no special characters.",
128
+ "updatedAtInvalid": "Field createdAt is invalid. Must be date format.",
129
+ "emailInvalid": "Field email is invalid. Must be email format.",
130
+ "passwordInvalid": "Field password is invalid. Must be 8 characters long, 1 uppercase & 1 lowercase character, 1 number and 1 special character.",
131
+ "countryCodeInvalid": "Field countryCode is invalid.",
132
+ "languageCodeInvalid": "Field languageCode is invalid.",
133
+ "deletedAtInvalid": "Field deletedAt is invalid. Must be date format.",
134
+ "isActiveInvalid": "Field isActive is invalid.",
135
+ "isSuspendInvalid": "Field isSuspend is invalid.",
136
+ "userExist": "The user already exists.",
137
+ "authProviderInvalid": "Field authProvider is invalid.",
138
+ "isEnableInvalid": "Field isEnable is invalid.",
139
+ "sendEmailFailed": "Send email failed.",
140
+ "emailRequired": "Field email is required",
141
+ "firstNameRequired": "Field first name is required",
142
+ "lastNameRequired": "Field last name is required",
143
+ "countryCodeRequired": "Field country code is required",
144
+ "userStatusInvalid": "Field status invalid. Please select a status that we support.",
145
+ "loginAtInvalid": "Field last login is invalid.",
146
+ "avatarFileInvalid": "Avatar file format not supported. Must be png, jpeg, jpg and size less than 1mb.",
147
+ "permissionGroupNotFound": "Permission group not Found.",
148
+ "organizeInvalid": "Field organize is required. Must be a object.",
149
+ "relatedIdInvalid": "Field organize's relatedId. Must be a number.",
150
+ "userOrganizeNotFound": "User's organize not Found.",
151
+ "isSystemInvalid": "Field isSystem is invalid.",
152
+ "organizeUserInvalid": "Field users is invalid. Must be a array.",
153
+ "organizeUserDuplicate": "Field users contains duplicated email."
154
+ }
155
+ },
156
+ "permissionGroup": {
157
+ "errorMessage": {
158
+ "actionNotFound": "Action not found.",
159
+ "permissionGroupNotFound": "Permission group not Found.",
160
+ "permissionGroupIsExisted": "Permission group name is existed",
161
+ "permissionGroupOrganizeNotFound": "Permission group's organize not Found.",
162
+ "relatedIdInvalid": "Field organize's relatedId. Must be a number.",
163
+ "cannotRemoveFullPermissionGroup": "You cannot remove this permission group.",
164
+ "cannotEditFullPermissionGroup": "You cannot update this permission group."
165
+ }
166
+ },
167
+ "organize": {
168
+ "errorMessage": {
169
+ "relatedIdInvalid": "Field relatedId is invalid. Must be number.",
170
+ "nameInvalid": "Field data's name is invalid. Must be of length 1 to 40 and no special characters.",
171
+ "dataInvalid": "Field data is invalid. Must be object.",
172
+ "organizeExist": "The organize already exists.",
173
+ "callbackUrlInvalid": "Field data's callbackPath is invalid. Must be a string."
174
+ }
175
+ }
176
+ },
177
+ "notificationAdmin": {
178
+ "notification": {
179
+ "errorMessage": {
180
+ "notificationFilterType": "Field notificationFilterType is invalid. Must be one of read, unread and all.",
181
+ "userIdInvalid": "Field userId is invalid. Must be a number.",
182
+ "filterInvalid": "Field filter is invalid. Must be a object.",
183
+ "isReadInvalid": "Field isRead is invalid. Must be a boolean.",
184
+ "notificationIdInvalid": "Field id is invalid. Must be a number.",
185
+ "userDeviceTokenInvalid": "Field deviceToken is invalid. Must be a string."
186
+ }
187
+ },
188
+ "notificationConfig": {
189
+ "errorMessage": {
190
+ "notificationNotFound": "Notification config not found.",
191
+ "notificationIsExisted": "Notification rule is existed.",
192
+ "actionNotFound": "Action not found.",
193
+ "userNotFound": "User not found.",
194
+ "firstNameInvalid": "Field first name is invalid. Must be of length 1 to 40 and no special characters.",
195
+ "createdAtInvalid": "Field createdAt is invalid.",
196
+ "lastNameInvalid": "Field last name is invalid. Must be of length 1 to 40 and no special characters.",
197
+ "updatedAtInvalid": "Field createdAt is invalid. Must be date format.",
198
+ "emailInvalid": "Field email is invalid. Must be email format.",
199
+ "passwordInvalid": "Field password is invalid. Must be 8 characters long, 1 uppercase & 1 lowercase character, 1 number and 1 special character.",
200
+ "countryCodeInvalid": "Field countryCode is invalid.",
201
+ "languageCodeInvalid": "Field languageCode is invalid.",
202
+ "deletedAtInvalid": "Field deletedAt is invalid. Must be date format.",
203
+ "isActiveInvalid": "Field isActive is invalid.",
204
+ "isSuspendInvalid": "Field isSuspend is invalid.",
205
+ "userExist": "The user already exists.",
206
+ "authProviderInvalid": "Field authProvider is invalid.",
207
+ "isEnableInvalid": "Field isEnable is invalid.",
208
+ "sendEmailFailed": "Send email failed.",
209
+ "emailRequired": "Field email is required",
210
+ "firstNameRequired": "Field first name is required",
211
+ "lastNameRequired": "Field last name is required",
212
+ "countryCodeRequired": "Field country code is required",
213
+ "userStatusInvalid": "Field status invalid. Please select a status that we support.",
214
+ "loginAtInvalid": "Field last login is invalid.",
215
+ "avatarFileInvalid": "Avatar file format not supported. Must be png, jpeg, jpg and size less than 1mb.",
216
+ "permissionGroupNotFound": "Permission group not Found.",
217
+ "organizeInvalid": "Field organize is required. Must be a object.",
218
+ "relatedIdInvalid": "Field organize's relatedId. Must be a number.",
219
+ "userOrganizeNotFound": "User's organize not Found.",
220
+ "isSystemInvalid": "Field isSystem is invalid.",
221
+ "organizeUserInvalid": "Field users is invalid. Must be a array.",
222
+ "organizeUserDuplicate": "Field users contains duplicated email."
223
+ }
224
+ }
225
+ }
226
+ }
227
+ }
228
+ ;
229
+
230
+ export default _default;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './global-menu';
2
+ export * from './global-topbar';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ukpc-lib/react",
3
3
  "private": false,
4
- "version": "0.2.22",
4
+ "version": "0.2.23",
5
5
  "type": "module",
6
6
  "main": "./dist/",
7
7
  "module": "./dist/",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-661a7bdb.cjs");const e=require("../index-2c1ba689.cjs");exports.TopBar=e.TopBar;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-661a7bdb.cjs");const e=require("../index-a1eabc81.cjs");exports.TopBar=e.TopBar;
@@ -1,5 +1,5 @@
1
1
  import "../index-200424a6.js";
2
- import { T as a } from "../index-8d8b181c.js";
2
+ import { T as a } from "../index-f74899a8.js";
3
3
  export {
4
4
  a as TopBar
5
5
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-661a7bdb.cjs");const e=require("../index-2c1ba689.cjs");exports.HasPermission=e.HasPermission;exports.getUseHasPermission=e.getUseHasPermission;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-661a7bdb.cjs");const e=require("../index-a1eabc81.cjs");exports.HasPermission=e.HasPermission;exports.getUseHasPermission=e.getUseHasPermission;
@@ -1,5 +1,5 @@
1
1
  import "../index-200424a6.js";
2
- import { H as o, g as r } from "../index-8d8b181c.js";
2
+ import { H as o, g as r } from "../index-f74899a8.js";
3
3
  export {
4
4
  o as HasPermission,
5
5
  r as getUseHasPermission