smoothly 1.0.0-alpha.205 → 1.0.0-alpha.206
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_79.cjs.entry.js +2 -1
- package/dist/cjs/smoothly-app_79.cjs.entry.js.map +1 -1
- package/dist/collection/components/input/reset/index.js +2 -1
- package/dist/collection/components/input/reset/index.js.map +1 -1
- package/dist/custom-elements/index.js +2 -1
- package/dist/custom-elements/index.js.map +1 -1
- package/dist/esm/smoothly-app_79.entry.js +2 -1
- package/dist/esm/smoothly-app_79.entry.js.map +1 -1
- package/dist/smoothly/{p-37ffff55.entry.js → p-1f519e9d.entry.js} +2 -2
- package/dist/smoothly/p-1f519e9d.entry.js.map +1 -0
- package/dist/smoothly/smoothly.esm.js +1 -1
- package/dist/types/components/input/reset/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/smoothly/p-37ffff55.entry.js.map +0 -1
|
@@ -6143,6 +6143,7 @@ const SmoothlyInputReset = class {
|
|
|
6143
6143
|
this.smoothlyInputLoad.emit(parent => {
|
|
6144
6144
|
if (Editable.Element.type.is(parent)) {
|
|
6145
6145
|
this.parent = parent;
|
|
6146
|
+
this.readonlyAtLoad = parent.readonly;
|
|
6146
6147
|
parent.listen("changed", async (p) => {
|
|
6147
6148
|
if (Input.is(p)) {
|
|
6148
6149
|
this.disabled = p.readonly ? true : !p.changed;
|
|
@@ -6159,7 +6160,7 @@ const SmoothlyInputReset = class {
|
|
|
6159
6160
|
clickHandler() {
|
|
6160
6161
|
var _a, _b;
|
|
6161
6162
|
(_a = this.parent) === null || _a === void 0 ? void 0 : _a.reset();
|
|
6162
|
-
(_b = this.parent) === null || _b === void 0 ? void 0 : _b.edit(false);
|
|
6163
|
+
this.readonlyAtLoad && ((_b = this.parent) === null || _b === void 0 ? void 0 : _b.edit(false));
|
|
6163
6164
|
}
|
|
6164
6165
|
render() {
|
|
6165
6166
|
return (index.h(Button, { disabled: this.disabled, type: "button" }, index.h("slot", null)));
|