@wcardinal/wcardinal-ui 0.450.0 → 0.451.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-select-multiple.d.ts +4 -2
- package/dist/types/wcardinal/ui/d-select.d.ts +2 -0
- 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 +1 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-color.d.ts +1 -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 +2 -1
- 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 +2 -1
- 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.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.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-table-body-row.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-table-column-selecting.d.ts +1 -1
- package/dist/types/wcardinal/ui/util/dynamic-atlas.d.ts +1 -0
- package/dist/wcardinal/ui/d-select-multiple.js +17 -11
- package/dist/wcardinal/ui/d-select-multiple.js.map +1 -1
- package/dist/wcardinal/ui/d-select.js +18 -12
- package/dist/wcardinal/ui/d-select.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-action-menu.js +4 -2
- package/dist/wcardinal/ui/d-table-body-cell-action-menu.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-check.js +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-check.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-color.js +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-color.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-date.js +4 -7
- package/dist/wcardinal/ui/d-table-body-cell-date.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-datetime.js +4 -7
- package/dist/wcardinal/ui/d-table-body-cell-datetime.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-index.js +4 -2
- package/dist/wcardinal/ui/d-table-body-cell-index.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-integer.js +4 -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 +4 -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 +4 -2
- package/dist/wcardinal/ui/d-table-body-cell-input-text-area.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-text.js +4 -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 -2
- 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 +5 -8
- 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 +4 -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 +4 -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 +4 -7
- package/dist/wcardinal/ui/d-table-body-cell-select-promise.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-text.js +4 -2
- package/dist/wcardinal/ui/d-table-body-cell-text.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-time.js +4 -7
- package/dist/wcardinal/ui/d-table-body-cell-time.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 +3 -3
- package/dist/wcardinal/ui/d-table-body-row.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body.js +2 -2
- package/dist/wcardinal/ui/d-table-body.js.map +1 -1
- package/dist/wcardinal/ui/d-table-column-selecting.js.map +1 -1
- package/dist/wcardinal/ui/util/dynamic-atlas.js +3 -0
- package/dist/wcardinal/ui/util/dynamic-atlas.js.map +1 -1
- package/dist/wcardinal/ui/util/dynamic-sdf-font-atlases.js +6 -1
- package/dist/wcardinal/ui/util/dynamic-sdf-font-atlases.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
- package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +113 -88
- package/dist/wcardinal-ui.js +113 -88
- 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.451.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -15218,6 +15218,9 @@
|
|
|
15218
15218
|
}
|
|
15219
15219
|
return null;
|
|
15220
15220
|
};
|
|
15221
|
+
DynamicAtlas.prototype.contains = function (id) {
|
|
15222
|
+
return id in this._idToDatum;
|
|
15223
|
+
};
|
|
15221
15224
|
DynamicAtlas.prototype.set = function (id, item) {
|
|
15222
15225
|
var result = this._idToDatum[id];
|
|
15223
15226
|
item.ref += 1;
|
|
@@ -16033,8 +16036,8 @@
|
|
|
16033
16036
|
DynamicSDFFontAtlases.prototype.update = function (baseAtlas) {
|
|
16034
16037
|
var baseTexture = baseAtlas.getBaseTexture();
|
|
16035
16038
|
this._atlases.forEach(function (atlas) {
|
|
16039
|
+
var atlasId = atlas.id;
|
|
16036
16040
|
if (atlas.update()) {
|
|
16037
|
-
var atlasId = atlas.id;
|
|
16038
16041
|
var item = baseAtlas.get(atlasId);
|
|
16039
16042
|
if (item != null) {
|
|
16040
16043
|
var width = atlas.width;
|
|
@@ -16050,6 +16053,11 @@
|
|
|
16050
16053
|
baseAtlas.set(atlasId, new DynamicAtlasItemFontAtlas(atlas, baseTexture));
|
|
16051
16054
|
}
|
|
16052
16055
|
}
|
|
16056
|
+
else {
|
|
16057
|
+
if (!baseAtlas.contains(atlasId)) {
|
|
16058
|
+
baseAtlas.set(atlasId, new DynamicAtlasItemFontAtlas(atlas, baseTexture));
|
|
16059
|
+
}
|
|
16060
|
+
}
|
|
16053
16061
|
});
|
|
16054
16062
|
};
|
|
16055
16063
|
DynamicSDFFontAtlases.prototype.destroy = function () {
|
|
@@ -55697,27 +55705,33 @@
|
|
|
55697
55705
|
* Returns a selected value or null.
|
|
55698
55706
|
*/
|
|
55699
55707
|
get: function () {
|
|
55700
|
-
return this.
|
|
55708
|
+
return this.getValue();
|
|
55701
55709
|
},
|
|
55702
55710
|
/**
|
|
55703
55711
|
* Sets to the specified value.
|
|
55704
55712
|
*/
|
|
55705
55713
|
set: function (value) {
|
|
55706
|
-
|
|
55707
|
-
var item = DMenuItems.find(this.menu, value);
|
|
55708
|
-
if (item != null) {
|
|
55709
|
-
this._value = value;
|
|
55710
|
-
this.text = item;
|
|
55711
|
-
}
|
|
55712
|
-
else {
|
|
55713
|
-
this._value = null;
|
|
55714
|
-
this.text = null;
|
|
55715
|
-
}
|
|
55716
|
-
}
|
|
55714
|
+
this.setValue(value);
|
|
55717
55715
|
},
|
|
55718
55716
|
enumerable: false,
|
|
55719
55717
|
configurable: true
|
|
55720
55718
|
});
|
|
55719
|
+
DSelect.prototype.getValue = function () {
|
|
55720
|
+
return this._value;
|
|
55721
|
+
};
|
|
55722
|
+
DSelect.prototype.setValue = function (value, forcibly) {
|
|
55723
|
+
if (forcibly || this._value !== value) {
|
|
55724
|
+
var item = DMenuItems.find(this.menu, value);
|
|
55725
|
+
if (item != null) {
|
|
55726
|
+
this._value = value;
|
|
55727
|
+
this.text.setValue(item, forcibly);
|
|
55728
|
+
}
|
|
55729
|
+
else {
|
|
55730
|
+
this._value = null;
|
|
55731
|
+
this.text.setValue(null, forcibly);
|
|
55732
|
+
}
|
|
55733
|
+
}
|
|
55734
|
+
};
|
|
55721
55735
|
DSelect.prototype.getType = function () {
|
|
55722
55736
|
return "DSelect";
|
|
55723
55737
|
};
|
|
@@ -71584,27 +71598,33 @@
|
|
|
71584
71598
|
};
|
|
71585
71599
|
Object.defineProperty(DSelectMultiple.prototype, "values", {
|
|
71586
71600
|
/**
|
|
71587
|
-
* Returns
|
|
71601
|
+
* Returns selected values.
|
|
71588
71602
|
*/
|
|
71589
71603
|
get: function () {
|
|
71590
|
-
return this.
|
|
71604
|
+
return this.getValues();
|
|
71591
71605
|
},
|
|
71592
71606
|
/**
|
|
71593
|
-
* Sets to the specified
|
|
71607
|
+
* Sets to the specified values.
|
|
71594
71608
|
*/
|
|
71595
71609
|
set: function (values) {
|
|
71596
|
-
|
|
71597
|
-
if (!this.isSameValues(values, oldValues)) {
|
|
71598
|
-
var newValues = [];
|
|
71599
|
-
var newItems = [];
|
|
71600
|
-
this.updateMenuItems(this.menu, values, undefined, undefined, newValues, newItems);
|
|
71601
|
-
this._values = newValues;
|
|
71602
|
-
this.text = newItems;
|
|
71603
|
-
}
|
|
71610
|
+
this.setValues(values);
|
|
71604
71611
|
},
|
|
71605
71612
|
enumerable: false,
|
|
71606
71613
|
configurable: true
|
|
71607
71614
|
});
|
|
71615
|
+
DSelectMultiple.prototype.getValues = function () {
|
|
71616
|
+
return this._values;
|
|
71617
|
+
};
|
|
71618
|
+
DSelectMultiple.prototype.setValues = function (values, forcibly) {
|
|
71619
|
+
var oldValues = this._values;
|
|
71620
|
+
if (forcibly || !this.isSameValues(values, oldValues)) {
|
|
71621
|
+
var newValues = [];
|
|
71622
|
+
var newItems = [];
|
|
71623
|
+
this.updateMenuItems(this.menu, values, undefined, undefined, newValues, newItems);
|
|
71624
|
+
this._values = newValues;
|
|
71625
|
+
this.text.setValue(newItems, forcibly);
|
|
71626
|
+
}
|
|
71627
|
+
};
|
|
71608
71628
|
DSelectMultiple.prototype.isSameValues = function (a, b) {
|
|
71609
71629
|
if (a.length === b.length) {
|
|
71610
71630
|
for (var i = 0, imax = a.length; i < imax; ++i) {
|
|
@@ -72367,7 +72387,7 @@
|
|
|
72367
72387
|
var oldValue_1 = (_a = this.text.computed) !== null && _a !== void 0 ? _a : null;
|
|
72368
72388
|
selecting.setter(dialog, oldValue_1);
|
|
72369
72389
|
dialog.open(this).then(function () {
|
|
72370
|
-
var newValue = selecting.getter(dialog);
|
|
72390
|
+
var newValue = selecting.getter(dialog, oldValue_1);
|
|
72371
72391
|
if (_this._isSyncEnabled) {
|
|
72372
72392
|
if (newValue !== oldValue_1) {
|
|
72373
72393
|
_this.text = newValue;
|
|
@@ -72433,17 +72453,14 @@
|
|
|
72433
72453
|
DTableBodyCellSelectDialog.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
72434
72454
|
this._row = row;
|
|
72435
72455
|
this._rowIndex = rowIndex;
|
|
72436
|
-
|
|
72437
|
-
|
|
72438
|
-
}
|
|
72439
|
-
else {
|
|
72440
|
-
this.text = value;
|
|
72441
|
-
}
|
|
72456
|
+
this.text.setValue(value, forcibly || this._forcibly);
|
|
72457
|
+
this._forcibly = undefined;
|
|
72442
72458
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
72443
72459
|
};
|
|
72444
|
-
DTableBodyCellSelectDialog.prototype.unset = function () {
|
|
72460
|
+
DTableBodyCellSelectDialog.prototype.unset = function (forcibly) {
|
|
72445
72461
|
this._row = undefined;
|
|
72446
72462
|
this._rowIndex = -1;
|
|
72463
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
72447
72464
|
};
|
|
72448
72465
|
DTableBodyCellSelectDialog.prototype.getType = function () {
|
|
72449
72466
|
return "DTableBodyCellSelectDialog";
|
|
@@ -72525,12 +72542,14 @@
|
|
|
72525
72542
|
DTableBodyCellActionMenu.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
72526
72543
|
this._row = row;
|
|
72527
72544
|
this._rowIndex = rowIndex;
|
|
72528
|
-
this.text
|
|
72545
|
+
this.text.setValue(value, forcibly || this._forcibly);
|
|
72546
|
+
this._forcibly = undefined;
|
|
72529
72547
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
72530
72548
|
};
|
|
72531
|
-
DTableBodyCellActionMenu.prototype.unset = function () {
|
|
72549
|
+
DTableBodyCellActionMenu.prototype.unset = function (forcibly) {
|
|
72532
72550
|
this._row = undefined;
|
|
72533
72551
|
this._rowIndex = -1;
|
|
72552
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
72534
72553
|
};
|
|
72535
72554
|
DTableBodyCellActionMenu.prototype.getType = function () {
|
|
72536
72555
|
return "DTableBodyCellActionMenu";
|
|
@@ -72628,17 +72647,14 @@
|
|
|
72628
72647
|
DTableBodyCellSelectPromise.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
72629
72648
|
this._row = row;
|
|
72630
72649
|
this._rowIndex = rowIndex;
|
|
72631
|
-
|
|
72632
|
-
|
|
72633
|
-
}
|
|
72634
|
-
else {
|
|
72635
|
-
this.text = value;
|
|
72636
|
-
}
|
|
72650
|
+
this.text.setValue(value, forcibly || this._forcibly);
|
|
72651
|
+
this._forcibly = undefined;
|
|
72637
72652
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
72638
72653
|
};
|
|
72639
|
-
DTableBodyCellSelectPromise.prototype.unset = function () {
|
|
72654
|
+
DTableBodyCellSelectPromise.prototype.unset = function (forcibly) {
|
|
72640
72655
|
this._row = undefined;
|
|
72641
72656
|
this._rowIndex = -1;
|
|
72657
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
72642
72658
|
};
|
|
72643
72659
|
DTableBodyCellSelectPromise.prototype.getType = function () {
|
|
72644
72660
|
return "DTableBodyCellSelectPromise";
|
|
@@ -72706,12 +72722,14 @@
|
|
|
72706
72722
|
DTableBodyCellText.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
72707
72723
|
this._row = row;
|
|
72708
72724
|
this._rowIndex = rowIndex;
|
|
72709
|
-
this.text
|
|
72725
|
+
this.text.setValue(value, forcibly || this._forcibly);
|
|
72726
|
+
this._forcibly = undefined;
|
|
72710
72727
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
72711
72728
|
};
|
|
72712
|
-
DTableBodyCellText.prototype.unset = function () {
|
|
72729
|
+
DTableBodyCellText.prototype.unset = function (forcibly) {
|
|
72713
72730
|
this._row = undefined;
|
|
72714
72731
|
this._rowIndex = -1;
|
|
72732
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
72715
72733
|
};
|
|
72716
72734
|
DTableBodyCellText.prototype.getType = function () {
|
|
72717
72735
|
return "DTableBodyCellText";
|
|
@@ -72922,7 +72940,7 @@
|
|
|
72922
72940
|
this.state.isActive = !!value;
|
|
72923
72941
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
72924
72942
|
};
|
|
72925
|
-
DTableBodyCellCheck.prototype.unset = function () {
|
|
72943
|
+
DTableBodyCellCheck.prototype.unset = function (forcibly) {
|
|
72926
72944
|
this._row = undefined;
|
|
72927
72945
|
this._rowIndex = -1;
|
|
72928
72946
|
};
|
|
@@ -73013,7 +73031,7 @@
|
|
|
73013
73031
|
}
|
|
73014
73032
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73015
73033
|
};
|
|
73016
|
-
DTableBodyCellColor.prototype.unset = function () {
|
|
73034
|
+
DTableBodyCellColor.prototype.unset = function (forcibly) {
|
|
73017
73035
|
this._row = undefined;
|
|
73018
73036
|
this._rowIndex = -1;
|
|
73019
73037
|
};
|
|
@@ -73083,12 +73101,7 @@
|
|
|
73083
73101
|
this._row = row;
|
|
73084
73102
|
this._rowIndex = rowIndex;
|
|
73085
73103
|
if (value instanceof Date) {
|
|
73086
|
-
|
|
73087
|
-
this.text.setValue(value, true);
|
|
73088
|
-
}
|
|
73089
|
-
else {
|
|
73090
|
-
this.text = value;
|
|
73091
|
-
}
|
|
73104
|
+
this.text.setValue(value, forcibly || this._forcibly);
|
|
73092
73105
|
}
|
|
73093
73106
|
else if (isNumber(value)) {
|
|
73094
73107
|
var text = this.text;
|
|
@@ -73101,11 +73114,13 @@
|
|
|
73101
73114
|
text.compute(true);
|
|
73102
73115
|
}
|
|
73103
73116
|
}
|
|
73117
|
+
this._forcibly = undefined;
|
|
73104
73118
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73105
73119
|
};
|
|
73106
|
-
DTableBodyCellDate.prototype.unset = function () {
|
|
73120
|
+
DTableBodyCellDate.prototype.unset = function (forcibly) {
|
|
73107
73121
|
this._row = undefined;
|
|
73108
73122
|
this._rowIndex = -1;
|
|
73123
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73109
73124
|
};
|
|
73110
73125
|
DTableBodyCellDate.prototype.getType = function () {
|
|
73111
73126
|
return "DTableBodyCellDate";
|
|
@@ -73173,12 +73188,7 @@
|
|
|
73173
73188
|
this._row = row;
|
|
73174
73189
|
this._rowIndex = rowIndex;
|
|
73175
73190
|
if (value instanceof Date) {
|
|
73176
|
-
|
|
73177
|
-
this.text.setValue(value, true);
|
|
73178
|
-
}
|
|
73179
|
-
else {
|
|
73180
|
-
this.text = value;
|
|
73181
|
-
}
|
|
73191
|
+
this.text.setValue(value, forcibly || this._forcibly);
|
|
73182
73192
|
}
|
|
73183
73193
|
else if (isNumber(value)) {
|
|
73184
73194
|
var text = this.text;
|
|
@@ -73191,11 +73201,13 @@
|
|
|
73191
73201
|
text.compute(true);
|
|
73192
73202
|
}
|
|
73193
73203
|
}
|
|
73204
|
+
this._forcibly = undefined;
|
|
73194
73205
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73195
73206
|
};
|
|
73196
|
-
DTableBodyCellDatetime.prototype.unset = function () {
|
|
73207
|
+
DTableBodyCellDatetime.prototype.unset = function (forcibly) {
|
|
73197
73208
|
this._row = undefined;
|
|
73198
73209
|
this._rowIndex = -1;
|
|
73210
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73199
73211
|
};
|
|
73200
73212
|
DTableBodyCellDatetime.prototype.getType = function () {
|
|
73201
73213
|
return "DTableBodyCellDatetime";
|
|
@@ -73248,12 +73260,14 @@
|
|
|
73248
73260
|
DTableBodyCellIndex.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
73249
73261
|
this._row = row;
|
|
73250
73262
|
this._rowIndex = rowIndex;
|
|
73251
|
-
this.text
|
|
73263
|
+
this.text.setValue(rowIndex, forcibly || this._forcibly);
|
|
73264
|
+
this._forcibly = undefined;
|
|
73252
73265
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73253
73266
|
};
|
|
73254
|
-
DTableBodyCellIndex.prototype.unset = function () {
|
|
73267
|
+
DTableBodyCellIndex.prototype.unset = function (forcibly) {
|
|
73255
73268
|
this._row = undefined;
|
|
73256
73269
|
this._rowIndex = -1;
|
|
73270
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73257
73271
|
};
|
|
73258
73272
|
DTableBodyCellIndex.prototype.getType = function () {
|
|
73259
73273
|
return "DTableBodyCellIndex";
|
|
@@ -73317,12 +73331,14 @@
|
|
|
73317
73331
|
DTableBodyCellInputInteger.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
73318
73332
|
this._row = row;
|
|
73319
73333
|
this._rowIndex = rowIndex;
|
|
73320
|
-
this.text
|
|
73334
|
+
this.text.setValue(Number(value), forcibly || this._forcibly);
|
|
73335
|
+
this._forcibly = undefined;
|
|
73321
73336
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73322
73337
|
};
|
|
73323
|
-
DTableBodyCellInputInteger.prototype.unset = function () {
|
|
73338
|
+
DTableBodyCellInputInteger.prototype.unset = function (forcibly) {
|
|
73324
73339
|
this._row = undefined;
|
|
73325
73340
|
this._rowIndex = -1;
|
|
73341
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73326
73342
|
};
|
|
73327
73343
|
DTableBodyCellInputInteger.prototype.getType = function () {
|
|
73328
73344
|
return "DTableBodyCellInputInteger";
|
|
@@ -73386,12 +73402,14 @@
|
|
|
73386
73402
|
DTableBodyCellInputReal.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
73387
73403
|
this._row = row;
|
|
73388
73404
|
this._rowIndex = rowIndex;
|
|
73389
|
-
this.text
|
|
73405
|
+
this.text.setValue(Number(value), forcibly || this._forcibly);
|
|
73406
|
+
this._forcibly = undefined;
|
|
73390
73407
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73391
73408
|
};
|
|
73392
|
-
DTableBodyCellInputReal.prototype.unset = function () {
|
|
73409
|
+
DTableBodyCellInputReal.prototype.unset = function (forcibly) {
|
|
73393
73410
|
this._row = undefined;
|
|
73394
73411
|
this._rowIndex = -1;
|
|
73412
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73395
73413
|
};
|
|
73396
73414
|
DTableBodyCellInputReal.prototype.getType = function () {
|
|
73397
73415
|
return "DTableBodyCellInputReal";
|
|
@@ -73455,12 +73473,14 @@
|
|
|
73455
73473
|
DTableBodyCellInputTextArea.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
73456
73474
|
this._row = row;
|
|
73457
73475
|
this._rowIndex = rowIndex;
|
|
73458
|
-
this.text
|
|
73476
|
+
this.text.setValue(String(value), forcibly || this._forcibly);
|
|
73477
|
+
this._forcibly = undefined;
|
|
73459
73478
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73460
73479
|
};
|
|
73461
|
-
DTableBodyCellInputTextArea.prototype.unset = function () {
|
|
73480
|
+
DTableBodyCellInputTextArea.prototype.unset = function (forcibly) {
|
|
73462
73481
|
this._row = undefined;
|
|
73463
73482
|
this._rowIndex = -1;
|
|
73483
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73464
73484
|
};
|
|
73465
73485
|
DTableBodyCellInputTextArea.prototype.getType = function () {
|
|
73466
73486
|
return "DTableBodyCellInputTextArea";
|
|
@@ -73524,12 +73544,14 @@
|
|
|
73524
73544
|
DTableBodyCellInputText.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
73525
73545
|
this._row = row;
|
|
73526
73546
|
this._rowIndex = rowIndex;
|
|
73527
|
-
this.text
|
|
73547
|
+
this.text.setValue(String(value), forcibly || this._forcibly);
|
|
73548
|
+
this._forcibly = undefined;
|
|
73528
73549
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73529
73550
|
};
|
|
73530
|
-
DTableBodyCellInputText.prototype.unset = function () {
|
|
73551
|
+
DTableBodyCellInputText.prototype.unset = function (forcibly) {
|
|
73531
73552
|
this._row = undefined;
|
|
73532
73553
|
this._rowIndex = -1;
|
|
73554
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73533
73555
|
};
|
|
73534
73556
|
DTableBodyCellInputText.prototype.getType = function () {
|
|
73535
73557
|
return "DTableBodyCellInputText";
|
|
@@ -73787,7 +73809,8 @@
|
|
|
73787
73809
|
this._rowIndex = rowIndex;
|
|
73788
73810
|
var input = this._input;
|
|
73789
73811
|
input.visible = true;
|
|
73790
|
-
input.text
|
|
73812
|
+
input.text.setValue(String(value), forcibly || this._forcibly);
|
|
73813
|
+
this._forcibly = undefined;
|
|
73791
73814
|
var marker = this._marker;
|
|
73792
73815
|
if (supplimental != null) {
|
|
73793
73816
|
var isOpened = !!(supplimental & 0x1);
|
|
@@ -73816,11 +73839,12 @@
|
|
|
73816
73839
|
}
|
|
73817
73840
|
DTableBodyCells.set(this._input, row, columnIndex, this._column);
|
|
73818
73841
|
};
|
|
73819
|
-
DTableBodyCellInputTree.prototype.unset = function () {
|
|
73842
|
+
DTableBodyCellInputTree.prototype.unset = function (forcibly) {
|
|
73820
73843
|
this._row = undefined;
|
|
73821
73844
|
this._rowIndex = -1;
|
|
73822
73845
|
this._input.visible = false;
|
|
73823
73846
|
this._marker.hide();
|
|
73847
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73824
73848
|
};
|
|
73825
73849
|
DTableBodyCellInputTree.prototype.getType = function () {
|
|
73826
73850
|
return "DTableBodyCellInputTree";
|
|
@@ -73965,12 +73989,14 @@
|
|
|
73965
73989
|
DTableBodyCellSelectMenu.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
73966
73990
|
this._row = row;
|
|
73967
73991
|
this._rowIndex = rowIndex;
|
|
73968
|
-
this.value
|
|
73992
|
+
this.setValue(value, forcibly || this._forcibly);
|
|
73993
|
+
this._forcibly = undefined;
|
|
73969
73994
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
73970
73995
|
};
|
|
73971
|
-
DTableBodyCellSelectMenu.prototype.unset = function () {
|
|
73996
|
+
DTableBodyCellSelectMenu.prototype.unset = function (forcibly) {
|
|
73972
73997
|
this._row = undefined;
|
|
73973
73998
|
this._rowIndex = -1;
|
|
73999
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
73974
74000
|
};
|
|
73975
74001
|
DTableBodyCellSelectMenu.prototype.getType = function () {
|
|
73976
74002
|
return "DTableBodyCellSelectMenu";
|
|
@@ -74037,12 +74063,14 @@
|
|
|
74037
74063
|
DTableBodyCellSelectMultiple.prototype.set = function (value, row, supplimental, rowIndex, columnIndex, forcibly) {
|
|
74038
74064
|
this._row = row;
|
|
74039
74065
|
this._rowIndex = rowIndex;
|
|
74040
|
-
this.
|
|
74066
|
+
this.setValues(value, forcibly || this._forcibly);
|
|
74067
|
+
this._forcibly = undefined;
|
|
74041
74068
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
74042
74069
|
};
|
|
74043
|
-
DTableBodyCellSelectMultiple.prototype.unset = function () {
|
|
74070
|
+
DTableBodyCellSelectMultiple.prototype.unset = function (forcibly) {
|
|
74044
74071
|
this._row = undefined;
|
|
74045
74072
|
this._rowIndex = -1;
|
|
74073
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
74046
74074
|
};
|
|
74047
74075
|
DTableBodyCellSelectMultiple.prototype.getType = function () {
|
|
74048
74076
|
return "DTableBodyCellSelectMultiple";
|
|
@@ -74125,12 +74153,7 @@
|
|
|
74125
74153
|
this._row = row;
|
|
74126
74154
|
this._rowIndex = rowIndex;
|
|
74127
74155
|
if (value instanceof Date) {
|
|
74128
|
-
|
|
74129
|
-
this.text.setValue(value, true);
|
|
74130
|
-
}
|
|
74131
|
-
else {
|
|
74132
|
-
this.text = value;
|
|
74133
|
-
}
|
|
74156
|
+
this.text.setValue(value, forcibly || this._forcibly);
|
|
74134
74157
|
}
|
|
74135
74158
|
else if (isNumber(value)) {
|
|
74136
74159
|
var text = this.text;
|
|
@@ -74143,11 +74166,13 @@
|
|
|
74143
74166
|
text.compute(true);
|
|
74144
74167
|
}
|
|
74145
74168
|
}
|
|
74169
|
+
this._forcibly = undefined;
|
|
74146
74170
|
DTableBodyCells.set(this, row, columnIndex, this._column);
|
|
74147
74171
|
};
|
|
74148
|
-
DTableBodyCellTime.prototype.unset = function () {
|
|
74172
|
+
DTableBodyCellTime.prototype.unset = function (forcibly) {
|
|
74149
74173
|
this._row = undefined;
|
|
74150
74174
|
this._rowIndex = -1;
|
|
74175
|
+
this._forcibly || (this._forcibly = forcibly);
|
|
74151
74176
|
};
|
|
74152
74177
|
DTableBodyCellTime.prototype.getType = function () {
|
|
74153
74178
|
return "DTableBodyCellTime";
|
|
@@ -74658,8 +74683,8 @@
|
|
|
74658
74683
|
DTableBodyRow.prototype.onSet = function (value, rowIndex) {
|
|
74659
74684
|
this.emit("set", value, rowIndex, this);
|
|
74660
74685
|
};
|
|
74661
|
-
DTableBodyRow.prototype.unset = function () {
|
|
74662
|
-
if (this._value !== undefined) {
|
|
74686
|
+
DTableBodyRow.prototype.unset = function (forcibly) {
|
|
74687
|
+
if (forcibly || this._value !== undefined) {
|
|
74663
74688
|
this._value = undefined;
|
|
74664
74689
|
this._index = -1;
|
|
74665
74690
|
var cells = this.children;
|
|
@@ -74667,7 +74692,7 @@
|
|
|
74667
74692
|
for (var i = 0; i < cellsLength; ++i) {
|
|
74668
74693
|
var cell = cells[i];
|
|
74669
74694
|
if (this.isCell(cell)) {
|
|
74670
|
-
cell.unset();
|
|
74695
|
+
cell.unset(forcibly);
|
|
74671
74696
|
}
|
|
74672
74697
|
}
|
|
74673
74698
|
this.onUnset();
|
|
@@ -75833,7 +75858,7 @@
|
|
|
75833
75858
|
rowState.removeAll(DTableState.HAS_DATA, DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
75834
75859
|
rowState.unlock();
|
|
75835
75860
|
// Data
|
|
75836
|
-
row.unset();
|
|
75861
|
+
row.unset(forcibly);
|
|
75837
75862
|
}
|
|
75838
75863
|
for (var i = rowsLength - 1; dataMappedSize <= newRowIndexMappedStart + i && 0 <= i; --i) {
|
|
75839
75864
|
var row = rows[i];
|
|
@@ -75846,7 +75871,7 @@
|
|
|
75846
75871
|
rowState.removeAll(DTableState.HAS_DATA, DTableState.SELECTABLE, DBaseState.ACTIVE);
|
|
75847
75872
|
rowState.unlock();
|
|
75848
75873
|
// Data
|
|
75849
|
-
row.unset();
|
|
75874
|
+
row.unset(forcibly);
|
|
75850
75875
|
}
|
|
75851
75876
|
this.lock();
|
|
75852
75877
|
content.position.y = newContentY;
|