This commit is contained in:
2025-12-02 02:06:05 +02:00
parent 2c998d7ba8
commit 718beee739
16 changed files with 21 additions and 61 deletions
+6 -16
View File
@@ -1,25 +1,15 @@
//import { Ut } from ".";
import { Ut } from ".";
export class AppendOptions {
constructor(target, data, opts) {
opts = opts || {};
if (opts.clear) {
this.dxHtml('');
}
if (typeof data === 'string') {
Object.entries(JSON.parse(data)).forEach(([k, v]) => target.append(new Option(v, k)));
}
else {
for (let id in data) {
target.append(new Option(data[id], id));
}
this.replaceChildren();
}
Ut.each(Ut.isStr(data) ? JSON.parse(data) : data, (val, id) => target.append(new Option(val, id)) );
}
}
// Ut.extendNodeUx(AppendOptions);
}
+1 -3
View File
@@ -55,6 +55,4 @@ export class Form extends FormValidator {
});
};
}
}
//Ut.extendNodeUx(Form);
}
+1 -3
View File
@@ -122,6 +122,4 @@ export class Options {
this.target.dxHtml('');
}
}
}
//Ut.extendNodeUx(Options);
}
+1 -3
View File
@@ -220,6 +220,4 @@ export class FormValidator extends Validator {
this.target.dxOff('submit.form click.form keydown.form click.ui');
this.target.dxRemoveData('form');
}
}
// Ut.extendNodeUx(FormValidator);
}
+1 -3
View File
@@ -40,6 +40,4 @@ export class InputError {
this.fieldWrapper.classList.remove('form-field-error');
this.fieldWrapper.dxFind('.sp-label-error')?.remove();
}
}
//Ut.extendNodeUx(InputError);
}
+1 -3
View File
@@ -320,6 +320,4 @@ export class Autocomplete {
Ut.trigger(this.opts.onDestroy, this);
}
}
//Ut.extendNodeUx(Autocomplete);
}
+1 -3
View File
@@ -66,6 +66,4 @@ export class Cancelable {
return this.target;
}
}
//Ut.extendNodeUx(Cancelable);
}
+1 -3
View File
@@ -1123,6 +1123,4 @@ export class DatePicker {
return this.target;
}
}
//Ut.extendNodeUx(DatePicker);
}
+1 -3
View File
@@ -176,6 +176,4 @@ export class Dropdown {
return this.target;
}
}
//Ut.extendNodeUx(Dropdown);
}
+1 -3
View File
@@ -322,6 +322,4 @@ export class Lightbox {
this.target.dxRemoveData('lightbox');
}
}
//Ut.extendNodeUx(Lightbox);
}
+1 -3
View File
@@ -124,6 +124,4 @@ export class PinBox {
this.target.dxRemoveData('pinbox');
Ut.trigger(this.opts.destroy, this);
}
}
//Ut.extendNodeUx(PinBox);
}
+1 -3
View File
@@ -177,6 +177,4 @@ export class Alert {
constructor(target, msg) {
new Popover(target, msg, { color: 'red', timeout: 3000 });
}
}
//Ut.extendNodeUx(Popover, Alert);
}
+1 -3
View File
@@ -243,6 +243,4 @@ export class Popup {
this.card.ui.dxCss({ top: '-25%', opacity: 0 });
}
}
//Ut.extendNodeUx(Popup);
}
+1 -3
View File
@@ -647,6 +647,4 @@ export class Table {
setFooterToolbar(content) {
this.toolbarFooter.dxHtml(content);
}
}
//Ut.extendNodeUx(Table);
}
+1 -3
View File
@@ -293,6 +293,4 @@ export class TwoDatePicker {
Stack.delete(this);
}
}
//Ut.extendNodeUx(TwoDatePicker);
}
+1 -3
View File
@@ -695,6 +695,4 @@ export class Uploader {
Ut.trigger(this.events.destroy, this)
}
}
//Ut.extendNodeUx(Uploader);
}