@bexis2/bexis2-core-ui 0.4.47 → 0.4.48
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/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} DropdownKvPEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DropdownKvPSlots */
|
|
4
4
|
export default class DropdownKvP extends SvelteComponent<{
|
|
5
|
+
source: any;
|
|
6
|
+
title: any;
|
|
5
7
|
id: any;
|
|
6
8
|
target: any;
|
|
7
|
-
title: any;
|
|
8
|
-
source: any;
|
|
9
9
|
invalid?: boolean | undefined;
|
|
10
10
|
feedback?: string[] | undefined;
|
|
11
11
|
required?: boolean | undefined;
|
|
@@ -25,10 +25,10 @@ export type DropdownKvPSlots = typeof __propDef.slots;
|
|
|
25
25
|
import { SvelteComponent } from "svelte";
|
|
26
26
|
declare const __propDef: {
|
|
27
27
|
props: {
|
|
28
|
+
source: any;
|
|
29
|
+
title: any;
|
|
28
30
|
id: any;
|
|
29
31
|
target: any;
|
|
30
|
-
title: any;
|
|
31
|
-
source: any;
|
|
32
32
|
invalid?: boolean | undefined;
|
|
33
33
|
feedback?: string[] | undefined;
|
|
34
34
|
required?: boolean | undefined;
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} MultiSelectEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} MultiSelectSlots */
|
|
4
4
|
export default class MultiSelect extends SvelteComponent<{
|
|
5
|
+
source: any;
|
|
6
|
+
title: any;
|
|
5
7
|
id: any;
|
|
6
8
|
target: any;
|
|
7
|
-
title: any;
|
|
8
|
-
source: any;
|
|
9
9
|
invalid?: boolean | undefined;
|
|
10
10
|
feedback?: string[] | undefined;
|
|
11
11
|
required?: boolean | undefined;
|
|
@@ -40,10 +40,10 @@ export type MultiSelectSlots = typeof __propDef.slots;
|
|
|
40
40
|
import { SvelteComponent } from "svelte";
|
|
41
41
|
declare const __propDef: {
|
|
42
42
|
props: {
|
|
43
|
+
source: any;
|
|
44
|
+
title: any;
|
|
43
45
|
id: any;
|
|
44
46
|
target: any;
|
|
45
|
-
title: any;
|
|
46
|
-
source: any;
|
|
47
47
|
invalid?: boolean | undefined;
|
|
48
48
|
feedback?: string[] | undefined;
|
|
49
49
|
required?: boolean | undefined;
|
package/dist/services/Api.js
CHANGED
|
@@ -11,15 +11,22 @@ const apiRequest = (method, url, request) => {
|
|
|
11
11
|
const headers = {
|
|
12
12
|
authorization: 'Basic ' + btoa(username + ':' + password)
|
|
13
13
|
};
|
|
14
|
+
const requestVerificationToken = document.querySelector('input[name="__RequestVerificationToken"]')?.getAttribute('value');
|
|
15
|
+
var data = { ...request };
|
|
16
|
+
if (requestVerificationToken) {
|
|
17
|
+
headers['__RequestVerificationToken'] = requestVerificationToken;
|
|
18
|
+
data = { ...data, __RequestVerificationToken: requestVerificationToken };
|
|
19
|
+
}
|
|
20
|
+
console.log("🚀 ~ apiRequest ~ data:", data);
|
|
14
21
|
//using the axios instance to perform the request that received from each http method
|
|
15
22
|
return axiosAPI({
|
|
16
23
|
method,
|
|
17
24
|
url,
|
|
18
|
-
data:
|
|
25
|
+
data: data,
|
|
19
26
|
headers
|
|
20
27
|
})
|
|
21
28
|
.then((res) => {
|
|
22
|
-
//
|
|
29
|
+
//console.log("res-test",res);
|
|
23
30
|
return Promise.resolve(res);
|
|
24
31
|
})
|
|
25
32
|
.catch((er) => {
|
package/package.json
CHANGED
package/src/lib/services/Api.ts
CHANGED
|
@@ -16,15 +16,27 @@ const apiRequest = (method, url, request) => {
|
|
|
16
16
|
authorization: 'Basic ' + btoa(username + ':' + password)
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
+
const requestVerificationToken = document.querySelector('input[name="__RequestVerificationToken"]')?.getAttribute('value');
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
var data ={...request}
|
|
23
|
+
|
|
24
|
+
if (requestVerificationToken) {
|
|
25
|
+
headers['__RequestVerificationToken'] = requestVerificationToken;
|
|
26
|
+
data = {...data, __RequestVerificationToken: requestVerificationToken }
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
console.log("🚀 ~ apiRequest ~ data:", data)
|
|
30
|
+
|
|
19
31
|
//using the axios instance to perform the request that received from each http method
|
|
20
32
|
return axiosAPI({
|
|
21
33
|
method,
|
|
22
34
|
url,
|
|
23
|
-
data:
|
|
35
|
+
data: data,
|
|
24
36
|
headers
|
|
25
37
|
})
|
|
26
38
|
.then((res) => {
|
|
27
|
-
//
|
|
39
|
+
//console.log("res-test",res);
|
|
28
40
|
|
|
29
41
|
return Promise.resolve(res);
|
|
30
42
|
|