dash-button-web 0.0.23 → 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.
Files changed (79) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  2. package/dist/cjs/dash-button_4.cjs.entry.js +11790 -0
  3. package/dist/cjs/index-CyJNVLIY.js +1623 -0
  4. package/dist/cjs/index.cjs.js +0 -2
  5. package/dist/cjs/loader.cjs.js +5 -7
  6. package/dist/cjs/web-compnont.cjs.js +15 -15
  7. package/dist/collection/collection-manifest.json +13 -3
  8. package/dist/collection/components/my-component/dash-button.css +282 -0
  9. package/dist/collection/components/my-component/dash-button.js +247 -78
  10. package/dist/collection/index.js +0 -1
  11. package/dist/collection/services/config.js +3 -5
  12. package/dist/collection/services/menu.js +4 -5
  13. package/dist/components/dash-button.js +1 -4266
  14. package/dist/components/index.d.ts +2 -0
  15. package/dist/components/index.js +1 -3
  16. package/dist/components/loading-component.js +1 -0
  17. package/dist/components/loading-component2.js +1 -0
  18. package/dist/components/notification-component.js +1 -0
  19. package/dist/components/notification-component2.js +1 -0
  20. package/dist/components/notification-table.js +1 -0
  21. package/dist/components/notification-table2.js +2 -0
  22. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  23. package/dist/esm/dash-button_4.entry.js +11785 -0
  24. package/dist/esm/index-NLvZO6-E.js +1615 -0
  25. package/dist/esm/index.js +0 -2
  26. package/dist/esm/loader.js +6 -6
  27. package/dist/esm/web-compnont.js +15 -14
  28. package/dist/types/components/my-component/dash-button.d.ts +27 -2
  29. package/dist/types/components.d.ts +84 -3
  30. package/dist/types/services/menu.d.ts +2 -0
  31. package/dist/types/stencil-public-runtime.d.ts +268 -70
  32. package/dist/web-compnont/index.esm.js +0 -2
  33. package/dist/web-compnont/p-DQuL1Twl.js +1 -0
  34. package/dist/web-compnont/p-NLvZO6-E.js +3 -0
  35. package/dist/web-compnont/p-ce35027b.entry.js +2 -0
  36. package/dist/web-compnont/web-compnont.esm.js +1 -2
  37. package/loader/cdn.js +1 -3
  38. package/loader/index.cjs.js +1 -3
  39. package/loader/index.d.ts +4 -1
  40. package/loader/index.es2017.js +1 -3
  41. package/loader/index.js +1 -3
  42. package/package.json +3 -2
  43. package/readme.md +18 -0
  44. package/dist/cjs/dash-button.cjs.entry.js +0 -4231
  45. package/dist/cjs/dash-button.cjs.entry.js.map +0 -1
  46. package/dist/cjs/index-87d4993d.js +0 -1793
  47. package/dist/cjs/index-87d4993d.js.map +0 -1
  48. package/dist/cjs/index.cjs.js.map +0 -1
  49. package/dist/cjs/loader.cjs.js.map +0 -1
  50. package/dist/cjs/web-compnont.cjs.js.map +0 -1
  51. package/dist/collection/components/my-component/dash-button.e2e.js +0 -26
  52. package/dist/collection/components/my-component/dash-button.e2e.js.map +0 -1
  53. package/dist/collection/components/my-component/dash-button.js.map +0 -1
  54. package/dist/collection/components/my-component/dash-button.spec.js +0 -35
  55. package/dist/collection/components/my-component/dash-button.spec.js.map +0 -1
  56. package/dist/collection/index.js.map +0 -1
  57. package/dist/collection/services/config.js.map +0 -1
  58. package/dist/collection/services/menu.js.map +0 -1
  59. package/dist/components/dash-button.js.map +0 -1
  60. package/dist/components/index.js.map +0 -1
  61. package/dist/esm/dash-button.entry.js +0 -4227
  62. package/dist/esm/dash-button.entry.js.map +0 -1
  63. package/dist/esm/index-e3df5eaf.js +0 -1766
  64. package/dist/esm/index-e3df5eaf.js.map +0 -1
  65. package/dist/esm/index.js.map +0 -1
  66. package/dist/esm/loader.js.map +0 -1
  67. package/dist/esm/polyfills/core-js.js +0 -11
  68. package/dist/esm/polyfills/dom.js +0 -79
  69. package/dist/esm/polyfills/es5-html-element.js +0 -1
  70. package/dist/esm/polyfills/index.js +0 -34
  71. package/dist/esm/polyfills/system.js +0 -6
  72. package/dist/esm/web-compnont.js.map +0 -1
  73. package/dist/web-compnont/index.esm.js.map +0 -1
  74. package/dist/web-compnont/p-2e8505f3.entry.js +0 -10
  75. package/dist/web-compnont/p-2e8505f3.entry.js.map +0 -1
  76. package/dist/web-compnont/p-c1ec12fe.js +0 -3
  77. package/dist/web-compnont/p-c1ec12fe.js.map +0 -1
  78. package/dist/web-compnont/web-compnont.esm.js.map +0 -1
  79. package/loader/package.json +0 -11
