dash-button-web 0.0.23-beta.6 → 0.0.24

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 (77) hide show
  1. package/dist/cjs/dash-button.cjs.entry.js +4274 -0
  2. package/dist/cjs/dash-button.cjs.entry.js.map +1 -0
  3. package/dist/cjs/index-bc7ebbee.js +1817 -0
  4. package/dist/cjs/index-bc7ebbee.js.map +1 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/index.cjs.js.map +1 -0
  7. package/dist/cjs/loader.cjs.js +7 -5
  8. package/dist/cjs/loader.cjs.js.map +1 -0
  9. package/dist/cjs/web-compnont.cjs.js +15 -15
  10. package/dist/cjs/web-compnont.cjs.js.map +1 -0
  11. package/dist/collection/collection-manifest.json +3 -13
  12. package/dist/collection/components/my-component/dash-button.css +224 -0
  13. package/dist/collection/components/my-component/dash-button.e2e.js +26 -0
  14. package/dist/collection/components/my-component/dash-button.e2e.js.map +1 -0
  15. package/dist/collection/components/my-component/dash-button.js +117 -162
  16. package/dist/collection/components/my-component/dash-button.js.map +1 -0
  17. package/dist/collection/components/my-component/dash-button.spec.js +35 -0
  18. package/dist/collection/components/my-component/dash-button.spec.js.map +1 -0
  19. package/dist/collection/index.js +1 -0
  20. package/dist/collection/index.js.map +1 -0
  21. package/dist/collection/services/config.js +5 -3
  22. package/dist/collection/services/config.js.map +1 -0
  23. package/dist/collection/services/menu.js +5 -3
  24. package/dist/collection/services/menu.js.map +1 -0
  25. package/dist/components/dash-button.js +4310 -1
  26. package/dist/components/dash-button.js.map +1 -0
  27. package/dist/components/index.d.ts +0 -2
  28. package/dist/components/index.js +3 -1
  29. package/dist/components/index.js.map +1 -0
  30. package/dist/esm/dash-button.entry.js +4270 -0
  31. package/dist/esm/dash-button.entry.js.map +1 -0
  32. package/dist/esm/index-51aa24d3.js +1790 -0
  33. package/dist/esm/index-51aa24d3.js.map +1 -0
  34. package/dist/esm/index.js +2 -0
  35. package/dist/esm/index.js.map +1 -0
  36. package/dist/esm/loader.js +6 -6
  37. package/dist/esm/loader.js.map +1 -0
  38. package/dist/esm/polyfills/core-js.js +11 -0
  39. package/dist/esm/polyfills/dom.js +79 -0
  40. package/dist/esm/polyfills/es5-html-element.js +1 -0
  41. package/dist/esm/polyfills/index.js +34 -0
  42. package/dist/esm/polyfills/system.js +6 -0
  43. package/dist/esm/web-compnont.js +14 -15
  44. package/dist/esm/web-compnont.js.map +1 -0
  45. package/dist/types/components/my-component/dash-button.d.ts +17 -9
  46. package/dist/types/components.d.ts +2 -83
  47. package/dist/types/stencil-public-runtime.d.ts +70 -268
  48. package/dist/web-compnont/index.esm.js +2 -0
  49. package/dist/web-compnont/index.esm.js.map +1 -0
  50. package/dist/web-compnont/p-06623215.js +3 -0
  51. package/dist/web-compnont/p-06623215.js.map +1 -0
  52. package/dist/web-compnont/p-55f91c48.entry.js +10 -0
  53. package/dist/web-compnont/p-55f91c48.entry.js.map +1 -0
  54. package/dist/web-compnont/web-compnont.esm.js +2 -1
  55. package/dist/web-compnont/web-compnont.esm.js.map +1 -0
  56. package/loader/cdn.js +3 -1
  57. package/loader/index.cjs.js +3 -1
  58. package/loader/index.d.ts +1 -4
  59. package/loader/index.es2017.js +3 -1
  60. package/loader/index.js +3 -1
  61. package/loader/package.json +11 -0
  62. package/package.json +2 -3
  63. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  64. package/dist/cjs/dash-button_4.cjs.entry.js +0 -10867
  65. package/dist/cjs/index-DcvBej9f.js +0 -1625
  66. package/dist/components/loading-component.js +0 -1
  67. package/dist/components/loading-component2.js +0 -1
  68. package/dist/components/notification-component.js +0 -1
  69. package/dist/components/notification-component2.js +0 -1
  70. package/dist/components/notification-table.js +0 -1
  71. package/dist/components/notification-table2.js +0 -2
  72. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  73. package/dist/esm/dash-button_4.entry.js +0 -10862
  74. package/dist/esm/index-p0GxQx6x.js +0 -1617
  75. package/dist/web-compnont/p-99f4c836.entry.js +0 -3
  76. package/dist/web-compnont/p-DQuL1Twl.js +0 -1
  77. package/dist/web-compnont/p-p0GxQx6x.js +0 -3
