@digital-realty/ix-switch 2.2.4-alpha-254699-t51.0 → 2.2.5
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/dist/IxSwitch.js +1 -0
- package/dist/IxSwitch.js.map +1 -1
- package/dist/ix-switch.min.js +1 -1
- package/package.json +3 -2
package/dist/IxSwitch.js
CHANGED
package/dist/IxSwitch.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IxSwitch.js","sourceRoot":"","sources":["../src/IxSwitch.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,gCAAgC,CAAC;AAExC,MAAM,OAAO,QAAS,SAAQ,UAAU;IAAxC;;QAGE;;WAEG;QACyC,aAAQ,GAAG,KAAK,CAAC;QAE7D;;;WAGG;QAC0B,aAAQ,GAAG,KAAK,CAAC;QAE9C;;WAEG;QAC0B,UAAK,GAAG,KAAK,CAAC;QAE3C;;;WAGG;QAEH,yBAAoB,GAAG,KAAK,CAAC;QAE7B;;;;;WAKG;QAC0B,aAAQ,GAAG,KAAK,CAAC;QAE9C;;WAEG;QACyB,SAAI,GAAuB,SAAS,CAAC;QAEjE;;;WAGG;QACyB,UAAK,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"IxSwitch.js","sourceRoot":"","sources":["../src/IxSwitch.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,gCAAgC,CAAC;A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AMrC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uCAAc","sourcesContent":["import { html, LitElement } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { query, property } from 'lit/decorators.js';\nimport { Switch } from '@material/web/switch/internal/switch.js';\nimport '@material/web/switch/switch.js';\n\nexport class IxSwitch extends LitElement {\n @query('md-switch') readonly component!: Switch;\n\n /**\n * Disables the switch and makes it non-interactive.\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * Puts the switch in the selected state and sets the form submission value to\n * the `value` property.\n */\n @property({ type: Boolean }) selected = false;\n\n /**\n * Shows both the selected and deselected icons.\n */\n @property({ type: Boolean }) icons = false;\n\n /**\n * Shows only the selected icon, and not the deselected icon. If `true`,\n * overrides the behavior of the `icons` property.\n */\n @property({ type: Boolean, attribute: 'show-only-selected-icon' })\n showOnlySelectedIcon = false;\n\n /**\n * When true, require the switch to be selected when participating in\n * form submission.\n *\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#validation\n */\n @property({ type: Boolean }) required = false;\n\n /**\n * The HTML name to use in form submission.\n */\n @property({ type: String }) name: string | undefined = undefined;\n\n /**\n * The value associated with this switch on form submission. `null` is\n * submitted when `selected` is `false`.\n */\n @property({ type: String }) value = 'on';\n\n protected createRenderRoot() {\n return this;\n }\n\n render() {\n return html`\n <md-switch\n style=\"filter: drop-shadow(0 0px 1px #00000090);\"\n name=${ifDefined(this.name)}\n value=${this.value}\n ?disabled=${this.disabled}\n ?selected=${this.selected}\n ?icons=${this.icons}\n ?show-only-selected-icon=${this.showOnlySelectedIcon}\n ?required=${this.required}\n >\n </md-switch>\n `;\n }\n}\n"]}
|
package/dist/ix-switch.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate}from"tslib";import{LitElement,html}from"lit";import{ifDefined}from"lit/directives/if-defined.js";import{query,property}from"lit/decorators.js";import"@material/web/switch/switch.js";class IxSwitch extends LitElement{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.name=void 0,this.value="on"}createRenderRoot(){return this}render(){return html`<md-switch name="${ifDefined(this.name)}" value="${this.value}" ?disabled="${this.disabled}" ?selected="${this.selected}" ?icons="${this.icons}" ?show-only-selected-icon="${this.showOnlySelectedIcon}" ?required="${this.required}"></md-switch>`}}__decorate([query("md-switch")],IxSwitch.prototype,"component",void 0),__decorate([property({type:Boolean,reflect:!0})],IxSwitch.prototype,"disabled",void 0),__decorate([property({type:Boolean})],IxSwitch.prototype,"selected",void 0),__decorate([property({type:Boolean})],IxSwitch.prototype,"icons",void 0),__decorate([property({type:Boolean,attribute:"show-only-selected-icon"})],IxSwitch.prototype,"showOnlySelectedIcon",void 0),__decorate([property({type:Boolean})],IxSwitch.prototype,"required",void 0),__decorate([property({type:String})],IxSwitch.prototype,"name",void 0),__decorate([property({type:String})],IxSwitch.prototype,"value",void 0),window.customElements.define("ix-switch",IxSwitch);
|
|
1
|
+
import{__decorate}from"tslib";import{LitElement,html}from"lit";import{ifDefined}from"lit/directives/if-defined.js";import{query,property}from"lit/decorators.js";import"@material/web/switch/switch.js";class IxSwitch extends LitElement{constructor(){super(...arguments),this.disabled=!1,this.selected=!1,this.icons=!1,this.showOnlySelectedIcon=!1,this.required=!1,this.name=void 0,this.value="on"}createRenderRoot(){return this}render(){return html`<md-switch style="filter:drop-shadow(0 0 1px #00000090)" name="${ifDefined(this.name)}" value="${this.value}" ?disabled="${this.disabled}" ?selected="${this.selected}" ?icons="${this.icons}" ?show-only-selected-icon="${this.showOnlySelectedIcon}" ?required="${this.required}"></md-switch>`}}__decorate([query("md-switch")],IxSwitch.prototype,"component",void 0),__decorate([property({type:Boolean,reflect:!0})],IxSwitch.prototype,"disabled",void 0),__decorate([property({type:Boolean})],IxSwitch.prototype,"selected",void 0),__decorate([property({type:Boolean})],IxSwitch.prototype,"icons",void 0),__decorate([property({type:Boolean,attribute:"show-only-selected-icon"})],IxSwitch.prototype,"showOnlySelectedIcon",void 0),__decorate([property({type:Boolean})],IxSwitch.prototype,"required",void 0),__decorate([property({type:String})],IxSwitch.prototype,"name",void 0),__decorate([property({type:String})],IxSwitch.prototype,"value",void 0),window.customElements.define("ix-switch",IxSwitch);
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Webcomponent ix-switch following open-wc recommendations",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Digital Realty",
|
|
6
|
-
"version": "2.2.
|
|
6
|
+
"version": "2.2.5",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"husky": "^4.3.8",
|
|
49
49
|
"lint-staged": "^10.5.4",
|
|
50
50
|
"prettier": "^2.4.1",
|
|
51
|
+
"rollup": "^4.29.1",
|
|
51
52
|
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
52
53
|
"rollup-plugin-summary": "^2.0.0",
|
|
53
54
|
"rollup-plugin-uglify": "^6.0.4",
|
|
@@ -103,5 +104,5 @@
|
|
|
103
104
|
"README.md",
|
|
104
105
|
"LICENSE"
|
|
105
106
|
],
|
|
106
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "3590ef8890b3526a1395c48f0e94c72757c33c35"
|
|
107
108
|
}
|