@fluid-topics/ft-tabs 0.3.12 → 0.3.14
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/build/ft-tab.css.d.ts +2 -0
- package/build/ft-tab.css.js +2 -0
- package/build/ft-tab.d.ts +2 -7
- package/build/ft-tab.js +1 -1
- package/build/ft-tab.properties.d.ts +8 -0
- package/build/ft-tab.properties.js +2 -0
- package/build/ft-tabs.css.d.ts +8 -0
- package/build/ft-tabs.css.js +99 -0
- package/build/ft-tabs.d.ts +1 -17
- package/build/ft-tabs.js +6 -104
- package/build/ft-tabs.light.js +316 -322
- package/build/ft-tabs.min.js +334 -334
- package/build/ft-tabs.properties.d.ts +12 -0
- package/build/ft-tabs.properties.js +7 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +4 -0
- package/package.json +6 -6
package/build/ft-tabs.light.js
CHANGED
|
@@ -1,53 +1,100 @@
|
|
|
1
|
-
!function(t,e,i,s,o,r,n){var a
|
|
2
|
-
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
3
|
-
${o.unsafeHTML(this.resolvedIcon)}
|
|
4
|
-
<slot ?hidden=${t}></slot>
|
|
5
|
-
</i>
|
|
6
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let s=this.value||this.textContent;switch(this.variant){case p.file_format:this.resolvedIcon=null!==(t=l[s.toUpperCase()])&&void 0!==t?t:s;break;case p.fluid_topics:this.resolvedIcon=null!==(e=a[s.toUpperCase()])&&void 0!==e?e:s;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}x.elementDefinitions={},x.styles=i.css`
|
|
7
|
-
:host {
|
|
8
|
-
display: inline-block;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
:host, i.ft-icon {
|
|
12
|
-
width: ${f};
|
|
13
|
-
height: ${f};
|
|
14
|
-
text-align: center;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
i.ft-icon {
|
|
18
|
-
font-size: ${f};
|
|
19
|
-
line-height: 1;
|
|
20
|
-
font-weight: normal;
|
|
21
|
-
text-transform: none;
|
|
22
|
-
font-style: normal;
|
|
23
|
-
font-variant: normal;
|
|
24
|
-
speak: none;
|
|
25
|
-
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
26
|
-
text-rendering: auto;
|
|
27
|
-
-webkit-font-smoothing: antialiased;
|
|
28
|
-
-moz-osx-font-smoothing: grayscale;
|
|
29
|
-
vertical-align: ${u};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ft-icon--fluid-topics {
|
|
33
|
-
font-family: ${c}, ft-icons, fticons, sans-serif;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.ft-icon--file-format {
|
|
37
|
-
font-family: ${d}, ft-mime, sans-serif;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ft-icon--material {
|
|
41
|
-
font-family: ${y}, "Material Icons", sans-serif;
|
|
42
|
-
}
|
|
43
|
-
`,h([s.property()],x.prototype,"variant",void 0),h([s.property()],x.prototype,"value",void 0),h([s.state()],x.prototype,"resolvedIcon",void 0),h([s.query("slot")],x.prototype,"slottedContent",void 0),e.customElement("ft-icon")(x);var g=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class v extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=p.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return i.html`
|
|
1
|
+
!function(t,e,i,s,o,r,n){var a;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(a||(a={}));var l=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class p extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.iconVariant=a.material,this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return i.html`
|
|
44
2
|
<style>
|
|
45
3
|
:host {
|
|
46
4
|
display: ${i.unsafeCSS(this.active?"block":"none")};
|
|
47
5
|
}
|
|
48
6
|
</style>
|
|
49
7
|
<slot></slot>
|
|
50
|
-
`}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}
|
|
8
|
+
`}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}p.elementDefinitions={},l([s.property({type:String})],p.prototype,"label",void 0),l([s.property({type:String})],p.prototype,"icon",void 0),l([s.property()],p.prototype,"iconVariant",void 0),l([s.property({type:Boolean})],p.prototype,"active",void 0),l([s.property({type:Boolean})],p.prototype,"disabled",void 0),l([s.property({type:String,reflect:!0})],p.prototype,"id",void 0),l([s.property({type:String,reflect:!0,attribute:"aria-labelledby"})],p.prototype,"ariaLabelledBy",void 0);const h=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),f=h,c=e.FtCssVariableFactory.extend("--ft-ripple-background-color",h),d=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),y=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),u=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),x=e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),g=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),v=g,b=e.FtCssVariableFactory.extend("--ft-ripple-background-color",g),m=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),$=m,w=e.FtCssVariableFactory.extend("--ft-ripple-background-color",m),k=i.css`
|
|
9
|
+
:host {
|
|
10
|
+
display: contents;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ft-ripple {
|
|
14
|
+
position: absolute;
|
|
15
|
+
inset: 0;
|
|
16
|
+
pointer-events: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ft-ripple .ft-ripple--background,
|
|
24
|
+
.ft-ripple .ft-ripple--effect {
|
|
25
|
+
position: absolute;
|
|
26
|
+
opacity: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ft-ripple .ft-ripple--background {
|
|
30
|
+
background-color: ${c};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ft-ripple .ft-ripple--effect {
|
|
34
|
+
background-color: ${f};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
38
|
+
background-color: ${w};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
42
|
+
background-color: ${$};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
46
|
+
background-color: ${b};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
50
|
+
background-color: ${v};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ft-ripple .ft-ripple--background {
|
|
54
|
+
top: 0;
|
|
55
|
+
left: 0;
|
|
56
|
+
height: 100%;
|
|
57
|
+
width: 100%;
|
|
58
|
+
transition: opacity 75ms linear;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ft-ripple .ft-ripple--effect,
|
|
62
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
63
|
+
border-radius: 50%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ft-ripple .ft-ripple--effect {
|
|
67
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
68
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
72
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
73
|
+
left: 50%;
|
|
74
|
+
top: 50%;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
78
|
+
transform: translate(-50%, -50%);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
82
|
+
opacity: ${y};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
86
|
+
opacity: ${x};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
90
|
+
opacity: ${u};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
94
|
+
opacity: ${d};
|
|
95
|
+
transform: translate(-50%, -50%) scale(1);
|
|
96
|
+
}
|
|
97
|
+
`;var z,j=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class N extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:s,y:o}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=s?s-r.x:r.width/2),this.originY=Math.round(null!=o?o-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
|
|
51
98
|
<style>
|
|
52
99
|
.ft-ripple .ft-ripple--effect,
|
|
53
100
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -60,218 +107,253 @@
|
|
|
60
107
|
top: ${this.originY}px;
|
|
61
108
|
}
|
|
62
109
|
</style>
|
|
63
|
-
<div class="${
|
|
110
|
+
<div class="${r.classMap(t)}">
|
|
64
111
|
<div class="ft-ripple--background"></div>
|
|
65
112
|
<div class="ft-ripple--effect"></div>
|
|
66
113
|
</div>
|
|
67
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),s=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",s),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let s,o;return null!=e.x?({x:s,y:o}=e):null!=i.touches&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
|
|
68
|
-
/**
|
|
69
|
-
* @license
|
|
70
|
-
* Copyright 2017 Google LLC
|
|
71
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
72
|
-
*/
|
|
73
|
-
var C;T.elementDefinitions={},T.styles=i.css`
|
|
74
|
-
:host {
|
|
75
|
-
display: contents;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.ft-ripple {
|
|
79
|
-
position: absolute;
|
|
80
|
-
inset: 0;
|
|
81
|
-
pointer-events: none;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
85
|
-
overflow: hidden;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.ft-ripple .ft-ripple--background,
|
|
89
|
-
.ft-ripple .ft-ripple--effect {
|
|
90
|
-
position: absolute;
|
|
91
|
-
opacity: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.ft-ripple .ft-ripple--background {
|
|
95
|
-
background-color: ${w};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.ft-ripple .ft-ripple--effect {
|
|
99
|
-
background-color: ${$};
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
103
|
-
background-color: ${M};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
107
|
-
background-color: ${_};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
111
|
-
background-color: ${A};
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
115
|
-
background-color: ${S};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ft-ripple .ft-ripple--background {
|
|
119
|
-
top: 0;
|
|
120
|
-
left: 0;
|
|
121
|
-
height: 100%;
|
|
122
|
-
width: 100%;
|
|
123
|
-
transition: opacity 75ms linear;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.ft-ripple .ft-ripple--effect,
|
|
127
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
128
|
-
border-radius: 50%;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.ft-ripple .ft-ripple--effect {
|
|
132
|
-
transform: translate(-50%, -50%) scale(0.15);
|
|
133
|
-
transition: transform 300ms ease, opacity 75ms linear;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
137
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
138
|
-
left: 50%;
|
|
139
|
-
top: 50%;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
143
|
-
transform: translate(-50%, -50%);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
147
|
-
opacity: ${z};
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
151
|
-
opacity: ${N};
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
155
|
-
opacity: ${j};
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
159
|
-
opacity: ${k};
|
|
160
|
-
transform: translate(-50%, -50%) scale(1);
|
|
161
|
-
}
|
|
162
|
-
`,b([s.property({type:Boolean})],T.prototype,"primary",void 0),b([s.property({type:Boolean})],T.prototype,"secondary",void 0),b([s.property({type:Boolean})],T.prototype,"unbounded",void 0),b([s.property({type:Boolean})],T.prototype,"activated",void 0),b([s.property({type:Boolean})],T.prototype,"selected",void 0),b([s.property({type:Boolean})],T.prototype,"disabled",void 0),b([s.state()],T.prototype,"hovered",void 0),b([s.state()],T.prototype,"focused",void 0),b([s.state()],T.prototype,"pressed",void 0),b([s.state()],T.prototype,"rippling",void 0),b([s.state()],T.prototype,"rippleSize",void 0),b([s.state()],T.prototype,"originX",void 0),b([s.state()],T.prototype,"originY",void 0),b([s.query(".ft-ripple")],T.prototype,"ripple",void 0),b([s.query(".ft-ripple--effect")],T.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(T);const B=globalThis.trustedTypes,E=B?B.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,D="?"+U,R=`<${D}>`,W=document,G=(t="")=>W.createComment(t),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Z=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,q=/-->/g,F=/>/g,H=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),L=/'/g,V=/"/g,X=/^(?:script|style|textarea|title)$/i,Y=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),J=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),tt=new WeakMap,et=W.createTreeWalker(W,129,null,!1),it=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=P;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===P?"!--"===l[1]?n=q:void 0!==l[1]?n=F:void 0!==l[2]?(X.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=H):void 0!==l[3]&&(n=H):n===H?">"===l[0]?(n=null!=o?o:P,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?H:'"'===l[3]?V:L):n===V||n===L?n=H:n===q||n===F?n=P:(n=H,o=void 0);const f=n===H&&t[e+1].startsWith("/>")?" ":"";r+=n===P?i+R:p>=0?(s.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+U+f):i+U+(-2===p?(s.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==E?E.createHTML(a):a,s]};class st{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,p]=it(t,e);if(this.el=st.createElement(l,i),et.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=et.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=p[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?ht:"@"===e[1]?ft:at})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(X.test(s.tagName)){const t=s.textContent.split(U),e=t.length-1;if(e>0){s.textContent=B?B.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],G()),et.nextNode(),a.push({type:2,index:++o});s.append(t[e],G())}}}else if(8===s.nodeType)if(s.data===D)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(U,t+1));)a.push({type:7,index:o}),t+=U.length-1}o++}}static createElement(t,e){const i=W.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,s){var o,r,n,a;if(e===J)return e;let l=void 0!==s?null===(o=i._$Cl)||void 0===o?void 0:o[s]:i._$Cu;const p=K(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,s)),void 0!==s?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[s]=l:i._$Cu=l),void 0!==l&&(e=ot(t,l._$AS(t,e.values),l,s)),e}class rt{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:W).importNode(i,!0);et.currentNode=o;let r=et.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new nt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ct(r,this,t)),this.v.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=et.nextNode(),n++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{constructor(t,e,i,s){var o;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$C_=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),K(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==J&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>Z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==Q&&K(this._$AH)?this._$AA.nextSibling.data=t:this.k(W.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=st.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new rt(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=tt.get(t.strings);return void 0===e&&tt.set(t.strings,e=new st(t)),e}S(t){Z(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new nt(this.j(G()),this.j(G()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class at{constructor(t,e,i,s,o){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=ot(this,t,e,0),r=!K(t)||t!==this._$AH&&t!==J,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ot(this,s[i+n],e,n),a===J&&(a=this._$AH[n]),r||(r=!K(a)||a!==this._$AH[n]),a===Q?t=Q:t!==Q&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.P(t)}P(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends at{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===Q?void 0:t}}const pt=B?B.emptyScript:"";class ht extends at{constructor(){super(...arguments),this.type=4}P(t){t&&t!==Q?this.element.setAttribute(this.name,pt):this.element.removeAttribute(this.name)}}class ft extends at{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:Q)===J)return;const s=this._$AH,o=t===Q&&s!==Q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==Q&&(s===Q||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ct{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const dt=window.litHtmlPolyfillSupport;null==dt||dt(st,nt),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
114
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),s=e("touchend","touchcancel"),o=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",s),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",o),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",o),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let s,o;return null!=e.x?({x:s,y:o}=e):null!=i.touches&&(s=i.touches[0].clientX,o=i.touches[0].clientY),{x:s,y:o}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}N.elementDefinitions={},N.styles=k,j([s.property({type:Boolean})],N.prototype,"primary",void 0),j([s.property({type:Boolean})],N.prototype,"secondary",void 0),j([s.property({type:Boolean})],N.prototype,"unbounded",void 0),j([s.property({type:Boolean})],N.prototype,"activated",void 0),j([s.property({type:Boolean})],N.prototype,"selected",void 0),j([s.property({type:Boolean})],N.prototype,"disabled",void 0),j([s.state()],N.prototype,"hovered",void 0),j([s.state()],N.prototype,"focused",void 0),j([s.state()],N.prototype,"pressed",void 0),j([s.state()],N.prototype,"rippling",void 0),j([s.state()],N.prototype,"rippleSize",void 0),j([s.state()],N.prototype,"originX",void 0),j([s.state()],N.prototype,"originY",void 0),j([s.query(".ft-ripple")],N.prototype,"ripple",void 0),j([s.query(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(N);const O=globalThis.trustedTypes,S=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,A=`lit$${(Math.random()+"").slice(9)}$`,I="?"+A,_=`<${I}>`,M=document,T=(t="")=>M.createComment(t),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,D=/>/g,R=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,G=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),F=new WeakMap,H=M.createTreeWalker(M,129,null,!1),L=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=E;for(let e=0;e<i;e++){const i=t[e];let a,l,p=-1,h=0;for(;h<i.length&&(n.lastIndex=h,l=n.exec(i),null!==l);)h=n.lastIndex,n===E?"!--"===l[1]?n=U:void 0!==l[1]?n=D:void 0!==l[2]?(K.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=R):void 0!==l[3]&&(n=R):n===R?">"===l[0]?(n=null!=o?o:E,p=-1):void 0===l[1]?p=-2:(p=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?R:'"'===l[3]?G:W):n===G||n===W?n=R:n===U||n===D?n=E:(n=R,o=void 0);const f=n===R&&t[e+1].startsWith("/>")?" ":"";r+=n===E?i+_:p>=0?(s.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+A+f):i+A+(-2===p?(s.push(void 0),e):f)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==S?S.createHTML(a):a,s]};class V{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,p]=L(t,e);if(this.el=V.createElement(l,i),H.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=H.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(A)){const i=p[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(A),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?tt:"?"===e[1]?it:"@"===e[1]?st:Q})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(K.test(s.tagName)){const t=s.textContent.split(A),e=t.length-1;if(e>0){s.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],T()),H.nextNode(),a.push({type:2,index:++o});s.append(t[e],T())}}}else if(8===s.nodeType)if(s.data===I)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(A,t+1));)a.push({type:7,index:o}),t+=A.length-1}o++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function X(t,e,i=t,s){var o,r,n,a;if(e===P)return e;let l=void 0!==s?null===(o=i._$Cl)||void 0===o?void 0:o[s]:i._$Cu;const p=C(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,s)),void 0!==s?(null!==(n=(a=i)._$Cl)&&void 0!==n?n:a._$Cl=[])[s]=l:i._$Cu=l),void 0!==l&&(e=X(t,l._$AS(t,e.values),l,s)),e}class Y{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);H.currentNode=o;let r=H.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new J(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new ot(r,this,t)),this.v.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=H.nextNode(),n++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class J{constructor(t,e,i,s){var o;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$C_=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),C(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==P&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==q&&C(this._$AH)?this._$AA.nextSibling.data=t:this.k(M.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=V.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new Y(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=F.get(t.strings);return void 0===e&&F.set(t.strings,e=new V(t)),e}S(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new J(this.j(T()),this.j(T()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Q{constructor(t,e,i,s,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=X(this,t,e,0),r=!C(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=X(this,s[i+n],e,n),a===P&&(a=this._$AH[n]),r||(r=!C(a)||a!==this._$AH[n]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.P(t)}P(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Q{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===q?void 0:t}}const et=O?O.emptyScript:"";class it extends Q{constructor(){super(...arguments),this.type=4}P(t){t&&t!==q?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class st extends Q{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=X(this,t,e,0))&&void 0!==i?i:q)===P)return;const s=this._$AH,o=t===q&&s!==q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==q&&(s===q||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const rt=window.litHtmlPolyfillSupport;null==rt||rt(V,J),(null!==(z=globalThis.litHtmlVersions)&&void 0!==z?z:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
163
115
|
/**
|
|
164
116
|
* @license
|
|
165
117
|
* Copyright 2020 Google LLC
|
|
166
118
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
167
119
|
*/
|
|
168
|
-
const
|
|
120
|
+
const nt=Symbol.for(""),at=t=>{if((null==t?void 0:t.r)===nt)return null==t?void 0:t._$litStatic$},lt=t=>({_$litStatic$:t,r:nt}),pt=new Map,ht=(t=>(e,...i)=>{const s=i.length;let o,r;const n=[],a=[];let l,p=0,h=!1;for(;p<s;){for(l=e[p];p<s&&void 0!==(r=i[p],o=at(r));)l+=o+e[++p],h=!0;a.push(r),n.push(l),p++}if(p===s&&n.push(e[s]),h){const t=n.join("$$lit$$");void 0===(e=pt.get(t))&&(n.raw=n,pt.set(t,e=n)),i=a}return t(e,...i)})(Z);var ft;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ft||(ft={}));const ct=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),dt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),yt={fontFamily:dt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ut=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",ct),xt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),gt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),vt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",yt.lineHeight,"1.2"),mt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),$t=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ct),wt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),kt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),jt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"1.7"),Nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),Ot=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",dt),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),At=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),It=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),_t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"1.5"),Mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),Tt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",dt),Ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"1.7"),Dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),Rt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",dt),Wt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),Kt=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",yt.lineHeight,"1.5"),Pt=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),qt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",dt),Ft=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),Ht=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),Lt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),Vt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",yt.lineHeight,"1.4"),Xt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit"),Yt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",dt),Jt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),Qt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),te=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),ee=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",yt.lineHeight,"1.33"),ie=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit"),se=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",dt),oe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),re=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),ne=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),ae=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"1.6"),le=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),pe=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",dt),he=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),fe=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),ce=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),de=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",yt.lineHeight,"1.6"),ye=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),ue=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",dt),xe=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),ge=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),ve=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),be=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",yt.lineHeight,"1.15"),me=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase"),$e=i.css`
|
|
169
121
|
.ft-typography--title {
|
|
170
|
-
font-family: ${
|
|
171
|
-
font-size: ${
|
|
172
|
-
font-weight: ${
|
|
173
|
-
letter-spacing: ${
|
|
174
|
-
line-height: ${
|
|
175
|
-
text-transform: ${
|
|
122
|
+
font-family: ${ut};
|
|
123
|
+
font-size: ${xt};
|
|
124
|
+
font-weight: ${gt};
|
|
125
|
+
letter-spacing: ${vt};
|
|
126
|
+
line-height: ${bt};
|
|
127
|
+
text-transform: ${mt};
|
|
176
128
|
}
|
|
177
|
-
`,
|
|
129
|
+
`,we=i.css`
|
|
178
130
|
.ft-typography--title-dense {
|
|
179
|
-
font-family: ${
|
|
180
|
-
font-size: ${
|
|
181
|
-
font-weight: ${
|
|
182
|
-
letter-spacing: ${
|
|
183
|
-
line-height: ${
|
|
184
|
-
text-transform: ${
|
|
185
|
-
}
|
|
186
|
-
`,
|
|
131
|
+
font-family: ${$t};
|
|
132
|
+
font-size: ${wt};
|
|
133
|
+
font-weight: ${kt};
|
|
134
|
+
letter-spacing: ${zt};
|
|
135
|
+
line-height: ${jt};
|
|
136
|
+
text-transform: ${Nt};
|
|
137
|
+
}
|
|
138
|
+
`,ke=i.css`
|
|
187
139
|
.ft-typography--subtitle1 {
|
|
188
|
-
font-family: ${
|
|
189
|
-
font-size: ${
|
|
190
|
-
font-weight: ${
|
|
191
|
-
letter-spacing: ${
|
|
192
|
-
line-height: ${
|
|
193
|
-
text-transform: ${
|
|
194
|
-
}
|
|
195
|
-
`,
|
|
140
|
+
font-family: ${Ot};
|
|
141
|
+
font-size: ${St};
|
|
142
|
+
font-weight: ${At};
|
|
143
|
+
letter-spacing: ${It};
|
|
144
|
+
line-height: ${_t};
|
|
145
|
+
text-transform: ${Mt};
|
|
146
|
+
}
|
|
147
|
+
`,ze=i.css`
|
|
196
148
|
.ft-typography--subtitle2 {
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
149
|
+
font-family: ${Tt};
|
|
150
|
+
font-size: ${Ct};
|
|
151
|
+
font-weight: ${Bt};
|
|
152
|
+
letter-spacing: ${Et};
|
|
153
|
+
line-height: ${Ut};
|
|
154
|
+
text-transform: ${Dt};
|
|
203
155
|
}
|
|
204
156
|
|
|
205
|
-
`,
|
|
157
|
+
`,je=i.css`
|
|
206
158
|
.ft-typography--body1 {
|
|
207
|
-
font-family: ${
|
|
208
|
-
font-size: ${
|
|
209
|
-
font-weight: ${
|
|
210
|
-
letter-spacing: ${
|
|
211
|
-
line-height: ${
|
|
212
|
-
text-transform: ${
|
|
213
|
-
}
|
|
214
|
-
`,
|
|
159
|
+
font-family: ${Rt};
|
|
160
|
+
font-size: ${Wt};
|
|
161
|
+
font-weight: ${Gt};
|
|
162
|
+
letter-spacing: ${Kt};
|
|
163
|
+
line-height: ${Zt};
|
|
164
|
+
text-transform: ${Pt};
|
|
165
|
+
}
|
|
166
|
+
`,Ne=i.css`
|
|
215
167
|
.ft-typography--body2 {
|
|
216
|
-
font-family: ${
|
|
217
|
-
font-size: ${
|
|
218
|
-
font-weight: ${
|
|
219
|
-
letter-spacing: ${
|
|
220
|
-
line-height: ${
|
|
221
|
-
text-transform: ${
|
|
222
|
-
}
|
|
223
|
-
`,
|
|
168
|
+
font-family: ${qt};
|
|
169
|
+
font-size: ${Ft};
|
|
170
|
+
font-weight: ${Ht};
|
|
171
|
+
letter-spacing: ${Lt};
|
|
172
|
+
line-height: ${Vt};
|
|
173
|
+
text-transform: ${Xt};
|
|
174
|
+
}
|
|
175
|
+
`,Oe=i.css`
|
|
224
176
|
.ft-typography--caption {
|
|
225
|
-
font-family: ${
|
|
226
|
-
font-size: ${
|
|
227
|
-
font-weight: ${
|
|
228
|
-
letter-spacing: ${
|
|
229
|
-
line-height: ${
|
|
230
|
-
text-transform: ${
|
|
231
|
-
}
|
|
232
|
-
`,
|
|
177
|
+
font-family: ${Yt};
|
|
178
|
+
font-size: ${Jt};
|
|
179
|
+
font-weight: ${Qt};
|
|
180
|
+
letter-spacing: ${te};
|
|
181
|
+
line-height: ${ee};
|
|
182
|
+
text-transform: ${ie};
|
|
183
|
+
}
|
|
184
|
+
`,Se=i.css`
|
|
233
185
|
.ft-typography--breadcrumb {
|
|
234
|
-
font-family: ${
|
|
235
|
-
font-size: ${
|
|
236
|
-
font-weight: ${
|
|
237
|
-
letter-spacing: ${
|
|
238
|
-
line-height: ${
|
|
239
|
-
text-transform: ${
|
|
240
|
-
}
|
|
241
|
-
`,
|
|
186
|
+
font-family: ${se};
|
|
187
|
+
font-size: ${oe};
|
|
188
|
+
font-weight: ${re};
|
|
189
|
+
letter-spacing: ${ne};
|
|
190
|
+
line-height: ${ae};
|
|
191
|
+
text-transform: ${le};
|
|
192
|
+
}
|
|
193
|
+
`,Ae=i.css`
|
|
242
194
|
.ft-typography--overline {
|
|
243
|
-
font-family: ${
|
|
244
|
-
font-size: ${
|
|
245
|
-
font-weight: ${
|
|
246
|
-
letter-spacing: ${
|
|
247
|
-
line-height: ${
|
|
248
|
-
text-transform: ${
|
|
249
|
-
}
|
|
250
|
-
`,
|
|
195
|
+
font-family: ${pe};
|
|
196
|
+
font-size: ${he};
|
|
197
|
+
font-weight: ${fe};
|
|
198
|
+
letter-spacing: ${ce};
|
|
199
|
+
line-height: ${de};
|
|
200
|
+
text-transform: ${ye};
|
|
201
|
+
}
|
|
202
|
+
`,Ie=i.css`
|
|
251
203
|
.ft-typography--button {
|
|
252
|
-
font-family: ${
|
|
253
|
-
font-size: ${
|
|
254
|
-
font-weight: ${
|
|
255
|
-
letter-spacing: ${
|
|
256
|
-
line-height: ${
|
|
257
|
-
text-transform: ${
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
204
|
+
font-family: ${ue};
|
|
205
|
+
font-size: ${xe};
|
|
206
|
+
font-weight: ${ge};
|
|
207
|
+
letter-spacing: ${ve};
|
|
208
|
+
line-height: ${be};
|
|
209
|
+
text-transform: ${me};
|
|
210
|
+
}
|
|
211
|
+
`,_e=i.css`
|
|
212
|
+
.ft-typography {
|
|
213
|
+
vertical-align: inherit;
|
|
214
|
+
}
|
|
215
|
+
`;var Me,Te,Ce=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Be extends e.FtLitElement{constructor(){super(...arguments),this.variant=ft.body1}render(){return this.element?ht`
|
|
216
|
+
<${lt(this.element)}
|
|
261
217
|
class="ft-typography ft-typography--${this.variant}">
|
|
262
218
|
<slot></slot>
|
|
263
|
-
</${
|
|
264
|
-
`:
|
|
219
|
+
</${lt(this.element)}>
|
|
220
|
+
`:ht`
|
|
265
221
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
266
|
-
`}}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
222
|
+
`}}Be.styles=[$e,we,ke,ze,je,Ne,Oe,Se,Ae,Ie,_e],Ce([s.property()],Be.prototype,"element",void 0),Ce([s.property()],Be.prototype,"variant",void 0),e.customElement("ft-typography")(Be),function(t){t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="\f06e",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(Me||(Me={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Te||(Te={})),new Map([...["abw"].map((t=>[t,Te.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Te.AUDIO])),...["avi"].map((t=>[t,Te.AVI])),...["chm","xhs"].map((t=>[t,Te.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Te.CODE])),...["csv"].map((t=>[t,Te.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Te.DITA])),...["epub"].map((t=>[t,Te.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Te.EXCEL])),...["flac"].map((t=>[t,Te.FLAC])),...["gif"].map((t=>[t,Te.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Te.GZIP])),...["html","htm","xhtml"].map((t=>[t,Te.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Te.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Te.JPEG])),...["json"].map((t=>[t,Te.JSON])),...["m4a","m4p"].map((t=>[t,Te.M4A])),...["mov","qt"].map((t=>[t,Te.MOV])),...["mp3"].map((t=>[t,Te.MP3])),...["mp4","m4v"].map((t=>[t,Te.MP4])),...["ogg","oga"].map((t=>[t,Te.OGG])),...["pdf","ps"].map((t=>[t,Te.PDF])),...["png"].map((t=>[t,Te.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Te.POWERPOINT])),...["rar"].map((t=>[t,Te.RAR])),...["stp"].map((t=>[t,Te.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Te.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Te.VIDEO])),...["wav"].map((t=>[t,Te.WAV])),...["wma"].map((t=>[t,Te.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Te.WORD])),...["xml","xsl","rdf"].map((t=>[t,Te.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Te.YAML])),...["zip"].map((t=>[t,Te.ZIP]))]);const Ee=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Ue=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),De=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Re=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),We=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ge=i.css`
|
|
223
|
+
:host {
|
|
224
|
+
display: inline-block;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
:host, i.ft-icon {
|
|
228
|
+
width: ${Ee};
|
|
229
|
+
height: ${Ee};
|
|
230
|
+
text-align: center;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
i.ft-icon {
|
|
234
|
+
font-size: ${Ee};
|
|
235
|
+
line-height: 1;
|
|
236
|
+
font-weight: normal;
|
|
237
|
+
text-transform: none;
|
|
238
|
+
font-style: normal;
|
|
239
|
+
font-variant: normal;
|
|
240
|
+
speak: none;
|
|
241
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
242
|
+
text-rendering: auto;
|
|
243
|
+
-webkit-font-smoothing: antialiased;
|
|
244
|
+
-moz-osx-font-smoothing: grayscale;
|
|
245
|
+
vertical-align: ${We};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.ft-icon--fluid-topics {
|
|
249
|
+
font-family: ${Ue}, ft-icons, fticons, sans-serif;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.ft-icon--file-format {
|
|
253
|
+
font-family: ${De}, ft-mime, sans-serif;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.ft-icon--material {
|
|
257
|
+
font-family: ${Re}, "Material Icons", sans-serif;
|
|
258
|
+
}
|
|
259
|
+
`;var Ke,Ze=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Pe extends e.FtLitElement{constructor(){super(...arguments),this.variant=a.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
|
|
260
|
+
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
261
|
+
${n.unsafeHTML(this.resolvedIcon)}
|
|
262
|
+
<slot ?hidden=${t}></slot>
|
|
263
|
+
</i>
|
|
264
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let s=this.value||this.textContent;switch(this.variant){case a.file_format:this.resolvedIcon=null!==(t=Te[s.toUpperCase()])&&void 0!==t?t:s;break;case a.fluid_topics:this.resolvedIcon=null!==(e=Me[s.toUpperCase()])&&void 0!==e?e:s;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Pe.elementDefinitions={},Pe.styles=Ge,Ze([s.property()],Pe.prototype,"variant",void 0),Ze([s.property()],Pe.prototype,"value",void 0),Ze([s.state()],Pe.prototype,"resolvedIcon",void 0),Ze([s.query("slot")],Pe.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Pe),t.FtTabsAlignment=void 0,(Ke=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Ke.right="right",Ke.justify="justify";const qe={colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Fe=i.css`
|
|
265
|
+
.ft-tabs {
|
|
266
|
+
display: flex;
|
|
267
|
+
flex-direction: column;
|
|
268
|
+
background-color: ${qe.colorSurface};
|
|
269
|
+
height: 100%;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.ft-tabs--reverse {
|
|
273
|
+
flex-direction: column-reverse;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
[role="tablist"] {
|
|
277
|
+
flex-shrink: 0;
|
|
278
|
+
flex-grow: 0;
|
|
279
|
+
display: flex;
|
|
280
|
+
position: relative;
|
|
281
|
+
flex-wrap: wrap;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.ft-tabs--align-right {
|
|
285
|
+
justify-content: flex-end;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.ft-tabs--align-justify {
|
|
289
|
+
justify-content: space-evenly;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
[role='tab'] {
|
|
293
|
+
position: relative;
|
|
294
|
+
display: flex;
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
flex-direction: column;
|
|
297
|
+
align-items: center;
|
|
298
|
+
justify-content: center;
|
|
299
|
+
padding: 8px 16px;
|
|
300
|
+
background: none;
|
|
301
|
+
box-shadow: 0px 0px 0px transparent;
|
|
302
|
+
border: 0px solid transparent;
|
|
303
|
+
text-shadow: 0px 0px 0px transparent;
|
|
304
|
+
cursor: pointer;
|
|
305
|
+
outline: none;
|
|
306
|
+
font-size: 16px;
|
|
307
|
+
line-height: 1;
|
|
308
|
+
color: ${qe.colorOnSurfaceMedium};
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
[role='tab'][aria-selected='true'] {
|
|
312
|
+
color: ${qe.colorPrimary};
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
[role='tab'][disabled] {
|
|
316
|
+
color: ${qe.colorOnSurfaceDisabled};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.ft-tabs--align-justify [role='tab'] {
|
|
320
|
+
flex-grow: 1;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
[role='tab'] .ft-tabs--tab-label {
|
|
324
|
+
width: 100%;
|
|
325
|
+
white-space: nowrap;
|
|
326
|
+
overflow: hidden;
|
|
327
|
+
text-overflow: ellipsis;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
[role='tab']:not(.ft-tabs--tab-with-label) .ft-tabs--tab-label,
|
|
331
|
+
.ft-tabs--dense .ft-tabs--tab-with-icon .ft-tabs--tab-label {
|
|
332
|
+
display: none;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
[role='tab']:not(.ft-tabs--tab-with-icon) .ft-tabs--tab-icon {
|
|
336
|
+
display: none;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.ft-tabs--active-tab-indicator {
|
|
340
|
+
position: absolute;
|
|
341
|
+
height: 3px;
|
|
342
|
+
border-radius: 2px;
|
|
343
|
+
background-color: ${qe.colorPrimary};
|
|
344
|
+
transition: width 200ms ease, left 200ms ease, top 200ms ease;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.ft-tabs--content {
|
|
348
|
+
flex-shrink: 1;
|
|
349
|
+
flex-grow: 1;
|
|
350
|
+
overflow: auto;
|
|
351
|
+
}
|
|
352
|
+
`;var He=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,a=t.length-1;a>=0;a--)(o=t[a])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Le extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class Ve extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new e.Debouncer(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>this.requestUpdate())),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){const t={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense};return i.html`
|
|
353
|
+
<div class="${r.classMap(t)}" part="container">
|
|
272
354
|
<div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
|
|
273
|
-
${
|
|
274
|
-
<button class="${
|
|
355
|
+
${o.repeat(this.ftTabs,((t,e)=>i.html`
|
|
356
|
+
<button class="${r.classMap({"ft-tabs--tab-with-icon":!!t.icon,"ft-tabs--tab-with-label":!!t.label})}"
|
|
275
357
|
title="${t.label}"
|
|
276
358
|
?disabled=${t.disabled}
|
|
277
359
|
@click=${()=>this.activeIndex=e}
|
|
@@ -287,9 +369,9 @@ const yt=Symbol.for(""),ut=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
|
|
|
287
369
|
<ft-icon class="ft-tabs--tab-icon" part="tab-icon" variant="${t.iconVariant}">
|
|
288
370
|
${t.icon}
|
|
289
371
|
</ft-icon>
|
|
290
|
-
<ft-typography class="ft-tabs--tab-label"
|
|
372
|
+
<ft-typography class="ft-tabs--tab-label"
|
|
291
373
|
part="tab-label"
|
|
292
|
-
variant="${
|
|
374
|
+
variant="${ft.body2}">
|
|
293
375
|
${t.label}
|
|
294
376
|
</ft-typography>
|
|
295
377
|
</button>
|
|
@@ -300,92 +382,4 @@ const yt=Symbol.for(""),ut=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
|
|
|
300
382
|
<slot @slotchange=${this.onContentChange}></slot>
|
|
301
383
|
</div>
|
|
302
384
|
</div>
|
|
303
|
-
`}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new
|
|
304
|
-
.ft-tabs {
|
|
305
|
-
display: flex;
|
|
306
|
-
flex-direction: column;
|
|
307
|
-
background-color: ${Ze.colorSurface};
|
|
308
|
-
height: 100%;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
.ft-tabs--reverse {
|
|
312
|
-
flex-direction: column-reverse;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
[role="tablist"] {
|
|
316
|
-
flex-shrink: 0;
|
|
317
|
-
flex-grow: 0;
|
|
318
|
-
display: flex;
|
|
319
|
-
position: relative;
|
|
320
|
-
flex-wrap: wrap;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.ft-tabs--align-right {
|
|
324
|
-
justify-content: flex-end;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.ft-tabs--align-justify {
|
|
328
|
-
justify-content: space-evenly;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
[role='tab'] {
|
|
332
|
-
position: relative;
|
|
333
|
-
display: flex;
|
|
334
|
-
overflow: hidden;
|
|
335
|
-
flex-direction: column;
|
|
336
|
-
align-items: center;
|
|
337
|
-
justify-content: center;
|
|
338
|
-
padding: 8px 16px;
|
|
339
|
-
background: none;
|
|
340
|
-
box-shadow: 0px 0px 0px transparent;
|
|
341
|
-
border: 0px solid transparent;
|
|
342
|
-
text-shadow: 0px 0px 0px transparent;
|
|
343
|
-
cursor: pointer;
|
|
344
|
-
outline: none;
|
|
345
|
-
font-size: 16px;
|
|
346
|
-
line-height: 1;
|
|
347
|
-
color: ${Ze.colorOnSurfaceMedium};
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
[role='tab'][aria-selected='true'] {
|
|
351
|
-
color: ${Ze.colorPrimary};
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
[role='tab'][disabled] {
|
|
355
|
-
color: ${Ze.colorOnSurfaceDisabled};
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
.ft-tabs--align-justify [role='tab'] {
|
|
359
|
-
flex-grow: 1;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
[role='tab'] .ft-tabs--tab-label {
|
|
363
|
-
width: 100%;
|
|
364
|
-
white-space: nowrap;
|
|
365
|
-
overflow: hidden;
|
|
366
|
-
text-overflow: ellipsis;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
[role='tab']:not(.ft-tabs--tab-with-label) .ft-tabs--tab-label,
|
|
370
|
-
.ft-tabs--dense .ft-tabs--tab-with-icon .ft-tabs--tab-label {
|
|
371
|
-
display: none;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
[role='tab']:not(.ft-tabs--tab-with-icon) .ft-tabs--tab-icon {
|
|
375
|
-
display: none;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
|
-
.ft-tabs--active-tab-indicator {
|
|
379
|
-
position: absolute;
|
|
380
|
-
height: 3px;
|
|
381
|
-
border-radius: 2px;
|
|
382
|
-
background-color: ${Ze.colorPrimary};
|
|
383
|
-
transition: width 200ms ease, left 200ms ease, top 200ms ease;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.ft-tabs--content {
|
|
387
|
-
flex-shrink: 1;
|
|
388
|
-
flex-grow: 1;
|
|
389
|
-
overflow: auto;
|
|
390
|
-
}
|
|
391
|
-
`,Ke([s.property({type:Boolean})],qe.prototype,"dense",void 0),Ke([s.property({type:Boolean})],qe.prototype,"contentBefore",void 0),Ke([s.property()],qe.prototype,"alignTabs",void 0),Ke([s.state()],qe.prototype,"ftTabs",void 0),Ke([s.query("[role='tablist']")],qe.prototype,"tabsContainer",void 0),Ke([s.query("[aria-selected='true']")],qe.prototype,"activeTab",void 0),Ke([s.query(".ft-tabs--active-tab-indicator")],qe.prototype,"activeTabIndicator",void 0),Ke([s.property({type:Number,reflect:!0})],qe.prototype,"activeIndex",void 0),e.customElement("ft-tab")(v),e.customElement("ft-tabs")(qe),t.FtTab=v,t.FtTabs=qe,t.FtTabsCssVariables=Ze,t.IndexChangeEvent=Pe,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat,ftGlobals.litClassMap);
|
|
385
|
+
`}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("tabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new Le(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,s,o,r,n,a,l,p;this.activeTabIndicator&&(this.activeTabIndicator.style.width=(null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(s=null===(i=this.activeTab)||void 0===i?void 0:i.offsetLeft)&&void 0!==s?s:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(r=null===(o=this.activeTab)||void 0===o?void 0:o.offsetTop)&&void 0!==r?r:0)+"px":this.activeTabIndicator.style.top=(null!==(a=null===(n=this.activeTab)||void 0===n?void 0:n.offsetTop)&&void 0!==a?a:0)+(null!==(p=null===(l=this.activeTab)||void 0===l?void 0:l.clientHeight)&&void 0!==p?p:0)-this.activeTabIndicator.clientHeight+"px")}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}}Ve.elementDefinitions={"ft-tab":p,"ft-ripple":N,"ft-typography":Be,"ft-icon":Pe},Ve.styles=Fe,He([s.property({type:Boolean})],Ve.prototype,"dense",void 0),He([s.property({type:Boolean})],Ve.prototype,"contentBefore",void 0),He([s.property()],Ve.prototype,"alignTabs",void 0),He([s.state()],Ve.prototype,"ftTabs",void 0),He([s.query("[role='tablist']")],Ve.prototype,"tabsContainer",void 0),He([s.query("[aria-selected='true']")],Ve.prototype,"activeTab",void 0),He([s.query(".ft-tabs--active-tab-indicator")],Ve.prototype,"activeTabIndicator",void 0),He([s.property({type:Number,reflect:!0})],Ve.prototype,"activeIndex",void 0);e.customElement("ft-tab")(p),e.customElement("ft-tabs")(Ve),t.FtTab=p,t.FtTabCssVariables={},t.FtTabs=Ve,t.FtTabsCssVariables=qe,t.IndexChangeEvent=Le,t.styles=Fe,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|