@wcardinal/wcardinal-ui 0.200.3 → 0.201.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.
Files changed (26) hide show
  1. package/dist/types/wcardinal/ui/{d-controller-default-command.d.ts → d-controller-command-impl.d.ts} +1 -1
  2. package/dist/types/wcardinal/ui/{d-controller-default-focus.d.ts → d-controller-focus-impl.d.ts} +1 -1
  3. package/dist/types/wcardinal/ui/index.d.ts +2 -2
  4. package/dist/wcardinal/ui/d-application.js +2 -2
  5. package/dist/wcardinal/ui/d-application.js.map +1 -1
  6. package/dist/wcardinal/ui/d-base.js +2 -2
  7. package/dist/wcardinal/ui/d-base.js.map +1 -1
  8. package/dist/wcardinal/ui/{d-controller-default-command.js → d-controller-command-impl.js} +24 -24
  9. package/dist/wcardinal/ui/d-controller-command-impl.js.map +1 -0
  10. package/dist/wcardinal/ui/{d-controller-default-focus.js → d-controller-focus-impl.js} +20 -18
  11. package/dist/wcardinal/ui/d-controller-focus-impl.js.map +1 -0
  12. package/dist/wcardinal/ui/d-controllers.js +2 -2
  13. package/dist/wcardinal/ui/d-controllers.js.map +1 -1
  14. package/dist/wcardinal/ui/index.js +2 -2
  15. package/dist/wcardinal/ui/index.js.map +1 -1
  16. package/dist/wcardinal-ui-theme-dark.js +1 -1
  17. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  18. package/dist/wcardinal-ui-theme-white.js +1 -1
  19. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  20. package/dist/wcardinal-ui.cjs.js +47 -45
  21. package/dist/wcardinal-ui.js +47 -45
  22. package/dist/wcardinal-ui.min.js +2 -2
  23. package/dist/wcardinal-ui.min.js.map +1 -1
  24. package/package.json +1 -1
  25. package/dist/wcardinal/ui/d-controller-default-command.js.map +0 -1
  26. package/dist/wcardinal/ui/d-controller-default-focus.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.200.3
