@authup/client-web-kit 1.0.0-beta.15 → 1.0.0-beta.17
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/AEntityDelete.d.ts +2 -2
- package/dist/components/AEntityDelete.d.ts.map +1 -1
- package/dist/components/client-scope/AClientScopeAssignments.d.ts.map +1 -1
- package/dist/components/identity-provider-role/AIdentityProviderRoleAssignment.d.ts +6 -6
- package/dist/components/identity-provider-role/AIdentityProviderRoleAssignment.d.ts.map +1 -1
- package/dist/components/permission-robot/APermissionRobotAssignments.d.ts.map +1 -1
- package/dist/components/permission-role/APermissionRoleAssignments.d.ts.map +1 -1
- package/dist/components/permission-user/APermissionUserAssignments.d.ts.map +1 -1
- package/dist/components/robot-permission/ARobotPermissionAssignments.d.ts.map +1 -1
- package/dist/components/robot-role/ARobotRoleAssignments.d.ts.map +1 -1
- package/dist/components/role-permission/ARolePermissionAssignments.d.ts.map +1 -1
- package/dist/components/role-robot/ARoleRobotAssignments.d.ts.map +1 -1
- package/dist/components/role-user/ARoleUserAssignments.d.ts.map +1 -1
- package/dist/components/scope-client/AScopeClientAssignments.d.ts.map +1 -1
- package/dist/components/user-permission/AUserPermissionAssignments.d.ts.map +1 -1
- package/dist/components/user-role/AUserRoleAssignments.d.ts.map +1 -1
- package/dist/core/entity-socket/module.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/socket-manager/index.d.ts.map +1 -0
- package/dist/core/socket-manager/install.d.ts +8 -0
- package/dist/core/socket-manager/install.d.ts.map +1 -0
- package/dist/core/socket-manager/singleton.d.ts +7 -0
- package/dist/core/socket-manager/singleton.d.ts.map +1 -0
- package/dist/core/store/create.d.ts +31 -197
- package/dist/core/store/create.d.ts.map +1 -1
- package/dist/core/store/types.d.ts +1 -1
- package/dist/core/store/types.d.ts.map +1 -1
- package/dist/core/translator/constants.d.ts +1 -0
- package/dist/core/translator/constants.d.ts.map +1 -1
- package/dist/core/translator/de/default.d.ts.map +1 -1
- package/dist/core/translator/en/default.d.ts.map +1 -1
- package/dist/index.cjs +119 -62
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +116 -59
- package/dist/index.mjs.map +1 -1
- package/dist/module.d.ts.map +1 -1
- package/package.json +14 -14
- package/dist/core/socket-client-manager/index.d.ts.map +0 -1
- package/dist/core/socket-client-manager/install.d.ts +0 -6
- package/dist/core/socket-client-manager/install.d.ts.map +0 -1
- package/dist/core/socket-client-manager/singleton.d.ts +0 -7
- package/dist/core/socket-client-manager/singleton.d.ts.map +0 -1
- /package/dist/core/{socket-client-manager → socket-manager}/index.d.ts +0 -0
package/dist/index.cjs
CHANGED
|
@@ -271,7 +271,6 @@ function tryOnScopeDispose(fn) {
|
|
|
271
271
|
return false;
|
|
272
272
|
}
|
|
273
273
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
274
|
-
const noop = ()=>{};
|
|
275
274
|
|
|
276
275
|
function useCookies(dependencies, { doNotParse = false, autoUpdateDependencies = false } = {}, cookies = new Cookie()) {
|
|
277
276
|
const watchingDependencies = autoUpdateDependencies ? [
|
|
@@ -285,7 +284,9 @@ function useCookies(dependencies, { doNotParse = false, autoUpdateDependencies =
|
|
|
285
284
|
const newCookies = cookies.getAll({
|
|
286
285
|
doNotParse: true
|
|
287
286
|
});
|
|
288
|
-
if (shouldUpdate(watchingDependencies || null, newCookies, previousCookies))
|
|
287
|
+
if (shouldUpdate(watchingDependencies || null, newCookies, previousCookies)) {
|
|
288
|
+
touches.value++;
|
|
289
|
+
}
|
|
289
290
|
previousCookies = newCookies;
|
|
290
291
|
};
|
|
291
292
|
cookies.addChangeListener(onChange);
|
|
@@ -724,39 +725,47 @@ function buildListDeletedHandler(items, cb) {
|
|
|
724
725
|
return input;
|
|
725
726
|
}
|
|
726
727
|
|
|
727
|
-
const SocketClientSymbol = Symbol.for('
|
|
728
|
-
function
|
|
729
|
-
|
|
730
|
-
return false;
|
|
731
|
-
}
|
|
732
|
-
const instance = inject$1(SocketClientSymbol);
|
|
733
|
-
return !!instance;
|
|
728
|
+
const SocketClientSymbol = Symbol.for('AuthupSocketManager');
|
|
729
|
+
function isSocketManagerUsable() {
|
|
730
|
+
return !!inject$1(SocketClientSymbol);
|
|
734
731
|
}
|
|
735
|
-
function
|
|
732
|
+
function provideSocketManager(manager, app) {
|
|
736
733
|
provide(SocketClientSymbol, manager, app);
|
|
737
734
|
}
|
|
738
|
-
function
|
|
739
|
-
const manager = inject$1(SocketClientSymbol);
|
|
735
|
+
function injectSocketManager(app) {
|
|
736
|
+
const manager = inject$1(SocketClientSymbol, app);
|
|
740
737
|
if (!manager) {
|
|
741
|
-
throw new Error('The socket
|
|
738
|
+
throw new Error('The socket manager has not been injected in the app context.');
|
|
742
739
|
}
|
|
743
740
|
return manager;
|
|
744
741
|
}
|
|
745
742
|
|
|
746
|
-
function
|
|
747
|
-
const
|
|
748
|
-
|
|
743
|
+
function installSocketManager(app, options) {
|
|
744
|
+
const storeCreator = injectStore(app);
|
|
745
|
+
const store = storeCreator(options.pinia);
|
|
746
|
+
const { accessToken } = storeToRefs(store);
|
|
747
|
+
const manager = new coreRealtimeKit.ClientManager({
|
|
748
|
+
url: options.baseURL,
|
|
749
|
+
token: ()=>accessToken.value
|
|
749
750
|
});
|
|
750
|
-
|
|
751
|
+
const oldValue = vue.ref();
|
|
752
|
+
store.$subscribe((mutation, state)=>{
|
|
753
|
+
if (state.accessToken !== oldValue.value) {
|
|
754
|
+
oldValue.value = state.accessToken;
|
|
755
|
+
Promise.resolve().then(()=>manager.reconnect());
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
provideSocketManager(manager, app);
|
|
751
759
|
}
|
|
752
760
|
|
|
753
761
|
function createEntitySocket(ctx) {
|
|
754
|
-
if (!
|
|
762
|
+
if (!isSocketManagerUsable()) {
|
|
755
763
|
return {
|
|
756
764
|
mount () {},
|
|
757
765
|
unmount () {}
|
|
758
766
|
};
|
|
759
767
|
}
|
|
768
|
+
const socketManager = injectSocketManager();
|
|
760
769
|
const store = useStore();
|
|
761
770
|
const storeRefs = storeToRefs(store);
|
|
762
771
|
const realmId = vue.computed(()=>{
|
|
@@ -816,7 +825,6 @@ function createEntitySocket(ctx) {
|
|
|
816
825
|
return;
|
|
817
826
|
}
|
|
818
827
|
mounted = true;
|
|
819
|
-
const socketManager = injectSocketClientManager();
|
|
820
828
|
const socket = await socketManager.connect(`/resources#${realmId.value}`);
|
|
821
829
|
let event;
|
|
822
830
|
if (ctx.buildSubscribeEventName) {
|
|
@@ -840,7 +848,6 @@ function createEntitySocket(ctx) {
|
|
|
840
848
|
return;
|
|
841
849
|
}
|
|
842
850
|
mounted = false;
|
|
843
|
-
const socketManager = injectSocketClientManager();
|
|
844
851
|
const socket = await socketManager.connect(`/resources#${realmId.value}`);
|
|
845
852
|
let event;
|
|
846
853
|
if (ctx.buildUnsubscribeEventName) {
|
|
@@ -1529,6 +1536,7 @@ exports.TranslatorTranslationDefaultKey = void 0;
|
|
|
1529
1536
|
TranslatorTranslationDefaultKey["INACTIVE"] = "inactive";
|
|
1530
1537
|
TranslatorTranslationDefaultKey["LOCKED"] = "locked";
|
|
1531
1538
|
TranslatorTranslationDefaultKey["NOT_LOCKED"] = "notLocked";
|
|
1539
|
+
TranslatorTranslationDefaultKey["VALUE_IS_REGEX"] = "valueIsRegex";
|
|
1532
1540
|
TranslatorTranslationDefaultKey["CLIENT"] = "client";
|
|
1533
1541
|
TranslatorTranslationDefaultKey["CLIENTS"] = "clients";
|
|
1534
1542
|
TranslatorTranslationDefaultKey["CLIENT_SCOPES"] = "clientScopes";
|
|
@@ -1608,6 +1616,9 @@ class MemoryStore {
|
|
|
1608
1616
|
}
|
|
1609
1617
|
}
|
|
1610
1618
|
|
|
1619
|
+
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
1620
|
+
const noop = ()=>{};
|
|
1621
|
+
|
|
1611
1622
|
function computedAsync(evaluationCallback, initialState, optionsOrRef) {
|
|
1612
1623
|
let options;
|
|
1613
1624
|
if (vue.isRef(optionsOrRef)) {
|
|
@@ -1776,6 +1787,7 @@ const TranslatorTranslationDefaultGerman = {
|
|
|
1776
1787
|
[exports.TranslatorTranslationDefaultKey.INACTIVE]: 'inaktiv',
|
|
1777
1788
|
[exports.TranslatorTranslationDefaultKey.LOCKED]: 'gesperrt',
|
|
1778
1789
|
[exports.TranslatorTranslationDefaultKey.NOT_LOCKED]: 'nicht gesperrt',
|
|
1790
|
+
[exports.TranslatorTranslationDefaultKey.VALUE_IS_REGEX]: 'Wert ist regex pattern?',
|
|
1779
1791
|
[exports.TranslatorTranslationDefaultKey.CLIENT]: 'Client',
|
|
1780
1792
|
[exports.TranslatorTranslationDefaultKey.CLIENTS]: 'Clients',
|
|
1781
1793
|
[exports.TranslatorTranslationDefaultKey.CLIENT_SCOPES]: 'Client-Bereiche',
|
|
@@ -1850,6 +1862,7 @@ const TranslatorTranslationDefaultEnglish = {
|
|
|
1850
1862
|
[exports.TranslatorTranslationDefaultKey.INACTIVE]: 'inactive',
|
|
1851
1863
|
[exports.TranslatorTranslationDefaultKey.LOCKED]: 'locked',
|
|
1852
1864
|
[exports.TranslatorTranslationDefaultKey.NOT_LOCKED]: 'not locked',
|
|
1865
|
+
[exports.TranslatorTranslationDefaultKey.VALUE_IS_REGEX]: 'Value is regex pattern?',
|
|
1853
1866
|
[exports.TranslatorTranslationDefaultKey.CLIENT]: 'update',
|
|
1854
1867
|
[exports.TranslatorTranslationDefaultKey.CLIENTS]: 'clients',
|
|
1855
1868
|
[exports.TranslatorTranslationDefaultKey.CLIENT_SCOPES]: 'client scopes',
|
|
@@ -2970,7 +2983,8 @@ const AClientScopeAssignments = vue.defineComponent({
|
|
|
2970
2983
|
return ()=>vue.h(AScopes, {}, {
|
|
2971
2984
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(AClientScopeAssignment, {
|
|
2972
2985
|
clientId: props.entityId,
|
|
2973
|
-
scopeId: slotProps.data.id
|
|
2986
|
+
scopeId: slotProps.data.id,
|
|
2987
|
+
key: slotProps.data.id
|
|
2974
2988
|
}),
|
|
2975
2989
|
...slots
|
|
2976
2990
|
});
|
|
@@ -4607,23 +4621,29 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
|
|
|
4607
4621
|
display.value = !display.value;
|
|
4608
4622
|
};
|
|
4609
4623
|
const form = vue.reactive({
|
|
4610
|
-
|
|
4624
|
+
name: '',
|
|
4625
|
+
value: '',
|
|
4626
|
+
value_is_regex: false
|
|
4611
4627
|
});
|
|
4612
4628
|
const $v = useVuelidate({
|
|
4613
|
-
|
|
4614
|
-
|
|
4629
|
+
name: {
|
|
4630
|
+
minLength: validators.minLength(3),
|
|
4631
|
+
maxLength: validators.maxLength(32)
|
|
4632
|
+
},
|
|
4633
|
+
value: {
|
|
4615
4634
|
minLength: validators.minLength(3),
|
|
4616
4635
|
maxLength: validators.maxLength(128)
|
|
4617
|
-
}
|
|
4636
|
+
},
|
|
4637
|
+
value_is_regex: {}
|
|
4618
4638
|
}, form);
|
|
4619
|
-
const validationMessages =
|
|
4620
|
-
const
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4639
|
+
const validationMessages = useTranslationsForNestedValidation($v.value);
|
|
4640
|
+
const translationsDefault = useTranslationsForGroup(exports.TranslatorTranslationGroup.DEFAULT, [
|
|
4641
|
+
{
|
|
4642
|
+
key: exports.TranslatorTranslationDefaultKey.VALUE_IS_REGEX
|
|
4643
|
+
}
|
|
4644
|
+
]);
|
|
4625
4645
|
const manager = createEntityManager({
|
|
4626
|
-
type: `${coreKit.DomainType.
|
|
4646
|
+
type: `${coreKit.DomainType.IDENTITY_PROVIDER_ROLE_MAPPING}`,
|
|
4627
4647
|
setup,
|
|
4628
4648
|
socket: {
|
|
4629
4649
|
processEvent (event) {
|
|
@@ -4693,7 +4713,6 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
|
|
|
4693
4713
|
'btn-dark': !!manager.data.value
|
|
4694
4714
|
}
|
|
4695
4715
|
],
|
|
4696
|
-
disabled: !isExternalIDDefined.value,
|
|
4697
4716
|
onClick ($event) {
|
|
4698
4717
|
$event.preventDefault();
|
|
4699
4718
|
if (manager.data.value) {
|
|
@@ -4747,13 +4766,39 @@ const AIdentityProviderRoleAssignment = vue.defineComponent({
|
|
|
4747
4766
|
}, [
|
|
4748
4767
|
formControls.buildFormGroup({
|
|
4749
4768
|
label: true,
|
|
4750
|
-
labelContent:
|
|
4751
|
-
validationMessages: validationMessages.value,
|
|
4752
|
-
validationSeverity: getVuelidateSeverity($v.value.
|
|
4769
|
+
labelContent: 'Name',
|
|
4770
|
+
validationMessages: validationMessages.name.value,
|
|
4771
|
+
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
4753
4772
|
content: formControls.buildFormInput({
|
|
4754
|
-
value: $v.value.
|
|
4773
|
+
value: $v.value.name.$model,
|
|
4755
4774
|
onChange (input) {
|
|
4756
|
-
$v.value.
|
|
4775
|
+
$v.value.name.$model = input;
|
|
4776
|
+
}
|
|
4777
|
+
})
|
|
4778
|
+
}),
|
|
4779
|
+
formControls.buildFormGroup({
|
|
4780
|
+
label: true,
|
|
4781
|
+
labelContent: 'Value',
|
|
4782
|
+
validationMessages: validationMessages.value.value,
|
|
4783
|
+
validationSeverity: getVuelidateSeverity($v.value.value),
|
|
4784
|
+
content: formControls.buildFormInput({
|
|
4785
|
+
value: $v.value.value.$model,
|
|
4786
|
+
onChange (input) {
|
|
4787
|
+
$v.value.value.$model = input;
|
|
4788
|
+
}
|
|
4789
|
+
})
|
|
4790
|
+
}),
|
|
4791
|
+
formControls.buildFormGroup({
|
|
4792
|
+
validationMessages: validationMessages.value_is_regex.value,
|
|
4793
|
+
validationSeverity: getVuelidateSeverity($v.value.value_is_regex),
|
|
4794
|
+
label: true,
|
|
4795
|
+
labelContent: 'Regex',
|
|
4796
|
+
content: formControls.buildFormInputCheckbox({
|
|
4797
|
+
groupClass: 'form-switch',
|
|
4798
|
+
labelContent: translationsDefault.valueIsRegex.value,
|
|
4799
|
+
value: $v.value.value_is_regex.$model,
|
|
4800
|
+
onChange (input) {
|
|
4801
|
+
$v.value.value_is_regex.$model = input;
|
|
4757
4802
|
}
|
|
4758
4803
|
})
|
|
4759
4804
|
})
|
|
@@ -5441,7 +5486,8 @@ const APermissionRobotAssignments = vue.defineComponent({
|
|
|
5441
5486
|
return ()=>vue.h(ARobots, {}, {
|
|
5442
5487
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(ARobotPermissionAssignment, {
|
|
5443
5488
|
permissionId: props.entityId,
|
|
5444
|
-
robotId: slotProps.data.id
|
|
5489
|
+
robotId: slotProps.data.id,
|
|
5490
|
+
key: slotProps.data.id
|
|
5445
5491
|
}),
|
|
5446
5492
|
...slots
|
|
5447
5493
|
});
|
|
@@ -5495,7 +5541,8 @@ const ARolePermissionAssignments = vue.defineComponent({
|
|
|
5495
5541
|
return ()=>vue.h(APermissions, {}, {
|
|
5496
5542
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(ARolePermissionAssignment, {
|
|
5497
5543
|
roleId: props.entityId,
|
|
5498
|
-
permissionId: slotProps.data.id
|
|
5544
|
+
permissionId: slotProps.data.id,
|
|
5545
|
+
key: slotProps.data.id
|
|
5499
5546
|
}),
|
|
5500
5547
|
...slots
|
|
5501
5548
|
});
|
|
@@ -5513,7 +5560,8 @@ const APermissionRoleAssignments = vue.defineComponent({
|
|
|
5513
5560
|
return ()=>vue.h(ARoles, {}, {
|
|
5514
5561
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(ARolePermissionAssignment, {
|
|
5515
5562
|
permissionId: props.entityId,
|
|
5516
|
-
roleId: slotProps.data.id
|
|
5563
|
+
roleId: slotProps.data.id,
|
|
5564
|
+
key: slotProps.data.id
|
|
5517
5565
|
}),
|
|
5518
5566
|
...slots
|
|
5519
5567
|
});
|
|
@@ -5567,7 +5615,8 @@ const AUserPermissionAssignments = vue.defineComponent({
|
|
|
5567
5615
|
return ()=>vue.h(APermissions, {}, {
|
|
5568
5616
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(AUserPermissionAssignment, {
|
|
5569
5617
|
userId: props.entityId,
|
|
5570
|
-
permissionId: slotProps.data.id
|
|
5618
|
+
permissionId: slotProps.data.id,
|
|
5619
|
+
key: slotProps.data.id
|
|
5571
5620
|
}),
|
|
5572
5621
|
...slots
|
|
5573
5622
|
});
|
|
@@ -6017,7 +6066,8 @@ const APermissionUserAssignments = vue.defineComponent({
|
|
|
6017
6066
|
return ()=>vue.h(AUsers, {}, {
|
|
6018
6067
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(AUserPermissionAssignment, {
|
|
6019
6068
|
permissionId: props.entityId,
|
|
6020
|
-
userId: slotProps.data.id
|
|
6069
|
+
userId: slotProps.data.id,
|
|
6070
|
+
key: slotProps.data.id
|
|
6021
6071
|
}),
|
|
6022
6072
|
...slots
|
|
6023
6073
|
});
|
|
@@ -6035,7 +6085,8 @@ const ARobotPermissionAssignments = vue.defineComponent({
|
|
|
6035
6085
|
return ()=>vue.h(APermissions, {}, {
|
|
6036
6086
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(ARobotPermissionAssignment, {
|
|
6037
6087
|
robotId: props.entityId,
|
|
6038
|
-
permissionId: slotProps.data.id
|
|
6088
|
+
permissionId: slotProps.data.id,
|
|
6089
|
+
key: slotProps.data.id
|
|
6039
6090
|
}),
|
|
6040
6091
|
...slots
|
|
6041
6092
|
});
|
|
@@ -6086,7 +6137,8 @@ const ARobotRoleAssignments = vue.defineComponent({
|
|
|
6086
6137
|
return ()=>vue.h(ARoles, {}, {
|
|
6087
6138
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(ARobotRoleAssignment, {
|
|
6088
6139
|
robotId: props.entityId,
|
|
6089
|
-
roleId: slotProps.data.id
|
|
6140
|
+
roleId: slotProps.data.id,
|
|
6141
|
+
key: slotProps.data.id
|
|
6090
6142
|
}),
|
|
6091
6143
|
...slots
|
|
6092
6144
|
});
|
|
@@ -6101,7 +6153,8 @@ const ARoleRobotAssignments = vue.defineComponent({
|
|
|
6101
6153
|
return ()=>vue.h(ARobots, {}, {
|
|
6102
6154
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(ARobotRoleAssignment, {
|
|
6103
6155
|
roleId: props.entityId,
|
|
6104
|
-
robotId: slotProps.data.id
|
|
6156
|
+
robotId: slotProps.data.id,
|
|
6157
|
+
key: slotProps.data.id
|
|
6105
6158
|
})
|
|
6106
6159
|
});
|
|
6107
6160
|
}
|
|
@@ -6151,7 +6204,8 @@ const AUserRoleAssignments = vue.defineComponent({
|
|
|
6151
6204
|
return ()=>vue.h(ARoles, {}, {
|
|
6152
6205
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(AUserRoleAssignment, {
|
|
6153
6206
|
userId: props.entityId,
|
|
6154
|
-
roleId: slotProps.data.id
|
|
6207
|
+
roleId: slotProps.data.id,
|
|
6208
|
+
key: slotProps.data.id
|
|
6155
6209
|
}),
|
|
6156
6210
|
...slots
|
|
6157
6211
|
});
|
|
@@ -6166,7 +6220,8 @@ const ARoleUserAssignments = vue.defineComponent({
|
|
|
6166
6220
|
return ()=>vue.h(AUsers, {}, {
|
|
6167
6221
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(AUserRoleAssignment, {
|
|
6168
6222
|
roleId: props.entityId,
|
|
6169
|
-
userId: slotProps.data.id
|
|
6223
|
+
userId: slotProps.data.id,
|
|
6224
|
+
key: slotProps.data.id
|
|
6170
6225
|
}),
|
|
6171
6226
|
...slots
|
|
6172
6227
|
});
|
|
@@ -6184,7 +6239,8 @@ const AScopeClientAssignments = vue.defineComponent({
|
|
|
6184
6239
|
return ()=>vue.h(AClients, {}, {
|
|
6185
6240
|
[listControls.SlotName.ITEM_ACTIONS]: (slotProps)=>vue.h(AClientScopeAssignment, {
|
|
6186
6241
|
scopeId: props.entityId,
|
|
6187
|
-
clientId: slotProps.data.id
|
|
6242
|
+
clientId: slotProps.data.id,
|
|
6243
|
+
key: slotProps.data.id
|
|
6188
6244
|
}),
|
|
6189
6245
|
...slots
|
|
6190
6246
|
});
|
|
@@ -6544,11 +6600,11 @@ const AEntityDelete = vue.defineComponent({
|
|
|
6544
6600
|
const instance = vue.getCurrentInstance();
|
|
6545
6601
|
const busy = vue.ref(false);
|
|
6546
6602
|
const submit = wrapFnWithBusyState(busy, async ()=>{
|
|
6547
|
-
|
|
6548
|
-
if (kit.
|
|
6549
|
-
|
|
6603
|
+
const domainAPI = apiClient[props.entityType];
|
|
6604
|
+
if (!kit.isObject(domainAPI)) {
|
|
6605
|
+
return;
|
|
6550
6606
|
}
|
|
6551
|
-
if (
|
|
6607
|
+
if (typeof domainAPI.delete !== 'function') {
|
|
6552
6608
|
return;
|
|
6553
6609
|
}
|
|
6554
6610
|
try {
|
|
@@ -6691,20 +6747,21 @@ function installComponents(input) {
|
|
|
6691
6747
|
}
|
|
6692
6748
|
function install(app1, options) {
|
|
6693
6749
|
if (options.realtime) {
|
|
6694
|
-
|
|
6750
|
+
installSocketManager(app1, {
|
|
6751
|
+
pinia: options.pinia,
|
|
6695
6752
|
baseURL: options.realtimeURL || options.baseURL
|
|
6696
6753
|
});
|
|
6697
6754
|
}
|
|
6698
6755
|
installStore(app1, {
|
|
6756
|
+
pinia: options.pinia,
|
|
6699
6757
|
baseURL: options.baseURL,
|
|
6700
6758
|
cookieSet: options.cookieSet,
|
|
6701
6759
|
cookieGet: options.cookieGet,
|
|
6702
|
-
cookieUnset: options.cookieUnset
|
|
6703
|
-
pinia: options.pinia
|
|
6760
|
+
cookieUnset: options.cookieUnset
|
|
6704
6761
|
});
|
|
6705
6762
|
installHTTPClient(app1, {
|
|
6706
|
-
|
|
6707
|
-
|
|
6763
|
+
pinia: options.pinia,
|
|
6764
|
+
baseURL: options.baseURL
|
|
6708
6765
|
});
|
|
6709
6766
|
installTranslator(app1, {
|
|
6710
6767
|
locale: options.translatorLocale
|
|
@@ -6804,22 +6861,22 @@ exports.hasStore = hasStore;
|
|
|
6804
6861
|
exports.initFormAttributesFromSource = initFormAttributesFromSource;
|
|
6805
6862
|
exports.inject = inject$1;
|
|
6806
6863
|
exports.injectHTTPClient = injectHTTPClient;
|
|
6807
|
-
exports.
|
|
6864
|
+
exports.injectSocketManager = injectSocketManager;
|
|
6808
6865
|
exports.injectStore = injectStore;
|
|
6809
6866
|
exports.injectTranslatorLocale = injectTranslatorLocale;
|
|
6810
6867
|
exports.install = install;
|
|
6811
6868
|
exports.installHTTPClient = installHTTPClient;
|
|
6812
|
-
exports.
|
|
6869
|
+
exports.installSocketManager = installSocketManager;
|
|
6813
6870
|
exports.installStore = installStore;
|
|
6814
6871
|
exports.installTranslator = installTranslator;
|
|
6815
6872
|
exports.isQuerySortedDescByDate = isQuerySortedDescByDate;
|
|
6816
|
-
exports.
|
|
6873
|
+
exports.isSocketManagerUsable = isSocketManagerUsable;
|
|
6817
6874
|
exports.mergeListOptions = mergeListOptions;
|
|
6818
6875
|
exports.normalizeSlot = normalizeSlot;
|
|
6819
6876
|
exports.onChange = onChange;
|
|
6820
6877
|
exports.provide = provide;
|
|
6821
6878
|
exports.provideHTTPClient = provideHTTPClient;
|
|
6822
|
-
exports.
|
|
6879
|
+
exports.provideSocketManager = provideSocketManager;
|
|
6823
6880
|
exports.provideStore = provideStore;
|
|
6824
6881
|
exports.renderEntityAssignAction = renderEntityAssignAction;
|
|
6825
6882
|
exports.storeToRefs = storeToRefs;
|