@wcardinal/wcardinal-ui 0.446.0 → 0.448.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/README.md +24 -28
- package/dist/types/wcardinal/ui/d-dialog.d.ts +9 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-dialog.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-dialog.d.ts +1 -0
- package/dist/wcardinal/ui/d-dialog.js +56 -2
- package/dist/wcardinal/ui/d-dialog.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog.js +3 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-dialog.js +3 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-dialog.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +4 -1
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +4 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +4 -1
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.js +4 -1
- package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +4 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +4 -1
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui.cjs.js +63 -3
- package/dist/wcardinal-ui.js +57 -3
- 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.448.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -30416,7 +30416,7 @@ var DDialog = /** @class */ (function (_super) {
|
|
|
30416
30416
|
}
|
|
30417
30417
|
DDialog.prototype.init = function (options) {
|
|
30418
30418
|
var _this = this;
|
|
30419
|
-
var _a, _b;
|
|
30419
|
+
var _a, _b, _c;
|
|
30420
30420
|
_super.prototype.init.call(this, options);
|
|
30421
30421
|
this._onPrerenderBound = function () {
|
|
30422
30422
|
_this.onPrerender();
|
|
@@ -30426,8 +30426,10 @@ var DDialog = /** @class */ (function (_super) {
|
|
|
30426
30426
|
var theme = this.theme;
|
|
30427
30427
|
var mode = toEnum((_a = options === null || options === void 0 ? void 0 : options.mode) !== null && _a !== void 0 ? _a : theme.getMode(), DDialogMode);
|
|
30428
30428
|
this._mode = mode;
|
|
30429
|
+
// Always On Top
|
|
30430
|
+
this._alwaysOnTop = (_b = options === null || options === void 0 ? void 0 : options.alwaysOnTop) !== null && _b !== void 0 ? _b : theme.isAlwaysOnTop();
|
|
30429
30431
|
// Sticky
|
|
30430
|
-
this._sticky = (
|
|
30432
|
+
this._sticky = (_c = options === null || options === void 0 ? void 0 : options.sticky) !== null && _c !== void 0 ? _c : theme.isSticky(mode);
|
|
30431
30433
|
// Close On
|
|
30432
30434
|
var closeOn = this.toCloseOn(mode, theme, options);
|
|
30433
30435
|
this._closeOn = closeOn;
|
|
@@ -30508,6 +30510,16 @@ var DDialog = /** @class */ (function (_super) {
|
|
|
30508
30510
|
enumerable: false,
|
|
30509
30511
|
configurable: true
|
|
30510
30512
|
});
|
|
30513
|
+
Object.defineProperty(DDialog.prototype, "alwaysOnTop", {
|
|
30514
|
+
get: function () {
|
|
30515
|
+
return this._alwaysOnTop;
|
|
30516
|
+
},
|
|
30517
|
+
set: function (alwaysOnTop) {
|
|
30518
|
+
this._alwaysOnTop = alwaysOnTop;
|
|
30519
|
+
},
|
|
30520
|
+
enumerable: false,
|
|
30521
|
+
configurable: true
|
|
30522
|
+
});
|
|
30511
30523
|
Object.defineProperty(DDialog.prototype, "gesture", {
|
|
30512
30524
|
get: function () {
|
|
30513
30525
|
return this._gesture;
|
|
@@ -30657,11 +30669,46 @@ var DDialog = /** @class */ (function (_super) {
|
|
|
30657
30669
|
gesture.constraint(this, layer, position.x, position.y);
|
|
30658
30670
|
}
|
|
30659
30671
|
}
|
|
30672
|
+
// Bring To Front
|
|
30673
|
+
this.bringToFront();
|
|
30660
30674
|
// Done
|
|
30661
30675
|
this.onOpen();
|
|
30662
30676
|
}
|
|
30663
30677
|
return result;
|
|
30664
30678
|
};
|
|
30679
|
+
DDialog.prototype.onChildFocus = function (focused) {
|
|
30680
|
+
_super.prototype.onChildFocus.call(this, focused);
|
|
30681
|
+
this.bringToFront();
|
|
30682
|
+
};
|
|
30683
|
+
DDialog.prototype.onFocus = function () {
|
|
30684
|
+
_super.prototype.onFocus.call(this);
|
|
30685
|
+
this.bringToFront();
|
|
30686
|
+
};
|
|
30687
|
+
DDialog.prototype.bringToFront = function () {
|
|
30688
|
+
var parent = this.parent;
|
|
30689
|
+
if (parent == null) {
|
|
30690
|
+
return;
|
|
30691
|
+
}
|
|
30692
|
+
var children = parent.children;
|
|
30693
|
+
var childrenLength = children.length;
|
|
30694
|
+
var index = childrenLength - 1;
|
|
30695
|
+
for (; 0 <= index; --index) {
|
|
30696
|
+
if (children[index] === this) {
|
|
30697
|
+
break;
|
|
30698
|
+
}
|
|
30699
|
+
}
|
|
30700
|
+
if (index < 0) {
|
|
30701
|
+
return;
|
|
30702
|
+
}
|
|
30703
|
+
for (var i = index + 1; i < childrenLength; ++i) {
|
|
30704
|
+
children[i - 1] = children[i];
|
|
30705
|
+
}
|
|
30706
|
+
children[childrenLength - 1] = this;
|
|
30707
|
+
children.sort(function (a, b) {
|
|
30708
|
+
return ((a instanceof DDialog ? (a._alwaysOnTop ? 2 : 1) : 0) -
|
|
30709
|
+
(b instanceof DDialog ? (b._alwaysOnTop ? 2 : 1) : 0));
|
|
30710
|
+
});
|
|
30711
|
+
};
|
|
30665
30712
|
DDialog.prototype.onPrerender = function () {
|
|
30666
30713
|
var _a;
|
|
30667
30714
|
var layer = this._layer;
|
|
@@ -30757,6 +30804,13 @@ var DDialog = /** @class */ (function (_super) {
|
|
|
30757
30804
|
this.visible = false;
|
|
30758
30805
|
this.onAnimationEnd(true);
|
|
30759
30806
|
}
|
|
30807
|
+
// Always On Top
|
|
30808
|
+
if (this._alwaysOnTop) {
|
|
30809
|
+
var parent_2 = this.parent;
|
|
30810
|
+
if (parent_2 != null) {
|
|
30811
|
+
parent_2.off("childAdded", this._onParentChildAddedBound);
|
|
30812
|
+
}
|
|
30813
|
+
}
|
|
30760
30814
|
this.emit("close", this);
|
|
30761
30815
|
};
|
|
30762
30816
|
DDialog.prototype.onKeyDown = function (e) {
|
|
@@ -53962,6 +54016,9 @@ var DThemeWhiteDialog = /** @class */ (function (_super) {
|
|
|
53962
54016
|
DThemeWhiteDialog.prototype.isSticky = function (mode) {
|
|
53963
54017
|
return false;
|
|
53964
54018
|
};
|
|
54019
|
+
DThemeWhiteDialog.prototype.isAlwaysOnTop = function () {
|
|
54020
|
+
return false;
|
|
54021
|
+
};
|
|
53965
54022
|
DThemeWhiteDialog.prototype.isGestureEnabled = function (mode) {
|
|
53966
54023
|
switch (mode) {
|
|
53967
54024
|
case DDialogMode.MODAL:
|
|
@@ -65048,6 +65105,9 @@ var DThemeDarkDialog = /** @class */ (function (_super) {
|
|
|
65048
65105
|
DThemeDarkDialog.prototype.isSticky = function (mode) {
|
|
65049
65106
|
return false;
|
|
65050
65107
|
};
|
|
65108
|
+
DThemeDarkDialog.prototype.isAlwaysOnTop = function () {
|
|
65109
|
+
return false;
|
|
65110
|
+
};
|
|
65051
65111
|
DThemeDarkDialog.prototype.isGestureEnabled = function (mode) {
|
|
65052
65112
|
switch (mode) {
|
|
65053
65113
|
case DDialogMode.MODAL:
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.448.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -30413,7 +30413,7 @@
|
|
|
30413
30413
|
}
|
|
30414
30414
|
DDialog.prototype.init = function (options) {
|
|
30415
30415
|
var _this = this;
|
|
30416
|
-
var _a, _b;
|
|
30416
|
+
var _a, _b, _c;
|
|
30417
30417
|
_super.prototype.init.call(this, options);
|
|
30418
30418
|
this._onPrerenderBound = function () {
|
|
30419
30419
|
_this.onPrerender();
|
|
@@ -30423,8 +30423,10 @@
|
|
|
30423
30423
|
var theme = this.theme;
|
|
30424
30424
|
var mode = toEnum((_a = options === null || options === void 0 ? void 0 : options.mode) !== null && _a !== void 0 ? _a : theme.getMode(), DDialogMode);
|
|
30425
30425
|
this._mode = mode;
|
|
30426
|
+
// Always On Top
|
|
30427
|
+
this._alwaysOnTop = (_b = options === null || options === void 0 ? void 0 : options.alwaysOnTop) !== null && _b !== void 0 ? _b : theme.isAlwaysOnTop();
|
|
30426
30428
|
// Sticky
|
|
30427
|
-
this._sticky = (
|
|
30429
|
+
this._sticky = (_c = options === null || options === void 0 ? void 0 : options.sticky) !== null && _c !== void 0 ? _c : theme.isSticky(mode);
|
|
30428
30430
|
// Close On
|
|
30429
30431
|
var closeOn = this.toCloseOn(mode, theme, options);
|
|
30430
30432
|
this._closeOn = closeOn;
|
|
@@ -30505,6 +30507,16 @@
|
|
|
30505
30507
|
enumerable: false,
|
|
30506
30508
|
configurable: true
|
|
30507
30509
|
});
|
|
30510
|
+
Object.defineProperty(DDialog.prototype, "alwaysOnTop", {
|
|
30511
|
+
get: function () {
|
|
30512
|
+
return this._alwaysOnTop;
|
|
30513
|
+
},
|
|
30514
|
+
set: function (alwaysOnTop) {
|
|
30515
|
+
this._alwaysOnTop = alwaysOnTop;
|
|
30516
|
+
},
|
|
30517
|
+
enumerable: false,
|
|
30518
|
+
configurable: true
|
|
30519
|
+
});
|
|
30508
30520
|
Object.defineProperty(DDialog.prototype, "gesture", {
|
|
30509
30521
|
get: function () {
|
|
30510
30522
|
return this._gesture;
|
|
@@ -30654,11 +30666,46 @@
|
|
|
30654
30666
|
gesture.constraint(this, layer, position.x, position.y);
|
|
30655
30667
|
}
|
|
30656
30668
|
}
|
|
30669
|
+
// Bring To Front
|
|
30670
|
+
this.bringToFront();
|
|
30657
30671
|
// Done
|
|
30658
30672
|
this.onOpen();
|
|
30659
30673
|
}
|
|
30660
30674
|
return result;
|
|
30661
30675
|
};
|
|
30676
|
+
DDialog.prototype.onChildFocus = function (focused) {
|
|
30677
|
+
_super.prototype.onChildFocus.call(this, focused);
|
|
30678
|
+
this.bringToFront();
|
|
30679
|
+
};
|
|
30680
|
+
DDialog.prototype.onFocus = function () {
|
|
30681
|
+
_super.prototype.onFocus.call(this);
|
|
30682
|
+
this.bringToFront();
|
|
30683
|
+
};
|
|
30684
|
+
DDialog.prototype.bringToFront = function () {
|
|
30685
|
+
var parent = this.parent;
|
|
30686
|
+
if (parent == null) {
|
|
30687
|
+
return;
|
|
30688
|
+
}
|
|
30689
|
+
var children = parent.children;
|
|
30690
|
+
var childrenLength = children.length;
|
|
30691
|
+
var index = childrenLength - 1;
|
|
30692
|
+
for (; 0 <= index; --index) {
|
|
30693
|
+
if (children[index] === this) {
|
|
30694
|
+
break;
|
|
30695
|
+
}
|
|
30696
|
+
}
|
|
30697
|
+
if (index < 0) {
|
|
30698
|
+
return;
|
|
30699
|
+
}
|
|
30700
|
+
for (var i = index + 1; i < childrenLength; ++i) {
|
|
30701
|
+
children[i - 1] = children[i];
|
|
30702
|
+
}
|
|
30703
|
+
children[childrenLength - 1] = this;
|
|
30704
|
+
children.sort(function (a, b) {
|
|
30705
|
+
return ((a instanceof DDialog ? (a._alwaysOnTop ? 2 : 1) : 0) -
|
|
30706
|
+
(b instanceof DDialog ? (b._alwaysOnTop ? 2 : 1) : 0));
|
|
30707
|
+
});
|
|
30708
|
+
};
|
|
30662
30709
|
DDialog.prototype.onPrerender = function () {
|
|
30663
30710
|
var _a;
|
|
30664
30711
|
var layer = this._layer;
|
|
@@ -30754,6 +30801,13 @@
|
|
|
30754
30801
|
this.visible = false;
|
|
30755
30802
|
this.onAnimationEnd(true);
|
|
30756
30803
|
}
|
|
30804
|
+
// Always On Top
|
|
30805
|
+
if (this._alwaysOnTop) {
|
|
30806
|
+
var parent_2 = this.parent;
|
|
30807
|
+
if (parent_2 != null) {
|
|
30808
|
+
parent_2.off("childAdded", this._onParentChildAddedBound);
|
|
30809
|
+
}
|
|
30810
|
+
}
|
|
30757
30811
|
this.emit("close", this);
|
|
30758
30812
|
};
|
|
30759
30813
|
DDialog.prototype.onKeyDown = function (e) {
|