2
+ Winter Cardinal UI v0.201.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.200.3
2
+ Winter Cardinal UI v0.201.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.200.3
2
+ Winter Cardinal UI v0.201.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.200.3
2
+ Winter Cardinal UI v0.201.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -13526,9 +13526,9 @@ var DBase = /** @class */ (function (_super) {
13526
13526
  if (target === this) {
13527
13527
  return true;
13528
13528
  }
13529
- else if (target != null && !(target instanceof DBase)) {
13529
+ else if (target != null && !(target instanceof DBase && target.interactive)) {
13530
13530
  var parent_5 = target.parent;
13531
- while (parent_5 != null && !(parent_5 instanceof DBase)) {
13531
+ while (parent_5 != null && !(parent_5 instanceof DBase && parent_5.interactive)) {
13532
13532
  parent_5 = parent_5.parent;
13533
13533
  }
13534
13534
  return parent_5 === this;
@@ -64484,9 +64484,9 @@ var isCommandClear = function (command) {
64484
64484
  var isCommandClean = function (command) {
64485
64485
  return !!(command.getFlag() & DCommandFlag.CLEAN);
64486
64486
  };
64487
- var DControllerDefaultCommand = /** @class */ (function (_super) {
64488
- __extends(DControllerDefaultCommand, _super);
64489
- function DControllerDefaultCommand() {
64487
+ var DControllerCommandImpl = /** @class */ (function (_super) {
64488
+ __extends(DControllerCommandImpl, _super);
64489
+ function DControllerCommandImpl() {
64490
64490
  var _this = _super.call(this) || this;
64491
64491
  _this._position = 0;
64492
64492
  _this._done = [];
@@ -64494,7 +64494,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64494
64494
  _this._executing = null;
64495
64495
  return _this;
64496
64496
  }
64497
- DControllerDefaultCommand.prototype.last = function () {
64497
+ DControllerCommandImpl.prototype.last = function () {
64498
64498
  var done = this._done;
64499
64499
  var waiting = this._waiting;
64500
64500
  if (waiting.length <= 0) {
@@ -64509,11 +64509,11 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64509
64509
  return waiting[waiting.length - 1];
64510
64510
  }
64511
64511
  };
64512
- DControllerDefaultCommand.prototype.push = function (command) {
64512
+ DControllerCommandImpl.prototype.push = function (command) {
64513
64513
  this._waiting.push(command);
64514
64514
  this.next();
64515
64515
  };
64516
- DControllerDefaultCommand.prototype.next = function () {
64516
+ DControllerCommandImpl.prototype.next = function () {
64517
64517
  if (this._executing != null) {
64518
64518
  // Still executing a command.
64519
64519
  // So do nothing.
@@ -64541,7 +64541,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64541
64541
  this.execute(command);
64542
64542
  }
64543
64543
  };
64544
- DControllerDefaultCommand.prototype.executeUndo = function (command) {
64544
+ DControllerCommandImpl.prototype.executeUndo = function (command) {
64545
64545
  var _this = this;
64546
64546
  var done = this._done;
64547
64547
  if (this._position < done.length) {
@@ -64564,7 +64564,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64564
64564
  }
64565
64565
  }
64566
64566
  };
64567
- DControllerDefaultCommand.prototype.executeRedo = function (command) {
64567
+ DControllerCommandImpl.prototype.executeRedo = function (command) {
64568
64568
  var _this = this;
64569
64569
  var done = this._done;
64570
64570
  if (0 < this._position) {
@@ -64587,7 +64587,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64587
64587
  }
64588
64588
  }
64589
64589
  };
64590
- DControllerDefaultCommand.prototype.execute = function (command) {
64590
+ DControllerCommandImpl.prototype.execute = function (command) {
64591
64591
  var _this = this;
64592
64592
  var isClear = isCommandClear(command);
64593
64593
  var isStorable = isCommandStorable(command);
@@ -64615,7 +64615,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64615
64615
  });
64616
64616
  }
64617
64617
  };
64618
- DControllerDefaultCommand.prototype.cleanup = function () {
64618
+ DControllerCommandImpl.prototype.cleanup = function () {
64619
64619
  var done = this._done;
64620
64620
  var size = done.length - 100;
64621
64621
  if (0 < size) {
@@ -64625,7 +64625,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64625
64625
  }
64626
64626
  }
64627
64627
  };
64628
- DControllerDefaultCommand.prototype.remove = function (size) {
64628
+ DControllerCommandImpl.prototype.remove = function (size) {
64629
64629
  var done = this._done;
64630
64630
  if (0 < size) {
64631
64631
  var ifrom = Math.max(0, done.length - size);
@@ -64640,7 +64640,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64640
64640
  }
64641
64641
  return false;
64642
64642
  };
64643
- DControllerDefaultCommand.prototype.onSuccess = function (command) {
64643
+ DControllerCommandImpl.prototype.onSuccess = function (command) {
64644
64644
  this._executing = null;
64645
64645
  if (isCommandStorable(command)) {
64646
64646
  this._done.push(command);
@@ -64651,7 +64651,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64651
64651
  this.emit("change", this);
64652
64652
  this.next();
64653
64653
  };
64654
- DControllerDefaultCommand.prototype.onSuccessUndo = function (undoed) {
64654
+ DControllerCommandImpl.prototype.onSuccessUndo = function (undoed) {
64655
64655
  this._executing = null;
64656
64656
  if (!isCommandClean(undoed)) {
64657
64657
  this.emit("dirty", this);
@@ -64659,7 +64659,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64659
64659
  this.emit("change", this);
64660
64660
  this.next();
64661
64661
  };
64662
- DControllerDefaultCommand.prototype.onSuccessRedo = function (redoed) {
64662
+ DControllerCommandImpl.prototype.onSuccessRedo = function (redoed) {
64663
64663
  this._executing = null;
64664
64664
  if (!isCommandClean(redoed)) {
64665
64665
  this.emit("dirty", this);
@@ -64667,7 +64667,7 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64667
64667
  this.emit("change", this);
64668
64668
  this.next();
64669
64669
  };
64670
- DControllerDefaultCommand.prototype.onFail = function (command) {
64670
+ DControllerCommandImpl.prototype.onFail = function (command) {
64671
64671
  this._executing = null;
64672
64672
  var waiting = this._waiting;
64673
64673
  command.destroy();
@@ -64677,31 +64677,31 @@ var DControllerDefaultCommand = /** @class */ (function (_super) {
64677
64677
  waiting.length = 0;
64678
64678
  this.emit("change", this);
64679
64679
  };
64680
- DControllerDefaultCommand.prototype.size = function () {
64680
+ DControllerCommandImpl.prototype.size = function () {
64681
64681
  return this._done.length;
64682
64682
  };
64683
- DControllerDefaultCommand.prototype.clear = function () {
64683
+ DControllerCommandImpl.prototype.clear = function () {
64684
64684
  this.push(new DCommandClear());
64685
64685
  };
64686
- DControllerDefaultCommand.prototype.redo = function () {
64686
+ DControllerCommandImpl.prototype.redo = function () {
64687
64687
  if (this.isRedoable()) {
64688
64688
  this._waiting.push(new DCommandRedo());
64689
64689
  this.next();
64690
64690
  }
64691
64691
  };
64692
- DControllerDefaultCommand.prototype.undo = function () {
64692
+ DControllerCommandImpl.prototype.undo = function () {
64693
64693
  if (this.isUndoable()) {
64694
64694
  this._waiting.push(new DCommandUndo());
64695
64695
  this.next();
64696
64696
  }
64697
64697
  };
64698
- DControllerDefaultCommand.prototype.isRedoable = function () {
64698
+ DControllerCommandImpl.prototype.isRedoable = function () {
64699
64699
  return 0 < this._position && this._executing == null;
64700
64700
  };
64701
- DControllerDefaultCommand.prototype.isUndoable = function () {
64701
+ DControllerCommandImpl.prototype.isUndoable = function () {
64702
64702
  return this._position < this._done.length && this._executing == null;
64703
64703
  };
64704
- return DControllerDefaultCommand;
64704
+ return DControllerCommandImpl;
64705
64705
  }(pixi_js.utils.EventEmitter));
64706
64706
 
64707
64707
  /*
@@ -64788,7 +64788,7 @@ var DControllers = /** @class */ (function () {
64788
64788
  // Command
64789
64789
  DControllers.getCommandController = function () {
64790
64790
  if (this.COMMAND == null) {
64791
- this.COMMAND = new DControllerDefaultCommand();
64791
+ this.COMMAND = new DControllerCommandImpl();
64792
64792
  }
64793
64793
  return this.COMMAND;
64794
64794
  };
@@ -65102,25 +65102,27 @@ var DApplicationLayer = /** @class */ (function (_super) {
65102
65102
  * Copyright (C) 2019 Toshiba Corporation
65103
65103
  * SPDX-License-Identifier: Apache-2.0
65104
65104
  */
65105
- var DControllerDefaultFocus = /** @class */ (function () {
65106
- function DControllerDefaultFocus() {
65105
+ var DControllerFocusImpl = /** @class */ (function () {
65106
+ function DControllerFocusImpl() {
65107
65107
  this._focused = null;
65108
65108
  }
65109
- DControllerDefaultFocus.prototype.focus = function (focusable) {
65109
+ DControllerFocusImpl.prototype.focus = function (focusable) {
65110
65110
  var previous = this._focused;
65111
65111
  if (previous !== focusable) {
65112
65112
  if (previous != null) {
65113
+ console.log("previous", previous.constructor.name);
65113
65114
  previous.state.isFocused = false;
65114
65115
  }
65115
65116
  this._focused = focusable;
65116
65117
  if (this.isFocusable(focusable)) {
65118
+ console.log("previous", focusable.constructor.name);
65117
65119
  focusable.state.isFocused = true;
65118
65120
  }
65119
65121
  return previous;
65120
65122
  }
65121
65123
  return null;
65122
65124
  };
65123
- DControllerDefaultFocus.prototype.blur = function (focusable) {
65125
+ DControllerFocusImpl.prototype.blur = function (focusable) {
65124
65126
  if (focusable != null && this._focused === focusable) {
65125
65127
  this._focused = null;
65126
65128
  focusable.state.isFocused = false;
@@ -65128,10 +65130,10 @@ var DControllerDefaultFocus = /** @class */ (function () {
65128
65130
  }
65129
65131
  return null;
65130
65132
  };
65131
- DControllerDefaultFocus.prototype.clear = function () {
65133
+ DControllerFocusImpl.prototype.clear = function () {
65132
65134
  return this.focus(null);
65133
65135
  };
65134
- DControllerDefaultFocus.prototype.set = function (focusable, isFocused) {
65136
+ DControllerFocusImpl.prototype.set = function (focusable, isFocused) {
65135
65137
  if (isFocused) {
65136
65138
  return this.focus(focusable);
65137
65139
  }
@@ -65139,10 +65141,10 @@ var DControllerDefaultFocus = /** @class */ (function () {
65139
65141
  return this.blur(focusable);
65140
65142
  }
65141
65143
  };
65142
- DControllerDefaultFocus.prototype.get = function () {
65144
+ DControllerFocusImpl.prototype.get = function () {
65143
65145
  return this._focused;
65144
65146
  };
65145
- DControllerDefaultFocus.prototype.findParent = function (mightBeFocusable) {
65147
+ DControllerFocusImpl.prototype.findParent = function (mightBeFocusable) {
65146
65148
  var current = mightBeFocusable;
65147
65149
  while (current != null) {
65148
65150
  if (this.isFocusable(current)) {
@@ -65154,7 +65156,7 @@ var DControllerDefaultFocus = /** @class */ (function () {
65154
65156
  }
65155
65157
  return null;
65156
65158
  };
65157
- DControllerDefaultFocus.prototype.find = function (target, includesTarget, includesTargetChildren, direction, root) {
65159
+ DControllerFocusImpl.prototype.find = function (target, includesTarget, includesTargetChildren, direction, root) {
65158
65160
  if (direction) {
65159
65161
  var result = this.findNext(target, includesTarget, includesTargetChildren);
65160
65162
  if (result != null) {
@@ -65268,7 +65270,7 @@ var DControllerDefaultFocus = /** @class */ (function () {
65268
65270
  }
65269
65271
  return null;
65270
65272
  };
65271
- DControllerDefaultFocus.prototype.findNext = function (target, includesTarget, includesTargetChildren) {
65273
+ DControllerFocusImpl.prototype.findNext = function (target, includesTarget, includesTargetChildren) {
65272
65274
  // Target itself
65273
65275
  if (includesTarget) {
65274
65276
  if (this.isFocusable(target)) {
@@ -65299,7 +65301,7 @@ var DControllerDefaultFocus = /** @class */ (function () {
65299
65301
  // Found nothing
65300
65302
  return null;
65301
65303
  };
65302
- DControllerDefaultFocus.prototype.findPrevious = function (target, includesTarget, includesTargetChildren) {
65304
+ DControllerFocusImpl.prototype.findPrevious = function (target, includesTarget, includesTargetChildren) {
65303
65305
  // Target children
65304
65306
  if (includesTargetChildren && this.isFocusableContainer(target) && target.visible) {
65305
65307
  var children = target.children;
@@ -65330,26 +65332,26 @@ var DControllerDefaultFocus = /** @class */ (function () {
65330
65332
  // Found nothing
65331
65333
  return null;
65332
65334
  };
65333
- DControllerDefaultFocus.prototype.isFocusable = function (target) {
65335
+ DControllerFocusImpl.prototype.isFocusable = function (target) {
65334
65336
  return (target != null &&
65335
65337
  "state" in target &&
65336
65338
  target.state.inEnabled &&
65337
65339
  target.state.isFocusable &&
65338
65340
  target.visible);
65339
65341
  };
65340
- DControllerDefaultFocus.prototype.isFocusableContainer = function (target) {
65342
+ DControllerFocusImpl.prototype.isFocusableContainer = function (target) {
65341
65343
  return target != null && "children" in target;
65342
65344
  };
65343
- DControllerDefaultFocus.prototype.isFocusRoot = function (target, root) {
65345
+ DControllerFocusImpl.prototype.isFocusRoot = function (target, root) {
65344
65346
  if (target === root) {
65345
65347
  return true;
65346
65348
  }
65347
65349
  return target != null && "state" in target && target.state.isFocusRoot && target.visible;
65348
65350
  };
65349
- DControllerDefaultFocus.prototype.isFocusReverse = function (target) {
65351
+ DControllerFocusImpl.prototype.isFocusReverse = function (target) {
65350
65352
  return target != null && "state" in target && target.state.isFocusReverse;
65351
65353
  };
65352
- return DControllerDefaultFocus;
65354
+ return DControllerFocusImpl;
65353
65355
  }());
65354
65356
 
65355
65357
  /*
@@ -65431,7 +65433,7 @@ var DApplication = /** @class */ (function () {
65431
65433
  };
65432
65434
  DApplication.prototype.getFocusController = function () {
65433
65435
  if (this._focus == null) {
65434
- this._focus = new DControllerDefaultFocus();
65436
+ this._focus = new DControllerFocusImpl();
65435
65437
  }
65436
65438
  return this._focus;
65437
65439
  };
@@ -88871,8 +88873,8 @@ exports.DCommandSave = DCommandSave;
88871
88873
  exports.DCommandSaveAs = DCommandSaveAs;
88872
88874
  exports.DCommandUndo = DCommandUndo;
88873
88875
  exports.DContent = DContent;
88874
- exports.DControllerDefaultCommand = DControllerDefaultCommand;
88875
- exports.DControllerDefaultFocus = DControllerDefaultFocus;
88876
+ exports.DControllerCommandImpl = DControllerCommandImpl;
88877
+ exports.DControllerFocusImpl = DControllerFocusImpl;
88876
88878
  exports.DControllerKeyboard = DControllerKeyboard;
88877
88879
  exports.DControllers = DControllers;
88878
88880
  exports.DCornerMask = DCornerMask;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.200.3
2
+ Winter Cardinal UI v0.201.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -13523,9 +13523,9 @@
13523
13523
  if (target === this) {
13524
13524
  return true;
13525
13525
  }
13526
- else if (target != null && !(target instanceof DBase)) {
13526
+ else if (target != null && !(target instanceof DBase && target.interactive)) {
13527
13527
  var parent_5 = target.parent;
13528
- while (parent_5 != null && !(parent_5 instanceof DBase)) {
13528
+ while (parent_5 != null && !(parent_5 instanceof DBase && parent_5.interactive)) {
13529
13529
  parent_5 = parent_5.parent;
13530
13530
  }
13531
13531
  return parent_5 === this;
@@ -46297,9 +46297,9 @@
46297
46297
  var isCommandClean = function (command) {
46298
46298
  return !!(command.getFlag() & DCommandFlag.CLEAN);
46299
46299
  };
46300
- var DControllerDefaultCommand = /** @class */ (function (_super) {
46301
- __extends(DControllerDefaultCommand, _super);
46302
- function DControllerDefaultCommand() {
46300
+ var DControllerCommandImpl = /** @class */ (function (_super) {
46301
+ __extends(DControllerCommandImpl, _super);
46302
+ function DControllerCommandImpl() {
46303
46303
  var _this = _super.call(this) || this;
46304
46304
  _this._position = 0;
46305
46305
  _this._done = [];
@@ -46307,7 +46307,7 @@
46307
46307
  _this._executing = null;
46308
46308
  return _this;
46309
46309
  }
46310
- DControllerDefaultCommand.prototype.last = function () {
46310
+ DControllerCommandImpl.prototype.last = function () {
46311
46311
  var done = this._done;
46312
46312
  var waiting = this._waiting;
46313
46313
  if (waiting.length <= 0) {
@@ -46322,11 +46322,11 @@
46322
46322
  return waiting[waiting.length - 1];
46323
46323
  }
46324
46324
  };
46325
- DControllerDefaultCommand.prototype.push = function (command) {
46325
+ DControllerCommandImpl.prototype.push = function (command) {
46326
46326
  this._waiting.push(command);
46327
46327
  this.next();
46328
46328
  };
46329
- DControllerDefaultCommand.prototype.next = function () {
46329
+ DControllerCommandImpl.prototype.next = function () {
46330
46330
  if (this._executing != null) {
46331
46331
  // Still executing a command.
46332
46332
  // So do nothing.
@@ -46354,7 +46354,7 @@
46354
46354
  this.execute(command);
46355
46355
  }
46356
46356
  };
46357
- DControllerDefaultCommand.prototype.executeUndo = function (command) {
46357
+ DControllerCommandImpl.prototype.executeUndo = function (command) {
46358
46358
  var _this = this;
46359
46359
  var done = this._done;
46360
46360
  if (this._position < done.length) {
@@ -46377,7 +46377,7 @@
46377
46377
  }
46378
46378
  }
46379
46379
  };
46380
- DControllerDefaultCommand.prototype.executeRedo = function (command) {
46380
+ DControllerCommandImpl.prototype.executeRedo = function (command) {
46381
46381
  var _this = this;
46382
46382
  var done = this._done;
46383
46383
  if (0 < this._position) {
@@ -46400,7 +46400,7 @@
46400
46400
  }
46401
46401
  }
46402
46402
  };
46403
- DControllerDefaultCommand.prototype.execute = function (command) {
46403
+ DControllerCommandImpl.prototype.execute = function (command) {
46404
46404
  var _this = this;
46405
46405
  var isClear = isCommandClear(command);
46406
46406
  var isStorable = isCommandStorable(command);
@@ -46428,7 +46428,7 @@
46428
46428
  });
46429
46429
  }
46430
46430
  };
46431
- DControllerDefaultCommand.prototype.cleanup = function () {
46431
+ DControllerCommandImpl.prototype.cleanup = function () {
46432
46432
  var done = this._done;
46433
46433
  var size = done.length - 100;
46434
46434
  if (0 < size) {
@@ -46438,7 +46438,7 @@
46438
46438
  }
46439
46439
  }
46440
46440
  };
46441
- DControllerDefaultCommand.prototype.remove = function (size) {
46441
+ DControllerCommandImpl.prototype.remove = function (size) {
46442
46442
  var done = this._done;
46443
46443
  if (0 < size) {
46444
46444
  var ifrom = Math.max(0, done.length - size);
@@ -46453,7 +46453,7 @@
46453
46453
  }
46454
46454
  return false;
46455
46455
  };
46456
- DControllerDefaultCommand.prototype.onSuccess = function (command) {
46456
+ DControllerCommandImpl.prototype.onSuccess = function (command) {
46457
46457
  this._executing = null;
46458
46458
  if (isCommandStorable(command)) {
46459
46459
  this._done.push(command);
@@ -46464,7 +46464,7 @@
46464
46464
  this.emit("change", this);
46465
46465
  this.next();
46466
46466
  };
46467
- DControllerDefaultCommand.prototype.onSuccessUndo = function (undoed) {
46467
+ DControllerCommandImpl.prototype.onSuccessUndo = function (undoed) {
46468
46468
  this._executing = null;
46469
46469
  if (!isCommandClean(undoed)) {
46470
46470
  this.emit("dirty", this);
@@ -46472,7 +46472,7 @@
46472
46472
  this.emit("change", this);
46473
46473
  this.next();
46474
46474
  };
46475
- DControllerDefaultCommand.prototype.onSuccessRedo = function (redoed) {
46475
+ DControllerCommandImpl.prototype.onSuccessRedo = function (redoed) {
46476
46476
  this._executing = null;
46477
46477
  if (!isCommandClean(redoed)) {
46478
46478
  this.emit("dirty", this);
@@ -46480,7 +46480,7 @@
46480
46480
  this.emit("change", this);
46481
46481
  this.next();
46482
46482
  };
46483
- DControllerDefaultCommand.prototype.onFail = function (command) {
46483
+ DControllerCommandImpl.prototype.onFail = function (command) {
46484
46484
  this._executing = null;
46485
46485
  var waiting = this._waiting;
46486
46486
  command.destroy();
@@ -46490,31 +46490,31 @@
46490
46490
  waiting.length = 0;
46491
46491
  this.emit("change", this);
46492
46492
  };
46493
- DControllerDefaultCommand.prototype.size = function () {
46493
+ DControllerCommandImpl.prototype.size = function () {
46494
46494
  return this._done.length;
46495
46495
  };
46496
- DControllerDefaultCommand.prototype.clear = function () {
46496
+ DControllerCommandImpl.prototype.clear = function () {
46497
46497
  this.push(new DCommandClear());
46498
46498
  };
46499
- DControllerDefaultCommand.prototype.redo = function () {
46499
+ DControllerCommandImpl.prototype.redo = function () {
46500
46500
  if (this.isRedoable()) {
46501
46501
  this._waiting.push(new DCommandRedo());
46502
46502
  this.next();
46503
46503
  }
46504
46504
  };
46505
- DControllerDefaultCommand.prototype.undo = function () {
46505
+ DControllerCommandImpl.prototype.undo = function () {
46506
46506
  if (this.isUndoable()) {
46507
46507
  this._waiting.push(new DCommandUndo());
46508
46508
  this.next();
46509
46509
  }
46510
46510
  };
46511
- DControllerDefaultCommand.prototype.isRedoable = function () {
46511
+ DControllerCommandImpl.prototype.isRedoable = function () {
46512
46512
  return 0 < this._position && this._executing == null;
46513
46513
  };
46514
- DControllerDefaultCommand.prototype.isUndoable = function () {
46514
+ DControllerCommandImpl.prototype.isUndoable = function () {
46515
46515
  return this._position < this._done.length && this._executing == null;
46516
46516
  };
46517
- return DControllerDefaultCommand;
46517
+ return DControllerCommandImpl;
46518
46518
  }(pixi_js.utils.EventEmitter));
46519
46519
 
46520
46520
  /*
@@ -46601,7 +46601,7 @@
46601
46601
  // Command
46602
46602
  DControllers.getCommandController = function () {
46603
46603
  if (this.COMMAND == null) {
46604
- this.COMMAND = new DControllerDefaultCommand();
46604
+ this.COMMAND = new DControllerCommandImpl();
46605
46605
  }
46606
46606
  return this.COMMAND;
46607
46607
  };
@@ -46915,25 +46915,27 @@
46915
46915
  * Copyright (C) 2019 Toshiba Corporation
46916
46916
  * SPDX-License-Identifier: Apache-2.0
46917
46917
  */
46918
- var DControllerDefaultFocus = /** @class */ (function () {
46919
- function DControllerDefaultFocus() {
46918
+ var DControllerFocusImpl = /** @class */ (function () {
46919
+ function DControllerFocusImpl() {
46920
46920
  this._focused = null;
46921
46921
  }
46922
- DControllerDefaultFocus.prototype.focus = function (focusable) {
46922
+ DControllerFocusImpl.prototype.focus = function (focusable) {
46923
46923
  var previous = this._focused;
46924
46924
  if (previous !== focusable) {
46925
46925
  if (previous != null) {
46926
+ console.log("previous", previous.constructor.name);
46926
46927
  previous.state.isFocused = false;
46927
46928
  }
46928
46929
  this._focused = focusable;
46929
46930
  if (this.isFocusable(focusable)) {
46931
+ console.log("previous", focusable.constructor.name);
46930
46932
  focusable.state.isFocused = true;
46931
46933
  }
46932
46934
  return previous;
46933
46935
  }
46934
46936
  return null;
46935
46937
  };
46936
- DControllerDefaultFocus.prototype.blur = function (focusable) {
46938
+ DControllerFocusImpl.prototype.blur = function (focusable) {
46937
46939
  if (focusable != null && this._focused === focusable) {
46938
46940
  this._focused = null;
46939
46941
  focusable.state.isFocused = false;
@@ -46941,10 +46943,10 @@
46941
46943
  }
46942
46944
  return null;
46943
46945
  };
46944
- DControllerDefaultFocus.prototype.clear = function () {
46946
+ DControllerFocusImpl.prototype.clear = function () {
46945
46947
  return this.focus(null);
46946
46948
  };
46947
- DControllerDefaultFocus.prototype.set = function (focusable, isFocused) {
46949
+ DControllerFocusImpl.prototype.set = function (focusable, isFocused) {
46948
46950
  if (isFocused) {
46949
46951
  return this.focus(focusable);
46950
46952
  }
@@ -46952,10 +46954,10 @@
46952
46954
  return this.blur(focusable);
46953
46955
  }
46954
46956
  };
46955
- DControllerDefaultFocus.prototype.get = function () {
46957
+ DControllerFocusImpl.prototype.get = function () {
46956
46958
  return this._focused;
46957
46959
  };
46958
- DControllerDefaultFocus.prototype.findParent = function (mightBeFocusable) {
46960
+ DControllerFocusImpl.prototype.findParent = function (mightBeFocusable) {
46959
46961
  var current = mightBeFocusable;
46960
46962
  while (current != null) {
46961
46963
  if (this.isFocusable(current)) {
@@ -46967,7 +46969,7 @@
46967
46969
  }
46968
46970
  return null;
46969
46971
  };
46970
- DControllerDefaultFocus.prototype.find = function (target, includesTarget, includesTargetChildren, direction, root) {
46972
+ DControllerFocusImpl.prototype.find = function (target, includesTarget, includesTargetChildren, direction, root) {
46971
46973
  if (direction) {
46972
46974
  var result = this.findNext(target, includesTarget, includesTargetChildren);
46973
46975
  if (result != null) {
@@ -47081,7 +47083,7 @@
47081
47083
  }
47082
47084
  return null;
47083
47085
  };
47084
- DControllerDefaultFocus.prototype.findNext = function (target, includesTarget, includesTargetChildren) {
47086
+ DControllerFocusImpl.prototype.findNext = function (target, includesTarget, includesTargetChildren) {
47085
47087
  // Target itself
47086
47088
  if (includesTarget) {
47087
47089
  if (this.isFocusable(target)) {
@@ -47112,7 +47114,7 @@
47112
47114
  // Found nothing
47113
47115
  return null;
47114
47116
  };
47115
- DControllerDefaultFocus.prototype.findPrevious = function (target, includesTarget, includesTargetChildren) {
47117
+ DControllerFocusImpl.prototype.findPrevious = function (target, includesTarget, includesTargetChildren) {
47116
47118
  // Target children
47117
47119
  if (includesTargetChildren && this.isFocusableContainer(target) && target.visible) {
47118
47120
  var children = target.children;
@@ -47143,26 +47145,26 @@
47143
47145
  // Found nothing
47144
47146
  return null;
47145
47147
  };
47146
- DControllerDefaultFocus.prototype.isFocusable = function (target) {
47148
+ DControllerFocusImpl.prototype.isFocusable = function (target) {
47147
47149
  return (target != null &&
47148
47150
  "state" in target &&
47149
47151
  target.state.inEnabled &&
47150
47152
  target.state.isFocusable &&
47151
47153
  target.visible);
47152
47154
  };
47153
- DControllerDefaultFocus.prototype.isFocusableContainer = function (target) {
47155
+ DControllerFocusImpl.prototype.isFocusableContainer = function (target) {
47154
47156
  return target != null && "children" in target;
47155
47157
  };
47156
- DControllerDefaultFocus.prototype.isFocusRoot = function (target, root) {
47158
+ DControllerFocusImpl.prototype.isFocusRoot = function (target, root) {
47157
47159
  if (target === root) {
47158
47160
  return true;
47159
47161
  }
47160
47162
  return target != null && "state" in target && target.state.isFocusRoot && target.visible;
47161
47163
  };
47162
- DControllerDefaultFocus.prototype.isFocusReverse = function (target) {
47164
+ DControllerFocusImpl.prototype.isFocusReverse = function (target) {
47163
47165
  return target != null && "state" in target && target.state.isFocusReverse;
47164
47166
  };
47165
- return DControllerDefaultFocus;
47167
+ return DControllerFocusImpl;
47166
47168
  }());
47167
47169
 
47168
47170
  /*
@@ -47244,7 +47246,7 @@
47244
47246
  };
47245
47247
  DApplication.prototype.getFocusController = function () {
47246
47248
  if (this._focus == null) {
47247
- this._focus = new DControllerDefaultFocus();
47249
+ this._focus = new DControllerFocusImpl();
47248
47250
  }
47249
47251
  return this._focus;
47250
47252
  };
@@ -71733,8 +71735,8 @@
71733
71735
  DCommandSave: DCommandSave,
71734
71736
  DCommandUndo: DCommandUndo,
71735
71737
  DContent: DContent,
71736
- DControllerDefaultCommand: DControllerDefaultCommand,
71737
- DControllerDefaultFocus: DControllerDefaultFocus,
71738
+ DControllerCommandImpl: DControllerCommandImpl,
71739
+ DControllerFocusImpl: DControllerFocusImpl,
71738
71740
  DControllerKeyboard: DControllerKeyboard,
71739
71741
  DControllers: DControllers,
71740
71742
  DCornerMask: DCornerMask,