@wcardinal/wcardinal-ui 0.283.0 → 0.285.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-input-tree.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-table-data-tree.d.ts +40 -5
- package/dist/wcardinal/ui/d-table-body-cell-input-tree.js +30 -11
- package/dist/wcardinal/ui/d-table-body-cell-input-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-tree.js +12 -1
- package/dist/wcardinal/ui/d-table-body-cell-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree.js +25 -10
- package/dist/wcardinal/ui/d-table-data-tree.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cell-input-tree-marker.js +2 -2
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cell-input-tree-marker.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cell-input-tree-marker.js +2 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cell-input-tree-marker.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +3 -3
- 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 +3 -3
- 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 +72 -27
- package/dist/wcardinal-ui.js +68 -23
- 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.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.285.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -54385,10 +54385,10 @@ var DThemeWhiteTableBodyCellInputTreeMarker = /** @class */ (function (_super) {
|
|
|
54385
54385
|
return DThemeWhiteTableBodyCells.getHeight();
|
|
54386
54386
|
};
|
|
54387
54387
|
DThemeWhiteTableBodyCellInputTreeMarker.prototype.getBackgroundColor = function (state) {
|
|
54388
|
-
return
|
|
54388
|
+
return null;
|
|
54389
54389
|
};
|
|
54390
54390
|
DThemeWhiteTableBodyCellInputTreeMarker.prototype.getBackgroundAlpha = function (state) {
|
|
54391
|
-
return
|
|
54391
|
+
return 1;
|
|
54392
54392
|
};
|
|
54393
54393
|
DThemeWhiteTableBodyCellInputTreeMarker.prototype.getBorderColor = function (state) {
|
|
54394
54394
|
return null;
|
|
@@ -63475,10 +63475,10 @@ var DThemeDarkTableBodyCellInputTreeMarker = /** @class */ (function (_super) {
|
|
|
63475
63475
|
return DThemeDarkTableBodyCells.getHeight();
|
|
63476
63476
|
};
|
|
63477
63477
|
DThemeDarkTableBodyCellInputTreeMarker.prototype.getBackgroundColor = function (state) {
|
|
63478
|
-
return
|
|
63478
|
+
return null;
|
|
63479
63479
|
};
|
|
63480
63480
|
DThemeDarkTableBodyCellInputTreeMarker.prototype.getBackgroundAlpha = function (state) {
|
|
63481
|
-
return
|
|
63481
|
+
return 1;
|
|
63482
63482
|
};
|
|
63483
63483
|
DThemeDarkTableBodyCellInputTreeMarker.prototype.getBorderColor = function (state) {
|
|
63484
63484
|
return null;
|
|
@@ -85307,17 +85307,7 @@ var DTableBodyCellInputTree = /** @class */ (function (_super) {
|
|
|
85307
85307
|
};
|
|
85308
85308
|
DTableBodyCellInputTree.prototype.onMarkerActive = function () {
|
|
85309
85309
|
if (this._marker.state.is(DTableState.HAS_CHILDREN)) {
|
|
85310
|
-
|
|
85311
|
-
if (row) {
|
|
85312
|
-
var body = row.parent;
|
|
85313
|
-
if (body) {
|
|
85314
|
-
var data = body.data;
|
|
85315
|
-
if (data && data.toggle) {
|
|
85316
|
-
data.toggle(this._row);
|
|
85317
|
-
this.emit("cellchange", null, null, this._row, this._rowIndex, this._columnIndex, this);
|
|
85318
|
-
}
|
|
85319
|
-
}
|
|
85320
|
-
}
|
|
85310
|
+
this.toggle();
|
|
85321
85311
|
}
|
|
85322
85312
|
};
|
|
85323
85313
|
Object.defineProperty(DTableBodyCellInputTree.prototype, "row", {
|
|
@@ -85348,6 +85338,35 @@ var DTableBodyCellInputTree = /** @class */ (function (_super) {
|
|
|
85348
85338
|
enumerable: false,
|
|
85349
85339
|
configurable: true
|
|
85350
85340
|
});
|
|
85341
|
+
DTableBodyCellInputTree.prototype.toggle = function () {
|
|
85342
|
+
var row = this._row;
|
|
85343
|
+
if (row === undefined) {
|
|
85344
|
+
return;
|
|
85345
|
+
}
|
|
85346
|
+
var parent = this.parent;
|
|
85347
|
+
if (parent == null) {
|
|
85348
|
+
return;
|
|
85349
|
+
}
|
|
85350
|
+
var body = parent.parent;
|
|
85351
|
+
if (body == null) {
|
|
85352
|
+
return;
|
|
85353
|
+
}
|
|
85354
|
+
var data = body.data;
|
|
85355
|
+
if (data && data.toggle) {
|
|
85356
|
+
if (data.isExpanded(row)) {
|
|
85357
|
+
if (data.collapse(row)) {
|
|
85358
|
+
this.emit("collapse", this);
|
|
85359
|
+
data.emit("collapse", row, this);
|
|
85360
|
+
}
|
|
85361
|
+
}
|
|
85362
|
+
else {
|
|
85363
|
+
if (data.expand(row)) {
|
|
85364
|
+
this.emit("expand", this);
|
|
85365
|
+
data.emit("expand", row, this);
|
|
85366
|
+
}
|
|
85367
|
+
}
|
|
85368
|
+
}
|
|
85369
|
+
};
|
|
85351
85370
|
DTableBodyCellInputTree.prototype.onRowSelect = function (e, local) {
|
|
85352
85371
|
if (local.x <= this.position.x + this._input.padding.getLeft()) {
|
|
85353
85372
|
return true;
|
|
@@ -85776,7 +85795,18 @@ var DTableBodyCellTree = /** @class */ (function (_super) {
|
|
|
85776
85795
|
}
|
|
85777
85796
|
var data = body.data;
|
|
85778
85797
|
if (data && data.toggle) {
|
|
85779
|
-
data.
|
|
85798
|
+
if (data.isExpanded(row)) {
|
|
85799
|
+
if (data.collapse(row)) {
|
|
85800
|
+
this.emit("collapse", this);
|
|
85801
|
+
data.emit("collapse", row, this);
|
|
85802
|
+
}
|
|
85803
|
+
}
|
|
85804
|
+
else {
|
|
85805
|
+
if (data.expand(row)) {
|
|
85806
|
+
this.emit("expand", this);
|
|
85807
|
+
data.emit("expand", row, this);
|
|
85808
|
+
}
|
|
85809
|
+
}
|
|
85780
85810
|
}
|
|
85781
85811
|
};
|
|
85782
85812
|
DTableBodyCellTree.prototype.onRowSelect = function (e, local) {
|
|
@@ -88360,38 +88390,53 @@ var DTableDataTree = /** @class */ (function (_super) {
|
|
|
88360
88390
|
}
|
|
88361
88391
|
return null;
|
|
88362
88392
|
};
|
|
88363
|
-
DTableDataTree.prototype.
|
|
88393
|
+
DTableDataTree.prototype.expand = function (node) {
|
|
88364
88394
|
var flags = this._flags;
|
|
88365
88395
|
if (!flags.has(node)) {
|
|
88366
88396
|
flags.set(node, 1);
|
|
88367
88397
|
this._isRowsDirty = true;
|
|
88368
88398
|
this._filter.toDirty();
|
|
88369
88399
|
this.update(true);
|
|
88400
|
+
return true;
|
|
88370
88401
|
}
|
|
88402
|
+
return false;
|
|
88371
88403
|
};
|
|
88372
|
-
DTableDataTree.prototype.
|
|
88404
|
+
DTableDataTree.prototype.collapse = function (node) {
|
|
88373
88405
|
var flags = this._flags;
|
|
88374
88406
|
if (flags.has(node)) {
|
|
88375
88407
|
flags.delete(node);
|
|
88376
88408
|
this._isRowsDirty = true;
|
|
88377
88409
|
this._filter.toDirty();
|
|
88378
88410
|
this.update(true);
|
|
88411
|
+
return true;
|
|
88379
88412
|
}
|
|
88413
|
+
return false;
|
|
88380
88414
|
};
|
|
88381
|
-
DTableDataTree.prototype.
|
|
88415
|
+
DTableDataTree.prototype.isCollapsed = function (node) {
|
|
88416
|
+
return !this._flags.has(node);
|
|
88417
|
+
};
|
|
88418
|
+
DTableDataTree.prototype.isExpanded = function (node) {
|
|
88382
88419
|
return this._flags.has(node);
|
|
88383
88420
|
};
|
|
88384
88421
|
DTableDataTree.prototype.toggle = function (node) {
|
|
88385
|
-
|
|
88386
|
-
|
|
88387
|
-
flags.delete(node);
|
|
88422
|
+
if (this.isExpanded(node)) {
|
|
88423
|
+
return this.collapse(node);
|
|
88388
88424
|
}
|
|
88389
88425
|
else {
|
|
88390
|
-
|
|
88426
|
+
return this.expand(node);
|
|
88391
88427
|
}
|
|
88392
|
-
|
|
88393
|
-
|
|
88394
|
-
|
|
88428
|
+
};
|
|
88429
|
+
/** @deprecated in favor of {@link expand}. */
|
|
88430
|
+
DTableDataTree.prototype.open = function (node) {
|
|
88431
|
+
return this.expand(node);
|
|
88432
|
+
};
|
|
88433
|
+
/** @deprecated in favor of {@link collapse}. */
|
|
88434
|
+
DTableDataTree.prototype.close = function (node) {
|
|
88435
|
+
return this.collapse(node);
|
|
88436
|
+
};
|
|
88437
|
+
/** @deprecated in favor of {@link isExpanded}. */
|
|
88438
|
+
DTableDataTree.prototype.isOpened = function (node) {
|
|
88439
|
+
return this.isExpanded(node);
|
|
88395
88440
|
};
|
|
88396
88441
|
DTableDataTree.prototype.each = function (iteratee, ifrom, ito) {
|
|
88397
88442
|
var rows = this.rows;
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.285.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -67128,17 +67128,7 @@
|
|
|
67128
67128
|
};
|
|
67129
67129
|
DTableBodyCellInputTree.prototype.onMarkerActive = function () {
|
|
67130
67130
|
if (this._marker.state.is(DTableState.HAS_CHILDREN)) {
|
|
67131
|
-
|
|
67132
|
-
if (row) {
|
|
67133
|
-
var body = row.parent;
|
|
67134
|
-
if (body) {
|
|
67135
|
-
var data = body.data;
|
|
67136
|
-
if (data && data.toggle) {
|
|
67137
|
-
data.toggle(this._row);
|
|
67138
|
-
this.emit("cellchange", null, null, this._row, this._rowIndex, this._columnIndex, this);
|
|
67139
|
-
}
|
|
67140
|
-
}
|
|
67141
|
-
}
|
|
67131
|
+
this.toggle();
|
|
67142
67132
|
}
|
|
67143
67133
|
};
|
|
67144
67134
|
Object.defineProperty(DTableBodyCellInputTree.prototype, "row", {
|
|
@@ -67169,6 +67159,35 @@
|
|
|
67169
67159
|
enumerable: false,
|
|
67170
67160
|
configurable: true
|
|
67171
67161
|
});
|
|
67162
|
+
DTableBodyCellInputTree.prototype.toggle = function () {
|
|
67163
|
+
var row = this._row;
|
|
67164
|
+
if (row === undefined) {
|
|
67165
|
+
return;
|
|
67166
|
+
}
|
|
67167
|
+
var parent = this.parent;
|
|
67168
|
+
if (parent == null) {
|
|
67169
|
+
return;
|
|
67170
|
+
}
|
|
67171
|
+
var body = parent.parent;
|
|
67172
|
+
if (body == null) {
|
|
67173
|
+
return;
|
|
67174
|
+
}
|
|
67175
|
+
var data = body.data;
|
|
67176
|
+
if (data && data.toggle) {
|
|
67177
|
+
if (data.isExpanded(row)) {
|
|
67178
|
+
if (data.collapse(row)) {
|
|
67179
|
+
this.emit("collapse", this);
|
|
67180
|
+
data.emit("collapse", row, this);
|
|
67181
|
+
}
|
|
67182
|
+
}
|
|
67183
|
+
else {
|
|
67184
|
+
if (data.expand(row)) {
|
|
67185
|
+
this.emit("expand", this);
|
|
67186
|
+
data.emit("expand", row, this);
|
|
67187
|
+
}
|
|
67188
|
+
}
|
|
67189
|
+
}
|
|
67190
|
+
};
|
|
67172
67191
|
DTableBodyCellInputTree.prototype.onRowSelect = function (e, local) {
|
|
67173
67192
|
if (local.x <= this.position.x + this._input.padding.getLeft()) {
|
|
67174
67193
|
return true;
|
|
@@ -67597,7 +67616,18 @@
|
|
|
67597
67616
|
}
|
|
67598
67617
|
var data = body.data;
|
|
67599
67618
|
if (data && data.toggle) {
|
|
67600
|
-
data.
|
|
67619
|
+
if (data.isExpanded(row)) {
|
|
67620
|
+
if (data.collapse(row)) {
|
|
67621
|
+
this.emit("collapse", this);
|
|
67622
|
+
data.emit("collapse", row, this);
|
|
67623
|
+
}
|
|
67624
|
+
}
|
|
67625
|
+
else {
|
|
67626
|
+
if (data.expand(row)) {
|
|
67627
|
+
this.emit("expand", this);
|
|
67628
|
+
data.emit("expand", row, this);
|
|
67629
|
+
}
|
|
67630
|
+
}
|
|
67601
67631
|
}
|
|
67602
67632
|
};
|
|
67603
67633
|
DTableBodyCellTree.prototype.onRowSelect = function (e, local) {
|
|
@@ -70181,38 +70211,53 @@
|
|
|
70181
70211
|
}
|
|
70182
70212
|
return null;
|
|
70183
70213
|
};
|
|
70184
|
-
DTableDataTree.prototype.
|
|
70214
|
+
DTableDataTree.prototype.expand = function (node) {
|
|
70185
70215
|
var flags = this._flags;
|
|
70186
70216
|
if (!flags.has(node)) {
|
|
70187
70217
|
flags.set(node, 1);
|
|
70188
70218
|
this._isRowsDirty = true;
|
|
70189
70219
|
this._filter.toDirty();
|
|
70190
70220
|
this.update(true);
|
|
70221
|
+
return true;
|
|
70191
70222
|
}
|
|
70223
|
+
return false;
|
|
70192
70224
|
};
|
|
70193
|
-
DTableDataTree.prototype.
|
|
70225
|
+
DTableDataTree.prototype.collapse = function (node) {
|
|
70194
70226
|
var flags = this._flags;
|
|
70195
70227
|
if (flags.has(node)) {
|
|
70196
70228
|
flags.delete(node);
|
|
70197
70229
|
this._isRowsDirty = true;
|
|
70198
70230
|
this._filter.toDirty();
|
|
70199
70231
|
this.update(true);
|
|
70232
|
+
return true;
|
|
70200
70233
|
}
|
|
70234
|
+
return false;
|
|
70201
70235
|
};
|
|
70202
|
-
DTableDataTree.prototype.
|
|
70236
|
+
DTableDataTree.prototype.isCollapsed = function (node) {
|
|
70237
|
+
return !this._flags.has(node);
|
|
70238
|
+
};
|
|
70239
|
+
DTableDataTree.prototype.isExpanded = function (node) {
|
|
70203
70240
|
return this._flags.has(node);
|
|
70204
70241
|
};
|
|
70205
70242
|
DTableDataTree.prototype.toggle = function (node) {
|
|
70206
|
-
|
|
70207
|
-
|
|
70208
|
-
flags.delete(node);
|
|
70243
|
+
if (this.isExpanded(node)) {
|
|
70244
|
+
return this.collapse(node);
|
|
70209
70245
|
}
|
|
70210
70246
|
else {
|
|
70211
|
-
|
|
70247
|
+
return this.expand(node);
|
|
70212
70248
|
}
|
|
70213
|
-
|
|
70214
|
-
|
|
70215
|
-
|
|
70249
|
+
};
|
|
70250
|
+
/** @deprecated in favor of {@link expand}. */
|
|
70251
|
+
DTableDataTree.prototype.open = function (node) {
|
|
70252
|
+
return this.expand(node);
|
|
70253
|
+
};
|
|
70254
|
+
/** @deprecated in favor of {@link collapse}. */
|
|
70255
|
+
DTableDataTree.prototype.close = function (node) {
|
|
70256
|
+
return this.collapse(node);
|
|
70257
|
+
};
|
|
70258
|
+
/** @deprecated in favor of {@link isExpanded}. */
|
|
70259
|
+
DTableDataTree.prototype.isOpened = function (node) {
|
|
70260
|
+
return this.isExpanded(node);
|
|
70216
70261
|
};
|
|
70217
70262
|
DTableDataTree.prototype.each = function (iteratee, ifrom, ito) {
|
|
70218
70263
|
var rows = this.rows;
|