smoothly 1.1.1-alpha.124 → 1.1.1-alpha.126
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_102.cjs.entry.js +11 -20
- package/dist/cjs/smoothly-app_102.cjs.entry.js.map +1 -1
- package/dist/collection/components/form/index.js +7 -15
- package/dist/collection/components/form/index.js.map +1 -1
- package/dist/collection/components/load-more/index.js +4 -5
- package/dist/collection/components/load-more/index.js.map +1 -1
- package/dist/components/{p-dcea6fc0.js → p-0369b593.js} +2 -2
- package/dist/components/{p-dcea6fc0.js.map → p-0369b593.js.map} +1 -1
- package/dist/components/{p-eb9aa7b0.js → p-08f3b86f.js} +2 -2
- package/dist/components/{p-eb9aa7b0.js.map → p-08f3b86f.js.map} +1 -1
- package/dist/components/{p-4e59eafb.js → p-3aa39b9c.js} +3 -3
- package/dist/components/{p-4e59eafb.js.map → p-3aa39b9c.js.map} +1 -1
- package/dist/components/{p-6f0b4a9e.js → p-4dc671e0.js} +2 -2
- package/dist/components/{p-6f0b4a9e.js.map → p-4dc671e0.js.map} +1 -1
- package/dist/components/{p-d2a856e0.js → p-60015229.js} +2 -2
- package/dist/components/{p-d2a856e0.js.map → p-60015229.js.map} +1 -1
- package/dist/components/{p-a6d1ba9a.js → p-623f8efb.js} +11 -11
- package/dist/components/{p-a6d1ba9a.js.map → p-623f8efb.js.map} +1 -1
- package/dist/components/{p-45f960ce.js → p-63dcb544.js} +2 -2
- package/dist/components/{p-45f960ce.js.map → p-63dcb544.js.map} +1 -1
- package/dist/components/{p-936abccd.js → p-6e102157.js} +3 -3
- package/dist/components/{p-936abccd.js.map → p-6e102157.js.map} +1 -1
- package/dist/components/{p-381a81df.js → p-72c39b62.js} +2 -2
- package/dist/components/{p-381a81df.js.map → p-72c39b62.js.map} +1 -1
- package/dist/components/{p-09f36784.js → p-761e56b9.js} +3 -3
- package/dist/components/{p-09f36784.js.map → p-761e56b9.js.map} +1 -1
- package/dist/components/{p-b0e46f97.js → p-7927e783.js} +2 -2
- package/dist/components/{p-b0e46f97.js.map → p-7927e783.js.map} +1 -1
- package/dist/components/{p-8fc23ebd.js → p-8b896547.js} +3 -3
- package/dist/components/{p-8fc23ebd.js.map → p-8b896547.js.map} +1 -1
- package/dist/components/{p-4e260d4c.js → p-8f3e12fd.js} +3 -3
- package/dist/components/{p-4e260d4c.js.map → p-8f3e12fd.js.map} +1 -1
- package/dist/components/{p-7030d7a5.js → p-ae6a5e2f.js} +3 -3
- package/dist/components/{p-7030d7a5.js.map → p-ae6a5e2f.js.map} +1 -1
- package/dist/components/{p-7c16f4f6.js → p-b2b4500c.js} +4 -4
- package/dist/components/{p-7c16f4f6.js.map → p-b2b4500c.js.map} +1 -1
- package/dist/components/{p-30e762d6.js → p-c5772bed.js} +3 -3
- package/dist/components/{p-30e762d6.js.map → p-c5772bed.js.map} +1 -1
- package/dist/components/{p-8879cf74.js → p-ce58eeea.js} +6 -6
- package/dist/components/{p-8879cf74.js.map → p-ce58eeea.js.map} +1 -1
- package/dist/components/{p-7af74bd1.js → p-d71a9204.js} +2 -2
- package/dist/components/{p-7af74bd1.js.map → p-d71a9204.js.map} +1 -1
- package/dist/components/{p-c8dfdfba.js → p-e4fff042.js} +7 -7
- package/dist/components/{p-c8dfdfba.js.map → p-e4fff042.js.map} +1 -1
- package/dist/components/{p-44dd8d4e.js → p-e562be9a.js} +8 -16
- package/dist/components/p-e562be9a.js.map +1 -0
- package/dist/components/{p-fac7618e.js → p-ef46b28c.js} +3 -3
- package/dist/components/{p-fac7618e.js.map → p-ef46b28c.js.map} +1 -1
- package/dist/components/{p-dc5c8727.js → p-f7e78f6f.js} +5 -6
- package/dist/components/p-f7e78f6f.js.map +1 -0
- package/dist/components/{p-740ac43d.js → p-f8192e93.js} +2 -2
- package/dist/components/{p-740ac43d.js.map → p-f8192e93.js.map} +1 -1
- package/dist/components/{p-4ac25893.js → p-f844450a.js} +6 -6
- package/dist/components/{p-4ac25893.js.map → p-f844450a.js.map} +1 -1
- package/dist/components/smoothly-app-demo.js +24 -24
- package/dist/components/smoothly-app-room.js +1 -1
- package/dist/components/smoothly-form-demo-all.js +1 -1
- package/dist/components/smoothly-form-demo-card.js +1 -1
- package/dist/components/smoothly-form-demo-controlled.js +1 -1
- package/dist/components/smoothly-form-demo-login.js +1 -1
- package/dist/components/smoothly-form-demo-prices.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-form.js +1 -1
- package/dist/components/smoothly-input-checkbox-demo.js +3 -3
- package/dist/components/smoothly-input-clear.js +1 -1
- package/dist/components/smoothly-input-demo-standard.js +1 -1
- package/dist/components/smoothly-input-demo.js +1 -1
- package/dist/components/smoothly-input-range-demo.js +1 -1
- package/dist/components/smoothly-input-reset.js +1 -1
- package/dist/components/smoothly-lazy.js +1 -1
- package/dist/components/smoothly-load-more.js +1 -1
- package/dist/components/smoothly-next-demo-colspan.js +1 -1
- package/dist/components/smoothly-next-demo-group.js +1 -1
- package/dist/components/smoothly-next-demo.js +1 -1
- package/dist/components/smoothly-next-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-picker-demo.js +2 -2
- package/dist/components/smoothly-table-demo-filtered.js +1 -1
- package/dist/components/smoothly-table-demo.js +1 -1
- package/dist/components/smoothly-table-testing.js +1 -1
- package/dist/esm/smoothly-app_102.entry.js +11 -20
- package/dist/esm/smoothly-app_102.entry.js.map +1 -1
- package/dist/smoothly/p-0b49773d.entry.js +2 -0
- package/dist/smoothly/p-0b49773d.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/load-more/index.d.ts +3 -3
- package/package.json +1 -1
- package/dist/components/p-44dd8d4e.js.map +0 -1
- package/dist/components/p-dc5c8727.js.map +0 -1
- package/dist/smoothly/p-dcceb8e7.entry.js +0 -2
- package/dist/smoothly/p-dcceb8e7.entry.js.map +0 -1
|
@@ -8235,38 +8235,30 @@ const SmoothlyForm = class {
|
|
|
8235
8235
|
});
|
|
8236
8236
|
if (await this.processing) {
|
|
8237
8237
|
this.type == "create" && (await this.clear());
|
|
8238
|
-
this.setInitialValue();
|
|
8239
|
-
this.readonlyAtLoad && this.edit(!this.readonlyAtLoad);
|
|
8238
|
+
await this.setInitialValue();
|
|
8239
|
+
this.readonlyAtLoad && (await this.edit(!this.readonlyAtLoad));
|
|
8240
8240
|
}
|
|
8241
8241
|
this.processing = undefined;
|
|
8242
8242
|
}
|
|
8243
8243
|
async clear() {
|
|
8244
|
-
this.inputs.
|
|
8245
|
-
Clearable.is(input) && input.clear();
|
|
8246
|
-
});
|
|
8244
|
+
await Promise.all([...this.inputs.values()].map(async (input) => Clearable.is(input) && input.clear()));
|
|
8247
8245
|
this.smoothlyFormClear.emit();
|
|
8248
8246
|
}
|
|
8249
8247
|
async edit(editable) {
|
|
8250
|
-
this.inputs.
|
|
8251
|
-
Editable.Element.type.is(input) && input.edit(editable);
|
|
8252
|
-
});
|
|
8248
|
+
await Promise.all([...this.inputs.values()].map(async (input) => Editable.Element.type.is(input) && input.edit(editable)));
|
|
8253
8249
|
this.readonly = !editable;
|
|
8254
8250
|
this.smoothlyFormEdit.emit(editable);
|
|
8255
8251
|
}
|
|
8256
8252
|
async reset() {
|
|
8257
|
-
this.inputs.
|
|
8258
|
-
Editable.Element.type.is(input) && input.reset();
|
|
8259
|
-
});
|
|
8253
|
+
await Promise.all([...this.inputs.values()].map(input => Editable.Element.type.is(input) && input.reset()));
|
|
8260
8254
|
this.changed = [...this.inputs.values()].some(input => (Editable.type.is(input) ? input.changed : true));
|
|
8261
8255
|
this.smoothlyFormReset.emit();
|
|
8262
8256
|
}
|
|
8263
8257
|
async setInitialValue() {
|
|
8264
|
-
this.inputs.
|
|
8265
|
-
Editable.Element.type.is(input) && input.setInitialValue();
|
|
8266
|
-
});
|
|
8258
|
+
await Promise.all([...this.inputs.values()].map(input => Editable.Element.type.is(input) && input.setInitialValue()));
|
|
8267
8259
|
}
|
|
8268
8260
|
render() {
|
|
8269
|
-
return (index.h(index.Host, { key: '
|
|
8261
|
+
return (index.h(index.Host, { key: '97ee8a40e7386fe2ad3a1da814b1363a170b320a' }, index.h("smoothly-spinner", { key: 'f6b77c3523767de3f0882f013338797e79bafcf7', overlay: true, hidden: !this.processing }), index.h("form", { key: 'c70728e0b226fce6b4ef44e9121a521a07a4a9e3', onSubmit: !this.prevent ? undefined : e => e.preventDefault(), name: this.name }, index.h("fieldset", { key: 'ca247697a0321695c043813f8c2a851a3a3a2fec' }, index.h("slot", { key: '1bf91f4f24005250101236cf238197cb8b495d53' })), index.h("div", { key: '89523e48acb1afb3cd83beca45302c2ff1bedb39' }, index.h("slot", { key: '2e55d9dcb40bd6ed062ca0b277f1db5a98f6b470', name: "clear" }), index.h("slot", { key: '1a1e116e285080004b6eea49163613c9649462f1', name: "edit" }), index.h("slot", { key: 'a9dbd1e4d227ad34250637df138e90cd19a137e4', name: "reset" }), index.h("slot", { key: '8cd8db40301db27c792df0b7ed4be08588efd148', name: "delete" }), index.h("slot", { key: '1dc658e840aa658a77fab2eaafdec4ece5ac0f9b', name: "submit" })))));
|
|
8270
8262
|
}
|
|
8271
8263
|
get element() { return index.getElement(this); }
|
|
8272
8264
|
static get watchers() { return {
|
|
@@ -10783,6 +10775,8 @@ const LoadMore = class {
|
|
|
10783
10775
|
}
|
|
10784
10776
|
connectedCallback() {
|
|
10785
10777
|
var _a;
|
|
10778
|
+
this.observer = new IntersectionObserver((entries, observer) => this.observationHandler(observer, entries));
|
|
10779
|
+
this.observer.observe(this.element);
|
|
10786
10780
|
if (this.triggerMode == "scroll") {
|
|
10787
10781
|
this.inView && this.smoothlyLoadMore.emit(this.name);
|
|
10788
10782
|
if (this.multiple || (!this.multiple && !this.inView)) {
|
|
@@ -10794,10 +10788,7 @@ const LoadMore = class {
|
|
|
10794
10788
|
disconnectedCallback() {
|
|
10795
10789
|
var _a;
|
|
10796
10790
|
(_a = this.scrollableParent) === null || _a === void 0 ? void 0 : _a.removeEventListener("scroll", this.checkInView.bind(this));
|
|
10797
|
-
|
|
10798
|
-
componentWillLoad() {
|
|
10799
|
-
const observer = new IntersectionObserver((entries, observer) => this.observationHandler(observer, entries));
|
|
10800
|
-
observer.observe(this.element);
|
|
10791
|
+
this.observer.disconnect();
|
|
10801
10792
|
}
|
|
10802
10793
|
observationHandler(observer, entries) {
|
|
10803
10794
|
var _a, _b;
|
|
@@ -10808,7 +10799,7 @@ const LoadMore = class {
|
|
|
10808
10799
|
}
|
|
10809
10800
|
}
|
|
10810
10801
|
render() {
|
|
10811
|
-
return index.h(index.Host, { key: '
|
|
10802
|
+
return index.h(index.Host, { key: '6714f7911780f181119c9231240b54c84d4acaa8' });
|
|
10812
10803
|
}
|
|
10813
10804
|
get element() { return index.getElement(this); }
|
|
10814
10805
|
};
|