@wcardinal/wcardinal-ui 0.331.0 → 0.333.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-base-padding-adjustable.d.ts +12 -34
- package/dist/types/wcardinal/ui/d-base.d.ts +2 -0
- package/dist/types/wcardinal/ui/d-table-body-cell-input-tree-input.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-tree.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-tree-item-text.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-impl.d.ts +7 -1
- package/dist/wcardinal/ui/d-base-padding-adjustable.js +27 -88
- package/dist/wcardinal/ui/d-base-padding-adjustable.js.map +1 -1
- package/dist/wcardinal/ui/d-base.js +5 -1
- package/dist/wcardinal/ui/d-base.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-tree-input.js +5 -4
- package/dist/wcardinal/ui/d-table-body-cell-input-tree-input.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-tree.js +4 -4
- package/dist/wcardinal/ui/d-table-body-cell-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-tree-item-text.js +3 -1
- package/dist/wcardinal/ui/d-tree-item-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js +6 -2
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js +94 -28
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js.map +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.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +144 -129
- package/dist/wcardinal-ui.js +144 -129
- 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.333.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -13780,7 +13780,8 @@ var DBase = /** @class */ (function (_super) {
|
|
|
13780
13780
|
_this._snippet = new DBaseSnippetContainer(_this);
|
|
13781
13781
|
_this._reflowable = new DBaseReflowableContainer();
|
|
13782
13782
|
_this._clearType = toEnum((_b = options === null || options === void 0 ? void 0 : options.clear) !== null && _b !== void 0 ? _b : theme.getClearType(), DLayoutClearType);
|
|
13783
|
-
_this._padding =
|
|
13783
|
+
_this._padding = _this.newPadding(theme, options, function () {
|
|
13784
|
+
_this.toDirty();
|
|
13784
13785
|
_this.toParentResized();
|
|
13785
13786
|
_this.toHierarchyDirty();
|
|
13786
13787
|
DApplications.update(_this);
|
|
@@ -14026,6 +14027,9 @@ var DBase = /** @class */ (function (_super) {
|
|
|
14026
14027
|
_this.emit("init", _this);
|
|
14027
14028
|
return _this;
|
|
14028
14029
|
}
|
|
14030
|
+
DBase.prototype.newPadding = function (theme, options, callback) {
|
|
14031
|
+
return new DBasePadding(theme, options, callback);
|
|
14032
|
+
};
|
|
14029
14033
|
DBase.prototype.toCursor = function (cursor, state) {
|
|
14030
14034
|
if (cursor) {
|
|
14031
14035
|
if (isFunction(cursor)) {
|
|
@@ -17963,6 +17967,9 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
17963
17967
|
this._parent = parent;
|
|
17964
17968
|
this._onChange = onChange;
|
|
17965
17969
|
this._acceptor = new EShapeConnectorEdgeAcceptorImpl(this);
|
|
17970
|
+
this._acceptorTransformNew = new pixi_js.Matrix();
|
|
17971
|
+
this._acceptorTransformOld = new pixi_js.Matrix();
|
|
17972
|
+
this._hasAcceptorTransformOld = false;
|
|
17966
17973
|
this._local = new pixi_js.ObservablePoint(function () {
|
|
17967
17974
|
_this.onLocalChange();
|
|
17968
17975
|
}, undefined);
|
|
@@ -17975,6 +17982,7 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
17975
17982
|
this._normalId = 0;
|
|
17976
17983
|
this._side = EShapeAcceptorEdgeSide.TOP;
|
|
17977
17984
|
this._margin = 0;
|
|
17985
|
+
this._other = null;
|
|
17978
17986
|
this._lockCount = 0;
|
|
17979
17987
|
this._isAcceptorChanged = false;
|
|
17980
17988
|
this._isLocalChanged = false;
|
|
@@ -18008,6 +18016,7 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
18008
18016
|
isChanged = true;
|
|
18009
18017
|
}
|
|
18010
18018
|
if (this._isAcceptorChanged) {
|
|
18019
|
+
this._hasAcceptorTransformOld = false;
|
|
18011
18020
|
if (!this._isLocalChanged) {
|
|
18012
18021
|
this._localIdRequired += 1;
|
|
18013
18022
|
}
|
|
@@ -18091,6 +18100,16 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
18091
18100
|
enumerable: false,
|
|
18092
18101
|
configurable: true
|
|
18093
18102
|
});
|
|
18103
|
+
Object.defineProperty(EShapeConnectorEdgeImpl.prototype, "other", {
|
|
18104
|
+
get: function () {
|
|
18105
|
+
return this._other;
|
|
18106
|
+
},
|
|
18107
|
+
set: function (other) {
|
|
18108
|
+
this._other = other;
|
|
18109
|
+
},
|
|
18110
|
+
enumerable: false,
|
|
18111
|
+
configurable: true
|
|
18112
|
+
});
|
|
18094
18113
|
EShapeConnectorEdgeImpl.prototype.set = function (acceptorShape, acceptorEdge, acceptorX, acceptorY, margin, x, y, nx, ny, side) {
|
|
18095
18114
|
this.lock();
|
|
18096
18115
|
this._acceptor.set(acceptorShape, acceptorEdge, acceptorX, acceptorY);
|
|
@@ -18192,7 +18211,7 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
18192
18211
|
return this;
|
|
18193
18212
|
};
|
|
18194
18213
|
EShapeConnectorEdgeImpl.prototype.doFit = function () {
|
|
18195
|
-
var _a, _b;
|
|
18214
|
+
var _a, _b, _c;
|
|
18196
18215
|
var localIdRequired = this._localIdRequired;
|
|
18197
18216
|
var isLocalDirty = this._localId !== localIdRequired;
|
|
18198
18217
|
var normalIdRequired = this._normalIdRequired;
|
|
@@ -18206,35 +18225,82 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
18206
18225
|
if (acceptorShape != null && acceptorEdge != null) {
|
|
18207
18226
|
var edge = EShapeAcceptors.get(acceptorShape.type).get(acceptorShape, acceptorEdge);
|
|
18208
18227
|
if (edge) {
|
|
18209
|
-
var
|
|
18210
|
-
var
|
|
18211
|
-
|
|
18212
|
-
var
|
|
18213
|
-
var
|
|
18214
|
-
|
|
18215
|
-
|
|
18228
|
+
var oat = this._acceptorTransformOld;
|
|
18229
|
+
var nat = this._acceptorTransformNew;
|
|
18230
|
+
this.toAcceptorTransform(acceptorShape, nat);
|
|
18231
|
+
var other = this._other;
|
|
18232
|
+
var isOtherDangling = this._hasAcceptorTransformOld &&
|
|
18233
|
+
other != null &&
|
|
18234
|
+
other.acceptor.shape == null;
|
|
18235
|
+
var work = ((_a = EShapeConnectorEdgeImpl.WORK_MATRIX) !== null && _a !== void 0 ? _a : (EShapeConnectorEdgeImpl.WORK_MATRIX = new pixi_js.Matrix()));
|
|
18236
|
+
if (isOtherDangling) {
|
|
18237
|
+
oat.copyTo(work).invert().prepend(nat);
|
|
18238
|
+
}
|
|
18239
|
+
this._acceptorTransformNew = oat;
|
|
18240
|
+
this._acceptorTransformOld = nat;
|
|
18241
|
+
this._hasAcceptorTransformOld = true;
|
|
18216
18242
|
this.lock();
|
|
18217
18243
|
if (isLocalDirty) {
|
|
18244
|
+
var l = this._local;
|
|
18245
|
+
var olx = l.x;
|
|
18246
|
+
var oly = l.y;
|
|
18218
18247
|
var size = acceptorShape.size;
|
|
18219
18248
|
var pivot = acceptorShape.transform.pivot;
|
|
18220
|
-
var
|
|
18221
|
-
var
|
|
18222
|
-
|
|
18249
|
+
var x = pivot.x + size.x * ((_b = acceptor.x) !== null && _b !== void 0 ? _b : edge.x);
|
|
18250
|
+
var y = pivot.y + size.y * ((_c = acceptor.y) !== null && _c !== void 0 ? _c : edge.y);
|
|
18251
|
+
var nlx = nat.a * x + nat.c * y + nat.tx;
|
|
18252
|
+
var nly = nat.b * x + nat.d * y + nat.ty;
|
|
18253
|
+
l.set(nlx, nly);
|
|
18254
|
+
if (isOtherDangling) {
|
|
18255
|
+
var ol = other.local;
|
|
18256
|
+
var oolx = ol.x;
|
|
18257
|
+
var ooly = ol.y;
|
|
18258
|
+
var nolx = work.a * oolx + work.c * ooly + work.tx;
|
|
18259
|
+
var noly = work.b * oolx + work.d * ooly + work.ty;
|
|
18260
|
+
var odx = oolx - olx;
|
|
18261
|
+
var ody = ooly - oly;
|
|
18262
|
+
var ndx = nolx - nlx;
|
|
18263
|
+
var ndy = noly - nly;
|
|
18264
|
+
var od = odx * odx + ody * ody;
|
|
18265
|
+
var nd = ndx * ndx + ndy * ndy;
|
|
18266
|
+
if (0.000001 < nd) {
|
|
18267
|
+
var f = Math.sqrt(od / nd);
|
|
18268
|
+
ol.set(nlx + ndx * f, nly + ndy * f);
|
|
18269
|
+
}
|
|
18270
|
+
else {
|
|
18271
|
+
ol.set(nolx, noly);
|
|
18272
|
+
}
|
|
18273
|
+
}
|
|
18223
18274
|
}
|
|
18224
18275
|
if (isNormalDirty) {
|
|
18225
|
-
var
|
|
18226
|
-
var
|
|
18227
|
-
var
|
|
18228
|
-
var
|
|
18229
|
-
var
|
|
18230
|
-
var
|
|
18231
|
-
var
|
|
18232
|
-
if (0.000001 <
|
|
18233
|
-
var f = 1 / Math.sqrt(
|
|
18234
|
-
|
|
18276
|
+
var en = edge.normal;
|
|
18277
|
+
var enx = en.x;
|
|
18278
|
+
var eny = en.y;
|
|
18279
|
+
var nx = nat.a * enx + nat.c * eny;
|
|
18280
|
+
var ny = nat.b * enx + nat.d * eny;
|
|
18281
|
+
var sd = nx * nx + ny * ny;
|
|
18282
|
+
var n = this._normal;
|
|
18283
|
+
if (0.000001 < sd) {
|
|
18284
|
+
var f = 1 / Math.sqrt(sd);
|
|
18285
|
+
n.set(nx * f, ny * f);
|
|
18235
18286
|
}
|
|
18236
18287
|
else {
|
|
18237
|
-
|
|
18288
|
+
n.set(enx, eny);
|
|
18289
|
+
}
|
|
18290
|
+
if (isOtherDangling) {
|
|
18291
|
+
var on = other.normal;
|
|
18292
|
+
var oonx = on.x;
|
|
18293
|
+
var oony = on.y;
|
|
18294
|
+
var nonx = work.a * oonx + work.c * oony;
|
|
18295
|
+
var nony = work.b * oonx + work.d * oony;
|
|
18296
|
+
var osd = nonx * nonx + nony * nony;
|
|
18297
|
+
if (0.000001 < osd) {
|
|
18298
|
+
var f = 1 / Math.sqrt(osd);
|
|
18299
|
+
on.set(nonx * f, nony * f);
|
|
18300
|
+
}
|
|
18301
|
+
else {
|
|
18302
|
+
on.set(oonx, oony);
|
|
18303
|
+
}
|
|
18238
18304
|
}
|
|
18239
18305
|
}
|
|
18240
18306
|
var result = this._isLocalChanged || this._isNormalChanged;
|
|
@@ -18245,20 +18311,19 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
18245
18311
|
}
|
|
18246
18312
|
return false;
|
|
18247
18313
|
};
|
|
18248
|
-
EShapeConnectorEdgeImpl.prototype.toAcceptorTransform = function (shape) {
|
|
18249
|
-
var _a;
|
|
18314
|
+
EShapeConnectorEdgeImpl.prototype.toAcceptorTransform = function (shape, result) {
|
|
18250
18315
|
shape.updateTransform();
|
|
18251
18316
|
var parent = this._parent;
|
|
18252
18317
|
var parentParent = parent.parent;
|
|
18253
18318
|
if (parentParent) {
|
|
18254
18319
|
parent.updateTransform();
|
|
18255
|
-
return
|
|
18320
|
+
return result
|
|
18256
18321
|
.copyFrom(parentParent.transform.worldTransform)
|
|
18257
18322
|
.invert()
|
|
18258
18323
|
.append(shape.transform.worldTransform);
|
|
18259
18324
|
}
|
|
18260
18325
|
else {
|
|
18261
|
-
return shape.transform.worldTransform;
|
|
18326
|
+
return result.copyFrom(shape.transform.worldTransform);
|
|
18262
18327
|
}
|
|
18263
18328
|
};
|
|
18264
18329
|
EShapeConnectorEdgeImpl.prototype.onAcceptorChange = function () {
|
|
@@ -18268,6 +18333,7 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
18268
18333
|
this._isAcceptorChanged = true;
|
|
18269
18334
|
return;
|
|
18270
18335
|
}
|
|
18336
|
+
this._hasAcceptorTransformOld = false;
|
|
18271
18337
|
this.fit(true);
|
|
18272
18338
|
};
|
|
18273
18339
|
EShapeConnectorEdgeImpl.prototype.onLocalChange = function () {
|
|
@@ -18298,14 +18364,18 @@ var EShapeConnectorEdgeImpl = /** @class */ (function () {
|
|
|
18298
18364
|
EShapeConnectorEdgeImpl.prototype.attach = function () {
|
|
18299
18365
|
var shape = this._acceptor.shape;
|
|
18300
18366
|
if (shape) {
|
|
18301
|
-
shape.connector.add(this)
|
|
18367
|
+
if (shape.connector.add(this)) {
|
|
18368
|
+
this.onAcceptorChange();
|
|
18369
|
+
}
|
|
18302
18370
|
}
|
|
18303
18371
|
return this;
|
|
18304
18372
|
};
|
|
18305
18373
|
EShapeConnectorEdgeImpl.prototype.detach = function () {
|
|
18306
18374
|
var shape = this._acceptor.shape;
|
|
18307
18375
|
if (shape) {
|
|
18308
|
-
shape.connector.remove(this)
|
|
18376
|
+
if (shape.connector.remove(this)) {
|
|
18377
|
+
this.onAcceptorChange();
|
|
18378
|
+
}
|
|
18309
18379
|
}
|
|
18310
18380
|
return this;
|
|
18311
18381
|
};
|
|
@@ -18326,8 +18396,12 @@ var EShapeConnectorEdgeContainerImpl = /** @class */ (function () {
|
|
|
18326
18396
|
var onChangeBound = function () {
|
|
18327
18397
|
_this.onChange();
|
|
18328
18398
|
};
|
|
18329
|
-
|
|
18330
|
-
|
|
18399
|
+
var tail = new EShapeConnectorEdgeImpl(parent, onChangeBound);
|
|
18400
|
+
var head = new EShapeConnectorEdgeImpl(parent, onChangeBound);
|
|
18401
|
+
tail.other = head;
|
|
18402
|
+
head.other = tail;
|
|
18403
|
+
this._tail = tail;
|
|
18404
|
+
this._head = head;
|
|
18331
18405
|
}
|
|
18332
18406
|
EShapeConnectorEdgeContainerImpl.prototype.lock = function () {
|
|
18333
18407
|
this._lockCount += 1;
|
|
@@ -68294,128 +68368,66 @@ var DApplication = /** @class */ (function () {
|
|
|
68294
68368
|
* Copyright (C) 2019 Toshiba Corporation
|
|
68295
68369
|
* SPDX-License-Identifier: Apache-2.0
|
|
68296
68370
|
*/
|
|
68297
|
-
var DBasePaddingAdjustable = /** @class */ (function () {
|
|
68298
|
-
|
|
68299
|
-
|
|
68300
|
-
|
|
68301
|
-
|
|
68302
|
-
|
|
68303
|
-
|
|
68304
|
-
|
|
68305
|
-
|
|
68306
|
-
}
|
|
68371
|
+
var DBasePaddingAdjustable = /** @class */ (function (_super) {
|
|
68372
|
+
__extends(DBasePaddingAdjustable, _super);
|
|
68373
|
+
function DBasePaddingAdjustable(theme, options, callback) {
|
|
68374
|
+
var _this = _super.call(this, theme, options, callback) || this;
|
|
68375
|
+
_this._atop = 0;
|
|
68376
|
+
_this._aright = 0;
|
|
68377
|
+
_this._abottom = 0;
|
|
68378
|
+
_this._aleft = 0;
|
|
68379
|
+
return _this;
|
|
68307
68380
|
}
|
|
68308
|
-
DBasePaddingAdjustable.prototype.getTheme = function () {
|
|
68309
|
-
return this._target.getTheme();
|
|
68310
|
-
};
|
|
68311
|
-
DBasePaddingAdjustable.prototype.setTheme = function (theme) {
|
|
68312
|
-
this._target.setTheme(theme);
|
|
68313
|
-
};
|
|
68314
68381
|
DBasePaddingAdjustable.prototype.getLeft = function () {
|
|
68315
|
-
return
|
|
68382
|
+
return _super.prototype.getLeft.call(this) + this._aleft;
|
|
68316
68383
|
};
|
|
68317
|
-
DBasePaddingAdjustable.prototype.adjLeft = function (
|
|
68318
|
-
if (this.
|
|
68319
|
-
this.
|
|
68384
|
+
DBasePaddingAdjustable.prototype.adjLeft = function (aleft) {
|
|
68385
|
+
if (this._aleft !== aleft) {
|
|
68386
|
+
this._aleft = aleft;
|
|
68320
68387
|
var callback = this._callback;
|
|
68321
68388
|
if (callback) {
|
|
68322
68389
|
callback();
|
|
68323
68390
|
}
|
|
68324
68391
|
}
|
|
68325
68392
|
};
|
|
68326
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "left", {
|
|
68327
|
-
get: function () {
|
|
68328
|
-
return this._target.left;
|
|
68329
|
-
},
|
|
68330
|
-
set: function (left) {
|
|
68331
|
-
this._target.left = left;
|
|
68332
|
-
},
|
|
68333
|
-
enumerable: false,
|
|
68334
|
-
configurable: true
|
|
68335
|
-
});
|
|
68336
68393
|
DBasePaddingAdjustable.prototype.getTop = function () {
|
|
68337
|
-
return
|
|
68394
|
+
return _super.prototype.getTop.call(this) + this._atop;
|
|
68338
68395
|
};
|
|
68339
|
-
DBasePaddingAdjustable.prototype.adjTop = function (
|
|
68340
|
-
if (this.
|
|
68341
|
-
this.
|
|
68396
|
+
DBasePaddingAdjustable.prototype.adjTop = function (atop) {
|
|
68397
|
+
if (this._atop !== atop) {
|
|
68398
|
+
this._atop = atop;
|
|
68342
68399
|
var callback = this._callback;
|
|
68343
68400
|
if (callback) {
|
|
68344
68401
|
callback();
|
|
68345
68402
|
}
|
|
68346
68403
|
}
|
|
68347
68404
|
};
|
|
68348
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "top", {
|
|
68349
|
-
get: function () {
|
|
68350
|
-
return this._target.top;
|
|
68351
|
-
},
|
|
68352
|
-
set: function (top) {
|
|
68353
|
-
this._target.top = top;
|
|
68354
|
-
},
|
|
68355
|
-
enumerable: false,
|
|
68356
|
-
configurable: true
|
|
68357
|
-
});
|
|
68358
68405
|
DBasePaddingAdjustable.prototype.getRight = function () {
|
|
68359
|
-
return
|
|
68406
|
+
return _super.prototype.getRight.call(this) + this._aright;
|
|
68360
68407
|
};
|
|
68361
|
-
DBasePaddingAdjustable.prototype.adjRight = function (
|
|
68362
|
-
if (this.
|
|
68363
|
-
this.
|
|
68408
|
+
DBasePaddingAdjustable.prototype.adjRight = function (aright) {
|
|
68409
|
+
if (this._aright !== aright) {
|
|
68410
|
+
this._aright = aright;
|
|
68364
68411
|
var callback = this._callback;
|
|
68365
68412
|
if (callback) {
|
|
68366
68413
|
callback();
|
|
68367
68414
|
}
|
|
68368
68415
|
}
|
|
68369
68416
|
};
|
|
68370
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "right", {
|
|
68371
|
-
get: function () {
|
|
68372
|
-
return this._target.right;
|
|
68373
|
-
},
|
|
68374
|
-
set: function (right) {
|
|
68375
|
-
this._target.right = right;
|
|
68376
|
-
},
|
|
68377
|
-
enumerable: false,
|
|
68378
|
-
configurable: true
|
|
68379
|
-
});
|
|
68380
68417
|
DBasePaddingAdjustable.prototype.getBottom = function () {
|
|
68381
|
-
return
|
|
68418
|
+
return _super.prototype.getBottom.call(this) + this._abottom;
|
|
68382
68419
|
};
|
|
68383
|
-
DBasePaddingAdjustable.prototype.adjBottom = function (
|
|
68384
|
-
if (this.
|
|
68385
|
-
this.
|
|
68420
|
+
DBasePaddingAdjustable.prototype.adjBottom = function (abottom) {
|
|
68421
|
+
if (this._abottom !== abottom) {
|
|
68422
|
+
this._abottom = abottom;
|
|
68386
68423
|
var callback = this._callback;
|
|
68387
68424
|
if (callback) {
|
|
68388
68425
|
callback();
|
|
68389
68426
|
}
|
|
68390
68427
|
}
|
|
68391
68428
|
};
|
|
68392
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "bottom", {
|
|
68393
|
-
get: function () {
|
|
68394
|
-
return this._target.bottom;
|
|
68395
|
-
},
|
|
68396
|
-
set: function (bottom) {
|
|
68397
|
-
this._target.bottom = bottom;
|
|
68398
|
-
},
|
|
68399
|
-
enumerable: false,
|
|
68400
|
-
configurable: true
|
|
68401
|
-
});
|
|
68402
|
-
DBasePaddingAdjustable.prototype.set = function (top, right, bottom, left) {
|
|
68403
|
-
var target = this._target;
|
|
68404
|
-
if (right == null) {
|
|
68405
|
-
target.set(top);
|
|
68406
|
-
}
|
|
68407
|
-
else if (bottom == null) {
|
|
68408
|
-
target.set(top, right);
|
|
68409
|
-
}
|
|
68410
|
-
else if (left == null) {
|
|
68411
|
-
target.set(top, right, bottom);
|
|
68412
|
-
}
|
|
68413
|
-
else {
|
|
68414
|
-
target.set(top, right, bottom, left);
|
|
68415
|
-
}
|
|
68416
|
-
};
|
|
68417
68429
|
return DBasePaddingAdjustable;
|
|
68418
|
-
}());
|
|
68430
|
+
}(DBasePadding));
|
|
68419
68431
|
|
|
68420
68432
|
/*
|
|
68421
68433
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -87408,11 +87420,12 @@ var DTableBodyCellInputText = /** @class */ (function (_super) {
|
|
|
87408
87420
|
*/
|
|
87409
87421
|
var DTableBodyCellInputTreeInput = /** @class */ (function (_super) {
|
|
87410
87422
|
__extends(DTableBodyCellInputTreeInput, _super);
|
|
87411
|
-
function DTableBodyCellInputTreeInput(
|
|
87412
|
-
|
|
87413
|
-
_this._padding = new DBasePaddingAdjustable(_this._padding);
|
|
87414
|
-
return _this;
|
|
87423
|
+
function DTableBodyCellInputTreeInput() {
|
|
87424
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
87415
87425
|
}
|
|
87426
|
+
DTableBodyCellInputTreeInput.prototype.newPadding = function (theme, options, callback) {
|
|
87427
|
+
return new DBasePaddingAdjustable(theme, options, callback);
|
|
87428
|
+
};
|
|
87416
87429
|
Object.defineProperty(DTableBodyCellInputTreeInput.prototype, "padding", {
|
|
87417
87430
|
get: function () {
|
|
87418
87431
|
return this._padding;
|
|
@@ -87944,12 +87957,12 @@ var DTableBodyCellTime = /** @class */ (function (_super) {
|
|
|
87944
87957
|
var DTableBodyCellTree = /** @class */ (function (_super) {
|
|
87945
87958
|
__extends(DTableBodyCellTree, _super);
|
|
87946
87959
|
function DTableBodyCellTree(columnIndex, column, onChange, options) {
|
|
87947
|
-
var _this = this;
|
|
87948
87960
|
var _a;
|
|
87949
|
-
|
|
87950
|
-
_this._padding = new DBasePaddingAdjustable(_this._padding);
|
|
87951
|
-
return _this;
|
|
87961
|
+
return _super.call(this, columnIndex, column, onChange, DLinks.toStateOptions((_a = options === null || options === void 0 ? void 0 : options.link) === null || _a === void 0 ? void 0 : _a.target, options)) || this;
|
|
87952
87962
|
}
|
|
87963
|
+
DTableBodyCellTree.prototype.newPadding = function (theme, options, callback) {
|
|
87964
|
+
return new DBasePaddingAdjustable(theme, options, callback);
|
|
87965
|
+
};
|
|
87953
87966
|
DTableBodyCellTree.prototype.onClick = function (e) {
|
|
87954
87967
|
var _a;
|
|
87955
87968
|
if (((_a = this.link) === null || _a === void 0 ? void 0 : _a.onClick(this, e)) !== true) {
|
|
@@ -93020,10 +93033,12 @@ var DTreeItemText = /** @class */ (function (_super) {
|
|
|
93020
93033
|
__extends(DTreeItemText, _super);
|
|
93021
93034
|
function DTreeItemText(data, options) {
|
|
93022
93035
|
var _this = _super.call(this, options) || this;
|
|
93023
|
-
_this._padding = new DBasePaddingAdjustable(_this._padding);
|
|
93024
93036
|
_this._data = data;
|
|
93025
93037
|
return _this;
|
|
93026
93038
|
}
|
|
93039
|
+
DTreeItemText.prototype.newPadding = function (theme, options, callback) {
|
|
93040
|
+
return new DBasePaddingAdjustable(theme, options, callback);
|
|
93041
|
+
};
|
|
93027
93042
|
Object.defineProperty(DTreeItemText.prototype, "node", {
|
|
93028
93043
|
get: function () {
|
|
93029
93044
|
return this._node;
|