@wcardinal/wcardinal-ui 0.283.0 → 0.284.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 +19 -11
- package/dist/wcardinal/ui/d-table-body-cell-input-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-table-data-tree.js +27 -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 +51 -26
- package/dist/wcardinal-ui.js +47 -22
- 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.284.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,24 @@ 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
|
+
data.toggle(row);
|
|
85357
|
+
}
|
|
85358
|
+
};
|
|
85351
85359
|
DTableBodyCellInputTree.prototype.onRowSelect = function (e, local) {
|
|
85352
85360
|
if (local.x <= this.position.x + this._input.padding.getLeft()) {
|
|
85353
85361
|
return true;
|
|
@@ -88360,38 +88368,55 @@ var DTableDataTree = /** @class */ (function (_super) {
|
|
|
88360
88368
|
}
|
|
88361
88369
|
return null;
|
|
88362
88370
|
};
|
|
88363
|
-
DTableDataTree.prototype.
|
|
88371
|
+
DTableDataTree.prototype.expand = function (node) {
|
|
88364
88372
|
var flags = this._flags;
|
|
88365
88373
|
if (!flags.has(node)) {
|
|
88366
88374
|
flags.set(node, 1);
|
|
88367
88375
|
this._isRowsDirty = true;
|
|
88368
88376
|
this._filter.toDirty();
|
|
88369
88377
|
this.update(true);
|
|
88378
|
+
this.emit("expand", node, this);
|
|
88379
|
+
return true;
|
|
88370
88380
|
}
|
|
88381
|
+
return false;
|
|
88371
88382
|
};
|
|
88372
|
-
DTableDataTree.prototype.
|
|
88383
|
+
DTableDataTree.prototype.collapse = function (node) {
|
|
88373
88384
|
var flags = this._flags;
|
|
88374
88385
|
if (flags.has(node)) {
|
|
88375
88386
|
flags.delete(node);
|
|
88376
88387
|
this._isRowsDirty = true;
|
|
88377
88388
|
this._filter.toDirty();
|
|
88378
88389
|
this.update(true);
|
|
88390
|
+
this.emit("collapse", node, this);
|
|
88391
|
+
return true;
|
|
88379
88392
|
}
|
|
88393
|
+
return false;
|
|
88380
88394
|
};
|
|
88381
|
-
DTableDataTree.prototype.
|
|
88395
|
+
DTableDataTree.prototype.isCollapsed = function (node) {
|
|
88396
|
+
return !this._flags.has(node);
|
|
88397
|
+
};
|
|
88398
|
+
DTableDataTree.prototype.isExpanded = function (node) {
|
|
88382
88399
|
return this._flags.has(node);
|
|
88383
88400
|
};
|
|
88384
88401
|
DTableDataTree.prototype.toggle = function (node) {
|
|
88385
|
-
|
|
88386
|
-
|
|
88387
|
-
flags.delete(node);
|
|
88402
|
+
if (this.isExpanded(node)) {
|
|
88403
|
+
return this.collapse(node);
|
|
88388
88404
|
}
|
|
88389
88405
|
else {
|
|
88390
|
-
|
|
88406
|
+
return this.expand(node);
|
|
88391
88407
|
}
|
|
88392
|
-
|
|
88393
|
-
|
|
88394
|
-
|
|
88408
|
+
};
|
|
88409
|
+
/** @deprecated in favor of {@link expand}. */
|
|
88410
|
+
DTableDataTree.prototype.open = function (node) {
|
|
88411
|
+
return this.expand(node);
|
|
88412
|
+
};
|
|
88413
|
+
/** @deprecated in favor of {@link collapse}. */
|
|
88414
|
+
DTableDataTree.prototype.close = function (node) {
|
|
88415
|
+
return this.collapse(node);
|
|
88416
|
+
};
|
|
88417
|
+
/** @deprecated in favor of {@link isExpanded}. */
|
|
88418
|
+
DTableDataTree.prototype.isOpened = function (node) {
|
|
88419
|
+
return this.isExpanded(node);
|
|
88395
88420
|
};
|
|
88396
88421
|
DTableDataTree.prototype.each = function (iteratee, ifrom, ito) {
|
|
88397
88422
|
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.284.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,24 @@
|
|
|
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
|
+
data.toggle(row);
|
|
67178
|
+
}
|
|
67179
|
+
};
|
|
67172
67180
|
DTableBodyCellInputTree.prototype.onRowSelect = function (e, local) {
|
|
67173
67181
|
if (local.x <= this.position.x + this._input.padding.getLeft()) {
|
|
67174
67182
|
return true;
|
|
@@ -70181,38 +70189,55 @@
|
|
|
70181
70189
|
}
|
|
70182
70190
|
return null;
|
|
70183
70191
|
};
|
|
70184
|
-
DTableDataTree.prototype.
|
|
70192
|
+
DTableDataTree.prototype.expand = function (node) {
|
|
70185
70193
|
var flags = this._flags;
|
|
70186
70194
|
if (!flags.has(node)) {
|
|
70187
70195
|
flags.set(node, 1);
|
|
70188
70196
|
this._isRowsDirty = true;
|
|
70189
70197
|
this._filter.toDirty();
|
|
70190
70198
|
this.update(true);
|
|
70199
|
+
this.emit("expand", node, this);
|
|
70200
|
+
return true;
|
|
70191
70201
|
}
|
|
70202
|
+
return false;
|
|
70192
70203
|
};
|
|
70193
|
-
DTableDataTree.prototype.
|
|
70204
|
+
DTableDataTree.prototype.collapse = function (node) {
|
|
70194
70205
|
var flags = this._flags;
|
|
70195
70206
|
if (flags.has(node)) {
|
|
70196
70207
|
flags.delete(node);
|
|
70197
70208
|
this._isRowsDirty = true;
|
|
70198
70209
|
this._filter.toDirty();
|
|
70199
70210
|
this.update(true);
|
|
70211
|
+
this.emit("collapse", node, this);
|
|
70212
|
+
return true;
|
|
70200
70213
|
}
|
|
70214
|
+
return false;
|
|
70201
70215
|
};
|
|
70202
|
-
DTableDataTree.prototype.
|
|
70216
|
+
DTableDataTree.prototype.isCollapsed = function (node) {
|
|
70217
|
+
return !this._flags.has(node);
|
|
70218
|
+
};
|
|
70219
|
+
DTableDataTree.prototype.isExpanded = function (node) {
|
|
70203
70220
|
return this._flags.has(node);
|
|
70204
70221
|
};
|
|
70205
70222
|
DTableDataTree.prototype.toggle = function (node) {
|
|
70206
|
-
|
|
70207
|
-
|
|
70208
|
-
flags.delete(node);
|
|
70223
|
+
if (this.isExpanded(node)) {
|
|
70224
|
+
return this.collapse(node);
|
|
70209
70225
|
}
|
|
70210
70226
|
else {
|
|
70211
|
-
|
|
70227
|
+
return this.expand(node);
|
|
70212
70228
|
}
|
|
70213
|
-
|
|
70214
|
-
|
|
70215
|
-
|
|
70229
|
+
};
|
|
70230
|
+
/** @deprecated in favor of {@link expand}. */
|
|
70231
|
+
DTableDataTree.prototype.open = function (node) {
|
|
70232
|
+
return this.expand(node);
|
|
70233
|
+
};
|
|
70234
|
+
/** @deprecated in favor of {@link collapse}. */
|
|
70235
|
+
DTableDataTree.prototype.close = function (node) {
|
|
70236
|
+
return this.collapse(node);
|
|
70237
|
+
};
|
|
70238
|
+
/** @deprecated in favor of {@link isExpanded}. */
|
|
70239
|
+
DTableDataTree.prototype.isOpened = function (node) {
|
|
70240
|
+
return this.isExpanded(node);
|
|
70216
70241
|
};
|
|
70217
70242
|
DTableDataTree.prototype.each = function (iteratee, ifrom, ito) {
|
|
70218
70243
|
var rows = this.rows;
|