dash-button-web 0.0.24 → 0.0.25
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-V2Kpy_OQ.js +5 -0
- package/dist/cjs/dash-button_4.cjs.entry.js +11790 -0
- package/dist/cjs/index-CyJNVLIY.js +1623 -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 +13 -3
- package/dist/collection/components/my-component/dash-button.css +58 -0
- package/dist/collection/components/my-component/dash-button.js +213 -88
- package/dist/collection/index.js +0 -1
- package/dist/collection/services/config.js +3 -5
- package/dist/collection/services/menu.js +4 -5
- package/dist/components/dash-button.js +1 -4310
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -3
- package/dist/components/loading-component.js +1 -0
- package/dist/components/loading-component2.js +1 -0
- package/dist/components/notification-component.js +1 -0
- package/dist/components/notification-component2.js +1 -0
- package/dist/components/notification-table.js +1 -0
- package/dist/components/notification-table2.js +2 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/dash-button_4.entry.js +11785 -0
- package/dist/esm/index-NLvZO6-E.js +1615 -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 +11 -1
- package/dist/types/components.d.ts +83 -2
- package/dist/types/services/menu.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-DQuL1Twl.js +1 -0
- package/dist/web-compnont/p-NLvZO6-E.js +3 -0
- package/dist/web-compnont/p-ce35027b.entry.js +2 -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/dist/cjs/dash-button.cjs.entry.js +0 -4274
- package/dist/cjs/dash-button.cjs.entry.js.map +0 -1
- package/dist/cjs/index-bc7ebbee.js +0 -1817
- package/dist/cjs/index-bc7ebbee.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 +0 -4270
- package/dist/esm/dash-button.entry.js.map +0 -1
- package/dist/esm/index-51aa24d3.js +0 -1790
- package/dist/esm/index-51aa24d3.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-06623215.js +0 -3
- package/dist/web-compnont/p-06623215.js.map +0 -1
- package/dist/web-compnont/p-55f91c48.entry.js +0 -10
- package/dist/web-compnont/p-55f91c48.entry.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-NLvZO6-E.js';
|
|
2
|
+
export { s as setNonce } from './index-NLvZO6-E.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-DQuL1Twl.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_4",[[513,"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"],"showNotification":[4,"show-notification"],"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],"collapsedModuleSection":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"loadingNew":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"notificationType":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32],"timeoutId":[32],"cancelRequest":[32],"cancelCountRequest":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], 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-NLvZO6-E.js';
|
|
2
|
+
export { s as setNonce } from './index-NLvZO6-E.js';
|
|
3
|
+
import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
3
4
|
|
|
4
5
|
/*
|
|
5
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.45.2 | 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_4",[[513,"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"],"showNotification":[4,"show-notification"],"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],"collapsedModuleSection":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"loadingNew":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"notificationType":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32],"timeoutId":[32],"cancelRequest":[32],"cancelCountRequest":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
|
|
18
21
|
});
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=web-compnont.js.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AppConfig } from '../../services/config';
|
|
2
2
|
import { MenuLink } from '../../services/menu';
|
|
3
|
+
import 'ice-notification-component';
|
|
3
4
|
interface ModuleLinkItem {
|
|
4
5
|
name: string;
|
|
5
6
|
url?: string;
|
|
@@ -28,6 +29,8 @@ export declare class DashButtonComponent {
|
|
|
28
29
|
localMenuLinks: MenuLink[];
|
|
29
30
|
organizationUrl: any;
|
|
30
31
|
isRestricted: boolean;
|
|
32
|
+
showNotification: boolean;
|
|
33
|
+
notificationPosition: 'left' | 'right';
|
|
31
34
|
collapsedModuleSection: 'global' | 'local' | null;
|
|
32
35
|
private gridLocalListEl?;
|
|
33
36
|
private listLocalScrollEl?;
|
|
@@ -35,7 +38,10 @@ export declare class DashButtonComponent {
|
|
|
35
38
|
toggleLocalModules: () => void;
|
|
36
39
|
handleDropdownMouseEnter: () => void;
|
|
37
40
|
componentDidRender(): void;
|
|
41
|
+
componentDidLoad(): void;
|
|
38
42
|
private capToRowPeek;
|
|
43
|
+
disconnectedCallback(): void;
|
|
44
|
+
handleNotificationLinkClick: (event: MouseEvent) => void;
|
|
39
45
|
componentWillLoad(): Promise<void>;
|
|
40
46
|
initKeycloak(): Promise<void>;
|
|
41
47
|
loadOrganizationUrlAndLinks(): Promise<void>;
|
|
@@ -43,7 +49,11 @@ export declare class DashButtonComponent {
|
|
|
43
49
|
login(): void;
|
|
44
50
|
logout(): void;
|
|
45
51
|
get moduleLinks(): ModuleLinkItem[];
|
|
46
|
-
|
|
52
|
+
private isContainerizationModule;
|
|
53
|
+
get containerizationModule(): ModuleLinkItem | undefined;
|
|
54
|
+
get visibleModuleLinks(): ModuleLinkItem[];
|
|
55
|
+
renderSectionLabel(icon: string, label: string, count: number, collapsed: boolean, onToggle: () => void, shortcut?: ModuleLinkItem): any;
|
|
56
|
+
renderNotificationComponent(): any;
|
|
47
57
|
render(): any;
|
|
48
58
|
}
|
|
49
59
|
export {};
|
|
@@ -7,14 +7,46 @@
|
|
|
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 true
|
|
37
|
+
*/
|
|
38
|
+
"showNotification": boolean;
|
|
39
|
+
/**
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
16
42
|
"showPostLoginText": boolean;
|
|
43
|
+
/**
|
|
44
|
+
* @default false
|
|
45
|
+
*/
|
|
17
46
|
"showUnauthorizedModal": boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
18
50
|
"silentCheckSso": boolean;
|
|
19
51
|
}
|
|
20
52
|
}
|
|
@@ -30,26 +62,75 @@ declare global {
|
|
|
30
62
|
}
|
|
31
63
|
}
|
|
32
64
|
declare namespace LocalJSX {
|
|
65
|
+
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 };
|
|
66
|
+
|
|
33
67
|
interface DashButton {
|
|
68
|
+
/**
|
|
69
|
+
* @default ""
|
|
70
|
+
*/
|
|
34
71
|
"accentColor"?: string;
|
|
72
|
+
/**
|
|
73
|
+
* @default "check-sso"
|
|
74
|
+
*/
|
|
35
75
|
"authMethod"?: string;
|
|
76
|
+
/**
|
|
77
|
+
* @default 'left'
|
|
78
|
+
*/
|
|
79
|
+
"notificationPosition"?: 'left' | 'right';
|
|
80
|
+
/**
|
|
81
|
+
* @default "https://productlicensemanager-zdzw.cloud.zdzw-project.com"
|
|
82
|
+
*/
|
|
36
83
|
"plmUrl"?: string;
|
|
84
|
+
/**
|
|
85
|
+
* @default ""
|
|
86
|
+
*/
|
|
37
87
|
"portalApiUrl"?: string;
|
|
88
|
+
/**
|
|
89
|
+
* @default ""
|
|
90
|
+
*/
|
|
38
91
|
"primaryColor"?: string;
|
|
39
92
|
"redirectUri": string;
|
|
93
|
+
/**
|
|
94
|
+
* @default true
|
|
95
|
+
*/
|
|
96
|
+
"showNotification"?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* @default false
|
|
99
|
+
*/
|
|
40
100
|
"showPostLoginText"?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
41
104
|
"showUnauthorizedModal"?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
42
108
|
"silentCheckSso"?: boolean;
|
|
43
109
|
}
|
|
110
|
+
|
|
111
|
+
interface DashButtonAttributes {
|
|
112
|
+
"showPostLoginText": boolean;
|
|
113
|
+
"silentCheckSso": boolean;
|
|
114
|
+
"redirectUri": string;
|
|
115
|
+
"authMethod": string;
|
|
116
|
+
"portalApiUrl": string;
|
|
117
|
+
"plmUrl": string;
|
|
118
|
+
"showUnauthorizedModal": boolean;
|
|
119
|
+
"primaryColor": string;
|
|
120
|
+
"accentColor": string;
|
|
121
|
+
"showNotification": boolean;
|
|
122
|
+
"notificationPosition": 'left' | 'right';
|
|
123
|
+
}
|
|
124
|
+
|
|
44
125
|
interface IntrinsicElements {
|
|
45
|
-
"dash-button": DashButton
|
|
126
|
+
"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
127
|
}
|
|
47
128
|
}
|
|
48
129
|
export { LocalJSX as JSX };
|
|
49
130
|
declare module "@stencil/core" {
|
|
50
131
|
export namespace JSX {
|
|
51
132
|
interface IntrinsicElements {
|
|
52
|
-
"dash-button": LocalJSX.
|
|
133
|
+
"dash-button": LocalJSX.IntrinsicElements["dash-button"] & JSXBase.HTMLAttributes<HTMLDashButtonElement>;
|
|
53
134
|
}
|
|
54
135
|
}
|
|
55
136
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export interface InstalledChartMetadata {
|
|
2
2
|
category?: string;
|
|
3
3
|
frontendUrlPrefix?: string;
|
|
4
|
+
icon?: string;
|
|
4
5
|
}
|
|
5
6
|
export interface InstalledChart {
|
|
6
7
|
id: number;
|
|
@@ -18,6 +19,7 @@ export interface MenuLink {
|
|
|
18
19
|
name: string;
|
|
19
20
|
url: string;
|
|
20
21
|
category?: string;
|
|
22
|
+
icon?: string;
|
|
21
23
|
}
|
|
22
24
|
declare class MenuService {
|
|
23
25
|
getMenuConfig(url: any): Promise<PaginatedInstalledChartsResponse>;
|