@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2025-07-24T10:48:47",
2
+ "timestamp": "2025-07-25T11:21:45",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.35.0",
@@ -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: 'e9bba077c4727f69e1d1aa0ee48d1b92745a6db9', onFocusin: this.onFocusIn, onFocusout: this.onFocusOut, onKeyDown: this.onKeyDown }, index.h("div", { key: '706cf3014c96c0db25355883afc560e4761a783f', class: className, role: "group" }, index.h("span", { key: '56abf2e9ac19c24812ea1f5998834424d03af6c5', class: "form-control__controls" }, index.h("span", { key: '7c68e7873810095ae76f4a332d11924ebd35eeab', class: "form-control__prefix" }, index.h("slot", { key: '137fd96e2ac69e89793028af903a49df92b8633d', name: "prefix" })), index.h(LabelTag, { key: 'fb0f236b64b9199725cf756833171e4560679eb3', class: "form-control__label", onClick: this.onLabelClick }, hasIcon && (index.h("span", { key: '3f69adbbee8a7c6a37c6d7538dc62785cf306a43', class: "form-control__icon" }, index.h("swirl-icon", { key: 'd47ee5a18b70bb87a888e4c3c2db99955df5e83f', glyph: this.icon, size: 20 }))), index.h("span", { key: '18a45bae4cb7985c94610a9cb1a349c13bf47ea6', class: "form-control__label-text", id: this.labelId }, this.label, this.secondaryLabel && this.labelPosition === "outside" && (index.h("span", { key: 'a551277cec40612834e96225500c76dc197b3ce9', class: "form-control__secondary-label" }, this.secondaryLabel)), this.tooltip && (index.h("span", { key: '937275de9942d834163ba334f82b1968f8d0125b', class: "form-control__tooltip" }, index.h("swirl-tooltip", { key: 'be66c4020db1957240208cb11359c5330c765c80', content: this.tooltip, positioning: "fixed", position: "top" }, index.h("swirl-icon-help", { key: '5bb591593eb1919e30f928369d1215de7a2d06b7', size: 16, tabindex: "0" }))))), index.h("span", { key: '121f03f9b411bdfd604ac24c14aa7082dd60e72a', class: "form-control__input" }, index.h("slot", { key: '52f8440fe63cf3db27fd122de0eb0f95c084732d' })))), showDescription && (index.h("span", { key: '087cc0fd604e7e73d22846c44f8ebe5e316d5bd4', class: "form-control__description", id: this.descriptionId }, this.description)), index.h("span", { key: 'c8a436585552e4d9bf5c160d6b065ec5601c9a4a', "aria-live": "polite" }, showErrorMessage && (index.h("span", { key: 'd43cfb726b3a6c76b846169a63bf4cf421995770', class: "form-control__error-message", id: this.descriptionId }, index.h("swirl-inline-error", { key: '080f8c19590a648e155017a36f1f1c2607879ef4', message: this.errorMessage, size: "s" })))))));
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: 'e9bba077c4727f69e1d1aa0ee48d1b92745a6db9', onFocusin: this.onFocusIn, onFocusout: this.onFocusOut, onKeyDown: this.onKeyDown }, h("div", { key: '706cf3014c96c0db25355883afc560e4761a783f', class: className, role: "group" }, h("span", { key: '56abf2e9ac19c24812ea1f5998834424d03af6c5', class: "form-control__controls" }, h("span", { key: '7c68e7873810095ae76f4a332d11924ebd35eeab', class: "form-control__prefix" }, h("slot", { key: '137fd96e2ac69e89793028af903a49df92b8633d', name: "prefix" })), h(LabelTag, { key: 'fb0f236b64b9199725cf756833171e4560679eb3', class: "form-control__label", onClick: this.onLabelClick }, hasIcon && (h("span", { key: '3f69adbbee8a7c6a37c6d7538dc62785cf306a43', class: "form-control__icon" }, h("swirl-icon", { key: 'd47ee5a18b70bb87a888e4c3c2db99955df5e83f', glyph: this.icon, size: 20 }))), h("span", { key: '18a45bae4cb7985c94610a9cb1a349c13bf47ea6', class: "form-control__label-text", id: this.labelId }, this.label, this.secondaryLabel && this.labelPosition === "outside" && (h("span", { key: 'a551277cec40612834e96225500c76dc197b3ce9', class: "form-control__secondary-label" }, this.secondaryLabel)), this.tooltip && (h("span", { key: '937275de9942d834163ba334f82b1968f8d0125b', class: "form-control__tooltip" }, h("swirl-tooltip", { key: 'be66c4020db1957240208cb11359c5330c765c80', content: this.tooltip, positioning: "fixed", position: "top" }, h("swirl-icon-help", { key: '5bb591593eb1919e30f928369d1215de7a2d06b7', size: 16, tabindex: "0" }))))), h("span", { key: '121f03f9b411bdfd604ac24c14aa7082dd60e72a', class: "form-control__input" }, h("slot", { key: '52f8440fe63cf3db27fd122de0eb0f95c084732d' })))), showDescription && (h("span", { key: '087cc0fd604e7e73d22846c44f8ebe5e316d5bd4', class: "form-control__description", id: this.descriptionId }, this.description)), h("span", { key: 'c8a436585552e4d9bf5c160d6b065ec5601c9a4a', "aria-live": "polite" }, showErrorMessage && (h("span", { key: 'd43cfb726b3a6c76b846169a63bf4cf421995770', class: "form-control__error-message", id: this.descriptionId }, h("swirl-inline-error", { key: '080f8c19590a648e155017a36f1f1c2607879ef4', message: this.errorMessage, size: "s" })))))));
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"; }