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
@@ -1,4 +1,2 @@
1
1
  'use strict';
2
2
 
3
-
4
- //# sourceMappingURL=index.cjs.js.map
@@ -1,15 +1,13 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
3
+ var index = require('./index-CyJNVLIY.js');
4
+ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
4
5
 
5
- const index = require('./index-87d4993d.js');
6
-
7
- const defineCustomElements = (win, options) => {
6
+ const defineCustomElements = async (win, options) => {
8
7
  if (typeof window === 'undefined') return undefined;
9
- return index.bootstrapLazy([["dash-button.cjs",[[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);
8
+ await appGlobals.globalScripts();
9
+ return index.bootstrapLazy([["dash-button_4.cjs",[[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);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
13
13
  exports.defineCustomElements = defineCustomElements;
14
-
15
- //# sourceMappingURL=loader.cjs.js.map
@@ -1,25 +1,25 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-87d4993d.js');
3
+ var index = require('./index-CyJNVLIY.js');
4
+ var appGlobals = require('./app-globals-V2Kpy_OQ.js');
6
5
 
6
+ var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.45.2 | MIT Licensed | https://stenciljs.com
9
9
  */
10
- const patchBrowser = () => {
11
- const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('web-compnont.cjs.js', document.baseURI).href));
12
- const opts = {};
13
- if (importMeta !== '') {
14
- opts.resourcesUrl = new URL('.', importMeta).href;
15
- }
16
- return index.promiseResolve(opts);
10
+
11
+ var patchBrowser = () => {
12
+ const importMeta = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('web-compnont.cjs.js', document.baseURI).href));
13
+ const opts = {};
14
+ if (importMeta !== "") {
15
+ opts.resourcesUrl = new URL(".", importMeta).href;
16
+ }
17
+ return index.promiseResolve(opts);
17
18
  };
18
19
 
19
- patchBrowser().then(options => {
20
- return index.bootstrapLazy([["dash-button.cjs",[[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);
20
+ patchBrowser().then(async (options) => {
21
+ await appGlobals.globalScripts();
22
+ return index.bootstrapLazy([["dash-button_4.cjs",[[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);
21
23
  });
22
24
 
23
25
  exports.setNonce = index.setNonce;
24
-
25
- //# sourceMappingURL=web-compnont.cjs.js.map
@@ -2,11 +2,21 @@
2
2
  "entries": [
3
3
  "components/my-component/dash-button.js"
4
4
  ],
5
+ "mixins": [],
5
6
  "compiler": {
6
7
  "name": "@stencil/core",
7
- "version": "4.12.0",
8
- "typescriptVersion": "5.3.3"
8
+ "version": "4.45.2",
9
+ "typescriptVersion": "5.8.3"
9
10
  },
10
- "collections": [],
11
+ "collections": [
12
+ {
13
+ "name": "ice-notification-component",
14
+ "tags": [
15
+ "loading-component",
16
+ "notification-component",
17
+ "notification-table"
18
+ ]
19
+ }
20
+ ],
11
21
  "bundles": []
12
22
  }
@@ -568,3 +568,285 @@ hr.solid {
568
568
  transform: translateY(0);
569
569
  }
570
570
  }
571
+
572
+
573
+ /*
574
+ Styles for the new "Applications" / "Modules" sections and the
575
+ icon-only Portal + Logout buttons now living in the profile header. */
576
+
577
+ /* Add these rules to your existing .dropdown-user-profile block
578
+ (keep whatever padding/border-bottom it already has) so the name
579
+ and the icon buttons sit on one row. */
580
+ .dropdown-user-profile {
581
+ display: flex;
582
+ align-items: center;
583
+ justify-content: space-between;
584
+ gap: 12px;
585
+ }
586
+
587
+ .user-profile-info {
588
+ min-width: 0;
589
+ overflow: hidden;
590
+ }
591
+
592
+ .user-profile-info .username,
593
+ .user-profile-info .first-last-name {
594
+ white-space: nowrap;
595
+ overflow: hidden;
596
+ text-overflow: ellipsis;
597
+ }
598
+
599
+ .user-profile-actions {
600
+ display: flex;
601
+ align-items: center;
602
+ gap: 8px;
603
+ flex-shrink: 0;
604
+ }
605
+
606
+ /* Section header row: icon chip + title + item-count badge on the left,
607
+ a circular chevron toggle on the right. Clickable to collapse/expand
608
+ Global Modules and Local Modules independently. Taller and more
609
+ deliberately styled than a plain label, with its own hover state and
610
+ a bottom divider so it reads as a distinct toolbar, not just text. */
611
+ .menu-section-header {
612
+ display: flex;
613
+ align-items: center;
614
+ justify-content: space-between;
615
+ gap: 10px;
616
+ padding: 12px 16px;
617
+ cursor: pointer;
618
+ user-select: none;
619
+ }
620
+
621
+ /* Same hover treatment as the regular dropdown items below it, so the
622
+ header reads as part of the same list rather than a separate card. */
623
+ .menu-section-header:hover {
624
+ background-color: #f1f1f1;
625
+ }
626
+
627
+ .menu-section-header-left {
628
+ display: flex;
629
+ align-items: center;
630
+ gap: 8px;
631
+ min-width: 0;
632
+ }
633
+
634
+ .menu-section-icon {
635
+ display: inline-flex;
636
+ align-items: center;
637
+ justify-content: center;
638
+ color: #128f8b;
639
+ font-size: 12px;
640
+ flex-shrink: 0;
641
+ }
642
+
643
+ .menu-section-title {
644
+ font-size: 11px;
645
+ font-weight: 600;
646
+ letter-spacing: 0.06em;
647
+ text-transform: uppercase;
648
+ color: #9aa0a6;
649
+ white-space: nowrap;
650
+ overflow: hidden;
651
+ text-overflow: ellipsis;
652
+ }
653
+
654
+ .menu-section-count {
655
+ font-size: 10px;
656
+ font-weight: 600;
657
+ color: #9aa0a6;
658
+ }
659
+
660
+ .menu-section-chevron-btn {
661
+ display: inline-flex;
662
+ align-items: center;
663
+ justify-content: center;
664
+ color: #9aa0a6;
665
+ font-size: 10px;
666
+ flex-shrink: 0;
667
+ transition: transform 0.2s ease;
668
+ }
669
+
670
+ .menu-section-chevron-btn-collapsed {
671
+ transform: rotate(-90deg);
672
+ }
673
+
674
+ /* Keep the Global Modules list-view section from growing unbounded.
675
+ .grid-view-menu already has its own max-height/overflow rule above
676
+ (230px) — not repeated here, since this would just override it with a
677
+ different value further down the cascade. */
678
+ .dropdown-content-link {
679
+ max-height: 230px;
680
+ overflow-y: auto;
681
+ position: relative;
682
+ }
683
+
684
+ /* Local Modules list-view items get their own scroll box, separate from
685
+ the shared Global Modules container above. Its max-height is set
686
+ inline by the component (capToRowPeek in dash-button.tsx) to 2.5x the
687
+ first item's real rendered height — a plain CSS rule can't know that
688
+ height in advance, and inline styles win over this max-height anyway,
689
+ so this is just the fallback + what makes it scroll. */
690
+ .local-modules-scroll {
691
+ max-height: 260px;
692
+ overflow-y: auto;
693
+ }
694
+
695
+ /* Local Modules list-view items reuse id="applications-btn" directly
696
+ (same as Global items), so they inherit your existing row styling
697
+ as-is — no separate class/rule needed here. This is only the
698
+ disabled-state dimming, applied as an extra class on top of that id. */
699
+ .applications-btn-disabled,
700
+ .grid-view-link-disabled {
701
+ opacity: 0.45;
702
+ cursor: not-allowed;
703
+ pointer-events: none;
704
+ }
705
+
706
+ /* Icon buttons for Portal + Logout, in the profile header. Sized up from
707
+ 28px to 38px so they read clearly at a glance, not just on hover.
708
+ Tinted per action so they stand out against the plain header text. */
709
+ .footer-icon-btn {
710
+ display: inline-flex;
711
+ align-items: center;
712
+ justify-content: center;
713
+ width: 38px;
714
+ height: 38px;
715
+ border-radius: 50%;
716
+ border: none;
717
+ font-size: 17px;
718
+ cursor: pointer;
719
+ text-decoration: none;
720
+ transition: background-color 0.15s ease, transform 0.15s ease;
721
+ }
722
+
723
+ .footer-icon-btn:active {
724
+ transform: scale(0.92);
725
+ }
726
+
727
+ .footer-icon-btn-portal {
728
+ background: rgba(18, 143, 139, 0.12);
729
+ color: #128f8b;
730
+ }
731
+
732
+ .footer-icon-btn-portal:hover {
733
+ background: rgba(18, 143, 139, 0.22);
734
+ }
735
+
736
+ .footer-icon-btn-logout {
737
+ background: rgba(220, 38, 38, 0.12);
738
+ color: #dc2626;
739
+ }
740
+
741
+ .footer-icon-btn-logout:hover {
742
+ background: rgba(220, 38, 38, 0.22);
743
+ }
744
+
745
+ /* Custom tooltip (via data-tooltip) instead of the native title tooltip,
746
+ shown below the icons since they sit at the top of the dropdown. */
747
+ .footer-icon-btn[data-tooltip] {
748
+ position: relative;
749
+ }
750
+
751
+ .footer-icon-btn[data-tooltip]::after {
752
+ content: attr(data-tooltip);
753
+ position: absolute;
754
+ top: 130%;
755
+ left: 50%;
756
+ transform: translateX(-50%) translateY(-4px);
757
+ background: rgba(0, 0, 0, 0.85);
758
+ color: #fff;
759
+ padding: 4px 8px;
760
+ border-radius: 4px;
761
+ font-size: 11px;
762
+ line-height: 1.2;
763
+ white-space: nowrap;
764
+ opacity: 0;
765
+ visibility: hidden;
766
+ pointer-events: none;
767
+ transition: opacity 0.15s ease, transform 0.15s ease;
768
+ z-index: 20;
769
+ }
770
+
771
+ .footer-icon-btn[data-tooltip]::before {
772
+ content: "";
773
+ position: absolute;
774
+ top: 115%;
775
+ left: 50%;
776
+ transform: translateX(-50%);
777
+ border: 4px solid transparent;
778
+ border-bottom-color: rgba(0, 0, 0, 0.85);
779
+ opacity: 0;
780
+ visibility: hidden;
781
+ pointer-events: none;
782
+ transition: opacity 0.15s ease;
783
+ z-index: 20;
784
+ }
785
+
786
+ .footer-icon-btn[data-tooltip]:hover::after,
787
+ .footer-icon-btn[data-tooltip]:hover::before,
788
+ .footer-icon-btn[data-tooltip]:focus-visible::after,
789
+ .footer-icon-btn[data-tooltip]:focus-visible::before {
790
+ opacity: 1;
791
+ visibility: visible;
792
+ transform: translateX(-50%) translateY(0);
793
+ }
794
+
795
+
796
+
797
+ /* */
798
+ .menu-section-header-actions {
799
+ display: flex;
800
+ align-items: center;
801
+ gap: 8px;
802
+ margin-left: auto;
803
+ flex-shrink: 0;
804
+ }
805
+
806
+ .menu-section-header-actions > a.local-module-shortcut {
807
+ display: inline-flex;
808
+ align-items: center;
809
+ justify-content: center;
810
+ box-sizing: border-box;
811
+ width: 36px;
812
+ min-width: 36px;
813
+ height: 36px;
814
+ padding: 0;
815
+ margin: 0;
816
+ border: 0;
817
+ border-radius: 50%;
818
+ background: #e0eeee;
819
+ color: #139694;
820
+ text-decoration: none;
821
+ flex-shrink: 0;
822
+ cursor: pointer;
823
+ }
824
+
825
+ .menu-section-header-actions .local-module-shortcut i {
826
+ display: inline-block;
827
+ font-size: 20px;
828
+ line-height: 1;
829
+ pointer-events: none;
830
+ }
831
+
832
+ .menu-section-header-actions > a.local-module-shortcut:hover {
833
+ background: #cce5e5;
834
+ }
835
+
836
+ .menu-section-header-actions > a.local-module-shortcut:focus-visible {
837
+ outline: 2px solid currentColor;
838
+ outline-offset: 2px;
839
+ }
840
+
841
+ .menu-section-header-actions > a.local-module-shortcut[aria-disabled="true"] {
842
+ opacity: 0.45;
843
+ cursor: not-allowed;
844
+ }
845
+
846
+ /* Local modules icon image */
847
+ .grid-view-link-image {
848
+ width: 32px;
849
+ height: 32px;
850
+ object-fit: contain;
851
+ display: block;
852
+ }