@@ -1,2 +1,4 @@
1
1
  'use strict';
2
2
 
3
+
4
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"file":"index.cjs.js","mappings":";;","names":[],"sources":[],"sourcesContent":[],"version":3}
@@ -1,13 +1,15 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DcvBej9f.js');
4
- var appGlobals = require('./app-globals-V2Kpy_OQ.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
5
4
 
6
- const defineCustomElements = async (win, options) => {
5
+ const index = require('./index-bc7ebbee.js');
6
+
7
+ const defineCustomElements = (win, options) => {
7
8
  if (typeof window === 'undefined') return undefined;
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]}],[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],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
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],"collapsedModuleSection":[32]}]]]], options);
10
10
  };
11
11
 
12
12
  exports.setNonce = index.setNonce;
13
13
  exports.defineCustomElements = defineCustomElements;
14
+
15
+ //# sourceMappingURL=loader.cjs.js.map
@@ -0,0 +1 @@
1
+ {"file":"loader.cjs.js","mappings":";;;;;;AAGY,MAAC,oBAAoB,GAAG,CAAC,GAAG,EAAE,OAAO,KAAK;AACtD,EAAE,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,OAAO,SAAS,CAAC;AAEtD,EAAE,OAAOA,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D;;;;;","names":["bootstrapLazy"],"sources":["@lazy-external-entrypoint?app-data=conditional"],"sourcesContent":["export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\nexport const defineCustomElements = (win, options) => {\n if (typeof window === 'undefined') return undefined;\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n};\n"],"version":3}
@@ -1,25 +1,25 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DcvBej9f.js');
4
- var appGlobals = require('./app-globals-V2Kpy_OQ.js');
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-bc7ebbee.js');
5
6
 
6
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
7
  /*
8
- Stencil Client Patch Browser v4.45.0 | MIT Licensed | https://stenciljs.com
8
+ Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com
9
9
  */
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);
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);
18
17
  };
19
18
 
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]}],[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],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
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],"collapsedModuleSection":[32]}]]]], options);
23
21
  });
24
22
 
25
23
  exports.setNonce = index.setNonce;
24
+
25
+ //# sourceMappingURL=web-compnont.cjs.js.map
@@ -0,0 +1 @@
1
+ {"file":"web-compnont.cjs.js","mappings":";;;;;;AAAA;AACA;AACA;AAGA,MAAM,YAAY,GAAG,MAAM;AAa3B,IAAI,MAAM,UAAU,GAAG,8MAAe,CAAC;AACvC,IAAI,MAAM,IAAI,GAAiE,EAAE,CAAC;AAClF,IAAI,IAAI,UAAU,KAAK,EAAE,EAAE;AAC3B,QAAQ,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AAC1D,KAAK;AACL,IAAI,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;;ACpBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,IAAI;AAE/B,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","bootstrapLazy"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.12.0 | MIT Licensed | https://stenciljs.com\n */\nimport { BUILD, NAMESPACE } from '@stencil/core/internal/app-data';\nimport { consoleDevInfo, doc, promiseResolve, H } from '@stencil/core';\nconst patchBrowser = () => {\n // NOTE!! This fn cannot use async/await!\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo('Running in development mode.');\n }\n if (BUILD.cloneNodeFix) {\n // opted-in to polyfill cloneNode() for slot polyfilled components\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts\n ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\\/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) ||\n s.getAttribute('data-stencil-namespace') === NAMESPACE)\n : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {};\n if (importMeta !== '') {\n opts.resourcesUrl = new URL('.', importMeta).href;\n }\n return promiseResolve(opts);\n};\nconst patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function (deep) {\n if (this.nodeName === 'TEMPLATE') {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n // Node.ATTRIBUTE_NODE === 2, and checking because IE11\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport { patchBrowser };\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(options => {\n globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
@@ -2,21 +2,11 @@
2
2
  "entries": [
3
3
  "components/my-component/dash-button.js"
4
4
  ],
5
- "mixins": [],
6
5
  "compiler": {
7
6
  "name": "@stencil/core",
8
- "version": "4.45.0",
9
- "typescriptVersion": "5.8.3"
7
+ "version": "4.12.0",
8
+ "typescriptVersion": "5.3.3"
10
9
  },
11
- "collections": [
12
- {
13
- "name": "ice-notification-component",
14
- "tags": [
15
- "loading-component",
16
- "notification-component",
17
- "notification-table"
18
- ]
19
- }
20
- ],
10
+ "collections": [],
21
11
  "bundles": []
22
12
  }
