define(["require", "exports", "tslib", "./Field"], function (require, exports, tslib_1, Field_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Button = void 0;
Field_1 = tslib_1.__importDefault(Field_1);
class Button extends Field_1.default {
_getData() {
return data;
}
}
+ exports.Button = Button;
exports.default = Button;
});
class Checked extends Field_1.default {
_getData() {
return {
- [this._fieldId]: this._field.checked ? "1" : "0",
+ [this._fieldId]: this._field.checked ? 1 : 0,
};
}
}
data[this._fieldId] = input.value;
return true;
}
+ return false;
});
return data;
}
Core = tslib_1.__importStar(Core);
class Tag extends Field_1.default {
_getData() {
- const values = UiItemList.getValues(this._fieldId).map((item) => {
- return item.value;
- });
+ const values = UiItemList.getValues(this._fieldId).map((item) => item.value);
return {
[this._fieldId]: values,
};
import Field from "./Field";
import { FormBuilderData } from "../Data";
-export default class Button extends Field {
+export class Button extends Field {
protected _getData(): FormBuilderData {
const data = {};
return data;
}
}
+
+export default Button;
class Checked extends Field {
protected _getData(): FormBuilderData {
return {
- [this._fieldId]: (this._field as HTMLInputElement).checked ? "1" : "0",
+ [this._fieldId]: (this._field as HTMLInputElement).checked ? 1 : 0,
};
}
}
data[this._fieldId] = input.value;
return true;
}
+
+ return false;
});
return data;
class Tag extends Field {
protected _getData(): FormBuilderData {
- const values: string[] = UiItemList.getValues(this._fieldId).map((item) => {
- return item.value;
- });
+ const values: string[] = UiItemList.getValues(this._fieldId).map((item) => item.value);
return {
[this._fieldId]: values,