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
+3 -13
View File
@@ -1,4 +1,4 @@
//import { Ut } from ".";
import { Ut } from ".";
export class AppendOptions {
@@ -7,19 +7,9 @@ export class AppendOptions {
opts = opts || {};
if (opts.clear) {
this.dxHtml('');
this.replaceChildren();
}
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));
}
}
Ut.each(Ut.isStr(data) ? JSON.parse(data) : data, (val, id) => target.append(new Option(val, id)) );
}
}
// Ut.extendNodeUx(AppendOptions);
-2
View File
@@ -56,5 +56,3 @@ export class Form extends FormValidator {
};
}
}
//Ut.extendNodeUx(Form);
-2
View File
@@ -123,5 +123,3 @@ export class Options {
}
}
}
//Ut.extendNodeUx(Options);
@@ -221,5 +221,3 @@ export class FormValidator extends Validator {
this.target.dxRemoveData('form');
}
}
// Ut.extendNodeUx(FormValidator);
-2
View File
@@ -41,5 +41,3 @@ export class InputError {
this.fieldWrapper.dxFind('.sp-label-error')?.remove();
}
}
//Ut.extendNodeUx(InputError);
-2
View File
@@ -321,5 +321,3 @@ export class Autocomplete {
Ut.trigger(this.opts.onDestroy, this);
}
}
//Ut.extendNodeUx(Autocomplete);
-2
View File
@@ -67,5 +67,3 @@ export class Cancelable {
return this.target;
}
}
//Ut.extendNodeUx(Cancelable);
-2
View File
@@ -1124,5 +1124,3 @@ export class DatePicker {
return this.target;
}
}
//Ut.extendNodeUx(DatePicker);
-2
View File
@@ -177,5 +177,3 @@ export class Dropdown {
return this.target;
}
}
//Ut.extendNodeUx(Dropdown);
-2
View File
@@ -323,5 +323,3 @@ export class Lightbox {
this.target.dxRemoveData('lightbox');
}
}
//Ut.extendNodeUx(Lightbox);
-2
View File
@@ -125,5 +125,3 @@ export class PinBox {
Ut.trigger(this.opts.destroy, this);
}
}
//Ut.extendNodeUx(PinBox);
-2
View File
@@ -178,5 +178,3 @@ export class Alert {
new Popover(target, msg, { color: 'red', timeout: 3000 });
}
}
//Ut.extendNodeUx(Popover, Alert);
-2
View File
@@ -244,5 +244,3 @@ export class Popup {
this.card.ui.dxCss({ top: '-25%', opacity: 0 });
}
}
//Ut.extendNodeUx(Popup);
-2
View File
@@ -648,5 +648,3 @@ export class Table {
this.toolbarFooter.dxHtml(content);
}
}
//Ut.extendNodeUx(Table);
@@ -294,5 +294,3 @@ export class TwoDatePicker {
Stack.delete(this);
}
}
//Ut.extendNodeUx(TwoDatePicker);
-2
View File
@@ -696,5 +696,3 @@ export class Uploader {
Ut.trigger(this.events.destroy, this)
}
}
//Ut.extendNodeUx(Uploader);