scb-wc-test 0.1.24 → 0.1.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/mvc/components/scb-card/scb-card.js +1 -0
- package/mvc/components/scb-fact-card/scb-fact-card.js +2 -1
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +1 -0
- package/package.json +2 -2
- package/scb-card/scb-card.js +1 -0
- package/scb-fact-card/scb-fact-card.js +3 -2
- package/scb-keyfigure-card/scb-keyfigure-card.js +1 -0
- package/scb-wc-test.bundle.js +3 -0
|
@@ -160,6 +160,7 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as h,n as r,i as m,x
|
|
|
160
160
|
|
|
161
161
|
.scb-card {
|
|
162
162
|
color: var(--md-sys-color-on-surface);
|
|
163
|
+
font-family: var(--brand-font);
|
|
163
164
|
display: flex;
|
|
164
165
|
position: relative;
|
|
165
166
|
border-radius: var(--md-sys-shape-corner-large);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x as d,t as b}from"../../vendor/vendor.js";import"../scb-icon-button/scb-icon-button.js";import"./scb-fact-card-content.js";import"../scb-link/scb-link.js";import"../../vendor/vendor-material.js";import"../scb-tooltip/scb-tooltip.js";import"../scb-button/scb-button.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(n,a,s){try{customElements.get(n)||i(n,a,s)}catch(l){var c=String(l||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var
|
|
2
|
+
import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x as d,t as b}from"../../vendor/vendor.js";import"../scb-icon-button/scb-icon-button.js";import"./scb-fact-card-content.js";import"../scb-link/scb-link.js";import"../../vendor/vendor-material.js";import"../scb-tooltip/scb-tooltip.js";import"../scb-button/scb-button.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(n,a,s){try{customElements.get(n)||i(n,a,s)}catch(l){var c=String(l||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var f=Object.defineProperty,_=Object.getOwnPropertyDescriptor,o=(e,i,n,a)=>{for(var s=a>1?void 0:a?_(i,n):i,c=e.length-1,l;c>=0;c--)(l=e[c])&&(s=(a?l(i,n,s):l(s))||s);return a&&s&&f(i,n,s),s};let t=class extends u{constructor(){super(...arguments),this.__onCloseClick=e=>{e.stopPropagation(),this.__setOpen(!1)},this.variant="filled",this.label="",this.subLabel="",this.supportingText="",this.icon="",this.showCloseButton=!1,this.open=!0,this.__lastTriggerEl=null,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight=""}static __handleDocClick(e){const i=e.composedPath();for(const n of i){if(!(n instanceof Element))continue;const a=n.getAttribute("data-fact-card-toggle")||n.getAttribute("aria-controls");if(!a)continue;const s=t.__instances.get(a);if(!s){t.__instances.delete(a);continue}s.__lastTriggerEl=n,s.__setOpen(!s.open),e.stopPropagation();break}}static __ensureDocListener(){t.__docListenerAttached||(document.addEventListener("click",t.__handleDocClick,!0),t.__docListenerAttached=!0)}static __maybeRemoveDocListener(){t.__docListenerAttached&&t.__instances.size===0&&(document.removeEventListener("click",t.__handleDocClick,!0),t.__docListenerAttached=!1)}connectedCallback(){super.connectedCallback(),this.id&&t.__instances.set(this.id,this),t.__ensureDocListener()}disconnectedCallback(){this.id&&t.__instances.delete(this.id),t.__maybeRemoveDocListener(),super.disconnectedCallback()}updated(e){e.has("open")&&this.__updateTriggersExpanded(),e.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),e.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),e.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),e.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size"))}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-fact-card-toggle="${this.id}"]`).forEach(e=>{e.hasAttribute("aria-controls")&&e.setAttribute("aria-expanded",String(this.open))})}__setOpen(e){const i=this.open;this.open=e,e&&!i?this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})):!e&&i&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}render(){if(!this.open)return d``;const e=this.variant==="outlined"?"outlined":"filled",i=!!this.icon;return d`
|
|
3
3
|
<div class="outer ${i?"has-icon":""}">
|
|
4
4
|
${i?d`<div class="icon-wrapper ${e}"><md-icon>${this.icon}</md-icon></div>`:""}
|
|
5
5
|
<div class="scb-fact-card ${e} ${this.showCloseButton?"has-close":""}">
|
|
@@ -59,6 +59,7 @@ import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x
|
|
|
59
59
|
|
|
60
60
|
.scb-fact-card {
|
|
61
61
|
color: var(--md-sys-color-on-surface);
|
|
62
|
+
font-family: var(--brand-font);
|
|
62
63
|
position: relative;
|
|
63
64
|
border-radius: var(--md-sys-shape-corner-large);
|
|
64
65
|
background: var(--md-sys-color-surface-dim);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scb-wc-test",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -273,5 +273,5 @@
|
|
|
273
273
|
},
|
|
274
274
|
"./mvc/*": "./mvc/*"
|
|
275
275
|
},
|
|
276
|
-
"buildHash": "
|
|
276
|
+
"buildHash": "05D76A892C0C90F95AC836FB20F81F914E21BD5CECF4A100D826E23AC63AC27A"
|
|
277
277
|
}
|
package/scb-card/scb-card.js
CHANGED
|
@@ -3,8 +3,8 @@ import { property as n, customElement as u } from "lit/decorators.js";
|
|
|
3
3
|
import "../scb-icon-button/scb-icon-button.js";
|
|
4
4
|
import "./scb-fact-card-content.js";
|
|
5
5
|
import "../scb-link/scb-link.js";
|
|
6
|
-
var b = Object.defineProperty,
|
|
7
|
-
for (var o = a > 1 ? void 0 : a ?
|
|
6
|
+
var b = Object.defineProperty, f = Object.getOwnPropertyDescriptor, i = (e, s, r, a) => {
|
|
7
|
+
for (var o = a > 1 ? void 0 : a ? f(s, r) : s, l = e.length - 1, d; l >= 0; l--)
|
|
8
8
|
(d = e[l]) && (o = (a ? d(s, r, o) : d(o)) || o);
|
|
9
9
|
return a && o && b(s, r, o), o;
|
|
10
10
|
};
|
|
@@ -125,6 +125,7 @@ t.styles = h`
|
|
|
125
125
|
|
|
126
126
|
.scb-fact-card {
|
|
127
127
|
color: var(--md-sys-color-on-surface);
|
|
128
|
+
font-family: var(--brand-font);
|
|
128
129
|
position: relative;
|
|
129
130
|
border-radius: var(--md-sys-shape-corner-large);
|
|
130
131
|
background: var(--md-sys-color-surface-dim);
|
package/scb-wc-test.bundle.js
CHANGED
|
@@ -3382,6 +3382,7 @@ var ScbWcTest=function(a){"use strict";var xs;function d(o,e,t,r){var i=argument
|
|
|
3382
3382
|
|
|
3383
3383
|
.scb-card {
|
|
3384
3384
|
color: var(--md-sys-color-on-surface);
|
|
3385
|
+
font-family: var(--brand-font);
|
|
3385
3386
|
display: flex;
|
|
3386
3387
|
position: relative;
|
|
3387
3388
|
border-radius: var(--md-sys-shape-corner-large);
|
|
@@ -4315,6 +4316,7 @@ var ScbWcTest=function(a){"use strict";var xs;function d(o,e,t,r){var i=argument
|
|
|
4315
4316
|
|
|
4316
4317
|
.scb-fact-card {
|
|
4317
4318
|
color: var(--md-sys-color-on-surface);
|
|
4319
|
+
font-family: var(--brand-font);
|
|
4318
4320
|
position: relative;
|
|
4319
4321
|
border-radius: var(--md-sys-shape-corner-large);
|
|
4320
4322
|
background: var(--md-sys-color-surface-dim);
|
|
@@ -5055,6 +5057,7 @@ var ScbWcTest=function(a){"use strict";var xs;function d(o,e,t,r){var i=argument
|
|
|
5055
5057
|
|
|
5056
5058
|
.scb-keyfigure-card {
|
|
5057
5059
|
color: var(--md-sys-color-on-surface);
|
|
5060
|
+
font-family: var(--brand-font);
|
|
5058
5061
|
display: flex;
|
|
5059
5062
|
flex-direction: column;
|
|
5060
5063
|
gap: var(--spacing-3);
|