smoothly 1.76.0 → 1.78.0
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/cjs/smoothly-app_103.cjs.entry.js +15 -6
- package/dist/cjs/smoothly-app_103.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/date/range/index.js +15 -5
- package/dist/collection/components/input/date/range/index.js.map +1 -1
- package/dist/collection/components/input/date/text/index.js +1 -1
- package/dist/collection/components/input/date/text/index.js.map +1 -1
- package/dist/components/{p-c1f4b925.js → p-141753ab.js} +4 -4
- package/dist/components/{p-c1f4b925.js.map → p-141753ab.js.map} +1 -1
- package/dist/components/{p-7446e68b.js → p-158d1618.js} +10 -10
- package/dist/components/{p-7446e68b.js.map → p-158d1618.js.map} +1 -1
- package/dist/components/{p-0d6dff46.js → p-4066ba75.js} +3 -3
- package/dist/components/{p-0d6dff46.js.map → p-4066ba75.js.map} +1 -1
- package/dist/components/{p-7c5817bb.js → p-6ab34aa0.js} +7 -7
- package/dist/components/{p-7c5817bb.js.map → p-6ab34aa0.js.map} +1 -1
- package/dist/components/{p-a396d0bd.js → p-787944b1.js} +2 -2
- package/dist/components/p-787944b1.js.map +1 -0
- package/dist/components/{p-0f3588fe.js → p-8e4dc479.js} +4 -4
- package/dist/components/{p-0f3588fe.js.map → p-8e4dc479.js.map} +1 -1
- package/dist/components/{p-a28d2ee0.js → p-920670b4.js} +3 -3
- package/dist/components/{p-a28d2ee0.js.map → p-920670b4.js.map} +1 -1
- package/dist/components/{p-9b3fd2ae.js → p-99ec6195.js} +4 -4
- package/dist/components/{p-9b3fd2ae.js.map → p-99ec6195.js.map} +1 -1
- package/dist/components/{p-6c6672ff.js → p-ac15cc7c.js} +17 -7
- package/dist/components/p-ac15cc7c.js.map +1 -0
- package/dist/components/{p-992a6946.js → p-acdae501.js} +3 -3
- package/dist/components/{p-992a6946.js.map → p-acdae501.js.map} +1 -1
- package/dist/components/{p-6a388393.js → p-b2ff62eb.js} +2 -2
- package/dist/components/{p-6a388393.js.map → p-b2ff62eb.js.map} +1 -1
- package/dist/components/{p-6ac528cf.js → p-bdfc41a3.js} +4 -4
- package/dist/components/{p-6ac528cf.js.map → p-bdfc41a3.js.map} +1 -1
- package/dist/components/{p-c171aeb7.js → p-d7c4e618.js} +3 -3
- package/dist/components/{p-c171aeb7.js.map → p-d7c4e618.js.map} +1 -1
- package/dist/components/{p-90db5f7f.js → p-d980745d.js} +4 -4
- package/dist/components/{p-90db5f7f.js.map → p-d980745d.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +14 -14
- package/dist/components/smoothly-date-text.js +1 -1
- package/dist/components/smoothly-form-demo-date-range.js +1 -1
- package/dist/components/smoothly-form-demo-date.js +1 -1
- package/dist/components/smoothly-form-demo-pet.js +1 -1
- package/dist/components/smoothly-form-demo-schedule.js +1 -1
- package/dist/components/smoothly-form-demo-transparent.js +1 -1
- package/dist/components/smoothly-form-demo-typed.js +1 -1
- package/dist/components/smoothly-form-demo.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +3 -3
- package/dist/components/smoothly-input-date-demo.js +1 -1
- package/dist/components/smoothly-input-date-range.js +1 -1
- package/dist/components/smoothly-input-date.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo-user-input.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/esm/smoothly-app_103.entry.js +15 -6
- package/dist/esm/smoothly-app_103.entry.js.map +1 -1
- package/dist/smoothly/p-4922b5d8.entry.js +2 -0
- package/dist/smoothly/p-4922b5d8.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-6c6672ff.js.map +0 -1
- package/dist/components/p-a396d0bd.js.map +0 -1
- package/dist/smoothly/p-edc714b6.entry.js +0 -2
- package/dist/smoothly/p-edc714b6.entry.js.map +0 -1
|
@@ -2331,7 +2331,7 @@ const SmoothlyInputDateRangeText = class {
|
|
|
2331
2331
|
return (index.h("span", { onClick: () => !this.readonly && !this.disabled && this.setFocus(index$1) }, index.h("span", { class: {
|
|
2332
2332
|
"smoothly-date-text-part": true,
|
|
2333
2333
|
"is-complete": DateFormat$1.Part.isComplete(part, this.parts[part]),
|
|
2334
|
-
}, onFocus: () => (this.focusedIndex = index$1), onBlur: () => (this.focusedIndex = undefined), onKeyDown: (e) => this.keyDownHandler(e), key: index$1, ref: el => (this.partElements[index$1] = el), contenteditable: !(this.readonly || this.disabled) }), index.h("span", { class: "guide" }, DateFormat$1.Part.getGuide(part, (_a = this.parts[part]) === null || _a === void 0 ? void 0 : _a.length)), index$1 < 2 && index.h("span", { class: "smoothly-date-separator" }, this.separator)));
|
|
2334
|
+
}, onFocus: () => (this.focusedIndex = index$1), onBlur: () => (this.focusedIndex = undefined), onKeyDown: (e) => this.keyDownHandler(e), key: index$1, ref: el => (this.partElements[index$1] = el), contenteditable: !(this.readonly || this.disabled), inputmode: "numeric" }), index.h("span", { class: "guide" }, DateFormat$1.Part.getGuide(part, (_a = this.parts[part]) === null || _a === void 0 ? void 0 : _a.length)), index$1 < 2 && index.h("span", { class: "smoothly-date-separator" }, this.separator)));
|
|
2335
2335
|
})));
|
|
2336
2336
|
}
|
|
2337
2337
|
get element() { return index.getElement(this); }
|
|
@@ -10225,10 +10225,19 @@ const SmoothlyInputDateRange = class {
|
|
|
10225
10225
|
this.open = !this.open || includesTextElement;
|
|
10226
10226
|
}
|
|
10227
10227
|
async onSmoothlyDateTextChange(event, startOrEnd) {
|
|
10228
|
-
var _a;
|
|
10228
|
+
var _a, _b, _c;
|
|
10229
10229
|
event.stopPropagation();
|
|
10230
10230
|
const newValue = (_a = event.detail) !== null && _a !== void 0 ? _a : undefined;
|
|
10231
|
-
|
|
10231
|
+
const start = startOrEnd == "start" ? newValue : this.start;
|
|
10232
|
+
const end = startOrEnd == "end" ? newValue : this.end;
|
|
10233
|
+
if (TimeZone.Date.is(start) && TimeZone.Date.is(end) && start > end) {
|
|
10234
|
+
this.start = end;
|
|
10235
|
+
this.end = start;
|
|
10236
|
+
(_b = this.startTextElement) === null || _b === void 0 ? void 0 : _b.setValue(this.start);
|
|
10237
|
+
(_c = this.endTextElement) === null || _c === void 0 ? void 0 : _c.setValue(this.end);
|
|
10238
|
+
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
10239
|
+
}
|
|
10240
|
+
else if (this[startOrEnd] != newValue) {
|
|
10232
10241
|
this[startOrEnd] = newValue;
|
|
10233
10242
|
this.smoothlyUserInput.emit({ name: this.name, value: await this.getValue() });
|
|
10234
10243
|
}
|
|
@@ -10270,15 +10279,15 @@ const SmoothlyInputDateRange = class {
|
|
|
10270
10279
|
this.smoothlyInput.emit({ [this.name]: undefined });
|
|
10271
10280
|
}
|
|
10272
10281
|
render() {
|
|
10273
|
-
return (index.h(index.Host, { key: '
|
|
10282
|
+
return (index.h(index.Host, { key: 'e679040ae05b729f921a4ee33f0d8080e6dcff73', tabindex: this.disabled ? undefined : 0, class: {
|
|
10274
10283
|
"has-value": !!(this.start || this.end),
|
|
10275
10284
|
"has-text": !!(this.startHasText || this.endHasText),
|
|
10276
10285
|
"floating-label": this.alwaysShowGuide,
|
|
10277
|
-
} }, index.h("span", { key: '
|
|
10286
|
+
} }, index.h("span", { key: '459c0e53a0f225c2a3c6f2b283e0af03a178e99f', class: "smoothly-date-range-input-part", onClick: (e) => this.onClick(e) }, index.h("slot", { key: '9919d8355ce88285435e525c1b697ddf4f6cec77', name: "start" }), index.h("label", { key: 'd84eb3506216d16187c3a61ea260941c17bfd22d', class: "label float-on-focus" }, index.h("slot", { key: '6d9728f0e13d1b3f18d66d19d7ff3adfa6b9557a' })), this.placeholder && index.h("span", { key: 'a46d828926e3e41dc4557acecd597655f0772f41', class: "smoothly-date-range-placeholder" }, this.placeholder), index.h("smoothly-date-text", { key: 'e4b593d68430c58ab9fe2f7778addc71018ca581', ref: el => (this.startTextElement = el), class: "start-date-text", locale: this.locale, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.startHasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onSmoothlyDateTextChange(e, "start")), onSmoothlyDateTextNext: e => { var _a; return (e.stopPropagation(), (_a = this.endTextElement) === null || _a === void 0 ? void 0 : _a.select()); }, onSmoothlyDateTextDone: e => {
|
|
10278
10287
|
var _a, _b;
|
|
10279
10288
|
return (e.stopPropagation(),
|
|
10280
10289
|
this.end ? ((_a = this.startTextElement) === null || _a === void 0 ? void 0 : _a.deselect(), (this.open = false)) : (_b = this.endTextElement) === null || _b === void 0 ? void 0 : _b.select());
|
|
10281
|
-
}, value: this.start, readonly: this.readonly, disabled: this.disabled, invalid: this.invalid, showLabel: this.showLabel }), index.h("span", { key: '
|
|
10290
|
+
}, value: this.start, readonly: this.readonly, disabled: this.disabled, invalid: this.invalid, showLabel: this.showLabel }), index.h("span", { key: '8202a1af32cb67caf4cabddbaf80f2775f34277a', class: "smoothly-date-range-separator" }, " \u2013 "), index.h("smoothly-date-text", { key: 'eb43cd46ca12848bea21af6ae1fe65a5e84d457b', ref: el => (this.endTextElement = el), class: "end-date-text", locale: this.locale, onSmoothlyDateTextHasText: e => (e.stopPropagation(), (this.endHasText = e.detail)), onSmoothlyDateTextFocusChange: e => (e.stopPropagation(), (this.hasFocus = e.detail)), onSmoothlyDateHasPartialDate: e => { var _a; return (e.stopPropagation(), (_a = this.calendarElement) === null || _a === void 0 ? void 0 : _a.jumpTo(e.detail)); }, onSmoothlyDateTextChange: e => (e.stopPropagation(), this.onSmoothlyDateTextChange(e, "end")), onSmoothlyDateTextPrevious: e => { var _a; return (e.stopPropagation(), (_a = this.startTextElement) === null || _a === void 0 ? void 0 : _a.select("end")); }, onSmoothlyDateTextNext: e => e.stopPropagation(), onSmoothlyDateTextDone: e => { var _a; return (e.stopPropagation(), (_a = this.endTextElement) === null || _a === void 0 ? void 0 : _a.deselect(), (this.open = false)); }, value: this.end, readonly: this.readonly, disabled: this.disabled, invalid: this.invalid, showLabel: this.showLabel })), index.h("span", { key: '422516b5f919cf0c9cd0b5480e2b4a506894d01b', class: "icons" }, index.h("slot", { key: '6083b435efed3bbc24239ef4a67a8a7398544a76', name: "end" })), this.open && (index.h("smoothly-calendar", { key: '4890cb45bdda6451a186f5bc0de8cb84dbe2425e', ref: el => (this.calendarElement = el), doubleInput: true, onSmoothlyValueChange: e => e.stopPropagation(), onSmoothlyStartChange: e => (e.stopPropagation(), (this.start = e.detail)), onSmoothlyEndChange: e => (e.stopPropagation(), (this.end = e.detail)), onSmoothlyDateSet: e => e.stopPropagation(), onSmoothlyDateRangeSet: e => {
|
|
10282
10291
|
e.stopPropagation();
|
|
10283
10292
|
this.open = false;
|
|
10284
10293
|
this.smoothlyInput.emit({ [this.name]: e.detail });
|