@getflip/swirl-components 0.50.1 → 0.50.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/components.json +1 -1
- package/dist/cjs/swirl-date-input.cjs.entry.js +3 -2
- package/dist/collection/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/collection/components/swirl-date-input/swirl-date-input.js +3 -2
- package/dist/components/assets/pdfjs/pdf.worker.min.js +1 -1
- package/dist/components/swirl-date-input.js +3 -2
- package/dist/esm/swirl-date-input.entry.js +4 -3
- package/dist/swirl-components/p-e5fa6ac6.entry.js +7 -0
- package/dist/swirl-components/swirl-components.esm.js +1 -1
- package/dist/types/components/swirl-date-input/swirl-date-input.d.ts +1 -0
- package/package.json +1 -1
- package/dist/swirl-components/p-3955db23.entry.js +0 -7
package/components.json
CHANGED
|
@@ -6316,7 +6316,7 @@ const SwirlDateInput = class {
|
|
|
6316
6316
|
this.iconSize = 24;
|
|
6317
6317
|
}
|
|
6318
6318
|
componentWillLoad() {
|
|
6319
|
-
const index = document.querySelectorAll("swirl-date-input").
|
|
6319
|
+
const index = Array.from(document.querySelectorAll("swirl-date-input")).indexOf(this.el);
|
|
6320
6320
|
this.id = `swirl-date-input-${index}`;
|
|
6321
6321
|
}
|
|
6322
6322
|
componentDidLoad() {
|
|
@@ -6362,8 +6362,9 @@ const SwirlDateInput = class {
|
|
|
6362
6362
|
const className = index.classnames("date-input", {
|
|
6363
6363
|
"date-input--inline": this.inline,
|
|
6364
6364
|
});
|
|
6365
|
-
return (index$1.h(index$1.Host, null, index$1.h("div", { class: className }, index$1.h("input", { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "date-input__input", disabled: this.disabled, id: this.id, onClick: this.onClick, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, required: this.required, type: "text", value: displayValue }), index$1.h("button", { "aria-label": this.datePickerTriggerLabel, class: "date-input__date-picker-button", disabled: this.disabled, id: `${this.id}-trigger`, type: "button" }, index$1.h("swirl-icon-today", { size: this.iconSize }))), !this.disabled && (index$1.h("swirl-popover", { animation: "scale-in-y", label: this.datePickerLabel, placement: "bottom-end", popoverId:
|
|
6365
|
+
return (index$1.h(index$1.Host, null, index$1.h("div", { class: className }, index$1.h("input", { "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "date-input__input", disabled: this.disabled, id: this.id, onClick: this.onClick, onFocus: this.onFocus, onInput: this.onInput, placeholder: this.placeholder, required: this.required, type: "text", value: displayValue }), index$1.h("button", { "aria-label": this.datePickerTriggerLabel, class: "date-input__date-picker-button", disabled: this.disabled, id: `${this.id}-trigger`, type: "button" }, index$1.h("swirl-icon-today", { size: this.iconSize }))), !this.disabled && (index$1.h("swirl-popover", { animation: "scale-in-y", label: this.datePickerLabel, placement: "bottom-end", popoverId: `popover-${this.id}`, ref: (el) => (this.pickerPopover = el), trigger: `${this.id}-trigger` }, index$1.h("swirl-date-picker", { labels: this.labels, locale: this.locale, onValueChange: this.onPickDate, value: dateValue })))));
|
|
6366
6366
|
}
|
|
6367
|
+
get el() { return index$1.getElement(this); }
|
|
6367
6368
|
static get watchers() { return {
|
|
6368
6369
|
"format": ["watchFormat"]
|
|
6369
6370
|
}; }
|