@wcardinal/wcardinal-ui 0.145.0 → 0.149.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-note-small-error.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-note-small-no-items-found.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-note-small-searching.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-note-small.d.ts +8 -0
- package/dist/types/wcardinal/ui/index.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/e-shape-connector-bodies.d.ts +3 -0
- package/dist/types/wcardinal/ui/shape/e-shape-connector-body-impl.d.ts +24 -0
- package/dist/types/wcardinal/ui/shape/e-shape-connector-body.d.ts +14 -0
- package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-container.d.ts +3 -0
- package/dist/types/wcardinal/ui/shape/index.d.ts +3 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-connector-line.d.ts +9 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-error.d.ts +0 -3
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-no-items-found.d.ts +0 -3
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-searching.d.ts +0 -3
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-small-error.d.ts +5 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-small-no-items-found.d.ts +5 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-small-searching.d.ts +5 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-small.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note.d.ts +3 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-slider-thumb.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-slider-track.d.ts +3 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.d.ts +4 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-table-header-cell.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/dark/index.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-error.d.ts +0 -3
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-no-items-found.d.ts +0 -3
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-searching.d.ts +0 -3
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-small-error.d.ts +5 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-small-no-items-found.d.ts +5 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-small-searching.d.ts +5 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-small.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-note.d.ts +3 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-slider-thumb.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-slider-track.d.ts +3 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-table-body-cells.d.ts +4 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-table-header-cell.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/white/index.d.ts +4 -0
- package/dist/types/wcardinal/ui/util/util-svg-atlas-builder.d.ts +1 -0
- package/dist/wcardinal/ui/d-dialog-select.js +6 -6
- package/dist/wcardinal/ui/d-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/d-note-small-error.js +18 -0
- package/dist/wcardinal/ui/d-note-small-error.js.map +1 -0
- package/dist/wcardinal/ui/d-note-small-no-items-found.js +18 -0
- package/dist/wcardinal/ui/d-note-small-no-items-found.js.map +1 -0
- package/dist/wcardinal/ui/d-note-small-searching.js +18 -0
- package/dist/wcardinal/ui/d-note-small-searching.js.map +1 -0
- package/dist/wcardinal/ui/d-note-small.js +18 -0
- package/dist/wcardinal/ui/d-note-small.js.map +1 -0
- package/dist/wcardinal/ui/d-view-gesture-impl.js +12 -4
- package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
- package/dist/wcardinal/ui/index.js +4 -0
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-bodies.js +36 -0
- package/dist/wcardinal/ui/shape/e-shape-connector-bodies.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-connector-body-impl.js +88 -0
- package/dist/wcardinal/ui/shape/e-shape-connector-body-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-connector-body.js +6 -0
- package/dist/wcardinal/ui/shape/e-shape-connector-body.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-runtime.js +6 -4
- package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
- package/dist/wcardinal/ui/shape/index.js +3 -0
- package/dist/wcardinal/ui/shape/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js +19 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +104 -81
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-error.js +0 -9
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-error.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-no-items-found.js +0 -10
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-no-items-found.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-searching.js +0 -11
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-searching.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-error.js +18 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-error.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-no-items-found.js +18 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-no-items-found.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-searching.js +18 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-searching.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small.js +18 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note.js +9 -2
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-note.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-thumb.js +3 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-thumb.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-track.js +10 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-track.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-value.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-value.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js +13 -5
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-header-cell.js +7 -2
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-header-cell.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/index.js +4 -0
- package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-note.js +6 -0
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-note.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-error.js +0 -9
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-error.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-no-items-found.js +0 -10
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-no-items-found.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-searching.js +0 -11
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-searching.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-error.js +18 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-error.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-no-items-found.js +18 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-no-items-found.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-searching.js +18 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-searching.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-small.js +18 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-note-small.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-note.js +9 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-note.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-slider-thumb.js +3 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-slider-thumb.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-slider-track.js +10 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-slider-track.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-slider-value.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-slider-value.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js +16 -5
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-header-cell.js +7 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-table-header-cell.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/index.js +4 -0
- package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-note.js +6 -0
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-note.js.map +1 -1
- package/dist/wcardinal/ui/util/util-svg-atlas-builder.js +3 -0
- package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +111 -38
- 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 +114 -38
- 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 +577 -188
- package/dist/wcardinal-ui.js +354 -114
- 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.149.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -7514,10 +7514,12 @@ var EShapeRuntime = /** @class */ (function () {
|
|
|
7514
7514
|
EShapeRuntime.prototype.onKeyUp = function (shape, e) {
|
|
7515
7515
|
if (UtilKeyboardEvent.isActivateKey(e)) {
|
|
7516
7516
|
var state = shape.state;
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7517
|
+
if (state.isPressed) {
|
|
7518
|
+
var wasUp = state.isUp;
|
|
7519
|
+
this.onUp(shape, e);
|
|
7520
|
+
if (!wasUp && state.isUp) {
|
|
7521
|
+
this.onClick(shape, e);
|
|
7522
|
+
}
|
|
7521
7523
|
}
|
|
7522
7524
|
}
|
|
7523
7525
|
return false;
|
|
@@ -14204,9 +14206,17 @@ var DViewGestureImpl = /** @class */ (function () {
|
|
|
14204
14206
|
DViewGestureImpl.prototype.onGestureMove = function (target, dx, dy, x, y, ds) {
|
|
14205
14207
|
if (target) {
|
|
14206
14208
|
// Scale
|
|
14207
|
-
var
|
|
14208
|
-
var
|
|
14209
|
-
var
|
|
14209
|
+
var stopper = this._stopper;
|
|
14210
|
+
var oldScale = target.scale;
|
|
14211
|
+
var oldScaleX = oldScale.x;
|
|
14212
|
+
var oldScaleY = oldScale.y;
|
|
14213
|
+
var newScaleX = stopper.toNormalizedScale(oldScaleX * ds);
|
|
14214
|
+
var newScaleY = stopper.toNormalizedScale(oldScaleY * ds);
|
|
14215
|
+
var scaleRatioX = newScaleX / oldScaleX;
|
|
14216
|
+
var scaleRatioY = newScaleY / oldScaleY;
|
|
14217
|
+
var scaleRatio = ds < 1 ? Math.max(scaleRatioX, scaleRatioY) : Math.min(scaleRatioX, scaleRatioY);
|
|
14218
|
+
newScaleX = scaleRatio * oldScaleX;
|
|
14219
|
+
newScaleY = scaleRatio * oldScaleY;
|
|
14210
14220
|
// Position
|
|
14211
14221
|
var cx = x - dx;
|
|
14212
14222
|
var cy = y - dy;
|
|
@@ -14214,7 +14224,7 @@ var DViewGestureImpl = /** @class */ (function () {
|
|
|
14214
14224
|
var newX = (position.x - cx) * scaleRatio + x;
|
|
14215
14225
|
var newY = (position.y - cy) * scaleRatio + y;
|
|
14216
14226
|
// Update
|
|
14217
|
-
target.scale.set(
|
|
14227
|
+
target.scale.set(newScaleX, newScaleY);
|
|
14218
14228
|
target.position.set(newX, newY);
|
|
14219
14229
|
}
|
|
14220
14230
|
};
|
|
@@ -30901,6 +30911,41 @@ var createLineUploaded = function (buffer, shape, voffset, ioffset, antialiasWei
|
|
|
30901
30911
|
return null;
|
|
30902
30912
|
};
|
|
30903
30913
|
|
|
30914
|
+
/*
|
|
30915
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
30916
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
30917
|
+
*/
|
|
30918
|
+
var EShapeConnectorBodies = /** @class */ (function () {
|
|
30919
|
+
function EShapeConnectorBodies() {
|
|
30920
|
+
}
|
|
30921
|
+
EShapeConnectorBodies.from = function (values) {
|
|
30922
|
+
var result = [];
|
|
30923
|
+
var length = values.length;
|
|
30924
|
+
if (4 < length) {
|
|
30925
|
+
var x0 = values[0];
|
|
30926
|
+
var y0 = values[1];
|
|
30927
|
+
var x1 = values[length - 2];
|
|
30928
|
+
var y1 = values[length - 1];
|
|
30929
|
+
var cx = (x1 + x0) * 0.5;
|
|
30930
|
+
var cy = (y1 + y0) * 0.5;
|
|
30931
|
+
var dx = x1 - x0;
|
|
30932
|
+
var dy = y1 - y0;
|
|
30933
|
+
var a = Math.atan2(dy, dx);
|
|
30934
|
+
var c = Math.cos(a);
|
|
30935
|
+
var s = Math.sin(a);
|
|
30936
|
+
var l = dx * dx + dy * dy;
|
|
30937
|
+
var m = 0.000001 < l ? 1 / Math.sqrt(l) : 1;
|
|
30938
|
+
for (var i = 2, imax = length - 2; i < imax; i += 2) {
|
|
30939
|
+
var x = values[i + 0] - cx;
|
|
30940
|
+
var y = values[i + 1] - cy;
|
|
30941
|
+
result.push((c * x - s * y) * m, (c * y + s * x) * m);
|
|
30942
|
+
}
|
|
30943
|
+
}
|
|
30944
|
+
return result;
|
|
30945
|
+
};
|
|
30946
|
+
return EShapeConnectorBodies;
|
|
30947
|
+
}());
|
|
30948
|
+
|
|
30904
30949
|
/*
|
|
30905
30950
|
* Copyright (C) 2019 Toshiba Corporation
|
|
30906
30951
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -31368,6 +31413,93 @@ var EShapeConnectorEdgeContainerImpl = /** @class */ (function () {
|
|
|
31368
31413
|
return EShapeConnectorEdgeContainerImpl;
|
|
31369
31414
|
}());
|
|
31370
31415
|
|
|
31416
|
+
/*
|
|
31417
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
31418
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
31419
|
+
*/
|
|
31420
|
+
var EShapeConnectorBodyImpl = /** @class */ (function () {
|
|
31421
|
+
function EShapeConnectorBodyImpl(parent, onChange) {
|
|
31422
|
+
this._parent = parent;
|
|
31423
|
+
this._id = 0;
|
|
31424
|
+
this._values = [];
|
|
31425
|
+
this._lockCount = 0;
|
|
31426
|
+
this._isChanged = false;
|
|
31427
|
+
this._onChange = onChange;
|
|
31428
|
+
}
|
|
31429
|
+
EShapeConnectorBodyImpl.prototype.lock = function () {
|
|
31430
|
+
this._lockCount += 1;
|
|
31431
|
+
if (this._lockCount === 1) {
|
|
31432
|
+
this._isChanged = false;
|
|
31433
|
+
}
|
|
31434
|
+
};
|
|
31435
|
+
EShapeConnectorBodyImpl.prototype.unlock = function () {
|
|
31436
|
+
this._lockCount -= 1;
|
|
31437
|
+
if (this._lockCount === 0) {
|
|
31438
|
+
if (this._isChanged) {
|
|
31439
|
+
this.onChange();
|
|
31440
|
+
}
|
|
31441
|
+
this._isChanged = false;
|
|
31442
|
+
}
|
|
31443
|
+
};
|
|
31444
|
+
Object.defineProperty(EShapeConnectorBodyImpl.prototype, "id", {
|
|
31445
|
+
get: function () {
|
|
31446
|
+
return this._id;
|
|
31447
|
+
},
|
|
31448
|
+
enumerable: false,
|
|
31449
|
+
configurable: true
|
|
31450
|
+
});
|
|
31451
|
+
Object.defineProperty(EShapeConnectorBodyImpl.prototype, "values", {
|
|
31452
|
+
get: function () {
|
|
31453
|
+
return this._values;
|
|
31454
|
+
},
|
|
31455
|
+
set: function (newValues) {
|
|
31456
|
+
this.set(newValues);
|
|
31457
|
+
},
|
|
31458
|
+
enumerable: false,
|
|
31459
|
+
configurable: true
|
|
31460
|
+
});
|
|
31461
|
+
EShapeConnectorBodyImpl.prototype.set = function (newValues) {
|
|
31462
|
+
if (newValues != null) {
|
|
31463
|
+
this._id += 1;
|
|
31464
|
+
if (this._values !== newValues) {
|
|
31465
|
+
var length_1 = newValues.length;
|
|
31466
|
+
var values = this._values;
|
|
31467
|
+
for (var i = 0; i < length_1; ++i) {
|
|
31468
|
+
values[i] = newValues[i];
|
|
31469
|
+
}
|
|
31470
|
+
values.length = length_1;
|
|
31471
|
+
}
|
|
31472
|
+
this.onChange();
|
|
31473
|
+
}
|
|
31474
|
+
return this;
|
|
31475
|
+
};
|
|
31476
|
+
EShapeConnectorBodyImpl.prototype.copy = function (source) {
|
|
31477
|
+
return this.set(source.values);
|
|
31478
|
+
};
|
|
31479
|
+
EShapeConnectorBodyImpl.prototype.serialize = function (manager) {
|
|
31480
|
+
return manager.addResource(JSON.stringify(this._values));
|
|
31481
|
+
};
|
|
31482
|
+
EShapeConnectorBodyImpl.prototype.deserialize = function (resourceId, mapping, manager) {
|
|
31483
|
+
var resources = manager.resources;
|
|
31484
|
+
if (0 <= resourceId && resourceId < resources.length) {
|
|
31485
|
+
var parsed = manager.getExtension(resourceId);
|
|
31486
|
+
if (parsed == null) {
|
|
31487
|
+
parsed = JSON.parse(resources[resourceId]);
|
|
31488
|
+
manager.setExtension(resourceId, parsed);
|
|
31489
|
+
}
|
|
31490
|
+
this.set(parsed);
|
|
31491
|
+
}
|
|
31492
|
+
};
|
|
31493
|
+
EShapeConnectorBodyImpl.prototype.onChange = function () {
|
|
31494
|
+
if (0 < this._lockCount) {
|
|
31495
|
+
this._isChanged = true;
|
|
31496
|
+
return;
|
|
31497
|
+
}
|
|
31498
|
+
this._onChange();
|
|
31499
|
+
};
|
|
31500
|
+
return EShapeConnectorBodyImpl;
|
|
31501
|
+
}());
|
|
31502
|
+
|
|
31371
31503
|
/*
|
|
31372
31504
|
* Copyright (C) 2019 Toshiba Corporation
|
|
31373
31505
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -31381,16 +31513,36 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
31381
31513
|
_this._tailMargin = 0;
|
|
31382
31514
|
_this._headLocalId = 0;
|
|
31383
31515
|
_this._headMargin = 0;
|
|
31516
|
+
_this._bodyId = 0;
|
|
31517
|
+
_this._lockCount = 0;
|
|
31518
|
+
_this._isChanged = false;
|
|
31384
31519
|
var sx = EShapeDefaults.SIZE_X;
|
|
31385
31520
|
var sy = EShapeDefaults.SIZE_Y;
|
|
31386
31521
|
var hx = sx * 0.5;
|
|
31387
31522
|
var hy = sy * 0.5;
|
|
31388
|
-
_this._points = new EShapeLinePoints(_this).set(
|
|
31389
|
-
|
|
31390
|
-
_this.
|
|
31391
|
-
}
|
|
31523
|
+
_this._points = new EShapeLinePoints(_this).set([-hx, -hy, +hx, +hy]);
|
|
31524
|
+
var onChangeBound = function () {
|
|
31525
|
+
_this.onChange();
|
|
31526
|
+
};
|
|
31527
|
+
_this._edge = new EShapeConnectorEdgeContainerImpl(_this, onChangeBound);
|
|
31528
|
+
_this._body = new EShapeConnectorBodyImpl(_this, onChangeBound);
|
|
31392
31529
|
return _this;
|
|
31393
31530
|
}
|
|
31531
|
+
EShapeConnectorLine.prototype.lock = function () {
|
|
31532
|
+
this._lockCount += 1;
|
|
31533
|
+
if (this._lockCount === 1) {
|
|
31534
|
+
this._isChanged = false;
|
|
31535
|
+
}
|
|
31536
|
+
};
|
|
31537
|
+
EShapeConnectorLine.prototype.unlock = function () {
|
|
31538
|
+
this._lockCount -= 1;
|
|
31539
|
+
if (this._lockCount === 0) {
|
|
31540
|
+
if (this._isChanged) {
|
|
31541
|
+
this.onChange();
|
|
31542
|
+
}
|
|
31543
|
+
this._isChanged = false;
|
|
31544
|
+
}
|
|
31545
|
+
};
|
|
31394
31546
|
Object.defineProperty(EShapeConnectorLine.prototype, "points", {
|
|
31395
31547
|
get: function () {
|
|
31396
31548
|
return this._points;
|
|
@@ -31405,6 +31557,13 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
31405
31557
|
enumerable: false,
|
|
31406
31558
|
configurable: true
|
|
31407
31559
|
});
|
|
31560
|
+
Object.defineProperty(EShapeConnectorLine.prototype, "body", {
|
|
31561
|
+
get: function () {
|
|
31562
|
+
return this._body;
|
|
31563
|
+
},
|
|
31564
|
+
enumerable: false,
|
|
31565
|
+
configurable: true
|
|
31566
|
+
});
|
|
31408
31567
|
EShapeConnectorLine.prototype.onAttach = function () {
|
|
31409
31568
|
_super.prototype.onAttach.call(this);
|
|
31410
31569
|
this._edge.attach();
|
|
@@ -31413,8 +31572,12 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
31413
31572
|
this._edge.detach();
|
|
31414
31573
|
_super.prototype.onDetach.call(this);
|
|
31415
31574
|
};
|
|
31416
|
-
EShapeConnectorLine.prototype.
|
|
31575
|
+
EShapeConnectorLine.prototype.onChange = function () {
|
|
31417
31576
|
var _a;
|
|
31577
|
+
if (0 < this._lockCount) {
|
|
31578
|
+
this._isChanged = true;
|
|
31579
|
+
return;
|
|
31580
|
+
}
|
|
31418
31581
|
var edge = this._edge;
|
|
31419
31582
|
var tail = edge.tail;
|
|
31420
31583
|
var tailLocalId = tail.localId;
|
|
@@ -31422,22 +31585,29 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
31422
31585
|
var head = edge.head;
|
|
31423
31586
|
var headLocalId = head.localId;
|
|
31424
31587
|
var headMargin = head.margin;
|
|
31588
|
+
var body = this._body;
|
|
31589
|
+
var bodyId = body.id;
|
|
31425
31590
|
if (this._tailLocalId !== tailLocalId ||
|
|
31426
31591
|
this._tailMargin !== tailMargin ||
|
|
31427
31592
|
this._headLocalId !== headLocalId ||
|
|
31428
|
-
this._headMargin !== headMargin
|
|
31593
|
+
this._headMargin !== headMargin ||
|
|
31594
|
+
this._bodyId !== bodyId) {
|
|
31429
31595
|
this._tailLocalId = tailLocalId;
|
|
31430
31596
|
this._tailMargin = tailMargin;
|
|
31431
31597
|
this._headLocalId = headLocalId;
|
|
31432
31598
|
this._headMargin = headMargin;
|
|
31433
|
-
|
|
31599
|
+
this._bodyId !== bodyId;
|
|
31600
|
+
// Tail
|
|
31434
31601
|
var tailLocal = tail.local;
|
|
31435
31602
|
var tailLocalX = tailLocal.x;
|
|
31436
31603
|
var tailLocalY = tailLocal.y;
|
|
31437
|
-
//
|
|
31604
|
+
// Head
|
|
31438
31605
|
var headLocal = head.local;
|
|
31439
31606
|
var headLocalX = headLocal.x;
|
|
31440
31607
|
var headLocalY = headLocal.y;
|
|
31608
|
+
// Body
|
|
31609
|
+
var bodyValues = body.values;
|
|
31610
|
+
var bodyValuesLength = bodyValues.length;
|
|
31441
31611
|
// Values
|
|
31442
31612
|
var transform = this.transform;
|
|
31443
31613
|
var transformPosition = transform.position;
|
|
@@ -31445,7 +31615,58 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
31445
31615
|
var py = transformPosition.y;
|
|
31446
31616
|
var points = this._points;
|
|
31447
31617
|
var values = points.values;
|
|
31448
|
-
|
|
31618
|
+
if (values.length < 4) {
|
|
31619
|
+
values[0] = 0;
|
|
31620
|
+
values[1] = 0;
|
|
31621
|
+
}
|
|
31622
|
+
var threshold = 0.000001;
|
|
31623
|
+
var x0 = tailLocalX - px;
|
|
31624
|
+
var y0 = tailLocalY - py;
|
|
31625
|
+
var x1 = headLocalX - px;
|
|
31626
|
+
var y1 = headLocalY - py;
|
|
31627
|
+
// Body
|
|
31628
|
+
if (0 < bodyValuesLength) {
|
|
31629
|
+
var cx_1 = (x1 + x0) * 0.5;
|
|
31630
|
+
var cy_1 = (y1 + y0) * 0.5;
|
|
31631
|
+
var dx = x1 - x0;
|
|
31632
|
+
var dy = y1 - y0;
|
|
31633
|
+
var a = Math.atan2(dy, dx);
|
|
31634
|
+
var c = Math.cos(a);
|
|
31635
|
+
var s = Math.sin(a);
|
|
31636
|
+
var l = Math.sqrt(dx * dx + dy * dy);
|
|
31637
|
+
for (var i = 0; i < bodyValuesLength; i += 2) {
|
|
31638
|
+
var x = bodyValues[i + 0];
|
|
31639
|
+
var y = bodyValues[i + 1];
|
|
31640
|
+
values[i + 2] = cx_1 + (c * x - s * y) * l;
|
|
31641
|
+
values[i + 3] = cy_1 + (c * y + s * x) * l;
|
|
31642
|
+
}
|
|
31643
|
+
}
|
|
31644
|
+
// Tail
|
|
31645
|
+
values[0] = x0;
|
|
31646
|
+
values[1] = y0;
|
|
31647
|
+
if (tailMargin !== 0) {
|
|
31648
|
+
var dx = values[2] - x0;
|
|
31649
|
+
var dy = values[3] - y0;
|
|
31650
|
+
var d = dx * dx + dy * dy;
|
|
31651
|
+
if (threshold < d) {
|
|
31652
|
+
var f = tailMargin / Math.sqrt(dx * dx + dy * dy);
|
|
31653
|
+
values[0] = x0 + dx * f;
|
|
31654
|
+
values[1] = y0 + dy * f;
|
|
31655
|
+
}
|
|
31656
|
+
}
|
|
31657
|
+
// Head
|
|
31658
|
+
values[2 + bodyValuesLength] = x1;
|
|
31659
|
+
values[3 + bodyValuesLength] = y1;
|
|
31660
|
+
if (headMargin !== 0) {
|
|
31661
|
+
var dx = values[0 + bodyValuesLength] - x1;
|
|
31662
|
+
var dy = values[1 + bodyValuesLength] - y1;
|
|
31663
|
+
var d = dx * dx + dy * dy;
|
|
31664
|
+
if (threshold < d) {
|
|
31665
|
+
var f = headMargin / Math.sqrt(dx * dx + dy * dy);
|
|
31666
|
+
values[2 + bodyValuesLength] = x1 + dx * f;
|
|
31667
|
+
values[3 + bodyValuesLength] = y1 + dy * f;
|
|
31668
|
+
}
|
|
31669
|
+
}
|
|
31449
31670
|
// Center & size
|
|
31450
31671
|
var boundary = ((_a = EShapeConnectorLine.WORK_BOUNDARY) !== null && _a !== void 0 ? _a : (EShapeConnectorLine.WORK_BOUNDARY = [0, 0, 0, 0]));
|
|
31451
31672
|
toPointsBoundary(values, boundary);
|
|
@@ -31469,82 +31690,12 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
31469
31690
|
this.allowUploadedUpdate();
|
|
31470
31691
|
}
|
|
31471
31692
|
};
|
|
31472
|
-
EShapeConnectorLine.prototype.toValues = function (x0, y0, x1, y1, margin0, margin1, result) {
|
|
31473
|
-
var threshold = 0.000001;
|
|
31474
|
-
var resultLength = result.length;
|
|
31475
|
-
if (resultLength <= 4) {
|
|
31476
|
-
if (margin0 !== 0 || margin1 !== 0) {
|
|
31477
|
-
var dx = x1 - x0;
|
|
31478
|
-
var dy = y1 - y0;
|
|
31479
|
-
var d = dx * dx + dy * dy;
|
|
31480
|
-
if (threshold < d) {
|
|
31481
|
-
var f = 1 / Math.sqrt(dx * dx + dy * dy);
|
|
31482
|
-
var nx = dx * f;
|
|
31483
|
-
var ny = dy * f;
|
|
31484
|
-
result[0] = x0 + margin0 * nx;
|
|
31485
|
-
result[1] = y0 + margin0 * ny;
|
|
31486
|
-
result[2] = x1 - margin1 * nx;
|
|
31487
|
-
result[3] = y1 - margin1 * ny;
|
|
31488
|
-
}
|
|
31489
|
-
else {
|
|
31490
|
-
result[0] = x0;
|
|
31491
|
-
result[1] = y0;
|
|
31492
|
-
result[2] = x1;
|
|
31493
|
-
result[3] = y1;
|
|
31494
|
-
}
|
|
31495
|
-
}
|
|
31496
|
-
else {
|
|
31497
|
-
result[0] = x0;
|
|
31498
|
-
result[1] = y0;
|
|
31499
|
-
result[2] = x1;
|
|
31500
|
-
result[3] = y1;
|
|
31501
|
-
}
|
|
31502
|
-
}
|
|
31503
|
-
else {
|
|
31504
|
-
if (margin0 !== 0) {
|
|
31505
|
-
var dx = result[2] - x0;
|
|
31506
|
-
var dy = result[3] - y0;
|
|
31507
|
-
var d = dx * dx + dy * dy;
|
|
31508
|
-
if (threshold < d) {
|
|
31509
|
-
var f = 1 / Math.sqrt(dx * dx + dy * dy);
|
|
31510
|
-
result[0] = x0 + margin0 * dx * f;
|
|
31511
|
-
result[1] = y0 + margin0 * dy * f;
|
|
31512
|
-
}
|
|
31513
|
-
else {
|
|
31514
|
-
result[0] = x0;
|
|
31515
|
-
result[1] = y0;
|
|
31516
|
-
}
|
|
31517
|
-
}
|
|
31518
|
-
else {
|
|
31519
|
-
result[0] = x0;
|
|
31520
|
-
result[1] = y0;
|
|
31521
|
-
}
|
|
31522
|
-
if (margin1 !== 0) {
|
|
31523
|
-
var dx = result[resultLength - 4] - x1;
|
|
31524
|
-
var dy = result[resultLength - 3] - y1;
|
|
31525
|
-
var d = dx * dx + dy * dy;
|
|
31526
|
-
if (threshold < d) {
|
|
31527
|
-
var f = 1 / Math.sqrt(dx * dx + dy * dy);
|
|
31528
|
-
result[resultLength - 2] = x1 + margin1 * dx * f;
|
|
31529
|
-
result[resultLength - 1] = y1 + margin1 * dy * f;
|
|
31530
|
-
}
|
|
31531
|
-
else {
|
|
31532
|
-
result[resultLength - 2] = x1;
|
|
31533
|
-
result[resultLength - 1] = y1;
|
|
31534
|
-
}
|
|
31535
|
-
}
|
|
31536
|
-
else {
|
|
31537
|
-
result[resultLength - 2] = x1;
|
|
31538
|
-
result[resultLength - 1] = y1;
|
|
31539
|
-
}
|
|
31540
|
-
}
|
|
31541
|
-
return result;
|
|
31542
|
-
};
|
|
31543
31693
|
EShapeConnectorLine.prototype.copy = function (source, part) {
|
|
31544
31694
|
if (part === void 0) { part = EShapeCopyPart.ALL; }
|
|
31545
31695
|
_super.prototype.copy.call(this, source, part);
|
|
31546
31696
|
if (source instanceof EShapeConnectorLine) {
|
|
31547
31697
|
this._edge.copy(source.edge);
|
|
31698
|
+
this._body.copy(source.body);
|
|
31548
31699
|
}
|
|
31549
31700
|
return this;
|
|
31550
31701
|
};
|
|
@@ -31553,7 +31704,10 @@ var EShapeConnectorLine = /** @class */ (function (_super) {
|
|
|
31553
31704
|
};
|
|
31554
31705
|
EShapeConnectorLine.prototype.serialize = function (manager) {
|
|
31555
31706
|
var result = _super.prototype.serialize.call(this, manager);
|
|
31556
|
-
|
|
31707
|
+
var edgeId = this._edge.serialize(manager);
|
|
31708
|
+
var bodyId = this._body.serialize(manager);
|
|
31709
|
+
var pointsId = this._points.serialize(manager);
|
|
31710
|
+
result[15] = manager.addResource("[" + edgeId + "," + pointsId + "," + bodyId + "]");
|
|
31557
31711
|
return result;
|
|
31558
31712
|
};
|
|
31559
31713
|
return EShapeConnectorLine;
|
|
@@ -31576,8 +31730,25 @@ var onConnectorLineDeserialized = function (item, shape, mapping, manager) {
|
|
|
31576
31730
|
parsed = JSON.parse(resources[resourceId]);
|
|
31577
31731
|
manager.setExtension(resourceId, parsed);
|
|
31578
31732
|
}
|
|
31579
|
-
|
|
31733
|
+
// Lock
|
|
31734
|
+
shape.lock();
|
|
31735
|
+
// Points
|
|
31736
|
+
var points = shape.points;
|
|
31737
|
+
points.deserialize(parsed[1], manager);
|
|
31738
|
+
// Edge
|
|
31580
31739
|
shape.edge.deserialize(parsed[0], mapping, manager);
|
|
31740
|
+
// Body
|
|
31741
|
+
var body = shape.body;
|
|
31742
|
+
var bodyId = parsed[2];
|
|
31743
|
+
if (bodyId != null) {
|
|
31744
|
+
body.deserialize(bodyId, mapping, manager);
|
|
31745
|
+
}
|
|
31746
|
+
else {
|
|
31747
|
+
// The following is for backward compatibility.
|
|
31748
|
+
body.set(EShapeConnectorBodies.from(points.values));
|
|
31749
|
+
}
|
|
31750
|
+
// Unlock
|
|
31751
|
+
shape.unlock();
|
|
31581
31752
|
}
|
|
31582
31753
|
}
|
|
31583
31754
|
};
|
|
@@ -41394,6 +41565,9 @@ var UtilSvgAtlasBuilder = /** @class */ (function () {
|
|
|
41394
41565
|
}
|
|
41395
41566
|
return false;
|
|
41396
41567
|
};
|
|
41568
|
+
UtilSvgAtlasBuilder.prototype.has = function (name) {
|
|
41569
|
+
return name in this._frames;
|
|
41570
|
+
};
|
|
41397
41571
|
Object.defineProperty(UtilSvgAtlasBuilder.prototype, "mappings", {
|
|
41398
41572
|
get: function () {
|
|
41399
41573
|
return this.build();
|
|
@@ -47838,13 +48012,16 @@ var DThemeWhiteNote = /** @class */ (function (_super) {
|
|
|
47838
48012
|
return DBaseInteractive.NONE;
|
|
47839
48013
|
};
|
|
47840
48014
|
DThemeWhiteNote.prototype.getAlpha = function () {
|
|
47841
|
-
return 0.
|
|
48015
|
+
return 0.2;
|
|
47842
48016
|
};
|
|
47843
48017
|
DThemeWhiteNote.prototype.getFontSize = function () {
|
|
47844
48018
|
return 26;
|
|
47845
48019
|
};
|
|
48020
|
+
DThemeWhiteNote.prototype.getFontWeight = function () {
|
|
48021
|
+
return "bold";
|
|
48022
|
+
};
|
|
47846
48023
|
DThemeWhiteNote.prototype.getImageTintAlpha = function (state) {
|
|
47847
|
-
return 0.
|
|
48024
|
+
return 0.2;
|
|
47848
48025
|
};
|
|
47849
48026
|
DThemeWhiteNote.prototype.getImageAlignWith = function () {
|
|
47850
48027
|
return DAlignWith.TEXT;
|
|
@@ -47855,6 +48032,10 @@ var DThemeWhiteNote = /** @class */ (function (_super) {
|
|
|
47855
48032
|
DThemeWhiteNote.prototype.getImageAlignVertical = function () {
|
|
47856
48033
|
return DAlignVertical.MIDDLE;
|
|
47857
48034
|
};
|
|
48035
|
+
DThemeWhiteNote.prototype.newState = function (state) {
|
|
48036
|
+
_super.prototype.newState.call(this, state);
|
|
48037
|
+
state.isFocusable = false;
|
|
48038
|
+
};
|
|
47858
48039
|
return DThemeWhiteNote;
|
|
47859
48040
|
}(DThemeWhiteImageBase));
|
|
47860
48041
|
|
|
@@ -47862,11 +48043,6 @@ var DThemeWhiteNote = /** @class */ (function (_super) {
|
|
|
47862
48043
|
* Copyright (C) 2019 Toshiba Corporation
|
|
47863
48044
|
* SPDX-License-Identifier: Apache-2.0
|
|
47864
48045
|
*/
|
|
47865
|
-
/* eslint-disable prettier/prettier */
|
|
47866
|
-
DThemeWhiteAtlas.add("note_erorr", 48, 48, "<g transform=\"translate(-3,3) scale(2,2)\">" +
|
|
47867
|
-
'<path d="M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z" fill="#fff"/>' +
|
|
47868
|
-
"</g>");
|
|
47869
|
-
/* eslint-enable prettier/prettier */
|
|
47870
48046
|
var DThemeWhiteNoteError = /** @class */ (function (_super) {
|
|
47871
48047
|
__extends(DThemeWhiteNoteError, _super);
|
|
47872
48048
|
function DThemeWhiteNoteError() {
|
|
@@ -47875,9 +48051,6 @@ var DThemeWhiteNoteError = /** @class */ (function (_super) {
|
|
|
47875
48051
|
DThemeWhiteNoteError.prototype.newTextValue = function () {
|
|
47876
48052
|
return "Something went wrong";
|
|
47877
48053
|
};
|
|
47878
|
-
DThemeWhiteNoteError.prototype.getImageSource = function (state) {
|
|
47879
|
-
return DThemeWhiteAtlas.mappings.note_erorr;
|
|
47880
|
-
};
|
|
47881
48054
|
return DThemeWhiteNoteError;
|
|
47882
48055
|
}(DThemeWhiteNote));
|
|
47883
48056
|
|
|
@@ -47885,12 +48058,6 @@ var DThemeWhiteNoteError = /** @class */ (function (_super) {
|
|
|
47885
48058
|
* Copyright (C) 2019 Toshiba Corporation
|
|
47886
48059
|
* SPDX-License-Identifier: Apache-2.0
|
|
47887
48060
|
*/
|
|
47888
|
-
/* eslint-disable prettier/prettier */
|
|
47889
|
-
DThemeWhiteAtlas.add("note_no_items_found", 48, 48, "<g transform=\"translate(-3,3) scale(2,2)\">" +
|
|
47890
|
-
'<path d="M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c' +
|
|
47891
|
-
'-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" fill="#fff"/>' +
|
|
47892
|
-
"</g>");
|
|
47893
|
-
/* eslint-enable prettier/prettier */
|
|
47894
48061
|
var DThemeWhiteNoteNoItemsFound = /** @class */ (function (_super) {
|
|
47895
48062
|
__extends(DThemeWhiteNoteNoItemsFound, _super);
|
|
47896
48063
|
function DThemeWhiteNoteNoItemsFound() {
|
|
@@ -47899,9 +48066,6 @@ var DThemeWhiteNoteNoItemsFound = /** @class */ (function (_super) {
|
|
|
47899
48066
|
DThemeWhiteNoteNoItemsFound.prototype.newTextValue = function () {
|
|
47900
48067
|
return "No items found";
|
|
47901
48068
|
};
|
|
47902
|
-
DThemeWhiteNoteNoItemsFound.prototype.getImageSource = function (state) {
|
|
47903
|
-
return DThemeWhiteAtlas.mappings.note_no_items_found;
|
|
47904
|
-
};
|
|
47905
48069
|
return DThemeWhiteNoteNoItemsFound;
|
|
47906
48070
|
}(DThemeWhiteNote));
|
|
47907
48071
|
|
|
@@ -47909,13 +48073,6 @@ var DThemeWhiteNoteNoItemsFound = /** @class */ (function (_super) {
|
|
|
47909
48073
|
* Copyright (C) 2019 Toshiba Corporation
|
|
47910
48074
|
* SPDX-License-Identifier: Apache-2.0
|
|
47911
48075
|
*/
|
|
47912
|
-
/* eslint-disable prettier/prettier */
|
|
47913
|
-
DThemeWhiteAtlas.add("note_searching", 48, 48, "<g transform=\"translate(-3,3) scale(2,2)\">" +
|
|
47914
|
-
"<path d=\"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 " +
|
|
47915
|
-
"9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 " +
|
|
47916
|
-
"14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\" fill=\"#fff\"/>" +
|
|
47917
|
-
"</g>");
|
|
47918
|
-
/* eslint-enable prettier/prettier */
|
|
47919
48076
|
var DThemeWhiteNoteSearching = /** @class */ (function (_super) {
|
|
47920
48077
|
__extends(DThemeWhiteNoteSearching, _super);
|
|
47921
48078
|
function DThemeWhiteNoteSearching() {
|
|
@@ -47924,12 +48081,69 @@ var DThemeWhiteNoteSearching = /** @class */ (function (_super) {
|
|
|
47924
48081
|
DThemeWhiteNoteSearching.prototype.newTextValue = function () {
|
|
47925
48082
|
return "Searching";
|
|
47926
48083
|
};
|
|
47927
|
-
DThemeWhiteNoteSearching.prototype.getImageSource = function (state) {
|
|
47928
|
-
return DThemeWhiteAtlas.mappings.note_searching;
|
|
47929
|
-
};
|
|
47930
48084
|
return DThemeWhiteNoteSearching;
|
|
47931
48085
|
}(DThemeWhiteNote));
|
|
47932
48086
|
|
|
48087
|
+
/*
|
|
48088
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
48089
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
48090
|
+
*/
|
|
48091
|
+
var DThemeWhiteNoteSmall = /** @class */ (function (_super) {
|
|
48092
|
+
__extends(DThemeWhiteNoteSmall, _super);
|
|
48093
|
+
function DThemeWhiteNoteSmall() {
|
|
48094
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48095
|
+
}
|
|
48096
|
+
DThemeWhiteNoteSmall.prototype.getFontSize = function () {
|
|
48097
|
+
return 18;
|
|
48098
|
+
};
|
|
48099
|
+
return DThemeWhiteNoteSmall;
|
|
48100
|
+
}(DThemeWhiteNote));
|
|
48101
|
+
|
|
48102
|
+
/*
|
|
48103
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
48104
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
48105
|
+
*/
|
|
48106
|
+
var DThemeWhiteNoteSmallError = /** @class */ (function (_super) {
|
|
48107
|
+
__extends(DThemeWhiteNoteSmallError, _super);
|
|
48108
|
+
function DThemeWhiteNoteSmallError() {
|
|
48109
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48110
|
+
}
|
|
48111
|
+
DThemeWhiteNoteSmallError.prototype.newTextValue = function () {
|
|
48112
|
+
return "Something went wrong";
|
|
48113
|
+
};
|
|
48114
|
+
return DThemeWhiteNoteSmallError;
|
|
48115
|
+
}(DThemeWhiteNoteSmall));
|
|
48116
|
+
|
|
48117
|
+
/*
|
|
48118
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
48119
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
48120
|
+
*/
|
|
48121
|
+
var DThemeWhiteNoteSmallNoItemsFound = /** @class */ (function (_super) {
|
|
48122
|
+
__extends(DThemeWhiteNoteSmallNoItemsFound, _super);
|
|
48123
|
+
function DThemeWhiteNoteSmallNoItemsFound() {
|
|
48124
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48125
|
+
}
|
|
48126
|
+
DThemeWhiteNoteSmallNoItemsFound.prototype.newTextValue = function () {
|
|
48127
|
+
return "No items found";
|
|
48128
|
+
};
|
|
48129
|
+
return DThemeWhiteNoteSmallNoItemsFound;
|
|
48130
|
+
}(DThemeWhiteNoteSmall));
|
|
48131
|
+
|
|
48132
|
+
/*
|
|
48133
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
48134
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
48135
|
+
*/
|
|
48136
|
+
var DThemeWhiteNoteSmallSearching = /** @class */ (function (_super) {
|
|
48137
|
+
__extends(DThemeWhiteNoteSmallSearching, _super);
|
|
48138
|
+
function DThemeWhiteNoteSmallSearching() {
|
|
48139
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
48140
|
+
}
|
|
48141
|
+
DThemeWhiteNoteSmallSearching.prototype.newTextValue = function () {
|
|
48142
|
+
return "Searching";
|
|
48143
|
+
};
|
|
48144
|
+
return DThemeWhiteNoteSmallSearching;
|
|
48145
|
+
}(DThemeWhiteNoteSmall));
|
|
48146
|
+
|
|
47933
48147
|
/*
|
|
47934
48148
|
* Copyright (C) 2019 Toshiba Corporation
|
|
47935
48149
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -47939,6 +48153,9 @@ var loadThemeWhiteNote = function () {
|
|
|
47939
48153
|
DThemeWhite.set("DNoteError", DThemeWhiteNoteError);
|
|
47940
48154
|
DThemeWhite.set("DNoteNoItemsFound", DThemeWhiteNoteNoItemsFound);
|
|
47941
48155
|
DThemeWhite.set("DNoteSearching", DThemeWhiteNoteSearching);
|
|
48156
|
+
DThemeWhite.set("DNoteSmallError", DThemeWhiteNoteSmallError);
|
|
48157
|
+
DThemeWhite.set("DNoteSmallNoItemsFound", DThemeWhiteNoteSmallNoItemsFound);
|
|
48158
|
+
DThemeWhite.set("DNoteSmallSearching", DThemeWhiteNoteSmallSearching);
|
|
47942
48159
|
};
|
|
47943
48160
|
|
|
47944
48161
|
/*
|
|
@@ -48456,6 +48673,9 @@ var DThemeWhiteSliderThumb = /** @class */ (function (_super) {
|
|
|
48456
48673
|
DThemeWhiteSliderThumb.prototype.getImageAlignHorizontal = function () {
|
|
48457
48674
|
return DAlignHorizontal.CENTER;
|
|
48458
48675
|
};
|
|
48676
|
+
DThemeWhiteSliderThumb.prototype.getOutlineOffset = function (state) {
|
|
48677
|
+
return this.getOutlineOffsetNonActive(state) + 2;
|
|
48678
|
+
};
|
|
48459
48679
|
return DThemeWhiteSliderThumb;
|
|
48460
48680
|
}(DThemeWhiteButton));
|
|
48461
48681
|
|
|
@@ -48474,6 +48694,16 @@ var DThemeWhiteSliderTrack = /** @class */ (function (_super) {
|
|
|
48474
48694
|
DThemeWhiteSliderTrack.prototype.getBorderColor = function (state) {
|
|
48475
48695
|
return null;
|
|
48476
48696
|
};
|
|
48697
|
+
DThemeWhiteSliderTrack.prototype.getOutlineColor = function (state) {
|
|
48698
|
+
return _super.prototype.getOutlineColorNonActive.call(this, state);
|
|
48699
|
+
};
|
|
48700
|
+
DThemeWhiteSliderTrack.prototype.getOutlineOffset = function (state) {
|
|
48701
|
+
return _super.prototype.getOutlineOffsetNonActive.call(this, state);
|
|
48702
|
+
};
|
|
48703
|
+
DThemeWhiteSliderTrack.prototype.newState = function (state) {
|
|
48704
|
+
_super.prototype.newState.call(this, state);
|
|
48705
|
+
state.isFocusable = false;
|
|
48706
|
+
};
|
|
48477
48707
|
return DThemeWhiteSliderTrack;
|
|
48478
48708
|
}(DThemeWhiteButton));
|
|
48479
48709
|
|
|
@@ -48544,7 +48774,7 @@ var DThemeWhiteSliderValue = /** @class */ (function (_super) {
|
|
|
48544
48774
|
return "AUTO";
|
|
48545
48775
|
};
|
|
48546
48776
|
DThemeWhiteSliderValue.prototype.getHeight = function () {
|
|
48547
|
-
return
|
|
48777
|
+
return this.getLineHeight();
|
|
48548
48778
|
};
|
|
48549
48779
|
DThemeWhiteSliderValue.prototype.getBackgroundColor = function (state) {
|
|
48550
48780
|
if (state.inDisabled) {
|
|
@@ -48727,7 +48957,9 @@ var DThemeWhiteTableBodyCells = /** @class */ (function () {
|
|
|
48727
48957
|
DThemeWhiteTableBodyCells.getBackgroundColor = function (state) {
|
|
48728
48958
|
if (state.inDisabled) {
|
|
48729
48959
|
if (state.is(DTableState.FROZEN)) {
|
|
48730
|
-
return state.onAlternated
|
|
48960
|
+
return state.onAlternated
|
|
48961
|
+
? this.BACKGROUND_COLOR_FROZEN_ODD
|
|
48962
|
+
: this.BACKGROUND_COLOR_FROZEN_EVEN;
|
|
48731
48963
|
}
|
|
48732
48964
|
else {
|
|
48733
48965
|
return null;
|
|
@@ -48744,7 +48976,9 @@ var DThemeWhiteTableBodyCells = /** @class */ (function () {
|
|
|
48744
48976
|
}
|
|
48745
48977
|
else {
|
|
48746
48978
|
if (state.is(DTableState.FROZEN)) {
|
|
48747
|
-
return state.onAlternated
|
|
48979
|
+
return state.onAlternated
|
|
48980
|
+
? this.BACKGROUND_COLOR_FROZEN_ODD
|
|
48981
|
+
: this.BACKGROUND_COLOR_FROZEN_EVEN;
|
|
48748
48982
|
}
|
|
48749
48983
|
else {
|
|
48750
48984
|
return null;
|
|
@@ -48755,6 +48989,9 @@ var DThemeWhiteTableBodyCells = /** @class */ (function () {
|
|
|
48755
48989
|
return 1;
|
|
48756
48990
|
};
|
|
48757
48991
|
DThemeWhiteTableBodyCells.getBorderColor = function (state) {
|
|
48992
|
+
if (state.is(DTableState.FROZEN_END)) {
|
|
48993
|
+
return this.BORDER_COLOR_FROZEN;
|
|
48994
|
+
}
|
|
48758
48995
|
return this.BORDER_COLOR;
|
|
48759
48996
|
};
|
|
48760
48997
|
DThemeWhiteTableBodyCells.getBorderMask = function (state) {
|
|
@@ -48788,9 +49025,13 @@ var DThemeWhiteTableBodyCells = /** @class */ (function () {
|
|
|
48788
49025
|
DThemeWhiteTableBodyCells.getCornerMask = function () {
|
|
48789
49026
|
return DCornerMask.ALL;
|
|
48790
49027
|
};
|
|
48791
|
-
|
|
48792
|
-
|
|
48793
|
-
DThemeWhiteTableBodyCells.
|
|
49028
|
+
var _a;
|
|
49029
|
+
_a = DThemeWhiteTableBodyCells;
|
|
49030
|
+
DThemeWhiteTableBodyCells.BACKGROUND_COLOR = DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD;
|
|
49031
|
+
DThemeWhiteTableBodyCells.BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.darken(_a.BACKGROUND_COLOR, 0.01);
|
|
49032
|
+
DThemeWhiteTableBodyCells.BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.darken(_a.BACKGROUND_COLOR_FROZEN_EVEN, 0.01);
|
|
49033
|
+
DThemeWhiteTableBodyCells.BORDER_COLOR = UtilRgb.darken(_a.BACKGROUND_COLOR, 0.035);
|
|
49034
|
+
DThemeWhiteTableBodyCells.BORDER_COLOR_FROZEN = UtilRgb.darken(_a.BORDER_COLOR, 0.035);
|
|
48794
49035
|
return DThemeWhiteTableBodyCells;
|
|
48795
49036
|
}());
|
|
48796
49037
|
|
|
@@ -49869,12 +50110,14 @@ var DThemeWhiteTableHeaderCell = /** @class */ (function (_super) {
|
|
|
49869
50110
|
_this.BACKGROUND_COLOR = UtilRgb.darken(DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD, 0.02);
|
|
49870
50111
|
_this.BACKGROUND_COLOR_HOVERED = UtilRgb.darken(_this.BACKGROUND_COLOR, 0.017);
|
|
49871
50112
|
_this.BACKGROUND_COLOR_PRESSED = UtilRgb.darken(_this.BACKGROUND_COLOR, 0.034);
|
|
50113
|
+
_this.BACKGROUND_COLOR_FROZEN = UtilRgb.darken(_this.BACKGROUND_COLOR, 0.02);
|
|
49872
50114
|
_this.BORDER_COLOR = UtilRgb.darken(DThemeWhiteConstants.BACKGROUND_COLOR_ON_BOARD, 0.055);
|
|
50115
|
+
_this.BORDER_COLOR_FROZEN = UtilRgb.darken(_this.BORDER_COLOR, 0.055);
|
|
49873
50116
|
return _this;
|
|
49874
50117
|
}
|
|
49875
50118
|
DThemeWhiteTableHeaderCell.prototype.getBackgroundColor = function (state) {
|
|
49876
50119
|
if (state.inDisabled) {
|
|
49877
|
-
return state.is(DTableState.FROZEN) ? this.
|
|
50120
|
+
return state.is(DTableState.FROZEN) ? this.BACKGROUND_COLOR_FROZEN : null;
|
|
49878
50121
|
}
|
|
49879
50122
|
else if (state.isPressed) {
|
|
49880
50123
|
return this.BACKGROUND_COLOR_PRESSED;
|
|
@@ -49883,13 +50126,16 @@ var DThemeWhiteTableHeaderCell = /** @class */ (function (_super) {
|
|
|
49883
50126
|
return this.BACKGROUND_COLOR_HOVERED;
|
|
49884
50127
|
}
|
|
49885
50128
|
else {
|
|
49886
|
-
return state.is(DTableState.FROZEN) ? this.
|
|
50129
|
+
return state.is(DTableState.FROZEN) ? this.BACKGROUND_COLOR_FROZEN : null;
|
|
49887
50130
|
}
|
|
49888
50131
|
};
|
|
49889
50132
|
DThemeWhiteTableHeaderCell.prototype.getBackgroundAlpha = function (state) {
|
|
49890
50133
|
return 1;
|
|
49891
50134
|
};
|
|
49892
50135
|
DThemeWhiteTableHeaderCell.prototype.getBorderColor = function (state) {
|
|
50136
|
+
if (state.is(DTableState.FROZEN_END)) {
|
|
50137
|
+
return this.BORDER_COLOR_FROZEN;
|
|
50138
|
+
}
|
|
49893
50139
|
return this.BORDER_COLOR;
|
|
49894
50140
|
};
|
|
49895
50141
|
DThemeWhiteTableHeaderCell.prototype.getBorderMask = function (state) {
|
|
@@ -56244,13 +56490,16 @@ var DThemeDarkNote = /** @class */ (function (_super) {
|
|
|
56244
56490
|
return DBaseInteractive.NONE;
|
|
56245
56491
|
};
|
|
56246
56492
|
DThemeDarkNote.prototype.getAlpha = function () {
|
|
56247
|
-
return 0.
|
|
56493
|
+
return 0.2;
|
|
56248
56494
|
};
|
|
56249
56495
|
DThemeDarkNote.prototype.getFontSize = function () {
|
|
56250
56496
|
return 26;
|
|
56251
56497
|
};
|
|
56498
|
+
DThemeDarkNote.prototype.getFontWeight = function () {
|
|
56499
|
+
return "bold";
|
|
56500
|
+
};
|
|
56252
56501
|
DThemeDarkNote.prototype.getImageTintAlpha = function (state) {
|
|
56253
|
-
return 0.
|
|
56502
|
+
return 0.2;
|
|
56254
56503
|
};
|
|
56255
56504
|
DThemeDarkNote.prototype.getImageAlignWith = function () {
|
|
56256
56505
|
return DAlignWith.TEXT;
|
|
@@ -56261,6 +56510,10 @@ var DThemeDarkNote = /** @class */ (function (_super) {
|
|
|
56261
56510
|
DThemeDarkNote.prototype.getImageAlignVertical = function () {
|
|
56262
56511
|
return DAlignVertical.MIDDLE;
|
|
56263
56512
|
};
|
|
56513
|
+
DThemeDarkNote.prototype.newState = function (state) {
|
|
56514
|
+
_super.prototype.newState.call(this, state);
|
|
56515
|
+
state.isFocusable = false;
|
|
56516
|
+
};
|
|
56264
56517
|
return DThemeDarkNote;
|
|
56265
56518
|
}(DThemeDarkImageBase));
|
|
56266
56519
|
|
|
@@ -56268,11 +56521,6 @@ var DThemeDarkNote = /** @class */ (function (_super) {
|
|
|
56268
56521
|
* Copyright (C) 2019 Toshiba Corporation
|
|
56269
56522
|
* SPDX-License-Identifier: Apache-2.0
|
|
56270
56523
|
*/
|
|
56271
|
-
/* eslint-disable prettier/prettier */
|
|
56272
|
-
DThemeDarkAtlas.add("note_erorr", 48, 48, "<g transform=\"translate(-3,3) scale(3,3)\">" +
|
|
56273
|
-
'<path d="M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z" fill="#fff"/>' +
|
|
56274
|
-
"</g>");
|
|
56275
|
-
/* eslint-enable prettier/prettier */
|
|
56276
56524
|
var DThemeDarkNoteError = /** @class */ (function (_super) {
|
|
56277
56525
|
__extends(DThemeDarkNoteError, _super);
|
|
56278
56526
|
function DThemeDarkNoteError() {
|
|
@@ -56281,9 +56529,6 @@ var DThemeDarkNoteError = /** @class */ (function (_super) {
|
|
|
56281
56529
|
DThemeDarkNoteError.prototype.newTextValue = function () {
|
|
56282
56530
|
return "Error";
|
|
56283
56531
|
};
|
|
56284
|
-
DThemeDarkNoteError.prototype.getImageSource = function (state) {
|
|
56285
|
-
return DThemeDarkAtlas.mappings.note_erorr;
|
|
56286
|
-
};
|
|
56287
56532
|
return DThemeDarkNoteError;
|
|
56288
56533
|
}(DThemeDarkNote));
|
|
56289
56534
|
|
|
@@ -56291,12 +56536,6 @@ var DThemeDarkNoteError = /** @class */ (function (_super) {
|
|
|
56291
56536
|
* Copyright (C) 2019 Toshiba Corporation
|
|
56292
56537
|
* SPDX-License-Identifier: Apache-2.0
|
|
56293
56538
|
*/
|
|
56294
|
-
/* eslint-disable prettier/prettier */
|
|
56295
|
-
DThemeDarkAtlas.add("note_no_items_found", 48, 48, "<g transform=\"translate(-3,3) scale(3,3)\">" +
|
|
56296
|
-
'<path d="M11 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c' +
|
|
56297
|
-
'-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" fill="#fff"/>' +
|
|
56298
|
-
"</g>");
|
|
56299
|
-
/* eslint-enable prettier/prettier */
|
|
56300
56539
|
var DThemeDarkNoteNoItemsFound = /** @class */ (function (_super) {
|
|
56301
56540
|
__extends(DThemeDarkNoteNoItemsFound, _super);
|
|
56302
56541
|
function DThemeDarkNoteNoItemsFound() {
|
|
@@ -56305,9 +56544,6 @@ var DThemeDarkNoteNoItemsFound = /** @class */ (function (_super) {
|
|
|
56305
56544
|
DThemeDarkNoteNoItemsFound.prototype.newTextValue = function () {
|
|
56306
56545
|
return "No items found";
|
|
56307
56546
|
};
|
|
56308
|
-
DThemeDarkNoteNoItemsFound.prototype.getImageSource = function (state) {
|
|
56309
|
-
return DThemeDarkAtlas.mappings.note_no_items_found;
|
|
56310
|
-
};
|
|
56311
56547
|
return DThemeDarkNoteNoItemsFound;
|
|
56312
56548
|
}(DThemeDarkNote));
|
|
56313
56549
|
|
|
@@ -56315,13 +56551,6 @@ var DThemeDarkNoteNoItemsFound = /** @class */ (function (_super) {
|
|
|
56315
56551
|
* Copyright (C) 2019 Toshiba Corporation
|
|
56316
56552
|
* SPDX-License-Identifier: Apache-2.0
|
|
56317
56553
|
*/
|
|
56318
|
-
/* eslint-disable prettier/prettier */
|
|
56319
|
-
DThemeDarkAtlas.add("note_searching", 48, 48, "<g transform=\"translate(-3,3) scale(3,3)\">" +
|
|
56320
|
-
"<path d=\"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 " +
|
|
56321
|
-
"9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 " +
|
|
56322
|
-
"14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z\" fill=\"#fff\"/>" +
|
|
56323
|
-
"</g>");
|
|
56324
|
-
/* eslint-enable prettier/prettier */
|
|
56325
56554
|
var DThemeDarkNoteSearching = /** @class */ (function (_super) {
|
|
56326
56555
|
__extends(DThemeDarkNoteSearching, _super);
|
|
56327
56556
|
function DThemeDarkNoteSearching() {
|
|
@@ -56330,12 +56559,69 @@ var DThemeDarkNoteSearching = /** @class */ (function (_super) {
|
|
|
56330
56559
|
DThemeDarkNoteSearching.prototype.newTextValue = function () {
|
|
56331
56560
|
return "Searching";
|
|
56332
56561
|
};
|
|
56333
|
-
DThemeDarkNoteSearching.prototype.getImageSource = function (state) {
|
|
56334
|
-
return DThemeDarkAtlas.mappings.note_searching;
|
|
56335
|
-
};
|
|
56336
56562
|
return DThemeDarkNoteSearching;
|
|
56337
56563
|
}(DThemeDarkNote));
|
|
56338
56564
|
|
|
56565
|
+
/*
|
|
56566
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
56567
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56568
|
+
*/
|
|
56569
|
+
var DThemeDarkNoteSmall = /** @class */ (function (_super) {
|
|
56570
|
+
__extends(DThemeDarkNoteSmall, _super);
|
|
56571
|
+
function DThemeDarkNoteSmall() {
|
|
56572
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56573
|
+
}
|
|
56574
|
+
DThemeDarkNoteSmall.prototype.getFontSize = function () {
|
|
56575
|
+
return 18;
|
|
56576
|
+
};
|
|
56577
|
+
return DThemeDarkNoteSmall;
|
|
56578
|
+
}(DThemeDarkNote));
|
|
56579
|
+
|
|
56580
|
+
/*
|
|
56581
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
56582
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56583
|
+
*/
|
|
56584
|
+
var DThemeDarkNoteSmallError = /** @class */ (function (_super) {
|
|
56585
|
+
__extends(DThemeDarkNoteSmallError, _super);
|
|
56586
|
+
function DThemeDarkNoteSmallError() {
|
|
56587
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56588
|
+
}
|
|
56589
|
+
DThemeDarkNoteSmallError.prototype.newTextValue = function () {
|
|
56590
|
+
return "Something went wrong";
|
|
56591
|
+
};
|
|
56592
|
+
return DThemeDarkNoteSmallError;
|
|
56593
|
+
}(DThemeDarkNoteSmall));
|
|
56594
|
+
|
|
56595
|
+
/*
|
|
56596
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
56597
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56598
|
+
*/
|
|
56599
|
+
var DThemeDarkNoteSmallNoItemsFound = /** @class */ (function (_super) {
|
|
56600
|
+
__extends(DThemeDarkNoteSmallNoItemsFound, _super);
|
|
56601
|
+
function DThemeDarkNoteSmallNoItemsFound() {
|
|
56602
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56603
|
+
}
|
|
56604
|
+
DThemeDarkNoteSmallNoItemsFound.prototype.newTextValue = function () {
|
|
56605
|
+
return "No items found";
|
|
56606
|
+
};
|
|
56607
|
+
return DThemeDarkNoteSmallNoItemsFound;
|
|
56608
|
+
}(DThemeDarkNoteSmall));
|
|
56609
|
+
|
|
56610
|
+
/*
|
|
56611
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
56612
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
56613
|
+
*/
|
|
56614
|
+
var DThemeDarkNoteSmallSearching = /** @class */ (function (_super) {
|
|
56615
|
+
__extends(DThemeDarkNoteSmallSearching, _super);
|
|
56616
|
+
function DThemeDarkNoteSmallSearching() {
|
|
56617
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
56618
|
+
}
|
|
56619
|
+
DThemeDarkNoteSmallSearching.prototype.newTextValue = function () {
|
|
56620
|
+
return "Searching";
|
|
56621
|
+
};
|
|
56622
|
+
return DThemeDarkNoteSmallSearching;
|
|
56623
|
+
}(DThemeDarkNoteSmall));
|
|
56624
|
+
|
|
56339
56625
|
/*
|
|
56340
56626
|
* Copyright (C) 2019 Toshiba Corporation
|
|
56341
56627
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -56345,6 +56631,9 @@ var loadThemeDarkNote = function () {
|
|
|
56345
56631
|
DThemeDark.set("DNoteError", DThemeDarkNoteError);
|
|
56346
56632
|
DThemeDark.set("DNoteNoItemsFound", DThemeDarkNoteNoItemsFound);
|
|
56347
56633
|
DThemeDark.set("DNoteSearching", DThemeDarkNoteSearching);
|
|
56634
|
+
DThemeDark.set("DNoteSmallError", DThemeDarkNoteSmallError);
|
|
56635
|
+
DThemeDark.set("DNoteSmallNoItemsFound", DThemeDarkNoteSmallNoItemsFound);
|
|
56636
|
+
DThemeDark.set("DNoteSmallSearching", DThemeDarkNoteSmallSearching);
|
|
56348
56637
|
};
|
|
56349
56638
|
|
|
56350
56639
|
/*
|
|
@@ -56862,6 +57151,9 @@ var DThemeDarkSliderThumb = /** @class */ (function (_super) {
|
|
|
56862
57151
|
DThemeDarkSliderThumb.prototype.getImageAlignHorizontal = function () {
|
|
56863
57152
|
return DAlignHorizontal.CENTER;
|
|
56864
57153
|
};
|
|
57154
|
+
DThemeDarkSliderThumb.prototype.getOutlineOffset = function (state) {
|
|
57155
|
+
return this.getOutlineOffsetNonActive(state) + 2;
|
|
57156
|
+
};
|
|
56865
57157
|
return DThemeDarkSliderThumb;
|
|
56866
57158
|
}(DThemeDarkButton));
|
|
56867
57159
|
|
|
@@ -56880,6 +57172,16 @@ var DThemeDarkSliderTrack = /** @class */ (function (_super) {
|
|
|
56880
57172
|
DThemeDarkSliderTrack.prototype.getBorderColor = function (state) {
|
|
56881
57173
|
return null;
|
|
56882
57174
|
};
|
|
57175
|
+
DThemeDarkSliderTrack.prototype.getOutlineColor = function (state) {
|
|
57176
|
+
return _super.prototype.getOutlineColorNonActive.call(this, state);
|
|
57177
|
+
};
|
|
57178
|
+
DThemeDarkSliderTrack.prototype.getOutlineOffset = function (state) {
|
|
57179
|
+
return _super.prototype.getOutlineOffsetNonActive.call(this, state);
|
|
57180
|
+
};
|
|
57181
|
+
DThemeDarkSliderTrack.prototype.newState = function (state) {
|
|
57182
|
+
_super.prototype.newState.call(this, state);
|
|
57183
|
+
state.isFocusable = false;
|
|
57184
|
+
};
|
|
56883
57185
|
return DThemeDarkSliderTrack;
|
|
56884
57186
|
}(DThemeDarkButton));
|
|
56885
57187
|
|
|
@@ -56950,7 +57252,7 @@ var DThemeDarkSliderValue = /** @class */ (function (_super) {
|
|
|
56950
57252
|
return "AUTO";
|
|
56951
57253
|
};
|
|
56952
57254
|
DThemeDarkSliderValue.prototype.getHeight = function () {
|
|
56953
|
-
return
|
|
57255
|
+
return this.getLineHeight();
|
|
56954
57256
|
};
|
|
56955
57257
|
DThemeDarkSliderValue.prototype.getBackgroundColor = function (state) {
|
|
56956
57258
|
if (state.inDisabled) {
|
|
@@ -57085,7 +57387,9 @@ var DThemeDarkTableBodyCells = /** @class */ (function () {
|
|
|
57085
57387
|
DThemeDarkTableBodyCells.getBackgroundColor = function (state) {
|
|
57086
57388
|
if (state.inDisabled) {
|
|
57087
57389
|
if (state.is(DTableState.FROZEN)) {
|
|
57088
|
-
return state.onAlternated
|
|
57390
|
+
return state.onAlternated
|
|
57391
|
+
? this.BACKGROUND_COLOR_FROZEN_ODD
|
|
57392
|
+
: this.BACKGROUND_COLOR_FROZEN_EVEN;
|
|
57089
57393
|
}
|
|
57090
57394
|
else {
|
|
57091
57395
|
return null;
|
|
@@ -57102,7 +57406,9 @@ var DThemeDarkTableBodyCells = /** @class */ (function () {
|
|
|
57102
57406
|
}
|
|
57103
57407
|
else {
|
|
57104
57408
|
if (state.is(DTableState.FROZEN)) {
|
|
57105
|
-
return state.onAlternated
|
|
57409
|
+
return state.onAlternated
|
|
57410
|
+
? this.BACKGROUND_COLOR_FROZEN_ODD
|
|
57411
|
+
: this.BACKGROUND_COLOR_FROZEN_EVEN;
|
|
57106
57412
|
}
|
|
57107
57413
|
else {
|
|
57108
57414
|
return null;
|
|
@@ -57146,9 +57452,13 @@ var DThemeDarkTableBodyCells = /** @class */ (function () {
|
|
|
57146
57452
|
DThemeDarkTableBodyCells.getCornerMask = function () {
|
|
57147
57453
|
return DCornerMask.ALL;
|
|
57148
57454
|
};
|
|
57149
|
-
|
|
57150
|
-
|
|
57151
|
-
DThemeDarkTableBodyCells.
|
|
57455
|
+
var _a;
|
|
57456
|
+
_a = DThemeDarkTableBodyCells;
|
|
57457
|
+
DThemeDarkTableBodyCells.BACKGROUND_COLOR = DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD;
|
|
57458
|
+
DThemeDarkTableBodyCells.BACKGROUND_COLOR_FROZEN_EVEN = UtilRgb.brighten(_a.BACKGROUND_COLOR, 0.02);
|
|
57459
|
+
DThemeDarkTableBodyCells.BACKGROUND_COLOR_FROZEN_ODD = UtilRgb.brighten(_a.BACKGROUND_COLOR_FROZEN_EVEN, 0.02);
|
|
57460
|
+
DThemeDarkTableBodyCells.BORDER_COLOR = UtilRgb.darken(_a.BACKGROUND_COLOR, 0.035);
|
|
57461
|
+
DThemeDarkTableBodyCells.BORDER_COLOR_FROZEN = UtilRgb.darken(_a.BORDER_COLOR, 0.035);
|
|
57152
57462
|
return DThemeDarkTableBodyCells;
|
|
57153
57463
|
}());
|
|
57154
57464
|
|
|
@@ -58227,12 +58537,14 @@ var DThemeDarkTableHeaderCell = /** @class */ (function (_super) {
|
|
|
58227
58537
|
_this.BACKGROUND_COLOR = UtilRgb.brighten(DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD, 0.02);
|
|
58228
58538
|
_this.BACKGROUND_COLOR_HOVERED = UtilRgb.brighten(_this.BACKGROUND_COLOR, 0.08);
|
|
58229
58539
|
_this.BACKGROUND_COLOR_PRESSED = UtilRgb.brighten(_this.BACKGROUND_COLOR, 0.32);
|
|
58540
|
+
_this.BACKGROUND_COLOR_FROZEN = UtilRgb.brighten(_this.BACKGROUND_COLOR, 0.02);
|
|
58230
58541
|
_this.BORDER_COLOR = UtilRgb.darken(DThemeDarkConstants.BACKGROUND_COLOR_ON_BOARD, 0.05);
|
|
58542
|
+
_this.BORDER_COLOR_FROZEN = UtilRgb.darken(_this.BORDER_COLOR, 0.05);
|
|
58231
58543
|
return _this;
|
|
58232
58544
|
}
|
|
58233
58545
|
DThemeDarkTableHeaderCell.prototype.getBackgroundColor = function (state) {
|
|
58234
58546
|
if (state.inDisabled) {
|
|
58235
|
-
return state.is(DTableState.FROZEN) ? this.
|
|
58547
|
+
return state.is(DTableState.FROZEN) ? this.BACKGROUND_COLOR_FROZEN : null;
|
|
58236
58548
|
}
|
|
58237
58549
|
else if (state.isPressed) {
|
|
58238
58550
|
return this.BACKGROUND_COLOR_PRESSED;
|
|
@@ -58241,13 +58553,16 @@ var DThemeDarkTableHeaderCell = /** @class */ (function (_super) {
|
|
|
58241
58553
|
return this.BACKGROUND_COLOR_HOVERED;
|
|
58242
58554
|
}
|
|
58243
58555
|
else {
|
|
58244
|
-
return state.is(DTableState.FROZEN) ? this.
|
|
58556
|
+
return state.is(DTableState.FROZEN) ? this.BACKGROUND_COLOR_FROZEN : null;
|
|
58245
58557
|
}
|
|
58246
58558
|
};
|
|
58247
58559
|
DThemeDarkTableHeaderCell.prototype.getBackgroundAlpha = function (state) {
|
|
58248
58560
|
return 1;
|
|
58249
58561
|
};
|
|
58250
58562
|
DThemeDarkTableHeaderCell.prototype.getBorderColor = function (state) {
|
|
58563
|
+
if (state.is(DTableState.FROZEN_END)) {
|
|
58564
|
+
return this.BORDER_COLOR_FROZEN;
|
|
58565
|
+
}
|
|
58251
58566
|
return this.BORDER_COLOR;
|
|
58252
58567
|
};
|
|
58253
58568
|
DThemeDarkTableHeaderCell.prototype.getBorderMask = function (state) {
|
|
@@ -66001,46 +66316,61 @@ var DNote = /** @class */ (function (_super) {
|
|
|
66001
66316
|
* Copyright (C) 2019 Toshiba Corporation
|
|
66002
66317
|
* SPDX-License-Identifier: Apache-2.0
|
|
66003
66318
|
*/
|
|
66004
|
-
var
|
|
66005
|
-
__extends(
|
|
66006
|
-
function
|
|
66319
|
+
var DNoteSmall = /** @class */ (function (_super) {
|
|
66320
|
+
__extends(DNoteSmall, _super);
|
|
66321
|
+
function DNoteSmall() {
|
|
66007
66322
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
66008
66323
|
}
|
|
66009
|
-
|
|
66010
|
-
return "
|
|
66324
|
+
DNoteSmall.prototype.getType = function () {
|
|
66325
|
+
return "DNoteSmall";
|
|
66011
66326
|
};
|
|
66012
|
-
return
|
|
66327
|
+
return DNoteSmall;
|
|
66013
66328
|
}(DNote));
|
|
66014
66329
|
|
|
66015
66330
|
/*
|
|
66016
66331
|
* Copyright (C) 2019 Toshiba Corporation
|
|
66017
66332
|
* SPDX-License-Identifier: Apache-2.0
|
|
66018
66333
|
*/
|
|
66019
|
-
var
|
|
66020
|
-
__extends(
|
|
66021
|
-
function
|
|
66334
|
+
var DNoteSmallError = /** @class */ (function (_super) {
|
|
66335
|
+
__extends(DNoteSmallError, _super);
|
|
66336
|
+
function DNoteSmallError() {
|
|
66022
66337
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
66023
66338
|
}
|
|
66024
|
-
|
|
66025
|
-
return "
|
|
66339
|
+
DNoteSmallError.prototype.getType = function () {
|
|
66340
|
+
return "DNoteSmallError";
|
|
66026
66341
|
};
|
|
66027
|
-
return
|
|
66028
|
-
}(
|
|
66342
|
+
return DNoteSmallError;
|
|
66343
|
+
}(DNoteSmall));
|
|
66029
66344
|
|
|
66030
66345
|
/*
|
|
66031
66346
|
* Copyright (C) 2019 Toshiba Corporation
|
|
66032
66347
|
* SPDX-License-Identifier: Apache-2.0
|
|
66033
66348
|
*/
|
|
66034
|
-
var
|
|
66035
|
-
__extends(
|
|
66036
|
-
function
|
|
66349
|
+
var DNoteSmallNoItemsFound = /** @class */ (function (_super) {
|
|
66350
|
+
__extends(DNoteSmallNoItemsFound, _super);
|
|
66351
|
+
function DNoteSmallNoItemsFound() {
|
|
66037
66352
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
66038
66353
|
}
|
|
66039
|
-
|
|
66040
|
-
return "
|
|
66354
|
+
DNoteSmallNoItemsFound.prototype.getType = function () {
|
|
66355
|
+
return "DNoteSmallNoItemsFound";
|
|
66041
66356
|
};
|
|
66042
|
-
return
|
|
66043
|
-
}(
|
|
66357
|
+
return DNoteSmallNoItemsFound;
|
|
66358
|
+
}(DNoteSmall));
|
|
66359
|
+
|
|
66360
|
+
/*
|
|
66361
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
66362
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
66363
|
+
*/
|
|
66364
|
+
var DNoteSmallSearching = /** @class */ (function (_super) {
|
|
66365
|
+
__extends(DNoteSmallSearching, _super);
|
|
66366
|
+
function DNoteSmallSearching() {
|
|
66367
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
66368
|
+
}
|
|
66369
|
+
DNoteSmallSearching.prototype.getType = function () {
|
|
66370
|
+
return "DNoteSmallSearching";
|
|
66371
|
+
};
|
|
66372
|
+
return DNoteSmallSearching;
|
|
66373
|
+
}(DNoteSmall));
|
|
66044
66374
|
|
|
66045
66375
|
/*
|
|
66046
66376
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -66200,14 +66530,14 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
66200
66530
|
DDialogSelect.prototype.newNoteError = function (list, options) {
|
|
66201
66531
|
var error = options === null || options === void 0 ? void 0 : options.error;
|
|
66202
66532
|
if (error !== null) {
|
|
66203
|
-
return new
|
|
66533
|
+
return new DNoteSmallError(this.toNoteOptions(list, error));
|
|
66204
66534
|
}
|
|
66205
66535
|
return null;
|
|
66206
66536
|
};
|
|
66207
66537
|
DDialogSelect.prototype.newNoteNoItemsFound = function (list, options) {
|
|
66208
66538
|
var noItemsFound = options === null || options === void 0 ? void 0 : options.noItemsFound;
|
|
66209
66539
|
if (noItemsFound !== null) {
|
|
66210
|
-
return new
|
|
66540
|
+
return new DNoteSmallNoItemsFound(this.toNoteOptions(list, noItemsFound));
|
|
66211
66541
|
}
|
|
66212
66542
|
return null;
|
|
66213
66543
|
};
|
|
@@ -66217,7 +66547,7 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
66217
66547
|
// if options.searching is missing, i.e., if its value is undefined,
|
|
66218
66548
|
// this method returns null. This is why `!=` is used here instead of `!==`.
|
|
66219
66549
|
if (searching != null) {
|
|
66220
|
-
return new
|
|
66550
|
+
return new DNoteSmallSearching(this.toNoteOptions(list, searching));
|
|
66221
66551
|
}
|
|
66222
66552
|
return null;
|
|
66223
66553
|
};
|
|
@@ -75354,6 +75684,51 @@ var DMenuSided = /** @class */ (function (_super) {
|
|
|
75354
75684
|
return DMenuSided;
|
|
75355
75685
|
}(DPane));
|
|
75356
75686
|
|
|
75687
|
+
/*
|
|
75688
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
75689
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
75690
|
+
*/
|
|
75691
|
+
var DNoteError = /** @class */ (function (_super) {
|
|
75692
|
+
__extends(DNoteError, _super);
|
|
75693
|
+
function DNoteError() {
|
|
75694
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
75695
|
+
}
|
|
75696
|
+
DNoteError.prototype.getType = function () {
|
|
75697
|
+
return "DNoteError";
|
|
75698
|
+
};
|
|
75699
|
+
return DNoteError;
|
|
75700
|
+
}(DNote));
|
|
75701
|
+
|
|
75702
|
+
/*
|
|
75703
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
75704
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
75705
|
+
*/
|
|
75706
|
+
var DNoteNoItemsFound = /** @class */ (function (_super) {
|
|
75707
|
+
__extends(DNoteNoItemsFound, _super);
|
|
75708
|
+
function DNoteNoItemsFound() {
|
|
75709
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
75710
|
+
}
|
|
75711
|
+
DNoteNoItemsFound.prototype.getType = function () {
|
|
75712
|
+
return "DNoteNoItemsFound";
|
|
75713
|
+
};
|
|
75714
|
+
return DNoteNoItemsFound;
|
|
75715
|
+
}(DNote));
|
|
75716
|
+
|
|
75717
|
+
/*
|
|
75718
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
75719
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
75720
|
+
*/
|
|
75721
|
+
var DNoteSearching = /** @class */ (function (_super) {
|
|
75722
|
+
__extends(DNoteSearching, _super);
|
|
75723
|
+
function DNoteSearching() {
|
|
75724
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
75725
|
+
}
|
|
75726
|
+
DNoteSearching.prototype.getType = function () {
|
|
75727
|
+
return "DNoteSearching";
|
|
75728
|
+
};
|
|
75729
|
+
return DNoteSearching;
|
|
75730
|
+
}(DNote));
|
|
75731
|
+
|
|
75357
75732
|
/*
|
|
75358
75733
|
* Copyright (C) 2019 Toshiba Corporation
|
|
75359
75734
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -84072,6 +84447,10 @@ exports.DNote = DNote;
|
|
|
84072
84447
|
exports.DNoteError = DNoteError;
|
|
84073
84448
|
exports.DNoteNoItemsFound = DNoteNoItemsFound;
|
|
84074
84449
|
exports.DNoteSearching = DNoteSearching;
|
|
84450
|
+
exports.DNoteSmall = DNoteSmall;
|
|
84451
|
+
exports.DNoteSmallError = DNoteSmallError;
|
|
84452
|
+
exports.DNoteSmallNoItemsFound = DNoteSmallNoItemsFound;
|
|
84453
|
+
exports.DNoteSmallSearching = DNoteSmallSearching;
|
|
84075
84454
|
exports.DNotification = DNotification;
|
|
84076
84455
|
exports.DPagination = DPagination;
|
|
84077
84456
|
exports.DPaginationDotsButton = DPaginationDotsButton;
|
|
@@ -84309,6 +84688,10 @@ exports.DThemeDarkNote = DThemeDarkNote;
|
|
|
84309
84688
|
exports.DThemeDarkNoteError = DThemeDarkNoteError;
|
|
84310
84689
|
exports.DThemeDarkNoteNoItemsFound = DThemeDarkNoteNoItemsFound;
|
|
84311
84690
|
exports.DThemeDarkNoteSearching = DThemeDarkNoteSearching;
|
|
84691
|
+
exports.DThemeDarkNoteSmall = DThemeDarkNoteSmall;
|
|
84692
|
+
exports.DThemeDarkNoteSmallError = DThemeDarkNoteSmallError;
|
|
84693
|
+
exports.DThemeDarkNoteSmallNoItemsFound = DThemeDarkNoteSmallNoItemsFound;
|
|
84694
|
+
exports.DThemeDarkNoteSmallSearching = DThemeDarkNoteSmallSearching;
|
|
84312
84695
|
exports.DThemeDarkPagination = DThemeDarkPagination;
|
|
84313
84696
|
exports.DThemeDarkPaginationDotsButton = DThemeDarkPaginationDotsButton;
|
|
84314
84697
|
exports.DThemeDarkPaginationDynamicButtons = DThemeDarkPaginationDynamicButtons;
|
|
@@ -84503,6 +84886,10 @@ exports.DThemeWhiteNote = DThemeWhiteNote;
|
|
|
84503
84886
|
exports.DThemeWhiteNoteError = DThemeWhiteNoteError;
|
|
84504
84887
|
exports.DThemeWhiteNoteNoItemsFound = DThemeWhiteNoteNoItemsFound;
|
|
84505
84888
|
exports.DThemeWhiteNoteSearching = DThemeWhiteNoteSearching;
|
|
84889
|
+
exports.DThemeWhiteNoteSmall = DThemeWhiteNoteSmall;
|
|
84890
|
+
exports.DThemeWhiteNoteSmallError = DThemeWhiteNoteSmallError;
|
|
84891
|
+
exports.DThemeWhiteNoteSmallNoItemsFound = DThemeWhiteNoteSmallNoItemsFound;
|
|
84892
|
+
exports.DThemeWhiteNoteSmallSearching = DThemeWhiteNoteSmallSearching;
|
|
84506
84893
|
exports.DThemeWhitePagination = DThemeWhitePagination;
|
|
84507
84894
|
exports.DThemeWhitePaginationDotsButton = DThemeWhitePaginationDotsButton;
|
|
84508
84895
|
exports.DThemeWhitePaginationDynamicButtons = DThemeWhitePaginationDynamicButtons;
|
|
@@ -84718,6 +85105,8 @@ exports.EShapeButtonRuntimeActionToggle = EShapeButtonRuntimeActionToggle;
|
|
|
84718
85105
|
exports.EShapeCapabilities = EShapeCapabilities;
|
|
84719
85106
|
exports.EShapeCapability = EShapeCapability;
|
|
84720
85107
|
exports.EShapeCircle = EShapeCircle;
|
|
85108
|
+
exports.EShapeConnectorBodies = EShapeConnectorBodies;
|
|
85109
|
+
exports.EShapeConnectorBodyImpl = EShapeConnectorBodyImpl;
|
|
84721
85110
|
exports.EShapeConnectorContainerImpl = EShapeConnectorContainerImpl;
|
|
84722
85111
|
exports.EShapeConnectorEdgeAcceptorImpl = EShapeConnectorEdgeAcceptorImpl;
|
|
84723
85112
|
exports.EShapeConnectorEdgeContainerImpl = EShapeConnectorEdgeContainerImpl;
|