dash-button-web 0.0.22 → 0.0.23-beta.0
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/app-globals-cd54EKuF.js +15 -0
- package/dist/cjs/dash-button.cjs.entry.js +2171 -2070
- package/dist/cjs/index-BfwSK14n.js +1507 -0
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +5 -7
- package/dist/cjs/web-compnont.cjs.js +15 -15
- package/dist/collection/collection-manifest.json +5 -3
- package/dist/collection/components/my-component/dash-button.js +134 -38
- package/dist/collection/global/app.js +7 -0
- package/dist/collection/index.js +0 -1
- package/dist/collection/services/config.js +2 -1
- package/dist/collection/services/menu.js +0 -1
- package/dist/components/dash-button.js +1 -4247
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -3
- package/dist/esm/app-globals-B2hgy9FG.js +13 -0
- package/dist/esm/dash-button.entry.js +2171 -2068
- package/dist/esm/index-6_Ga3Eox.js +1499 -0
- package/dist/esm/index.js +0 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/web-compnont.js +15 -14
- package/dist/types/components/my-component/dash-button.d.ts +3 -0
- package/dist/types/components.d.ts +75 -3
- package/dist/types/global/app.d.ts +2 -0
- package/dist/types/services/config.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +268 -70
- package/dist/web-compnont/index.esm.js +0 -2
- package/dist/web-compnont/p-39949e8a.entry.js +1 -0
- package/dist/web-compnont/p-6_Ga3Eox.js +3 -0
- package/dist/web-compnont/p-DiU1T8CW.js +1 -0
- package/dist/web-compnont/web-compnont.esm.js +1 -2
- package/loader/cdn.js +1 -3
- package/loader/index.cjs.js +1 -3
- package/loader/index.d.ts +4 -1
- package/loader/index.es2017.js +1 -3
- package/loader/index.js +1 -3
- package/package.json +3 -2
- package/readme.md +21 -0
- package/dist/cjs/dash-button.cjs.entry.js.map +0 -1
- package/dist/cjs/index-87d4993d.js +0 -1793
- package/dist/cjs/index-87d4993d.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/web-compnont.cjs.js.map +0 -1
- package/dist/collection/components/my-component/dash-button.e2e.js +0 -26
- package/dist/collection/components/my-component/dash-button.e2e.js.map +0 -1
- package/dist/collection/components/my-component/dash-button.js.map +0 -1
- package/dist/collection/components/my-component/dash-button.spec.js +0 -35
- package/dist/collection/components/my-component/dash-button.spec.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/services/config.js.map +0 -1
- package/dist/collection/services/menu.js.map +0 -1
- package/dist/components/dash-button.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/esm/dash-button.entry.js.map +0 -1
- package/dist/esm/index-e3df5eaf.js +0 -1766
- package/dist/esm/index-e3df5eaf.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/web-compnont.js.map +0 -1
- package/dist/web-compnont/index.esm.js.map +0 -1
- package/dist/web-compnont/p-ad318f06.entry.js +0 -10
- package/dist/web-compnont/p-ad318f06.entry.js.map +0 -1
- package/dist/web-compnont/p-c1ec12fe.js +0 -3
- package/dist/web-compnont/p-c1ec12fe.js.map +0 -1
- package/dist/web-compnont/web-compnont.esm.js.map +0 -1
- package/loader/package.json +0 -11
package/dist/esm/index.js
CHANGED
package/dist/esm/loader.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { b as bootstrapLazy } from './index-6_Ga3Eox.js';
|
|
2
|
+
export { s as setNonce } from './index-6_Ga3Eox.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-B2hgy9FG.js';
|
|
3
4
|
|
|
4
|
-
const defineCustomElements = (win, options) => {
|
|
5
|
+
const defineCustomElements = async (win, options) => {
|
|
5
6
|
if (typeof window === 'undefined') return undefined;
|
|
6
|
-
|
|
7
|
+
await globalScripts();
|
|
8
|
+
return bootstrapLazy([["dash-button",[[1,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}]]]], options);
|
|
7
9
|
};
|
|
8
10
|
|
|
9
11
|
export { defineCustomElements };
|
|
10
|
-
|
|
11
|
-
//# sourceMappingURL=loader.js.map
|
package/dist/esm/web-compnont.js
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-6_Ga3Eox.js';
|
|
2
|
+
export { s as setNonce } from './index-6_Ga3Eox.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-B2hgy9FG.js';
|
|
3
4
|
|
|
4
5
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.45.0 | MIT Licensed | https://stenciljs.com
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
|
|
9
|
+
var patchBrowser = () => {
|
|
10
|
+
const importMeta = import.meta.url;
|
|
11
|
+
const opts = {};
|
|
12
|
+
if (importMeta !== "") {
|
|
13
|
+
opts.resourcesUrl = new URL(".", importMeta).href;
|
|
14
|
+
}
|
|
15
|
+
return promiseResolve(opts);
|
|
14
16
|
};
|
|
15
17
|
|
|
16
|
-
patchBrowser().then(options => {
|
|
17
|
-
|
|
18
|
+
patchBrowser().then(async (options) => {
|
|
19
|
+
await globalScripts();
|
|
20
|
+
return bootstrapLazy([["dash-button",[[1,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}]]]], options);
|
|
18
21
|
});
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=web-compnont.js.map
|
|
@@ -11,6 +11,7 @@ export declare class DashButtonComponent {
|
|
|
11
11
|
showUnauthorizedModal: boolean;
|
|
12
12
|
primaryColor: string;
|
|
13
13
|
accentColor: string;
|
|
14
|
+
notificationPosition: "left" | "right";
|
|
14
15
|
keycloak: any;
|
|
15
16
|
isAuth: boolean;
|
|
16
17
|
givenUserName: string;
|
|
@@ -22,6 +23,7 @@ export declare class DashButtonComponent {
|
|
|
22
23
|
localMenuLinks: MenuLink[];
|
|
23
24
|
organizationUrl: any;
|
|
24
25
|
isRestricted: boolean;
|
|
26
|
+
componentDidLoad(): void;
|
|
25
27
|
componentWillLoad(): Promise<void>;
|
|
26
28
|
initKeycloak(): Promise<void>;
|
|
27
29
|
loadOrganizationUrlAndLinks(): Promise<void>;
|
|
@@ -30,5 +32,6 @@ export declare class DashButtonComponent {
|
|
|
30
32
|
logout(): void;
|
|
31
33
|
showModal(): void;
|
|
32
34
|
closeModal(): void;
|
|
35
|
+
renderNotificationComponent(): any;
|
|
33
36
|
render(): any;
|
|
34
37
|
}
|
|
@@ -7,14 +7,42 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
export namespace Components {
|
|
9
9
|
interface DashButton {
|
|
10
|
+
/**
|
|
11
|
+
* @default ""
|
|
12
|
+
*/
|
|
10
13
|
"accentColor": string;
|
|
14
|
+
/**
|
|
15
|
+
* @default "check-sso"
|
|
16
|
+
*/
|
|
11
17
|
"authMethod": string;
|
|
18
|
+
/**
|
|
19
|
+
* @default "left"
|
|
20
|
+
*/
|
|
21
|
+
"notificationPosition": "left" | "right";
|
|
22
|
+
/**
|
|
23
|
+
* @default "https://productlicensemanager-zdzw.cloud.zdzw-project.com"
|
|
24
|
+
*/
|
|
12
25
|
"plmUrl": string;
|
|
26
|
+
/**
|
|
27
|
+
* @default ""
|
|
28
|
+
*/
|
|
13
29
|
"portalApiUrl": string;
|
|
30
|
+
/**
|
|
31
|
+
* @default ""
|
|
32
|
+
*/
|
|
14
33
|
"primaryColor": string;
|
|
15
34
|
"redirectUri": string;
|
|
35
|
+
/**
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
16
38
|
"showPostLoginText": boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
17
42
|
"showUnauthorizedModal": boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
18
46
|
"silentCheckSso": boolean;
|
|
19
47
|
}
|
|
20
48
|
}
|
|
@@ -30,26 +58,70 @@ declare global {
|
|
|
30
58
|
}
|
|
31
59
|
}
|
|
32
60
|
declare namespace LocalJSX {
|
|
61
|
+
type OneOf<K extends string, PropT, AttrT = PropT> = { [P in K]: PropT } & { [P in `attr:${K}`]?: never } | { [P in `attr:${K}`]: AttrT } & { [P in K]?: never };
|
|
62
|
+
|
|
33
63
|
interface DashButton {
|
|
64
|
+
/**
|
|
65
|
+
* @default ""
|
|
66
|
+
*/
|
|
34
67
|
"accentColor"?: string;
|
|
68
|
+
/**
|
|
69
|
+
* @default "check-sso"
|
|
70
|
+
*/
|
|
35
71
|
"authMethod"?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @default "left"
|
|
74
|
+
*/
|
|
75
|
+
"notificationPosition"?: "left" | "right";
|
|
76
|
+
/**
|
|
77
|
+
* @default "https://productlicensemanager-zdzw.cloud.zdzw-project.com"
|
|
78
|
+
*/
|
|
36
79
|
"plmUrl"?: string;
|
|
80
|
+
/**
|
|
81
|
+
* @default ""
|
|
82
|
+
*/
|
|
37
83
|
"portalApiUrl"?: string;
|
|
84
|
+
/**
|
|
85
|
+
* @default ""
|
|
86
|
+
*/
|
|
38
87
|
"primaryColor"?: string;
|
|
39
|
-
"redirectUri"
|
|
88
|
+
"redirectUri": string;
|
|
89
|
+
/**
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
40
92
|
"showPostLoginText"?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* @default false
|
|
95
|
+
*/
|
|
41
96
|
"showUnauthorizedModal"?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
42
100
|
"silentCheckSso"?: boolean;
|
|
43
101
|
}
|
|
102
|
+
|
|
103
|
+
interface DashButtonAttributes {
|
|
104
|
+
"showPostLoginText": boolean;
|
|
105
|
+
"silentCheckSso": boolean;
|
|
106
|
+
"redirectUri": string;
|
|
107
|
+
"authMethod": string;
|
|
108
|
+
"portalApiUrl": string;
|
|
109
|
+
"plmUrl": string;
|
|
110
|
+
"showUnauthorizedModal": boolean;
|
|
111
|
+
"primaryColor": string;
|
|
112
|
+
"accentColor": string;
|
|
113
|
+
"notificationPosition": "left" | "right";
|
|
114
|
+
}
|
|
115
|
+
|
|
44
116
|
interface IntrinsicElements {
|
|
45
|
-
"dash-button": DashButton
|
|
117
|
+
"dash-button": Omit<DashButton, keyof DashButtonAttributes> & { [K in keyof DashButton & keyof DashButtonAttributes]?: DashButton[K] } & { [K in keyof DashButton & keyof DashButtonAttributes as `attr:${K}`]?: DashButtonAttributes[K] } & { [K in keyof DashButton & keyof DashButtonAttributes as `prop:${K}`]?: DashButton[K] } & OneOf<"redirectUri", DashButton["redirectUri"], DashButtonAttributes["redirectUri"]>;
|
|
46
118
|
}
|
|
47
119
|
}
|
|
48
120
|
export { LocalJSX as JSX };
|
|
49
121
|
declare module "@stencil/core" {
|
|
50
122
|
export namespace JSX {
|
|
51
123
|
interface IntrinsicElements {
|
|
52
|
-
"dash-button": LocalJSX.
|
|
124
|
+
"dash-button": LocalJSX.IntrinsicElements["dash-button"] & JSXBase.HTMLAttributes<HTMLDashButtonElement>;
|
|
53
125
|
}
|
|
54
126
|
}
|
|
55
127
|
}
|