@wcardinal/wcardinal-ui 0.367.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-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-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 +300 -44
- package/dist/wcardinal-ui.js +188 -44
- 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
|
|
|
@@ -68534,9 +68534,10 @@
|
|
|
68534
68534
|
if (row !== undefined) {
|
|
68535
68535
|
var rowIndex = this._rowIndex;
|
|
68536
68536
|
var columnIndex = this._columnIndex;
|
|
68537
|
-
this._column
|
|
68537
|
+
var column = this._column;
|
|
68538
|
+
column.setter(row, columnIndex, newValue);
|
|
68538
68539
|
this.emit("change", newValue, oldValue, this);
|
|
68539
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
68540
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
68540
68541
|
}
|
|
68541
68542
|
};
|
|
68542
68543
|
Object.defineProperty(DTableBodyCellSelectDialog.prototype, "row", {
|
|
@@ -68639,9 +68640,10 @@
|
|
|
68639
68640
|
if (row !== undefined) {
|
|
68640
68641
|
var rowIndex = this._rowIndex;
|
|
68641
68642
|
var columnIndex = this._columnIndex;
|
|
68642
|
-
this._column
|
|
68643
|
+
var column = this._column;
|
|
68644
|
+
column.setter(row, columnIndex, selected);
|
|
68643
68645
|
_super.prototype.onMenuSelect.call(this, selected, item, menu);
|
|
68644
|
-
this._onChange(selected, null, row, rowIndex, columnIndex, this);
|
|
68646
|
+
this._onChange(selected, null, row, rowIndex, columnIndex, column, this);
|
|
68645
68647
|
}
|
|
68646
68648
|
};
|
|
68647
68649
|
DTableBodyCellActionMenu.prototype.onKeyDownArrowDown = function (e) {
|
|
@@ -68734,9 +68736,10 @@
|
|
|
68734
68736
|
if (row !== undefined) {
|
|
68735
68737
|
var rowIndex = this._rowIndex;
|
|
68736
68738
|
var columnIndex = this._columnIndex;
|
|
68737
|
-
this._column
|
|
68739
|
+
var column = this._column;
|
|
68740
|
+
column.setter(row, columnIndex, newValue);
|
|
68738
68741
|
this.emit("change", newValue, oldValue, this);
|
|
68739
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
68742
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
68740
68743
|
}
|
|
68741
68744
|
};
|
|
68742
68745
|
Object.defineProperty(DTableBodyCellSelectPromise.prototype, "row", {
|
|
@@ -68914,8 +68917,9 @@
|
|
|
68914
68917
|
if (row !== undefined) {
|
|
68915
68918
|
var rowIndex = this._rowIndex;
|
|
68916
68919
|
var columnIndex = this._columnIndex;
|
|
68920
|
+
var column = this._column;
|
|
68917
68921
|
this.emit("change", null, null, this);
|
|
68918
|
-
this._onChange(null, null, row, rowIndex, columnIndex, this);
|
|
68922
|
+
this._onChange(null, null, row, rowIndex, columnIndex, column, this);
|
|
68919
68923
|
}
|
|
68920
68924
|
};
|
|
68921
68925
|
DTableBodyCellButton.prototype.onActivateKeyDown = function (e) {
|
|
@@ -68968,7 +68972,21 @@
|
|
|
68968
68972
|
TIME: 11,
|
|
68969
68973
|
ACTION: 12,
|
|
68970
68974
|
LINK: 13,
|
|
68971
|
-
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
|
|
68972
68990
|
};
|
|
68973
68991
|
|
|
68974
68992
|
/*
|
|
@@ -69002,7 +69020,7 @@
|
|
|
69002
69020
|
column.setter(row, columnIndex, newValue);
|
|
69003
69021
|
this.emit("change", newValue, oldValue, this);
|
|
69004
69022
|
var onChange = this._onChange;
|
|
69005
|
-
onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69023
|
+
onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69006
69024
|
if (newValue && column.type === DTableColumnType.CHECK_SINGLE) {
|
|
69007
69025
|
this.onChangeSingle(rowIndex, columnIndex, column, onChange);
|
|
69008
69026
|
}
|
|
@@ -69011,9 +69029,9 @@
|
|
|
69011
69029
|
DTableBodyCellCheck.prototype.onChangeSingle = function (rowIndex, columnIndex, column, onChange) {
|
|
69012
69030
|
var _this = this;
|
|
69013
69031
|
var tableBodyRow = this.parent;
|
|
69014
|
-
if (tableBodyRow) {
|
|
69032
|
+
if (tableBodyRow != null) {
|
|
69015
69033
|
var tableBody = tableBodyRow.parent;
|
|
69016
|
-
if (tableBody) {
|
|
69034
|
+
if (tableBody != null) {
|
|
69017
69035
|
var isChanged_1 = false;
|
|
69018
69036
|
var getter_1 = column.getter;
|
|
69019
69037
|
var setter_1 = column.setter;
|
|
@@ -69022,12 +69040,12 @@
|
|
|
69022
69040
|
if (rowIndex !== index && getter_1(row, columnIndex)) {
|
|
69023
69041
|
setter_1(row, columnIndex, false);
|
|
69024
69042
|
isChanged_1 = true;
|
|
69025
|
-
onChange(false, true, row, index, columnIndex, _this);
|
|
69043
|
+
onChange(false, true, row, index, columnIndex, column, _this);
|
|
69026
69044
|
return false;
|
|
69027
69045
|
}
|
|
69028
69046
|
return true;
|
|
69029
69047
|
});
|
|
69030
|
-
if (isChanged_1) {
|
|
69048
|
+
if (isChanged_1 && column.update !== DTableColumnUpdate.ALL) {
|
|
69031
69049
|
tableBody.update(true);
|
|
69032
69050
|
}
|
|
69033
69051
|
}
|
|
@@ -69096,9 +69114,10 @@
|
|
|
69096
69114
|
if (row !== undefined) {
|
|
69097
69115
|
var rowIndex = this._rowIndex;
|
|
69098
69116
|
var columnIndex = this._columnIndex;
|
|
69099
|
-
this._column
|
|
69117
|
+
var column = this._column;
|
|
69118
|
+
column.setter(row, columnIndex, newValue);
|
|
69100
69119
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69101
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69120
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69102
69121
|
}
|
|
69103
69122
|
else {
|
|
69104
69123
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
@@ -69186,9 +69205,10 @@
|
|
|
69186
69205
|
if (row !== undefined) {
|
|
69187
69206
|
var rowIndex = this._rowIndex;
|
|
69188
69207
|
var columnIndex = this._columnIndex;
|
|
69189
|
-
this._column
|
|
69208
|
+
var column = this._column;
|
|
69209
|
+
column.setter(row, columnIndex, newValue);
|
|
69190
69210
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69191
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69211
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69192
69212
|
}
|
|
69193
69213
|
else {
|
|
69194
69214
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
@@ -69278,9 +69298,10 @@
|
|
|
69278
69298
|
if (row !== undefined) {
|
|
69279
69299
|
var rowIndex = this._rowIndex;
|
|
69280
69300
|
var columnIndex = this._columnIndex;
|
|
69281
|
-
this._column
|
|
69301
|
+
var column = this._column;
|
|
69302
|
+
column.setter(row, columnIndex, newValue);
|
|
69282
69303
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69283
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69304
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69284
69305
|
}
|
|
69285
69306
|
else {
|
|
69286
69307
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
@@ -69428,9 +69449,10 @@
|
|
|
69428
69449
|
if (row !== undefined) {
|
|
69429
69450
|
var rowIndex = this._rowIndex;
|
|
69430
69451
|
var columnIndex = this._columnIndex;
|
|
69431
|
-
this._column
|
|
69452
|
+
var column = this._column;
|
|
69453
|
+
column.setter(row, columnIndex, newValue);
|
|
69432
69454
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69433
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69455
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69434
69456
|
}
|
|
69435
69457
|
};
|
|
69436
69458
|
Object.defineProperty(DTableBodyCellInputInteger.prototype, "row", {
|
|
@@ -69496,9 +69518,10 @@
|
|
|
69496
69518
|
if (row !== undefined) {
|
|
69497
69519
|
var rowIndex = this._rowIndex;
|
|
69498
69520
|
var columnIndex = this._columnIndex;
|
|
69499
|
-
this._column
|
|
69521
|
+
var column = this._column;
|
|
69522
|
+
column.setter(row, columnIndex, newValue);
|
|
69500
69523
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69501
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69524
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69502
69525
|
}
|
|
69503
69526
|
};
|
|
69504
69527
|
Object.defineProperty(DTableBodyCellInputReal.prototype, "row", {
|
|
@@ -69545,6 +69568,75 @@
|
|
|
69545
69568
|
return DTableBodyCellInputReal;
|
|
69546
69569
|
}(DInputReal));
|
|
69547
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
|
+
|
|
69548
69640
|
/*
|
|
69549
69641
|
* Copyright (C) 2019 Toshiba Corporation
|
|
69550
69642
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -69564,9 +69656,10 @@
|
|
|
69564
69656
|
if (row !== undefined) {
|
|
69565
69657
|
var rowIndex = this._rowIndex;
|
|
69566
69658
|
var columnIndex = this._columnIndex;
|
|
69567
|
-
this._column
|
|
69659
|
+
var column = this._column;
|
|
69660
|
+
column.setter(row, columnIndex, newValue);
|
|
69568
69661
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
69569
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69662
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69570
69663
|
}
|
|
69571
69664
|
};
|
|
69572
69665
|
Object.defineProperty(DTableBodyCellInputText.prototype, "row", {
|
|
@@ -69761,9 +69854,10 @@
|
|
|
69761
69854
|
if (row !== undefined) {
|
|
69762
69855
|
var rowIndex = this._rowIndex;
|
|
69763
69856
|
var columnIndex = this._columnIndex;
|
|
69764
|
-
this._column
|
|
69857
|
+
var column = this._column;
|
|
69858
|
+
column.setter(row, columnIndex, newValue);
|
|
69765
69859
|
this.emit("change", newValue, oldValue, this);
|
|
69766
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
69860
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69767
69861
|
}
|
|
69768
69862
|
};
|
|
69769
69863
|
DTableBodyCellInputTree.prototype.newMarker = function (options) {
|
|
@@ -69852,7 +69946,7 @@
|
|
|
69852
69946
|
input.visible = true;
|
|
69853
69947
|
input.text = String(value);
|
|
69854
69948
|
var marker = this._marker;
|
|
69855
|
-
if (
|
|
69949
|
+
if (supplimental != null) {
|
|
69856
69950
|
var isOpened = !!(supplimental & 0x1);
|
|
69857
69951
|
var hasChildren = !!(supplimental & 0x2);
|
|
69858
69952
|
var level = supplimental >> 2;
|
|
@@ -69988,9 +70082,10 @@
|
|
|
69988
70082
|
if (row !== undefined) {
|
|
69989
70083
|
var rowIndex = this._rowIndex;
|
|
69990
70084
|
var columnIndex = this._columnIndex;
|
|
69991
|
-
this._column
|
|
70085
|
+
var column = this._column;
|
|
70086
|
+
column.setter(row, columnIndex, newValue);
|
|
69992
70087
|
_super.prototype.onValueChange.call(this, newValue, oldValue, item);
|
|
69993
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
70088
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
69994
70089
|
}
|
|
69995
70090
|
};
|
|
69996
70091
|
DTableBodyCellSelectMenu.prototype.onKeyDownArrowDown = function (e) {
|
|
@@ -70059,9 +70154,10 @@
|
|
|
70059
70154
|
if (row !== undefined) {
|
|
70060
70155
|
var rowIndex = this._rowIndex;
|
|
70061
70156
|
var columnIndex = this._columnIndex;
|
|
70062
|
-
this._column
|
|
70157
|
+
var column = this._column;
|
|
70158
|
+
column.setter(row, columnIndex, newValues);
|
|
70063
70159
|
_super.prototype.onValueChange.call(this, newValues, oldValues, items);
|
|
70064
|
-
this._onChange(newValues, oldValues, row, rowIndex, columnIndex, this);
|
|
70160
|
+
this._onChange(newValues, oldValues, row, rowIndex, columnIndex, column, this);
|
|
70065
70161
|
}
|
|
70066
70162
|
};
|
|
70067
70163
|
DTableBodyCellSelectMultiple.prototype.onKeyDownArrowDown = function (e) {
|
|
@@ -70111,6 +70207,21 @@
|
|
|
70111
70207
|
return DTableBodyCellSelectMultiple;
|
|
70112
70208
|
}(DSelectMultiple));
|
|
70113
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
|
+
|
|
70114
70225
|
/*
|
|
70115
70226
|
* Copyright (C) 2019 Toshiba Corporation
|
|
70116
70227
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -70130,9 +70241,10 @@
|
|
|
70130
70241
|
if (row !== undefined) {
|
|
70131
70242
|
var rowIndex = this._rowIndex;
|
|
70132
70243
|
var columnIndex = this._columnIndex;
|
|
70133
|
-
this._column
|
|
70244
|
+
var column = this._column;
|
|
70245
|
+
column.setter(row, columnIndex, newValue);
|
|
70134
70246
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
70135
|
-
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, this);
|
|
70247
|
+
this._onChange(newValue, oldValue, row, rowIndex, columnIndex, column, this);
|
|
70136
70248
|
}
|
|
70137
70249
|
else {
|
|
70138
70250
|
_super.prototype.onValueChange.call(this, newValue, oldValue);
|
|
@@ -70295,7 +70407,7 @@
|
|
|
70295
70407
|
DTableBodyCells.set(this, row, columnIndex, this._column, false);
|
|
70296
70408
|
var link = this.link;
|
|
70297
70409
|
var padding = this._padding;
|
|
70298
|
-
if (
|
|
70410
|
+
if (supplimental != null) {
|
|
70299
70411
|
var isOpened = !!(supplimental & 0x1);
|
|
70300
70412
|
var hasChildren = !!(supplimental & 0x2);
|
|
70301
70413
|
var level = supplimental >> 2;
|
|
@@ -70446,15 +70558,27 @@
|
|
|
70446
70558
|
function DTableBodyRow(onChange, isEven, columnIndexToCellOptions, options) {
|
|
70447
70559
|
var _this = _super.call(this, options) || this;
|
|
70448
70560
|
_this._index = -1;
|
|
70449
|
-
_this.
|
|
70450
|
-
|
|
70451
|
-
|
|
70561
|
+
_this._onChange = onChange;
|
|
70562
|
+
_this._onCellChangeBound = function (newValue, oldValue, row, rowIndex, columnIndex, column) {
|
|
70563
|
+
_this.onCellChange(newValue, oldValue, row, rowIndex, columnIndex, column);
|
|
70452
70564
|
};
|
|
70453
70565
|
_this._columnIndexToCellOptions = columnIndexToCellOptions;
|
|
70454
70566
|
_this.state.isAlternated = !isEven;
|
|
70455
70567
|
_this.initCells(options, _this._columns, _this._frozen);
|
|
70456
70568
|
return _this;
|
|
70457
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
|
+
};
|
|
70458
70582
|
DTableBodyRow.prototype.newCell = function (columnIndex, column, columns, options) {
|
|
70459
70583
|
var onChange = this._onCellChangeBound;
|
|
70460
70584
|
var columnIndexToCellOptions = this._columnIndexToCellOptions;
|
|
@@ -70480,6 +70604,8 @@
|
|
|
70480
70604
|
return new DTableBodyCellIndex(columnIndex, column, onChange, options);
|
|
70481
70605
|
case DTableColumnType.TEXT:
|
|
70482
70606
|
return new DTableBodyCellInputText(columnIndex, column, onChange, options);
|
|
70607
|
+
case DTableColumnType.TEXT_AREA:
|
|
70608
|
+
return new DTableBodyCellInputTextArea(columnIndex, column, onChange, options);
|
|
70483
70609
|
case DTableColumnType.TREE:
|
|
70484
70610
|
return new DTableBodyCellInputTree(columnIndex, column, onChange, options);
|
|
70485
70611
|
case DTableColumnType.INTEGER:
|
|
@@ -70515,6 +70641,8 @@
|
|
|
70515
70641
|
return new DTableBodyCellIndex(columnIndex, column, onChange, options);
|
|
70516
70642
|
case DTableColumnType.TEXT:
|
|
70517
70643
|
return new DTableBodyCellText(columnIndex, column, onChange, options);
|
|
70644
|
+
case DTableColumnType.TEXT_AREA:
|
|
70645
|
+
return new DTableBodyCellTextArea(columnIndex, column, onChange, options);
|
|
70518
70646
|
case DTableColumnType.TREE:
|
|
70519
70647
|
return new DTableBodyCellTree(columnIndex, column, onChange, options);
|
|
70520
70648
|
case DTableColumnType.INTEGER:
|
|
@@ -70664,8 +70792,12 @@
|
|
|
70664
70792
|
return target != null && "set" in target;
|
|
70665
70793
|
};
|
|
70666
70794
|
DTableBodyRow.prototype.set = function (value, supplimental, rowIndex, forcibly) {
|
|
70667
|
-
if (forcibly ||
|
|
70795
|
+
if (forcibly ||
|
|
70796
|
+
this._value !== value ||
|
|
70797
|
+
this._supplimental !== supplimental ||
|
|
70798
|
+
this._index !== rowIndex) {
|
|
70668
70799
|
this._value = value;
|
|
70800
|
+
this._supplimental = supplimental;
|
|
70669
70801
|
this._index = rowIndex;
|
|
70670
70802
|
var cells = this.children;
|
|
70671
70803
|
var cellsLength = cells.length;
|
|
@@ -71692,13 +71824,20 @@
|
|
|
71692
71824
|
_this._isUpdateRowsCalled = false;
|
|
71693
71825
|
_this._isUpdateRowsCalledForcibly = false;
|
|
71694
71826
|
_this._workRows = [];
|
|
71695
|
-
_this._onRowChangeBound = function (newValue, oldValue, row, rowIndex, columnIndex) {
|
|
71696
|
-
|
|
71827
|
+
_this._onRowChangeBound = function (newValue, oldValue, row, rowIndex, columnIndex, column) {
|
|
71828
|
+
_this.onRowChange(newValue, oldValue, row, rowIndex, columnIndex, column);
|
|
71697
71829
|
};
|
|
71698
71830
|
_this._columnIndexToCellOptions = new Map();
|
|
71699
71831
|
_this._data.emit("init", _this._data);
|
|
71700
71832
|
return _this;
|
|
71701
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
|
+
};
|
|
71702
71841
|
DTableBody.prototype.toData = function (options) {
|
|
71703
71842
|
if (this.isData(options)) {
|
|
71704
71843
|
return options;
|
|
@@ -73572,6 +73711,7 @@
|
|
|
73572
73711
|
}
|
|
73573
73712
|
switch (type) {
|
|
73574
73713
|
case DTableColumnType.TEXT:
|
|
73714
|
+
case DTableColumnType.TEXT_AREA:
|
|
73575
73715
|
return DAlignHorizontal.LEFT;
|
|
73576
73716
|
case DTableColumnType.REAL:
|
|
73577
73717
|
case DTableColumnType.INTEGER:
|
|
@@ -73791,7 +73931,7 @@
|
|
|
73791
73931
|
return true;
|
|
73792
73932
|
};
|
|
73793
73933
|
var toColumn = function (index, options) {
|
|
73794
|
-
var _a;
|
|
73934
|
+
var _a, _b;
|
|
73795
73935
|
var weight = options.weight;
|
|
73796
73936
|
var width = options.width;
|
|
73797
73937
|
if (weight != null) {
|
|
@@ -73827,7 +73967,8 @@
|
|
|
73827
73967
|
category: options.category,
|
|
73828
73968
|
frozen: options.frozen,
|
|
73829
73969
|
offset: 0.0,
|
|
73830
|
-
link: options.link
|
|
73970
|
+
link: options.link,
|
|
73971
|
+
update: toEnum((_b = options.update) !== null && _b !== void 0 ? _b : DTableColumnUpdate.CELL, DTableColumnUpdate)
|
|
73831
73972
|
};
|
|
73832
73973
|
};
|
|
73833
73974
|
var toColumns = function (options) {
|
|
@@ -76766,6 +76907,7 @@
|
|
|
76766
76907
|
DTableBodyCellIndex: DTableBodyCellIndex,
|
|
76767
76908
|
DTableBodyCellInputInteger: DTableBodyCellInputInteger,
|
|
76768
76909
|
DTableBodyCellInputReal: DTableBodyCellInputReal,
|
|
76910
|
+
DTableBodyCellInputTextArea: DTableBodyCellInputTextArea,
|
|
76769
76911
|
DTableBodyCellInputText: DTableBodyCellInputText,
|
|
76770
76912
|
DTableBodyCellInputTreeInput: DTableBodyCellInputTreeInput,
|
|
76771
76913
|
DTableBodyCellInputTreeMarker: DTableBodyCellInputTreeMarker,
|
|
@@ -76778,6 +76920,7 @@
|
|
|
76778
76920
|
DTableBodyCellSelectMenu: DTableBodyCellSelectMenu,
|
|
76779
76921
|
DTableBodyCellSelectMultiple: DTableBodyCellSelectMultiple,
|
|
76780
76922
|
DTableBodyCellSelectPromise: DTableBodyCellSelectPromise,
|
|
76923
|
+
DTableBodyCellTextArea: DTableBodyCellTextArea,
|
|
76781
76924
|
DTableBodyCellText: DTableBodyCellText,
|
|
76782
76925
|
DTableBodyCellTime: DTableBodyCellTime,
|
|
76783
76926
|
DTableBodyCellTree: DTableBodyCellTree,
|
|
@@ -76787,6 +76930,7 @@
|
|
|
76787
76930
|
DTableCategoryCell: DTableCategoryCell,
|
|
76788
76931
|
DTableCategory: DTableCategory,
|
|
76789
76932
|
DTableColumnType: DTableColumnType,
|
|
76933
|
+
DTableColumnUpdate: DTableColumnUpdate,
|
|
76790
76934
|
DTableDataListFilter: DTableDataListFilter,
|
|
76791
76935
|
DTableDataListMapped: DTableDataListMapped,
|
|
76792
76936
|
DTableDataListSelection: DTableDataListSelection,
|