@authup/client-web-kit 1.0.0-beta.22 → 1.0.0-beta.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.
- package/dist/components/client/AClient.d.ts +4 -4
- package/dist/components/client/AClient.d.ts.map +1 -1
- package/dist/components/client/AClientForm.d.ts +2 -2
- package/dist/components/client/AClients.d.ts +3 -3
- package/dist/components/client/AClients.d.ts.map +1 -1
- package/dist/components/client-scope/AClientScope.d.ts +4 -4
- package/dist/components/client-scope/AClientScope.d.ts.map +1 -1
- package/dist/components/client-scope/AClientScopeAssignment.d.ts +2 -2
- package/dist/components/client-scope/AClientScopes.d.ts +3 -3
- package/dist/components/client-scope/AClientScopes.d.ts.map +1 -1
- package/dist/components/identity-provider/AIdentityProvider.d.ts +4 -4
- package/dist/components/identity-provider/AIdentityProvider.d.ts.map +1 -1
- package/dist/components/identity-provider/AIdentityProviderLdapForm.d.ts +2 -2
- package/dist/components/identity-provider/AIdentityProviderOAuth2Form.d.ts +2 -2
- package/dist/components/identity-provider/AIdentityProviders.d.ts +3 -3
- package/dist/components/identity-provider/AIdentityProviders.d.ts.map +1 -1
- package/dist/components/identity-provider-role/AIdentityProviderRoleAssignment.d.ts +2 -2
- package/dist/components/permission/APermission.d.ts +4 -4
- package/dist/components/permission/APermission.d.ts.map +1 -1
- package/dist/components/permission/APermissionForm.d.ts +2 -2
- package/dist/components/permission/APermissions.d.ts +3 -3
- package/dist/components/permission/APermissions.d.ts.map +1 -1
- package/dist/components/realm/ARealm.d.ts +4 -4
- package/dist/components/realm/ARealm.d.ts.map +1 -1
- package/dist/components/realm/ARealmForm.d.ts +2 -2
- package/dist/components/realm/ARealms.d.ts +3 -3
- package/dist/components/realm/ARealms.d.ts.map +1 -1
- package/dist/components/robot/ARobot.d.ts +4 -4
- package/dist/components/robot/ARobot.d.ts.map +1 -1
- package/dist/components/robot/ARobotForm.d.ts +2 -2
- package/dist/components/robot/ARobots.d.ts +3 -3
- package/dist/components/robot/ARobots.d.ts.map +1 -1
- package/dist/components/robot-permission/ARobotPermissionAssignment.d.ts +2 -2
- package/dist/components/robot-role/ARobotRoleAssignment.d.ts +2 -2
- package/dist/components/role/ARole.d.ts +4 -4
- package/dist/components/role/ARole.d.ts.map +1 -1
- package/dist/components/role/ARoleForm.d.ts +2 -2
- package/dist/components/role/ARoles.d.ts +3 -3
- package/dist/components/role/ARoles.d.ts.map +1 -1
- package/dist/components/role-permission/ARolePermissionAssignment.d.ts +2 -2
- package/dist/components/scope/AScope.d.ts +4 -4
- package/dist/components/scope/AScope.d.ts.map +1 -1
- package/dist/components/scope/AScopeForm.d.ts +2 -2
- package/dist/components/scope/AScopes.d.ts +3 -3
- package/dist/components/scope/AScopes.d.ts.map +1 -1
- package/dist/components/user/AUser.d.ts +4 -4
- package/dist/components/user/AUser.d.ts.map +1 -1
- package/dist/components/user/AUserForm.d.ts +2 -2
- package/dist/components/user/AUsers.d.ts +3 -3
- package/dist/components/user/AUsers.d.ts.map +1 -1
- package/dist/components/user-permission/AUserPermissionAssignment.d.ts +2 -2
- package/dist/components/user-role/AUserRoleAssignment.d.ts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/resource/collection/constants.d.ts.map +1 -0
- package/dist/core/resource/collection/index.d.ts +4 -0
- package/dist/core/resource/collection/index.d.ts.map +1 -0
- package/dist/core/resource/collection/module.d.ts +4 -0
- package/dist/core/resource/collection/module.d.ts.map +1 -0
- package/dist/core/{list/type.d.ts → resource/collection/types.d.ts} +21 -25
- package/dist/core/resource/collection/types.d.ts.map +1 -0
- package/dist/core/{list → resource/collection}/utils/component.d.ts +3 -3
- package/dist/core/resource/collection/utils/component.d.ts.map +1 -0
- package/dist/core/resource/collection/utils/handlers.d.ts.map +1 -0
- package/dist/core/resource/collection/utils/index.d.ts.map +1 -0
- package/dist/core/resource/collection/utils/options.d.ts +3 -0
- package/dist/core/resource/collection/utils/options.d.ts.map +1 -0
- package/dist/core/resource/index.d.ts +4 -0
- package/dist/core/resource/index.d.ts.map +1 -0
- package/dist/core/resource/record/error.d.ts +4 -0
- package/dist/core/resource/record/error.d.ts.map +1 -0
- package/dist/core/{entity-manager → resource/record}/index.d.ts +1 -1
- package/dist/core/resource/record/index.d.ts.map +1 -0
- package/dist/core/resource/record/module.d.ts +4 -0
- package/dist/core/resource/record/module.d.ts.map +1 -0
- package/dist/core/{entity-manager/type.d.ts → resource/record/types.d.ts} +19 -21
- package/dist/core/resource/record/types.d.ts.map +1 -0
- package/dist/core/{entity-manager → resource/record}/utils.d.ts +4 -4
- package/dist/core/resource/record/utils.d.ts.map +1 -0
- package/dist/core/resource/socket/index.d.ts.map +1 -0
- package/dist/core/resource/socket/module.d.ts +4 -0
- package/dist/core/resource/socket/module.d.ts.map +1 -0
- package/dist/core/resource/socket/type.d.ts +24 -0
- package/dist/core/resource/socket/type.d.ts.map +1 -0
- package/dist/core/store/create.d.ts.map +1 -1
- package/dist/core/store/singleton.d.ts +1 -1
- package/dist/core/store/singleton.d.ts.map +1 -1
- package/dist/index.cjs +175 -163
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +167 -155
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/dist/core/entity-manager/error.d.ts +0 -4
- package/dist/core/entity-manager/error.d.ts.map +0 -1
- package/dist/core/entity-manager/index.d.ts.map +0 -1
- package/dist/core/entity-manager/module.d.ts +0 -6
- package/dist/core/entity-manager/module.d.ts.map +0 -1
- package/dist/core/entity-manager/type.d.ts.map +0 -1
- package/dist/core/entity-manager/utils.d.ts.map +0 -1
- package/dist/core/entity-socket/index.d.ts.map +0 -1
- package/dist/core/entity-socket/module.d.ts +0 -6
- package/dist/core/entity-socket/module.d.ts.map +0 -1
- package/dist/core/entity-socket/type.d.ts +0 -24
- package/dist/core/entity-socket/type.d.ts.map +0 -1
- package/dist/core/list/constants.d.ts.map +0 -1
- package/dist/core/list/index.d.ts +0 -4
- package/dist/core/list/index.d.ts.map +0 -1
- package/dist/core/list/module.d.ts +0 -6
- package/dist/core/list/module.d.ts.map +0 -1
- package/dist/core/list/type.d.ts.map +0 -1
- package/dist/core/list/utils/component.d.ts.map +0 -1
- package/dist/core/list/utils/handlers.d.ts.map +0 -1
- package/dist/core/list/utils/index.d.ts.map +0 -1
- package/dist/core/list/utils/options.d.ts +0 -3
- package/dist/core/list/utils/options.d.ts.map +0 -1
- /package/dist/core/{list → resource/collection}/constants.d.ts +0 -0
- /package/dist/core/{list → resource/collection}/utils/handlers.d.ts +0 -0
- /package/dist/core/{list → resource/collection}/utils/index.d.ts +0 -0
- /package/dist/core/{entity-socket → resource/socket}/index.d.ts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -261,6 +261,38 @@ function createStore(context) {
|
|
|
261
261
|
policyEngine: new PolicyEngine()
|
|
262
262
|
});
|
|
263
263
|
// --------------------------------------------------------------------
|
|
264
|
+
const cleanup = async ()=>{
|
|
265
|
+
const tempAccessToken = accessToken.value;
|
|
266
|
+
const tempRefreshToken = refreshToken.value;
|
|
267
|
+
setAccessToken(null);
|
|
268
|
+
setAccessTokenExpireDate(null);
|
|
269
|
+
setRefreshToken(null);
|
|
270
|
+
setUser(null);
|
|
271
|
+
setRealm(null);
|
|
272
|
+
setRealmManagement(null);
|
|
273
|
+
permissionRepository.setMany([]);
|
|
274
|
+
tokenResolved.value = false;
|
|
275
|
+
userResolved.value = false;
|
|
276
|
+
try {
|
|
277
|
+
if (tempAccessToken) {
|
|
278
|
+
await client.token.revoke({
|
|
279
|
+
token: tempAccessToken
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
} catch (e) {
|
|
283
|
+
// ...
|
|
284
|
+
}
|
|
285
|
+
try {
|
|
286
|
+
if (tempRefreshToken) {
|
|
287
|
+
await client.token.revoke({
|
|
288
|
+
token: tempRefreshToken
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
} catch (e) {
|
|
292
|
+
// ...
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
// --------------------------------------------------------------------
|
|
264
296
|
const userResolved = vue.ref(false);
|
|
265
297
|
const resolveUser = async ()=>{
|
|
266
298
|
if (!accessToken.value || userResolved.value) {
|
|
@@ -320,17 +352,21 @@ function createStore(context) {
|
|
|
320
352
|
if (!refreshToken.value) {
|
|
321
353
|
throw new kit.TokenError('The access token can not be renewed.');
|
|
322
354
|
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
}
|
|
355
|
+
try {
|
|
356
|
+
const response = await client.token.createWithRefreshToken({
|
|
357
|
+
refresh_token: refreshToken.value
|
|
358
|
+
});
|
|
359
|
+
applyTokenGrantResponse(response);
|
|
360
|
+
} catch (e) {
|
|
361
|
+
await cleanup();
|
|
362
|
+
throw e;
|
|
363
|
+
} finally{
|
|
329
364
|
tokenResolved.value = false;
|
|
330
365
|
userResolved.value = false;
|
|
331
|
-
}
|
|
366
|
+
}
|
|
332
367
|
});
|
|
333
368
|
// --------------------------------------------------------------------
|
|
369
|
+
// todo: rename to reload() ?
|
|
334
370
|
const resolveInternal = async ()=>{
|
|
335
371
|
context.dispatcher.emit(StoreDispatcherEventName.RESOLVING);
|
|
336
372
|
try {
|
|
@@ -346,12 +382,13 @@ function createStore(context) {
|
|
|
346
382
|
} catch (e) {
|
|
347
383
|
if (coreHttpKit.isClientTokenExpiredError(e) && refreshToken.value) {
|
|
348
384
|
await refreshSession();
|
|
349
|
-
|
|
385
|
+
await resolveToken();
|
|
386
|
+
await resolveUser();
|
|
387
|
+
} else {
|
|
388
|
+
throw e;
|
|
350
389
|
}
|
|
351
|
-
throw e;
|
|
352
390
|
}
|
|
353
391
|
context.dispatcher.emit(StoreDispatcherEventName.RESOLVED);
|
|
354
|
-
return Promise.resolve();
|
|
355
392
|
};
|
|
356
393
|
const resolve = createPromiseShareWrapperFn(resolveInternal);
|
|
357
394
|
const loggedIn = vue.computed(()=>!!accessToken.value);
|
|
@@ -365,46 +402,13 @@ function createStore(context) {
|
|
|
365
402
|
} : {}
|
|
366
403
|
});
|
|
367
404
|
applyTokenGrantResponse(response);
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
} catch (e) {
|
|
371
|
-
await logout();
|
|
372
|
-
throw e;
|
|
373
|
-
}
|
|
405
|
+
await resolveToken();
|
|
406
|
+
await resolveUser();
|
|
374
407
|
context.dispatcher.emit(StoreDispatcherEventName.LOGGED_IN);
|
|
375
408
|
};
|
|
376
|
-
const reset = ()=>{
|
|
377
|
-
setAccessToken(null);
|
|
378
|
-
setAccessTokenExpireDate(null);
|
|
379
|
-
setRefreshToken(null);
|
|
380
|
-
setUser(null);
|
|
381
|
-
setRealm(null);
|
|
382
|
-
setRealmManagement(null);
|
|
383
|
-
permissionRepository.setMany([]);
|
|
384
|
-
tokenResolved.value = false;
|
|
385
|
-
userResolved.value = false;
|
|
386
|
-
};
|
|
387
409
|
const logout = async ()=>{
|
|
388
410
|
context.dispatcher.emit(StoreDispatcherEventName.LOGGING_OUT);
|
|
389
|
-
|
|
390
|
-
if (accessToken.value) {
|
|
391
|
-
await client.token.revoke({
|
|
392
|
-
token: accessToken.value
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
} catch (e) {
|
|
396
|
-
// ...
|
|
397
|
-
}
|
|
398
|
-
try {
|
|
399
|
-
if (refreshToken.value) {
|
|
400
|
-
await client.token.revoke({
|
|
401
|
-
token: refreshToken.value
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
} catch (e) {
|
|
405
|
-
// ...
|
|
406
|
-
}
|
|
407
|
-
reset();
|
|
411
|
+
await cleanup();
|
|
408
412
|
context.dispatcher.emit(StoreDispatcherEventName.LOGGED_OUT);
|
|
409
413
|
};
|
|
410
414
|
return {
|
|
@@ -503,7 +507,7 @@ function shouldUpdate(dependencies, newCookies, oldCookies) {
|
|
|
503
507
|
}
|
|
504
508
|
|
|
505
509
|
const sym = Symbol.for('AuthupStore');
|
|
506
|
-
function
|
|
510
|
+
function injectStore(pinia, app) {
|
|
507
511
|
const instance = injectStoreFactory(app);
|
|
508
512
|
if (!instance) {
|
|
509
513
|
throw new Error('The store has not been injected in the app context.');
|
|
@@ -774,7 +778,7 @@ function renderEntityAssignAction(ctx) {
|
|
|
774
778
|
* Author Peter Placzek (tada5hi)
|
|
775
779
|
* For the full copyright and license information,
|
|
776
780
|
* view the LICENSE file that was distributed with this source code.
|
|
777
|
-
*/ function
|
|
781
|
+
*/ function defineResourceCollectionVEmitOptions() {
|
|
778
782
|
return {
|
|
779
783
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
780
784
|
created: (_item)=>true,
|
|
@@ -784,7 +788,7 @@ function renderEntityAssignAction(ctx) {
|
|
|
784
788
|
updated: (_item)=>true
|
|
785
789
|
};
|
|
786
790
|
}
|
|
787
|
-
function
|
|
791
|
+
function defineResourceCollectionVProps() {
|
|
788
792
|
return {
|
|
789
793
|
query: {
|
|
790
794
|
type: Object,
|
|
@@ -959,7 +963,7 @@ function installSocketManager(app, options) {
|
|
|
959
963
|
provideSocketManager(manager, app);
|
|
960
964
|
}
|
|
961
965
|
|
|
962
|
-
function
|
|
966
|
+
function create$2(ctx) {
|
|
963
967
|
if (!isSocketManagerUsable()) {
|
|
964
968
|
return {
|
|
965
969
|
mount () {},
|
|
@@ -967,7 +971,7 @@ function createEntitySocket(ctx) {
|
|
|
967
971
|
};
|
|
968
972
|
}
|
|
969
973
|
const socketManager = injectSocketManager();
|
|
970
|
-
const store =
|
|
974
|
+
const store = injectStore();
|
|
971
975
|
const storeRefs = storeToRefs(store);
|
|
972
976
|
const realmId = vue.computed(()=>{
|
|
973
977
|
if (storeRefs.realmName.value === coreKit.REALM_MASTER_NAME) {
|
|
@@ -1071,8 +1075,7 @@ function createEntitySocket(ctx) {
|
|
|
1071
1075
|
vue.onUnmounted(()=>unmount());
|
|
1072
1076
|
vue.watch(targetId, (val, oldValue)=>{
|
|
1073
1077
|
if (val !== oldValue) {
|
|
1074
|
-
unmount();
|
|
1075
|
-
mount();
|
|
1078
|
+
Promise.resolve().then(()=>unmount()).then(()=>mount());
|
|
1076
1079
|
}
|
|
1077
1080
|
});
|
|
1078
1081
|
return {
|
|
@@ -1080,6 +1083,9 @@ function createEntitySocket(ctx) {
|
|
|
1080
1083
|
unmount
|
|
1081
1084
|
};
|
|
1082
1085
|
}
|
|
1086
|
+
function createResourceSocketManager(ctx) {
|
|
1087
|
+
return create$2(ctx);
|
|
1088
|
+
}
|
|
1083
1089
|
|
|
1084
1090
|
function isQuerySortedDescByDate(input) {
|
|
1085
1091
|
if (Array.isArray(input)) {
|
|
@@ -1096,7 +1102,7 @@ const merger = smob.createMerger({
|
|
|
1096
1102
|
inPlace: false,
|
|
1097
1103
|
priority: 'left'
|
|
1098
1104
|
});
|
|
1099
|
-
function
|
|
1105
|
+
function create$1(context) {
|
|
1100
1106
|
const data = vue.ref([]);
|
|
1101
1107
|
const busy = vue.ref(false);
|
|
1102
1108
|
const total = vue.ref(0);
|
|
@@ -1273,7 +1279,7 @@ function createList(context) {
|
|
|
1273
1279
|
handleDeleted(entity);
|
|
1274
1280
|
};
|
|
1275
1281
|
socketContext.realmId = realmId;
|
|
1276
|
-
|
|
1282
|
+
createResourceSocketManager(socketContext);
|
|
1277
1283
|
}
|
|
1278
1284
|
return {
|
|
1279
1285
|
data,
|
|
@@ -1287,13 +1293,16 @@ function createList(context) {
|
|
|
1287
1293
|
load
|
|
1288
1294
|
};
|
|
1289
1295
|
}
|
|
1296
|
+
function createResourceCollectionManager(context) {
|
|
1297
|
+
return create$1(context);
|
|
1298
|
+
}
|
|
1290
1299
|
|
|
1291
1300
|
/*
|
|
1292
1301
|
* Copyright (c) 2023.
|
|
1293
1302
|
* Author Peter Placzek (tada5hi)
|
|
1294
1303
|
* For the full copyright and license information,
|
|
1295
1304
|
* view the LICENSE file that was distributed with this source code.
|
|
1296
|
-
*/ class
|
|
1305
|
+
*/ class ResourceRecordError extends Error {
|
|
1297
1306
|
static unresolvable() {
|
|
1298
1307
|
return new this('Entity could not be resolved.');
|
|
1299
1308
|
}
|
|
@@ -1340,7 +1349,7 @@ function createList(context) {
|
|
|
1340
1349
|
return [];
|
|
1341
1350
|
}
|
|
1342
1351
|
|
|
1343
|
-
function
|
|
1352
|
+
function buildResourceVSlotProps(input) {
|
|
1344
1353
|
return {
|
|
1345
1354
|
...input,
|
|
1346
1355
|
error: vue.unref(input.error),
|
|
@@ -1349,7 +1358,7 @@ function buildEntityManagerSlotProps(input) {
|
|
|
1349
1358
|
lockId: vue.unref(input.lockId)
|
|
1350
1359
|
};
|
|
1351
1360
|
}
|
|
1352
|
-
function
|
|
1361
|
+
function defineResourceVEmitOptions() {
|
|
1353
1362
|
return {
|
|
1354
1363
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1355
1364
|
failed: (_item)=>true,
|
|
@@ -1363,7 +1372,7 @@ function defineEntityManagerEvents() {
|
|
|
1363
1372
|
resolved: (_item)=>true
|
|
1364
1373
|
};
|
|
1365
1374
|
}
|
|
1366
|
-
function
|
|
1375
|
+
function defineResourceVProps() {
|
|
1367
1376
|
return {
|
|
1368
1377
|
entity: {
|
|
1369
1378
|
type: Object
|
|
@@ -1383,7 +1392,7 @@ function defineEntityManagerProps() {
|
|
|
1383
1392
|
};
|
|
1384
1393
|
}
|
|
1385
1394
|
|
|
1386
|
-
function
|
|
1395
|
+
function create(ctx) {
|
|
1387
1396
|
const client = injectHTTPClient();
|
|
1388
1397
|
let domainAPI;
|
|
1389
1398
|
if (kit.hasOwnProperty(client, ctx.type)) {
|
|
@@ -1535,7 +1544,7 @@ function createEntityManager(ctx) {
|
|
|
1535
1544
|
socketContext.realmId = realmId;
|
|
1536
1545
|
socketContext.target = true;
|
|
1537
1546
|
socketContext.targetId = entityId;
|
|
1538
|
-
socket =
|
|
1547
|
+
socket = createResourceSocketManager(socketContext);
|
|
1539
1548
|
}
|
|
1540
1549
|
const error = vue.ref(undefined);
|
|
1541
1550
|
const resolveByProps = ()=>{
|
|
@@ -1644,7 +1653,7 @@ function createEntityManager(ctx) {
|
|
|
1644
1653
|
await resolve(resolveContext);
|
|
1645
1654
|
if (typeof entity.value === 'undefined') {
|
|
1646
1655
|
if (!error.value) {
|
|
1647
|
-
throw
|
|
1656
|
+
throw ResourceRecordError.unresolvable();
|
|
1648
1657
|
}
|
|
1649
1658
|
// eslint-disable-next-line no-throw-literal
|
|
1650
1659
|
throw error.value;
|
|
@@ -1673,7 +1682,7 @@ function createEntityManager(ctx) {
|
|
|
1673
1682
|
return typeof content === 'function' ? content() : content;
|
|
1674
1683
|
}
|
|
1675
1684
|
if (hasNormalizedSlot('default', ctx.setup.slots)) {
|
|
1676
|
-
return normalizeSlot('default',
|
|
1685
|
+
return normalizeSlot('default', buildResourceVSlotProps(manager), ctx.setup.slots);
|
|
1677
1686
|
}
|
|
1678
1687
|
return typeof content === 'function' ? content() : content;
|
|
1679
1688
|
};
|
|
@@ -1688,6 +1697,9 @@ function createEntityManager(ctx) {
|
|
|
1688
1697
|
};
|
|
1689
1698
|
return manager;
|
|
1690
1699
|
}
|
|
1700
|
+
function createResourceManager(ctx) {
|
|
1701
|
+
return create(ctx);
|
|
1702
|
+
}
|
|
1691
1703
|
|
|
1692
1704
|
/*
|
|
1693
1705
|
* Copyright (c) 2022.
|
|
@@ -2236,7 +2248,7 @@ function createPermissionCheckerReactiveFn(ctx = {}) {
|
|
|
2236
2248
|
if (ctx.store) {
|
|
2237
2249
|
store = ctx.store;
|
|
2238
2250
|
} else {
|
|
2239
|
-
store =
|
|
2251
|
+
store = injectStore(ctx.pinia, ctx.app);
|
|
2240
2252
|
}
|
|
2241
2253
|
const storeRefs = storeToRefs(store);
|
|
2242
2254
|
return (ctx)=>{
|
|
@@ -2291,11 +2303,11 @@ function createPermissionCheckerReactiveFn(ctx = {}) {
|
|
|
2291
2303
|
}
|
|
2292
2304
|
|
|
2293
2305
|
const AClient = vue.defineComponent({
|
|
2294
|
-
props:
|
|
2295
|
-
emits:
|
|
2306
|
+
props: defineResourceVProps(),
|
|
2307
|
+
emits: defineResourceVEmitOptions(),
|
|
2296
2308
|
slots: Object,
|
|
2297
2309
|
async setup (props, setup) {
|
|
2298
|
-
const manager =
|
|
2310
|
+
const manager = createResourceManager({
|
|
2299
2311
|
type: `${coreKit.DomainType.CLIENT}`,
|
|
2300
2312
|
setup,
|
|
2301
2313
|
props
|
|
@@ -2343,7 +2355,7 @@ function usePermissionCheck(ctx) {
|
|
|
2343
2355
|
}
|
|
2344
2356
|
|
|
2345
2357
|
function useRealmResourceWritableCheck(realmId) {
|
|
2346
|
-
const store =
|
|
2358
|
+
const store = injectStore();
|
|
2347
2359
|
const { realm } = pinia.storeToRefs(store);
|
|
2348
2360
|
return vue.computed(()=>{
|
|
2349
2361
|
const realmIdRaw = vue.unref(realmId);
|
|
@@ -2352,11 +2364,11 @@ function useRealmResourceWritableCheck(realmId) {
|
|
|
2352
2364
|
}
|
|
2353
2365
|
|
|
2354
2366
|
const ARealm = vue.defineComponent({
|
|
2355
|
-
props:
|
|
2356
|
-
emits:
|
|
2367
|
+
props: defineResourceVProps(),
|
|
2368
|
+
emits: defineResourceVEmitOptions(),
|
|
2357
2369
|
slots: Object,
|
|
2358
2370
|
async setup (props, setup) {
|
|
2359
|
-
const manager =
|
|
2371
|
+
const manager = createResourceManager({
|
|
2360
2372
|
type: `${coreKit.DomainType.REALM}`,
|
|
2361
2373
|
props,
|
|
2362
2374
|
setup
|
|
@@ -2378,7 +2390,7 @@ const ARealmForm = vue.defineComponent({
|
|
|
2378
2390
|
default: undefined
|
|
2379
2391
|
}
|
|
2380
2392
|
},
|
|
2381
|
-
emits:
|
|
2393
|
+
emits: defineResourceVEmitOptions(),
|
|
2382
2394
|
setup (props, ctx) {
|
|
2383
2395
|
const busy = vue.ref(false);
|
|
2384
2396
|
const form = vue.reactive({
|
|
@@ -2401,7 +2413,7 @@ const ARealmForm = vue.defineComponent({
|
|
|
2401
2413
|
maxLength: validators.maxLength(4096)
|
|
2402
2414
|
}
|
|
2403
2415
|
}, form);
|
|
2404
|
-
const manager =
|
|
2416
|
+
const manager = createResourceManager({
|
|
2405
2417
|
type: `${coreKit.DomainType.REALM}`,
|
|
2406
2418
|
setup: ctx,
|
|
2407
2419
|
props
|
|
@@ -2536,11 +2548,11 @@ const ARealmForm = vue.defineComponent({
|
|
|
2536
2548
|
});
|
|
2537
2549
|
|
|
2538
2550
|
const ARealms = vue.defineComponent({
|
|
2539
|
-
props:
|
|
2551
|
+
props: defineResourceCollectionVProps(),
|
|
2540
2552
|
slots: Object,
|
|
2541
|
-
emits:
|
|
2553
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
2542
2554
|
setup (props, ctx) {
|
|
2543
|
-
const { render } =
|
|
2555
|
+
const { render } = createResourceCollectionManager({
|
|
2544
2556
|
type: `${coreKit.DomainType.REALM}`,
|
|
2545
2557
|
props,
|
|
2546
2558
|
setup: ctx
|
|
@@ -2705,7 +2717,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2705
2717
|
default: undefined
|
|
2706
2718
|
}
|
|
2707
2719
|
},
|
|
2708
|
-
emits:
|
|
2720
|
+
emits: defineResourceVEmitOptions(),
|
|
2709
2721
|
setup (props, ctx) {
|
|
2710
2722
|
const busy = vue.ref(false);
|
|
2711
2723
|
const form = vue.reactive({
|
|
@@ -2747,7 +2759,7 @@ const AClientForm = vue.defineComponent({
|
|
|
2747
2759
|
maxLength: validators.maxLength(256)
|
|
2748
2760
|
}
|
|
2749
2761
|
}, form);
|
|
2750
|
-
const manager =
|
|
2762
|
+
const manager = createResourceManager({
|
|
2751
2763
|
type: `${coreKit.DomainType.CLIENT}`,
|
|
2752
2764
|
setup: ctx,
|
|
2753
2765
|
props
|
|
@@ -3020,11 +3032,11 @@ const AClientForm = vue.defineComponent({
|
|
|
3020
3032
|
});
|
|
3021
3033
|
|
|
3022
3034
|
const AClients = vue.defineComponent({
|
|
3023
|
-
props:
|
|
3035
|
+
props: defineResourceCollectionVProps(),
|
|
3024
3036
|
slots: Object,
|
|
3025
|
-
emits:
|
|
3037
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
3026
3038
|
setup (props, ctx) {
|
|
3027
|
-
const { render } =
|
|
3039
|
+
const { render } = createResourceCollectionManager({
|
|
3028
3040
|
type: `${coreKit.DomainType.CLIENT}`,
|
|
3029
3041
|
props,
|
|
3030
3042
|
setup: ctx
|
|
@@ -3049,11 +3061,11 @@ const AClients = vue.defineComponent({
|
|
|
3049
3061
|
});
|
|
3050
3062
|
|
|
3051
3063
|
const AClientScope = vue.defineComponent({
|
|
3052
|
-
props:
|
|
3053
|
-
emits:
|
|
3064
|
+
props: defineResourceVProps(),
|
|
3065
|
+
emits: defineResourceVEmitOptions(),
|
|
3054
3066
|
slots: Object,
|
|
3055
3067
|
async setup (props, setup) {
|
|
3056
|
-
const manager =
|
|
3068
|
+
const manager = createResourceManager({
|
|
3057
3069
|
type: `${coreKit.DomainType.CLIENT_SCOPE}`,
|
|
3058
3070
|
props,
|
|
3059
3071
|
setup
|
|
@@ -3068,11 +3080,11 @@ const AClientScope = vue.defineComponent({
|
|
|
3068
3080
|
});
|
|
3069
3081
|
|
|
3070
3082
|
const AClientScopes = vue.defineComponent({
|
|
3071
|
-
props:
|
|
3083
|
+
props: defineResourceCollectionVProps(),
|
|
3072
3084
|
slots: Object,
|
|
3073
|
-
emits:
|
|
3085
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
3074
3086
|
setup (props, ctx) {
|
|
3075
|
-
const { render } =
|
|
3087
|
+
const { render } = createResourceCollectionManager({
|
|
3076
3088
|
type: `${coreKit.DomainType.CLIENT_SCOPE}`,
|
|
3077
3089
|
props,
|
|
3078
3090
|
setup: ctx
|
|
@@ -3125,7 +3137,7 @@ const AScopeForm = vue.defineComponent({
|
|
|
3125
3137
|
type: Object
|
|
3126
3138
|
}
|
|
3127
3139
|
},
|
|
3128
|
-
emits:
|
|
3140
|
+
emits: defineResourceVEmitOptions(),
|
|
3129
3141
|
setup (props, ctx) {
|
|
3130
3142
|
const busy = vue.ref(false);
|
|
3131
3143
|
const form = vue.reactive({
|
|
@@ -3151,9 +3163,9 @@ const AScopeForm = vue.defineComponent({
|
|
|
3151
3163
|
},
|
|
3152
3164
|
realm_id: {}
|
|
3153
3165
|
}, form);
|
|
3154
|
-
const store =
|
|
3166
|
+
const store = injectStore();
|
|
3155
3167
|
const storeRefs = storeToRefs(store);
|
|
3156
|
-
const manager =
|
|
3168
|
+
const manager = createResourceManager({
|
|
3157
3169
|
type: `${coreKit.DomainType.SCOPE}`,
|
|
3158
3170
|
setup: ctx,
|
|
3159
3171
|
props
|
|
@@ -3272,11 +3284,11 @@ const AScopeForm = vue.defineComponent({
|
|
|
3272
3284
|
});
|
|
3273
3285
|
|
|
3274
3286
|
const AScopes = vue.defineComponent({
|
|
3275
|
-
props:
|
|
3287
|
+
props: defineResourceCollectionVProps(),
|
|
3276
3288
|
slots: Object,
|
|
3277
|
-
emits:
|
|
3289
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
3278
3290
|
setup (props, ctx) {
|
|
3279
|
-
const { render } =
|
|
3291
|
+
const { render } = createResourceCollectionManager({
|
|
3280
3292
|
type: coreKit.DomainType.SCOPE,
|
|
3281
3293
|
props,
|
|
3282
3294
|
setup: ctx
|
|
@@ -3301,11 +3313,11 @@ const AScopes = vue.defineComponent({
|
|
|
3301
3313
|
});
|
|
3302
3314
|
|
|
3303
3315
|
const AScope = vue.defineComponent({
|
|
3304
|
-
props:
|
|
3305
|
-
emits:
|
|
3316
|
+
props: defineResourceVProps(),
|
|
3317
|
+
emits: defineResourceVEmitOptions(),
|
|
3306
3318
|
slots: Object,
|
|
3307
3319
|
async setup (props, setup) {
|
|
3308
|
-
const manager =
|
|
3320
|
+
const manager = createResourceManager({
|
|
3309
3321
|
type: `${coreKit.DomainType.SCOPE}`,
|
|
3310
3322
|
props,
|
|
3311
3323
|
setup
|
|
@@ -3324,9 +3336,9 @@ const AClientScopeAssignment = vue.defineComponent({
|
|
|
3324
3336
|
clientId: String,
|
|
3325
3337
|
scopeId: String
|
|
3326
3338
|
},
|
|
3327
|
-
emits:
|
|
3339
|
+
emits: defineResourceVEmitOptions(),
|
|
3328
3340
|
async setup (props, setup) {
|
|
3329
|
-
const manager =
|
|
3341
|
+
const manager = createResourceManager({
|
|
3330
3342
|
type: `${coreKit.DomainType.CLIENT_SCOPE}`,
|
|
3331
3343
|
setup,
|
|
3332
3344
|
socket: {
|
|
@@ -3375,11 +3387,11 @@ const AClientScopeAssignments = vue.defineComponent({
|
|
|
3375
3387
|
});
|
|
3376
3388
|
|
|
3377
3389
|
const AIdentityProvider = vue.defineComponent({
|
|
3378
|
-
props:
|
|
3379
|
-
emits:
|
|
3390
|
+
props: defineResourceVProps(),
|
|
3391
|
+
emits: defineResourceVEmitOptions(),
|
|
3380
3392
|
slots: Object,
|
|
3381
3393
|
async setup (props, setup) {
|
|
3382
|
-
const manager =
|
|
3394
|
+
const manager = createResourceManager({
|
|
3383
3395
|
type: `${coreKit.DomainType.IDENTITY_PROVIDER}`,
|
|
3384
3396
|
props,
|
|
3385
3397
|
setup
|
|
@@ -3998,9 +4010,9 @@ const AIdentityProviderLdapForm = vue.defineComponent({
|
|
|
3998
4010
|
default: undefined
|
|
3999
4011
|
}
|
|
4000
4012
|
},
|
|
4001
|
-
emits:
|
|
4013
|
+
emits: defineResourceVEmitOptions(),
|
|
4002
4014
|
setup (props, ctx) {
|
|
4003
|
-
const manager =
|
|
4015
|
+
const manager = createResourceManager({
|
|
4004
4016
|
type: `${coreKit.DomainType.IDENTITY_PROVIDER}`,
|
|
4005
4017
|
setup: ctx,
|
|
4006
4018
|
props
|
|
@@ -4645,10 +4657,10 @@ const AIdentityProviderOAuth2Form = vue.defineComponent({
|
|
|
4645
4657
|
type: String
|
|
4646
4658
|
}
|
|
4647
4659
|
},
|
|
4648
|
-
emits:
|
|
4660
|
+
emits: defineResourceVEmitOptions(),
|
|
4649
4661
|
setup (props, ctx) {
|
|
4650
4662
|
const apiClient = injectHTTPClient();
|
|
4651
|
-
const manager =
|
|
4663
|
+
const manager = createResourceManager({
|
|
4652
4664
|
type: `${coreKit.DomainType.IDENTITY_PROVIDER}`,
|
|
4653
4665
|
setup: ctx,
|
|
4654
4666
|
props
|
|
@@ -4983,11 +4995,11 @@ const AIdentityProviderForm = vue.defineComponent({
|
|
|
4983
4995
|
});
|
|
4984
4996
|
|
|
4985
4997
|
const AIdentityProviders = vue.defineComponent({
|
|
4986
|
-
props:
|
|
4998
|
+
props: defineResourceCollectionVProps(),
|
|
4987
4999
|
slots: Object,
|
|
4988
|
-
emits:
|
|
5000
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
4989
5001
|
setup (props, ctx) {
|
|
4990
|
-
const { render } =
|
|
5002
|
+
const { render } = createResourceCollectionManager({
|
|
4991
5003
|
type: `${coreKit.DomainType.IDENTITY_PROVIDER}`,
|
|
4992
5004
|
props,
|
|
4993
5005
|
setup: ctx
|
|
@@ -5055,7 +5067,7 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
|
|
|
5055
5067
|
required: true
|
|
5056
5068
|
}
|
|
5057
5069
|
},
|
|
5058
|
-
emits:
|
|
5070
|
+
emits: defineResourceVEmitOptions(),
|
|
5059
5071
|
async setup (props, setup) {
|
|
5060
5072
|
const display = vue.ref(false);
|
|
5061
5073
|
const toggleDisplay = ()=>{
|
|
@@ -5083,7 +5095,7 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
|
|
|
5083
5095
|
key: TranslatorTranslationDefaultKey.VALUE_IS_REGEX
|
|
5084
5096
|
}
|
|
5085
5097
|
]);
|
|
5086
|
-
const manager =
|
|
5098
|
+
const manager = createResourceManager({
|
|
5087
5099
|
type: `${coreKit.DomainType.IDENTITY_PROVIDER_ROLE_MAPPING}`,
|
|
5088
5100
|
setup,
|
|
5089
5101
|
socket: {
|
|
@@ -5264,7 +5276,7 @@ const ARoleForm = vue.defineComponent({
|
|
|
5264
5276
|
default: undefined
|
|
5265
5277
|
}
|
|
5266
5278
|
},
|
|
5267
|
-
emits:
|
|
5279
|
+
emits: defineResourceVEmitOptions(),
|
|
5268
5280
|
setup (props, ctx) {
|
|
5269
5281
|
const busy = vue.ref(false);
|
|
5270
5282
|
const form = vue.reactive({
|
|
@@ -5289,9 +5301,9 @@ const ARoleForm = vue.defineComponent({
|
|
|
5289
5301
|
},
|
|
5290
5302
|
realm_id: {}
|
|
5291
5303
|
}, form);
|
|
5292
|
-
const store =
|
|
5304
|
+
const store = injectStore();
|
|
5293
5305
|
const storeRefs = storeToRefs(store);
|
|
5294
|
-
const manager =
|
|
5306
|
+
const manager = createResourceManager({
|
|
5295
5307
|
type: `${coreKit.DomainType.ROLE}`,
|
|
5296
5308
|
setup: ctx,
|
|
5297
5309
|
props
|
|
@@ -5395,11 +5407,11 @@ const ARoleForm = vue.defineComponent({
|
|
|
5395
5407
|
});
|
|
5396
5408
|
|
|
5397
5409
|
const ARoles = vue.defineComponent({
|
|
5398
|
-
props:
|
|
5410
|
+
props: defineResourceCollectionVProps(),
|
|
5399
5411
|
slots: Object,
|
|
5400
|
-
emits:
|
|
5412
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
5401
5413
|
setup (props, ctx) {
|
|
5402
|
-
const { render } =
|
|
5414
|
+
const { render } = createResourceCollectionManager({
|
|
5403
5415
|
type: `${coreKit.DomainType.ROLE}`,
|
|
5404
5416
|
props,
|
|
5405
5417
|
setup: ctx
|
|
@@ -5424,11 +5436,11 @@ const ARoles = vue.defineComponent({
|
|
|
5424
5436
|
});
|
|
5425
5437
|
|
|
5426
5438
|
const ARole = vue.defineComponent({
|
|
5427
|
-
props:
|
|
5428
|
-
emits:
|
|
5439
|
+
props: defineResourceVProps(),
|
|
5440
|
+
emits: defineResourceVEmitOptions(),
|
|
5429
5441
|
slots: Object,
|
|
5430
5442
|
async setup (props, setup) {
|
|
5431
|
-
const manager =
|
|
5443
|
+
const manager = createResourceManager({
|
|
5432
5444
|
type: `${coreKit.DomainType.ROLE}`,
|
|
5433
5445
|
props,
|
|
5434
5446
|
setup
|
|
@@ -5464,11 +5476,11 @@ const AIdentityProviderRoleAssignments = vue.defineComponent({
|
|
|
5464
5476
|
});
|
|
5465
5477
|
|
|
5466
5478
|
const APermission = vue.defineComponent({
|
|
5467
|
-
props:
|
|
5468
|
-
emits:
|
|
5479
|
+
props: defineResourceVProps(),
|
|
5480
|
+
emits: defineResourceVEmitOptions(),
|
|
5469
5481
|
slots: Object,
|
|
5470
5482
|
async setup (props, setup) {
|
|
5471
|
-
const manager =
|
|
5483
|
+
const manager = createResourceManager({
|
|
5472
5484
|
type: `${coreKit.DomainType.PERMISSION}`,
|
|
5473
5485
|
setup,
|
|
5474
5486
|
props
|
|
@@ -5520,7 +5532,7 @@ const APermissionForm = vue.defineComponent({
|
|
|
5520
5532
|
type: Object
|
|
5521
5533
|
}
|
|
5522
5534
|
},
|
|
5523
|
-
emits:
|
|
5535
|
+
emits: defineResourceVEmitOptions(),
|
|
5524
5536
|
setup (props, ctx) {
|
|
5525
5537
|
const busy = vue.ref(false);
|
|
5526
5538
|
const form = vue.reactive({
|
|
@@ -5545,9 +5557,9 @@ const APermissionForm = vue.defineComponent({
|
|
|
5545
5557
|
},
|
|
5546
5558
|
realm_id: {}
|
|
5547
5559
|
}, form);
|
|
5548
|
-
const store =
|
|
5560
|
+
const store = injectStore();
|
|
5549
5561
|
const storeRefs = storeToRefs(store);
|
|
5550
|
-
const manager =
|
|
5562
|
+
const manager = createResourceManager({
|
|
5551
5563
|
type: `${coreKit.DomainType.PERMISSION}`,
|
|
5552
5564
|
setup: ctx,
|
|
5553
5565
|
props
|
|
@@ -5654,11 +5666,11 @@ const APermissionForm = vue.defineComponent({
|
|
|
5654
5666
|
});
|
|
5655
5667
|
|
|
5656
5668
|
const APermissions = vue.defineComponent({
|
|
5657
|
-
props:
|
|
5669
|
+
props: defineResourceCollectionVProps(),
|
|
5658
5670
|
slots: Object,
|
|
5659
|
-
emits:
|
|
5671
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
5660
5672
|
setup (props, setup) {
|
|
5661
|
-
const { render } =
|
|
5673
|
+
const { render } = createResourceCollectionManager({
|
|
5662
5674
|
type: `${coreKit.DomainType.PERMISSION}`,
|
|
5663
5675
|
props,
|
|
5664
5676
|
setup
|
|
@@ -5687,9 +5699,9 @@ const ARobotPermissionAssignment = vue.defineComponent({
|
|
|
5687
5699
|
robotId: String,
|
|
5688
5700
|
permissionId: String
|
|
5689
5701
|
},
|
|
5690
|
-
emits:
|
|
5702
|
+
emits: defineResourceVEmitOptions(),
|
|
5691
5703
|
async setup (props, setup) {
|
|
5692
|
-
const manager =
|
|
5704
|
+
const manager = createResourceManager({
|
|
5693
5705
|
type: `${coreKit.DomainType.ROBOT_PERMISSION}`,
|
|
5694
5706
|
setup,
|
|
5695
5707
|
socket: {
|
|
@@ -5719,11 +5731,11 @@ const ARobotPermissionAssignment = vue.defineComponent({
|
|
|
5719
5731
|
});
|
|
5720
5732
|
|
|
5721
5733
|
const ARobot = vue.defineComponent({
|
|
5722
|
-
props:
|
|
5723
|
-
emits:
|
|
5734
|
+
props: defineResourceVProps(),
|
|
5735
|
+
emits: defineResourceVEmitOptions(),
|
|
5724
5736
|
slots: Object,
|
|
5725
5737
|
async setup (props, setup) {
|
|
5726
|
-
const manager =
|
|
5738
|
+
const manager = createResourceManager({
|
|
5727
5739
|
type: `${coreKit.DomainType.ROBOT}`,
|
|
5728
5740
|
props,
|
|
5729
5741
|
setup
|
|
@@ -5752,7 +5764,7 @@ const ARobotForm = vue.defineComponent({
|
|
|
5752
5764
|
default: undefined
|
|
5753
5765
|
}
|
|
5754
5766
|
},
|
|
5755
|
-
emits:
|
|
5767
|
+
emits: defineResourceVEmitOptions(),
|
|
5756
5768
|
setup (props, ctx) {
|
|
5757
5769
|
const busy = vue.ref(false);
|
|
5758
5770
|
const form = vue.reactive({
|
|
@@ -5779,7 +5791,7 @@ const ARobotForm = vue.defineComponent({
|
|
|
5779
5791
|
maxLength: validators.maxLength(256)
|
|
5780
5792
|
}
|
|
5781
5793
|
}, form);
|
|
5782
|
-
const manager =
|
|
5794
|
+
const manager = createResourceManager({
|
|
5783
5795
|
type: `${coreKit.DomainType.ROBOT}`,
|
|
5784
5796
|
setup: ctx,
|
|
5785
5797
|
props
|
|
@@ -5981,11 +5993,11 @@ const ARobotForm = vue.defineComponent({
|
|
|
5981
5993
|
});
|
|
5982
5994
|
|
|
5983
5995
|
const ARobots = vue.defineComponent({
|
|
5984
|
-
props:
|
|
5996
|
+
props: defineResourceCollectionVProps(),
|
|
5985
5997
|
slots: Object,
|
|
5986
|
-
emits:
|
|
5998
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
5987
5999
|
setup (props, ctx) {
|
|
5988
|
-
const { render } =
|
|
6000
|
+
const { render } = createResourceCollectionManager({
|
|
5989
6001
|
type: `${coreKit.DomainType.ROBOT}`,
|
|
5990
6002
|
props,
|
|
5991
6003
|
setup: ctx
|
|
@@ -6033,9 +6045,9 @@ const ARolePermissionAssignment = vue.defineComponent({
|
|
|
6033
6045
|
roleId: String,
|
|
6034
6046
|
permissionId: String
|
|
6035
6047
|
},
|
|
6036
|
-
emits:
|
|
6048
|
+
emits: defineResourceVEmitOptions(),
|
|
6037
6049
|
async setup (props, setup) {
|
|
6038
|
-
const manager =
|
|
6050
|
+
const manager = createResourceManager({
|
|
6039
6051
|
type: `${coreKit.DomainType.ROLE_PERMISSION}`,
|
|
6040
6052
|
setup,
|
|
6041
6053
|
socket: {
|
|
@@ -6107,9 +6119,9 @@ const AUserPermissionAssignment = vue.defineComponent({
|
|
|
6107
6119
|
userId: String,
|
|
6108
6120
|
permissionId: String
|
|
6109
6121
|
},
|
|
6110
|
-
emits:
|
|
6122
|
+
emits: defineResourceVEmitOptions(),
|
|
6111
6123
|
async setup (props, setup) {
|
|
6112
|
-
const manager =
|
|
6124
|
+
const manager = createResourceManager({
|
|
6113
6125
|
type: `${coreKit.DomainType.USER_PERMISSION}`,
|
|
6114
6126
|
setup,
|
|
6115
6127
|
socket: {
|
|
@@ -6158,11 +6170,11 @@ const AUserPermissionAssignments = vue.defineComponent({
|
|
|
6158
6170
|
});
|
|
6159
6171
|
|
|
6160
6172
|
const AUser = vue.defineComponent({
|
|
6161
|
-
props:
|
|
6162
|
-
emits:
|
|
6173
|
+
props: defineResourceVProps(),
|
|
6174
|
+
emits: defineResourceVEmitOptions(),
|
|
6163
6175
|
slots: Object,
|
|
6164
6176
|
async setup (props, setup) {
|
|
6165
|
-
const manager =
|
|
6177
|
+
const manager = createResourceManager({
|
|
6166
6178
|
type: `${coreKit.DomainType.USER}`,
|
|
6167
6179
|
props,
|
|
6168
6180
|
setup
|
|
@@ -6191,7 +6203,7 @@ const AUserForm = vue.defineComponent({
|
|
|
6191
6203
|
default: true
|
|
6192
6204
|
}
|
|
6193
6205
|
},
|
|
6194
|
-
emits:
|
|
6206
|
+
emits: defineResourceVEmitOptions(),
|
|
6195
6207
|
async setup (props, ctx) {
|
|
6196
6208
|
const busy = vue.ref(false);
|
|
6197
6209
|
const form = vue.reactive({
|
|
@@ -6223,7 +6235,7 @@ const AUserForm = vue.defineComponent({
|
|
|
6223
6235
|
required: validators.required
|
|
6224
6236
|
}
|
|
6225
6237
|
}, form);
|
|
6226
|
-
const manager =
|
|
6238
|
+
const manager = createResourceManager({
|
|
6227
6239
|
type: `${coreKit.DomainType.USER}`,
|
|
6228
6240
|
setup: ctx,
|
|
6229
6241
|
props
|
|
@@ -6435,11 +6447,11 @@ const AUserForm = vue.defineComponent({
|
|
|
6435
6447
|
});
|
|
6436
6448
|
|
|
6437
6449
|
const AUsers = vue.defineComponent({
|
|
6438
|
-
props:
|
|
6450
|
+
props: defineResourceCollectionVProps(),
|
|
6439
6451
|
slots: Object,
|
|
6440
|
-
emits:
|
|
6452
|
+
emits: defineResourceCollectionVEmitOptions(),
|
|
6441
6453
|
setup (props, ctx) {
|
|
6442
|
-
const { render } =
|
|
6454
|
+
const { render } = createResourceCollectionManager({
|
|
6443
6455
|
type: `${coreKit.DomainType.USER}`,
|
|
6444
6456
|
props,
|
|
6445
6457
|
setup: ctx
|
|
@@ -6620,9 +6632,9 @@ const ARobotRoleAssignment = vue.defineComponent({
|
|
|
6620
6632
|
roleId: String,
|
|
6621
6633
|
robotId: String
|
|
6622
6634
|
},
|
|
6623
|
-
emits:
|
|
6635
|
+
emits: defineResourceVEmitOptions(),
|
|
6624
6636
|
async setup (props, setup) {
|
|
6625
|
-
const manager =
|
|
6637
|
+
const manager = createResourceManager({
|
|
6626
6638
|
type: `${coreKit.DomainType.ROBOT_ROLE}`,
|
|
6627
6639
|
setup,
|
|
6628
6640
|
socket: {
|
|
@@ -6687,9 +6699,9 @@ const AUserRoleAssignment = vue.defineComponent({
|
|
|
6687
6699
|
roleId: String,
|
|
6688
6700
|
userId: String
|
|
6689
6701
|
},
|
|
6690
|
-
emits:
|
|
6702
|
+
emits: defineResourceVEmitOptions(),
|
|
6691
6703
|
async setup (props, setup) {
|
|
6692
|
-
const manager =
|
|
6704
|
+
const manager = createResourceManager({
|
|
6693
6705
|
type: `${coreKit.DomainType.USER_ROLE}`,
|
|
6694
6706
|
setup,
|
|
6695
6707
|
socket: {
|
|
@@ -7350,9 +7362,9 @@ exports.AUserPermissionAssignments = AUserPermissionAssignments;
|
|
|
7350
7362
|
exports.AUserRoleAssignment = AUserRoleAssignment;
|
|
7351
7363
|
exports.AUserRoleAssignments = AUserRoleAssignments;
|
|
7352
7364
|
exports.AUsers = AUsers;
|
|
7353
|
-
exports.EntityManagerError = EntityManagerError;
|
|
7354
7365
|
exports.HTTPClientSymbol = HTTPClientSymbol;
|
|
7355
7366
|
exports.LanguageSwitcherDropdown = LanguageSwitcherDropdown;
|
|
7367
|
+
exports.ResourceRecordError = ResourceRecordError;
|
|
7356
7368
|
exports.STORE_ID = STORE_ID;
|
|
7357
7369
|
exports.SocketClientSymbol = SocketClientSymbol;
|
|
7358
7370
|
exports.StoreDispatcherEventName = StoreDispatcherEventName;
|
|
@@ -7362,22 +7374,22 @@ exports.TranslatorTranslationGroup = TranslatorTranslationGroup;
|
|
|
7362
7374
|
exports.TranslatorTranslationVuecsKey = TranslatorTranslationVuecsKey;
|
|
7363
7375
|
exports.VuelidateCustomRule = VuelidateCustomRule;
|
|
7364
7376
|
exports.VuelidateCustomRuleKey = VuelidateCustomRuleKey;
|
|
7365
|
-
exports.buildEntityManagerSlotProps = buildEntityManagerSlotProps;
|
|
7366
7377
|
exports.buildFormSubmitWithTranslations = buildFormSubmitWithTranslations;
|
|
7367
7378
|
exports.buildListCreatedHandler = buildListCreatedHandler;
|
|
7368
7379
|
exports.buildListDeletedHandler = buildListDeletedHandler;
|
|
7369
7380
|
exports.buildListUpdatedHandler = buildListUpdatedHandler;
|
|
7370
|
-
exports.
|
|
7381
|
+
exports.buildResourceVSlotProps = buildResourceVSlotProps;
|
|
7371
7382
|
exports.createFormSubmitTranslations = createFormSubmitTranslations;
|
|
7372
|
-
exports.createList = createList;
|
|
7373
7383
|
exports.createPermissionCheckerReactiveFn = createPermissionCheckerReactiveFn;
|
|
7384
|
+
exports.createResourceCollectionManager = createResourceCollectionManager;
|
|
7385
|
+
exports.createResourceManager = createResourceManager;
|
|
7374
7386
|
exports.createStore = createStore;
|
|
7375
7387
|
exports.createStoreDispatcher = createStoreDispatcher;
|
|
7376
7388
|
exports.default = index;
|
|
7377
|
-
exports.
|
|
7378
|
-
exports.
|
|
7379
|
-
exports.
|
|
7380
|
-
exports.
|
|
7389
|
+
exports.defineResourceCollectionVEmitOptions = defineResourceCollectionVEmitOptions;
|
|
7390
|
+
exports.defineResourceCollectionVProps = defineResourceCollectionVProps;
|
|
7391
|
+
exports.defineResourceVEmitOptions = defineResourceVEmitOptions;
|
|
7392
|
+
exports.defineResourceVProps = defineResourceVProps;
|
|
7381
7393
|
exports.extendObjectProperties = extendObjectProperties;
|
|
7382
7394
|
exports.extractVuelidateResultsFromChild = extractVuelidateResultsFromChild;
|
|
7383
7395
|
exports.getVuelidateSeverity = getVuelidateSeverity;
|
|
@@ -7388,6 +7400,7 @@ exports.initFormAttributesFromSource = initFormAttributesFromSource;
|
|
|
7388
7400
|
exports.inject = inject$1;
|
|
7389
7401
|
exports.injectHTTPClient = injectHTTPClient;
|
|
7390
7402
|
exports.injectSocketManager = injectSocketManager;
|
|
7403
|
+
exports.injectStore = injectStore;
|
|
7391
7404
|
exports.injectStoreDispatcher = injectStoreDispatcher;
|
|
7392
7405
|
exports.injectStoreFactory = injectStoreFactory;
|
|
7393
7406
|
exports.injectTranslatorLocale = injectTranslatorLocale;
|
|
@@ -7411,7 +7424,6 @@ exports.storeToRefs = storeToRefs;
|
|
|
7411
7424
|
exports.useIsEditing = useIsEditing;
|
|
7412
7425
|
exports.usePermissionCheck = usePermissionCheck;
|
|
7413
7426
|
exports.useRealmResourceWritableCheck = useRealmResourceWritableCheck;
|
|
7414
|
-
exports.useStore = useStore;
|
|
7415
7427
|
exports.useTranslation = useTranslation;
|
|
7416
7428
|
exports.useTranslationsForBaseValidation = useTranslationsForBaseValidation;
|
|
7417
7429
|
exports.useTranslationsForGroup = useTranslationsForGroup;
|