package/dist/esm/index.js CHANGED
@@ -1,3 +1 @@
1
1
 
2
-
3
- //# sourceMappingURL=index.js.map
@@ -1,11 +1,11 @@
1
- import { b as bootstrapLazy } from './index-e3df5eaf.js';
2
- export { s as setNonce } from './index-e3df5eaf.js';
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
- 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"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}]]]], options);
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
@@ -1,20 +1,21 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-e3df5eaf.js';
2
- export { s as setNonce } from './index-e3df5eaf.js';
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.12.0 | MIT Licensed | https://stenciljs.com
6
+ Stencil Client Patch Browser v4.45.2 | MIT Licensed | https://stenciljs.com
6
7
  */
7
- const patchBrowser = () => {
8
- const importMeta = import.meta.url;
9
- const opts = {};
10
- if (importMeta !== '') {
11
- opts.resourcesUrl = new URL('.', importMeta).href;
12
- }
13
- return promiseResolve(opts);
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
- 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"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}]]]], options);
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,12 @@
1
1
  import { AppConfig } from '../../services/config';
2
2
  import { MenuLink } from '../../services/menu';
3
+ import 'ice-notification-component';
4
+ interface ModuleLinkItem {
5
+ name: string;
6
+ url?: string;
7
+ icon?: string;
8
+ disabled: boolean;
9
+ }
3
10
  export declare class DashButtonComponent {
4
11
  el: any;
5
12
  showPostLoginText: boolean;
@@ -22,13 +29,31 @@ export declare class DashButtonComponent {
22
29
  localMenuLinks: MenuLink[];
23
30
  organizationUrl: any;
24
31
  isRestricted: boolean;
32
+ showNotification: boolean;
33
+ notificationPosition: 'left' | 'right';
34
+ collapsedModuleSection: 'global' | 'local' | null;
35
+ private gridLocalListEl?;
36
+ private listLocalScrollEl?;
37
+ toggleGlobalModules: () => void;
38
+ toggleLocalModules: () => void;
39
+ handleDropdownMouseEnter: () => void;
40
+ componentDidRender(): void;
41
+ componentDidLoad(): void;
42
+ private capToRowPeek;
43
+ disconnectedCallback(): void;
44
+ handleNotificationLinkClick: (event: MouseEvent) => void;
25
45
  componentWillLoad(): Promise<void>;
26
46
  initKeycloak(): Promise<void>;
27
47
  loadOrganizationUrlAndLinks(): Promise<void>;
28
48
  validateAppAccessByUrl(): void;
29
49
  login(): void;
30
50
  logout(): void;
31
- showModal(): void;
32
- closeModal(): void;
51
+ get moduleLinks(): ModuleLinkItem[];
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;
33
57
  render(): any;
34
58
  }
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
- "redirectUri"?: string;
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.DashButton & JSXBase.HTMLAttributes<HTMLDashButtonElement>;
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>;