chayns-api 1.0.41 → 1.0.43
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/cjs/wrapper/AppWrapper.js +1 -1
- package/dist/esm/handler/DialogHandler.js +2 -2
- package/dist/esm/wrapper/AppWrapper.js +3 -3
- package/dist/esm/wrapper/FrameWrapper.js +2 -2
- package/dist/esm/wrapper/StaticChaynsApi.js +2 -2
- package/dist/types/calls/index.d.ts +6 -2
- package/dist/types/types/IChaynsReact.d.ts +7 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(
|
|
3
|
-
function _toPrimitive(
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
export default class DialogHandler {
|
|
5
5
|
constructor(config, open, close, dispatchEvent, addDataListener) {
|
|
6
6
|
_defineProperty(this, "isOpen", false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(
|
|
3
|
-
function _toPrimitive(
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
// @ts-nocheck
|
|
6
6
|
|
|
@@ -353,7 +353,7 @@ export class AppWrapper {
|
|
|
353
353
|
id: options.id,
|
|
354
354
|
showName: options.showName,
|
|
355
355
|
position: options.position,
|
|
356
|
-
params: options.params
|
|
356
|
+
params: new URLSearchParams(options.params).toString() || undefined
|
|
357
357
|
}, {
|
|
358
358
|
awaitResult: false
|
|
359
359
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(
|
|
3
|
-
function _toPrimitive(
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
5
5
|
import * as comlink from 'comlink';
|
|
6
6
|
import DialogHandler from '../handler/DialogHandler';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(
|
|
3
|
-
function _toPrimitive(
|
|
2
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
3
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
4
|
import { moduleWrapper } from '../components/moduleWrapper';
|
|
5
5
|
import { FrameWrapper } from './FrameWrapper';
|
|
6
6
|
class StaticChaynsApi {
|
|
@@ -228,7 +228,9 @@ export declare const getParameters: () => {
|
|
|
228
228
|
};
|
|
229
229
|
export declare const getPages: () => import("../types/IChaynsReact").Page[];
|
|
230
230
|
export declare const getEnvironment: () => {
|
|
231
|
-
buildEnvironment: import("../types/IChaynsReact").Environment;
|
|
231
|
+
buildEnvironment: import("../types/IChaynsReact").Environment; /**
|
|
232
|
+
* Refresh badge count in navigation, user information and pages
|
|
233
|
+
*/
|
|
232
234
|
runtimeEnvironment: string | import("../types/IChaynsReact").RuntimeEnviroment;
|
|
233
235
|
};
|
|
234
236
|
export declare const user: UserInfo;
|
|
@@ -246,6 +248,8 @@ export declare const parameters: {
|
|
|
246
248
|
};
|
|
247
249
|
export declare const pages: import("../types/IChaynsReact").Page[];
|
|
248
250
|
export declare const environment: {
|
|
249
|
-
buildEnvironment: import("../types/IChaynsReact").Environment;
|
|
251
|
+
buildEnvironment: import("../types/IChaynsReact").Environment; /**
|
|
252
|
+
* Refresh badge count in navigation, user information and pages
|
|
253
|
+
*/
|
|
250
254
|
runtimeEnvironment: string | import("../types/IChaynsReact").RuntimeEnviroment;
|
|
251
255
|
};
|
|
@@ -39,6 +39,12 @@ export interface DialogToast {
|
|
|
39
39
|
showCloseIcon?: boolean;
|
|
40
40
|
toastType?: ToastType;
|
|
41
41
|
}
|
|
42
|
+
export interface DialogFileSelect {
|
|
43
|
+
multiselect?: boolean;
|
|
44
|
+
contentType?: Array<string> | string;
|
|
45
|
+
exclude?: Array<string> | string;
|
|
46
|
+
directory?: boolean;
|
|
47
|
+
}
|
|
42
48
|
export interface DialogConfirm {
|
|
43
49
|
type: DialogType.CONFIRM;
|
|
44
50
|
}
|
|
@@ -54,7 +60,7 @@ export interface BaseDialog {
|
|
|
54
60
|
config?: any;
|
|
55
61
|
};
|
|
56
62
|
}
|
|
57
|
-
export type Dialog = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule | DialogIFrame | DialogSelect | DialogDate | DialogToast);
|
|
63
|
+
export type Dialog = BaseDialog & (DialogAlert | DialogConfirm | DialogInput | DialogModule | DialogIFrame | DialogSelect | DialogDate | DialogToast | DialogFileSelect);
|
|
58
64
|
export interface DialogModule {
|
|
59
65
|
type: DialogType.MODULE;
|
|
60
66
|
system: {
|