smoothly 1.74.0 → 1.75.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 +9 -4
- package/dist/cjs/smoothly-app_103.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/date/text/index.js +9 -4
- package/dist/collection/components/input/date/text/index.js.map +1 -1
- package/dist/components/{p-90c05618.js → p-0cb2f052.js} +3 -3
- package/dist/components/{p-90c05618.js.map → p-0cb2f052.js.map} +1 -1
- package/dist/components/{p-3c0c8228.js → p-314ad70d.js} +3 -3
- package/dist/components/{p-3c0c8228.js.map → p-314ad70d.js.map} +1 -1
- package/dist/components/{p-ce3cb6bd.js → p-41e1bfbc.js} +2 -2
- package/dist/components/{p-ce3cb6bd.js.map → p-41e1bfbc.js.map} +1 -1
- package/dist/components/{p-3edc8c09.js → p-4cae3325.js} +3 -3
- package/dist/components/{p-3edc8c09.js.map → p-4cae3325.js.map} +1 -1
- package/dist/components/{p-939863c1.js → p-523ea0fd.js} +4 -4
- package/dist/components/{p-939863c1.js.map → p-523ea0fd.js.map} +1 -1
- package/dist/components/{p-bba9babd.js → p-67a1f9b0.js} +10 -5
- package/dist/components/p-67a1f9b0.js.map +1 -0
- package/dist/components/{p-cae36d2c.js → p-781fc527.js} +10 -10
- package/dist/components/{p-cae36d2c.js.map → p-781fc527.js.map} +1 -1
- package/dist/components/{p-688838d0.js → p-7afda8b1.js} +7 -7
- package/dist/components/{p-688838d0.js.map → p-7afda8b1.js.map} +1 -1
- package/dist/components/{p-8ea4e05c.js → p-8021df9b.js} +2 -2
- package/dist/components/{p-8ea4e05c.js.map → p-8021df9b.js.map} +1 -1
- package/dist/components/{p-cfd7cf2a.js → p-8638c169.js} +3 -3
- package/dist/components/{p-cfd7cf2a.js.map → p-8638c169.js.map} +1 -1
- package/dist/components/{p-5772b496.js → p-87cf0f2a.js} +4 -4
- package/dist/components/{p-5772b496.js.map → p-87cf0f2a.js.map} +1 -1
- package/dist/components/{p-1e6c51c4.js → p-a7782c76.js} +4 -4
- package/dist/components/{p-1e6c51c4.js.map → p-a7782c76.js.map} +1 -1
- package/dist/components/{p-46d70f6e.js → p-c9907679.js} +4 -4
- package/dist/components/{p-46d70f6e.js.map → p-c9907679.js.map} +1 -1
- package/dist/components/{p-5f79099b.js → p-e15f357f.js} +4 -4
- package/dist/components/{p-5f79099b.js.map → p-e15f357f.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 +9 -4
- package/dist/esm/smoothly-app_103.entry.js.map +1 -1
- package/dist/smoothly/p-103b70cd.entry.js +2 -0
- package/dist/smoothly/p-103b70cd.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input/date/text/index.d.ts +2 -1
- package/package.json +1 -1
- package/dist/components/p-bba9babd.js.map +0 -1
- package/dist/smoothly/p-9f69f6fe.entry.js +0 -2
- package/dist/smoothly/p-9f69f6fe.entry.js.map +0 -1
|
@@ -2146,11 +2146,13 @@ const SmoothlyInputDateRangeText = class {
|
|
|
2146
2146
|
this.focusedIndex = undefined;
|
|
2147
2147
|
}
|
|
2148
2148
|
componentWillLoad() {
|
|
2149
|
+
var _a;
|
|
2149
2150
|
this.order = DateFormat$1.Order.fromLocale(this.locale);
|
|
2150
2151
|
this.separator = DateFormat$1.Separator.fromLocale(this.locale);
|
|
2152
|
+
this.parts = (_a = DateFormat$1.Parts.fromDate(this.value)) !== null && _a !== void 0 ? _a : {};
|
|
2151
2153
|
}
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
+
componentDidLoad() {
|
|
2155
|
+
this.updateInputs();
|
|
2154
2156
|
}
|
|
2155
2157
|
partsHandler() {
|
|
2156
2158
|
const value = DateFormat$1.Parts.toDate(this.parts);
|
|
@@ -2168,8 +2170,11 @@ const SmoothlyInputDateRangeText = class {
|
|
|
2168
2170
|
this.setAllParts(parts);
|
|
2169
2171
|
}
|
|
2170
2172
|
setAllParts(parts) {
|
|
2171
|
-
var _a, _b, _c;
|
|
2172
2173
|
this.parts = parts !== null && parts !== void 0 ? parts : {};
|
|
2174
|
+
this.updateInputs();
|
|
2175
|
+
}
|
|
2176
|
+
updateInputs() {
|
|
2177
|
+
var _a, _b, _c;
|
|
2173
2178
|
const yearIndex = this.order.indexOf("Y");
|
|
2174
2179
|
const monthIndex = this.order.indexOf("M");
|
|
2175
2180
|
const dayIndex = this.order.indexOf("D");
|
|
@@ -2306,7 +2311,7 @@ const SmoothlyInputDateRangeText = class {
|
|
|
2306
2311
|
}
|
|
2307
2312
|
}
|
|
2308
2313
|
render() {
|
|
2309
|
-
return (index.h(index.Host, { key: '
|
|
2314
|
+
return (index.h(index.Host, { key: 'f6e89ed9494579767c13e503d862f722a1ec23fa', class: { "has-text": Object.values(this.parts).some(part => !!part) } }, DateFormat$1.Order.toArray(this.order).map((part, index$1) => {
|
|
2310
2315
|
var _a;
|
|
2311
2316
|
return (index.h("span", { onClick: () => !this.readonly && !this.disabled && this.setFocus(index$1) }, index.h("span", { class: {
|
|
2312
2317
|
"smoothly-date-text-part": true,
|