@authup/client-web-kit 1.0.0-beta.20 → 1.0.0-beta.21
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/dist/components/permission/APermissionCheck.d.ts +30 -0
- package/dist/components/permission/APermissionCheck.d.ts.map +1 -0
- package/dist/components/permission/index.d.ts +1 -0
- package/dist/components/permission/index.d.ts.map +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/use-permission-check.d.ts +4 -0
- package/dist/composables/use-permission-check.d.ts.map +1 -0
- package/dist/core/http-client/install.d.ts.map +1 -1
- package/dist/core/http-client/types.d.ts +1 -0
- package/dist/core/http-client/types.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/permission-check/index.d.ts +3 -0
- package/dist/core/permission-check/index.d.ts.map +1 -0
- package/dist/core/permission-check/module.d.ts +3 -0
- package/dist/core/permission-check/module.d.ts.map +1 -0
- package/dist/core/permission-check/types.d.ts +11 -0
- package/dist/core/permission-check/types.d.ts.map +1 -0
- package/dist/core/store/create.d.ts +6 -57
- package/dist/core/store/create.d.ts.map +1 -1
- package/dist/core/store/install.d.ts.map +1 -1
- package/dist/core/store/singleton.d.ts +3 -3
- package/dist/core/store/singleton.d.ts.map +1 -1
- package/dist/core/store/utils.d.ts +1 -2
- package/dist/core/store/utils.d.ts.map +1 -1
- package/dist/index.cjs +483 -411
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +255 -190
- package/dist/index.mjs.map +1 -1
- package/dist/module.d.ts.map +1 -1
- package/dist/types.d.ts +13 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/composables/use-ability-check.d.ts +0 -3
- package/dist/composables/use-ability-check.d.ts.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -94,6 +94,23 @@ class PolicyEngine extends kit.PolicyEngine {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
function createPromiseShareWrapperFn(fn) {
|
|
98
|
+
let promise;
|
|
99
|
+
return (...args)=>{
|
|
100
|
+
if (promise) {
|
|
101
|
+
return promise;
|
|
102
|
+
}
|
|
103
|
+
promise = new Promise((resolve, reject)=>{
|
|
104
|
+
fn(...args).then((r)=>resolve(r)).catch((e)=>reject(e));
|
|
105
|
+
});
|
|
106
|
+
promise.finally(()=>{
|
|
107
|
+
setTimeout(()=>{
|
|
108
|
+
promise = undefined;
|
|
109
|
+
}, 0);
|
|
110
|
+
});
|
|
111
|
+
return promise;
|
|
112
|
+
};
|
|
113
|
+
}
|
|
97
114
|
function createStore(context = {}) {
|
|
98
115
|
const client = new coreHttpKit.Client({
|
|
99
116
|
baseURL: context.baseURL
|
|
@@ -122,38 +139,10 @@ function createStore(context = {}) {
|
|
|
122
139
|
refreshToken.value = input;
|
|
123
140
|
};
|
|
124
141
|
// --------------------------------------------------------------------
|
|
125
|
-
const handleTokenGrantResponse = (response)=>{
|
|
126
|
-
const expireDate = new Date(Date.now() + response.expires_in * 1000);
|
|
127
|
-
setAccessTokenExpireDate(expireDate);
|
|
128
|
-
setAccessToken(response.access_token);
|
|
129
|
-
setRefreshToken(response.refresh_token);
|
|
130
|
-
};
|
|
131
|
-
// --------------------------------------------------------------------
|
|
132
|
-
let refreshTokenPromise;
|
|
133
|
-
const attemptRefreshToken = ()=>{
|
|
134
|
-
if (!refreshToken.value) {
|
|
135
|
-
return Promise.reject(new Error('No refresh token is present.'));
|
|
136
|
-
}
|
|
137
|
-
if (refreshTokenPromise) {
|
|
138
|
-
return refreshTokenPromise;
|
|
139
|
-
}
|
|
140
|
-
refreshTokenPromise = client.token.createWithRefreshToken({
|
|
141
|
-
refresh_token: refreshToken.value
|
|
142
|
-
}).then((r)=>{
|
|
143
|
-
handleTokenGrantResponse(r);
|
|
144
|
-
return r;
|
|
145
|
-
}).finally(()=>{
|
|
146
|
-
refreshTokenPromise = undefined;
|
|
147
|
-
});
|
|
148
|
-
return refreshTokenPromise;
|
|
149
|
-
};
|
|
150
|
-
// --------------------------------------------------------------------
|
|
151
142
|
const user = vue.ref(undefined);
|
|
152
143
|
const userId = vue.computed(()=>user.value ? user.value.id : undefined);
|
|
153
|
-
const userResolved = vue.ref(false);
|
|
154
144
|
const setUser = (entity)=>{
|
|
155
145
|
user.value = entity;
|
|
156
|
-
userResolved.value = !!entity;
|
|
157
146
|
};
|
|
158
147
|
// --------------------------------------------------------------------
|
|
159
148
|
const realm = vue.ref(undefined);
|
|
@@ -174,72 +163,100 @@ function createStore(context = {}) {
|
|
|
174
163
|
const setRealmManagement = (entity)=>{
|
|
175
164
|
realmManagement.value = entity;
|
|
176
165
|
};
|
|
166
|
+
// --------------------------------------------------------------------
|
|
177
167
|
const permissionRepository = new kit.PermissionMemoryProvider();
|
|
178
168
|
const permissionChecker = new kit.PermissionChecker({
|
|
179
169
|
provider: permissionRepository,
|
|
180
170
|
policyEngine: new PolicyEngine()
|
|
181
171
|
});
|
|
182
|
-
|
|
183
|
-
const
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
if (!entity) {
|
|
188
|
-
setRealm(undefined);
|
|
189
|
-
setRealmManagement(undefined);
|
|
190
|
-
permissionRepository.setMany([]);
|
|
191
|
-
return;
|
|
172
|
+
// --------------------------------------------------------------------
|
|
173
|
+
const userResolved = vue.ref(false);
|
|
174
|
+
const resolveUser = async ()=>{
|
|
175
|
+
if (!accessToken.value || userResolved.value) {
|
|
176
|
+
return Promise.resolve();
|
|
192
177
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
178
|
+
userResolved.value = true;
|
|
179
|
+
return client.userInfo.get(`Bearer ${accessToken.value}`).then((response)=>{
|
|
180
|
+
setUser(response);
|
|
181
|
+
});
|
|
182
|
+
};
|
|
183
|
+
// --------------------------------------------------------------------
|
|
184
|
+
const tokenResolved = vue.ref(false);
|
|
185
|
+
const resolveToken = async ()=>{
|
|
186
|
+
if (!accessToken.value || tokenResolved.value) {
|
|
187
|
+
return Promise.resolve();
|
|
196
188
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
189
|
+
tokenResolved.value = true;
|
|
190
|
+
return client.token.introspect({
|
|
191
|
+
token: accessToken.value
|
|
192
|
+
}, {
|
|
193
|
+
authorizationHeader: {
|
|
194
|
+
type: 'Bearer',
|
|
195
|
+
token: accessToken.value
|
|
204
196
|
}
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
197
|
+
}).then((response)=>{
|
|
198
|
+
if (response.exp) {
|
|
199
|
+
const expireDate = new Date(response.exp * 1000);
|
|
200
|
+
setAccessTokenExpireDate(expireDate);
|
|
201
|
+
}
|
|
202
|
+
if (response.realm_id && response.realm_name) {
|
|
203
|
+
realm.value = {
|
|
204
|
+
id: response.realm_id,
|
|
205
|
+
name: response.realm_name
|
|
206
|
+
};
|
|
207
|
+
if (!realmManagement.value) {
|
|
208
|
+
setRealmManagement(realm.value);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
if (response.permissions) {
|
|
212
|
+
permissionRepository.setMany(response.permissions);
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
// --------------------------------------------------------------------
|
|
217
|
+
const handleTokenGrantResponse = (response)=>{
|
|
218
|
+
const expireDate = new Date(Date.now() + response.expires_in * 1000);
|
|
219
|
+
setAccessTokenExpireDate(expireDate);
|
|
220
|
+
setAccessToken(response.access_token);
|
|
221
|
+
setRefreshToken(response.refresh_token);
|
|
209
222
|
};
|
|
210
223
|
// --------------------------------------------------------------------
|
|
211
|
-
const
|
|
212
|
-
if (!
|
|
224
|
+
const refreshSession = createPromiseShareWrapperFn(async ()=>{
|
|
225
|
+
if (!refreshToken.value) {
|
|
226
|
+
throw new kit.TokenError('The access token can not be renewed.');
|
|
227
|
+
}
|
|
228
|
+
return client.token.createWithRefreshToken({
|
|
229
|
+
refresh_token: refreshToken.value
|
|
230
|
+
}).then((r)=>handleTokenGrantResponse(r)).catch((e)=>{
|
|
231
|
+
logout();
|
|
232
|
+
return Promise.reject(e);
|
|
233
|
+
}).finally(()=>{
|
|
234
|
+
tokenResolved.value = false;
|
|
235
|
+
userResolved.value = false;
|
|
236
|
+
});
|
|
237
|
+
});
|
|
238
|
+
// --------------------------------------------------------------------
|
|
239
|
+
const resolveInternal = async ()=>{
|
|
213
240
|
try {
|
|
214
|
-
if (!
|
|
215
|
-
|
|
216
|
-
token: accessToken.value
|
|
217
|
-
}, {
|
|
218
|
-
authorizationHeader: {
|
|
219
|
-
type: 'Bearer',
|
|
220
|
-
token: accessToken.value
|
|
221
|
-
}
|
|
222
|
-
});
|
|
223
|
-
setTokenInfo(token);
|
|
224
|
-
tokenResolved.value = true;
|
|
241
|
+
if (!accessToken.value && refreshToken.value) {
|
|
242
|
+
await refreshSession();
|
|
225
243
|
}
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
244
|
+
if (accessToken.value) {
|
|
245
|
+
await resolveToken();
|
|
246
|
+
if (!user.value) {
|
|
247
|
+
await resolveUser();
|
|
248
|
+
}
|
|
230
249
|
}
|
|
231
250
|
} catch (e) {
|
|
232
|
-
if (coreHttpKit.isClientTokenExpiredError(e)) {
|
|
233
|
-
await
|
|
234
|
-
|
|
235
|
-
refresh: true,
|
|
236
|
-
attempts: ctx.attempts ? ctx.attempts++ : 1
|
|
237
|
-
});
|
|
238
|
-
return;
|
|
251
|
+
if (coreHttpKit.isClientTokenExpiredError(e) && refreshToken.value) {
|
|
252
|
+
await refreshSession();
|
|
253
|
+
return resolveInternal();
|
|
239
254
|
}
|
|
240
255
|
throw e;
|
|
241
256
|
}
|
|
257
|
+
return Promise.resolve();
|
|
242
258
|
};
|
|
259
|
+
const resolve = createPromiseShareWrapperFn(resolveInternal);
|
|
243
260
|
const loggedIn = vue.computed(()=>!!accessToken.value);
|
|
244
261
|
const login = async (ctx)=>{
|
|
245
262
|
try {
|
|
@@ -253,7 +270,7 @@ function createStore(context = {}) {
|
|
|
253
270
|
handleTokenGrantResponse(response);
|
|
254
271
|
await resolve();
|
|
255
272
|
} catch (e) {
|
|
256
|
-
|
|
273
|
+
logout();
|
|
257
274
|
throw e;
|
|
258
275
|
}
|
|
259
276
|
};
|
|
@@ -262,7 +279,10 @@ function createStore(context = {}) {
|
|
|
262
279
|
setAccessTokenExpireDate(undefined);
|
|
263
280
|
setRefreshToken(undefined);
|
|
264
281
|
setUser(undefined);
|
|
265
|
-
|
|
282
|
+
setRealm(undefined);
|
|
283
|
+
setRealmManagement(undefined);
|
|
284
|
+
tokenResolved.value = false;
|
|
285
|
+
userResolved.value = false;
|
|
266
286
|
};
|
|
267
287
|
return {
|
|
268
288
|
initialized,
|
|
@@ -279,8 +299,6 @@ function createStore(context = {}) {
|
|
|
279
299
|
setAccessTokenExpireDate,
|
|
280
300
|
refreshToken,
|
|
281
301
|
setRefreshToken,
|
|
282
|
-
tokenInfo,
|
|
283
|
-
setTokenInfo,
|
|
284
302
|
realm,
|
|
285
303
|
realmId,
|
|
286
304
|
realmIsRoot,
|
|
@@ -363,34 +381,34 @@ function shouldUpdate(dependencies, newCookies, oldCookies) {
|
|
|
363
381
|
|
|
364
382
|
const StoreSymbol = Symbol.for('AuthupStore');
|
|
365
383
|
function useStore(pinia, app) {
|
|
366
|
-
const instance =
|
|
384
|
+
const instance = injectStoreFactory(app);
|
|
367
385
|
if (!instance) {
|
|
368
386
|
throw new Error('The store has not been injected in the app context.');
|
|
369
387
|
}
|
|
370
388
|
return instance(pinia);
|
|
371
389
|
}
|
|
372
|
-
function
|
|
390
|
+
function injectStoreFactory(app) {
|
|
373
391
|
const instance = inject$1(StoreSymbol, app);
|
|
374
392
|
if (!instance) {
|
|
375
|
-
throw new Error('The store has not been injected in the app context.');
|
|
393
|
+
throw new Error('The store factory has not been injected in the app context.');
|
|
376
394
|
}
|
|
377
395
|
return instance;
|
|
378
396
|
}
|
|
379
|
-
function
|
|
397
|
+
function hasStoreFactory(app) {
|
|
380
398
|
return !!inject$1(StoreSymbol, app);
|
|
381
399
|
}
|
|
382
|
-
function
|
|
400
|
+
function provideStoreFactory(store, app) {
|
|
383
401
|
provide(StoreSymbol, store, app);
|
|
384
402
|
}
|
|
385
403
|
|
|
386
404
|
function installStore(app, options = {}) {
|
|
387
|
-
if (
|
|
405
|
+
if (hasStoreFactory(app)) {
|
|
388
406
|
return;
|
|
389
407
|
}
|
|
390
|
-
const
|
|
408
|
+
const storeFactory = pinia.defineStore(STORE_ID, ()=>createStore({
|
|
391
409
|
baseURL: options.baseURL
|
|
392
410
|
}));
|
|
393
|
-
const store =
|
|
411
|
+
const store = storeFactory(options.pinia);
|
|
394
412
|
let cookieGet;
|
|
395
413
|
if (options.cookieGet) {
|
|
396
414
|
cookieGet = options.cookieGet;
|
|
@@ -409,8 +427,8 @@ function installStore(app, options = {}) {
|
|
|
409
427
|
if (options.cookieUnset) {
|
|
410
428
|
cookieUnset = options.cookieUnset;
|
|
411
429
|
} else if (options.cookieSet) {
|
|
412
|
-
cookieUnset = (key)=>{
|
|
413
|
-
options.cookieSet(key, null);
|
|
430
|
+
cookieUnset = (key, opts)=>{
|
|
431
|
+
options.cookieSet(key, null, opts);
|
|
414
432
|
};
|
|
415
433
|
} else {
|
|
416
434
|
const cookies = useCookies();
|
|
@@ -467,12 +485,12 @@ function installStore(app, options = {}) {
|
|
|
467
485
|
return;
|
|
468
486
|
}
|
|
469
487
|
if (action.name === 'logout') {
|
|
470
|
-
cookieUnset(coreHttpKit.CookieName.ACCESS_TOKEN);
|
|
471
|
-
cookieUnset(coreHttpKit.CookieName.ACCESS_TOKEN_EXPIRE_DATE);
|
|
472
|
-
cookieUnset(coreHttpKit.CookieName.REFRESH_TOKEN);
|
|
473
|
-
cookieUnset(coreHttpKit.CookieName.USER);
|
|
474
|
-
cookieUnset(coreHttpKit.CookieName.REALM);
|
|
475
|
-
cookieUnset(coreHttpKit.CookieName.REALM_MANAGEMENT);
|
|
488
|
+
cookieUnset(coreHttpKit.CookieName.ACCESS_TOKEN, {});
|
|
489
|
+
cookieUnset(coreHttpKit.CookieName.ACCESS_TOKEN_EXPIRE_DATE, {});
|
|
490
|
+
cookieUnset(coreHttpKit.CookieName.REFRESH_TOKEN, {});
|
|
491
|
+
cookieUnset(coreHttpKit.CookieName.USER, {});
|
|
492
|
+
cookieUnset(coreHttpKit.CookieName.REALM, {});
|
|
493
|
+
cookieUnset(coreHttpKit.CookieName.REALM_MANAGEMENT, {});
|
|
476
494
|
}
|
|
477
495
|
});
|
|
478
496
|
initStore();
|
|
@@ -480,26 +498,34 @@ function installStore(app, options = {}) {
|
|
|
480
498
|
if (mutation.storeId !== STORE_ID) {
|
|
481
499
|
return;
|
|
482
500
|
}
|
|
501
|
+
let maxAge;
|
|
502
|
+
if (state.accessTokenExpireDate) {
|
|
503
|
+
maxAge = Math.floor(Math.max(1000, new Date(`${state.accessTokenExpireDate}`).getTime() - Date.now()) / 1000);
|
|
504
|
+
}
|
|
483
505
|
if (state.accessToken) {
|
|
484
|
-
cookieSet(coreHttpKit.CookieName.ACCESS_TOKEN, state.accessToken
|
|
506
|
+
cookieSet(coreHttpKit.CookieName.ACCESS_TOKEN, state.accessToken, {
|
|
507
|
+
maxAge
|
|
508
|
+
});
|
|
485
509
|
}
|
|
486
510
|
if (state.accessTokenExpireDate) {
|
|
487
|
-
cookieSet(coreHttpKit.CookieName.ACCESS_TOKEN_EXPIRE_DATE, state.accessTokenExpireDate
|
|
511
|
+
cookieSet(coreHttpKit.CookieName.ACCESS_TOKEN_EXPIRE_DATE, state.accessTokenExpireDate, {
|
|
512
|
+
maxAge
|
|
513
|
+
});
|
|
488
514
|
}
|
|
489
515
|
if (state.refreshToken) {
|
|
490
|
-
cookieSet(coreHttpKit.CookieName.REFRESH_TOKEN, state.refreshToken);
|
|
516
|
+
cookieSet(coreHttpKit.CookieName.REFRESH_TOKEN, state.refreshToken, {});
|
|
491
517
|
}
|
|
492
518
|
if (state.user) {
|
|
493
|
-
cookieSet(coreHttpKit.CookieName.USER, state.user);
|
|
519
|
+
cookieSet(coreHttpKit.CookieName.USER, state.user, {});
|
|
494
520
|
}
|
|
495
521
|
if (state.realm) {
|
|
496
|
-
cookieSet(coreHttpKit.CookieName.REALM, state.realm);
|
|
522
|
+
cookieSet(coreHttpKit.CookieName.REALM, state.realm, {});
|
|
497
523
|
}
|
|
498
524
|
if (state.realmManagement) {
|
|
499
|
-
cookieSet(coreHttpKit.CookieName.REALM_MANAGEMENT, state.realmManagement);
|
|
525
|
+
cookieSet(coreHttpKit.CookieName.REALM_MANAGEMENT, state.realmManagement, {});
|
|
500
526
|
}
|
|
501
527
|
});
|
|
502
|
-
|
|
528
|
+
provideStoreFactory(storeFactory, app);
|
|
503
529
|
}
|
|
504
530
|
|
|
505
531
|
function storeToRefs(store) {
|
|
@@ -522,8 +548,8 @@ function installHTTPClient(app, options = {}) {
|
|
|
522
548
|
const client = new coreHttpKit.Client({
|
|
523
549
|
baseURL: options.baseURL
|
|
524
550
|
});
|
|
525
|
-
const
|
|
526
|
-
const store =
|
|
551
|
+
const storeFactory = injectStoreFactory(app);
|
|
552
|
+
const store = storeFactory(options.pinia);
|
|
527
553
|
const { refreshToken } = pinia.storeToRefs(store);
|
|
528
554
|
const tokenHook = new coreHttpKit.ClientResponseErrorTokenHook(client, {
|
|
529
555
|
baseURL: options.baseURL,
|
|
@@ -540,7 +566,8 @@ function installHTTPClient(app, options = {}) {
|
|
|
540
566
|
},
|
|
541
567
|
tokenFailed: ()=>{
|
|
542
568
|
store.logout();
|
|
543
|
-
}
|
|
569
|
+
},
|
|
570
|
+
timer: !options.isServer
|
|
544
571
|
});
|
|
545
572
|
store.$subscribe((mutation, state)=>{
|
|
546
573
|
if (mutation.storeId !== STORE_ID) return;
|
|
@@ -556,10 +583,7 @@ function installHTTPClient(app, options = {}) {
|
|
|
556
583
|
}
|
|
557
584
|
if (state.refreshToken && state.accessTokenExpireDate) {
|
|
558
585
|
const expiresIn = Math.floor((state.accessTokenExpireDate.getTime() - Date.now()) / 1000);
|
|
559
|
-
tokenHook.setTimer(
|
|
560
|
-
refresh_token: ()=>refreshToken.value,
|
|
561
|
-
expires_in: expiresIn
|
|
562
|
-
});
|
|
586
|
+
tokenHook.setTimer(expiresIn, ()=>refreshToken.value);
|
|
563
587
|
}
|
|
564
588
|
});
|
|
565
589
|
provideHTTPClient(client, app);
|
|
@@ -777,7 +801,7 @@ function injectSocketManager(app) {
|
|
|
777
801
|
}
|
|
778
802
|
|
|
779
803
|
function installSocketManager(app, options) {
|
|
780
|
-
const storeCreator =
|
|
804
|
+
const storeCreator = injectStoreFactory(app);
|
|
781
805
|
const store = storeCreator(options.pinia);
|
|
782
806
|
const { accessToken } = storeToRefs(store);
|
|
783
807
|
const manager = new coreRealtimeKit.ClientManager({
|
|
@@ -1543,26 +1567,25 @@ function createEntityManager(ctx) {
|
|
|
1543
1567
|
* Author Peter Placzek (tada5hi)
|
|
1544
1568
|
* For the full copyright and license information,
|
|
1545
1569
|
* view the LICENSE file that was distributed with this source code.
|
|
1546
|
-
*/
|
|
1547
|
-
(function(TranslatorTranslationGroup) {
|
|
1570
|
+
*/ var TranslatorTranslationGroup = /*#__PURE__*/ function(TranslatorTranslationGroup) {
|
|
1548
1571
|
TranslatorTranslationGroup["DEFAULT"] = "default";
|
|
1549
1572
|
TranslatorTranslationGroup["CLIENT"] = "authupClient";
|
|
1550
1573
|
TranslatorTranslationGroup["VUECS"] = "vuecs";
|
|
1551
1574
|
TranslatorTranslationGroup["VUELIDATE"] = "vuelidate";
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1575
|
+
return TranslatorTranslationGroup;
|
|
1576
|
+
}({});
|
|
1577
|
+
var TranslatorTranslationVuecsKey = /*#__PURE__*/ function(TranslatorTranslationVuecsKey) {
|
|
1555
1578
|
TranslatorTranslationVuecsKey["NO_MORE"] = "noMore";
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1579
|
+
return TranslatorTranslationVuecsKey;
|
|
1580
|
+
}({});
|
|
1581
|
+
var TranslatorTranslationClientKey = /*#__PURE__*/ function(TranslatorTranslationClientKey) {
|
|
1559
1582
|
TranslatorTranslationClientKey["NAME_HINT"] = "nameHint";
|
|
1560
1583
|
TranslatorTranslationClientKey["DESCRIPTION_HINT"] = "descriptionHint";
|
|
1561
1584
|
TranslatorTranslationClientKey["REDIRECT_URI_HINT"] = "redirectURIHint";
|
|
1562
1585
|
TranslatorTranslationClientKey["IS_CONFIDENTIAL"] = "isConfidential";
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1586
|
+
return TranslatorTranslationClientKey;
|
|
1587
|
+
}({});
|
|
1588
|
+
var TranslatorTranslationDefaultKey = /*#__PURE__*/ function(TranslatorTranslationDefaultKey) {
|
|
1566
1589
|
TranslatorTranslationDefaultKey["ADD"] = "add";
|
|
1567
1590
|
TranslatorTranslationDefaultKey["CREATE"] = "create";
|
|
1568
1591
|
TranslatorTranslationDefaultKey["DELETE"] = "delete";
|
|
@@ -1593,7 +1616,8 @@ exports.TranslatorTranslationDefaultKey = void 0;
|
|
|
1593
1616
|
TranslatorTranslationDefaultKey["SECRET"] = "secret";
|
|
1594
1617
|
TranslatorTranslationDefaultKey["REDIRECT_URIS"] = "redirectUris";
|
|
1595
1618
|
TranslatorTranslationDefaultKey["USERS"] = "users";
|
|
1596
|
-
|
|
1619
|
+
return TranslatorTranslationDefaultKey;
|
|
1620
|
+
}({});
|
|
1597
1621
|
|
|
1598
1622
|
/*
|
|
1599
1623
|
* Copyright (c) 2024-2024.
|
|
@@ -1881,49 +1905,49 @@ function useTranslationsForGroup(group, elements) {
|
|
|
1881
1905
|
}
|
|
1882
1906
|
|
|
1883
1907
|
const TranslatorTranslationClientGerman = {
|
|
1884
|
-
[
|
|
1885
|
-
[
|
|
1886
|
-
[
|
|
1887
|
-
[
|
|
1908
|
+
[TranslatorTranslationClientKey.NAME_HINT]: 'Etwas, das Benutzer erkennen und vertrauen werden',
|
|
1909
|
+
[TranslatorTranslationClientKey.DESCRIPTION_HINT]: 'Dies wird allen Benutzern dieser Anwendung angezeigt',
|
|
1910
|
+
[TranslatorTranslationClientKey.REDIRECT_URI_HINT]: 'URI-Muster, zu dem ein Browser nach einem erfolgreichen Login weiterleiten kann',
|
|
1911
|
+
[TranslatorTranslationClientKey.IS_CONFIDENTIAL]: 'Ist vertraulich?'
|
|
1888
1912
|
};
|
|
1889
1913
|
|
|
1890
1914
|
const TranslatorTranslationDefaultGerman = {
|
|
1891
|
-
[
|
|
1892
|
-
[
|
|
1893
|
-
[
|
|
1894
|
-
[
|
|
1895
|
-
[
|
|
1896
|
-
[
|
|
1897
|
-
[
|
|
1898
|
-
[
|
|
1899
|
-
[
|
|
1900
|
-
[
|
|
1901
|
-
[
|
|
1902
|
-
[
|
|
1903
|
-
[
|
|
1904
|
-
[
|
|
1905
|
-
[
|
|
1906
|
-
[
|
|
1907
|
-
[
|
|
1908
|
-
[
|
|
1909
|
-
[
|
|
1910
|
-
[
|
|
1911
|
-
[
|
|
1912
|
-
[
|
|
1913
|
-
[
|
|
1914
|
-
[
|
|
1915
|
-
[
|
|
1916
|
-
[
|
|
1917
|
-
[
|
|
1918
|
-
[
|
|
1919
|
-
[
|
|
1915
|
+
[TranslatorTranslationDefaultKey.ADD]: 'hinzufügen',
|
|
1916
|
+
[TranslatorTranslationDefaultKey.CREATE]: 'erstellen',
|
|
1917
|
+
[TranslatorTranslationDefaultKey.DELETE]: 'löschen',
|
|
1918
|
+
[TranslatorTranslationDefaultKey.GENERATE]: 'generieren',
|
|
1919
|
+
[TranslatorTranslationDefaultKey.UPDATE]: 'aktualisieren',
|
|
1920
|
+
[TranslatorTranslationDefaultKey.ACTIVE]: 'aktiv',
|
|
1921
|
+
[TranslatorTranslationDefaultKey.INACTIVE]: 'inaktiv',
|
|
1922
|
+
[TranslatorTranslationDefaultKey.LOCKED]: 'gesperrt',
|
|
1923
|
+
[TranslatorTranslationDefaultKey.NOT_LOCKED]: 'nicht gesperrt',
|
|
1924
|
+
[TranslatorTranslationDefaultKey.VALUE_IS_REGEX]: 'Wert ist regex pattern?',
|
|
1925
|
+
[TranslatorTranslationDefaultKey.CLIENT]: 'Client',
|
|
1926
|
+
[TranslatorTranslationDefaultKey.CLIENTS]: 'Clients',
|
|
1927
|
+
[TranslatorTranslationDefaultKey.CLIENT_SCOPES]: 'Client-Bereiche',
|
|
1928
|
+
[TranslatorTranslationDefaultKey.DISPLAY_NAME]: 'Anzeigename',
|
|
1929
|
+
[TranslatorTranslationDefaultKey.EMAIL]: 'E-Mail',
|
|
1930
|
+
[TranslatorTranslationDefaultKey.EXTERNAL_ID]: 'externe ID',
|
|
1931
|
+
[TranslatorTranslationDefaultKey.HASHED]: 'gehasht',
|
|
1932
|
+
[TranslatorTranslationDefaultKey.OVERVIEW]: 'Überblick',
|
|
1933
|
+
[TranslatorTranslationDefaultKey.IDENTITY_PROVIDERS]: 'Identitätsanbieter',
|
|
1934
|
+
[TranslatorTranslationDefaultKey.NAME]: 'Name',
|
|
1935
|
+
[TranslatorTranslationDefaultKey.DESCRIPTION]: 'Beschreibung',
|
|
1936
|
+
[TranslatorTranslationDefaultKey.PERMISSIONS]: 'Berechtigungen',
|
|
1937
|
+
[TranslatorTranslationDefaultKey.REALM]: 'Organisation',
|
|
1938
|
+
[TranslatorTranslationDefaultKey.REALMS]: 'Organisationen',
|
|
1939
|
+
[TranslatorTranslationDefaultKey.ROLES]: 'Rollen',
|
|
1940
|
+
[TranslatorTranslationDefaultKey.SCOPES]: 'Bereiche',
|
|
1941
|
+
[TranslatorTranslationDefaultKey.SECRET]: 'Geheimnis',
|
|
1942
|
+
[TranslatorTranslationDefaultKey.REDIRECT_URIS]: 'Weiterleitungs-URIs',
|
|
1943
|
+
[TranslatorTranslationDefaultKey.USERS]: 'Benutzer'
|
|
1920
1944
|
};
|
|
1921
1945
|
|
|
1922
|
-
|
|
1923
|
-
(function(VuelidateCustomRuleKey) {
|
|
1946
|
+
var VuelidateCustomRuleKey = /*#__PURE__*/ function(VuelidateCustomRuleKey) {
|
|
1924
1947
|
VuelidateCustomRuleKey["ALPHA_NUM_HYPHEN_UNDERSCORE"] = "alphaNumHyphenUnderscore";
|
|
1925
1948
|
VuelidateCustomRuleKey["ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE"] = "alphaUpperNumHyphenUnderscore";
|
|
1926
|
-
|
|
1949
|
+
return VuelidateCustomRuleKey;
|
|
1950
|
+
}({});
|
|
1927
1951
|
const VuelidateCustomRule = {
|
|
1928
1952
|
["alphaNumHyphenUnderscore"]: validators.helpers.regex(/^[a-z0-9-_]*$/),
|
|
1929
1953
|
["alphaUpperNumHyphenUnderscore"]: validators.helpers.regex(/^[a-zA-Z0-9-_]*$/)
|
|
@@ -1947,76 +1971,76 @@ function extractVuelidateResultsFromChild(vuelidate, child, keys) {
|
|
|
1947
1971
|
}
|
|
1948
1972
|
|
|
1949
1973
|
const TranslatorTranslationVuelidateGerman = {
|
|
1950
|
-
[
|
|
1951
|
-
[
|
|
1974
|
+
[VuelidateCustomRuleKey.ALPHA_NUM_HYPHEN_UNDERSCORE]: 'Der Eingabewert darf nur aus folgenden Zeichen bestehen: [0-9a-z-_]+',
|
|
1975
|
+
[VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE]: 'Der Eingabewert darf nur aus folgenden Zeichen bestehen: [0-9a-zA-Z-_]+'
|
|
1952
1976
|
};
|
|
1953
1977
|
|
|
1954
1978
|
const TranslatorTranslationVuecsGerman = {
|
|
1955
|
-
[
|
|
1979
|
+
[TranslatorTranslationVuecsKey.NO_MORE]: 'Keine weiteren {{name}} verfügbar'
|
|
1956
1980
|
};
|
|
1957
1981
|
|
|
1958
1982
|
const TranslatorTranslationClientEnglish = {
|
|
1959
|
-
[
|
|
1960
|
-
[
|
|
1961
|
-
[
|
|
1962
|
-
[
|
|
1983
|
+
[TranslatorTranslationClientKey.NAME_HINT]: 'Something users will recognize and trust',
|
|
1984
|
+
[TranslatorTranslationClientKey.DESCRIPTION_HINT]: 'Displayed to all users of this application',
|
|
1985
|
+
[TranslatorTranslationClientKey.REDIRECT_URI_HINT]: 'URI pattern a browser can redirect to after a successful login',
|
|
1986
|
+
[TranslatorTranslationClientKey.IS_CONFIDENTIAL]: 'Is confidential?'
|
|
1963
1987
|
};
|
|
1964
1988
|
|
|
1965
1989
|
const TranslatorTranslationDefaultEnglish = {
|
|
1966
|
-
[
|
|
1967
|
-
[
|
|
1968
|
-
[
|
|
1969
|
-
[
|
|
1970
|
-
[
|
|
1971
|
-
[
|
|
1972
|
-
[
|
|
1973
|
-
[
|
|
1974
|
-
[
|
|
1975
|
-
[
|
|
1976
|
-
[
|
|
1977
|
-
[
|
|
1978
|
-
[
|
|
1979
|
-
[
|
|
1980
|
-
[
|
|
1981
|
-
[
|
|
1982
|
-
[
|
|
1983
|
-
[
|
|
1984
|
-
[
|
|
1985
|
-
[
|
|
1986
|
-
[
|
|
1987
|
-
[
|
|
1988
|
-
[
|
|
1989
|
-
[
|
|
1990
|
-
[
|
|
1991
|
-
[
|
|
1992
|
-
[
|
|
1993
|
-
[
|
|
1994
|
-
[
|
|
1990
|
+
[TranslatorTranslationDefaultKey.ADD]: 'add',
|
|
1991
|
+
[TranslatorTranslationDefaultKey.CREATE]: 'create',
|
|
1992
|
+
[TranslatorTranslationDefaultKey.DELETE]: 'delete',
|
|
1993
|
+
[TranslatorTranslationDefaultKey.GENERATE]: 'generate',
|
|
1994
|
+
[TranslatorTranslationDefaultKey.UPDATE]: 'update',
|
|
1995
|
+
[TranslatorTranslationDefaultKey.ACTIVE]: 'active',
|
|
1996
|
+
[TranslatorTranslationDefaultKey.INACTIVE]: 'inactive',
|
|
1997
|
+
[TranslatorTranslationDefaultKey.LOCKED]: 'locked',
|
|
1998
|
+
[TranslatorTranslationDefaultKey.NOT_LOCKED]: 'not locked',
|
|
1999
|
+
[TranslatorTranslationDefaultKey.VALUE_IS_REGEX]: 'Value is regex pattern?',
|
|
2000
|
+
[TranslatorTranslationDefaultKey.CLIENT]: 'update',
|
|
2001
|
+
[TranslatorTranslationDefaultKey.CLIENTS]: 'clients',
|
|
2002
|
+
[TranslatorTranslationDefaultKey.CLIENT_SCOPES]: 'client scopes',
|
|
2003
|
+
[TranslatorTranslationDefaultKey.DISPLAY_NAME]: 'display name',
|
|
2004
|
+
[TranslatorTranslationDefaultKey.EMAIL]: 'email',
|
|
2005
|
+
[TranslatorTranslationDefaultKey.EXTERNAL_ID]: 'external id',
|
|
2006
|
+
[TranslatorTranslationDefaultKey.HASHED]: 'hashed',
|
|
2007
|
+
[TranslatorTranslationDefaultKey.OVERVIEW]: 'overview',
|
|
2008
|
+
[TranslatorTranslationDefaultKey.IDENTITY_PROVIDERS]: 'identity providers',
|
|
2009
|
+
[TranslatorTranslationDefaultKey.NAME]: 'name',
|
|
2010
|
+
[TranslatorTranslationDefaultKey.DESCRIPTION]: 'description',
|
|
2011
|
+
[TranslatorTranslationDefaultKey.PERMISSIONS]: 'permissions',
|
|
2012
|
+
[TranslatorTranslationDefaultKey.REALM]: 'realm',
|
|
2013
|
+
[TranslatorTranslationDefaultKey.REALMS]: 'realms',
|
|
2014
|
+
[TranslatorTranslationDefaultKey.ROLES]: 'roles',
|
|
2015
|
+
[TranslatorTranslationDefaultKey.SCOPES]: 'scopes',
|
|
2016
|
+
[TranslatorTranslationDefaultKey.SECRET]: 'secret',
|
|
2017
|
+
[TranslatorTranslationDefaultKey.REDIRECT_URIS]: 'redirect uri(s)',
|
|
2018
|
+
[TranslatorTranslationDefaultKey.USERS]: 'users'
|
|
1995
2019
|
};
|
|
1996
2020
|
|
|
1997
2021
|
const TranslatorTranslationVuelidateEnglish = {
|
|
1998
|
-
[
|
|
1999
|
-
[
|
|
2022
|
+
[VuelidateCustomRuleKey.ALPHA_NUM_HYPHEN_UNDERSCORE]: 'The input value is only allowed to consist of the following characters: [0-9a-z-_]+',
|
|
2023
|
+
[VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE]: 'The input value is only allowed to consist of the following characters: [0-9a-zA-Z-_]+'
|
|
2000
2024
|
};
|
|
2001
2025
|
|
|
2002
2026
|
const TranslatorTranslationVuecsEnglish = {
|
|
2003
|
-
[
|
|
2027
|
+
[TranslatorTranslationVuecsKey.NO_MORE]: 'No more {{name}} available'
|
|
2004
2028
|
};
|
|
2005
2029
|
|
|
2006
2030
|
function installTranslator(app, options = {}) {
|
|
2007
2031
|
const store = new MemoryStore({
|
|
2008
2032
|
data: {
|
|
2009
2033
|
de: {
|
|
2010
|
-
[
|
|
2011
|
-
[
|
|
2012
|
-
[
|
|
2013
|
-
[
|
|
2034
|
+
[TranslatorTranslationGroup.CLIENT]: TranslatorTranslationClientGerman,
|
|
2035
|
+
[TranslatorTranslationGroup.DEFAULT]: TranslatorTranslationDefaultGerman,
|
|
2036
|
+
[TranslatorTranslationGroup.VUECS]: TranslatorTranslationVuecsGerman,
|
|
2037
|
+
[TranslatorTranslationGroup.VUELIDATE]: TranslatorTranslationVuelidateGerman
|
|
2014
2038
|
},
|
|
2015
2039
|
en: {
|
|
2016
|
-
[
|
|
2017
|
-
[
|
|
2018
|
-
[
|
|
2019
|
-
[
|
|
2040
|
+
[TranslatorTranslationGroup.CLIENT]: TranslatorTranslationClientEnglish,
|
|
2041
|
+
[TranslatorTranslationGroup.DEFAULT]: TranslatorTranslationDefaultEnglish,
|
|
2042
|
+
[TranslatorTranslationGroup.VUECS]: TranslatorTranslationVuecsEnglish,
|
|
2043
|
+
[TranslatorTranslationGroup.VUELIDATE]: TranslatorTranslationVuelidateEnglish
|
|
2020
2044
|
}
|
|
2021
2045
|
}
|
|
2022
2046
|
});
|
|
@@ -2028,12 +2052,12 @@ function installTranslator(app, options = {}) {
|
|
|
2028
2052
|
|
|
2029
2053
|
function createFormSubmitTranslations() {
|
|
2030
2054
|
const updateText = useTranslation({
|
|
2031
|
-
group:
|
|
2032
|
-
key:
|
|
2055
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
2056
|
+
key: TranslatorTranslationDefaultKey.UPDATE
|
|
2033
2057
|
});
|
|
2034
2058
|
const createText = useTranslation({
|
|
2035
|
-
group:
|
|
2036
|
-
key:
|
|
2059
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
2060
|
+
key: TranslatorTranslationDefaultKey.CREATE
|
|
2037
2061
|
});
|
|
2038
2062
|
return {
|
|
2039
2063
|
createText,
|
|
@@ -2063,6 +2087,65 @@ function buildFormSubmitWithTranslations(options, translations) {
|
|
|
2063
2087
|
};
|
|
2064
2088
|
}
|
|
2065
2089
|
|
|
2090
|
+
function createPermissionCheckerReactiveFn(ctx = {}) {
|
|
2091
|
+
let store;
|
|
2092
|
+
if (ctx.store) {
|
|
2093
|
+
store = ctx.store;
|
|
2094
|
+
} else {
|
|
2095
|
+
store = useStore(ctx.pinia, ctx.app);
|
|
2096
|
+
}
|
|
2097
|
+
const storeRefs = storeToRefs(store);
|
|
2098
|
+
return (ctx)=>{
|
|
2099
|
+
const data = vue.ref(false);
|
|
2100
|
+
let computePromise;
|
|
2101
|
+
const compute = async ()=>{
|
|
2102
|
+
if (computePromise) {
|
|
2103
|
+
return computePromise;
|
|
2104
|
+
}
|
|
2105
|
+
let identity;
|
|
2106
|
+
if (storeRefs.userId.value) {
|
|
2107
|
+
identity = {
|
|
2108
|
+
type: 'user',
|
|
2109
|
+
id: storeRefs.userId.value
|
|
2110
|
+
};
|
|
2111
|
+
}
|
|
2112
|
+
let outcome;
|
|
2113
|
+
try {
|
|
2114
|
+
computePromise = store.permissionChecker.preCheckOneOf({
|
|
2115
|
+
...ctx,
|
|
2116
|
+
data: {
|
|
2117
|
+
...ctx.data || {},
|
|
2118
|
+
identity
|
|
2119
|
+
}
|
|
2120
|
+
}).then(()=>true).catch(()=>false);
|
|
2121
|
+
outcome = await computePromise;
|
|
2122
|
+
} catch (e) {
|
|
2123
|
+
outcome = false;
|
|
2124
|
+
} finally{
|
|
2125
|
+
computePromise = undefined;
|
|
2126
|
+
}
|
|
2127
|
+
return outcome;
|
|
2128
|
+
};
|
|
2129
|
+
Promise.resolve().then(()=>compute()).then((outcome)=>{
|
|
2130
|
+
data.value = outcome;
|
|
2131
|
+
});
|
|
2132
|
+
let removeListener;
|
|
2133
|
+
vue.onMounted(()=>{
|
|
2134
|
+
removeListener = vue.watch(storeRefs.loggedIn, ()=>{
|
|
2135
|
+
Promise.resolve().then(()=>compute()).then((outcome)=>{
|
|
2136
|
+
data.value = outcome;
|
|
2137
|
+
});
|
|
2138
|
+
});
|
|
2139
|
+
});
|
|
2140
|
+
vue.onUnmounted(()=>{
|
|
2141
|
+
if (typeof removeListener !== 'undefined') {
|
|
2142
|
+
removeListener();
|
|
2143
|
+
}
|
|
2144
|
+
});
|
|
2145
|
+
return data;
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2066
2149
|
const AClient = vue.defineComponent({
|
|
2067
2150
|
props: defineEntityManagerProps(),
|
|
2068
2151
|
emits: defineEntityManagerEvents(),
|
|
@@ -2110,55 +2193,9 @@ function useUpdatedAt(input) {
|
|
|
2110
2193
|
});
|
|
2111
2194
|
}
|
|
2112
2195
|
|
|
2113
|
-
function
|
|
2114
|
-
const
|
|
2115
|
-
|
|
2116
|
-
const data = vue.ref(false);
|
|
2117
|
-
let computePromise;
|
|
2118
|
-
const compute = async ()=>{
|
|
2119
|
-
if (computePromise) {
|
|
2120
|
-
return computePromise;
|
|
2121
|
-
}
|
|
2122
|
-
let identity;
|
|
2123
|
-
if (refs.userId.value) {
|
|
2124
|
-
identity = {
|
|
2125
|
-
type: 'user',
|
|
2126
|
-
id: refs.userId.value
|
|
2127
|
-
};
|
|
2128
|
-
}
|
|
2129
|
-
let outcome;
|
|
2130
|
-
try {
|
|
2131
|
-
computePromise = store.permissionChecker.preCheck({
|
|
2132
|
-
name,
|
|
2133
|
-
data: {
|
|
2134
|
-
identity
|
|
2135
|
-
}
|
|
2136
|
-
}).then(()=>true).catch(()=>false);
|
|
2137
|
-
outcome = await computePromise;
|
|
2138
|
-
} catch (e) {
|
|
2139
|
-
outcome = false;
|
|
2140
|
-
} finally{
|
|
2141
|
-
computePromise = undefined;
|
|
2142
|
-
}
|
|
2143
|
-
return outcome;
|
|
2144
|
-
};
|
|
2145
|
-
Promise.resolve().then(()=>compute()).then((outcome)=>{
|
|
2146
|
-
data.value = outcome;
|
|
2147
|
-
});
|
|
2148
|
-
let removeListener;
|
|
2149
|
-
vue.onMounted(()=>{
|
|
2150
|
-
removeListener = vue.watch(refs.loggedIn, ()=>{
|
|
2151
|
-
Promise.resolve().then(()=>compute()).then((outcome)=>{
|
|
2152
|
-
data.value = outcome;
|
|
2153
|
-
});
|
|
2154
|
-
});
|
|
2155
|
-
});
|
|
2156
|
-
vue.onUnmounted(()=>{
|
|
2157
|
-
if (typeof removeListener !== 'undefined') {
|
|
2158
|
-
removeListener();
|
|
2159
|
-
}
|
|
2160
|
-
});
|
|
2161
|
-
return data;
|
|
2196
|
+
function usePermissionCheck(ctx) {
|
|
2197
|
+
const checkFn = createPermissionCheckerReactiveFn();
|
|
2198
|
+
return checkFn(ctx);
|
|
2162
2199
|
}
|
|
2163
2200
|
|
|
2164
2201
|
function useRealmResourceWritableCheck(realmId) {
|
|
@@ -2252,18 +2289,18 @@ const ARealmForm = vue.defineComponent({
|
|
|
2252
2289
|
};
|
|
2253
2290
|
const translationsValidation = useTranslationsForNestedValidation($v.value);
|
|
2254
2291
|
const translationsSubmit = createFormSubmitTranslations();
|
|
2255
|
-
const translationsDefault = useTranslationsForGroup(
|
|
2292
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
2256
2293
|
{
|
|
2257
|
-
key:
|
|
2294
|
+
key: TranslatorTranslationDefaultKey.GENERATE
|
|
2258
2295
|
},
|
|
2259
2296
|
{
|
|
2260
|
-
key:
|
|
2297
|
+
key: TranslatorTranslationDefaultKey.NAME
|
|
2261
2298
|
},
|
|
2262
2299
|
{
|
|
2263
|
-
key:
|
|
2300
|
+
key: TranslatorTranslationDefaultKey.DISPLAY_NAME
|
|
2264
2301
|
},
|
|
2265
2302
|
{
|
|
2266
|
-
key:
|
|
2303
|
+
key: TranslatorTranslationDefaultKey.DESCRIPTION
|
|
2267
2304
|
}
|
|
2268
2305
|
]);
|
|
2269
2306
|
const render = ()=>{
|
|
@@ -2272,7 +2309,7 @@ const ARealmForm = vue.defineComponent({
|
|
|
2272
2309
|
validationMessages: translationsValidation.name.value,
|
|
2273
2310
|
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
2274
2311
|
label: true,
|
|
2275
|
-
labelContent: translationsDefault[
|
|
2312
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.NAME].value,
|
|
2276
2313
|
content: formControls.buildFormInput({
|
|
2277
2314
|
value: $v.value.name.$model,
|
|
2278
2315
|
onChange (input) {
|
|
@@ -2305,7 +2342,7 @@ const ARealmForm = vue.defineComponent({
|
|
|
2305
2342
|
class: 'fa fa-wrench'
|
|
2306
2343
|
}),
|
|
2307
2344
|
' ',
|
|
2308
|
-
translationsDefault[
|
|
2345
|
+
translationsDefault[TranslatorTranslationDefaultKey.GENERATE].value
|
|
2309
2346
|
])
|
|
2310
2347
|
])
|
|
2311
2348
|
]);
|
|
@@ -2314,7 +2351,7 @@ const ARealmForm = vue.defineComponent({
|
|
|
2314
2351
|
validationMessages: translationsValidation.display_name.value,
|
|
2315
2352
|
validationSeverity: getVuelidateSeverity($v.value.display_name),
|
|
2316
2353
|
label: true,
|
|
2317
|
-
labelContent: translationsDefault[
|
|
2354
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DISPLAY_NAME].value,
|
|
2318
2355
|
content: formControls.buildFormInput({
|
|
2319
2356
|
value: $v.value.display_name.$model,
|
|
2320
2357
|
onChange (input) {
|
|
@@ -2326,7 +2363,7 @@ const ARealmForm = vue.defineComponent({
|
|
|
2326
2363
|
validationMessages: translationsValidation.description.value,
|
|
2327
2364
|
validationSeverity: getVuelidateSeverity($v.value.description),
|
|
2328
2365
|
label: true,
|
|
2329
|
-
labelContent: translationsDefault[
|
|
2366
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DESCRIPTION].value,
|
|
2330
2367
|
content: formControls.buildFormTextarea({
|
|
2331
2368
|
value: $v.value.description.$model,
|
|
2332
2369
|
onChange (input) {
|
|
@@ -2365,12 +2402,12 @@ const ARealms = vue.defineComponent({
|
|
|
2365
2402
|
setup: ctx
|
|
2366
2403
|
});
|
|
2367
2404
|
const translationsName = useTranslation({
|
|
2368
|
-
group:
|
|
2369
|
-
key:
|
|
2405
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
2406
|
+
key: TranslatorTranslationDefaultKey.REALMS
|
|
2370
2407
|
});
|
|
2371
2408
|
const translation = useTranslation({
|
|
2372
|
-
group:
|
|
2373
|
-
key:
|
|
2409
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
2410
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
2374
2411
|
data: {
|
|
2375
2412
|
name: translationsName
|
|
2376
2413
|
}
|
|
@@ -2469,8 +2506,8 @@ const AClientRedirectUris = vue.defineComponent({
|
|
|
2469
2506
|
return lastEl && lastEl.trim() !== '';
|
|
2470
2507
|
});
|
|
2471
2508
|
const addTranslation = useTranslation({
|
|
2472
|
-
group:
|
|
2473
|
-
key:
|
|
2509
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
2510
|
+
key: TranslatorTranslationDefaultKey.ADD
|
|
2474
2511
|
});
|
|
2475
2512
|
const render = ()=>{
|
|
2476
2513
|
const elements = items.value.map((item, index)=>vue.h(AClientRedirectUrisItem, {
|
|
@@ -2541,7 +2578,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2541
2578
|
const $v = useVuelidate({
|
|
2542
2579
|
name: {
|
|
2543
2580
|
required: validators.required,
|
|
2544
|
-
[
|
|
2581
|
+
[VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE]: VuelidateCustomRule[VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE],
|
|
2545
2582
|
minLength: validators.minLength(3),
|
|
2546
2583
|
maxLength: validators.maxLength(256)
|
|
2547
2584
|
},
|
|
@@ -2605,41 +2642,41 @@ const AClientForm = vue.defineComponent({
|
|
|
2605
2642
|
};
|
|
2606
2643
|
const translationsValidation = useTranslationsForNestedValidation($v.value);
|
|
2607
2644
|
const translationsSubmit = createFormSubmitTranslations();
|
|
2608
|
-
const translationsClient = useTranslationsForGroup(
|
|
2645
|
+
const translationsClient = useTranslationsForGroup(TranslatorTranslationGroup.CLIENT, [
|
|
2609
2646
|
{
|
|
2610
|
-
key:
|
|
2647
|
+
key: TranslatorTranslationClientKey.NAME_HINT
|
|
2611
2648
|
},
|
|
2612
2649
|
{
|
|
2613
|
-
key:
|
|
2650
|
+
key: TranslatorTranslationClientKey.DESCRIPTION_HINT
|
|
2614
2651
|
},
|
|
2615
2652
|
{
|
|
2616
|
-
key:
|
|
2653
|
+
key: TranslatorTranslationClientKey.REDIRECT_URI_HINT
|
|
2617
2654
|
},
|
|
2618
2655
|
{
|
|
2619
|
-
key:
|
|
2656
|
+
key: TranslatorTranslationClientKey.IS_CONFIDENTIAL
|
|
2620
2657
|
}
|
|
2621
2658
|
]);
|
|
2622
|
-
const translationsDefault = useTranslationsForGroup(
|
|
2659
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
2623
2660
|
{
|
|
2624
|
-
key:
|
|
2661
|
+
key: TranslatorTranslationDefaultKey.GENERATE
|
|
2625
2662
|
},
|
|
2626
2663
|
{
|
|
2627
|
-
key:
|
|
2664
|
+
key: TranslatorTranslationDefaultKey.NAME
|
|
2628
2665
|
},
|
|
2629
2666
|
{
|
|
2630
|
-
key:
|
|
2667
|
+
key: TranslatorTranslationDefaultKey.DISPLAY_NAME
|
|
2631
2668
|
},
|
|
2632
2669
|
{
|
|
2633
|
-
key:
|
|
2670
|
+
key: TranslatorTranslationDefaultKey.DESCRIPTION
|
|
2634
2671
|
},
|
|
2635
2672
|
{
|
|
2636
|
-
key:
|
|
2673
|
+
key: TranslatorTranslationDefaultKey.REALM
|
|
2637
2674
|
},
|
|
2638
2675
|
{
|
|
2639
|
-
key:
|
|
2676
|
+
key: TranslatorTranslationDefaultKey.REDIRECT_URIS
|
|
2640
2677
|
},
|
|
2641
2678
|
{
|
|
2642
|
-
key:
|
|
2679
|
+
key: TranslatorTranslationDefaultKey.SECRET
|
|
2643
2680
|
}
|
|
2644
2681
|
]);
|
|
2645
2682
|
const render = ()=>{
|
|
@@ -2648,7 +2685,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2648
2685
|
validationMessages: translationsValidation.name.value,
|
|
2649
2686
|
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
2650
2687
|
label: true,
|
|
2651
|
-
labelContent: translationsDefault[
|
|
2688
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.NAME].value,
|
|
2652
2689
|
content: formControls.buildFormInput({
|
|
2653
2690
|
value: $v.value.name.$model,
|
|
2654
2691
|
onChange (input) {
|
|
@@ -2659,13 +2696,13 @@ const AClientForm = vue.defineComponent({
|
|
|
2659
2696
|
}
|
|
2660
2697
|
})
|
|
2661
2698
|
}),
|
|
2662
|
-
vue.h('small', translationsClient[
|
|
2699
|
+
vue.h('small', translationsClient[TranslatorTranslationClientKey.NAME_HINT].value)
|
|
2663
2700
|
];
|
|
2664
2701
|
const displayName = formControls.buildFormGroup({
|
|
2665
2702
|
validationMessages: translationsValidation.display_name.value,
|
|
2666
2703
|
validationSeverity: getVuelidateSeverity($v.value.display_name),
|
|
2667
2704
|
label: true,
|
|
2668
|
-
labelContent: translationsDefault[
|
|
2705
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DISPLAY_NAME].value,
|
|
2669
2706
|
content: formControls.buildFormInput({
|
|
2670
2707
|
value: $v.value.display_name.$model,
|
|
2671
2708
|
onChange (input) {
|
|
@@ -2679,7 +2716,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2679
2716
|
validationMessages: translationsValidation.description.value,
|
|
2680
2717
|
validationSeverity: getVuelidateSeverity($v.value.description),
|
|
2681
2718
|
label: true,
|
|
2682
|
-
labelContent: translationsDefault[
|
|
2719
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DESCRIPTION].value,
|
|
2683
2720
|
content: formControls.buildFormTextarea({
|
|
2684
2721
|
value: $v.value.description.$model,
|
|
2685
2722
|
onChange (input) {
|
|
@@ -2690,7 +2727,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2690
2727
|
}
|
|
2691
2728
|
})
|
|
2692
2729
|
}),
|
|
2693
|
-
vue.h('small', translationsClient[
|
|
2730
|
+
vue.h('small', translationsClient[TranslatorTranslationClientKey.DESCRIPTION_HINT].value)
|
|
2694
2731
|
])
|
|
2695
2732
|
];
|
|
2696
2733
|
const redirectUri = [
|
|
@@ -2698,7 +2735,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2698
2735
|
vue.h('label', {
|
|
2699
2736
|
class: 'form-label'
|
|
2700
2737
|
}, [
|
|
2701
|
-
translationsDefault[
|
|
2738
|
+
translationsDefault[TranslatorTranslationDefaultKey.REDIRECT_URIS].value
|
|
2702
2739
|
]),
|
|
2703
2740
|
vue.h(AClientRedirectUris, {
|
|
2704
2741
|
uri: form.redirect_uri,
|
|
@@ -2706,7 +2743,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2706
2743
|
form.redirect_uri = value;
|
|
2707
2744
|
}
|
|
2708
2745
|
}),
|
|
2709
|
-
vue.h('small', translationsClient[
|
|
2746
|
+
vue.h('small', translationsClient[TranslatorTranslationClientKey.REDIRECT_URI_HINT].value)
|
|
2710
2747
|
])
|
|
2711
2748
|
];
|
|
2712
2749
|
const isConfidential = formControls.buildFormGroup({
|
|
@@ -2714,7 +2751,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2714
2751
|
validationSeverity: getVuelidateSeverity($v.value.is_confidential),
|
|
2715
2752
|
content: formControls.buildFormInputCheckbox({
|
|
2716
2753
|
groupClass: 'form-switch mt-3',
|
|
2717
|
-
labelContent: translationsClient[
|
|
2754
|
+
labelContent: translationsClient[TranslatorTranslationClientKey.IS_CONFIDENTIAL].value,
|
|
2718
2755
|
value: $v.value.is_confidential.$model,
|
|
2719
2756
|
onChange (input) {
|
|
2720
2757
|
$v.value.is_confidential.$model = input;
|
|
@@ -2742,7 +2779,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2742
2779
|
validationMessages: translationsValidation.secret.value,
|
|
2743
2780
|
validationSeverity: getVuelidateSeverity($v.value.secret),
|
|
2744
2781
|
label: true,
|
|
2745
|
-
labelContent: translationsDefault[
|
|
2782
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.SECRET].value,
|
|
2746
2783
|
content: formControls.buildFormInput({
|
|
2747
2784
|
value: $v.value.secret.$model,
|
|
2748
2785
|
onChange (input) {
|
|
@@ -2764,7 +2801,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2764
2801
|
class: 'fa fa-wrench'
|
|
2765
2802
|
}),
|
|
2766
2803
|
' ',
|
|
2767
|
-
translationsDefault[
|
|
2804
|
+
translationsDefault[TranslatorTranslationDefaultKey.GENERATE].value
|
|
2768
2805
|
])
|
|
2769
2806
|
])
|
|
2770
2807
|
];
|
|
@@ -2780,7 +2817,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2780
2817
|
vue.h('hr'),
|
|
2781
2818
|
vue.h('label', {
|
|
2782
2819
|
class: 'form-label'
|
|
2783
|
-
}, translationsDefault[
|
|
2820
|
+
}, translationsDefault[TranslatorTranslationDefaultKey.REALM].value),
|
|
2784
2821
|
vue.h(ARealms, {
|
|
2785
2822
|
headerTitle: false
|
|
2786
2823
|
}, {
|
|
@@ -2849,12 +2886,12 @@ const AClients = vue.defineComponent({
|
|
|
2849
2886
|
setup: ctx
|
|
2850
2887
|
});
|
|
2851
2888
|
const translationName = useTranslation({
|
|
2852
|
-
group:
|
|
2853
|
-
key:
|
|
2889
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
2890
|
+
key: TranslatorTranslationDefaultKey.CLIENTS
|
|
2854
2891
|
});
|
|
2855
2892
|
const translation = useTranslation({
|
|
2856
|
-
group:
|
|
2857
|
-
key:
|
|
2893
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
2894
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
2858
2895
|
data: {
|
|
2859
2896
|
name: translationName
|
|
2860
2897
|
}
|
|
@@ -2897,12 +2934,12 @@ const AClientScopes = vue.defineComponent({
|
|
|
2897
2934
|
setup: ctx
|
|
2898
2935
|
});
|
|
2899
2936
|
const translationClientScopes = useTranslation({
|
|
2900
|
-
group:
|
|
2901
|
-
key:
|
|
2937
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
2938
|
+
key: TranslatorTranslationDefaultKey.CLIENT_SCOPES
|
|
2902
2939
|
});
|
|
2903
2940
|
const translation = useTranslation({
|
|
2904
|
-
group:
|
|
2905
|
-
key:
|
|
2941
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
2942
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
2906
2943
|
data: {
|
|
2907
2944
|
name: translationClientScopes
|
|
2908
2945
|
}
|
|
@@ -2956,7 +2993,7 @@ const AScopeForm = vue.defineComponent({
|
|
|
2956
2993
|
const $v = useVuelidate({
|
|
2957
2994
|
name: {
|
|
2958
2995
|
required: validators.required,
|
|
2959
|
-
[
|
|
2996
|
+
[VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE]: VuelidateCustomRule[VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE],
|
|
2960
2997
|
minLength: validators.minLength(3),
|
|
2961
2998
|
maxLength: validators.maxLength(256)
|
|
2962
2999
|
},
|
|
@@ -3012,18 +3049,18 @@ const AScopeForm = vue.defineComponent({
|
|
|
3012
3049
|
};
|
|
3013
3050
|
const translationsValidation = useTranslationsForNestedValidation($v.value);
|
|
3014
3051
|
const translationsSubmit = createFormSubmitTranslations();
|
|
3015
|
-
const translationsDefault = useTranslationsForGroup(
|
|
3052
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
3016
3053
|
{
|
|
3017
|
-
key:
|
|
3054
|
+
key: TranslatorTranslationDefaultKey.NAME
|
|
3018
3055
|
},
|
|
3019
3056
|
{
|
|
3020
|
-
key:
|
|
3057
|
+
key: TranslatorTranslationDefaultKey.DISPLAY_NAME
|
|
3021
3058
|
},
|
|
3022
3059
|
{
|
|
3023
|
-
key:
|
|
3060
|
+
key: TranslatorTranslationDefaultKey.DESCRIPTION
|
|
3024
3061
|
},
|
|
3025
3062
|
{
|
|
3026
|
-
key:
|
|
3063
|
+
key: TranslatorTranslationDefaultKey.REALM
|
|
3027
3064
|
}
|
|
3028
3065
|
]);
|
|
3029
3066
|
return ()=>{
|
|
@@ -3032,7 +3069,7 @@ const AScopeForm = vue.defineComponent({
|
|
|
3032
3069
|
validationMessages: translationsValidation.name.value,
|
|
3033
3070
|
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
3034
3071
|
label: true,
|
|
3035
|
-
labelContent: translationsDefault[
|
|
3072
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.NAME].value,
|
|
3036
3073
|
content: formControls.buildFormInput({
|
|
3037
3074
|
value: $v.value.name.$model,
|
|
3038
3075
|
onChange (input) {
|
|
@@ -3047,7 +3084,7 @@ const AScopeForm = vue.defineComponent({
|
|
|
3047
3084
|
validationMessages: translationsValidation.display_name.value,
|
|
3048
3085
|
validationSeverity: getVuelidateSeverity($v.value.display_name),
|
|
3049
3086
|
label: true,
|
|
3050
|
-
labelContent: translationsDefault[
|
|
3087
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DISPLAY_NAME].value,
|
|
3051
3088
|
content: formControls.buildFormInput({
|
|
3052
3089
|
value: $v.value.display_name.$model,
|
|
3053
3090
|
onChange (input) {
|
|
@@ -3059,7 +3096,7 @@ const AScopeForm = vue.defineComponent({
|
|
|
3059
3096
|
validationMessages: translationsValidation.description.value,
|
|
3060
3097
|
validationSeverity: getVuelidateSeverity($v.value.description),
|
|
3061
3098
|
label: true,
|
|
3062
|
-
labelContent: translationsDefault[
|
|
3099
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DESCRIPTION].value,
|
|
3063
3100
|
content: formControls.buildFormTextarea({
|
|
3064
3101
|
value: $v.value.description.$model,
|
|
3065
3102
|
onChange (input) {
|
|
@@ -3101,12 +3138,12 @@ const AScopes = vue.defineComponent({
|
|
|
3101
3138
|
setup: ctx
|
|
3102
3139
|
});
|
|
3103
3140
|
const translationName = useTranslation({
|
|
3104
|
-
group:
|
|
3105
|
-
key:
|
|
3141
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
3142
|
+
key: TranslatorTranslationDefaultKey.SCOPES
|
|
3106
3143
|
});
|
|
3107
3144
|
const translation = useTranslation({
|
|
3108
|
-
group:
|
|
3109
|
-
key:
|
|
3145
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
3146
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
3110
3147
|
data: {
|
|
3111
3148
|
name: translationName
|
|
3112
3149
|
}
|
|
@@ -3240,7 +3277,7 @@ const AIdentityProviderBasicFields = vue.defineComponent({
|
|
|
3240
3277
|
},
|
|
3241
3278
|
slug: {
|
|
3242
3279
|
required: validators.required,
|
|
3243
|
-
[
|
|
3280
|
+
[VuelidateCustomRuleKey.ALPHA_NUM_HYPHEN_UNDERSCORE]: VuelidateCustomRule[VuelidateCustomRuleKey.ALPHA_NUM_HYPHEN_UNDERSCORE],
|
|
3244
3281
|
minLength: validators.minLength(3),
|
|
3245
3282
|
maxLength: validators.maxLength(36)
|
|
3246
3283
|
},
|
|
@@ -3277,15 +3314,15 @@ const AIdentityProviderBasicFields = vue.defineComponent({
|
|
|
3277
3314
|
const updatedAt = useUpdatedAt(props.entity);
|
|
3278
3315
|
onChange(updatedAt, ()=>assign(props.entity));
|
|
3279
3316
|
assign(props.entity);
|
|
3280
|
-
const translationsDefault = useTranslationsForGroup(
|
|
3317
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
3281
3318
|
{
|
|
3282
|
-
key:
|
|
3319
|
+
key: TranslatorTranslationDefaultKey.DISPLAY_NAME
|
|
3283
3320
|
},
|
|
3284
3321
|
{
|
|
3285
|
-
key:
|
|
3322
|
+
key: TranslatorTranslationDefaultKey.NAME
|
|
3286
3323
|
},
|
|
3287
3324
|
{
|
|
3288
|
-
key:
|
|
3325
|
+
key: TranslatorTranslationDefaultKey.DESCRIPTION
|
|
3289
3326
|
}
|
|
3290
3327
|
]);
|
|
3291
3328
|
const translationsValidation = useTranslationsForNestedValidation($v.value);
|
|
@@ -3294,7 +3331,7 @@ const AIdentityProviderBasicFields = vue.defineComponent({
|
|
|
3294
3331
|
validationMessages: translationsValidation.name.value,
|
|
3295
3332
|
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
3296
3333
|
label: true,
|
|
3297
|
-
labelContent: translationsDefault[
|
|
3334
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.NAME].value,
|
|
3298
3335
|
content: formControls.buildFormInput({
|
|
3299
3336
|
value: $v.value.name.$model,
|
|
3300
3337
|
onChange (input) {
|
|
@@ -3306,7 +3343,7 @@ const AIdentityProviderBasicFields = vue.defineComponent({
|
|
|
3306
3343
|
validationMessages: translationsValidation.display_name.value,
|
|
3307
3344
|
validationSeverity: getVuelidateSeverity($v.value.display_name),
|
|
3308
3345
|
label: true,
|
|
3309
|
-
labelContent: translationsDefault[
|
|
3346
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DISPLAY_NAME].value,
|
|
3310
3347
|
content: formControls.buildFormInput({
|
|
3311
3348
|
value: $v.value.display_name.$model,
|
|
3312
3349
|
onChange (input) {
|
|
@@ -4783,12 +4820,12 @@ const AIdentityProviders = vue.defineComponent({
|
|
|
4783
4820
|
setup: ctx
|
|
4784
4821
|
});
|
|
4785
4822
|
const translationName = useTranslation({
|
|
4786
|
-
group:
|
|
4787
|
-
key:
|
|
4823
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
4824
|
+
key: TranslatorTranslationDefaultKey.IDENTITY_PROVIDERS
|
|
4788
4825
|
});
|
|
4789
4826
|
const translation = useTranslation({
|
|
4790
|
-
group:
|
|
4791
|
-
key:
|
|
4827
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
4828
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
4792
4829
|
data: {
|
|
4793
4830
|
name: translationName
|
|
4794
4831
|
}
|
|
@@ -4868,9 +4905,9 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
|
|
|
4868
4905
|
value_is_regex: {}
|
|
4869
4906
|
}, form);
|
|
4870
4907
|
const validationMessages = useTranslationsForNestedValidation($v.value);
|
|
4871
|
-
const translationsDefault = useTranslationsForGroup(
|
|
4908
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
4872
4909
|
{
|
|
4873
|
-
key:
|
|
4910
|
+
key: TranslatorTranslationDefaultKey.VALUE_IS_REGEX
|
|
4874
4911
|
}
|
|
4875
4912
|
]);
|
|
4876
4913
|
const manager = createEntityManager({
|
|
@@ -5112,15 +5149,15 @@ const ARoleForm = vue.defineComponent({
|
|
|
5112
5149
|
};
|
|
5113
5150
|
const translationsValidation = useTranslationsForNestedValidation($v.value);
|
|
5114
5151
|
const translationsSubmit = createFormSubmitTranslations();
|
|
5115
|
-
const translationsDefault = useTranslationsForGroup(
|
|
5152
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
5116
5153
|
{
|
|
5117
|
-
key:
|
|
5154
|
+
key: TranslatorTranslationDefaultKey.NAME
|
|
5118
5155
|
},
|
|
5119
5156
|
{
|
|
5120
|
-
key:
|
|
5157
|
+
key: TranslatorTranslationDefaultKey.DISPLAY_NAME
|
|
5121
5158
|
},
|
|
5122
5159
|
{
|
|
5123
|
-
key:
|
|
5160
|
+
key: TranslatorTranslationDefaultKey.DESCRIPTION
|
|
5124
5161
|
}
|
|
5125
5162
|
]);
|
|
5126
5163
|
const render = ()=>{
|
|
@@ -5129,7 +5166,7 @@ const ARoleForm = vue.defineComponent({
|
|
|
5129
5166
|
validationMessages: translationsValidation.name.value,
|
|
5130
5167
|
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
5131
5168
|
label: true,
|
|
5132
|
-
labelContent: translationsDefault[
|
|
5169
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.NAME].value,
|
|
5133
5170
|
content: formControls.buildFormInput({
|
|
5134
5171
|
value: $v.value.name.$model,
|
|
5135
5172
|
onChange (input) {
|
|
@@ -5141,7 +5178,7 @@ const ARoleForm = vue.defineComponent({
|
|
|
5141
5178
|
validationMessages: translationsValidation.display_name.value,
|
|
5142
5179
|
validationSeverity: getVuelidateSeverity($v.value.display_name),
|
|
5143
5180
|
label: true,
|
|
5144
|
-
labelContent: translationsDefault[
|
|
5181
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DISPLAY_NAME].value,
|
|
5145
5182
|
content: formControls.buildFormInput({
|
|
5146
5183
|
value: $v.value.display_name.$model,
|
|
5147
5184
|
onChange (input) {
|
|
@@ -5153,7 +5190,7 @@ const ARoleForm = vue.defineComponent({
|
|
|
5153
5190
|
validationMessages: translationsValidation.description.value,
|
|
5154
5191
|
validationSeverity: getVuelidateSeverity($v.value.description),
|
|
5155
5192
|
label: true,
|
|
5156
|
-
labelContent: translationsDefault[
|
|
5193
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DESCRIPTION].value,
|
|
5157
5194
|
content: formControls.buildFormTextarea({
|
|
5158
5195
|
value: $v.value.description.$model,
|
|
5159
5196
|
onChange (input) {
|
|
@@ -5195,12 +5232,12 @@ const ARoles = vue.defineComponent({
|
|
|
5195
5232
|
setup: ctx
|
|
5196
5233
|
});
|
|
5197
5234
|
const translationName = useTranslation({
|
|
5198
|
-
group:
|
|
5199
|
-
key:
|
|
5235
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
5236
|
+
key: TranslatorTranslationDefaultKey.ROLES
|
|
5200
5237
|
});
|
|
5201
5238
|
const translation = useTranslation({
|
|
5202
|
-
group:
|
|
5203
|
-
key:
|
|
5239
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
5240
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
5204
5241
|
data: {
|
|
5205
5242
|
name: translationName
|
|
5206
5243
|
}
|
|
@@ -5272,6 +5309,38 @@ const APermission = vue.defineComponent({
|
|
|
5272
5309
|
}
|
|
5273
5310
|
});
|
|
5274
5311
|
|
|
5312
|
+
const APermissionCheck = vue.defineComponent({
|
|
5313
|
+
props: {
|
|
5314
|
+
name: {
|
|
5315
|
+
type: [
|
|
5316
|
+
String,
|
|
5317
|
+
Array
|
|
5318
|
+
],
|
|
5319
|
+
required: true
|
|
5320
|
+
},
|
|
5321
|
+
data: {
|
|
5322
|
+
type: Object
|
|
5323
|
+
},
|
|
5324
|
+
options: {
|
|
5325
|
+
type: Object
|
|
5326
|
+
}
|
|
5327
|
+
},
|
|
5328
|
+
setup (props, { slots }) {
|
|
5329
|
+
const fn = createPermissionCheckerReactiveFn();
|
|
5330
|
+
const isPermitted = vue.computed(()=>fn({
|
|
5331
|
+
name: props.name,
|
|
5332
|
+
data: props.data,
|
|
5333
|
+
options: props.options
|
|
5334
|
+
}));
|
|
5335
|
+
return ()=>{
|
|
5336
|
+
if (isPermitted.value && hasNormalizedSlot(listControls.SlotName.DEFAULT, slots)) {
|
|
5337
|
+
return normalizeSlot(listControls.SlotName.DEFAULT, {}, slots);
|
|
5338
|
+
}
|
|
5339
|
+
return [];
|
|
5340
|
+
};
|
|
5341
|
+
}
|
|
5342
|
+
});
|
|
5343
|
+
|
|
5275
5344
|
const APermissionForm = vue.defineComponent({
|
|
5276
5345
|
props: {
|
|
5277
5346
|
entity: {
|
|
@@ -5336,15 +5405,15 @@ const APermissionForm = vue.defineComponent({
|
|
|
5336
5405
|
};
|
|
5337
5406
|
const translationsValidation = useTranslationsForNestedValidation($v.value);
|
|
5338
5407
|
const translationsSubmit = createFormSubmitTranslations();
|
|
5339
|
-
const translationsDefault = useTranslationsForGroup(
|
|
5408
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
5340
5409
|
{
|
|
5341
|
-
key:
|
|
5410
|
+
key: TranslatorTranslationDefaultKey.NAME
|
|
5342
5411
|
},
|
|
5343
5412
|
{
|
|
5344
|
-
key:
|
|
5413
|
+
key: TranslatorTranslationDefaultKey.DISPLAY_NAME
|
|
5345
5414
|
},
|
|
5346
5415
|
{
|
|
5347
|
-
key:
|
|
5416
|
+
key: TranslatorTranslationDefaultKey.DESCRIPTION
|
|
5348
5417
|
}
|
|
5349
5418
|
]);
|
|
5350
5419
|
const render = ()=>{
|
|
@@ -5353,7 +5422,7 @@ const APermissionForm = vue.defineComponent({
|
|
|
5353
5422
|
validationMessages: translationsValidation.name.value,
|
|
5354
5423
|
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
5355
5424
|
label: true,
|
|
5356
|
-
labelContent: translationsDefault[
|
|
5425
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.NAME].value,
|
|
5357
5426
|
content: formControls.buildFormInput({
|
|
5358
5427
|
value: $v.value.name.$model,
|
|
5359
5428
|
onChange (input) {
|
|
@@ -5368,7 +5437,7 @@ const APermissionForm = vue.defineComponent({
|
|
|
5368
5437
|
validationMessages: translationsValidation.display_name.value,
|
|
5369
5438
|
validationSeverity: getVuelidateSeverity($v.value.display_name),
|
|
5370
5439
|
label: true,
|
|
5371
|
-
labelContent: translationsDefault[
|
|
5440
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DISPLAY_NAME].value,
|
|
5372
5441
|
content: formControls.buildFormInput({
|
|
5373
5442
|
value: $v.value.display_name.$model,
|
|
5374
5443
|
onChange (input) {
|
|
@@ -5380,7 +5449,7 @@ const APermissionForm = vue.defineComponent({
|
|
|
5380
5449
|
validationMessages: translationsValidation.description.value,
|
|
5381
5450
|
validationSeverity: getVuelidateSeverity($v.value.description),
|
|
5382
5451
|
label: true,
|
|
5383
|
-
labelContent: translationsDefault[
|
|
5452
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DESCRIPTION].value,
|
|
5384
5453
|
content: formControls.buildFormTextarea({
|
|
5385
5454
|
value: $v.value.description.$model,
|
|
5386
5455
|
onChange (input) {
|
|
@@ -5422,12 +5491,12 @@ const APermissions = vue.defineComponent({
|
|
|
5422
5491
|
setup
|
|
5423
5492
|
});
|
|
5424
5493
|
const translationName = useTranslation({
|
|
5425
|
-
group:
|
|
5426
|
-
key:
|
|
5494
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
5495
|
+
key: TranslatorTranslationDefaultKey.PERMISSIONS
|
|
5427
5496
|
});
|
|
5428
5497
|
const translation = useTranslation({
|
|
5429
|
-
group:
|
|
5430
|
-
key:
|
|
5498
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
5499
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
5431
5500
|
data: {
|
|
5432
5501
|
name: translationName
|
|
5433
5502
|
}
|
|
@@ -5521,7 +5590,7 @@ const ARobotForm = vue.defineComponent({
|
|
|
5521
5590
|
});
|
|
5522
5591
|
const $v = useVuelidate({
|
|
5523
5592
|
name: {
|
|
5524
|
-
[
|
|
5593
|
+
[VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE]: VuelidateCustomRule[VuelidateCustomRuleKey.ALPHA_UPPER_NUM_HYPHEN_UNDERSCORE],
|
|
5525
5594
|
minLength: validators.minLength(3),
|
|
5526
5595
|
maxLength: validators.maxLength(128)
|
|
5527
5596
|
},
|
|
@@ -5580,24 +5649,24 @@ const ARobotForm = vue.defineComponent({
|
|
|
5580
5649
|
};
|
|
5581
5650
|
const translationsValidation = useTranslationsForNestedValidation($v.value);
|
|
5582
5651
|
const translationsSubmit = createFormSubmitTranslations();
|
|
5583
|
-
const translationsDefault = useTranslationsForGroup(
|
|
5652
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
5584
5653
|
{
|
|
5585
|
-
key:
|
|
5654
|
+
key: TranslatorTranslationDefaultKey.GENERATE
|
|
5586
5655
|
},
|
|
5587
5656
|
{
|
|
5588
|
-
key:
|
|
5657
|
+
key: TranslatorTranslationDefaultKey.HASHED
|
|
5589
5658
|
},
|
|
5590
5659
|
{
|
|
5591
|
-
key:
|
|
5660
|
+
key: TranslatorTranslationDefaultKey.NAME
|
|
5592
5661
|
},
|
|
5593
5662
|
{
|
|
5594
|
-
key:
|
|
5663
|
+
key: TranslatorTranslationDefaultKey.DISPLAY_NAME
|
|
5595
5664
|
},
|
|
5596
5665
|
{
|
|
5597
|
-
key:
|
|
5666
|
+
key: TranslatorTranslationDefaultKey.DESCRIPTION
|
|
5598
5667
|
},
|
|
5599
5668
|
{
|
|
5600
|
-
key:
|
|
5669
|
+
key: TranslatorTranslationDefaultKey.SECRET
|
|
5601
5670
|
}
|
|
5602
5671
|
]);
|
|
5603
5672
|
const render = ()=>{
|
|
@@ -5605,7 +5674,7 @@ const ARobotForm = vue.defineComponent({
|
|
|
5605
5674
|
validationMessages: translationsValidation.name.value,
|
|
5606
5675
|
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
5607
5676
|
label: true,
|
|
5608
|
-
labelContent: translationsDefault[
|
|
5677
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.NAME].value,
|
|
5609
5678
|
content: formControls.buildFormInput({
|
|
5610
5679
|
value: $v.value.name.$model,
|
|
5611
5680
|
onChange (input) {
|
|
@@ -5620,7 +5689,7 @@ const ARobotForm = vue.defineComponent({
|
|
|
5620
5689
|
validationMessages: translationsValidation.display_name.value,
|
|
5621
5690
|
validationSeverity: getVuelidateSeverity($v.value.display_name),
|
|
5622
5691
|
label: true,
|
|
5623
|
-
labelContent: translationsDefault[
|
|
5692
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DISPLAY_NAME].value,
|
|
5624
5693
|
content: formControls.buildFormInput({
|
|
5625
5694
|
value: $v.value.display_name.$model,
|
|
5626
5695
|
onChange (input) {
|
|
@@ -5648,11 +5717,11 @@ const ARobotForm = vue.defineComponent({
|
|
|
5648
5717
|
validationSeverity: getVuelidateSeverity($v.value.secret),
|
|
5649
5718
|
label: true,
|
|
5650
5719
|
labelContent: [
|
|
5651
|
-
translationsDefault[
|
|
5720
|
+
translationsDefault[TranslatorTranslationDefaultKey.SECRET].value,
|
|
5652
5721
|
isSecretHashed.value ? vue.h('span', {
|
|
5653
5722
|
class: 'text-danger font-weight-bold ps-1'
|
|
5654
5723
|
}, [
|
|
5655
|
-
translationsDefault[
|
|
5724
|
+
translationsDefault[TranslatorTranslationDefaultKey.HASHED].value,
|
|
5656
5725
|
' ',
|
|
5657
5726
|
vue.h('i', {
|
|
5658
5727
|
class: 'fa fa-exclamation-triangle ps-1'
|
|
@@ -5678,7 +5747,7 @@ const ARobotForm = vue.defineComponent({
|
|
|
5678
5747
|
class: 'fa fa-wrench'
|
|
5679
5748
|
}),
|
|
5680
5749
|
' ',
|
|
5681
|
-
translationsDefault[
|
|
5750
|
+
translationsDefault[TranslatorTranslationDefaultKey.GENERATE].value
|
|
5682
5751
|
])
|
|
5683
5752
|
]);
|
|
5684
5753
|
const submitForm = buildFormSubmitWithTranslations({
|
|
@@ -5749,12 +5818,12 @@ const ARobots = vue.defineComponent({
|
|
|
5749
5818
|
setup: ctx
|
|
5750
5819
|
});
|
|
5751
5820
|
const translationName = useTranslation({
|
|
5752
|
-
group:
|
|
5753
|
-
key:
|
|
5821
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
5822
|
+
key: TranslatorTranslationDefaultKey.ROBOTS
|
|
5754
5823
|
});
|
|
5755
5824
|
const translation = useTranslation({
|
|
5756
|
-
group:
|
|
5757
|
-
key:
|
|
5825
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
5826
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
5758
5827
|
data: {
|
|
5759
5828
|
name: translationName
|
|
5760
5829
|
}
|
|
@@ -6013,30 +6082,30 @@ const AUserForm = vue.defineComponent({
|
|
|
6013
6082
|
};
|
|
6014
6083
|
const translationsValidation = useTranslationsForNestedValidation($v.value);
|
|
6015
6084
|
const translationsSubmit = createFormSubmitTranslations();
|
|
6016
|
-
const translationsDefault = useTranslationsForGroup(
|
|
6085
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
6017
6086
|
{
|
|
6018
|
-
key:
|
|
6087
|
+
key: TranslatorTranslationDefaultKey.ACTIVE
|
|
6019
6088
|
},
|
|
6020
6089
|
{
|
|
6021
|
-
key:
|
|
6090
|
+
key: TranslatorTranslationDefaultKey.INACTIVE
|
|
6022
6091
|
},
|
|
6023
6092
|
{
|
|
6024
|
-
key:
|
|
6093
|
+
key: TranslatorTranslationDefaultKey.DISPLAY_NAME
|
|
6025
6094
|
},
|
|
6026
6095
|
{
|
|
6027
|
-
key:
|
|
6096
|
+
key: TranslatorTranslationDefaultKey.EMAIL
|
|
6028
6097
|
},
|
|
6029
6098
|
{
|
|
6030
|
-
key:
|
|
6099
|
+
key: TranslatorTranslationDefaultKey.LOCKED
|
|
6031
6100
|
},
|
|
6032
6101
|
{
|
|
6033
|
-
key:
|
|
6102
|
+
key: TranslatorTranslationDefaultKey.NOT_LOCKED
|
|
6034
6103
|
},
|
|
6035
6104
|
{
|
|
6036
|
-
key:
|
|
6105
|
+
key: TranslatorTranslationDefaultKey.NAME
|
|
6037
6106
|
},
|
|
6038
6107
|
{
|
|
6039
|
-
key:
|
|
6108
|
+
key: TranslatorTranslationDefaultKey.DESCRIPTION
|
|
6040
6109
|
}
|
|
6041
6110
|
]);
|
|
6042
6111
|
const render = ()=>{
|
|
@@ -6044,7 +6113,7 @@ const AUserForm = vue.defineComponent({
|
|
|
6044
6113
|
validationMessages: translationsValidation.name.value,
|
|
6045
6114
|
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
6046
6115
|
label: true,
|
|
6047
|
-
labelContent: translationsDefault[
|
|
6116
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.NAME].value,
|
|
6048
6117
|
content: formControls.buildFormInput({
|
|
6049
6118
|
value: $v.value.name.$model,
|
|
6050
6119
|
onChange (input) {
|
|
@@ -6059,7 +6128,7 @@ const AUserForm = vue.defineComponent({
|
|
|
6059
6128
|
validationMessages: translationsValidation.display_name.value,
|
|
6060
6129
|
validationSeverity: getVuelidateSeverity($v.value.display_name),
|
|
6061
6130
|
label: true,
|
|
6062
|
-
labelContent: translationsDefault[
|
|
6131
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.DISPLAY_NAME].value,
|
|
6063
6132
|
content: formControls.buildFormInput({
|
|
6064
6133
|
value: $v.value.display_name.$model,
|
|
6065
6134
|
onChange (input) {
|
|
@@ -6071,7 +6140,7 @@ const AUserForm = vue.defineComponent({
|
|
|
6071
6140
|
validationMessages: translationsValidation.email.value,
|
|
6072
6141
|
validationSeverity: getVuelidateSeverity($v.value.email),
|
|
6073
6142
|
label: true,
|
|
6074
|
-
labelContent: translationsDefault[
|
|
6143
|
+
labelContent: translationsDefault[TranslatorTranslationDefaultKey.EMAIL].value,
|
|
6075
6144
|
content: formControls.buildFormInput({
|
|
6076
6145
|
value: $v.value.email.$model,
|
|
6077
6146
|
props: {
|
|
@@ -6096,7 +6165,7 @@ const AUserForm = vue.defineComponent({
|
|
|
6096
6165
|
'text-success': form.name_locked
|
|
6097
6166
|
}
|
|
6098
6167
|
}, [
|
|
6099
|
-
form.name_locked ? translationsDefault[
|
|
6168
|
+
form.name_locked ? translationsDefault[TranslatorTranslationDefaultKey.LOCKED].value : translationsDefault[TranslatorTranslationDefaultKey.NOT_LOCKED].value
|
|
6100
6169
|
]),
|
|
6101
6170
|
value: form.name_locked,
|
|
6102
6171
|
onChange (input) {
|
|
@@ -6120,7 +6189,7 @@ const AUserForm = vue.defineComponent({
|
|
|
6120
6189
|
'text-success': form.active
|
|
6121
6190
|
}
|
|
6122
6191
|
}, [
|
|
6123
|
-
form.active ? translationsDefault[
|
|
6192
|
+
form.active ? translationsDefault[TranslatorTranslationDefaultKey.ACTIVE].value : translationsDefault[TranslatorTranslationDefaultKey.INACTIVE].value
|
|
6124
6193
|
]),
|
|
6125
6194
|
value: form.active,
|
|
6126
6195
|
onChange (input) {
|
|
@@ -6203,12 +6272,12 @@ const AUsers = vue.defineComponent({
|
|
|
6203
6272
|
setup: ctx
|
|
6204
6273
|
});
|
|
6205
6274
|
const translationName = useTranslation({
|
|
6206
|
-
group:
|
|
6207
|
-
key:
|
|
6275
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
6276
|
+
key: TranslatorTranslationDefaultKey.USERS
|
|
6208
6277
|
});
|
|
6209
6278
|
const translation = useTranslation({
|
|
6210
|
-
group:
|
|
6211
|
-
key:
|
|
6279
|
+
group: TranslatorTranslationGroup.VUECS,
|
|
6280
|
+
key: TranslatorTranslationVuecsKey.NO_MORE,
|
|
6212
6281
|
data: {
|
|
6213
6282
|
name: translationName
|
|
6214
6283
|
}
|
|
@@ -6574,11 +6643,11 @@ const APagination = vue.defineComponent({
|
|
|
6574
6643
|
* Author Peter Placzek (tada5hi)
|
|
6575
6644
|
* For the full copyright and license information,
|
|
6576
6645
|
* view the LICENSE file that was distributed with this source code.
|
|
6577
|
-
*/ var TitleSlotName
|
|
6578
|
-
(function(TitleSlotName) {
|
|
6646
|
+
*/ var TitleSlotName = /*#__PURE__*/ function(TitleSlotName) {
|
|
6579
6647
|
TitleSlotName["DEFAULT"] = "default";
|
|
6580
6648
|
TitleSlotName["ICON"] = "icon";
|
|
6581
|
-
|
|
6649
|
+
return TitleSlotName;
|
|
6650
|
+
}({});
|
|
6582
6651
|
|
|
6583
6652
|
function buildTitle(ctx) {
|
|
6584
6653
|
ctx.tag = ctx.tag || 'h6';
|
|
@@ -6647,8 +6716,8 @@ const ATitle = vue.defineComponent({
|
|
|
6647
6716
|
slots: Object,
|
|
6648
6717
|
setup (props, { slots }) {
|
|
6649
6718
|
const translation = useTranslation({
|
|
6650
|
-
group:
|
|
6651
|
-
key:
|
|
6719
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
6720
|
+
key: TranslatorTranslationDefaultKey.OVERVIEW
|
|
6652
6721
|
});
|
|
6653
6722
|
return ()=>buildTitle({
|
|
6654
6723
|
slots,
|
|
@@ -6664,11 +6733,11 @@ const ATitle = vue.defineComponent({
|
|
|
6664
6733
|
* Author Peter Placzek (tada5hi)
|
|
6665
6734
|
* For the full copyright and license information,
|
|
6666
6735
|
* view the LICENSE file that was distributed with this source code.
|
|
6667
|
-
*/ var ListSearchSlotName
|
|
6668
|
-
(function(ListSearchSlotName) {
|
|
6736
|
+
*/ var ListSearchSlotName = /*#__PURE__*/ function(ListSearchSlotName) {
|
|
6669
6737
|
ListSearchSlotName["DEFAULT"] = "default";
|
|
6670
6738
|
ListSearchSlotName["ICON"] = "icon";
|
|
6671
|
-
|
|
6739
|
+
return ListSearchSlotName;
|
|
6740
|
+
}({});
|
|
6672
6741
|
|
|
6673
6742
|
function debounce(func, timeout = 200) {
|
|
6674
6743
|
let timer;
|
|
@@ -6838,12 +6907,6 @@ const LanguageSwitcherDropdown = vue.defineComponent({
|
|
|
6838
6907
|
}
|
|
6839
6908
|
});
|
|
6840
6909
|
|
|
6841
|
-
var ElementType;
|
|
6842
|
-
(function(ElementType) {
|
|
6843
|
-
ElementType["BUTTON"] = "button";
|
|
6844
|
-
ElementType["LINK"] = "link";
|
|
6845
|
-
ElementType["DROP_DOWN_ITEM"] = "dropDownItem";
|
|
6846
|
-
})(ElementType || (ElementType = {}));
|
|
6847
6910
|
const AEntityDelete = vue.defineComponent({
|
|
6848
6911
|
props: {
|
|
6849
6912
|
elementIcon: {
|
|
@@ -6896,8 +6959,8 @@ const AEntityDelete = vue.defineComponent({
|
|
|
6896
6959
|
}
|
|
6897
6960
|
});
|
|
6898
6961
|
const translation = useTranslation({
|
|
6899
|
-
group:
|
|
6900
|
-
key:
|
|
6962
|
+
group: TranslatorTranslationGroup.DEFAULT,
|
|
6963
|
+
key: TranslatorTranslationDefaultKey.DELETE
|
|
6901
6964
|
});
|
|
6902
6965
|
const render = ()=>{
|
|
6903
6966
|
let tag = 'button';
|
|
@@ -6970,6 +7033,7 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
6970
7033
|
AIdentityProviders: AIdentityProviders,
|
|
6971
7034
|
APagination: APagination,
|
|
6972
7035
|
APermission: APermission,
|
|
7036
|
+
APermissionCheck: APermissionCheck,
|
|
6973
7037
|
APermissionForm: APermissionForm,
|
|
6974
7038
|
APermissionRobotAssignments: APermissionRobotAssignments,
|
|
6975
7039
|
APermissionRoleAssignments: APermissionRoleAssignments,
|
|
@@ -7041,7 +7105,8 @@ function install(app1, options) {
|
|
|
7041
7105
|
});
|
|
7042
7106
|
installHTTPClient(app1, {
|
|
7043
7107
|
pinia: options.pinia,
|
|
7044
|
-
baseURL: options.baseURL
|
|
7108
|
+
baseURL: options.baseURL,
|
|
7109
|
+
isServer: options.isServer
|
|
7045
7110
|
});
|
|
7046
7111
|
installTranslator(app1, {
|
|
7047
7112
|
locale: options.translatorLocale
|
|
@@ -7075,6 +7140,7 @@ exports.AIdentityProviderRoleAssignments = AIdentityProviderRoleAssignments;
|
|
|
7075
7140
|
exports.AIdentityProviders = AIdentityProviders;
|
|
7076
7141
|
exports.APagination = APagination;
|
|
7077
7142
|
exports.APermission = APermission;
|
|
7143
|
+
exports.APermissionCheck = APermissionCheck;
|
|
7078
7144
|
exports.APermissionForm = APermissionForm;
|
|
7079
7145
|
exports.APermissionRobotAssignments = APermissionRobotAssignments;
|
|
7080
7146
|
exports.APermissionRoleAssignments = APermissionRoleAssignments;
|
|
@@ -7117,7 +7183,12 @@ exports.LanguageSwitcherDropdown = LanguageSwitcherDropdown;
|
|
|
7117
7183
|
exports.STORE_ID = STORE_ID;
|
|
7118
7184
|
exports.SocketClientSymbol = SocketClientSymbol;
|
|
7119
7185
|
exports.StoreSymbol = StoreSymbol;
|
|
7186
|
+
exports.TranslatorTranslationClientKey = TranslatorTranslationClientKey;
|
|
7187
|
+
exports.TranslatorTranslationDefaultKey = TranslatorTranslationDefaultKey;
|
|
7188
|
+
exports.TranslatorTranslationGroup = TranslatorTranslationGroup;
|
|
7189
|
+
exports.TranslatorTranslationVuecsKey = TranslatorTranslationVuecsKey;
|
|
7120
7190
|
exports.VuelidateCustomRule = VuelidateCustomRule;
|
|
7191
|
+
exports.VuelidateCustomRuleKey = VuelidateCustomRuleKey;
|
|
7121
7192
|
exports.buildEntityManagerSlotProps = buildEntityManagerSlotProps;
|
|
7122
7193
|
exports.buildFormSubmitWithTranslations = buildFormSubmitWithTranslations;
|
|
7123
7194
|
exports.buildListCreatedHandler = buildListCreatedHandler;
|
|
@@ -7126,6 +7197,7 @@ exports.buildListUpdatedHandler = buildListUpdatedHandler;
|
|
|
7126
7197
|
exports.createEntityManager = createEntityManager;
|
|
7127
7198
|
exports.createFormSubmitTranslations = createFormSubmitTranslations;
|
|
7128
7199
|
exports.createList = createList;
|
|
7200
|
+
exports.createPermissionCheckerReactiveFn = createPermissionCheckerReactiveFn;
|
|
7129
7201
|
exports.createStore = createStore;
|
|
7130
7202
|
exports.default = index;
|
|
7131
7203
|
exports.defineEntityManagerEvents = defineEntityManagerEvents;
|
|
@@ -7137,12 +7209,12 @@ exports.extractVuelidateResultsFromChild = extractVuelidateResultsFromChild;
|
|
|
7137
7209
|
exports.getVuelidateSeverity = getVuelidateSeverity;
|
|
7138
7210
|
exports.hasHTTPClient = hasHTTPClient;
|
|
7139
7211
|
exports.hasNormalizedSlot = hasNormalizedSlot;
|
|
7140
|
-
exports.
|
|
7212
|
+
exports.hasStoreFactory = hasStoreFactory;
|
|
7141
7213
|
exports.initFormAttributesFromSource = initFormAttributesFromSource;
|
|
7142
7214
|
exports.inject = inject$1;
|
|
7143
7215
|
exports.injectHTTPClient = injectHTTPClient;
|
|
7144
7216
|
exports.injectSocketManager = injectSocketManager;
|
|
7145
|
-
exports.
|
|
7217
|
+
exports.injectStoreFactory = injectStoreFactory;
|
|
7146
7218
|
exports.injectTranslatorLocale = injectTranslatorLocale;
|
|
7147
7219
|
exports.install = install;
|
|
7148
7220
|
exports.installHTTPClient = installHTTPClient;
|
|
@@ -7157,11 +7229,11 @@ exports.onChange = onChange;
|
|
|
7157
7229
|
exports.provide = provide;
|
|
7158
7230
|
exports.provideHTTPClient = provideHTTPClient;
|
|
7159
7231
|
exports.provideSocketManager = provideSocketManager;
|
|
7160
|
-
exports.
|
|
7232
|
+
exports.provideStoreFactory = provideStoreFactory;
|
|
7161
7233
|
exports.renderEntityAssignAction = renderEntityAssignAction;
|
|
7162
7234
|
exports.storeToRefs = storeToRefs;
|
|
7163
|
-
exports.useAbilityCheck = useAbilityCheck;
|
|
7164
7235
|
exports.useIsEditing = useIsEditing;
|
|
7236
|
+
exports.usePermissionCheck = usePermissionCheck;
|
|
7165
7237
|
exports.useRealmResourceWritableCheck = useRealmResourceWritableCheck;
|
|
7166
7238
|
exports.useStore = useStore;
|
|
7167
7239
|
exports.useTranslation = useTranslation;
|