@wcardinal/wcardinal-ui 0.387.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-dialog-select.d.ts +14 -6
- 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/wcardinal/ui/d-dialog-select.js +77 -97
- package/dist/wcardinal/ui/d-dialog-select.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-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 +95 -156
- package/dist/wcardinal-ui.js +77 -156
- 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.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
|
|
|
@@ -55293,64 +55293,6 @@
|
|
|
55293
55293
|
return DNoteSmallSearching;
|
|
55294
55294
|
}(DNoteSmall));
|
|
55295
55295
|
|
|
55296
|
-
/*
|
|
55297
|
-
* Copyright (C) 2019 Toshiba Corporation
|
|
55298
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
55299
|
-
*/
|
|
55300
|
-
var DDialogSelectSearhDismissableImpl = /** @class */ (function (_super) {
|
|
55301
|
-
__extends(DDialogSelectSearhDismissableImpl, _super);
|
|
55302
|
-
function DDialogSelectSearhDismissableImpl(target, options) {
|
|
55303
|
-
var _this = _super.call(this) || this;
|
|
55304
|
-
_this._target = target;
|
|
55305
|
-
_this._value = options.value;
|
|
55306
|
-
_this._filter = options.filter;
|
|
55307
|
-
target.on("change", function () {
|
|
55308
|
-
_this.emit("change", _this);
|
|
55309
|
-
});
|
|
55310
|
-
target.on("success", function (e, values) {
|
|
55311
|
-
_this.emit("success", _this, _this.toDismissable(values));
|
|
55312
|
-
});
|
|
55313
|
-
target.on("fail", function () {
|
|
55314
|
-
_this.emit("fail", _this);
|
|
55315
|
-
});
|
|
55316
|
-
return _this;
|
|
55317
|
-
}
|
|
55318
|
-
DDialogSelectSearhDismissableImpl.prototype.toDismissValue = function (args) {
|
|
55319
|
-
if (args == null) {
|
|
55320
|
-
return;
|
|
55321
|
-
}
|
|
55322
|
-
var value = this._value;
|
|
55323
|
-
if (value === undefined) {
|
|
55324
|
-
return;
|
|
55325
|
-
}
|
|
55326
|
-
var filter = this._filter;
|
|
55327
|
-
if (filter != null && !filter(value, args[0])) {
|
|
55328
|
-
return;
|
|
55329
|
-
}
|
|
55330
|
-
return value;
|
|
55331
|
-
};
|
|
55332
|
-
DDialogSelectSearhDismissableImpl.prototype.toDismissable = function (values) {
|
|
55333
|
-
var value = this.toDismissValue(this._args);
|
|
55334
|
-
if (value === undefined) {
|
|
55335
|
-
return values;
|
|
55336
|
-
}
|
|
55337
|
-
var result = [];
|
|
55338
|
-
for (var i = 0, imax = values.length; i < imax; ++i) {
|
|
55339
|
-
result.push(values[i]);
|
|
55340
|
-
}
|
|
55341
|
-
result.push(value);
|
|
55342
|
-
return result;
|
|
55343
|
-
};
|
|
55344
|
-
DDialogSelectSearhDismissableImpl.prototype.create = function (args) {
|
|
55345
|
-
this._args = args;
|
|
55346
|
-
this._target.create(args);
|
|
55347
|
-
};
|
|
55348
|
-
DDialogSelectSearhDismissableImpl.prototype.isDone = function () {
|
|
55349
|
-
return this._target.isDone();
|
|
55350
|
-
};
|
|
55351
|
-
return DDialogSelectSearhDismissableImpl;
|
|
55352
|
-
}(pixi_js.utils.EventEmitter));
|
|
55353
|
-
|
|
55354
55296
|
/*
|
|
55355
55297
|
* Copyright (C) 2019 Toshiba Corporation
|
|
55356
55298
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -55396,17 +55338,13 @@
|
|
|
55396
55338
|
}
|
|
55397
55339
|
DDialogSelect.prototype.newContentChildren = function (theme, options) {
|
|
55398
55340
|
var result = _super.prototype.newContentChildren.call(this, theme, options);
|
|
55399
|
-
result.push(this.inputLayout, this.list);
|
|
55341
|
+
result.push(this.inputLayout, this.list, this.buttonDismiss);
|
|
55400
55342
|
return result;
|
|
55401
55343
|
};
|
|
55402
55344
|
Object.defineProperty(DDialogSelect.prototype, "inputLayout", {
|
|
55403
55345
|
get: function () {
|
|
55404
|
-
var
|
|
55405
|
-
|
|
55406
|
-
result = this.newInputLayout();
|
|
55407
|
-
this._inputLayout = result;
|
|
55408
|
-
}
|
|
55409
|
-
return result;
|
|
55346
|
+
var _a;
|
|
55347
|
+
return ((_a = this._inputLayout) !== null && _a !== void 0 ? _a : (this._inputLayout = this.newInputLayout()));
|
|
55410
55348
|
},
|
|
55411
55349
|
enumerable: false,
|
|
55412
55350
|
configurable: true
|
|
@@ -55415,33 +55353,9 @@
|
|
|
55415
55353
|
return new DLayoutHorizontal({
|
|
55416
55354
|
width: "padding",
|
|
55417
55355
|
height: "auto",
|
|
55418
|
-
children: [this.
|
|
55356
|
+
children: [this.selectCategory, this.input]
|
|
55419
55357
|
});
|
|
55420
55358
|
};
|
|
55421
|
-
Object.defineProperty(DDialogSelect.prototype, "spaceLeft", {
|
|
55422
|
-
get: function () {
|
|
55423
|
-
var result = this._spaceLeft;
|
|
55424
|
-
if (result == null) {
|
|
55425
|
-
result = this.newSpace();
|
|
55426
|
-
this._spaceLeft = result;
|
|
55427
|
-
}
|
|
55428
|
-
return result;
|
|
55429
|
-
},
|
|
55430
|
-
enumerable: false,
|
|
55431
|
-
configurable: true
|
|
55432
|
-
});
|
|
55433
|
-
Object.defineProperty(DDialogSelect.prototype, "spaceRight", {
|
|
55434
|
-
get: function () {
|
|
55435
|
-
var result = this._spaceRight;
|
|
55436
|
-
if (result == null) {
|
|
55437
|
-
result = this.newSpace();
|
|
55438
|
-
this._spaceRight = result;
|
|
55439
|
-
}
|
|
55440
|
-
return result;
|
|
55441
|
-
},
|
|
55442
|
-
enumerable: false,
|
|
55443
|
-
configurable: true
|
|
55444
|
-
});
|
|
55445
55359
|
DDialogSelect.prototype.newSpace = function () {
|
|
55446
55360
|
return new DLayoutSpace({
|
|
55447
55361
|
width: this.toInputMargin(this.theme, this._options)
|
|
@@ -55449,12 +55363,8 @@
|
|
|
55449
55363
|
};
|
|
55450
55364
|
Object.defineProperty(DDialogSelect.prototype, "selectCategory", {
|
|
55451
55365
|
get: function () {
|
|
55452
|
-
var
|
|
55453
|
-
|
|
55454
|
-
result = this.newSelectCategory();
|
|
55455
|
-
this._selectCategory = result;
|
|
55456
|
-
}
|
|
55457
|
-
return result;
|
|
55366
|
+
var _a;
|
|
55367
|
+
return ((_a = this._selectCategory) !== null && _a !== void 0 ? _a : (this._selectCategory = this.newSelectCategory()));
|
|
55458
55368
|
},
|
|
55459
55369
|
enumerable: false,
|
|
55460
55370
|
configurable: true
|
|
@@ -55482,12 +55392,8 @@
|
|
|
55482
55392
|
};
|
|
55483
55393
|
Object.defineProperty(DDialogSelect.prototype, "input", {
|
|
55484
55394
|
get: function () {
|
|
55485
|
-
var
|
|
55486
|
-
|
|
55487
|
-
result = this.newInput();
|
|
55488
|
-
this._input = result;
|
|
55489
|
-
}
|
|
55490
|
-
return result;
|
|
55395
|
+
var _a;
|
|
55396
|
+
return ((_a = this._input) !== null && _a !== void 0 ? _a : (this._input = this.newInput()));
|
|
55491
55397
|
},
|
|
55492
55398
|
enumerable: false,
|
|
55493
55399
|
configurable: true
|
|
@@ -55521,12 +55427,8 @@
|
|
|
55521
55427
|
};
|
|
55522
55428
|
Object.defineProperty(DDialogSelect.prototype, "list", {
|
|
55523
55429
|
get: function () {
|
|
55524
|
-
var
|
|
55525
|
-
|
|
55526
|
-
result = this.newList();
|
|
55527
|
-
this._list = result;
|
|
55528
|
-
}
|
|
55529
|
-
return result;
|
|
55430
|
+
var _a;
|
|
55431
|
+
return ((_a = this._list) !== null && _a !== void 0 ? _a : (this._list = this.newList()));
|
|
55530
55432
|
},
|
|
55531
55433
|
enumerable: false,
|
|
55532
55434
|
configurable: true
|
|
@@ -55544,15 +55446,6 @@
|
|
|
55544
55446
|
if (selected == null) {
|
|
55545
55447
|
return;
|
|
55546
55448
|
}
|
|
55547
|
-
var options = this._options;
|
|
55548
|
-
if (options) {
|
|
55549
|
-
var dismiss = options.dismiss;
|
|
55550
|
-
if (dismiss) {
|
|
55551
|
-
if (selected === dismiss.value) {
|
|
55552
|
-
selected = null;
|
|
55553
|
-
}
|
|
55554
|
-
}
|
|
55555
|
-
}
|
|
55556
55449
|
this._value = selected;
|
|
55557
55450
|
this.onOk(selected);
|
|
55558
55451
|
};
|
|
@@ -55565,12 +55458,8 @@
|
|
|
55565
55458
|
};
|
|
55566
55459
|
Object.defineProperty(DDialogSelect.prototype, "noteError", {
|
|
55567
55460
|
get: function () {
|
|
55568
|
-
var
|
|
55569
|
-
|
|
55570
|
-
result = this.newNoteError();
|
|
55571
|
-
this._noteError = result;
|
|
55572
|
-
}
|
|
55573
|
-
return result;
|
|
55461
|
+
var _a;
|
|
55462
|
+
return ((_a = this._noteError) !== null && _a !== void 0 ? _a : (this._noteError = this.newNoteError()));
|
|
55574
55463
|
},
|
|
55575
55464
|
enumerable: false,
|
|
55576
55465
|
configurable: true
|
|
@@ -55585,12 +55474,8 @@
|
|
|
55585
55474
|
};
|
|
55586
55475
|
Object.defineProperty(DDialogSelect.prototype, "noteNoItemsFound", {
|
|
55587
55476
|
get: function () {
|
|
55588
|
-
var
|
|
55589
|
-
|
|
55590
|
-
result = this.newNoteNoItemsFound();
|
|
55591
|
-
this._noteNoItemsFound = result;
|
|
55592
|
-
}
|
|
55593
|
-
return result;
|
|
55477
|
+
var _a;
|
|
55478
|
+
return ((_a = this._noteNoItemsFound) !== null && _a !== void 0 ? _a : (this._noteNoItemsFound = this.newNoteNoItemsFound()));
|
|
55594
55479
|
},
|
|
55595
55480
|
enumerable: false,
|
|
55596
55481
|
configurable: true
|
|
@@ -55605,12 +55490,8 @@
|
|
|
55605
55490
|
};
|
|
55606
55491
|
Object.defineProperty(DDialogSelect.prototype, "noteSearching", {
|
|
55607
55492
|
get: function () {
|
|
55608
|
-
var
|
|
55609
|
-
|
|
55610
|
-
result = this.newNoteSearching();
|
|
55611
|
-
this._noteSearching = result;
|
|
55612
|
-
}
|
|
55613
|
-
return result;
|
|
55493
|
+
var _a;
|
|
55494
|
+
return ((_a = this._noteSearching) !== null && _a !== void 0 ? _a : (this._noteSearching = this.newNoteSearching()));
|
|
55614
55495
|
},
|
|
55615
55496
|
enumerable: false,
|
|
55616
55497
|
configurable: true
|
|
@@ -55643,12 +55524,8 @@
|
|
|
55643
55524
|
};
|
|
55644
55525
|
Object.defineProperty(DDialogSelect.prototype, "search", {
|
|
55645
55526
|
get: function () {
|
|
55646
|
-
var
|
|
55647
|
-
|
|
55648
|
-
result = this.newSearch();
|
|
55649
|
-
this._search = result;
|
|
55650
|
-
}
|
|
55651
|
-
return result;
|
|
55527
|
+
var _a;
|
|
55528
|
+
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = this.newSearch()));
|
|
55652
55529
|
},
|
|
55653
55530
|
enumerable: false,
|
|
55654
55531
|
configurable: true
|
|
@@ -55658,28 +55535,73 @@
|
|
|
55658
55535
|
if (options) {
|
|
55659
55536
|
var controller = options.controller;
|
|
55660
55537
|
if (controller) {
|
|
55661
|
-
var dismiss = options.dismiss;
|
|
55662
55538
|
var search = controller.search;
|
|
55663
55539
|
if ("create" in search) {
|
|
55664
|
-
|
|
55665
|
-
return new DDialogSelectSearhDismissableImpl(search, dismiss);
|
|
55666
|
-
}
|
|
55667
|
-
else {
|
|
55668
|
-
return search;
|
|
55669
|
-
}
|
|
55540
|
+
return search;
|
|
55670
55541
|
}
|
|
55671
55542
|
else {
|
|
55672
|
-
|
|
55673
|
-
return new DDialogSelectSearhDismissableImpl(new DDialogSelectSearhImpl(search), dismiss);
|
|
55674
|
-
}
|
|
55675
|
-
else {
|
|
55676
|
-
return new DDialogSelectSearhImpl(search);
|
|
55677
|
-
}
|
|
55543
|
+
return new DDialogSelectSearhImpl(search);
|
|
55678
55544
|
}
|
|
55679
55545
|
}
|
|
55680
55546
|
}
|
|
55681
55547
|
return new DDialogSelectSearhImpl();
|
|
55682
55548
|
};
|
|
55549
|
+
Object.defineProperty(DDialogSelect.prototype, "buttonDismiss", {
|
|
55550
|
+
get: function () {
|
|
55551
|
+
var result = this._buttonDismiss;
|
|
55552
|
+
if (result === undefined) {
|
|
55553
|
+
result = this.newButtonDismiss();
|
|
55554
|
+
this._buttonDismiss = result;
|
|
55555
|
+
}
|
|
55556
|
+
return result;
|
|
55557
|
+
},
|
|
55558
|
+
enumerable: false,
|
|
55559
|
+
configurable: true
|
|
55560
|
+
});
|
|
55561
|
+
DDialogSelect.prototype.newButtonDismiss = function () {
|
|
55562
|
+
var _this = this;
|
|
55563
|
+
var options = this.toButtonDismissOptions(this._options);
|
|
55564
|
+
if (options.enabled === true) {
|
|
55565
|
+
var result = new DButton(options);
|
|
55566
|
+
result.on("active", function () {
|
|
55567
|
+
_this._value = null;
|
|
55568
|
+
_this.onOk(null);
|
|
55569
|
+
});
|
|
55570
|
+
return result;
|
|
55571
|
+
}
|
|
55572
|
+
return null;
|
|
55573
|
+
};
|
|
55574
|
+
DDialogSelect.prototype.toButtonDismissOptions = function (options) {
|
|
55575
|
+
var theme = this.theme;
|
|
55576
|
+
if (options != null) {
|
|
55577
|
+
var dismiss = options.dismiss;
|
|
55578
|
+
if (dismiss != null) {
|
|
55579
|
+
if (dismiss.enabled === undefined) {
|
|
55580
|
+
dismiss.enabled = theme.isDismissable();
|
|
55581
|
+
}
|
|
55582
|
+
if (dismiss.weight === undefined && dismiss.width === undefined) {
|
|
55583
|
+
dismiss.width = "padding";
|
|
55584
|
+
}
|
|
55585
|
+
var text = dismiss.text;
|
|
55586
|
+
if (text === undefined) {
|
|
55587
|
+
dismiss.text = {
|
|
55588
|
+
value: theme.getDismissLabel()
|
|
55589
|
+
};
|
|
55590
|
+
}
|
|
55591
|
+
else if (text.value === undefined) {
|
|
55592
|
+
text.value = theme.getDismissLabel();
|
|
55593
|
+
}
|
|
55594
|
+
return dismiss;
|
|
55595
|
+
}
|
|
55596
|
+
}
|
|
55597
|
+
return {
|
|
55598
|
+
width: "padding",
|
|
55599
|
+
enabled: theme.isDismissable(),
|
|
55600
|
+
text: {
|
|
55601
|
+
value: theme.getDismissLabel()
|
|
55602
|
+
}
|
|
55603
|
+
};
|
|
55604
|
+
};
|
|
55683
55605
|
Object.defineProperty(DDialogSelect.prototype, "value", {
|
|
55684
55606
|
get: function () {
|
|
55685
55607
|
return this._value;
|
|
@@ -76583,7 +76505,6 @@
|
|
|
76583
76505
|
DDialogSelectListItemUpdater: DDialogSelectListItemUpdater,
|
|
76584
76506
|
DDialogSelectListItem: DDialogSelectListItem,
|
|
76585
76507
|
DDialogSelectList: DDialogSelectList,
|
|
76586
|
-
DDialogSelectSearhDismissableImpl: DDialogSelectSearhDismissableImpl,
|
|
76587
76508
|
DDialogSelectSearhImpl: DDialogSelectSearhImpl,
|
|
76588
76509
|
DDialogSelect: DDialogSelect,
|
|
76589
76510
|
DDialogState: DDialogState,
|