@wcardinal/wcardinal-ui 0.328.0 → 0.329.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.
@@ -9,6 +9,7 @@ export interface DInputBooleanOptions<THEME extends DThemeInputBoolean = DThemeI
9
9
  export interface DThemeInputBoolean extends DThemeLayoutHorizontal {
10
10
  }
11
11
  export declare class DInputBoolean<THEME extends DThemeInputBoolean = DThemeInputBoolean, OPTIONS extends DInputBooleanOptions<THEME> = DInputBooleanOptions<THEME>> extends DLayoutHorizontal<THEME, OPTIONS> {
12
+ protected _lockCount: number;
12
13
  protected _buttonGroup?: DButtonGroup;
13
14
  protected _buttonOn?: DInputBooleanButtonOn;
14
15
  protected _buttonOff?: DInputBooleanButtonOff;
@@ -12,6 +12,7 @@ var DInputBoolean = /** @class */ (function (_super) {
12
12
  __extends(DInputBoolean, _super);
13
13
  function DInputBoolean(options) {
14
14
  var _this = _super.call(this, options) || this;
15
+ _this._lockCount = 0;
15
16
  _this.addChild(_this.getButtonOff());
16
17
  _this.addChild(_this.getButtonOn());
17
18
  var value = options === null || options === void 0 ? void 0 : options.value;
@@ -19,8 +20,10 @@ var DInputBoolean = /** @class */ (function (_super) {
19
20
  _this.value = value;
20
21
  }
21
22
  _this.getButtonGroup().on("active", function () {
22
- var newValue = _this.value;
23
- _this.emit("change", newValue, !newValue, _this);
23
+ if (_this._lockCount <= 0) {
24
+ var newValue = _this.value;
25
+ _this.emit("change", newValue, !newValue, _this);
26
+ }
24
27
  });
25
28
  return _this;
26
29
  }
@@ -70,12 +73,19 @@ var DInputBoolean = /** @class */ (function (_super) {
70
73
  },
71
74
  set: function (value) {
72
75
  if (this.value !== value) {
73
- if (value) {
74
- this.getButtonOn().activate();
76
+ this._lockCount += 1;
77
+ try {
78
+ if (value) {
79
+ this.getButtonOn().activate();
80
+ }
81
+ else {
82
+ this.getButtonOff().activate();
83
+ }
75
84
  }
76
- else {
77
- this.getButtonOff().activate();
85
+ catch (e) {
86
+ // DO NOTHING
78
87
  }
88
+ this._lockCount -= 1;
79
89
  }
80
90
  },
81
91
  enumerable: false,
@@ -1 +1 @@
1
- {"version":3,"file":"d-input-boolean.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-input-boolean.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAA0B,MAAM,uBAAuB,CAAC;AASlF;IAGU,iCAAiC;IAK1C,uBAAY,OAAiB;QAA7B,YACC,kBAAM,OAAO,CAAC,SAad;QAZA,KAAI,CAAC,QAAQ,CAAC,KAAI,CAAC,YAAY,EAAE,CAAC,CAAC;QACnC,KAAI,CAAC,QAAQ,CAAC,KAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAElC,IAAM,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC;QAC7B,IAAI,KAAK,IAAI,IAAI,EAAE;YAClB,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;SACnB;QAED,KAAI,CAAC,cAAc,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE;YAClC,IAAM,QAAQ,GAAG,KAAI,CAAC,KAAK,CAAC;YAC5B,KAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,KAAI,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;;IACJ,CAAC;IAES,sCAAc,GAAxB;QACC,IAAI,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;QAC/B,IAAI,MAAM,IAAI,IAAI,EAAE;YACnB,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CA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AC,YAAY,EAAE,CAAC,QAAQ,EAAE,CAAC;iBAC/B;aACD;QACF,CAAC;;;OAVA;IAYS,+BAAO,GAAjB;QACC,OAAO,eAAe,CAAC;IACxB,CAAC;IACF,oBAAC;AAAD,CAAC,AAvFD,CAGU,iBAAiB,GAoF1B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseState } from \"./d-base-state\";\nimport { DButtonGroup } from \"./d-button-group\";\nimport { DInputBooleanButtonOff } from \"./d-input-boolean-button-off\";\nimport { DInputBooleanButtonOn } from \"./d-input-boolean-button-on\";\nimport { DLayoutOptions } from \"./d-layout\";\nimport { DLayoutHorizontal, DThemeLayoutHorizontal } from \"./d-layout-horizontal\";\n\nexport interface DInputBooleanOptions<THEME extends DThemeInputBoolean = DThemeInputBoolean>\n\textends DLayoutOptions<THEME> {\n\tvalue?: boolean;\n}\n\nexport interface DThemeInputBoolean extends DThemeLayoutHorizontal {}\n\nexport class DInputBoolean<\n\tTHEME extends DThemeInputBoolean = DThemeInputBoolean,\n\tOPTIONS extends DInputBooleanOptions<THEME> = DInputBooleanOptions<THEME>\n> extends DLayoutHorizontal<THEME, OPTIONS> {\n\tprotected _buttonGroup?: DButtonGroup;\n\tprotected _buttonOn?: DInputBooleanButtonOn;\n\tprotected _buttonOff?: DInputBooleanButtonOff;\n\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(options);\n\t\tthis.addChild(this.getButtonOff());\n\t\tthis.addChild(this.getButtonOn());\n\n\t\tconst value = options?.value;\n\t\tif (value != null) {\n\t\t\tthis.value = value;\n\t\t}\n\n\t\tthis.getButtonGroup().on(\"active\", (): void => {\n\t\t\tconst newValue = this.value;\n\t\t\tthis.emit(\"change\", newValue, !newValue, this);\n\t\t});\n\t}\n\n\tprotected getButtonGroup(): DButtonGroup {\n\t\tlet result = this._buttonGroup;\n\t\tif (result == null) {\n\t\t\tresult = this.newButtonGroup();\n\t\t\tthis._buttonGroup = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonGroup(): DButtonGroup {\n\t\treturn new DButtonGroup();\n\t}\n\n\tprotected getButtonOn(): DInputBooleanButtonOn {\n\t\tlet result = this._buttonOn;\n\t\tif (result == null) {\n\t\t\tresult = this.newButtonOn();\n\t\t\tthis._buttonOn = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonOn(): DInputBooleanButtonOn {\n\t\treturn new DInputBooleanButtonOn({\n\t\t\tweight: 1,\n\t\t\tgroup: this.getButtonGroup()\n\t\t});\n\t}\n\n\tprotected getButtonOff(): DInputBooleanButtonOff {\n\t\tlet result = this._buttonOff;\n\t\tif (result == null) {\n\t\t\tresult = this.newButtonOff();\n\t\t\tthis._buttonOff = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonOff(): DInputBooleanButtonOff {\n\t\treturn new DInputBooleanButtonOff({\n\t\t\tweight: 1,\n\t\t\tgroup: this.getButtonGroup(),\n\t\t\tstate: DBaseState.ACTIVE\n\t\t});\n\t}\n\n\tget value(): boolean {\n\t\treturn this.getButtonOn().state.isActive;\n\t}\n\n\tset value(value: boolean) {\n\t\tif (this.value !== value) {\n\t\t\tif (value) {\n\t\t\t\tthis.getButtonOn().activate();\n\t\t\t} else {\n\t\t\t\tthis.getButtonOff().activate();\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DInputBoolean\";\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-input-boolean.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-input-boolean.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;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U,iBAAiB,GA+F1B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseState } from \"./d-base-state\";\nimport { DButtonGroup } from \"./d-button-group\";\nimport { DInputBooleanButtonOff } from \"./d-input-boolean-button-off\";\nimport { DInputBooleanButtonOn } from \"./d-input-boolean-button-on\";\nimport { DLayoutOptions } from \"./d-layout\";\nimport { DLayoutHorizontal, DThemeLayoutHorizontal } from \"./d-layout-horizontal\";\n\nexport interface DInputBooleanOptions<THEME extends DThemeInputBoolean = DThemeInputBoolean>\n\textends DLayoutOptions<THEME> {\n\tvalue?: boolean;\n}\n\nexport interface DThemeInputBoolean extends DThemeLayoutHorizontal {}\n\nexport class DInputBoolean<\n\tTHEME extends DThemeInputBoolean = DThemeInputBoolean,\n\tOPTIONS extends DInputBooleanOptions<THEME> = DInputBooleanOptions<THEME>\n> extends DLayoutHorizontal<THEME, OPTIONS> {\n\tprotected _lockCount: number;\n\n\tprotected _buttonGroup?: DButtonGroup;\n\tprotected _buttonOn?: DInputBooleanButtonOn;\n\tprotected _buttonOff?: DInputBooleanButtonOff;\n\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(options);\n\t\tthis._lockCount = 0;\n\t\tthis.addChild(this.getButtonOff());\n\t\tthis.addChild(this.getButtonOn());\n\n\t\tconst value = options?.value;\n\t\tif (value != null) {\n\t\t\tthis.value = value;\n\t\t}\n\n\t\tthis.getButtonGroup().on(\"active\", (): void => {\n\t\t\tif (this._lockCount <= 0) {\n\t\t\t\tconst newValue = this.value;\n\t\t\t\tthis.emit(\"change\", newValue, !newValue, this);\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected getButtonGroup(): DButtonGroup {\n\t\tlet result = this._buttonGroup;\n\t\tif (result == null) {\n\t\t\tresult = this.newButtonGroup();\n\t\t\tthis._buttonGroup = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonGroup(): DButtonGroup {\n\t\treturn new DButtonGroup();\n\t}\n\n\tprotected getButtonOn(): DInputBooleanButtonOn {\n\t\tlet result = this._buttonOn;\n\t\tif (result == null) {\n\t\t\tresult = this.newButtonOn();\n\t\t\tthis._buttonOn = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonOn(): DInputBooleanButtonOn {\n\t\treturn new DInputBooleanButtonOn({\n\t\t\tweight: 1,\n\t\t\tgroup: this.getButtonGroup()\n\t\t});\n\t}\n\n\tprotected getButtonOff(): DInputBooleanButtonOff {\n\t\tlet result = this._buttonOff;\n\t\tif (result == null) {\n\t\t\tresult = this.newButtonOff();\n\t\t\tthis._buttonOff = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newButtonOff(): DInputBooleanButtonOff {\n\t\treturn new DInputBooleanButtonOff({\n\t\t\tweight: 1,\n\t\t\tgroup: this.getButtonGroup(),\n\t\t\tstate: DBaseState.ACTIVE\n\t\t});\n\t}\n\n\tget value(): boolean {\n\t\treturn this.getButtonOn().state.isActive;\n\t}\n\n\tset value(value: boolean) {\n\t\tif (this.value !== value) {\n\t\t\tthis._lockCount += 1;\n\t\t\ttry {\n\t\t\t\tif (value) {\n\t\t\t\t\tthis.getButtonOn().activate();\n\t\t\t\t} else {\n\t\t\t\t\tthis.getButtonOff().activate();\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\t// DO NOTHING\n\t\t\t}\n\t\t\tthis._lockCount -= 1;\n\t\t}\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DInputBoolean\";\n\t}\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.328.0
2
+ Winter Cardinal UI v0.329.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.328.0
2
+ Winter Cardinal UI v0.329.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.328.0
2
+ Winter Cardinal UI v0.329.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.328.0
2
+ Winter Cardinal UI v0.329.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.328.0
2
+ Winter Cardinal UI v0.329.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -30414,6 +30414,7 @@ var DInputBoolean = /** @class */ (function (_super) {
30414
30414
  __extends(DInputBoolean, _super);
30415
30415
  function DInputBoolean(options) {
30416
30416
  var _this = _super.call(this, options) || this;
30417
+ _this._lockCount = 0;
30417
30418
  _this.addChild(_this.getButtonOff());
30418
30419
  _this.addChild(_this.getButtonOn());
30419
30420
  var value = options === null || options === void 0 ? void 0 : options.value;
@@ -30421,8 +30422,10 @@ var DInputBoolean = /** @class */ (function (_super) {
30421
30422
  _this.value = value;
30422
30423
  }
30423
30424
  _this.getButtonGroup().on("active", function () {
30424
- var newValue = _this.value;
30425
- _this.emit("change", newValue, !newValue, _this);
30425
+ if (_this._lockCount <= 0) {
30426
+ var newValue = _this.value;
30427
+ _this.emit("change", newValue, !newValue, _this);
30428
+ }
30426
30429
  });
30427
30430
  return _this;
30428
30431
  }
@@ -30472,12 +30475,19 @@ var DInputBoolean = /** @class */ (function (_super) {
30472
30475
  },
30473
30476
  set: function (value) {
30474
30477
  if (this.value !== value) {
30475
- if (value) {
30476
- this.getButtonOn().activate();
30478
+ this._lockCount += 1;
30479
+ try {
30480
+ if (value) {
30481
+ this.getButtonOn().activate();
30482
+ }
30483
+ else {
30484
+ this.getButtonOff().activate();
30485
+ }
30477
30486
  }
30478
- else {
30479
- this.getButtonOff().activate();
30487
+ catch (e) {
30488
+ // DO NOTHING
30480
30489
  }
30490
+ this._lockCount -= 1;
30481
30491
  }
30482
30492
  },
30483
30493
  enumerable: false,
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.328.0
2
+ Winter Cardinal UI v0.329.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -30411,6 +30411,7 @@
30411
30411
  __extends(DInputBoolean, _super);
30412
30412
  function DInputBoolean(options) {
30413
30413
  var _this = _super.call(this, options) || this;
30414
+ _this._lockCount = 0;
30414
30415
  _this.addChild(_this.getButtonOff());
30415
30416
  _this.addChild(_this.getButtonOn());
30416
30417
  var value = options === null || options === void 0 ? void 0 : options.value;
@@ -30418,8 +30419,10 @@
30418
30419
  _this.value = value;
30419
30420
  }
30420
30421
  _this.getButtonGroup().on("active", function () {
30421
- var newValue = _this.value;
30422
- _this.emit("change", newValue, !newValue, _this);
30422
+ if (_this._lockCount <= 0) {
30423
+ var newValue = _this.value;
30424
+ _this.emit("change", newValue, !newValue, _this);
30425
+ }
30423
30426
  });
30424
30427
  return _this;
30425
30428
  }
@@ -30469,12 +30472,19 @@
30469
30472
  },
30470
30473
  set: function (value) {
30471
30474
  if (this.value !== value) {
30472
- if (value) {
30473
- this.getButtonOn().activate();
30475
+ this._lockCount += 1;
30476
+ try {
30477
+ if (value) {
30478
+ this.getButtonOn().activate();
30479
+ }
30480
+ else {
30481
+ this.getButtonOff().activate();
30482
+ }
30474
30483
  }
30475
- else {
30476
- this.getButtonOff().activate();
30484
+ catch (e) {
30485
+ // DO NOTHING
30477
30486
  }
30487
+ this._lockCount -= 1;
30478
30488
  }
30479
30489
  },
30480
30490
  enumerable: false,