@fluid-topics/ft-switch 0.3.36 → 0.3.37
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.
|
@@ -11,7 +11,7 @@ import { FtRipple } from "@fluid-topics/ft-ripple";
|
|
|
11
11
|
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
12
12
|
import { classMap } from "lit/directives/class-map.js";
|
|
13
13
|
import { FtTooltip } from "@fluid-topics/ft-tooltip";
|
|
14
|
-
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
14
|
+
import { FtIcon, FtIconVariants } from "@fluid-topics/ft-icon";
|
|
15
15
|
import { optionStyles } from "./ft-switch-option.css";
|
|
16
16
|
export class SwitchOptionChange extends CustomEvent {
|
|
17
17
|
constructor() {
|
|
@@ -22,6 +22,7 @@ export class FtSwitchOption extends FtLitElement {
|
|
|
22
22
|
constructor() {
|
|
23
23
|
super(...arguments);
|
|
24
24
|
this.value = "";
|
|
25
|
+
this.iconVariant = FtIconVariants.material;
|
|
25
26
|
this.label = "";
|
|
26
27
|
this.tooltipPosition = "bottom";
|
|
27
28
|
this.selected = false;
|
package/build/ft-switch.light.js
CHANGED
|
@@ -388,7 +388,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
|
|
|
388
388
|
.ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
|
|
389
389
|
color: ${Bi.selectedTextColor};
|
|
390
390
|
}
|
|
391
|
-
`;var Wi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Zi extends CustomEvent{constructor(){super("option-change",{bubbles:!0})}}class Di extends i.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Zi)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(e.html`
|
|
391
|
+
`;var Wi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Zi extends CustomEvent{constructor(){super("option-change",{bubbles:!0})}}class Di extends i.FtLitElement{constructor(){super(...arguments),this.value="",this.iconVariant=Fi.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Zi)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(e.html`
|
|
392
392
|
<label part="label" for="input" class=${s.classMap(t)}>
|
|
393
393
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
394
394
|
.checked=${this.selected}
|
package/build/ft-switch.min.js
CHANGED
|
@@ -506,7 +506,7 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
|
|
|
506
506
|
.ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
|
|
507
507
|
color: ${Oe.selectedTextColor};
|
|
508
508
|
}
|
|
509
|
-
`;var Ce=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ne extends CustomEvent{constructor(){super("option-change",{bubbles:!0})}}class Ee extends bt{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ne)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(Z`
|
|
509
|
+
`;var Ce=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ne extends CustomEvent{constructor(){super("option-change",{bubbles:!0})}}class Ee extends bt{constructor(){super(...arguments),this.value="",this.iconVariant=me.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ne)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(Z`
|
|
510
510
|
<label part="label" for="input" class=${St(t)}>
|
|
511
511
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
512
512
|
.checked=${this.selected}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-switch",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.37",
|
|
4
4
|
"description": "two-state",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
23
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
24
|
-
"@fluid-topics/ft-tooltip": "0.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.37",
|
|
23
|
+
"@fluid-topics/ft-ripple": "0.3.37",
|
|
24
|
+
"@fluid-topics/ft-tooltip": "0.3.37",
|
|
25
|
+
"@fluid-topics/ft-typography": "0.3.37",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "0.3.37",
|
|
27
27
|
"lit": "2.2.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "dc88305b17a2554471c7131ebe4032cc8db8813f"
|
|
30
30
|
}
|