@wcardinal/wcardinal-ui 0.252.0 → 0.253.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,2 +1,2 @@
1
1
  import { EShape } from "../e-shape";
2
- export declare type EShapeActionOpenDialogOpener = (target: string, shape: EShape) => void;
2
+ export declare type EShapeActionOpenDialogOpener = (target: string, argument: unknown, shape: EShape) => void;
@@ -6,6 +6,7 @@ import { EShapeActionRuntimeConditional } from "./e-shape-action-runtime-conditi
6
6
  import { EShapeActionValueOpenDialogExtension } from "./e-shape-action-value-open-dialog-extension";
7
7
  export declare class EShapeActionRuntimeOpenDialogExtension extends EShapeActionRuntimeConditional {
8
8
  protected readonly target: EShapeActionExpression<string | null>;
9
+ protected readonly argument: EShapeActionExpression<unknown>;
9
10
  protected readonly opener?: EShapeActionOpenDialogOpener;
10
11
  constructor(value: EShapeActionValueOpenDialogExtension);
11
12
  execute(shape: EShape, runtime: EShapeRuntime, time: number): void;
@@ -6,7 +6,7 @@ import { EShapeActionValueSubtyped } from "./e-shape-action-value-subtyped";
6
6
  import { EShapeActionValueType } from "./e-shape-action-value-type";
7
7
  import { EShapeActionValueOpenDialogType } from "./e-shape-action-value-open-dialog-type";
8
8
  import { EShapeActionRuntime } from "./e-shape-action-runtime";
9
- export declare type EShapeActionValueOpenDialogExtensionSerialized = [
9
+ export declare type EShapeActionValueOpenDialogExtensionSerialized1 = [
10
10
  typeof EShapeActionValueType.OPEN,
11
11
  number,
12
12
  typeof EShapeActionValueOpenType.DIALOG,
@@ -15,10 +15,22 @@ export declare type EShapeActionValueOpenDialogExtensionSerialized = [
15
15
  -1,
16
16
  EShapeActionValueOpenDialogType
17
17
  ];
18
+ export declare type EShapeActionValueOpenDialogExtensionSerialized2 = [
19
+ typeof EShapeActionValueType.OPEN,
20
+ number,
21
+ typeof EShapeActionValueOpenType.DIALOG,
22
+ number,
23
+ 0,
24
+ -1,
25
+ EShapeActionValueOpenDialogType,
26
+ number
27
+ ];
28
+ export declare type EShapeActionValueOpenDialogExtensionSerialized = EShapeActionValueOpenDialogExtensionSerialized1 | EShapeActionValueOpenDialogExtensionSerialized2;
18
29
  export declare class EShapeActionValueOpenDialogExtension extends EShapeActionValueSubtyped<typeof EShapeActionValueOpenType.DIALOG> {
19
30
  readonly target: string;
31
+ readonly argument: string;
20
32
  readonly dialogType: EShapeActionValueOpenDialogType;
21
- constructor(condition: string, target: string, dialogType: EShapeActionValueOpenDialogType);
33
+ constructor(condition: string, target: string, argument: string, dialogType: EShapeActionValueOpenDialogType);
22
34
  isEquals(value: EShapeActionValue): boolean;
23
35
  toRuntime(): EShapeActionRuntime;
24
36
  serialize(manager: EShapeResourceManagerSerialization): number;
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-open-dialog-opener.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-open-dialog-opener.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\n\nexport type EShapeActionOpenDialogOpener = (target: string, shape: EShape) => void;\n"]}
1
+ {"version":3,"file":"e-shape-action-open-dialog-opener.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-open-dialog-opener.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\n\nexport type EShapeActionOpenDialogOpener = (\n\ttarget: string,\n\targument: unknown,\n\tshape: EShape\n) => void;\n"]}
@@ -13,6 +13,7 @@ var EShapeActionRuntimeOpenDialogExtension = /** @class */ (function (_super) {
13
13
  function EShapeActionRuntimeOpenDialogExtension(value) {
14
14
  var _this = _super.call(this, value, EShapeRuntimeReset.NONE) || this;
15
15
  _this.target = EShapeActionExpressions.ofStringOrNull(value.target);
16
+ _this.argument = EShapeActionExpressions.ofUnknown(value.target);
16
17
  var extension = EShapeActionOpenDialogExtensions.get(value.dialogType);
17
18
  if (extension) {
18
19
  _this.opener = extension.opener;
@@ -25,8 +26,9 @@ var EShapeActionRuntimeOpenDialogExtension = /** @class */ (function (_super) {
25
26
  if (this.condition(shape, time, EShapeActionEnvironment)) {
26
27
  var target_1 = this.target(shape, time, EShapeActionEnvironment);
27
28
  if (target_1 != null) {
29
+ var argument_1 = this.argument(shape, time, EShapeActionEnvironment);
28
30
  setTimeout(function () {
29
- opener(target_1, shape);
31
+ opener(target_1, argument_1, shape);
30
32
  }, 0);
31
33
  }
32
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-runtime-open-dialog-extension.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-open-dialog-extension.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAE3F,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAGtF;IAA4D,0DAA8B;IAIzF,gDAAY,KAA2C;QAAvD,YACC,kBAAM,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,SAMrC;QALA,KAAI,CAAC,MAAM,GAAG,uBAAuB,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACnE,IAAM,SAAS,GAAG,gCAAgC,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACzE,IAAI,SAAS,EAAE;YACd,KAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;SAC/B;;IACF,CAAC;IAED,wDAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,MAAM,EAAE;YACX,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,EAAE;gBACzD,IAAM,QAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;gBACjE,IAAI,QAAM,IAAI,IAAI,EAAE;oBACnB,UAAU,CAAC;wBACV,MAAM,CAAC,QAAM,EAAE,KAAK,CAAC,CAAC;oBACvB,CAAC,EAAE,CAAC,CAAC,CAAC;iBACN;aACD;SACD;IACF,CAAC;IACF,6CAAC;AAAD,CAAC,AA1BD,CAA4D,8BAA8B,GA0BzF","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 { EShapeActionExpression } from \"./e-shape-action-expression\";\nimport { EShapeActionExpressions } from \"./e-shape-action-expressions\";\nimport { EShapeActionOpenDialogExtensions } from \"./e-shape-action-open-dialog-extensions\";\nimport { EShapeActionOpenDialogOpener } from \"./e-shape-action-open-dialog-opener\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActionValueOpenDialogExtension } from \"./e-shape-action-value-open-dialog-extension\";\n\nexport class EShapeActionRuntimeOpenDialogExtension extends EShapeActionRuntimeConditional {\n\tprotected readonly target: EShapeActionExpression<string | null>;\n\tprotected readonly opener?: EShapeActionOpenDialogOpener;\n\n\tconstructor(value: EShapeActionValueOpenDialogExtension) {\n\t\tsuper(value, EShapeRuntimeReset.NONE);\n\t\tthis.target = EShapeActionExpressions.ofStringOrNull(value.target);\n\t\tconst extension = EShapeActionOpenDialogExtensions.get(value.dialogType);\n\t\tif (extension) {\n\t\t\tthis.opener = extension.opener;\n\t\t}\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tconst opener = this.opener;\n\t\tif (opener) {\n\t\t\tif (this.condition(shape, time, EShapeActionEnvironment)) {\n\t\t\t\tconst target = this.target(shape, time, EShapeActionEnvironment);\n\t\t\t\tif (target != null) {\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\topener(target, shape);\n\t\t\t\t\t}, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-runtime-open-dialog-extension.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-open-dialog-extension.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAE3F,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAGtF;IAA4D,0DAA8B;IAKzF,gDAAY,KAA2C;QAAvD,YACC,kBAAM,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,SAOrC;QANA,KAAI,CAAC,MAAM,GAAG,uBAAuB,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACnE,KAAI,CAAC,QAAQ,GAAG,uBAAuB,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAChE,IAAM,SAAS,GAAG,gCAAgC,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QACzE,IAAI,SAAS,EAAE;YACd,KAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;SAC/B;;IACF,CAAC;IAED,wDAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAI,MAAM,EAAE;YACX,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,EAAE;gBACzD,IAAM,QAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;gBACjE,IAAI,QAAM,IAAI,IAAI,EAAE;oBACnB,IAAM,UAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;oBACrE,UAAU,CAAC;wBACV,MAAM,CAAC,QAAM,EAAE,UAAQ,EAAE,KAAK,CAAC,CAAC;oBACjC,CAAC,EAAE,CAAC,CAAC,CAAC;iBACN;aACD;SACD;IACF,CAAC;IACF,6CAAC;AAAD,CAAC,AA7BD,CAA4D,8BAA8B,GA6BzF","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 { EShapeActionExpression } from \"./e-shape-action-expression\";\nimport { EShapeActionExpressions } from \"./e-shape-action-expressions\";\nimport { EShapeActionOpenDialogExtensions } from \"./e-shape-action-open-dialog-extensions\";\nimport { EShapeActionOpenDialogOpener } from \"./e-shape-action-open-dialog-opener\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActionValueOpenDialogExtension } from \"./e-shape-action-value-open-dialog-extension\";\n\nexport class EShapeActionRuntimeOpenDialogExtension extends EShapeActionRuntimeConditional {\n\tprotected readonly target: EShapeActionExpression<string | null>;\n\tprotected readonly argument: EShapeActionExpression<unknown>;\n\tprotected readonly opener?: EShapeActionOpenDialogOpener;\n\n\tconstructor(value: EShapeActionValueOpenDialogExtension) {\n\t\tsuper(value, EShapeRuntimeReset.NONE);\n\t\tthis.target = EShapeActionExpressions.ofStringOrNull(value.target);\n\t\tthis.argument = EShapeActionExpressions.ofUnknown(value.target);\n\t\tconst extension = EShapeActionOpenDialogExtensions.get(value.dialogType);\n\t\tif (extension) {\n\t\t\tthis.opener = extension.opener;\n\t\t}\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tconst opener = this.opener;\n\t\tif (opener) {\n\t\t\tif (this.condition(shape, time, EShapeActionEnvironment)) {\n\t\t\t\tconst target = this.target(shape, time, EShapeActionEnvironment);\n\t\t\t\tif (target != null) {\n\t\t\t\t\tconst argument = this.argument(shape, time, EShapeActionEnvironment);\n\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\topener(target, argument, shape);\n\t\t\t\t\t}, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -10,9 +10,10 @@ import { EShapeActionValues } from "./e-shape-action-values";
10
10
  import { EShapeActionRuntimeOpenDialogExtension } from "./e-shape-action-runtime-open-dialog-extension";
11
11
  var EShapeActionValueOpenDialogExtension = /** @class */ (function (_super) {
12
12
  __extends(EShapeActionValueOpenDialogExtension, _super);
13
- function EShapeActionValueOpenDialogExtension(condition, target, dialogType) {
13
+ function EShapeActionValueOpenDialogExtension(condition, target, argument, dialogType) {
14
14
  var _this = _super.call(this, EShapeActionValueType.OPEN, condition, EShapeActionValueOpenType.DIALOG) || this;
15
15
  _this.target = target;
16
+ _this.argument = argument;
16
17
  _this.dialogType = dialogType;
17
18
  return _this;
18
19
  }
@@ -20,6 +21,7 @@ var EShapeActionValueOpenDialogExtension = /** @class */ (function (_super) {
20
21
  return (_super.prototype.isEquals.call(this, value) &&
21
22
  value instanceof EShapeActionValueOpenDialogExtension &&
22
23
  this.target === value.target &&
24
+ this.argument === value.argument &&
23
25
  this.dialogType === value.dialogType);
24
26
  };
25
27
  EShapeActionValueOpenDialogExtension.prototype.toRuntime = function () {
@@ -28,12 +30,14 @@ var EShapeActionValueOpenDialogExtension = /** @class */ (function (_super) {
28
30
  EShapeActionValueOpenDialogExtension.prototype.serialize = function (manager) {
29
31
  var conditionId = manager.addResource(this.condition);
30
32
  var targetId = manager.addResource(this.target);
31
- return manager.addResource("[".concat(this.type, ",").concat(conditionId, ",").concat(this.subtype, ",").concat(targetId, ",0,-1,").concat(this.dialogType, "]"));
33
+ var argumentId = manager.addResource(this.argument);
34
+ return manager.addResource("[".concat(this.type, ",").concat(conditionId, ",").concat(this.subtype, ",").concat(targetId, ",0,-1,").concat(this.dialogType, ",").concat(argumentId, "]"));
32
35
  };
33
36
  EShapeActionValueOpenDialogExtension.deserialize = function (serialized, manager) {
34
37
  var condition = EShapeActionValues.toResource(1, serialized, manager.resources);
35
38
  var target = EShapeActionValues.toResource(3, serialized, manager.resources);
36
- return new EShapeActionValueOpenDialogExtension(condition, target, serialized[6]);
39
+ var argument = EShapeActionValues.toResource(7, serialized, manager.resources);
40
+ return new EShapeActionValueOpenDialogExtension(condition, target, argument, serialized[6]);
37
41
  };
38
42
  return EShapeActionValueOpenDialogExtension;
39
43
  }(EShapeActionValueSubtyped));
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-value-open-dialog-extension.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-value-open-dialog-extension.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,sCAAsC,EAAE,MA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S,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACnF,CAAC;IACF,2CAAC;AAAD,CAAC,AAzCD,CAA0D,yBAAyB,GAyClF","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeActionValue } from \"./e-shape-action-value\";\nimport { EShapeActionValueOpenType } from \"./e-shape-action-value-open-type\";\nimport { EShapeActionValueSubtyped } from \"./e-shape-action-value-subtyped\";\nimport { EShapeActionValueType } from \"./e-shape-action-value-type\";\nimport { EShapeActionValues } from \"./e-shape-action-values\";\nimport { EShapeActionValueOpenDialogType } from \"./e-shape-action-value-open-dialog-type\";\nimport { EShapeActionRuntime } from \"./e-shape-action-runtime\";\nimport { EShapeActionRuntimeOpenDialogExtension } from \"./e-shape-action-runtime-open-dialog-extension\";\n\nexport type EShapeActionValueOpenDialogExtensionSerialized = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\ttypeof EShapeActionValueOpenType.DIALOG,\n\tnumber,\n\t0,\n\t-1,\n\tEShapeActionValueOpenDialogType\n];\n\nexport class EShapeActionValueOpenDialogExtension extends EShapeActionValueSubtyped<\n\ttypeof EShapeActionValueOpenType.DIALOG\n> {\n\treadonly target: string;\n\treadonly dialogType: EShapeActionValueOpenDialogType;\n\n\tconstructor(condition: string, target: string, dialogType: EShapeActionValueOpenDialogType) {\n\t\tsuper(EShapeActionValueType.OPEN, condition, EShapeActionValueOpenType.DIALOG);\n\t\tthis.target = target;\n\t\tthis.dialogType = dialogType;\n\t}\n\n\tisEquals(value: EShapeActionValue): boolean {\n\t\treturn (\n\t\t\tsuper.isEquals(value) &&\n\t\t\tvalue instanceof EShapeActionValueOpenDialogExtension &&\n\t\t\tthis.target === value.target &&\n\t\t\tthis.dialogType === value.dialogType\n\t\t);\n\t}\n\n\ttoRuntime(): EShapeActionRuntime {\n\t\treturn new EShapeActionRuntimeOpenDialogExtension(this);\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): number {\n\t\tconst conditionId = manager.addResource(this.condition);\n\t\tconst targetId = manager.addResource(this.target);\n\t\treturn manager.addResource(\n\t\t\t`[${this.type},${conditionId},${this.subtype},${targetId},0,-1,${this.dialogType}]`\n\t\t);\n\t}\n\n\tstatic deserialize(\n\t\tserialized: EShapeActionValueOpenDialogExtensionSerialized,\n\t\tmanager: EShapeResourceManagerDeserialization\n\t): EShapeActionValueOpenDialogExtension {\n\t\tconst condition = EShapeActionValues.toResource(1, serialized, manager.resources);\n\t\tconst target = EShapeActionValues.toResource(3, serialized, manager.resources);\n\t\treturn new EShapeActionValueOpenDialogExtension(condition, target, serialized[6]);\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-value-open-dialog-extension.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-value-open-dialog-extension.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,sCAAsC,EAAE,MAAM,gDAAgD,CAAC;AA2BxG;IAA0D,wDAEzD;IAKA,8CACC,SAAiB,EACjB,MAAc,EACd,QAAgB,EAChB,UAA2C;QAJ5C,YAMC,kBAAM,qBAAqB,CAAC,IAAI,EAAE,SAAS,EAAE,yBAAyB,CAAC,MAAM,CAAC,SAI9E;QAHA,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC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,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7F,CAAC;IACF,2CAAC;AAAD,CAAC,AAnDD,CAA0D,yBAAyB,GAmDlF","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeActionValue } from \"./e-shape-action-value\";\nimport { EShapeActionValueOpenType } from \"./e-shape-action-value-open-type\";\nimport { EShapeActionValueSubtyped } from \"./e-shape-action-value-subtyped\";\nimport { EShapeActionValueType } from \"./e-shape-action-value-type\";\nimport { EShapeActionValues } from \"./e-shape-action-values\";\nimport { EShapeActionValueOpenDialogType } from \"./e-shape-action-value-open-dialog-type\";\nimport { EShapeActionRuntime } from \"./e-shape-action-runtime\";\nimport { EShapeActionRuntimeOpenDialogExtension } from \"./e-shape-action-runtime-open-dialog-extension\";\n\nexport type EShapeActionValueOpenDialogExtensionSerialized1 = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\ttypeof EShapeActionValueOpenType.DIALOG,\n\tnumber,\n\t0,\n\t-1,\n\tEShapeActionValueOpenDialogType\n];\n\nexport type EShapeActionValueOpenDialogExtensionSerialized2 = [\n\ttypeof EShapeActionValueType.OPEN,\n\tnumber,\n\ttypeof EShapeActionValueOpenType.DIALOG,\n\tnumber,\n\t0,\n\t-1,\n\tEShapeActionValueOpenDialogType,\n\tnumber\n];\n\nexport type EShapeActionValueOpenDialogExtensionSerialized =\n\t| EShapeActionValueOpenDialogExtensionSerialized1\n\t| EShapeActionValueOpenDialogExtensionSerialized2;\n\nexport class EShapeActionValueOpenDialogExtension extends EShapeActionValueSubtyped<\n\ttypeof EShapeActionValueOpenType.DIALOG\n> {\n\treadonly target: string;\n\treadonly argument: string;\n\treadonly dialogType: EShapeActionValueOpenDialogType;\n\n\tconstructor(\n\t\tcondition: string,\n\t\ttarget: string,\n\t\targument: string,\n\t\tdialogType: EShapeActionValueOpenDialogType\n\t) {\n\t\tsuper(EShapeActionValueType.OPEN, condition, EShapeActionValueOpenType.DIALOG);\n\t\tthis.target = target;\n\t\tthis.argument = argument;\n\t\tthis.dialogType = dialogType;\n\t}\n\n\tisEquals(value: EShapeActionValue): boolean {\n\t\treturn (\n\t\t\tsuper.isEquals(value) &&\n\t\t\tvalue instanceof EShapeActionValueOpenDialogExtension &&\n\t\t\tthis.target === value.target &&\n\t\t\tthis.argument === value.argument &&\n\t\t\tthis.dialogType === value.dialogType\n\t\t);\n\t}\n\n\ttoRuntime(): EShapeActionRuntime {\n\t\treturn new EShapeActionRuntimeOpenDialogExtension(this);\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): number {\n\t\tconst conditionId = manager.addResource(this.condition);\n\t\tconst targetId = manager.addResource(this.target);\n\t\tconst argumentId = manager.addResource(this.argument);\n\t\treturn manager.addResource(\n\t\t\t`[${this.type},${conditionId},${this.subtype},${targetId},0,-1,${this.dialogType},${argumentId}]`\n\t\t);\n\t}\n\n\tstatic deserialize(\n\t\tserialized: EShapeActionValueOpenDialogExtensionSerialized,\n\t\tmanager: EShapeResourceManagerDeserialization\n\t): EShapeActionValueOpenDialogExtension {\n\t\tconst condition = EShapeActionValues.toResource(1, serialized, manager.resources);\n\t\tconst target = EShapeActionValues.toResource(3, serialized, manager.resources);\n\t\tconst argument = EShapeActionValues.toResource(7, serialized, manager.resources);\n\t\treturn new EShapeActionValueOpenDialogExtension(condition, target, argument, serialized[6]);\n\t}\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.252.0
2
+ Winter Cardinal UI v0.253.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.252.0
2
+ Winter Cardinal UI v0.253.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.252.0
2
+ Winter Cardinal UI v0.253.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.252.0
2
+ Winter Cardinal UI v0.253.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.252.0
2
+ Winter Cardinal UI v0.253.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -31383,6 +31383,7 @@ var EShapeActionRuntimeOpenDialogExtension = /** @class */ (function (_super) {
31383
31383
  function EShapeActionRuntimeOpenDialogExtension(value) {
31384
31384
  var _this = _super.call(this, value, EShapeRuntimeReset.NONE) || this;
31385
31385
  _this.target = EShapeActionExpressions.ofStringOrNull(value.target);
31386
+ _this.argument = EShapeActionExpressions.ofUnknown(value.target);
31386
31387
  var extension = EShapeActionOpenDialogExtensions.get(value.dialogType);
31387
31388
  if (extension) {
31388
31389
  _this.opener = extension.opener;
@@ -31395,8 +31396,9 @@ var EShapeActionRuntimeOpenDialogExtension = /** @class */ (function (_super) {
31395
31396
  if (this.condition(shape, time, EShapeActionEnvironment)) {
31396
31397
  var target_1 = this.target(shape, time, EShapeActionEnvironment);
31397
31398
  if (target_1 != null) {
31399
+ var argument_1 = this.argument(shape, time, EShapeActionEnvironment);
31398
31400
  setTimeout(function () {
31399
- opener(target_1, shape);
31401
+ opener(target_1, argument_1, shape);
31400
31402
  }, 0);
31401
31403
  }
31402
31404
  }
@@ -31411,9 +31413,10 @@ var EShapeActionRuntimeOpenDialogExtension = /** @class */ (function (_super) {
31411
31413
  */
31412
31414
  var EShapeActionValueOpenDialogExtension = /** @class */ (function (_super) {
31413
31415
  __extends(EShapeActionValueOpenDialogExtension, _super);
31414
- function EShapeActionValueOpenDialogExtension(condition, target, dialogType) {
31416
+ function EShapeActionValueOpenDialogExtension(condition, target, argument, dialogType) {
31415
31417
  var _this = _super.call(this, EShapeActionValueType.OPEN, condition, EShapeActionValueOpenType.DIALOG) || this;
31416
31418
  _this.target = target;
31419
+ _this.argument = argument;
31417
31420
  _this.dialogType = dialogType;
31418
31421
  return _this;
31419
31422
  }
@@ -31421,6 +31424,7 @@ var EShapeActionValueOpenDialogExtension = /** @class */ (function (_super) {
31421
31424
  return (_super.prototype.isEquals.call(this, value) &&
31422
31425
  value instanceof EShapeActionValueOpenDialogExtension &&
31423
31426
  this.target === value.target &&
31427
+ this.argument === value.argument &&
31424
31428
  this.dialogType === value.dialogType);
31425
31429
  };
31426
31430
  EShapeActionValueOpenDialogExtension.prototype.toRuntime = function () {
@@ -31429,12 +31433,14 @@ var EShapeActionValueOpenDialogExtension = /** @class */ (function (_super) {
31429
31433
  EShapeActionValueOpenDialogExtension.prototype.serialize = function (manager) {
31430
31434
  var conditionId = manager.addResource(this.condition);
31431
31435
  var targetId = manager.addResource(this.target);
31432
- return manager.addResource("[".concat(this.type, ",").concat(conditionId, ",").concat(this.subtype, ",").concat(targetId, ",0,-1,").concat(this.dialogType, "]"));
31436
+ var argumentId = manager.addResource(this.argument);
31437
+ return manager.addResource("[".concat(this.type, ",").concat(conditionId, ",").concat(this.subtype, ",").concat(targetId, ",0,-1,").concat(this.dialogType, ",").concat(argumentId, "]"));
31433
31438
  };
31434
31439
  EShapeActionValueOpenDialogExtension.deserialize = function (serialized, manager) {
31435
31440
  var condition = EShapeActionValues.toResource(1, serialized, manager.resources);
31436
31441
  var target = EShapeActionValues.toResource(3, serialized, manager.resources);
31437
- return new EShapeActionValueOpenDialogExtension(condition, target, serialized[6]);
31442
+ var argument = EShapeActionValues.toResource(7, serialized, manager.resources);
31443
+ return new EShapeActionValueOpenDialogExtension(condition, target, argument, serialized[6]);
31438
31444
  };
31439
31445
  return EShapeActionValueOpenDialogExtension;
31440
31446
  }(EShapeActionValueSubtyped));
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.252.0
2
+ Winter Cardinal UI v0.253.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -31380,6 +31380,7 @@
31380
31380
  function EShapeActionRuntimeOpenDialogExtension(value) {
31381
31381
  var _this = _super.call(this, value, EShapeRuntimeReset.NONE) || this;
31382
31382
  _this.target = EShapeActionExpressions.ofStringOrNull(value.target);
31383
+ _this.argument = EShapeActionExpressions.ofUnknown(value.target);
31383
31384
  var extension = EShapeActionOpenDialogExtensions.get(value.dialogType);
31384
31385
  if (extension) {
31385
31386
  _this.opener = extension.opener;
@@ -31392,8 +31393,9 @@
31392
31393
  if (this.condition(shape, time, EShapeActionEnvironment)) {
31393
31394
  var target_1 = this.target(shape, time, EShapeActionEnvironment);
31394
31395
  if (target_1 != null) {
31396
+ var argument_1 = this.argument(shape, time, EShapeActionEnvironment);
31395
31397
  setTimeout(function () {
31396
- opener(target_1, shape);
31398
+ opener(target_1, argument_1, shape);
31397
31399
  }, 0);
31398
31400
  }
31399
31401
  }
@@ -31408,9 +31410,10 @@
31408
31410
  */
31409
31411
  var EShapeActionValueOpenDialogExtension = /** @class */ (function (_super) {
31410
31412
  __extends(EShapeActionValueOpenDialogExtension, _super);
31411
- function EShapeActionValueOpenDialogExtension(condition, target, dialogType) {
31413
+ function EShapeActionValueOpenDialogExtension(condition, target, argument, dialogType) {
31412
31414
  var _this = _super.call(this, EShapeActionValueType.OPEN, condition, EShapeActionValueOpenType.DIALOG) || this;
31413
31415
  _this.target = target;
31416
+ _this.argument = argument;
31414
31417
  _this.dialogType = dialogType;
31415
31418
  return _this;
31416
31419
  }
@@ -31418,6 +31421,7 @@
31418
31421
  return (_super.prototype.isEquals.call(this, value) &&
31419
31422
  value instanceof EShapeActionValueOpenDialogExtension &&
31420
31423
  this.target === value.target &&
31424
+ this.argument === value.argument &&
31421
31425
  this.dialogType === value.dialogType);
31422
31426
  };
31423
31427
  EShapeActionValueOpenDialogExtension.prototype.toRuntime = function () {
@@ -31426,12 +31430,14 @@
31426
31430
  EShapeActionValueOpenDialogExtension.prototype.serialize = function (manager) {
31427
31431
  var conditionId = manager.addResource(this.condition);
31428
31432
  var targetId = manager.addResource(this.target);
31429
- return manager.addResource("[".concat(this.type, ",").concat(conditionId, ",").concat(this.subtype, ",").concat(targetId, ",0,-1,").concat(this.dialogType, "]"));
31433
+ var argumentId = manager.addResource(this.argument);
31434
+ return manager.addResource("[".concat(this.type, ",").concat(conditionId, ",").concat(this.subtype, ",").concat(targetId, ",0,-1,").concat(this.dialogType, ",").concat(argumentId, "]"));
31430
31435
  };
31431
31436
  EShapeActionValueOpenDialogExtension.deserialize = function (serialized, manager) {
31432
31437
  var condition = EShapeActionValues.toResource(1, serialized, manager.resources);
31433
31438
  var target = EShapeActionValues.toResource(3, serialized, manager.resources);
31434
- return new EShapeActionValueOpenDialogExtension(condition, target, serialized[6]);
31439
+ var argument = EShapeActionValues.toResource(7, serialized, manager.resources);
31440
+ return new EShapeActionValueOpenDialogExtension(condition, target, argument, serialized[6]);
31435
31441
  };
31436
31442
  return EShapeActionValueOpenDialogExtension;
31437
31443
  }(EShapeActionValueSubtyped));