@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.mjs
CHANGED
|
@@ -267,7 +267,6 @@ function tryOnScopeDispose(fn) {
|
|
|
267
267
|
return false;
|
|
268
268
|
}
|
|
269
269
|
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
270
|
-
const noop = ()=>{};
|
|
271
270
|
|
|
272
271
|
function useCookies(dependencies, { doNotParse = false, autoUpdateDependencies = false } = {}, cookies = new Cookie()) {
|
|
273
272
|
const watchingDependencies = autoUpdateDependencies ? [
|
|
@@ -281,7 +280,9 @@ function useCookies(dependencies, { doNotParse = false, autoUpdateDependencies =
|
|
|
281
280
|
const newCookies = cookies.getAll({
|
|
282
281
|
doNotParse: true
|
|
283
282
|
});
|
|
284
|
-
if (shouldUpdate(watchingDependencies || null, newCookies, previousCookies))
|
|
283
|
+
if (shouldUpdate(watchingDependencies || null, newCookies, previousCookies)) {
|
|
284
|
+
touches.value++;
|
|
285
|
+
}
|
|
285
286
|
previousCookies = newCookies;
|
|
286
287
|
};
|
|
287
288
|
cookies.addChangeListener(onChange);
|
|
@@ -720,39 +721,47 @@ function buildListDeletedHandler(items, cb) {
|
|
|
720
721
|
return input;
|
|
721
722
|
}
|
|
722
723
|
|
|
723
|
-
const SocketClientSymbol = Symbol.for('
|
|
724
|
-
function
|
|
725
|
-
|
|
726
|
-
return false;
|
|
727
|
-
}
|
|
728
|
-
const instance = inject$1(SocketClientSymbol);
|
|
729
|
-
return !!instance;
|
|
724
|
+
const SocketClientSymbol = Symbol.for('AuthupSocketManager');
|
|
725
|
+
function isSocketManagerUsable() {
|
|
726
|
+
return !!inject$1(SocketClientSymbol);
|
|
730
727
|
}
|
|
731
|
-
function
|
|
728
|
+
function provideSocketManager(manager, app) {
|
|
732
729
|
provide(SocketClientSymbol, manager, app);
|
|
733
730
|
}
|
|
734
|
-
function
|
|
735
|
-
const manager = inject$1(SocketClientSymbol);
|
|
731
|
+
function injectSocketManager(app) {
|
|
732
|
+
const manager = inject$1(SocketClientSymbol, app);
|
|
736
733
|
if (!manager) {
|
|
737
|
-
throw new Error('The socket
|
|
734
|
+
throw new Error('The socket manager has not been injected in the app context.');
|
|
738
735
|
}
|
|
739
736
|
return manager;
|
|
740
737
|
}
|
|
741
738
|
|
|
742
|
-
function
|
|
743
|
-
const
|
|
744
|
-
|
|
739
|
+
function installSocketManager(app, options) {
|
|
740
|
+
const storeCreator = injectStore(app);
|
|
741
|
+
const store = storeCreator(options.pinia);
|
|
742
|
+
const { accessToken } = storeToRefs(store);
|
|
743
|
+
const manager = new ClientManager({
|
|
744
|
+
url: options.baseURL,
|
|
745
|
+
token: ()=>accessToken.value
|
|
745
746
|
});
|
|
746
|
-
|
|
747
|
+
const oldValue = ref();
|
|
748
|
+
store.$subscribe((mutation, state)=>{
|
|
749
|
+
if (state.accessToken !== oldValue.value) {
|
|
750
|
+
oldValue.value = state.accessToken;
|
|
751
|
+
Promise.resolve().then(()=>manager.reconnect());
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
provideSocketManager(manager, app);
|
|
747
755
|
}
|
|
748
756
|
|
|
749
757
|
function createEntitySocket(ctx) {
|
|
750
|
-
if (!
|
|
758
|
+
if (!isSocketManagerUsable()) {
|
|
751
759
|
return {
|
|
752
760
|
mount () {},
|
|
753
761
|
unmount () {}
|
|
754
762
|
};
|
|
755
763
|
}
|
|
764
|
+
const socketManager = injectSocketManager();
|
|
756
765
|
const store = useStore();
|
|
757
766
|
const storeRefs = storeToRefs(store);
|
|
758
767
|
const realmId = computed(()=>{
|
|
@@ -812,7 +821,6 @@ function createEntitySocket(ctx) {
|
|
|
812
821
|
return;
|
|
813
822
|
}
|
|
814
823
|
mounted = true;
|
|
815
|
-
const socketManager = injectSocketClientManager();
|
|
816
824
|
const socket = await socketManager.connect(`/resources#${realmId.value}`);
|
|
817
825
|
let event;
|
|
818
826
|
if (ctx.buildSubscribeEventName) {
|
|
@@ -836,7 +844,6 @@ function createEntitySocket(ctx) {
|
|
|
836
844
|
return;
|
|
837
845
|
}
|
|
838
846
|
mounted = false;
|
|
839
|
-
const socketManager = injectSocketClientManager();
|
|
840
847
|
const socket = await socketManager.connect(`/resources#${realmId.value}`);
|
|
841
848
|
let event;
|
|
842
849
|
if (ctx.buildUnsubscribeEventName) {
|
|
@@ -1525,6 +1532,7 @@ var TranslatorTranslationDefaultKey;
|
|
|
1525
1532
|
TranslatorTranslationDefaultKey["INACTIVE"] = "inactive";
|
|
1526
1533
|
TranslatorTranslationDefaultKey["LOCKED"] = "locked";
|
|
1527
1534
|
TranslatorTranslationDefaultKey["NOT_LOCKED"] = "notLocked";
|
|
1535
|
+
TranslatorTranslationDefaultKey["VALUE_IS_REGEX"] = "valueIsRegex";
|
|
1528
1536
|
TranslatorTranslationDefaultKey["CLIENT"] = "client";
|
|
1529
1537
|
TranslatorTranslationDefaultKey["CLIENTS"] = "clients";
|
|
1530
1538
|
TranslatorTranslationDefaultKey["CLIENT_SCOPES"] = "clientScopes";
|
|
@@ -1604,6 +1612,9 @@ class MemoryStore {
|
|
|
1604
1612
|
}
|
|
1605
1613
|
}
|
|
1606
1614
|
|
|
1615
|
+
typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
1616
|
+
const noop = ()=>{};
|
|
1617
|
+
|
|
1607
1618
|
function computedAsync(evaluationCallback, initialState, optionsOrRef) {
|
|
1608
1619
|
let options;
|
|
1609
1620
|
if (isRef(optionsOrRef)) {
|
|
@@ -1772,6 +1783,7 @@ const TranslatorTranslationDefaultGerman = {
|
|
|
1772
1783
|
[TranslatorTranslationDefaultKey.INACTIVE]: 'inaktiv',
|
|
1773
1784
|
[TranslatorTranslationDefaultKey.LOCKED]: 'gesperrt',
|
|
1774
1785
|
[TranslatorTranslationDefaultKey.NOT_LOCKED]: 'nicht gesperrt',
|
|
1786
|
+
[TranslatorTranslationDefaultKey.VALUE_IS_REGEX]: 'Wert ist regex pattern?',
|
|
1775
1787
|
[TranslatorTranslationDefaultKey.CLIENT]: 'Client',
|
|
1776
1788
|
[TranslatorTranslationDefaultKey.CLIENTS]: 'Clients',
|
|
1777
1789
|
[TranslatorTranslationDefaultKey.CLIENT_SCOPES]: 'Client-Bereiche',
|
|
@@ -1846,6 +1858,7 @@ const TranslatorTranslationDefaultEnglish = {
|
|
|
1846
1858
|
[TranslatorTranslationDefaultKey.INACTIVE]: 'inactive',
|
|
1847
1859
|
[TranslatorTranslationDefaultKey.LOCKED]: 'locked',
|
|
1848
1860
|
[TranslatorTranslationDefaultKey.NOT_LOCKED]: 'not locked',
|
|
1861
|
+
[TranslatorTranslationDefaultKey.VALUE_IS_REGEX]: 'Value is regex pattern?',
|
|
1849
1862
|
[TranslatorTranslationDefaultKey.CLIENT]: 'update',
|
|
1850
1863
|
[TranslatorTranslationDefaultKey.CLIENTS]: 'clients',
|
|
1851
1864
|
[TranslatorTranslationDefaultKey.CLIENT_SCOPES]: 'client scopes',
|
|
@@ -2966,7 +2979,8 @@ const AClientScopeAssignments = defineComponent({
|
|
|
2966
2979
|
return ()=>h(AScopes, {}, {
|
|
2967
2980
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(AClientScopeAssignment, {
|
|
2968
2981
|
clientId: props.entityId,
|
|
2969
|
-
scopeId: slotProps.data.id
|
|
2982
|
+
scopeId: slotProps.data.id,
|
|
2983
|
+
key: slotProps.data.id
|
|
2970
2984
|
}),
|
|
2971
2985
|
...slots
|
|
2972
2986
|
});
|
|
@@ -4603,23 +4617,29 @@ const AIdentityProviderRoleAssignment = defineComponent({
|
|
|
4603
4617
|
display.value = !display.value;
|
|
4604
4618
|
};
|
|
4605
4619
|
const form = reactive({
|
|
4606
|
-
|
|
4620
|
+
name: '',
|
|
4621
|
+
value: '',
|
|
4622
|
+
value_is_regex: false
|
|
4607
4623
|
});
|
|
4608
4624
|
const $v = useVuelidate({
|
|
4609
|
-
|
|
4610
|
-
|
|
4625
|
+
name: {
|
|
4626
|
+
minLength: minLength(3),
|
|
4627
|
+
maxLength: maxLength(32)
|
|
4628
|
+
},
|
|
4629
|
+
value: {
|
|
4611
4630
|
minLength: minLength(3),
|
|
4612
4631
|
maxLength: maxLength(128)
|
|
4613
|
-
}
|
|
4632
|
+
},
|
|
4633
|
+
value_is_regex: {}
|
|
4614
4634
|
}, form);
|
|
4615
|
-
const validationMessages =
|
|
4616
|
-
const
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4635
|
+
const validationMessages = useTranslationsForNestedValidation($v.value);
|
|
4636
|
+
const translationsDefault = useTranslationsForGroup(TranslatorTranslationGroup.DEFAULT, [
|
|
4637
|
+
{
|
|
4638
|
+
key: TranslatorTranslationDefaultKey.VALUE_IS_REGEX
|
|
4639
|
+
}
|
|
4640
|
+
]);
|
|
4621
4641
|
const manager = createEntityManager({
|
|
4622
|
-
type: `${DomainType.
|
|
4642
|
+
type: `${DomainType.IDENTITY_PROVIDER_ROLE_MAPPING}`,
|
|
4623
4643
|
setup,
|
|
4624
4644
|
socket: {
|
|
4625
4645
|
processEvent (event) {
|
|
@@ -4689,7 +4709,6 @@ const AIdentityProviderRoleAssignment = defineComponent({
|
|
|
4689
4709
|
'btn-dark': !!manager.data.value
|
|
4690
4710
|
}
|
|
4691
4711
|
],
|
|
4692
|
-
disabled: !isExternalIDDefined.value,
|
|
4693
4712
|
onClick ($event) {
|
|
4694
4713
|
$event.preventDefault();
|
|
4695
4714
|
if (manager.data.value) {
|
|
@@ -4743,13 +4762,39 @@ const AIdentityProviderRoleAssignment = defineComponent({
|
|
|
4743
4762
|
}, [
|
|
4744
4763
|
buildFormGroup({
|
|
4745
4764
|
label: true,
|
|
4746
|
-
labelContent:
|
|
4747
|
-
validationMessages: validationMessages.value,
|
|
4748
|
-
validationSeverity: getVuelidateSeverity($v.value.
|
|
4765
|
+
labelContent: 'Name',
|
|
4766
|
+
validationMessages: validationMessages.name.value,
|
|
4767
|
+
validationSeverity: getVuelidateSeverity($v.value.name),
|
|
4749
4768
|
content: buildFormInput({
|
|
4750
|
-
value: $v.value.
|
|
4769
|
+
value: $v.value.name.$model,
|
|
4751
4770
|
onChange (input) {
|
|
4752
|
-
$v.value.
|
|
4771
|
+
$v.value.name.$model = input;
|
|
4772
|
+
}
|
|
4773
|
+
})
|
|
4774
|
+
}),
|
|
4775
|
+
buildFormGroup({
|
|
4776
|
+
label: true,
|
|
4777
|
+
labelContent: 'Value',
|
|
4778
|
+
validationMessages: validationMessages.value.value,
|
|
4779
|
+
validationSeverity: getVuelidateSeverity($v.value.value),
|
|
4780
|
+
content: buildFormInput({
|
|
4781
|
+
value: $v.value.value.$model,
|
|
4782
|
+
onChange (input) {
|
|
4783
|
+
$v.value.value.$model = input;
|
|
4784
|
+
}
|
|
4785
|
+
})
|
|
4786
|
+
}),
|
|
4787
|
+
buildFormGroup({
|
|
4788
|
+
validationMessages: validationMessages.value_is_regex.value,
|
|
4789
|
+
validationSeverity: getVuelidateSeverity($v.value.value_is_regex),
|
|
4790
|
+
label: true,
|
|
4791
|
+
labelContent: 'Regex',
|
|
4792
|
+
content: buildFormInputCheckbox({
|
|
4793
|
+
groupClass: 'form-switch',
|
|
4794
|
+
labelContent: translationsDefault.valueIsRegex.value,
|
|
4795
|
+
value: $v.value.value_is_regex.$model,
|
|
4796
|
+
onChange (input) {
|
|
4797
|
+
$v.value.value_is_regex.$model = input;
|
|
4753
4798
|
}
|
|
4754
4799
|
})
|
|
4755
4800
|
})
|
|
@@ -5437,7 +5482,8 @@ const APermissionRobotAssignments = defineComponent({
|
|
|
5437
5482
|
return ()=>h(ARobots, {}, {
|
|
5438
5483
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(ARobotPermissionAssignment, {
|
|
5439
5484
|
permissionId: props.entityId,
|
|
5440
|
-
robotId: slotProps.data.id
|
|
5485
|
+
robotId: slotProps.data.id,
|
|
5486
|
+
key: slotProps.data.id
|
|
5441
5487
|
}),
|
|
5442
5488
|
...slots
|
|
5443
5489
|
});
|
|
@@ -5491,7 +5537,8 @@ const ARolePermissionAssignments = defineComponent({
|
|
|
5491
5537
|
return ()=>h(APermissions, {}, {
|
|
5492
5538
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(ARolePermissionAssignment, {
|
|
5493
5539
|
roleId: props.entityId,
|
|
5494
|
-
permissionId: slotProps.data.id
|
|
5540
|
+
permissionId: slotProps.data.id,
|
|
5541
|
+
key: slotProps.data.id
|
|
5495
5542
|
}),
|
|
5496
5543
|
...slots
|
|
5497
5544
|
});
|
|
@@ -5509,7 +5556,8 @@ const APermissionRoleAssignments = defineComponent({
|
|
|
5509
5556
|
return ()=>h(ARoles, {}, {
|
|
5510
5557
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(ARolePermissionAssignment, {
|
|
5511
5558
|
permissionId: props.entityId,
|
|
5512
|
-
roleId: slotProps.data.id
|
|
5559
|
+
roleId: slotProps.data.id,
|
|
5560
|
+
key: slotProps.data.id
|
|
5513
5561
|
}),
|
|
5514
5562
|
...slots
|
|
5515
5563
|
});
|
|
@@ -5563,7 +5611,8 @@ const AUserPermissionAssignments = defineComponent({
|
|
|
5563
5611
|
return ()=>h(APermissions, {}, {
|
|
5564
5612
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(AUserPermissionAssignment, {
|
|
5565
5613
|
userId: props.entityId,
|
|
5566
|
-
permissionId: slotProps.data.id
|
|
5614
|
+
permissionId: slotProps.data.id,
|
|
5615
|
+
key: slotProps.data.id
|
|
5567
5616
|
}),
|
|
5568
5617
|
...slots
|
|
5569
5618
|
});
|
|
@@ -6013,7 +6062,8 @@ const APermissionUserAssignments = defineComponent({
|
|
|
6013
6062
|
return ()=>h(AUsers, {}, {
|
|
6014
6063
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(AUserPermissionAssignment, {
|
|
6015
6064
|
permissionId: props.entityId,
|
|
6016
|
-
userId: slotProps.data.id
|
|
6065
|
+
userId: slotProps.data.id,
|
|
6066
|
+
key: slotProps.data.id
|
|
6017
6067
|
}),
|
|
6018
6068
|
...slots
|
|
6019
6069
|
});
|
|
@@ -6031,7 +6081,8 @@ const ARobotPermissionAssignments = defineComponent({
|
|
|
6031
6081
|
return ()=>h(APermissions, {}, {
|
|
6032
6082
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(ARobotPermissionAssignment, {
|
|
6033
6083
|
robotId: props.entityId,
|
|
6034
|
-
permissionId: slotProps.data.id
|
|
6084
|
+
permissionId: slotProps.data.id,
|
|
6085
|
+
key: slotProps.data.id
|
|
6035
6086
|
}),
|
|
6036
6087
|
...slots
|
|
6037
6088
|
});
|
|
@@ -6082,7 +6133,8 @@ const ARobotRoleAssignments = defineComponent({
|
|
|
6082
6133
|
return ()=>h(ARoles, {}, {
|
|
6083
6134
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(ARobotRoleAssignment, {
|
|
6084
6135
|
robotId: props.entityId,
|
|
6085
|
-
roleId: slotProps.data.id
|
|
6136
|
+
roleId: slotProps.data.id,
|
|
6137
|
+
key: slotProps.data.id
|
|
6086
6138
|
}),
|
|
6087
6139
|
...slots
|
|
6088
6140
|
});
|
|
@@ -6097,7 +6149,8 @@ const ARoleRobotAssignments = defineComponent({
|
|
|
6097
6149
|
return ()=>h(ARobots, {}, {
|
|
6098
6150
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(ARobotRoleAssignment, {
|
|
6099
6151
|
roleId: props.entityId,
|
|
6100
|
-
robotId: slotProps.data.id
|
|
6152
|
+
robotId: slotProps.data.id,
|
|
6153
|
+
key: slotProps.data.id
|
|
6101
6154
|
})
|
|
6102
6155
|
});
|
|
6103
6156
|
}
|
|
@@ -6147,7 +6200,8 @@ const AUserRoleAssignments = defineComponent({
|
|
|
6147
6200
|
return ()=>h(ARoles, {}, {
|
|
6148
6201
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(AUserRoleAssignment, {
|
|
6149
6202
|
userId: props.entityId,
|
|
6150
|
-
roleId: slotProps.data.id
|
|
6203
|
+
roleId: slotProps.data.id,
|
|
6204
|
+
key: slotProps.data.id
|
|
6151
6205
|
}),
|
|
6152
6206
|
...slots
|
|
6153
6207
|
});
|
|
@@ -6162,7 +6216,8 @@ const ARoleUserAssignments = defineComponent({
|
|
|
6162
6216
|
return ()=>h(AUsers, {}, {
|
|
6163
6217
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(AUserRoleAssignment, {
|
|
6164
6218
|
roleId: props.entityId,
|
|
6165
|
-
userId: slotProps.data.id
|
|
6219
|
+
userId: slotProps.data.id,
|
|
6220
|
+
key: slotProps.data.id
|
|
6166
6221
|
}),
|
|
6167
6222
|
...slots
|
|
6168
6223
|
});
|
|
@@ -6180,7 +6235,8 @@ const AScopeClientAssignments = defineComponent({
|
|
|
6180
6235
|
return ()=>h(AClients, {}, {
|
|
6181
6236
|
[SlotName.ITEM_ACTIONS]: (slotProps)=>h(AClientScopeAssignment, {
|
|
6182
6237
|
scopeId: props.entityId,
|
|
6183
|
-
clientId: slotProps.data.id
|
|
6238
|
+
clientId: slotProps.data.id,
|
|
6239
|
+
key: slotProps.data.id
|
|
6184
6240
|
}),
|
|
6185
6241
|
...slots
|
|
6186
6242
|
});
|
|
@@ -6540,11 +6596,11 @@ const AEntityDelete = defineComponent({
|
|
|
6540
6596
|
const instance = getCurrentInstance();
|
|
6541
6597
|
const busy = ref(false);
|
|
6542
6598
|
const submit = wrapFnWithBusyState(busy, async ()=>{
|
|
6543
|
-
|
|
6544
|
-
if (
|
|
6545
|
-
|
|
6599
|
+
const domainAPI = apiClient[props.entityType];
|
|
6600
|
+
if (!isObject$1(domainAPI)) {
|
|
6601
|
+
return;
|
|
6546
6602
|
}
|
|
6547
|
-
if (
|
|
6603
|
+
if (typeof domainAPI.delete !== 'function') {
|
|
6548
6604
|
return;
|
|
6549
6605
|
}
|
|
6550
6606
|
try {
|
|
@@ -6687,20 +6743,21 @@ function installComponents(input) {
|
|
|
6687
6743
|
}
|
|
6688
6744
|
function install(app1, options) {
|
|
6689
6745
|
if (options.realtime) {
|
|
6690
|
-
|
|
6746
|
+
installSocketManager(app1, {
|
|
6747
|
+
pinia: options.pinia,
|
|
6691
6748
|
baseURL: options.realtimeURL || options.baseURL
|
|
6692
6749
|
});
|
|
6693
6750
|
}
|
|
6694
6751
|
installStore(app1, {
|
|
6752
|
+
pinia: options.pinia,
|
|
6695
6753
|
baseURL: options.baseURL,
|
|
6696
6754
|
cookieSet: options.cookieSet,
|
|
6697
6755
|
cookieGet: options.cookieGet,
|
|
6698
|
-
cookieUnset: options.cookieUnset
|
|
6699
|
-
pinia: options.pinia
|
|
6756
|
+
cookieUnset: options.cookieUnset
|
|
6700
6757
|
});
|
|
6701
6758
|
installHTTPClient(app1, {
|
|
6702
|
-
|
|
6703
|
-
|
|
6759
|
+
pinia: options.pinia,
|
|
6760
|
+
baseURL: options.baseURL
|
|
6704
6761
|
});
|
|
6705
6762
|
installTranslator(app1, {
|
|
6706
6763
|
locale: options.translatorLocale
|
|
@@ -6712,5 +6769,5 @@ var index = {
|
|
|
6712
6769
|
install
|
|
6713
6770
|
};
|
|
6714
6771
|
|
|
6715
|
-
export { AClient, AClientForm, AClientRedirectUris, AClientRedirectUrisItem, AClientScope, AClientScopeAssignment, AClientScopeAssignments, AClientScopes, AClients, AEntityDelete, AIdentityProvider, AIdentityProviderForm, AIdentityProviderIcon, AIdentityProviderLdapForm, AIdentityProviderOAuth2Form, AIdentityProviderPreset, AIdentityProviderProtocol, AIdentityProviderRoleAssignment, AIdentityProviderRoleAssignments, AIdentityProviders, APagination, APermission, APermissionForm, APermissionRobotAssignments, APermissionRoleAssignments, APermissionUserAssignments, APermissions, ARealm, ARealmForm, ARealms, ARobot, ARobotForm, ARobotPermissionAssignment, ARobotPermissionAssignments, ARobotRoleAssignment, ARobotRoleAssignments, ARobots, ARole, ARoleForm, ARolePermissionAssignment, ARolePermissionAssignments, ARoleRobotAssignments, ARoleUserAssignments, ARoles, AScope, AScopeClientAssignments, AScopeForm, AScopes, ASearch, ATitle, AUser, AUserForm, AUserPasswordForm, AUserPermissionAssignment, AUserPermissionAssignments, AUserRoleAssignment, AUserRoleAssignments, AUsers, EntityManagerError, HTTPClientSymbol, LanguageSwitcherDropdown, STORE_ID, SocketClientSymbol, StoreSymbol, TranslatorTranslationClientKey, TranslatorTranslationDefaultKey, TranslatorTranslationGroup, TranslatorTranslationVuecsKey, VuelidateCustomRule, VuelidateCustomRuleKey, buildEntityManagerSlotProps, buildFormSubmitWithTranslations, buildListCreatedHandler, buildListDeletedHandler, buildListUpdatedHandler, createEntityManager, createFormSubmitTranslations, createList, createStore, index as default, defineEntityManagerEvents, defineEntityManagerProps, defineListEvents, defineListProps, extendObjectProperties, extractVuelidateResultsFromChild, getVuelidateSeverity, hasHTTPClient, hasNormalizedSlot, hasStore, initFormAttributesFromSource, inject$1 as inject, injectHTTPClient,
|
|
6772
|
+
export { AClient, AClientForm, AClientRedirectUris, AClientRedirectUrisItem, AClientScope, AClientScopeAssignment, AClientScopeAssignments, AClientScopes, AClients, AEntityDelete, AIdentityProvider, AIdentityProviderForm, AIdentityProviderIcon, AIdentityProviderLdapForm, AIdentityProviderOAuth2Form, AIdentityProviderPreset, AIdentityProviderProtocol, AIdentityProviderRoleAssignment, AIdentityProviderRoleAssignments, AIdentityProviders, APagination, APermission, APermissionForm, APermissionRobotAssignments, APermissionRoleAssignments, APermissionUserAssignments, APermissions, ARealm, ARealmForm, ARealms, ARobot, ARobotForm, ARobotPermissionAssignment, ARobotPermissionAssignments, ARobotRoleAssignment, ARobotRoleAssignments, ARobots, ARole, ARoleForm, ARolePermissionAssignment, ARolePermissionAssignments, ARoleRobotAssignments, ARoleUserAssignments, ARoles, AScope, AScopeClientAssignments, AScopeForm, AScopes, ASearch, ATitle, AUser, AUserForm, AUserPasswordForm, AUserPermissionAssignment, AUserPermissionAssignments, AUserRoleAssignment, AUserRoleAssignments, AUsers, EntityManagerError, HTTPClientSymbol, LanguageSwitcherDropdown, STORE_ID, SocketClientSymbol, StoreSymbol, TranslatorTranslationClientKey, TranslatorTranslationDefaultKey, TranslatorTranslationGroup, TranslatorTranslationVuecsKey, VuelidateCustomRule, VuelidateCustomRuleKey, buildEntityManagerSlotProps, buildFormSubmitWithTranslations, buildListCreatedHandler, buildListDeletedHandler, buildListUpdatedHandler, createEntityManager, createFormSubmitTranslations, createList, createStore, index as default, defineEntityManagerEvents, defineEntityManagerProps, defineListEvents, defineListProps, extendObjectProperties, extractVuelidateResultsFromChild, getVuelidateSeverity, hasHTTPClient, hasNormalizedSlot, hasStore, initFormAttributesFromSource, inject$1 as inject, injectHTTPClient, injectSocketManager, injectStore, injectTranslatorLocale, install, installHTTPClient, installSocketManager, installStore, installTranslator, isQuerySortedDescByDate, isSocketManagerUsable, mergeListOptions, normalizeSlot, onChange, provide, provideHTTPClient, provideSocketManager, provideStore, renderEntityAssignAction, storeToRefs, useAbilityCheck, useIsEditing, useRealmResourceWritableCheck, useStore, useTranslation, useTranslationsForBaseValidation, useTranslationsForGroup, useTranslationsForNestedValidation, useUpdatedAt, wrapFnWithBusyState };
|
|
6716
6773
|
//# sourceMappingURL=index.mjs.map
|