@@ -568,3 +568,227 @@ 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
+
@@ -0,0 +1,26 @@
1
+ import { newE2EPage } from "@stencil/core/testing";
2
+ describe('dash-button', () => {
3
+ it('renders', async () => {
4
+ const page = await newE2EPage();
5
+ await page.setContent('<dash-button></dash-button>');
6
+ const element = await page.find('dash-button');
7
+ expect(element).toHaveClass('hydrated');
8
+ });
9
+ it('renders changes to the name data', async () => {
10
+ const page = await newE2EPage();
11
+ await page.setContent('<dash-button></dash-button>');
12
+ const component = await page.find('dash-button');
13
+ const element = await page.find('dash-button >>> div');
14
+ expect(element.textContent).toEqual(`Hello, World! I'm `);
15
+ component.setProperty('first', 'James');
16
+ await page.waitForChanges();
17
+ expect(element.textContent).toEqual(`Hello, World! I'm James`);
18
+ component.setProperty('last', 'Quincy');
19
+ await page.waitForChanges();
20
+ expect(element.textContent).toEqual(`Hello, World! I'm James Quincy`);
21
+ component.setProperty('middle', 'Earl');
22
+ await page.waitForChanges();
23
+ expect(element.textContent).toEqual(`Hello, World! I'm James Earl Quincy`);
24
+ });
25
+ });
26
+ //# sourceMappingURL=dash-button.e2e.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dash-button.e2e.js","sourceRoot":"","sources":["../../../src/components/my-component/dash-button.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;QACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAEhC,MAAM,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;QACrD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC/C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kCAAkC,EAAE,KAAK,IAAI,EAAE;QAChD,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;QAEhC,MAAM,IAAI,CAAC,UAAU,CAAC,6BAA6B,CAAC,CAAC;QACrD,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;QACvD,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC;QAE1D,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACxC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;QAE/D,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACxC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,gCAAgC,CAAC,CAAC;QAEtE,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACxC,MAAM,IAAI,CAAC,cAAc,EAAE,CAAC;QAC5B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,qCAAqC,CAAC,CAAC;IAC7E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('dash-button', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n\n await page.setContent('<dash-button></dash-button>');\n const element = await page.find('dash-button');\n expect(element).toHaveClass('hydrated');\n });\n\n it('renders changes to the name data', async () => {\n const page = await newE2EPage();\n\n await page.setContent('<dash-button></dash-button>');\n const component = await page.find('dash-button');\n const element = await page.find('dash-button >>> div');\n expect(element.textContent).toEqual(`Hello, World! I'm `);\n\n component.setProperty('first', 'James');\n await page.waitForChanges();\n expect(element.textContent).toEqual(`Hello, World! I'm James`);\n\n component.setProperty('last', 'Quincy');\n await page.waitForChanges();\n expect(element.textContent).toEqual(`Hello, World! I'm James Quincy`);\n\n component.setProperty('middle', 'Earl');\n await page.waitForChanges();\n expect(element.textContent).toEqual(`Hello, World! I'm James Earl Quincy`);\n });\n});\n"]}