@wcardinal/wcardinal-ui 0.386.0 → 0.388.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-button-select.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-dialog-select.d.ts +14 -6
- package/dist/types/wcardinal/ui/d-dialog.d.ts +7 -3
- package/dist/types/wcardinal/ui/d-menu-opener.d.ts +2 -1
- package/dist/types/wcardinal/ui/index.d.ts +0 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-en-us-dialog-select.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-dialog-select.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-dialog-select.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-en-us-dialog-select.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-ja-jp-dialog-select.d.ts +1 -0
- package/dist/types/wcardinal/ui/util/util-overlay.d.ts +1 -1
- package/dist/wcardinal/ui/d-button-select.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog-select.js +77 -97
- package/dist/wcardinal/ui/d-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog.js +6 -3
- package/dist/wcardinal/ui/d-dialog.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-opener.js.map +1 -1
- package/dist/wcardinal/ui/d-menu.js +1 -1
- package/dist/wcardinal/ui/d-menu.js.map +1 -1
- package/dist/wcardinal/ui/index.js +0 -2
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js +3 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-en-us-dialog-select.js +3 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-en-us-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-dialog-select.js +3 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js +3 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-en-us-dialog-select.js +3 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-en-us-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-ja-jp-dialog-select.js +3 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-ja-jp-dialog-select.js.map +1 -1
- package/dist/wcardinal/ui/util/util-overlay.js +6 -3
- package/dist/wcardinal/ui/util/util-overlay.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +7 -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 +7 -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 +7 -1
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.js +7 -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 +7 -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 +7 -1
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui.cjs.js +108 -163
- package/dist/wcardinal-ui.js +90 -163
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/d-dialog-select-search-dismissable-impl.d.ts +0 -14
- package/dist/types/wcardinal/ui/d-dialog-select-search-dismissable.d.ts +0 -11
- package/dist/wcardinal/ui/d-dialog-select-search-dismissable-impl.js +0 -61
- package/dist/wcardinal/ui/d-dialog-select-search-dismissable-impl.js.map +0 -1
- package/dist/wcardinal/ui/d-dialog-select-search-dismissable.js +0 -6
- package/dist/wcardinal/ui/d-dialog-select-search-dismissable.js.map +0 -1
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.388.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -26304,11 +26304,14 @@ var UtilOverlay = /** @class */ (function () {
|
|
|
26304
26304
|
enumerable: false,
|
|
26305
26305
|
configurable: true
|
|
26306
26306
|
});
|
|
26307
|
-
UtilOverlay.prototype.pick = function (
|
|
26307
|
+
UtilOverlay.prototype.pick = function (owner, opener) {
|
|
26308
26308
|
var layer = this._layer;
|
|
26309
26309
|
if (layer == null) {
|
|
26310
|
-
layer = DApplications.getLayerOverlay(
|
|
26311
|
-
if (
|
|
26310
|
+
layer = DApplications.getLayerOverlay(owner);
|
|
26311
|
+
if (layer == null && opener != null) {
|
|
26312
|
+
layer = DApplications.getLayerOverlay(opener);
|
|
26313
|
+
}
|
|
26314
|
+
if (layer == null) {
|
|
26312
26315
|
var application = this._application;
|
|
26313
26316
|
if (application) {
|
|
26314
26317
|
layer = application.getLayerOverlay();
|
|
@@ -26333,8 +26336,11 @@ var UtilOverlay = /** @class */ (function () {
|
|
|
26333
26336
|
*
|
|
26334
26337
|
* If multiple application instances are there, better to set the constructor
|
|
26335
26338
|
* option `parent` to an `application.stage` so that the dialog picks a right
|
|
26336
|
-
* application.
|
|
26337
|
-
*
|
|
26339
|
+
* application. `DDialog` searches applications in a following order:
|
|
26340
|
+
*
|
|
26341
|
+
* * To begin, `DDialog` tries to find applications which it belongs to.
|
|
26342
|
+
* * If `DDialog` can't find applications, then `DDialog` tries to find applications which openers belong to.
|
|
26343
|
+
* * If openers are not given, `DDialog` assumes the last created application at the very moment `DDialog` is instantiated is the one it belongs to.
|
|
26338
26344
|
*/
|
|
26339
26345
|
var DDialog = /** @class */ (function (_super) {
|
|
26340
26346
|
__extends(DDialog, _super);
|
|
@@ -26554,7 +26560,7 @@ var DDialog = /** @class */ (function (_super) {
|
|
|
26554
26560
|
switch (this._mode) {
|
|
26555
26561
|
case DDialogMode.MODAL:
|
|
26556
26562
|
case DDialogMode.MENU:
|
|
26557
|
-
layer = this._overlay.pick(this);
|
|
26563
|
+
layer = this._overlay.pick(this, opener);
|
|
26558
26564
|
layer.stage.addChild(this);
|
|
26559
26565
|
break;
|
|
26560
26566
|
case DDialogMode.MODELESS:
|
|
@@ -54134,6 +54140,9 @@ var DThemeWhiteDialogSelect = /** @class */ (function (_super) {
|
|
|
54134
54140
|
DThemeWhiteDialogSelect.prototype.getInputMargin = function () {
|
|
54135
54141
|
return 19;
|
|
54136
54142
|
};
|
|
54143
|
+
DThemeWhiteDialogSelect.prototype.isDismissable = function () {
|
|
54144
|
+
return false;
|
|
54145
|
+
};
|
|
54137
54146
|
DThemeWhiteDialogSelect.prototype.isCategoryDismissable = function () {
|
|
54138
54147
|
return true;
|
|
54139
54148
|
};
|
|
@@ -54149,6 +54158,9 @@ var DThemeWhiteEnUsDialogSelect = /** @class */ (function (_super) {
|
|
|
54149
54158
|
function DThemeWhiteEnUsDialogSelect() {
|
|
54150
54159
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
54151
54160
|
}
|
|
54161
|
+
DThemeWhiteEnUsDialogSelect.prototype.getDismissLabel = function () {
|
|
54162
|
+
return "None";
|
|
54163
|
+
};
|
|
54152
54164
|
DThemeWhiteEnUsDialogSelect.prototype.getCategoryDismissLabel = function () {
|
|
54153
54165
|
return "All";
|
|
54154
54166
|
};
|
|
@@ -56996,6 +57008,9 @@ var DThemeWhiteJaJpDialogSelect = /** @class */ (function (_super) {
|
|
|
56996
57008
|
function DThemeWhiteJaJpDialogSelect() {
|
|
56997
57009
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
56998
57010
|
}
|
|
57011
|
+
DThemeWhiteJaJpDialogSelect.prototype.getDismissLabel = function () {
|
|
57012
|
+
return "なし";
|
|
57013
|
+
};
|
|
56999
57014
|
DThemeWhiteJaJpDialogSelect.prototype.getCategoryDismissLabel = function () {
|
|
57000
57015
|
return "全て";
|
|
57001
57016
|
};
|
|
@@ -64441,6 +64456,9 @@ var DThemeDarkDialogSelect = /** @class */ (function (_super) {
|
|
|
64441
64456
|
DThemeDarkDialogSelect.prototype.getInputMargin = function () {
|
|
64442
64457
|
return 19;
|
|
64443
64458
|
};
|
|
64459
|
+
DThemeDarkDialogSelect.prototype.isDismissable = function () {
|
|
64460
|
+
return false;
|
|
64461
|
+
};
|
|
64444
64462
|
DThemeDarkDialogSelect.prototype.isCategoryDismissable = function () {
|
|
64445
64463
|
return true;
|
|
64446
64464
|
};
|
|
@@ -64456,6 +64474,9 @@ var DThemeDarkEnUsDialogSelect = /** @class */ (function (_super) {
|
|
|
64456
64474
|
function DThemeDarkEnUsDialogSelect() {
|
|
64457
64475
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64458
64476
|
}
|
|
64477
|
+
DThemeDarkEnUsDialogSelect.prototype.getDismissLabel = function () {
|
|
64478
|
+
return "None";
|
|
64479
|
+
};
|
|
64459
64480
|
DThemeDarkEnUsDialogSelect.prototype.getCategoryDismissLabel = function () {
|
|
64460
64481
|
return "All";
|
|
64461
64482
|
};
|
|
@@ -67300,6 +67321,9 @@ var DThemeDarkJaJpDialogSelect = /** @class */ (function (_super) {
|
|
|
67300
67321
|
function DThemeDarkJaJpDialogSelect() {
|
|
67301
67322
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
67302
67323
|
}
|
|
67324
|
+
DThemeDarkJaJpDialogSelect.prototype.getDismissLabel = function () {
|
|
67325
|
+
return "なし";
|
|
67326
|
+
};
|
|
67303
67327
|
DThemeDarkJaJpDialogSelect.prototype.getCategoryDismissLabel = function () {
|
|
67304
67328
|
return "全て";
|
|
67305
67329
|
};
|
|
@@ -70980,7 +71004,7 @@ var DMenu = /** @class */ (function (_super) {
|
|
|
70980
71004
|
DMenu.prototype.open = function (owner, closeable, context) {
|
|
70981
71005
|
var _a;
|
|
70982
71006
|
if (this.isHidden()) {
|
|
70983
|
-
var layer = this._overlay.pick(this);
|
|
71007
|
+
var layer = this._overlay.pick(this, owner);
|
|
70984
71008
|
this._owner = owner;
|
|
70985
71009
|
// States
|
|
70986
71010
|
var children = this.children;
|
|
@@ -76008,64 +76032,6 @@ var DNoteSmallSearching = /** @class */ (function (_super) {
|
|
|
76008
76032
|
return DNoteSmallSearching;
|
|
76009
76033
|
}(DNoteSmall));
|
|
76010
76034
|
|
|
76011
|
-
/*
|
|
76012
|
-
* Copyright (C) 2019 Toshiba Corporation
|
|
76013
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
76014
|
-
*/
|
|
76015
|
-
var DDialogSelectSearhDismissableImpl = /** @class */ (function (_super) {
|
|
76016
|
-
__extends(DDialogSelectSearhDismissableImpl, _super);
|
|
76017
|
-
function DDialogSelectSearhDismissableImpl(target, options) {
|
|
76018
|
-
var _this = _super.call(this) || this;
|
|
76019
|
-
_this._target = target;
|
|
76020
|
-
_this._value = options.value;
|
|
76021
|
-
_this._filter = options.filter;
|
|
76022
|
-
target.on("change", function () {
|
|
76023
|
-
_this.emit("change", _this);
|
|
76024
|
-
});
|
|
76025
|
-
target.on("success", function (e, values) {
|
|
76026
|
-
_this.emit("success", _this, _this.toDismissable(values));
|
|
76027
|
-
});
|
|
76028
|
-
target.on("fail", function () {
|
|
76029
|
-
_this.emit("fail", _this);
|
|
76030
|
-
});
|
|
76031
|
-
return _this;
|
|
76032
|
-
}
|
|
76033
|
-
DDialogSelectSearhDismissableImpl.prototype.toDismissValue = function (args) {
|
|
76034
|
-
if (args == null) {
|
|
76035
|
-
return;
|
|
76036
|
-
}
|
|
76037
|
-
var value = this._value;
|
|
76038
|
-
if (value === undefined) {
|
|
76039
|
-
return;
|
|
76040
|
-
}
|
|
76041
|
-
var filter = this._filter;
|
|
76042
|
-
if (filter != null && !filter(value, args[0])) {
|
|
76043
|
-
return;
|
|
76044
|
-
}
|
|
76045
|
-
return value;
|
|
76046
|
-
};
|
|
76047
|
-
DDialogSelectSearhDismissableImpl.prototype.toDismissable = function (values) {
|
|
76048
|
-
var value = this.toDismissValue(this._args);
|
|
76049
|
-
if (value === undefined) {
|
|
76050
|
-
return values;
|
|
76051
|
-
}
|
|
76052
|
-
var result = [];
|
|
76053
|
-
for (var i = 0, imax = values.length; i < imax; ++i) {
|
|
76054
|
-
result.push(values[i]);
|
|
76055
|
-
}
|
|
76056
|
-
result.push(value);
|
|
76057
|
-
return result;
|
|
76058
|
-
};
|
|
76059
|
-
DDialogSelectSearhDismissableImpl.prototype.create = function (args) {
|
|
76060
|
-
this._args = args;
|
|
76061
|
-
this._target.create(args);
|
|
76062
|
-
};
|
|
76063
|
-
DDialogSelectSearhDismissableImpl.prototype.isDone = function () {
|
|
76064
|
-
return this._target.isDone();
|
|
76065
|
-
};
|
|
76066
|
-
return DDialogSelectSearhDismissableImpl;
|
|
76067
|
-
}(pixi_js.utils.EventEmitter));
|
|
76068
|
-
|
|
76069
76035
|
/*
|
|
76070
76036
|
* Copyright (C) 2019 Toshiba Corporation
|
|
76071
76037
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -76111,17 +76077,13 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76111
76077
|
}
|
|
76112
76078
|
DDialogSelect.prototype.newContentChildren = function (theme, options) {
|
|
76113
76079
|
var result = _super.prototype.newContentChildren.call(this, theme, options);
|
|
76114
|
-
result.push(this.inputLayout, this.list);
|
|
76080
|
+
result.push(this.inputLayout, this.list, this.buttonDismiss);
|
|
76115
76081
|
return result;
|
|
76116
76082
|
};
|
|
76117
76083
|
Object.defineProperty(DDialogSelect.prototype, "inputLayout", {
|
|
76118
76084
|
get: function () {
|
|
76119
|
-
var
|
|
76120
|
-
|
|
76121
|
-
result = this.newInputLayout();
|
|
76122
|
-
this._inputLayout = result;
|
|
76123
|
-
}
|
|
76124
|
-
return result;
|
|
76085
|
+
var _a;
|
|
76086
|
+
return ((_a = this._inputLayout) !== null && _a !== void 0 ? _a : (this._inputLayout = this.newInputLayout()));
|
|
76125
76087
|
},
|
|
76126
76088
|
enumerable: false,
|
|
76127
76089
|
configurable: true
|
|
@@ -76130,33 +76092,9 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76130
76092
|
return new DLayoutHorizontal({
|
|
76131
76093
|
width: "padding",
|
|
76132
76094
|
height: "auto",
|
|
76133
|
-
children: [this.
|
|
76095
|
+
children: [this.selectCategory, this.input]
|
|
76134
76096
|
});
|
|
76135
76097
|
};
|
|
76136
|
-
Object.defineProperty(DDialogSelect.prototype, "spaceLeft", {
|
|
76137
|
-
get: function () {
|
|
76138
|
-
var result = this._spaceLeft;
|
|
76139
|
-
if (result == null) {
|
|
76140
|
-
result = this.newSpace();
|
|
76141
|
-
this._spaceLeft = result;
|
|
76142
|
-
}
|
|
76143
|
-
return result;
|
|
76144
|
-
},
|
|
76145
|
-
enumerable: false,
|
|
76146
|
-
configurable: true
|
|
76147
|
-
});
|
|
76148
|
-
Object.defineProperty(DDialogSelect.prototype, "spaceRight", {
|
|
76149
|
-
get: function () {
|
|
76150
|
-
var result = this._spaceRight;
|
|
76151
|
-
if (result == null) {
|
|
76152
|
-
result = this.newSpace();
|
|
76153
|
-
this._spaceRight = result;
|
|
76154
|
-
}
|
|
76155
|
-
return result;
|
|
76156
|
-
},
|
|
76157
|
-
enumerable: false,
|
|
76158
|
-
configurable: true
|
|
76159
|
-
});
|
|
76160
76098
|
DDialogSelect.prototype.newSpace = function () {
|
|
76161
76099
|
return new DLayoutSpace({
|
|
76162
76100
|
width: this.toInputMargin(this.theme, this._options)
|
|
@@ -76164,12 +76102,8 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76164
76102
|
};
|
|
76165
76103
|
Object.defineProperty(DDialogSelect.prototype, "selectCategory", {
|
|
76166
76104
|
get: function () {
|
|
76167
|
-
var
|
|
76168
|
-
|
|
76169
|
-
result = this.newSelectCategory();
|
|
76170
|
-
this._selectCategory = result;
|
|
76171
|
-
}
|
|
76172
|
-
return result;
|
|
76105
|
+
var _a;
|
|
76106
|
+
return ((_a = this._selectCategory) !== null && _a !== void 0 ? _a : (this._selectCategory = this.newSelectCategory()));
|
|
76173
76107
|
},
|
|
76174
76108
|
enumerable: false,
|
|
76175
76109
|
configurable: true
|
|
@@ -76197,12 +76131,8 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76197
76131
|
};
|
|
76198
76132
|
Object.defineProperty(DDialogSelect.prototype, "input", {
|
|
76199
76133
|
get: function () {
|
|
76200
|
-
var
|
|
76201
|
-
|
|
76202
|
-
result = this.newInput();
|
|
76203
|
-
this._input = result;
|
|
76204
|
-
}
|
|
76205
|
-
return result;
|
|
76134
|
+
var _a;
|
|
76135
|
+
return ((_a = this._input) !== null && _a !== void 0 ? _a : (this._input = this.newInput()));
|
|
76206
76136
|
},
|
|
76207
76137
|
enumerable: false,
|
|
76208
76138
|
configurable: true
|
|
@@ -76236,12 +76166,8 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76236
76166
|
};
|
|
76237
76167
|
Object.defineProperty(DDialogSelect.prototype, "list", {
|
|
76238
76168
|
get: function () {
|
|
76239
|
-
var
|
|
76240
|
-
|
|
76241
|
-
result = this.newList();
|
|
76242
|
-
this._list = result;
|
|
76243
|
-
}
|
|
76244
|
-
return result;
|
|
76169
|
+
var _a;
|
|
76170
|
+
return ((_a = this._list) !== null && _a !== void 0 ? _a : (this._list = this.newList()));
|
|
76245
76171
|
},
|
|
76246
76172
|
enumerable: false,
|
|
76247
76173
|
configurable: true
|
|
@@ -76259,15 +76185,6 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76259
76185
|
if (selected == null) {
|
|
76260
76186
|
return;
|
|
76261
76187
|
}
|
|
76262
|
-
var options = this._options;
|
|
76263
|
-
if (options) {
|
|
76264
|
-
var dismiss = options.dismiss;
|
|
76265
|
-
if (dismiss) {
|
|
76266
|
-
if (selected === dismiss.value) {
|
|
76267
|
-
selected = null;
|
|
76268
|
-
}
|
|
76269
|
-
}
|
|
76270
|
-
}
|
|
76271
76188
|
this._value = selected;
|
|
76272
76189
|
this.onOk(selected);
|
|
76273
76190
|
};
|
|
@@ -76280,12 +76197,8 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76280
76197
|
};
|
|
76281
76198
|
Object.defineProperty(DDialogSelect.prototype, "noteError", {
|
|
76282
76199
|
get: function () {
|
|
76283
|
-
var
|
|
76284
|
-
|
|
76285
|
-
result = this.newNoteError();
|
|
76286
|
-
this._noteError = result;
|
|
76287
|
-
}
|
|
76288
|
-
return result;
|
|
76200
|
+
var _a;
|
|
76201
|
+
return ((_a = this._noteError) !== null && _a !== void 0 ? _a : (this._noteError = this.newNoteError()));
|
|
76289
76202
|
},
|
|
76290
76203
|
enumerable: false,
|
|
76291
76204
|
configurable: true
|
|
@@ -76300,12 +76213,8 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76300
76213
|
};
|
|
76301
76214
|
Object.defineProperty(DDialogSelect.prototype, "noteNoItemsFound", {
|
|
76302
76215
|
get: function () {
|
|
76303
|
-
var
|
|
76304
|
-
|
|
76305
|
-
result = this.newNoteNoItemsFound();
|
|
76306
|
-
this._noteNoItemsFound = result;
|
|
76307
|
-
}
|
|
76308
|
-
return result;
|
|
76216
|
+
var _a;
|
|
76217
|
+
return ((_a = this._noteNoItemsFound) !== null && _a !== void 0 ? _a : (this._noteNoItemsFound = this.newNoteNoItemsFound()));
|
|
76309
76218
|
},
|
|
76310
76219
|
enumerable: false,
|
|
76311
76220
|
configurable: true
|
|
@@ -76320,12 +76229,8 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76320
76229
|
};
|
|
76321
76230
|
Object.defineProperty(DDialogSelect.prototype, "noteSearching", {
|
|
76322
76231
|
get: function () {
|
|
76323
|
-
var
|
|
76324
|
-
|
|
76325
|
-
result = this.newNoteSearching();
|
|
76326
|
-
this._noteSearching = result;
|
|
76327
|
-
}
|
|
76328
|
-
return result;
|
|
76232
|
+
var _a;
|
|
76233
|
+
return ((_a = this._noteSearching) !== null && _a !== void 0 ? _a : (this._noteSearching = this.newNoteSearching()));
|
|
76329
76234
|
},
|
|
76330
76235
|
enumerable: false,
|
|
76331
76236
|
configurable: true
|
|
@@ -76358,12 +76263,8 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76358
76263
|
};
|
|
76359
76264
|
Object.defineProperty(DDialogSelect.prototype, "search", {
|
|
76360
76265
|
get: function () {
|
|
76361
|
-
var
|
|
76362
|
-
|
|
76363
|
-
result = this.newSearch();
|
|
76364
|
-
this._search = result;
|
|
76365
|
-
}
|
|
76366
|
-
return result;
|
|
76266
|
+
var _a;
|
|
76267
|
+
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = this.newSearch()));
|
|
76367
76268
|
},
|
|
76368
76269
|
enumerable: false,
|
|
76369
76270
|
configurable: true
|
|
@@ -76373,28 +76274,73 @@ var DDialogSelect = /** @class */ (function (_super) {
|
|
|
76373
76274
|
if (options) {
|
|
76374
76275
|
var controller = options.controller;
|
|
76375
76276
|
if (controller) {
|
|
76376
|
-
var dismiss = options.dismiss;
|
|
76377
76277
|
var search = controller.search;
|
|
76378
76278
|
if ("create" in search) {
|
|
76379
|
-
|
|
76380
|
-
return new DDialogSelectSearhDismissableImpl(search, dismiss);
|
|
76381
|
-
}
|
|
76382
|
-
else {
|
|
76383
|
-
return search;
|
|
76384
|
-
}
|
|
76279
|
+
return search;
|
|
76385
76280
|
}
|
|
76386
76281
|
else {
|
|
76387
|
-
|
|
76388
|
-
return new DDialogSelectSearhDismissableImpl(new DDialogSelectSearhImpl(search), dismiss);
|
|
76389
|
-
}
|
|
76390
|
-
else {
|
|
76391
|
-
return new DDialogSelectSearhImpl(search);
|
|
76392
|
-
}
|
|
76282
|
+
return new DDialogSelectSearhImpl(search);
|
|
76393
76283
|
}
|
|
76394
76284
|
}
|
|
76395
76285
|
}
|
|
76396
76286
|
return new DDialogSelectSearhImpl();
|
|
76397
76287
|
};
|
|
76288
|
+
Object.defineProperty(DDialogSelect.prototype, "buttonDismiss", {
|
|
76289
|
+
get: function () {
|
|
76290
|
+
var result = this._buttonDismiss;
|
|
76291
|
+
if (result === undefined) {
|
|
76292
|
+
result = this.newButtonDismiss();
|
|
76293
|
+
this._buttonDismiss = result;
|
|
76294
|
+
}
|
|
76295
|
+
return result;
|
|
76296
|
+
},
|
|
76297
|
+
enumerable: false,
|
|
76298
|
+
configurable: true
|
|
76299
|
+
});
|
|
76300
|
+
DDialogSelect.prototype.newButtonDismiss = function () {
|
|
76301
|
+
var _this = this;
|
|
76302
|
+
var options = this.toButtonDismissOptions(this._options);
|
|
76303
|
+
if (options.enabled === true) {
|
|
76304
|
+
var result = new DButton(options);
|
|
76305
|
+
result.on("active", function () {
|
|
76306
|
+
_this._value = null;
|
|
76307
|
+
_this.onOk(null);
|
|
76308
|
+
});
|
|
76309
|
+
return result;
|
|
76310
|
+
}
|
|
76311
|
+
return null;
|
|
76312
|
+
};
|
|
76313
|
+
DDialogSelect.prototype.toButtonDismissOptions = function (options) {
|
|
76314
|
+
var theme = this.theme;
|
|
76315
|
+
if (options != null) {
|
|
76316
|
+
var dismiss = options.dismiss;
|
|
76317
|
+
if (dismiss != null) {
|
|
76318
|
+
if (dismiss.enabled === undefined) {
|
|
76319
|
+
dismiss.enabled = theme.isDismissable();
|
|
76320
|
+
}
|
|
76321
|
+
if (dismiss.weight === undefined && dismiss.width === undefined) {
|
|
76322
|
+
dismiss.width = "padding";
|
|
76323
|
+
}
|
|
76324
|
+
var text = dismiss.text;
|
|
76325
|
+
if (text === undefined) {
|
|
76326
|
+
dismiss.text = {
|
|
76327
|
+
value: theme.getDismissLabel()
|
|
76328
|
+
};
|
|
76329
|
+
}
|
|
76330
|
+
else if (text.value === undefined) {
|
|
76331
|
+
text.value = theme.getDismissLabel();
|
|
76332
|
+
}
|
|
76333
|
+
return dismiss;
|
|
76334
|
+
}
|
|
76335
|
+
}
|
|
76336
|
+
return {
|
|
76337
|
+
width: "padding",
|
|
76338
|
+
enabled: theme.isDismissable(),
|
|
76339
|
+
text: {
|
|
76340
|
+
value: theme.getDismissLabel()
|
|
76341
|
+
}
|
|
76342
|
+
};
|
|
76343
|
+
};
|
|
76398
76344
|
Object.defineProperty(DDialogSelect.prototype, "value", {
|
|
76399
76345
|
get: function () {
|
|
76400
76346
|
return this._value;
|
|
@@ -96612,7 +96558,6 @@ exports.DDialogSelect = DDialogSelect;
|
|
|
96612
96558
|
exports.DDialogSelectList = DDialogSelectList;
|
|
96613
96559
|
exports.DDialogSelectListItem = DDialogSelectListItem;
|
|
96614
96560
|
exports.DDialogSelectListItemUpdater = DDialogSelectListItemUpdater;
|
|
96615
|
-
exports.DDialogSelectSearhDismissableImpl = DDialogSelectSearhDismissableImpl;
|
|
96616
96561
|
exports.DDialogSelectSearhImpl = DDialogSelectSearhImpl;
|
|
96617
96562
|
exports.DDialogState = DDialogState;
|
|
96618
96563
|
exports.DDialogTime = DDialogTime;
|