@getflip/swirl-components 0.353.0 → 0.353.1
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/components.json +1 -1
- package/dist/cjs/swirl-form-control.cjs.entry.js +3 -2
- package/dist/collection/components/swirl-form-control/swirl-form-control.js +3 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.mjs +28 -0
- package/dist/components/swirl-form-control.js +3 -2
- package/dist/esm/swirl-form-control.entry.js +3 -2
- package/dist/swirl-components/p-0e9566ce.entry.js +1 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/utils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/swirl-components/p-f3b4cdf9.entry.js +0 -1
package/components.json
CHANGED
|
@@ -149,7 +149,8 @@ const SwirlFormControl = class {
|
|
|
149
149
|
: Boolean(this.inputValue) ||
|
|
150
150
|
(hasContenteditableControl && Boolean(this.inputEl.innerHTML));
|
|
151
151
|
const hasCharacterCounter = Boolean(this.inputEl.getAttribute("show-character-counter"));
|
|
152
|
-
const hasPlaceholder = Boolean(this.inputEl.getAttribute("placeholder"))
|
|
152
|
+
const hasPlaceholder = Boolean(this.inputEl.getAttribute("placeholder")) ||
|
|
153
|
+
Boolean(this.inputEl.placeholder);
|
|
153
154
|
const isSelect = this.inputEl.tagName === "SWIRL-SELECT";
|
|
154
155
|
const className = index$1.classnames("form-control", `form-control--font-size-${this.fontSize}`, `form-control--label-position-${this.labelPosition}`, {
|
|
155
156
|
"form-control--disabled": this.disabled,
|
|
@@ -165,7 +166,7 @@ const SwirlFormControl = class {
|
|
|
165
166
|
"form-control--is-select": isSelect,
|
|
166
167
|
});
|
|
167
168
|
const LabelTag = hasContenteditableControl ? "div" : "label";
|
|
168
|
-
return (index.h(index.Host, { key: '
|
|
169
|
+
return (index.h(index.Host, { key: '52fe1800376b50b0ba51d6d7e77e7b7acdb74fba', onFocusin: this.onFocusIn, onFocusout: this.onFocusOut, onKeyDown: this.onKeyDown }, index.h("div", { key: 'e7fb3cbfde803c1e19fe254a8beedfeb99bebd03', class: className, role: "group" }, index.h("span", { key: '87102e73dba02beee06637cca40bf37f2b02fc3f', class: "form-control__controls" }, index.h("span", { key: '1d4914e53862d023508149cbf234d1dc9350a571', class: "form-control__prefix" }, index.h("slot", { key: 'aaef4038fed8d914ee17705aeaa718b43f82eebb', name: "prefix" })), index.h(LabelTag, { key: '60e192ac260047614676fcfc78230fbd1f78e0de', class: "form-control__label", onClick: this.onLabelClick }, hasIcon && (index.h("span", { key: '570e1f15672152c405332c47e6e38bef858bf245', class: "form-control__icon" }, index.h("swirl-icon", { key: 'a24a3d2eb4077530e36578347ccbae23a2198abe', glyph: this.icon, size: 20 }))), index.h("span", { key: '92d3b2a327f5e83865459cd73cafa6e67dee2aa6', class: "form-control__label-text", id: this.labelId }, this.label, this.secondaryLabel && this.labelPosition === "outside" && (index.h("span", { key: '80c816c0797761d48e927b3cb26cdff676aa0fbb', class: "form-control__secondary-label" }, this.secondaryLabel)), this.tooltip && (index.h("span", { key: '89c3a73550c113fae0b4c2f384c0d9844897da82', class: "form-control__tooltip" }, index.h("swirl-tooltip", { key: '8523312cbad32091e2290fa0966ead80c11acebd', content: this.tooltip, positioning: "fixed", position: "top" }, index.h("swirl-icon-help", { key: '8967ffda8dbb4af0a55c733fac5c457471bbc88f', size: 16, tabindex: "0" }))))), index.h("span", { key: 'd338e4b75ec38d9357d1fa9b626701c724c361da', class: "form-control__input" }, index.h("slot", { key: '38192e98919b25f1f049761b010790dfec19e805' })))), showDescription && (index.h("span", { key: '5b85cd8335ede10f02858040772a52252a6bf767', class: "form-control__description", id: this.descriptionId }, this.description)), index.h("span", { key: '95f44e9b1dd26eaba6e82b85c478faf6368f1645', "aria-live": "polite" }, showErrorMessage && (index.h("span", { key: '80b7229f0a83905a2708020b40eaf74ce8154689', class: "form-control__error-message", id: this.descriptionId }, index.h("swirl-inline-error", { key: '50ea19db5f1efb26697c35f5a79f38d2847c7a97', message: this.errorMessage, size: "s" })))))));
|
|
169
170
|
}
|
|
170
171
|
get el() { return index.getElement(this); }
|
|
171
172
|
static get watchers() { return {
|
|
@@ -147,7 +147,8 @@ export class SwirlFormControl {
|
|
|
147
147
|
: Boolean(this.inputValue) ||
|
|
148
148
|
(hasContenteditableControl && Boolean(this.inputEl.innerHTML));
|
|
149
149
|
const hasCharacterCounter = Boolean(this.inputEl.getAttribute("show-character-counter"));
|
|
150
|
-
const hasPlaceholder = Boolean(this.inputEl.getAttribute("placeholder"))
|
|
150
|
+
const hasPlaceholder = Boolean(this.inputEl.getAttribute("placeholder")) ||
|
|
151
|
+
Boolean(this.inputEl.placeholder);
|
|
151
152
|
const isSelect = this.inputEl.tagName === "SWIRL-SELECT";
|
|
152
153
|
const className = classnames("form-control", `form-control--font-size-${this.fontSize}`, `form-control--label-position-${this.labelPosition}`, {
|
|
153
154
|
"form-control--disabled": this.disabled,
|
|
@@ -163,7 +164,7 @@ export class SwirlFormControl {
|
|
|
163
164
|
"form-control--is-select": isSelect,
|
|
164
165
|
});
|
|
165
166
|
const LabelTag = hasContenteditableControl ? "div" : "label";
|
|
166
|
-
return (h(Host, { key: '
|
|
167
|
+
return (h(Host, { key: '52fe1800376b50b0ba51d6d7e77e7b7acdb74fba', onFocusin: this.onFocusIn, onFocusout: this.onFocusOut, onKeyDown: this.onKeyDown }, h("div", { key: 'e7fb3cbfde803c1e19fe254a8beedfeb99bebd03', class: className, role: "group" }, h("span", { key: '87102e73dba02beee06637cca40bf37f2b02fc3f', class: "form-control__controls" }, h("span", { key: '1d4914e53862d023508149cbf234d1dc9350a571', class: "form-control__prefix" }, h("slot", { key: 'aaef4038fed8d914ee17705aeaa718b43f82eebb', name: "prefix" })), h(LabelTag, { key: '60e192ac260047614676fcfc78230fbd1f78e0de', class: "form-control__label", onClick: this.onLabelClick }, hasIcon && (h("span", { key: '570e1f15672152c405332c47e6e38bef858bf245', class: "form-control__icon" }, h("swirl-icon", { key: 'a24a3d2eb4077530e36578347ccbae23a2198abe', glyph: this.icon, size: 20 }))), h("span", { key: '92d3b2a327f5e83865459cd73cafa6e67dee2aa6', class: "form-control__label-text", id: this.labelId }, this.label, this.secondaryLabel && this.labelPosition === "outside" && (h("span", { key: '80c816c0797761d48e927b3cb26cdff676aa0fbb', class: "form-control__secondary-label" }, this.secondaryLabel)), this.tooltip && (h("span", { key: '89c3a73550c113fae0b4c2f384c0d9844897da82', class: "form-control__tooltip" }, h("swirl-tooltip", { key: '8523312cbad32091e2290fa0966ead80c11acebd', content: this.tooltip, positioning: "fixed", position: "top" }, h("swirl-icon-help", { key: '8967ffda8dbb4af0a55c733fac5c457471bbc88f', size: 16, tabindex: "0" }))))), h("span", { key: 'd338e4b75ec38d9357d1fa9b626701c724c361da', class: "form-control__input" }, h("slot", { key: '38192e98919b25f1f049761b010790dfec19e805' })))), showDescription && (h("span", { key: '5b85cd8335ede10f02858040772a52252a6bf767', class: "form-control__description", id: this.descriptionId }, this.description)), h("span", { key: '95f44e9b1dd26eaba6e82b85c478faf6368f1645', "aria-live": "polite" }, showErrorMessage && (h("span", { key: '80b7229f0a83905a2708020b40eaf74ce8154689', class: "form-control__error-message", id: this.descriptionId }, h("swirl-inline-error", { key: '50ea19db5f1efb26697c35f5a79f38d2847c7a97', message: this.errorMessage, size: "s" })))))));
|
|
167
168
|
}
|
|
168
169
|
static get is() { return "swirl-form-control"; }
|
|
169
170
|
static get encapsulation() { return "scoped"; }
|