@wcardinal/wcardinal-ui 0.317.0 → 0.318.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.
@@ -1,4 +1,5 @@
1
1
  import { DDiagramSerializedItem } from "../../d-diagram-serialized";
2
+ import { EShape } from "../e-shape";
2
3
  import { EShapeResourceManagerSerialization } from "../e-shape-resource-manager-serialization";
3
4
  import { EShapeType } from "../e-shape-type";
4
5
  import { EShapeRectangleRounded } from "./e-shape-rectangle-rounded";
@@ -13,6 +14,7 @@ export declare class EShapeButton extends EShapeRectangleRounded {
13
14
  */
14
15
  get isGrouped(): boolean;
15
16
  set isGrouped(isGrouped: boolean);
17
+ copy(source: EShape, part?: number): this;
16
18
  clone(): EShapeRectangleRounded;
17
19
  serialize(manager: EShapeResourceManagerSerialization): DDiagramSerializedItem;
18
20
  }
@@ -37,6 +37,14 @@ var EShapeButton = /** @class */ (function (_super) {
37
37
  enumerable: false,
38
38
  configurable: true
39
39
  });
40
+ EShapeButton.prototype.copy = function (source, part) {
41
+ _super.prototype.copy.call(this, source, part);
42
+ if (source instanceof EShapeButton) {
43
+ this._isToggle = source.isToggle;
44
+ this._isGrouped = source.isGrouped;
45
+ }
46
+ return this;
47
+ };
40
48
  EShapeButton.prototype.clone = function () {
41
49
  return new EShapeButton(this.type).copy(this);
42
50
  };
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-button.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-button.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;IAAkC,gCAAsB;IAIvD,sBAAY,IAAoC;QAApC,qBAAA,EAAA,OAAmB,UAAU,CAAC,MAAM;QAAhD,YACC,kBAAM,IAAI,CAAC,SAGX;QAFA,KAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,KAAI,CAAC,UAAU,GAAG,KAAK,CAAC;;IACzB,CAAC;IAED,sBAAI,kCAAQ;aAAZ;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;aAED,UAAa,QAAiB;YAC7B,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC3B,CAAC;;;OAJA;IASD,sBAAI,mCAAS;QAHb;;WAEG;aACH;YACC,OAAO,IAAI,CAAC,UAAU,CAAC;QACxB,CAAC;aAED,UAAc,SAAkB;YAC/B,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC7B,CAAC;;;OAJA;IAMD,4BAAK,GAAL;QACC,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,gCAAS,GAAT,UAAU,OAA2C;QACpD,IAAM,MAAM,GAAG,iBAAM,SAAS,YAAC,OAAO,CAAC,CAAC;QACxC,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxC,IAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1C,MAAM,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,WAAI,QAAQ,GAAG,SAAS,MAAG,CAAC,CAAC;QAC9D,OAAO,MAAM,CAAC;IACf,CAAC;IACF,mBAAC;AAAD,CAAC,AAxCD,CAAkC,sBAAsB,GAwCvD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeRectangleRounded } from \"./e-shape-rectangle-rounded\";\n\nexport class EShapeButton extends EShapeRectangleRounded {\n\tprotected _isToggle: boolean;\n\tprotected _isGrouped: boolean;\n\n\tconstructor(type: EShapeType = EShapeType.BUTTON) {\n\t\tsuper(type);\n\t\tthis._isToggle = false;\n\t\tthis._isGrouped = false;\n\t}\n\n\tget isToggle(): boolean {\n\t\treturn this._isToggle;\n\t}\n\n\tset isToggle(isToggle: boolean) {\n\t\tthis._isToggle = isToggle;\n\t}\n\n\t/**\n\t * All the sibling buttons whose `isGrouped` is true is considered to to be grouped.\n\t */\n\tget isGrouped(): boolean {\n\t\treturn this._isGrouped;\n\t}\n\n\tset isGrouped(isGrouped: boolean) {\n\t\tthis._isGrouped = isGrouped;\n\t}\n\n\tclone(): EShapeRectangleRounded {\n\t\treturn new EShapeButton(this.type).copy(this);\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): DDiagramSerializedItem {\n\t\tconst result = super.serialize(manager);\n\t\tconst isToggle = this._isToggle ? 1 : 0;\n\t\tconst isGrouped = this._isGrouped ? 2 : 0;\n\t\tresult[15] = manager.addResource(`[${isToggle | isGrouped}]`);\n\t\treturn result;\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-button.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-button.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;IAAkC,gCAAsB;IAIvD,sBAAY,IAAoC;QAApC,qBAAA,EAAA,OAAmB,UAAU,CAAC,MAAM;QAAhD,YACC,kBAAM,IAAI,CAAC,SAGX;QAFA,KAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,KAAI,CAAC,UAAU,GAAG,KAAK,CAAC;;IACzB,CAAC;IAED,sBAAI,kCAAQ;aAAZ;YACC,OAAO,IAAI,CAAC,SAAS,CAAC;QACvB,CAAC;a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from \"../../d-diagram-serialized\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeRectangleRounded } from \"./e-shape-rectangle-rounded\";\n\nexport class EShapeButton extends EShapeRectangleRounded {\n\tprotected _isToggle: boolean;\n\tprotected _isGrouped: boolean;\n\n\tconstructor(type: EShapeType = EShapeType.BUTTON) {\n\t\tsuper(type);\n\t\tthis._isToggle = false;\n\t\tthis._isGrouped = false;\n\t}\n\n\tget isToggle(): boolean {\n\t\treturn this._isToggle;\n\t}\n\n\tset isToggle(isToggle: boolean) {\n\t\tthis._isToggle = isToggle;\n\t}\n\n\t/**\n\t * All the sibling buttons whose `isGrouped` is true is considered to to be grouped.\n\t */\n\tget isGrouped(): boolean {\n\t\treturn this._isGrouped;\n\t}\n\n\tset isGrouped(isGrouped: boolean) {\n\t\tthis._isGrouped = isGrouped;\n\t}\n\n\toverride copy(source: EShape, part?: number): this {\n\t\tsuper.copy(source, part);\n\t\tif (source instanceof EShapeButton) {\n\t\t\tthis._isToggle = source.isToggle;\n\t\t\tthis._isGrouped = source.isGrouped;\n\t\t}\n\t\treturn this;\n\t}\n\n\tclone(): EShapeRectangleRounded {\n\t\treturn new EShapeButton(this.type).copy(this);\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): DDiagramSerializedItem {\n\t\tconst result = super.serialize(manager);\n\t\tconst isToggle = this._isToggle ? 1 : 0;\n\t\tconst isGrouped = this._isGrouped ? 2 : 0;\n\t\tresult[15] = manager.addResource(`[${isToggle | isGrouped}]`);\n\t\treturn result;\n\t}\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.317.0
2
+ Winter Cardinal UI v0.318.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.317.0
2
+ Winter Cardinal UI v0.318.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.317.0
2
+ Winter Cardinal UI v0.318.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.317.0
2
+ Winter Cardinal UI v0.318.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.317.0
2
+ Winter Cardinal UI v0.318.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -35446,6 +35446,14 @@ var EShapeButton = /** @class */ (function (_super) {
35446
35446
  enumerable: false,
35447
35447
  configurable: true
35448
35448
  });
35449
+ EShapeButton.prototype.copy = function (source, part) {
35450
+ _super.prototype.copy.call(this, source, part);
35451
+ if (source instanceof EShapeButton) {
35452
+ this._isToggle = source.isToggle;
35453
+ this._isGrouped = source.isGrouped;
35454
+ }
35455
+ return this;
35456
+ };
35449
35457
  EShapeButton.prototype.clone = function () {
35450
35458
  return new EShapeButton(this.type).copy(this);
35451
35459
  };
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.317.0
2
+ Winter Cardinal UI v0.318.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -35443,6 +35443,14 @@
35443
35443
  enumerable: false,
35444
35444
  configurable: true
35445
35445
  });
35446
+ EShapeButton.prototype.copy = function (source, part) {
35447
+ _super.prototype.copy.call(this, source, part);
35448
+ if (source instanceof EShapeButton) {
35449
+ this._isToggle = source.isToggle;
35450
+ this._isGrouped = source.isGrouped;
35451
+ }
35452
+ return this;
35453
+ };
35446
35454
  EShapeButton.prototype.clone = function () {
35447
35455
  return new EShapeButton(this.type).copy(this);
35448
35456
  };