@wcardinal/wcardinal-ui 0.366.0 → 0.368.0
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/types/wcardinal/ui/d-dialog-select-search-function.d.ts +1 -13
- package/dist/types/wcardinal/ui/d-table-body-cell-action-menu.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-check.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-color.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-date.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-datetime.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-index.d.ts +3 -2
- package/dist/types/wcardinal/ui/d-table-body-cell-input-integer.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-input-real.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-input-text-area.d.ts +24 -0
- package/dist/types/wcardinal/ui/d-table-body-cell-input-text.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-input-tree.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-select-dialog.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-select-menu.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-select-multiple.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-select-promise.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-text-area.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-table-body-cell-text.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-time.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-tree.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-table-body-cell.d.ts +3 -2
- package/dist/types/wcardinal/ui/d-table-body-row.d.ts +11 -7
- package/dist/types/wcardinal/ui/d-table-body.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-table-column-type.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-table-column-update.d.ts +13 -0
- package/dist/types/wcardinal/ui/d-table-column.d.ts +10 -0
- package/dist/types/wcardinal/ui/d-table-data-list-mapped.d.ts +2 -2
- package/dist/types/wcardinal/ui/d-table-data-tree.d.ts +5 -5
- package/dist/types/wcardinal/ui/d-table-data.d.ts +2 -1
- package/dist/types/wcardinal/ui/index.d.ts +3 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-table-body-cell-input-text-area.d.ts +16 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-table-body-cell-text-area.d.ts +5 -0
- package/dist/types/wcardinal/ui/theme/dark/index.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-table-body-cell-input-text-area.d.ts +16 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-table-body-cell-text-area.d.ts +5 -0
- package/dist/types/wcardinal/ui/theme/white/index.d.ts +2 -0
- package/dist/wcardinal/ui/d-dialog-select-search-function.js +1 -18
- package/dist/wcardinal/ui/d-dialog-select-search-function.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog-select-search-impl.js +4 -4
- package/dist/wcardinal/ui/d-dialog-select-search-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-action-menu.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-action-menu.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-button.js +2 -1
- package/dist/wcardinal/ui/d-table-body-cell-button.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-check.js +6 -5
- package/dist/wcardinal/ui/d-table-body-cell-check.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-color.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-color.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-date.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-date.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-datetime.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-datetime.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-index.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-integer.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-input-integer.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-real.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-input-real.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-text-area.js +73 -0
- package/dist/wcardinal/ui/d-table-body-cell-input-text-area.js.map +1 -0
- package/dist/wcardinal/ui/d-table-body-cell-input-text.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-input-text.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-tree.js +4 -4
- package/dist/wcardinal/ui/d-table-body-cell-input-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-select-dialog.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-select-dialog.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-select-menu.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-select-menu.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-select-multiple.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-select-multiple.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-select-promise.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-select-promise.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-text-area.js +18 -0
- package/dist/wcardinal/ui/d-table-body-cell-text-area.js.map +1 -0
- package/dist/wcardinal/ui/d-table-body-cell-text.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-time.js +3 -2
- package/dist/wcardinal/ui/d-table-body-cell-time.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-tree.js +1 -2
- package/dist/wcardinal/ui/d-table-body-cell-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-row.js +27 -4
- package/dist/wcardinal/ui/d-table-body-row.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body.js +10 -2
- package/dist/wcardinal/ui/d-table-body.js.map +1 -1
- package/dist/wcardinal/ui/d-table-column-type.js +2 -1
- package/dist/wcardinal/ui/d-table-column-type.js.map +1 -1
- package/dist/wcardinal/ui/d-table-column-update.js +13 -0
- package/dist/wcardinal/ui/d-table-column-update.js.map +1 -0
- package/dist/wcardinal/ui/d-table-column.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-list-mapped.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data.js.map +1 -1
- package/dist/wcardinal/ui/d-table-header-cell-check.js.map +1 -1
- package/dist/wcardinal/ui/d-table.js +5 -2
- package/dist/wcardinal/ui/d-table.js.map +1 -1
- package/dist/wcardinal/ui/index.js +3 -0
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cell-input-text-area.js +40 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cell-input-text-area.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cell-text-area.js +19 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cell-text-area.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/index.js +2 -0
- package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-table.js +6 -0
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-table.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cell-input-text-area.js +40 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cell-input-text-area.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cell-text-area.js +19 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cell-text-area.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/index.js +2 -0
- package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-table.js +6 -0
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-table.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +57 -1
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +57 -1
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +304 -70
- package/dist/wcardinal-ui.js +192 -70
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.368.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -55367,29 +55367,6 @@
|
|
|
55367
55367
|
return DDialogSelectList;
|
|
55368
55368
|
}(DList));
|
|
55369
55369
|
|
|
55370
|
-
/*
|
|
55371
|
-
* Copyright (C) 2019 Toshiba Corporation
|
|
55372
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
55373
|
-
*/
|
|
55374
|
-
var DDialogSelectSearchFunctions = {
|
|
55375
|
-
isUncategorized: function (search) {
|
|
55376
|
-
return search.length <= 1;
|
|
55377
|
-
},
|
|
55378
|
-
toCategorized: function (search) {
|
|
55379
|
-
if (search == null) {
|
|
55380
|
-
return function (word, categoryId) { return Promise.resolve([]); };
|
|
55381
|
-
}
|
|
55382
|
-
else if (this.isUncategorized(search)) {
|
|
55383
|
-
return function (word, categoryId) {
|
|
55384
|
-
return search(word);
|
|
55385
|
-
};
|
|
55386
|
-
}
|
|
55387
|
-
else {
|
|
55388
|
-
return search;
|
|
55389
|
-
}
|
|
55390
|
-
}
|
|
55391
|
-
};
|
|
55392
|
-
|
|
55393
55370
|
/*
|
|
55394
55371
|
* Copyright (C) 2019 Toshiba Corporation
|
|
55395
55372
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -55398,16 +55375,17 @@
|
|
|
55398
55375
|
__extends(DDialogSelectSearhImpl, _super);
|
|
55399
55376
|
function DDialogSelectSearhImpl(search) {
|
|
55400
55377
|
var _this = _super.call(this) || this;
|
|
55401
|
-
_this._search =
|
|
55378
|
+
_this._search =
|
|
55379
|
+
search !== null && search !== void 0 ? search : (function (word, categoryId) { return Promise.resolve([]); });
|
|
55402
55380
|
_this._id = 0;
|
|
55403
55381
|
_this._idCompleted = 0;
|
|
55404
55382
|
return _this;
|
|
55405
55383
|
}
|
|
55406
55384
|
DDialogSelectSearhImpl.prototype.create = function (args) {
|
|
55407
55385
|
var _this = this;
|
|
55408
|
-
var _a;
|
|
55409
55386
|
var id = ++this._id;
|
|
55410
|
-
|
|
55387
|
+
var search = this._search;
|
|
55388
|
+
(args.length <= 1 ? search(args[0]) : search(args[0], args[1])).then(function (searchResult) {
|
|
55411
55389
|
if (_this._id === id) {
|
|
55412
55390
|
_this._idCompleted = id;
|
|
55413
55391
|
_this.emit("success", _this, searchResult);
|
|
@@ -68556,9 +68534,10 @@
|
|
|
68556
68534
|
if (row !== undefined) {
|
|
68557
68535
|
var rowIndex = this._rowIndex;
|
|
68558
68536
|
var columnIndex = this._columnIndex;
|
|
68559
|
-
this._column
|
|
68537
|
+
var column = this._column;
|
|
68538
|
+
column.setter(row, columnIndex, newValue);
|
|
68560
68539
|
this.emit("change", newValue, oldValue, this);
|
|
68561
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
68540
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
68562
68541
|
}
|
|
68563
68542
|
};
|
|
68564
68543
|
Object.defineProperty(DTableBodyCellSelectDialog.prototype, "row", {
|
|
@@ -68661,9 +68640,10 @@
|
|
|
68661
68640
|
if (row !== undefined) {
|
|
68662
68641
|
var rowIndex = this._rowIndex;
|
|
68663
68642
|
var columnIndex = this._columnIndex;
|
|
68664
|
-
this._column
|
|
68643
|
+
var column = this._column;
|
|
68644
|
+
column.setter(row, columnIndex, selected);
|
|
68665
68645
|
_super.prototype.onMenuSelect.call(this, selected, item, menu);
|
|
68666
|
-
this._onChange(selected, null, row, rowIndex, columnIndex, this);
|
|
68646
|
+
this._onChange(selected, null, row, rowIndex, columnIndex, column, this);
|
|
68667
68647
|
}
|
|
68668
68648
|
};
|
|
68669
68649
|
DTableBodyCellActionMenu.prototype.onKeyDownArrowDown = function (e) {
|
|
@@ -68756,9 +68736,10 @@
|
|
|
68756
68736
|
if (row !== undefined) {
|
|
68757
68737
|
var rowIndex = this._rowIndex;
|
|
68758
68738
|
var columnIndex = this._columnIndex;
|
|
68759
|
-
this._column
|
|
68739
|
+
var column = this._column;
|
|
68740
|
+
column.setter(row, columnIndex, newValue);
|
|
68760
68741
|
this.emit("change", newValue, oldValue, this);
|
|
68761
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
68742
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
68762
68743
|
}
|
|
68763
68744
|
};
|
|
68764
68745
|
Object.defineProperty(DTableBodyCellSelectPromise.prototype, "row", {
|
|
@@ -68936,8 +68917,9 @@
|
|
|
68936
68917
|
if (row !== undefined) {
|
|
68937
68918
|
var rowIndex = this._rowIndex;
|
|
68938
68919
|
var columnIndex = this._columnIndex;
|
|
68920
|
+
var column = this._column;
|
|
68939
68921
|
this.emit("change", null, null, this);
|
|
68940
|
-
this._onChange(null, null, row, rowIndex, columnIndex, this);
|
|
68922
|
+
this._onChange(null, null, row, rowIndex, columnIndex, column, this);
|
|
68941
68923
|
}
|
|
68942
68924
|
};
|
|
68943
68925
|
DTableBodyCellButton.prototype.onActivateKeyDown = function (e) {
|
|
@@ -68990,7 +68972,21 @@
|
|
|
68990
68972
|
TIME: 11,
|
|
68991
68973
|
ACTION: 12,
|
|
68992
68974
|
LINK: 13,
|
|
68993
|
-
TREE: 14
|
|
68975
|
+
TREE: 14,
|
|
68976
|
+
TEXT_AREA: 15
|
|
68977
|
+
};
|
|
68978
|
+
|
|
68979
|
+
/**
|
|
68980
|
+
* An update region when table cells get edited.
|
|
68981
|
+
*
|
|
68982
|
+
* * CELL: Edited cells (Default).
|
|
68983
|
+
* * ROW: Rows that edited cells belongs to.
|
|
68984
|
+
* * ALL: All the rows.
|
|
68985
|
+
*/
|
|
68986
|
+
var DTableColumnUpdate = {
|
|
68987
|
+
CELL: 0,
|
|
68988
|
+
ROW: 1,
|
|
68989
|
+
ALL: 2
|
|
68994
68990
|
};
|
|
68995
68991
|
|
|
68996
68992
|
/*
|
|
@@ -69024,7 +69020,7 @@
|
|
|
69024
69020
|
column.setter(row, columnIndex, newValue);
|
|
69025
69021
|
this.emit("change", newValue, oldValue, this);
|
|
69026
69022
|
var onChange = this._onChange;
|
|
69027
|
-
onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69023
|
+
onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69028
69024
|
if (newValue && column.type === DTableColumnType.CHECK_SINGLE) {
|
|
69029
69025
|
this.onChangeSingle(rowIndex, columnIndex, column, onChange);
|
|
69030
69026
|
}
|
|
@@ -69033,9 +69029,9 @@
|
|
|
69033
69029
|
DTableBodyCellCheck.prototype.onChangeSingle = function (rowIndex, columnIndex, column, onChange) {
|
|
69034
69030
|
var _this = this;
|
|
69035
69031
|
var tableBodyRow = this.parent;
|
|
69036
|
-
if (tableBodyRow) {
|
|
69032
|
+
if (tableBodyRow != null) {
|
|
69037
69033
|
var tableBody = tableBodyRow.parent;
|
|
69038
|
-
if (tableBody) {
|
|
69034
|
+
if (tableBody != null) {
|
|
69039
69035
|
var isChanged_1 = false;
|
|
69040
69036
|
var getter_1 = column.getter;
|
|
69041
69037
|
var setter_1 = column.setter;
|
|
@@ -69044,12 +69040,12 @@
|
|
|
69044
69040
|
if (rowIndex !== index && getter_1(row, columnIndex)) {
|
|
69045
69041
|
setter_1(row, columnIndex, false);
|
|
69046
69042
|
isChanged_1 = true;
|
|
69047
|
-
onChange(false, true, row, index, columnIndex, _this);
|
|
69043
|
+
onChange(false, true, row, index, columnIndex, column, _this);
|
|
69048
69044
|
return false;
|
|
69049
69045
|
}
|
|
69050
69046
|
return true;
|
|
69051
69047
|
});
|
|
69052
|
-
if (isChanged_1) {
|
|
69048
|
+
if (isChanged_1 && column.update !== DTableColumnUpdate.ALL) {
|
|
69053
69049
|
tableBody.update(true);
|
|
69054
69050
|
}
|
|
69055
69051
|
}
|
|
@@ -69118,9 +69114,10 @@
|
|
|
69118
69114
|
if (row !== undefined) {
|
|
69119
69115
|
var rowIndex = this._rowIndex;
|
|
69120
69116
|
var columnIndex = this._columnIndex;
|
|
69121
|
-
this._column
|
|
69117
|
+
var column = this._column;
|
|
69118
|
+
column.setter(row, columnIndex, newValue);
|
|
69122
69119
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69123
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69120
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69124
69121
|
}
|
|
69125
69122
|
else {
|
|
69126
69123
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
@@ -69208,9 +69205,10 @@
|
|
|
69208
69205
|
if (row !== undefined) {
|
|
69209
69206
|
var rowIndex = this._rowIndex;
|
|
69210
69207
|
var columnIndex = this._columnIndex;
|
|
69211
|
-
this._column
|
|
69208
|
+
var column = this._column;
|
|
69209
|
+
column.setter(row, columnIndex, newValue);
|
|
69212
69210
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69213
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69211
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69214
69212
|
}
|
|
69215
69213
|
else {
|
|
69216
69214
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
@@ -69300,9 +69298,10 @@
|
|
|
69300
69298
|
if (row !== undefined) {
|
|
69301
69299
|
var rowIndex = this._rowIndex;
|
|
69302
69300
|
var columnIndex = this._columnIndex;
|
|
69303
|
-
this._column
|
|
69301
|
+
var column = this._column;
|
|
69302
|
+
column.setter(row, columnIndex, newValue);
|
|
69304
69303
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69305
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69304
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69306
69305
|
}
|
|
69307
69306
|
else {
|
|
69308
69307
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
@@ -69450,9 +69449,10 @@
|
|
|
69450
69449
|
if (row !== undefined) {
|
|
69451
69450
|
var rowIndex = this._rowIndex;
|
|
69452
69451
|
var columnIndex = this._columnIndex;
|
|
69453
|
-
this._column
|
|
69452
|
+
var column = this._column;
|
|
69453
|
+
column.setter(row, columnIndex, newValue);
|
|
69454
69454
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69455
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69455
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69456
69456
|
}
|
|
69457
69457
|
};
|
|
69458
69458
|
Object.defineProperty(DTableBodyCellInputInteger.prototype, "row", {
|
|
@@ -69518,9 +69518,10 @@
|
|
|
69518
69518
|
if (row !== undefined) {
|
|
69519
69519
|
var rowIndex = this._rowIndex;
|
|
69520
69520
|
var columnIndex = this._columnIndex;
|
|
69521
|
-
this._column
|
|
69521
|
+
var column = this._column;
|
|
69522
|
+
column.setter(row, columnIndex, newValue);
|
|
69522
69523
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69523
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69524
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69524
69525
|
}
|
|
69525
69526
|
};
|
|
69526
69527
|
Object.defineProperty(DTableBodyCellInputReal.prototype, "row", {
|
|
@@ -69567,6 +69568,75 @@
|
|
|
69567
69568
|
return DTableBodyCellInputReal;
|
|
69568
69569
|
}(DInputReal));
|
|
69569
69570
|
|
|
69571
|
+
/*
|
|
69572
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
69573
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
69574
|
+
*/
|
|
69575
|
+
var DTableBodyCellInputTextArea = /** @class */ (function (_super) {
|
|
69576
|
+
__extends(DTableBodyCellInputTextArea, _super);
|
|
69577
|
+
function DTableBodyCellInputTextArea(columnIndex, column, onChange, options) {
|
|
69578
|
+
var _this = _super.call(this, options) || this;
|
|
69579
|
+
_this._rowIndex = -1;
|
|
69580
|
+
_this._columnIndex = columnIndex;
|
|
69581
|
+
_this._column = column;
|
|
69582
|
+
_this._onChange = onChange;
|
|
69583
|
+
return _this;
|
|
69584
|
+
}
|
|
69585
|
+
DTableBodyCellInputTextArea.prototype.onValueChange = function (newValue, oldValue) {
|
|
69586
|
+
var row = this._row;
|
|
69587
|
+
if (row !== undefined) {
|
|
69588
|
+
var rowIndex = this._rowIndex;
|
|
69589
|
+
var columnIndex = this._columnIndex;
|
|
69590
|
+
var column = this._column;
|
|
69591
|
+
column.setter(row, columnIndex, newValue);
|
|
69592
|
+
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69593
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69594
|
+
}
|
|
69595
|
+
};
|
|
69596
|
+
Object.defineProperty(DTableBodyCellInputTextArea.prototype, "row", {
|
|
69597
|
+
get: function () {
|
|
69598
|
+
return this._row;
|
|
69599
|
+
},
|
|
69600
|
+
enumerable: false,
|
|
69601
|
+
configurable: true
|
|
69602
|
+
});
|
|
69603
|
+
Object.defineProperty(DTableBodyCellInputTextArea.prototype, "rowIndex", {
|
|
69604
|
+
get: function () {
|
|
69605
|
+
return this._rowIndex;
|
|
69606
|
+
},
|
|
69607
|
+
enumerable: false,
|
|
69608
|
+
configurable: true
|
|
69609
|
+
});
|
|
69610
|
+
Object.defineProperty(DTableBodyCellInputTextArea.prototype, "columnIndex", {
|
|
69611
|
+
get: function () {
|
|
69612
|
+
return this._columnIndex;
|
|
69613
|
+
},
|
|
69614
|
+
enumerable: false,
|
|
69615
|
+
configurable: true
|
|
69616
|
+
});
|
|
69617
|
+
Object.defineProperty(DTableBodyCellInputTextArea.prototype, "column", {
|
|
69618
|
+
get: function () {
|
|
69619
|
+
return this._column;
|
|
69620
|
+
},
|
|
69621
|
+
enumerable: false,
|
|
69622
|
+
configurable: true
|
|
69623
|
+
});
|
|
69624
|
+
DTableBodyCellInputTextArea.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
69625
|
+
this._row = row;
|
|
69626
|
+
this._rowIndex = rowIndex;
|
|
69627
|
+
this.text = String(value);
|
|
69628
|
+
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
69629
|
+
};
|
|
69630
|
+
DTableBodyCellInputTextArea.prototype.unset = function () {
|
|
69631
|
+
this._row = undefined;
|
|
69632
|
+
this._rowIndex = -1;
|
|
69633
|
+
};
|
|
69634
|
+
DTableBodyCellInputTextArea.prototype.getType = function () {
|
|
69635
|
+
return "DTableBodyCellInputTextArea";
|
|
69636
|
+
};
|
|
69637
|
+
return DTableBodyCellInputTextArea;
|
|
69638
|
+
}(DInputTextArea));
|
|
69639
|
+
|
|
69570
69640
|
/*
|
|
69571
69641
|
* Copyright (C) 2019 Toshiba Corporation
|
|
69572
69642
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -69586,9 +69656,10 @@
|
|
|
69586
69656
|
if (row !== undefined) {
|
|
69587
69657
|
var rowIndex = this._rowIndex;
|
|
69588
69658
|
var columnIndex = this._columnIndex;
|
|
69589
|
-
this._column
|
|
69659
|
+
var column = this._column;
|
|
69660
|
+
column.setter(row, columnIndex, newValue);
|
|
69590
69661
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69591
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69662
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69592
69663
|
}
|
|
69593
69664
|
};
|
|
69594
69665
|
Object.defineProperty(DTableBodyCellInputText.prototype, "row", {
|
|
@@ -69783,9 +69854,10 @@
|
|
|
69783
69854
|
if (row !== undefined) {
|
|
69784
69855
|
var rowIndex = this._rowIndex;
|
|
69785
69856
|
var columnIndex = this._columnIndex;
|
|
69786
|
-
this._column
|
|
69857
|
+
var column = this._column;
|
|
69858
|
+
column.setter(row, columnIndex, newValue);
|
|
69787
69859
|
this.emit("change", newValue, oldValue, this);
|
|
69788
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69860
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69789
69861
|
}
|
|
69790
69862
|
};
|
|
69791
69863
|
DTableBodyCellInputTree.prototype.newMarker = function (options) {
|
|
@@ -69874,7 +69946,7 @@
|
|
|
69874
69946
|
input.visible = true;
|
|
69875
69947
|
input.text = String(value);
|
|
69876
69948
|
var marker = this._marker;
|
|
69877
|
-
if (
|
|
69949
|
+
if (supplimental != null) {
|
|
69878
69950
|
var isOpened = !!(supplimental & 0x1);
|
|
69879
69951
|
var hasChildren = !!(supplimental & 0x2);
|
|
69880
69952
|
var level = supplimental >> 2;
|
|
@@ -70010,9 +70082,10 @@
|
|
|
70010
70082
|
if (row !== undefined) {
|
|
70011
70083
|
var rowIndex = this._rowIndex;
|
|
70012
70084
|
var columnIndex = this._columnIndex;
|
|
70013
|
-
this._column
|
|
70085
|
+
var column = this._column;
|
|
70086
|
+
column.setter(row, columnIndex, newValue);
|
|
70014
70087
|
_super.prototype.onValueChange.call(this, newValue, oldValue, item);
|
|
70015
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
70088
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
70016
70089
|
}
|
|
70017
70090
|
};
|
|
70018
70091
|
DTableBodyCellSelectMenu.prototype.onKeyDownArrowDown = function (e) {
|
|
@@ -70081,9 +70154,10 @@
|
|
|
70081
70154
|
if (row !== undefined) {
|
|
70082
70155
|
var rowIndex = this._rowIndex;
|
|
70083
70156
|
var columnIndex = this._columnIndex;
|
|
70084
|
-
this._column
|
|
70157
|
+
var column = this._column;
|
|
70158
|
+
column.setter(row, columnIndex, newValues);
|
|
70085
70159
|
_super.prototype.onValueChange.call(this, newValues, oldValues, items);
|
|
70086
|
-
this._onChange(newValues, oldValues, row, rowIndex, columnIndex, this);
|
|
70160
|
+
this._onChange(newValues, oldValues, row, rowIndex, columnIndex, column, this);
|
|
70087
70161
|
}
|
|
70088
70162
|
};
|
|
70089
70163
|
DTableBodyCellSelectMultiple.prototype.onKeyDownArrowDown = function (e) {
|
|
@@ -70133,6 +70207,21 @@
|
|
|
70133
70207
|
return DTableBodyCellSelectMultiple;
|
|
70134
70208
|
}(DSelectMultiple));
|
|
70135
70209
|
|
|
70210
|
+
/*
|
|
70211
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
70212
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
70213
|
+
*/
|
|
70214
|
+
var DTableBodyCellTextArea = /** @class */ (function (_super) {
|
|
70215
|
+
__extends(DTableBodyCellTextArea, _super);
|
|
70216
|
+
function DTableBodyCellTextArea() {
|
|
70217
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
70218
|
+
}
|
|
70219
|
+
DTableBodyCellTextArea.prototype.getType = function () {
|
|
70220
|
+
return "DTableBodyCellTextArea";
|
|
70221
|
+
};
|
|
70222
|
+
return DTableBodyCellTextArea;
|
|
70223
|
+
}(DTableBodyCellText));
|
|
70224
|
+
|
|
70136
70225
|
/*
|
|
70137
70226
|
* Copyright (C) 2019 Toshiba Corporation
|
|
70138
70227
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -70152,9 +70241,10 @@
|
|
|
70152
70241
|
if (row !== undefined) {
|
|
70153
70242
|
var rowIndex = this._rowIndex;
|
|
70154
70243
|
var columnIndex = this._columnIndex;
|
|
70155
|
-
this._column
|
|
70244
|
+
var column = this._column;
|
|
70245
|
+
column.setter(row, columnIndex, newValue);
|
|
70156
70246
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
70157
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
70247
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
70158
70248
|
}
|
|
70159
70249
|
else {
|
|
70160
70250
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
@@ -70317,7 +70407,7 @@
|
|
|
70317
70407
|
DTableBodyCells.set(this, row, columnIndex, this._column, false);
|
|
70318
70408
|
var link = this.link;
|
|
70319
70409
|
var padding = this._padding;
|
|
70320
|
-
if (
|
|
70410
|
+
if (supplimental != null) {
|
|
70321
70411
|
var isOpened = !!(supplimental & 0x1);
|
|
70322
70412
|
var hasChildren = !!(supplimental & 0x2);
|
|
70323
70413
|
var level = supplimental >> 2;
|
|
@@ -70468,15 +70558,27 @@
|
|
|
70468
70558
|
function DTableBodyRow(onChange, isEven, columnIndexToCellOptions, options) {
|
|
70469
70559
|
var _this = _super.call(this, options) || this;
|
|
70470
70560
|
_this._index = -1;
|
|
70471
|
-
_this.
|
|
70472
|
-
|
|
70473
|
-
|
|
70561
|
+
_this._onChange = onChange;
|
|
70562
|
+
_this._onCellChangeBound = function (newValue, oldValue, row, rowIndex, columnIndex, column) {
|
|
70563
|
+
_this.onCellChange(newValue, oldValue, row, rowIndex, columnIndex, column);
|
|
70474
70564
|
};
|
|
70475
70565
|
_this._columnIndexToCellOptions = columnIndexToCellOptions;
|
|
70476
70566
|
_this.state.isAlternated = !isEven;
|
|
70477
70567
|
_this.initCells(options, _this._columns, _this._frozen);
|
|
70478
70568
|
return _this;
|
|
70479
70569
|
}
|
|
70570
|
+
DTableBodyRow.prototype.onCellChange = function (newValue, oldValue, row, rowIndex, columnIndex, column) {
|
|
70571
|
+
this.emit("change", newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
70572
|
+
if (column.update === DTableColumnUpdate.ROW) {
|
|
70573
|
+
var value = this._value;
|
|
70574
|
+
var supplimental = this._supplimental;
|
|
70575
|
+
var index = this._index;
|
|
70576
|
+
if (value !== undefined && supplimental !== undefined) {
|
|
70577
|
+
this.set(value, supplimental, index, true);
|
|
70578
|
+
}
|
|
70579
|
+
}
|
|
70580
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
70581
|
+
};
|
|
70480
70582
|
DTableBodyRow.prototype.newCell = function (columnIndex, column, columns, options) {
|
|
70481
70583
|
var onChange = this._onCellChangeBound;
|
|
70482
70584
|
var columnIndexToCellOptions = this._columnIndexToCellOptions;
|
|
@@ -70502,6 +70604,8 @@
|
|
|
70502
70604
|
return new DTableBodyCellIndex(columnIndex, column, onChange, options);
|
|
70503
70605
|
case DTableColumnType.TEXT:
|
|
70504
70606
|
return new DTableBodyCellInputText(columnIndex, column, onChange, options);
|
|
70607
|
+
case DTableColumnType.TEXT_AREA:
|
|
70608
|
+
return new DTableBodyCellInputTextArea(columnIndex, column, onChange, options);
|
|
70505
70609
|
case DTableColumnType.TREE:
|
|
70506
70610
|
return new DTableBodyCellInputTree(columnIndex, column, onChange, options);
|
|
70507
70611
|
case DTableColumnType.INTEGER:
|
|
@@ -70537,6 +70641,8 @@
|
|
|
70537
70641
|
return new DTableBodyCellIndex(columnIndex, column, onChange, options);
|
|
70538
70642
|
case DTableColumnType.TEXT:
|
|
70539
70643
|
return new DTableBodyCellText(columnIndex, column, onChange, options);
|
|
70644
|
+
case DTableColumnType.TEXT_AREA:
|
|
70645
|
+
return new DTableBodyCellTextArea(columnIndex, column, onChange, options);
|
|
70540
70646
|
case DTableColumnType.TREE:
|
|
70541
70647
|
return new DTableBodyCellTree(columnIndex, column, onChange, options);
|
|
70542
70648
|
case DTableColumnType.INTEGER:
|
|
@@ -70686,8 +70792,12 @@
|
|
|
70686
70792
|
return target != null && "set" in target;
|
|
70687
70793
|
};
|
|
70688
70794
|
DTableBodyRow.prototype.set = function (value, supplimental, rowIndex, forcibly) {
|
|
70689
|
-
if (forcibly ||
|
|
70795
|
+
if (forcibly ||
|
|
70796
|
+
this._value !== value ||
|
|
70797
|
+
this._supplimental !== supplimental ||
|
|
70798
|
+
this._index !== rowIndex) {
|
|
70690
70799
|
this._value = value;
|
|
70800
|
+
this._supplimental = supplimental;
|
|
70691
70801
|
this._index = rowIndex;
|
|
70692
70802
|
var cells = this.children;
|
|
70693
70803
|
var cellsLength = cells.length;
|
|
@@ -71714,13 +71824,20 @@
|
|
|
71714
71824
|
_this._isUpdateRowsCalled = false;
|
|
71715
71825
|
_this._isUpdateRowsCalledForcibly = false;
|
|
71716
71826
|
_this._workRows = [];
|
|
71717
|
-
_this._onRowChangeBound = function (newValue, oldValue, row, rowIndex, columnIndex) {
|
|
71718
|
-
|
|
71827
|
+
_this._onRowChangeBound = function (newValue, oldValue, row, rowIndex, columnIndex, column) {
|
|
71828
|
+
_this.onRowChange(newValue, oldValue, row, rowIndex, columnIndex, column);
|
|
71719
71829
|
};
|
|
71720
71830
|
_this._columnIndexToCellOptions = new Map();
|
|
71721
71831
|
_this._data.emit("init", _this._data);
|
|
71722
71832
|
return _this;
|
|
71723
71833
|
}
|
|
71834
|
+
DTableBody.prototype.onRowChange = function (newValue, oldValue, row, rowIndex, columnIndex, column) {
|
|
71835
|
+
var data = this._data;
|
|
71836
|
+
data.emit("change", newValue, oldValue, row, rowIndex, columnIndex, data);
|
|
71837
|
+
if (column.update === DTableColumnUpdate.ALL) {
|
|
71838
|
+
this.update(true);
|
|
71839
|
+
}
|
|
71840
|
+
};
|
|
71724
71841
|
DTableBody.prototype.toData = function (options) {
|
|
71725
71842
|
if (this.isData(options)) {
|
|
71726
71843
|
return options;
|
|
@@ -73594,6 +73711,7 @@
|
|
|
73594
73711
|
}
|
|
73595
73712
|
switch (type) {
|
|
73596
73713
|
case DTableColumnType.TEXT:
|
|
73714
|
+
case DTableColumnType.TEXT_AREA:
|
|
73597
73715
|
return DAlignHorizontal.LEFT;
|
|
73598
73716
|
case DTableColumnType.REAL:
|
|
73599
73717
|
case DTableColumnType.INTEGER:
|
|
@@ -73813,7 +73931,7 @@
|
|
|
73813
73931
|
return true;
|
|
73814
73932
|
};
|
|
73815
73933
|
var toColumn = function (index, options) {
|
|
73816
|
-
var _a;
|
|
73934
|
+
var _a, _b;
|
|
73817
73935
|
var weight = options.weight;
|
|
73818
73936
|
var width = options.width;
|
|
73819
73937
|
if (weight != null) {
|
|
@@ -73849,7 +73967,8 @@
|
|
|
73849
73967
|
category: options.category,
|
|
73850
73968
|
frozen: options.frozen,
|
|
73851
73969
|
offset: 0.0,
|
|
73852
|
-
link: options.link
|
|
73970
|
+
link: options.link,
|
|
73971
|
+
update: toEnum((_b = options.update) !== null && _b !== void 0 ? _b : DTableColumnUpdate.CELL, DTableColumnUpdate)
|
|
73853
73972
|
};
|
|
73854
73973
|
};
|
|
73855
73974
|
var toColumns = function (options) {
|
|
@@ -76788,6 +76907,7 @@
|
|
|
76788
76907
|
DTableBodyCellIndex: DTableBodyCellIndex,
|
|
76789
76908
|
DTableBodyCellInputInteger: DTableBodyCellInputInteger,
|
|
76790
76909
|
DTableBodyCellInputReal: DTableBodyCellInputReal,
|
|
76910
|
+
DTableBodyCellInputTextArea: DTableBodyCellInputTextArea,
|
|
76791
76911
|
DTableBodyCellInputText: DTableBodyCellInputText,
|
|
76792
76912
|
DTableBodyCellInputTreeInput: DTableBodyCellInputTreeInput,
|
|
76793
76913
|
DTableBodyCellInputTreeMarker: DTableBodyCellInputTreeMarker,
|
|
@@ -76800,6 +76920,7 @@
|
|
|
76800
76920
|
DTableBodyCellSelectMenu: DTableBodyCellSelectMenu,
|
|
76801
76921
|
DTableBodyCellSelectMultiple: DTableBodyCellSelectMultiple,
|
|
76802
76922
|
DTableBodyCellSelectPromise: DTableBodyCellSelectPromise,
|
|
76923
|
+
DTableBodyCellTextArea: DTableBodyCellTextArea,
|
|
76803
76924
|
DTableBodyCellText: DTableBodyCellText,
|
|
76804
76925
|
DTableBodyCellTime: DTableBodyCellTime,
|
|
76805
76926
|
DTableBodyCellTree: DTableBodyCellTree,
|
|
@@ -76809,6 +76930,7 @@
|
|
|
76809
76930
|
DTableCategoryCell: DTableCategoryCell,
|
|
76810
76931
|
DTableCategory: DTableCategory,
|
|
76811
76932
|
DTableColumnType: DTableColumnType,
|
|
76933
|
+
DTableColumnUpdate: DTableColumnUpdate,
|
|
76812
76934
|
DTableDataListFilter: DTableDataListFilter,
|
|
76813
76935
|
DTableDataListMapped: DTableDataListMapped,
|
|
76814
76936
|
DTableDataListSelection: DTableDataListSelection,
|