@wcardinal/wcardinal-ui 0.199.0 → 0.199.1

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.
@@ -2,13 +2,8 @@ import { EShape } from "../e-shape";
2
2
  import { EShapeRuntime } from "../e-shape-runtime";
3
3
  import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditional";
4
4
  import { EShapeActionValueShowHideShape } from "./e-shape-action-value-show-hide-shape";
5
- export interface EShapeActionRuntimeShowHideShapeData {
6
- condition: boolean | null;
7
- }
8
5
  export declare class EShapeActionRuntimeShowHideShape extends EShapeActionRuntimeConditional {
9
- protected _data: Map<EShape, EShapeActionRuntimeShowHideShapeData>;
10
6
  constructor(value: EShapeActionValueShowHideShape);
11
7
  initialize(shape: EShape, runtime: EShapeRuntime): void;
12
8
  execute(shape: EShape, runtime: EShapeRuntime, time: number): void;
13
- protected newData(shape: EShape): EShapeActionRuntimeShowHideShapeData | undefined;
14
9
  }
@@ -9,35 +9,14 @@ import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditi
9
9
  var EShapeActionRuntimeShowHideShape = /** @class */ (function (_super) {
10
10
  __extends(EShapeActionRuntimeShowHideShape, _super);
11
11
  function EShapeActionRuntimeShowHideShape(value) {
12
- var _this = _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
13
- _this._data = new Map();
14
- return _this;
12
+ return _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
15
13
  }
16
14
  EShapeActionRuntimeShowHideShape.prototype.initialize = function (shape, runtime) {
17
15
  _super.prototype.initialize.call(this, shape, runtime);
18
- var data = this._data.get(shape);
19
- if (data == null) {
20
- data = this.newData(shape);
21
- if (data != null) {
22
- this._data.set(shape, data);
23
- }
24
- }
25
16
  };
26
17
  EShapeActionRuntimeShowHideShape.prototype.execute = function (shape, runtime, time) {
27
- var data = this._data.get(shape);
28
- if (data) {
29
- var newCondition = this.condition(shape, time, EShapeActionEnvironment);
30
- if (data.condition !== newCondition) {
31
- data.condition = newCondition;
32
- shape.visible = newCondition;
33
- runtime.written |= this.reset;
34
- }
35
- }
36
- };
37
- EShapeActionRuntimeShowHideShape.prototype.newData = function (shape) {
38
- return {
39
- condition: null
40
- };
18
+ shape.visible = this.condition(shape, time, EShapeActionEnvironment);
19
+ runtime.written |= this.reset;
41
20
  };
42
21
  return EShapeActionRuntimeShowHideShape;
43
22
  }(EShapeActionRuntimeConditional));
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-runtime-show-hide-shape.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-shape.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAOtF;IAAsD,oDAA8B;IAGnF,0CAAY,KAAqC;QAAjD,YACC,kBAAM,KAAK,EAAE,kBAAkB,CAAC,UAAU,CAAC,SAE3C;QADA,KAAI,CAAC,KAAK,GAAG,IAAI,GAAG,EAAgD,CAAC;;IACtE,CAAC;IAED,qDAAU,GAAV,UAAW,KAAa,EAAE,OAAsB;QAC/C,iBAAM,UAAU,YAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACjC,IAAI,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACjC,IAAI,IAAI,IAAI,IAAI,EAAE;YACjB,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC3B,IAAI,IAAI,IAAI,IAAI,EAAE;gBACjB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;aAC5B;SACD;IACF,CAAC;IAED,kDAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,IAAI,EAAE;YACT,IAAM,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;YAC1E,IAAI,IAAI,CAAC,SAAS,KAAK,YAAY,EAAE;gBACpC,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC;gBAC9B,KAAK,CAAC,OAAO,GAAG,YAAY,CAAC;gBAC7B,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC;aAC9B;SACD;IACF,CAAC;IAES,kDAAO,GAAjB,UAAkB,KAAa;QAC9B,OAAO;YACN,SAAS,EAAE,IAAI;SACf,CAAC;IACH,CAAC;IACF,uCAAC;AAAD,CAAC,AApCD,CAAsD,8BAA8B,GAoCnF","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActionValueShowHideShape } from \"./e-shape-action-value-show-hide-shape\";\n\nexport interface EShapeActionRuntimeShowHideShapeData {\n\tcondition: boolean | null;\n}\n\nexport class EShapeActionRuntimeShowHideShape extends EShapeActionRuntimeConditional {\n\tprotected _data: Map<EShape, EShapeActionRuntimeShowHideShapeData>;\n\n\tconstructor(value: EShapeActionValueShowHideShape) {\n\t\tsuper(value, EShapeRuntimeReset.VISIBILITY);\n\t\tthis._data = new Map<EShape, EShapeActionRuntimeShowHideShapeData>();\n\t}\n\n\tinitialize(shape: EShape, runtime: EShapeRuntime): void {\n\t\tsuper.initialize(shape, runtime);\n\t\tlet data = this._data.get(shape);\n\t\tif (data == null) {\n\t\t\tdata = this.newData(shape);\n\t\t\tif (data != null) {\n\t\t\t\tthis._data.set(shape, data);\n\t\t\t}\n\t\t}\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tconst data = this._data.get(shape);\n\t\tif (data) {\n\t\t\tconst newCondition = this.condition(shape, time, EShapeActionEnvironment);\n\t\t\tif (data.condition !== newCondition) {\n\t\t\t\tdata.condition = newCondition;\n\t\t\t\tshape.visible = newCondition;\n\t\t\t\truntime.written |= this.reset;\n\t\t\t}\n\t\t}\n\t}\n\n\tprotected newData(shape: EShape): EShapeActionRuntimeShowHideShapeData | undefined {\n\t\treturn {\n\t\t\tcondition: null\n\t\t};\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-runtime-show-hide-shape.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-show-hide-shape.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAGtF;IAAsD,oDAA8B;IACnF,0CAAY,KAAqC;eAChD,kBAAM,KAAK,EAAE,kBAAkB,CAAC,UAAU,CAAC;IAC5C,CAAC;IAED,qDAAU,GAAV,UAAW,KAAa,EAAE,OAAsB;QAC/C,iBAAM,UAAU,YAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC;IAED,kDAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;QACrE,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC;IAC/B,CAAC;IACF,uCAAC;AAAD,CAAC,AAbD,CAAsD,8BAA8B,GAanF","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActionValueShowHideShape } from \"./e-shape-action-value-show-hide-shape\";\n\nexport class EShapeActionRuntimeShowHideShape extends EShapeActionRuntimeConditional {\n\tconstructor(value: EShapeActionValueShowHideShape) {\n\t\tsuper(value, EShapeRuntimeReset.VISIBILITY);\n\t}\n\n\tinitialize(shape: EShape, runtime: EShapeRuntime): void {\n\t\tsuper.initialize(shape, runtime);\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tshape.visible = this.condition(shape, time, EShapeActionEnvironment);\n\t\truntime.written |= this.reset;\n\t}\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.199.0
2
+ Winter Cardinal UI v0.199.1
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.199.0
2
+ Winter Cardinal UI v0.199.1
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.199.0
2
+ Winter Cardinal UI v0.199.1
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.199.0
2
+ Winter Cardinal UI v0.199.1
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.199.0
2
+ Winter Cardinal UI v0.199.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -31976,35 +31976,14 @@ var EShapeActionValueShowHideLayer = /** @class */ (function (_super) {
31976
31976
  var EShapeActionRuntimeShowHideShape = /** @class */ (function (_super) {
31977
31977
  __extends(EShapeActionRuntimeShowHideShape, _super);
31978
31978
  function EShapeActionRuntimeShowHideShape(value) {
31979
- var _this = _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
31980
- _this._data = new Map();
31981
- return _this;
31979
+ return _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
31982
31980
  }
31983
31981
  EShapeActionRuntimeShowHideShape.prototype.initialize = function (shape, runtime) {
31984
31982
  _super.prototype.initialize.call(this, shape, runtime);
31985
- var data = this._data.get(shape);
31986
- if (data == null) {
31987
- data = this.newData(shape);
31988
- if (data != null) {
31989
- this._data.set(shape, data);
31990
- }
31991
- }
31992
31983
  };
31993
31984
  EShapeActionRuntimeShowHideShape.prototype.execute = function (shape, runtime, time) {
31994
- var data = this._data.get(shape);
31995
- if (data) {
31996
- var newCondition = this.condition(shape, time, EShapeActionEnvironment);
31997
- if (data.condition !== newCondition) {
31998
- data.condition = newCondition;
31999
- shape.visible = newCondition;
32000
- runtime.written |= this.reset;
32001
- }
32002
- }
32003
- };
32004
- EShapeActionRuntimeShowHideShape.prototype.newData = function (shape) {
32005
- return {
32006
- condition: null
32007
- };
31985
+ shape.visible = this.condition(shape, time, EShapeActionEnvironment);
31986
+ runtime.written |= this.reset;
32008
31987
  };
32009
31988
  return EShapeActionRuntimeShowHideShape;
32010
31989
  }(EShapeActionRuntimeConditional));
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.199.0
2
+ Winter Cardinal UI v0.199.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -31973,35 +31973,14 @@
31973
31973
  var EShapeActionRuntimeShowHideShape = /** @class */ (function (_super) {
31974
31974
  __extends(EShapeActionRuntimeShowHideShape, _super);
31975
31975
  function EShapeActionRuntimeShowHideShape(value) {
31976
- var _this = _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
31977
- _this._data = new Map();
31978
- return _this;
31976
+ return _super.call(this, value, EShapeRuntimeReset.VISIBILITY) || this;
31979
31977
  }
31980
31978
  EShapeActionRuntimeShowHideShape.prototype.initialize = function (shape, runtime) {
31981
31979
  _super.prototype.initialize.call(this, shape, runtime);
31982
- var data = this._data.get(shape);
31983
- if (data == null) {
31984
- data = this.newData(shape);
31985
- if (data != null) {
31986
- this._data.set(shape, data);
31987
- }
31988
- }
31989
31980
  };
31990
31981
  EShapeActionRuntimeShowHideShape.prototype.execute = function (shape, runtime, time) {
31991
- var data = this._data.get(shape);
31992
- if (data) {
31993
- var newCondition = this.condition(shape, time, EShapeActionEnvironment);
31994
- if (data.condition !== newCondition) {
31995
- data.condition = newCondition;
31996
- shape.visible = newCondition;
31997
- runtime.written |= this.reset;
31998
- }
31999
- }
32000
- };
32001
- EShapeActionRuntimeShowHideShape.prototype.newData = function (shape) {
32002
- return {
32003
- condition: null
32004
- };
31982
+ shape.visible = this.condition(shape, time, EShapeActionEnvironment);
31983
+ runtime.written |= this.reset;
32005
31984
  };
32006
31985
  return EShapeActionRuntimeShowHideShape;
32007
31986
  }(EShapeActionRuntimeConditional));