@wcardinal/wcardinal-ui 0.181.0 → 0.184.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.
- package/dist/types/wcardinal/ui/d-diagram-base-controller.d.ts +0 -8
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-open-opener.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/action/index.d.ts +1 -0
- package/dist/wcardinal/ui/d-diagram-base-controller.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-open-opener.js +6 -0
- package/dist/wcardinal/ui/shape/action/e-shape-action-open-opener.js.map +1 -0
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js +23 -21
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/index.js +1 -0
- package/dist/wcardinal/ui/shape/action/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-uuid-mapping-impl.js +6 -3
- package/dist/wcardinal/ui/shape/e-shape-uuid-mapping-impl.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +35 -25
- package/dist/wcardinal-ui.js +35 -25
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -27,12 +27,4 @@ export declare type DDiagramBaseControllerOpenType = number;
|
|
|
27
27
|
export interface DDiagramBaseController {
|
|
28
28
|
piece: DDiagramBasePieceController;
|
|
29
29
|
getByName(name: string): Promise<DDiagramSerializedSimple | DDiagramSerialized>;
|
|
30
|
-
/**
|
|
31
|
-
* Opens a diagram or a page.
|
|
32
|
-
*
|
|
33
|
-
* @param type a diagram or a page
|
|
34
|
-
* @param id an id to identify a diagram or a page
|
|
35
|
-
* @param inNewWindow true to open in a new window
|
|
36
|
-
*/
|
|
37
|
-
open?(type: DDiagramBaseControllerOpenType, id: string, inNewWindow: boolean): void;
|
|
38
30
|
}
|
|
@@ -3,6 +3,7 @@ export * from "./e-shape-action-bases";
|
|
|
3
3
|
export * from "./e-shape-action-expression";
|
|
4
4
|
export * from "./e-shape-action-expressions";
|
|
5
5
|
export * from "./e-shape-action-open-extensions";
|
|
6
|
+
export * from "./e-shape-action-open-opener";
|
|
6
7
|
export * from "./e-shape-action-runtime-blink-brighten";
|
|
7
8
|
export * from "./e-shape-action-runtime-blink-color-fill";
|
|
8
9
|
export * from "./e-shape-action-runtime-blink-color-stroke";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-diagram-base-controller.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-diagram-base-controller.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH;;GAEG;AACH,MAAM,CAAC,IAAM,8BAA8B,GAAG;IAC7C,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,CAAC;IACP,SAAS,EAAE,IAAI;CACN,CAAC","sourcesContent":["/**\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerialized, DDiagramSerializedSimple } from \"./d-diagram-serialized\";\n\n/**\n * {@link DDiagram} piece controller.\n */\nexport interface DDiagramBasePieceController {\n\tgetByName(name: string): Promise<DDiagramSerializedSimple | DDiagramSerialized>;\n}\n\n/**\n * {@link DDiagram} controller open type.\n */\nexport const DDiagramBaseControllerOpenType = {\n\tDIAGRAM: 0,\n\tPAGE: 1,\n\tEXTENSION: 1000\n} as const;\n\n/**\n * {@link DDiagram} controller open type.\n */\nexport type DDiagramBaseControllerOpenType = number;\n\n/**\n * {@link DDiagram} controller.\n */\nexport interface DDiagramBaseController {\n\tpiece: DDiagramBasePieceController;\n\tgetByName(name: string): Promise<DDiagramSerializedSimple | DDiagramSerialized>;\n
|
|
1
|
+
{"version":3,"file":"d-diagram-base-controller.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-diagram-base-controller.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH;;GAEG;AACH,MAAM,CAAC,IAAM,8BAA8B,GAAG;IAC7C,OAAO,EAAE,CAAC;IACV,IAAI,EAAE,CAAC;IACP,SAAS,EAAE,IAAI;CACN,CAAC","sourcesContent":["/**\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerialized, DDiagramSerializedSimple } from \"./d-diagram-serialized\";\n\n/**\n * {@link DDiagram} piece controller.\n */\nexport interface DDiagramBasePieceController {\n\tgetByName(name: string): Promise<DDiagramSerializedSimple | DDiagramSerialized>;\n}\n\n/**\n * {@link DDiagram} controller open type.\n */\nexport const DDiagramBaseControllerOpenType = {\n\tDIAGRAM: 0,\n\tPAGE: 1,\n\tEXTENSION: 1000\n} as const;\n\n/**\n * {@link DDiagram} controller open type.\n */\nexport type DDiagramBaseControllerOpenType = number;\n\n/**\n * {@link DDiagram} controller.\n */\nexport interface DDiagramBaseController {\n\tpiece: DDiagramBasePieceController;\n\tgetByName(name: string): Promise<DDiagramSerializedSimple | DDiagramSerialized>;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e-shape-action-open-opener.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-open-opener.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,CAAC,IAAM,uBAAuB,GAA2C,EAAE,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport type EShapeActionOpenOpener = (target: string, inNewWindow: boolean) => void;\n\nexport const EShapeActionOpenOpeners: Record<number, EShapeActionOpenOpener> = {};\n"]}
|
|
@@ -8,6 +8,7 @@ import { DDiagramBaseControllerOpenType } from "../../d-diagram-base-controller"
|
|
|
8
8
|
import { DDiagrams } from "../../d-diagrams";
|
|
9
9
|
import { EShapeType } from "../e-shape-type";
|
|
10
10
|
import { EShapeBase } from "../variant/e-shape-base";
|
|
11
|
+
import { EShapeActionOpenOpeners } from "./e-shape-action-open-opener";
|
|
11
12
|
var EShapeActionRuntimes = /** @class */ (function () {
|
|
12
13
|
function EShapeActionRuntimes() {
|
|
13
14
|
}
|
|
@@ -28,30 +29,31 @@ var EShapeActionRuntimes = /** @class */ (function () {
|
|
|
28
29
|
return null;
|
|
29
30
|
};
|
|
30
31
|
EShapeActionRuntimes.open = function (shape, type, target, inNewWindow) {
|
|
31
|
-
var
|
|
32
|
-
if (
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
32
|
+
var opener = EShapeActionOpenOpeners[type];
|
|
33
|
+
if (opener != null) {
|
|
34
|
+
opener(target, inNewWindow);
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
switch (type) {
|
|
38
|
+
case DDiagramBaseControllerOpenType.DIAGRAM:
|
|
39
|
+
var container_1 = this.toContainer(shape);
|
|
40
|
+
if (container_1) {
|
|
41
|
+
var controller = container_1.controller;
|
|
42
|
+
if (controller) {
|
|
41
43
|
controller.getByName(target).then(function (found) {
|
|
42
|
-
|
|
44
|
+
container_1.set(DDiagrams.toSerialized(found));
|
|
43
45
|
});
|
|
44
|
-
|
|
45
|
-
case DDiagramBaseControllerOpenType.PAGE:
|
|
46
|
-
if (inNewWindow) {
|
|
47
|
-
window.open(target);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
window.location.href = target;
|
|
51
|
-
}
|
|
52
|
-
break;
|
|
46
|
+
}
|
|
53
47
|
}
|
|
54
|
-
|
|
48
|
+
break;
|
|
49
|
+
case DDiagramBaseControllerOpenType.PAGE:
|
|
50
|
+
if (inNewWindow) {
|
|
51
|
+
window.open(target);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
window.location.href = target;
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
55
57
|
}
|
|
56
58
|
}
|
|
57
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-action-runtimes.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtimes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAEN,8BAA8B,EAC9B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"e-shape-action-runtimes.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtimes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAEN,8BAA8B,EAC9B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAgCvE;IAAA;IAgHA,CAAC;IA/GO,gCAAW,GAAlB,UAAmB,MAAe;QACjC,OAAO,MAAM,IAAI,IAAI,IAAI,MAAM,YAAY,gBAAgB,CAAC;IAC7D,CAAC;IAEM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AE,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE;wBACpD,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;wBAC9B,OAAO,IAAI,CAAC;qBACZ;iBACD;gBACD,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;aACzB;SACD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAIM,yBAAI,GAAX,UAAY,KAAa,EAAE,IAAY,EAAE,KAAe,EAAE,IAAa;QACtE,IAAM,SAAS,GAAG,oBAAoB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1D,IAAI,IAAI,KAAK,SAAS,EAAE;YACvB,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACxB,IAAI,SAAS,EAAE;gBACd,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aAClC;SACD;aAAM;YACN,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,SAAS,EAAE;gBACd,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;aAC/C;SACD;IACF,CAAC;IACF,2BAAC;AAAD,CAAC,AAhHD,IAgHC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DApplications } from \"../../d-applications\";\nimport { DCanvasContainer } from \"../../d-canvas-container\";\nimport {\n\tDDiagramBaseController,\n\tDDiagramBaseControllerOpenType\n} from \"../../d-diagram-base-controller\";\nimport { DDiagramSerialized } from \"../../d-diagram-serialized\";\nimport { DDiagrams } from \"../../d-diagrams\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"../variant/e-shape-base\";\nimport { EShapeActionOpenOpeners } from \"./e-shape-action-open-opener\";\n\nexport interface EShapeActionRuntimeContainerDataScoped {\n\tset(id: string, value: unknown, time: number): boolean;\n}\n\nexport interface EShapeActionRuntimeContainerData {\n\treadonly remote: EShapeActionRuntimeContainerDataScoped;\n\treadonly private: EShapeActionRuntimeContainerDataScoped;\n\treadonly protected: EShapeActionRuntimeContainerDataScoped;\n\n\tset(\n\t\tid: string,\n\t\tvalue: unknown,\n\t\ttime?: number,\n\t\tfrom?: number | null,\n\t\tto?: number | null\n\t): boolean;\n}\n\nexport interface EShapeActionRuntimeContainerShape {\n\temit(name: string, ...args: unknown[]): void;\n}\n\nexport interface EShapeActionRuntimeContainer extends DCanvasContainer {\n\treadonly shape: EShapeActionRuntimeContainerShape;\n\treadonly data: EShapeActionRuntimeContainerData;\n\treadonly controller: DDiagramBaseController | null;\n\n\tset(serialized: DDiagramSerialized | null): void;\n}\n\nexport class EShapeActionRuntimes {\n\tstatic isContainer(target: unknown): target is EShapeActionRuntimeContainer {\n\t\treturn target != null && target instanceof DCanvasContainer;\n\t}\n\n\tstatic isEmbedded(target: unknown): target is EShape {\n\t\treturn (\n\t\t\ttarget != null && target instanceof EShapeBase && target.type === EShapeType.EMBEDDED\n\t\t);\n\t}\n\n\tstatic toContainer(shape?: EShape | null): EShapeActionRuntimeContainer | null {\n\t\tlet current: { parent: any } | null | undefined = shape;\n\t\twhile (current != null) {\n\t\t\tif (this.isContainer(current)) {\n\t\t\t\treturn current;\n\t\t\t}\n\t\t\tcurrent = current.parent;\n\t\t}\n\t\treturn null;\n\t}\n\n\tstatic open(\n\t\tshape: EShape,\n\t\ttype: DDiagramBaseControllerOpenType,\n\t\ttarget: string,\n\t\tinNewWindow: boolean\n\t): void {\n\t\tconst opener = EShapeActionOpenOpeners[type];\n\t\tif (opener != null) {\n\t\t\topener(target, inNewWindow);\n\t\t} else {\n\t\t\tswitch (type) {\n\t\t\t\tcase DDiagramBaseControllerOpenType.DIAGRAM:\n\t\t\t\t\tconst container = this.toContainer(shape);\n\t\t\t\t\tif (container) {\n\t\t\t\t\t\tconst controller = container.controller;\n\t\t\t\t\t\tif (controller) {\n\t\t\t\t\t\t\tcontroller.getByName(target).then((found): void => {\n\t\t\t\t\t\t\t\tcontainer.set(DDiagrams.toSerialized(found));\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DDiagramBaseControllerOpenType.PAGE:\n\t\t\t\t\tif (inNewWindow) {\n\t\t\t\t\t\twindow.open(target);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twindow.location.href = target;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic write(\n\t\tshape: EShape,\n\t\tid: string,\n\t\tvalue: unknown,\n\t\ttime: number,\n\t\tremote: boolean\n\t): boolean {\n\t\tif (remote) {\n\t\t\tconst container = this.toContainer(shape);\n\t\t\tif (container) {\n\t\t\t\treturn container.data.remote.set(id, value, time);\n\t\t\t}\n\t\t} else {\n\t\t\tlet current: { parent: any } | null | undefined = shape;\n\t\t\twhile (current != null) {\n\t\t\t\tif (this.isContainer(current)) {\n\t\t\t\t\tif (current.data.private.set(id, value, time)) {\n\t\t\t\t\t\tDApplications.update(current);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t} else if (current.data.protected.set(id, value, time)) {\n\t\t\t\t\t\tDApplications.update(current);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (current.data.set(id, value, time)) {\n\t\t\t\t\t\t\tDApplications.update(current);\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t} else if (this.isEmbedded(current)) {\n\t\t\t\t\tif (current.data.getPrivate()?.set(id, value, time)) {\n\t\t\t\t\t\tDApplications.update(current);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcurrent = current.parent;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tstatic emit(shape: EShape, name: string): void;\n\tstatic emit(shape: EShape, name: string, value: unknown, time: number): void;\n\tstatic emit(shape: EShape, name: string, value?: unknown, time?: number): void {\n\t\tconst container = EShapeActionRuntimes.toContainer(shape);\n\t\tif (time === undefined) {\n\t\t\tshape.emit(name, shape);\n\t\t\tif (container) {\n\t\t\t\tcontainer.shape.emit(name, shape);\n\t\t\t}\n\t\t} else {\n\t\t\tshape.emit(name, value, time, shape);\n\t\t\tif (container) {\n\t\t\t\tcontainer.shape.emit(name, value, time, shape);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
@@ -7,6 +7,7 @@ export * from "./e-shape-action-bases";
|
|
|
7
7
|
export * from "./e-shape-action-expression";
|
|
8
8
|
export * from "./e-shape-action-expressions";
|
|
9
9
|
export * from "./e-shape-action-open-extensions";
|
|
10
|
+
export * from "./e-shape-action-open-opener";
|
|
10
11
|
export * from "./e-shape-action-runtime-blink-brighten";
|
|
11
12
|
export * from "./e-shape-action-runtime-blink-color-fill";
|
|
12
13
|
export * from "./e-shape-action-runtime-blink-color-stroke";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACt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,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./deserialize-action-value\";\nexport * from \"./e-shape-action-bases\";\nexport * from \"./e-shape-action-expression\";\nexport * from \"./e-shape-action-expressions\";\nexport * from \"./e-shape-action-open-extensions\";\nexport * from \"./e-shape-action-runtime-blink-brighten\";\nexport * from \"./e-shape-action-runtime-blink-color-fill\";\nexport * from \"./e-shape-action-runtime-blink-color-stroke\";\nexport * from \"./e-shape-action-runtime-blink-darken\";\nexport * from \"./e-shape-action-runtime-blink-opacity\";\nexport * from \"./e-shape-action-runtime-blink-visibility\";\nexport * from \"./e-shape-action-runtime-blink\";\nexport * from \"./e-shape-action-runtime-change-color-brightness\";\nexport * from \"./e-shape-action-runtime-change-color-code\";\nexport * from \"./e-shape-action-runtime-change-color\";\nexport * from \"./e-shape-action-runtime-change-cursor\";\nexport * from \"./e-shape-action-runtime-change-text-number\";\nexport * from \"./e-shape-action-runtime-change-text-text\";\nexport * from \"./e-shape-action-runtime-conditional\";\nexport * from \"./e-shape-action-runtime-emit-event\";\nexport * from \"./e-shape-action-runtime-gesture-layer\";\nexport * from \"./e-shape-action-runtime-gesture-shape\";\nexport * from \"./e-shape-action-runtime-misc-emit-event\";\nexport * from \"./e-shape-action-runtime-misc-html-element\";\nexport * from \"./e-shape-action-runtime-misc-input-input\";\nexport * from \"./e-shape-action-runtime-misc-input-integer\";\nexport * from \"./e-shape-action-runtime-misc-input-number\";\nexport * from \"./e-shape-action-runtime-misc-input-real\";\nexport * from \"./e-shape-action-runtime-misc-input-text\";\nexport * from \"./e-shape-action-runtime-misc-input\";\nexport * from \"./e-shape-action-runtime-misc-write-both\";\nexport * from \"./e-shape-action-runtime-misc-write-local\";\nexport * from \"./e-shape-action-runtime-misc-write-remote\";\nexport * from \"./e-shape-action-runtime-misc-write\";\nexport * from \"./e-shape-action-runtime-open-dialog-boolean\";\nexport * from \"./e-shape-action-runtime-open-dialog-date\";\nexport * from \"./e-shape-action-runtime-open-dialog-datetime\";\nexport * from \"./e-shape-action-runtime-open-dialog-integer\";\nexport * from \"./e-shape-action-runtime-open-dialog-real\";\nexport * from \"./e-shape-action-runtime-open-dialog-text\";\nexport * from \"./e-shape-action-runtime-open-dialog-time\";\nexport * from \"./e-shape-action-runtime-open-dialog\";\nexport * from \"./e-shape-action-runtime-open\";\nexport * from \"./e-shape-action-runtime-show-hide-layer\";\nexport * from \"./e-shape-action-runtime-show-hide-shape\";\nexport * from \"./e-shape-action-runtime-show-hide\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-x\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-y\";\nexport * from \"./e-shape-action-runtime-transform-move-forward-or-backward\";\nexport * from \"./e-shape-action-runtime-transform-move-left-or-right\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-x\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-y\";\nexport * from \"./e-shape-action-runtime-transform-move\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize\";\nexport * from \"./e-shape-action-runtime-transform-rotate-absolute\";\nexport * from \"./e-shape-action-runtime-transform-rotate-relative\";\nexport * from \"./e-shape-action-runtime-transform-rotate\";\nexport * from \"./e-shape-action-runtime\";\nexport * from \"./e-shape-action-runtimes\";\nexport * from \"./e-shape-action-value-base\";\nexport * from \"./e-shape-action-value-blink-type\";\nexport * from \"./e-shape-action-value-blink\";\nexport * from \"./e-shape-action-value-change-color-brightness\";\nexport * from \"./e-shape-action-value-change-color-code\";\nexport * from \"./e-shape-action-value-change-color-target\";\nexport * from \"./e-shape-action-value-change-color-type-legacy\";\nexport * from \"./e-shape-action-value-change-color-type\";\nexport * from \"./e-shape-action-value-change-color-types\";\nexport * from \"./e-shape-action-value-change-color\";\nexport * from \"./e-shape-action-value-change-cursor\";\nexport * from \"./e-shape-action-value-change-text-type\";\nexport * from \"./e-shape-action-value-change-text\";\nexport * from \"./e-shape-action-value-deserializers\";\nexport * from \"./e-shape-action-value-emit-event\";\nexport * from \"./e-shape-action-value-gesture-operation-type\";\nexport * from \"./e-shape-action-value-gesture-type\";\nexport * from \"./e-shape-action-value-gesture\";\nexport * from \"./e-shape-action-value-misc-emit-event\";\nexport * from \"./e-shape-action-value-misc-html-element\";\nexport * from \"./e-shape-action-value-misc-input\";\nexport * from \"./e-shape-action-value-misc-type\";\nexport * from \"./e-shape-action-value-misc-write\";\nexport * from \"./e-shape-action-value-misc\";\nexport * from \"./e-shape-action-value-on-input-action\";\nexport * from \"./e-shape-action-value-on-input-actions\";\nexport * from \"./e-shape-action-value-open-dialog-type\";\nexport * from \"./e-shape-action-value-open-dialog\";\nexport * from \"./e-shape-action-value-open-extension\";\nexport * from \"./e-shape-action-value-open-type\";\nexport * from \"./e-shape-action-value-open\";\nexport * from \"./e-shape-action-value-opetyped\";\nexport * from \"./e-shape-action-value-show-hide-layer\";\nexport * from \"./e-shape-action-value-show-hide-shape\";\nexport * from \"./e-shape-action-value-show-hide-type\";\nexport * from \"./e-shape-action-value-show-hide\";\nexport * from \"./e-shape-action-value-subtyped\";\nexport * from \"./e-shape-action-value-transform-move-type\";\nexport * from \"./e-shape-action-value-transform-move\";\nexport * from \"./e-shape-action-value-transform-resize-type\";\nexport * from \"./e-shape-action-value-transform-resize\";\nexport * from \"./e-shape-action-value-transform-rotate-type\";\nexport * from \"./e-shape-action-value-transform-rotate\";\nexport * from \"./e-shape-action-value-transform-type\";\nexport * from \"./e-shape-action-value-type\";\nexport * from \"./e-shape-action-value\";\nexport * from \"./e-shape-action-values\";\nexport * from \"./e-shape-action\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,qCAAqC,CAAC;AACpD,cAAc,8CAA8C,CAAC;AA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CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./deserialize-action-value\";\nexport * from \"./e-shape-action-bases\";\nexport * from \"./e-shape-action-expression\";\nexport * from \"./e-shape-action-expressions\";\nexport * from \"./e-shape-action-open-extensions\";\nexport * from \"./e-shape-action-open-opener\";\nexport * from \"./e-shape-action-runtime-blink-brighten\";\nexport * from \"./e-shape-action-runtime-blink-color-fill\";\nexport * from \"./e-shape-action-runtime-blink-color-stroke\";\nexport * from \"./e-shape-action-runtime-blink-darken\";\nexport * from \"./e-shape-action-runtime-blink-opacity\";\nexport * from \"./e-shape-action-runtime-blink-visibility\";\nexport * from \"./e-shape-action-runtime-blink\";\nexport * from \"./e-shape-action-runtime-change-color-brightness\";\nexport * from \"./e-shape-action-runtime-change-color-code\";\nexport * from \"./e-shape-action-runtime-change-color\";\nexport * from \"./e-shape-action-runtime-change-cursor\";\nexport * from \"./e-shape-action-runtime-change-text-number\";\nexport * from \"./e-shape-action-runtime-change-text-text\";\nexport * from \"./e-shape-action-runtime-conditional\";\nexport * from \"./e-shape-action-runtime-emit-event\";\nexport * from \"./e-shape-action-runtime-gesture-layer\";\nexport * from \"./e-shape-action-runtime-gesture-shape\";\nexport * from \"./e-shape-action-runtime-misc-emit-event\";\nexport * from \"./e-shape-action-runtime-misc-html-element\";\nexport * from \"./e-shape-action-runtime-misc-input-input\";\nexport * from \"./e-shape-action-runtime-misc-input-integer\";\nexport * from \"./e-shape-action-runtime-misc-input-number\";\nexport * from \"./e-shape-action-runtime-misc-input-real\";\nexport * from \"./e-shape-action-runtime-misc-input-text\";\nexport * from \"./e-shape-action-runtime-misc-input\";\nexport * from \"./e-shape-action-runtime-misc-write-both\";\nexport * from \"./e-shape-action-runtime-misc-write-local\";\nexport * from \"./e-shape-action-runtime-misc-write-remote\";\nexport * from \"./e-shape-action-runtime-misc-write\";\nexport * from \"./e-shape-action-runtime-open-dialog-boolean\";\nexport * from \"./e-shape-action-runtime-open-dialog-date\";\nexport * from \"./e-shape-action-runtime-open-dialog-datetime\";\nexport * from \"./e-shape-action-runtime-open-dialog-integer\";\nexport * from \"./e-shape-action-runtime-open-dialog-real\";\nexport * from \"./e-shape-action-runtime-open-dialog-text\";\nexport * from \"./e-shape-action-runtime-open-dialog-time\";\nexport * from \"./e-shape-action-runtime-open-dialog\";\nexport * from \"./e-shape-action-runtime-open\";\nexport * from \"./e-shape-action-runtime-show-hide-layer\";\nexport * from \"./e-shape-action-runtime-show-hide-shape\";\nexport * from \"./e-shape-action-runtime-show-hide\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-x\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-y\";\nexport * from \"./e-shape-action-runtime-transform-move-forward-or-backward\";\nexport * from \"./e-shape-action-runtime-transform-move-left-or-right\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-x\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-y\";\nexport * from \"./e-shape-action-runtime-transform-move\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize\";\nexport * from \"./e-shape-action-runtime-transform-rotate-absolute\";\nexport * from \"./e-shape-action-runtime-transform-rotate-relative\";\nexport * from \"./e-shape-action-runtime-transform-rotate\";\nexport * from \"./e-shape-action-runtime\";\nexport * from \"./e-shape-action-runtimes\";\nexport * from \"./e-shape-action-value-base\";\nexport * from \"./e-shape-action-value-blink-type\";\nexport * from \"./e-shape-action-value-blink\";\nexport * from \"./e-shape-action-value-change-color-brightness\";\nexport * from \"./e-shape-action-value-change-color-code\";\nexport * from \"./e-shape-action-value-change-color-target\";\nexport * from \"./e-shape-action-value-change-color-type-legacy\";\nexport * from \"./e-shape-action-value-change-color-type\";\nexport * from \"./e-shape-action-value-change-color-types\";\nexport * from \"./e-shape-action-value-change-color\";\nexport * from \"./e-shape-action-value-change-cursor\";\nexport * from \"./e-shape-action-value-change-text-type\";\nexport * from \"./e-shape-action-value-change-text\";\nexport * from \"./e-shape-action-value-deserializers\";\nexport * from \"./e-shape-action-value-emit-event\";\nexport * from \"./e-shape-action-value-gesture-operation-type\";\nexport * from \"./e-shape-action-value-gesture-type\";\nexport * from \"./e-shape-action-value-gesture\";\nexport * from \"./e-shape-action-value-misc-emit-event\";\nexport * from \"./e-shape-action-value-misc-html-element\";\nexport * from \"./e-shape-action-value-misc-input\";\nexport * from \"./e-shape-action-value-misc-type\";\nexport * from \"./e-shape-action-value-misc-write\";\nexport * from \"./e-shape-action-value-misc\";\nexport * from \"./e-shape-action-value-on-input-action\";\nexport * from \"./e-shape-action-value-on-input-actions\";\nexport * from \"./e-shape-action-value-open-dialog-type\";\nexport * from \"./e-shape-action-value-open-dialog\";\nexport * from \"./e-shape-action-value-open-extension\";\nexport * from \"./e-shape-action-value-open-type\";\nexport * from \"./e-shape-action-value-open\";\nexport * from \"./e-shape-action-value-opetyped\";\nexport * from \"./e-shape-action-value-show-hide-layer\";\nexport * from \"./e-shape-action-value-show-hide-shape\";\nexport * from \"./e-shape-action-value-show-hide-type\";\nexport * from \"./e-shape-action-value-show-hide\";\nexport * from \"./e-shape-action-value-subtyped\";\nexport * from \"./e-shape-action-value-transform-move-type\";\nexport * from \"./e-shape-action-value-transform-move\";\nexport * from \"./e-shape-action-value-transform-resize-type\";\nexport * from \"./e-shape-action-value-transform-resize\";\nexport * from \"./e-shape-action-value-transform-rotate-type\";\nexport * from \"./e-shape-action-value-transform-rotate\";\nexport * from \"./e-shape-action-value-transform-type\";\nexport * from \"./e-shape-action-value-type\";\nexport * from \"./e-shape-action-value\";\nexport * from \"./e-shape-action-values\";\nexport * from \"./e-shape-action\";\n"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
import { EShapeType } from "./e-shape-type";
|
|
5
6
|
var EShapeUuidMappingImpl = /** @class */ (function () {
|
|
6
7
|
function EShapeUuidMappingImpl(shapes) {
|
|
7
8
|
this._shapes = shapes;
|
|
@@ -26,9 +27,11 @@ var EShapeUuidMappingImpl = /** @class */ (function () {
|
|
|
26
27
|
for (var i = 0, imax = shapes.length; i < imax; ++i) {
|
|
27
28
|
var shape = shapes[i];
|
|
28
29
|
result.set(shape.uuid, shape);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
if (shape.type !== EShapeType.EMBEDDED) {
|
|
31
|
+
var children = shape.children;
|
|
32
|
+
if (0 < children.length) {
|
|
33
|
+
this.fillUuidToShape(children, result);
|
|
34
|
+
}
|
|
32
35
|
}
|
|
33
36
|
}
|
|
34
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-uuid-mapping-impl.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-uuid-mapping-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"e-shape-uuid-mapping-impl.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-uuid-mapping-impl.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG5C;IAIC,+BAAY,MAAgB;QAC3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,oCAAI,GAAJ,UAAK,IAAY;QAChB,OAAO,IAAI,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IAES,8CAAc,GAAxB;QACC,IAAI,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;QAC/B,IAAI,MAAM,IAAI,IAAI,EAAE;YACnB,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;YAC/B,IAAI,CAAC,YAAY,GAAG,MAAM,CAAC;SAC3B;QACD,OAAO,MAAM,CAAC;IACf,CAAC;IAES,8CAAc,GAAxB;QACC,IAAM,MAAM,GAAG,IAAI,GAAG,EAAkB,CAAC;QACzC,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QAC3C,OAAO,MAAM,CAAC;IACf,CAAC;IAES,+CAAe,GAAzB,UAA0B,MAAgB,EAAE,MAA2B;QACtE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;YACpD,IAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YACxB,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YAE9B,IAAI,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,QAAQ,EAAE;gBACvC,IAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;gBAChC,IAAI,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE;oBACxB,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;iBACvC;aACD;SACD;IACF,CAAC;IACF,4BAAC;AAAD,CAAC,AAxCD,IAwCC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"./e-shape\";\nimport { EShapeType } from \"./e-shape-type\";\nimport { EShapeUuidMapping } from \"./e-shape-uuid-mapping\";\n\nexport class EShapeUuidMappingImpl implements EShapeUuidMapping {\n\tprotected _shapes: EShape[];\n\tprotected _uuidToShape?: Map<number, EShape>;\n\n\tconstructor(shapes: EShape[]) {\n\t\tthis._shapes = shapes;\n\t}\n\n\tfind(uuid: number): EShape | undefined {\n\t\treturn this.getUuidToShape().get(uuid);\n\t}\n\n\tprotected getUuidToShape(): Map<number, EShape> {\n\t\tlet result = this._uuidToShape;\n\t\tif (result == null) {\n\t\t\tresult = this.newUuidToShape();\n\t\t\tthis._uuidToShape = result;\n\t\t}\n\t\treturn result;\n\t}\n\n\tprotected newUuidToShape(): Map<number, EShape> {\n\t\tconst result = new Map<number, EShape>();\n\t\tthis.fillUuidToShape(this._shapes, result);\n\t\treturn result;\n\t}\n\n\tprotected fillUuidToShape(shapes: EShape[], result: Map<number, EShape>): void {\n\t\tfor (let i = 0, imax = shapes.length; i < imax; ++i) {\n\t\t\tconst shape = shapes[i];\n\t\t\tresult.set(shape.uuid, shape);\n\n\t\t\tif (shape.type !== EShapeType.EMBEDDED) {\n\t\t\t\tconst children = shape.children;\n\t\t\t\tif (0 < children.length) {\n\t\t\t\t\tthis.fillUuidToShape(children, result);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.184.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -15279,9 +15279,11 @@ var EShapeUuidMappingImpl = /** @class */ (function () {
|
|
|
15279
15279
|
for (var i = 0, imax = shapes.length; i < imax; ++i) {
|
|
15280
15280
|
var shape = shapes[i];
|
|
15281
15281
|
result.set(shape.uuid, shape);
|
|
15282
|
-
|
|
15283
|
-
|
|
15284
|
-
|
|
15282
|
+
if (shape.type !== EShapeType.EMBEDDED) {
|
|
15283
|
+
var children = shape.children;
|
|
15284
|
+
if (0 < children.length) {
|
|
15285
|
+
this.fillUuidToShape(children, result);
|
|
15286
|
+
}
|
|
15285
15287
|
}
|
|
15286
15288
|
}
|
|
15287
15289
|
};
|
|
@@ -19034,6 +19036,12 @@ var DDiagrams = /** @class */ (function () {
|
|
|
19034
19036
|
return DDiagrams;
|
|
19035
19037
|
}());
|
|
19036
19038
|
|
|
19039
|
+
/*
|
|
19040
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
19041
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
19042
|
+
*/
|
|
19043
|
+
var EShapeActionOpenOpeners = {};
|
|
19044
|
+
|
|
19037
19045
|
/*
|
|
19038
19046
|
* Copyright (C) 2019 Toshiba Corporation
|
|
19039
19047
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -19058,30 +19066,31 @@ var EShapeActionRuntimes = /** @class */ (function () {
|
|
|
19058
19066
|
return null;
|
|
19059
19067
|
};
|
|
19060
19068
|
EShapeActionRuntimes.open = function (shape, type, target, inNewWindow) {
|
|
19061
|
-
var
|
|
19062
|
-
if (
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19068
|
-
|
|
19069
|
-
|
|
19070
|
-
|
|
19069
|
+
var opener = EShapeActionOpenOpeners[type];
|
|
19070
|
+
if (opener != null) {
|
|
19071
|
+
opener(target, inNewWindow);
|
|
19072
|
+
}
|
|
19073
|
+
else {
|
|
19074
|
+
switch (type) {
|
|
19075
|
+
case DDiagramBaseControllerOpenType.DIAGRAM:
|
|
19076
|
+
var container_1 = this.toContainer(shape);
|
|
19077
|
+
if (container_1) {
|
|
19078
|
+
var controller = container_1.controller;
|
|
19079
|
+
if (controller) {
|
|
19071
19080
|
controller.getByName(target).then(function (found) {
|
|
19072
|
-
|
|
19081
|
+
container_1.set(DDiagrams.toSerialized(found));
|
|
19073
19082
|
});
|
|
19074
|
-
|
|
19075
|
-
case DDiagramBaseControllerOpenType.PAGE:
|
|
19076
|
-
if (inNewWindow) {
|
|
19077
|
-
window.open(target);
|
|
19078
|
-
}
|
|
19079
|
-
else {
|
|
19080
|
-
window.location.href = target;
|
|
19081
|
-
}
|
|
19082
|
-
break;
|
|
19083
|
+
}
|
|
19083
19084
|
}
|
|
19084
|
-
|
|
19085
|
+
break;
|
|
19086
|
+
case DDiagramBaseControllerOpenType.PAGE:
|
|
19087
|
+
if (inNewWindow) {
|
|
19088
|
+
window.open(target);
|
|
19089
|
+
}
|
|
19090
|
+
else {
|
|
19091
|
+
window.location.href = target;
|
|
19092
|
+
}
|
|
19093
|
+
break;
|
|
19085
19094
|
}
|
|
19086
19095
|
}
|
|
19087
19096
|
};
|
|
@@ -87774,6 +87783,7 @@ exports.EShapeAction = EShapeAction;
|
|
|
87774
87783
|
exports.EShapeActionBases = EShapeActionBases;
|
|
87775
87784
|
exports.EShapeActionExpressions = EShapeActionExpressions;
|
|
87776
87785
|
exports.EShapeActionOpenExtensions = EShapeActionOpenExtensions;
|
|
87786
|
+
exports.EShapeActionOpenOpeners = EShapeActionOpenOpeners;
|
|
87777
87787
|
exports.EShapeActionRuntime = EShapeActionRuntime;
|
|
87778
87788
|
exports.EShapeActionRuntimeBlink = EShapeActionRuntimeBlink;
|
|
87779
87789
|
exports.EShapeActionRuntimeBlinkBrighten = EShapeActionRuntimeBlinkBrighten;
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.184.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -15276,9 +15276,11 @@
|
|
|
15276
15276
|
for (var i = 0, imax = shapes.length; i < imax; ++i) {
|
|
15277
15277
|
var shape = shapes[i];
|
|
15278
15278
|
result.set(shape.uuid, shape);
|
|
15279
|
-
|
|
15280
|
-
|
|
15281
|
-
|
|
15279
|
+
if (shape.type !== EShapeType.EMBEDDED) {
|
|
15280
|
+
var children = shape.children;
|
|
15281
|
+
if (0 < children.length) {
|
|
15282
|
+
this.fillUuidToShape(children, result);
|
|
15283
|
+
}
|
|
15282
15284
|
}
|
|
15283
15285
|
}
|
|
15284
15286
|
};
|
|
@@ -19031,6 +19033,12 @@
|
|
|
19031
19033
|
return DDiagrams;
|
|
19032
19034
|
}());
|
|
19033
19035
|
|
|
19036
|
+
/*
|
|
19037
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
19038
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
19039
|
+
*/
|
|
19040
|
+
var EShapeActionOpenOpeners = {};
|
|
19041
|
+
|
|
19034
19042
|
/*
|
|
19035
19043
|
* Copyright (C) 2019 Toshiba Corporation
|
|
19036
19044
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -19055,30 +19063,31 @@
|
|
|
19055
19063
|
return null;
|
|
19056
19064
|
};
|
|
19057
19065
|
EShapeActionRuntimes.open = function (shape, type, target, inNewWindow) {
|
|
19058
|
-
var
|
|
19059
|
-
if (
|
|
19060
|
-
|
|
19061
|
-
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19066
|
+
var opener = EShapeActionOpenOpeners[type];
|
|
19067
|
+
if (opener != null) {
|
|
19068
|
+
opener(target, inNewWindow);
|
|
19069
|
+
}
|
|
19070
|
+
else {
|
|
19071
|
+
switch (type) {
|
|
19072
|
+
case DDiagramBaseControllerOpenType.DIAGRAM:
|
|
19073
|
+
var container_1 = this.toContainer(shape);
|
|
19074
|
+
if (container_1) {
|
|
19075
|
+
var controller = container_1.controller;
|
|
19076
|
+
if (controller) {
|
|
19068
19077
|
controller.getByName(target).then(function (found) {
|
|
19069
|
-
|
|
19078
|
+
container_1.set(DDiagrams.toSerialized(found));
|
|
19070
19079
|
});
|
|
19071
|
-
|
|
19072
|
-
case DDiagramBaseControllerOpenType.PAGE:
|
|
19073
|
-
if (inNewWindow) {
|
|
19074
|
-
window.open(target);
|
|
19075
|
-
}
|
|
19076
|
-
else {
|
|
19077
|
-
window.location.href = target;
|
|
19078
|
-
}
|
|
19079
|
-
break;
|
|
19080
|
+
}
|
|
19080
19081
|
}
|
|
19081
|
-
|
|
19082
|
+
break;
|
|
19083
|
+
case DDiagramBaseControllerOpenType.PAGE:
|
|
19084
|
+
if (inNewWindow) {
|
|
19085
|
+
window.open(target);
|
|
19086
|
+
}
|
|
19087
|
+
else {
|
|
19088
|
+
window.location.href = target;
|
|
19089
|
+
}
|
|
19090
|
+
break;
|
|
19082
19091
|
}
|
|
19083
19092
|
}
|
|
19084
19093
|
};
|
|
@@ -69530,6 +69539,7 @@
|
|
|
69530
69539
|
EShapeActionBases: EShapeActionBases,
|
|
69531
69540
|
EShapeActionExpressions: EShapeActionExpressions,
|
|
69532
69541
|
EShapeActionOpenExtensions: EShapeActionOpenExtensions,
|
|
69542
|
+
EShapeActionOpenOpeners: EShapeActionOpenOpeners,
|
|
69533
69543
|
EShapeActionRuntimeBlinkBrighten: EShapeActionRuntimeBlinkBrighten,
|
|
69534
69544
|
EShapeActionRuntimeBlinkColorFill: EShapeActionRuntimeBlinkColorFill,
|
|
69535
69545
|
EShapeActionRuntimeBlinkColorStroke: EShapeActionRuntimeBlinkColorStroke,
|