@blockquote-web-components/blockquote-base-embedded-webview 1.5.0 → 1.5.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote-web-components/blockquote-base-embedded-webview",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Webcomponent blockquote-base-embedded-webview following open-wc recommendations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit",
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
"lit": "^2.0.2"
|
|
171
171
|
},
|
|
172
172
|
"devDependencies": {
|
|
173
|
-
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.4.
|
|
173
|
+
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.4.4",
|
|
174
174
|
"@blockquote-web-components/blockquote-foundations-sass": "^1.0.0",
|
|
175
175
|
"@polymer/iron-test-helpers": "^3.0.1"
|
|
176
176
|
},
|
|
@@ -178,5 +178,5 @@
|
|
|
178
178
|
"access": "public"
|
|
179
179
|
},
|
|
180
180
|
"customElements": "custom-elements.json",
|
|
181
|
-
"gitHead": "
|
|
181
|
+
"gitHead": "f395648f8748ca2496345c5182b1b4dd8a60c662"
|
|
182
182
|
}
|
|
@@ -172,18 +172,19 @@ export class BlockquoteBaseEmbeddedWebviewSize extends LitElement {
|
|
|
172
172
|
get _toolbarTpl() {
|
|
173
173
|
return html`
|
|
174
174
|
${this.screenSizes.map(
|
|
175
|
-
(item, index) =>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
175
|
+
(item, index) =>
|
|
176
|
+
html`<button
|
|
177
|
+
@click="${this._setSelected}"
|
|
178
|
+
id="${item.id}"
|
|
179
|
+
data-index="${index + 1}"
|
|
180
|
+
?data-selected="${this.selected === index + 1}"
|
|
181
|
+
?hidden="${!this.showOverflowSize && item.width > this.computedStyleWidth}"
|
|
182
|
+
style="${this.widthInPercent
|
|
183
|
+
? `width: calc(100% / ${index + 1});`
|
|
184
|
+
: `width: ${item.width}px;`}"
|
|
185
|
+
>
|
|
186
|
+
<span>${item.id}</span>
|
|
187
|
+
</button>`,
|
|
187
188
|
)}
|
|
188
189
|
`;
|
|
189
190
|
}
|