@wcardinal/wcardinal-ui 0.167.0 → 0.170.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-button-select.d.ts +4 -3
- package/dist/types/wcardinal/ui/d-command-flag.d.ts +5 -1
- package/dist/types/wcardinal/ui/d-controller-default-command.d.ts +7 -0
- package/dist/types/wcardinal/ui/d-diagram-base.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas-base.d.ts +3 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-impl.d.ts +20 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-private-impl.d.ts +7 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-private.d.ts +5 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-data.d.ts +16 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-shape-impl.d.ts +9 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-shape.d.ts +6 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-ticker-impl.d.ts +10 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas-ticker.d.ts +6 -0
- package/dist/types/wcardinal/ui/d-diagram-canvas.d.ts +30 -10
- package/dist/types/wcardinal/ui/d-diagram-data-impl.d.ts +29 -0
- package/dist/types/wcardinal/ui/d-diagram-data-mapper.d.ts +8 -0
- package/dist/types/wcardinal/ui/d-diagram-data-private-impl.d.ts +7 -0
- package/dist/types/wcardinal/ui/d-diagram-data-private.d.ts +3 -0
- package/dist/types/wcardinal/ui/d-diagram-data-remote-impl.d.ts +6 -0
- package/dist/types/wcardinal/ui/d-diagram-data-remote.d.ts +1 -3
- package/dist/types/wcardinal/ui/d-diagram-data.d.ts +12 -21
- package/dist/types/wcardinal/ui/d-diagram-layer-container.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-diagram-layer.d.ts +2 -4
- package/dist/types/wcardinal/ui/d-diagram-serialized.d.ts +45 -27
- package/dist/types/wcardinal/ui/d-diagram-shape.d.ts +4 -3
- package/dist/types/wcardinal/ui/d-diagram-snapshot.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-diagram-ticker.d.ts +13 -0
- package/dist/types/wcardinal/ui/d-diagram.d.ts +3 -4
- package/dist/types/wcardinal/ui/index.d.ts +14 -2
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-impl.d.ts +50 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-mapper-impl.d.ts +17 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-mapper.d.ts +7 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-mapping-impl.d.ts +21 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-mapping.d.ts +20 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-private-impl.d.ts +7 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-private.d.ts +5 -0
- package/dist/types/wcardinal/ui/shape/{variant/e-shape-data-value-impl.d.ts → e-shape-data-value-impl.d.ts} +9 -4
- package/dist/types/wcardinal/ui/shape/e-shape-data-value-order.d.ts +5 -0
- package/dist/types/wcardinal/ui/shape/{variant/e-shape-data-value-range-impl.d.ts → e-shape-data-value-range-impl.d.ts} +3 -3
- package/dist/types/wcardinal/ui/shape/e-shape-data-value-scope.d.ts +12 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-value-type.d.ts +10 -0
- package/dist/types/wcardinal/ui/shape/e-shape-data-value.d.ts +5 -5
- package/dist/types/wcardinal/ui/shape/e-shape-data.d.ts +10 -0
- package/dist/types/wcardinal/ui/shape/e-shape-resource-manager-deserialization.d.ts +12 -4
- package/dist/types/wcardinal/ui/shape/index.d.ts +12 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-button-runtime-action.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +0 -3
- package/dist/wcardinal/ui/d-button-select.js +1 -1
- package/dist/wcardinal/ui/d-button-select.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/d-command-flag.js +6 -2
- package/dist/wcardinal/ui/d-command-flag.js.map +1 -1
- package/dist/wcardinal/ui/d-controller-default-command.js +117 -80
- package/dist/wcardinal/ui/d-controller-default-command.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-base.js +8 -10
- package/dist/wcardinal/ui/d-diagram-base.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-base.js +6 -3
- package/dist/wcardinal/ui/d-diagram-canvas-base.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-data-impl.js +217 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-private-impl.js +49 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-private-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-private.js +6 -0
- package/dist/wcardinal/ui/d-diagram-canvas-data-private.js.map +1 -0
- package/dist/wcardinal/ui/{d-diagram-canvas-data-map.js → d-diagram-canvas-data.js} +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-data.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-shape-impl.js +32 -0
- package/dist/wcardinal/ui/d-diagram-canvas-shape-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-shape.js +6 -0
- package/dist/wcardinal/ui/d-diagram-canvas-shape.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-ticker-impl.js +38 -0
- package/dist/wcardinal/ui/d-diagram-canvas-ticker-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas-ticker.js +6 -0
- package/dist/wcardinal/ui/d-diagram-canvas-ticker.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-canvas.js +275 -10
- package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-data-impl.js +121 -0
- package/dist/wcardinal/ui/d-diagram-data-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-mapper.js +6 -0
- package/dist/wcardinal/ui/d-diagram-data-mapper.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-private-impl.js +19 -0
- package/dist/wcardinal/ui/d-diagram-data-private-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-private.js +6 -0
- package/dist/wcardinal/ui/d-diagram-data-private.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-remote-impl.js +20 -0
- package/dist/wcardinal/ui/d-diagram-data-remote-impl.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram-data-remote.js +1 -15
- package/dist/wcardinal/ui/d-diagram-data-remote.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-data.js +1 -201
- package/dist/wcardinal/ui/d-diagram-data.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-layer-container.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-layer.js +5 -50
- package/dist/wcardinal/ui/d-diagram-layer.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-serialized.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-shape.js +14 -47
- package/dist/wcardinal/ui/d-diagram-shape.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-snapshot.js +1 -1
- package/dist/wcardinal/ui/d-diagram-snapshot.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-ticker.js +47 -0
- package/dist/wcardinal/ui/d-diagram-ticker.js.map +1 -0
- package/dist/wcardinal/ui/d-diagram.js +4 -115
- package/dist/wcardinal/ui/d-diagram.js.map +1 -1
- package/dist/wcardinal/ui/d-dialog.js +2 -1
- package/dist/wcardinal/ui/d-dialog.js.map +1 -1
- package/dist/wcardinal/ui/index.js +14 -2
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js +27 -7
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
- package/dist/wcardinal/ui/shape/{variant/e-shape-data-impl.js → e-shape-data-impl.js} +105 -20
- package/dist/wcardinal/ui/shape/e-shape-data-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapper-impl.js +122 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapper-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapper.js +6 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapper.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapping-impl.js +135 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapping-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapping.js +6 -0
- package/dist/wcardinal/ui/shape/e-shape-data-mapping.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-private-impl.js +45 -0
- package/dist/wcardinal/ui/shape/e-shape-data-private-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-private.js +2 -0
- package/dist/wcardinal/ui/shape/e-shape-data-private.js.map +1 -0
- package/dist/wcardinal/ui/shape/{variant/e-shape-data-value-impl.js → e-shape-data-value-impl.js} +17 -6
- package/dist/wcardinal/ui/shape/e-shape-data-value-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-order.js +9 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-order.js.map +1 -0
- package/dist/wcardinal/ui/shape/{variant/e-shape-data-value-range-impl.js → e-shape-data-value-range-impl.js} +1 -1
- package/dist/wcardinal/ui/shape/e-shape-data-value-range-impl.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-scope.js +16 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-scope.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-type.js +14 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value-type.js.map +1 -0
- package/dist/wcardinal/ui/shape/e-shape-data-value.js +1 -4
- package/dist/wcardinal/ui/shape/e-shape-data-value.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-data.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-resource-manager-deserialization.js +28 -0
- package/dist/wcardinal/ui/shape/e-shape-resource-manager-deserialization.js.map +1 -1
- package/dist/wcardinal/ui/shape/index.js +12 -0
- package/dist/wcardinal/ui/shape/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-rectangle-pivoted.js +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-rectangle-pivoted.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js +36 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action-toggle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button-runtime-action.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group-viewer.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group-viewer.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-primitive.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-primitive.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/index.js +0 -3
- package/dist/wcardinal/ui/shape/variant/index.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 +6596 -5666
- package/dist/wcardinal-ui.js +19893 -18963
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/d-diagram-canvas-data-map.d.ts +0 -2
- package/dist/types/wcardinal/ui/d-diagram-canvas-id-map.d.ts +0 -2
- package/dist/types/wcardinal/ui/shape/variant/e-shape-data-impl.d.ts +0 -34
- package/dist/wcardinal/ui/d-diagram-canvas-data-map.js.map +0 -1
- package/dist/wcardinal/ui/d-diagram-canvas-id-map.js +0 -2
- package/dist/wcardinal/ui/d-diagram-canvas-id-map.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-data-impl.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-data-value-impl.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-data-value-range-impl.js.map +0 -1
|
@@ -3,8 +3,9 @@ import { DDiagramBase, DDiagramBaseController, DDiagramBaseOptions, DDiagramBase
|
|
|
3
3
|
import { DDiagramCanvas, DDiagramCanvasOptions } from "./d-diagram-canvas";
|
|
4
4
|
import { DDiagramSerialized } from "./d-diagram-serialized";
|
|
5
5
|
import { DDiagramShape } from "./d-diagram-shape";
|
|
6
|
-
import { DDiagramData,
|
|
6
|
+
import { DDiagramData, DDiagramDataOptions } from "./d-diagram-data";
|
|
7
7
|
import { EShape } from "./shape/e-shape";
|
|
8
|
+
import { DDiagramDataMapper } from "./d-diagram-data-mapper";
|
|
8
9
|
/**
|
|
9
10
|
* {@link DDiagram} piece controller.
|
|
10
11
|
*/
|
|
@@ -34,9 +35,7 @@ export declare class DDiagram<THEME extends DThemeDiagram = DThemeDiagram, OPTIO
|
|
|
34
35
|
data: DDiagramData;
|
|
35
36
|
shape: DDiagramShape;
|
|
36
37
|
constructor(options?: OPTIONS);
|
|
37
|
-
protected
|
|
38
|
-
protected initializeShapes(shapes: EShape[], dataShape: EShape | null, dataMapper: DDiagramDataMapper | null): void;
|
|
39
|
-
protected toDataShape(dataShape: EShape | null, shape: EShape): EShape | null;
|
|
38
|
+
protected initLayer(canvas: DDiagramCanvas, shapes: EShape[], mapper?: DDiagramDataMapper | null): void;
|
|
40
39
|
protected isEditMode(): boolean;
|
|
41
40
|
protected newCanvas(serialized: DDiagramSerialized): DDiagramCanvas;
|
|
42
41
|
protected toCanvasOptions(serialized: DDiagramSerialized): DDiagramCanvasOptions;
|
|
@@ -187,16 +187,27 @@ export * from "./d-corner-mask";
|
|
|
187
187
|
export * from "./d-corner";
|
|
188
188
|
export * from "./d-diagram-base";
|
|
189
189
|
export * from "./d-diagram-canvas-base";
|
|
190
|
-
export * from "./d-diagram-canvas-data-
|
|
190
|
+
export * from "./d-diagram-canvas-data-impl";
|
|
191
|
+
export * from "./d-diagram-canvas-data-private-impl";
|
|
192
|
+
export * from "./d-diagram-canvas-data-private";
|
|
193
|
+
export * from "./d-diagram-canvas-data";
|
|
191
194
|
export * from "./d-diagram-canvas-editor-background";
|
|
192
195
|
export * from "./d-diagram-canvas-editor-snap";
|
|
193
196
|
export * from "./d-diagram-canvas-editor";
|
|
194
|
-
export * from "./d-diagram-canvas-id-map";
|
|
195
197
|
export * from "./d-diagram-canvas-mapping-impl";
|
|
196
198
|
export * from "./d-diagram-canvas-mapping-point-impl";
|
|
197
199
|
export * from "./d-diagram-canvas-mapping";
|
|
200
|
+
export * from "./d-diagram-canvas-shape-impl";
|
|
201
|
+
export * from "./d-diagram-canvas-shape";
|
|
202
|
+
export * from "./d-diagram-canvas-ticker-impl";
|
|
203
|
+
export * from "./d-diagram-canvas-ticker";
|
|
198
204
|
export * from "./d-diagram-canvas-tile";
|
|
199
205
|
export * from "./d-diagram-canvas";
|
|
206
|
+
export * from "./d-diagram-data-impl";
|
|
207
|
+
export * from "./d-diagram-data-mapper";
|
|
208
|
+
export * from "./d-diagram-data-private-impl";
|
|
209
|
+
export * from "./d-diagram-data-private";
|
|
210
|
+
export * from "./d-diagram-data-remote-impl";
|
|
200
211
|
export * from "./d-diagram-data-remote";
|
|
201
212
|
export * from "./d-diagram-data";
|
|
202
213
|
export * from "./d-diagram-editor-thumbnail";
|
|
@@ -208,6 +219,7 @@ export * from "./d-diagram-layers";
|
|
|
208
219
|
export * from "./d-diagram-serialized";
|
|
209
220
|
export * from "./d-diagram-shape";
|
|
210
221
|
export * from "./d-diagram-snapshot";
|
|
222
|
+
export * from "./d-diagram-ticker";
|
|
211
223
|
export * from "./d-diagram";
|
|
212
224
|
export * from "./d-diagrams";
|
|
213
225
|
export * from "./d-dialog-align";
|
|
@@ -16,6 +16,8 @@ export interface EShapeActionRuntimeContainer extends DCanvasContainer {
|
|
|
16
16
|
openByName(target: string): void;
|
|
17
17
|
}
|
|
18
18
|
export declare class EShapeActionRuntimes {
|
|
19
|
+
static isContainer(target: unknown): target is EShapeActionRuntimeContainer;
|
|
20
|
+
static isEmbedded(target: unknown): target is EShape;
|
|
19
21
|
static toContainer(shape?: EShape | null): EShapeActionRuntimeContainer | null;
|
|
20
22
|
static open(shape: EShape, target: string): void;
|
|
21
23
|
static write(shape: EShape, id: string, value: unknown, time: number, remote: boolean): boolean;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EShapeResourceManagerDeserialization } from "./e-shape-resource-manager-deserialization";
|
|
2
|
+
import { EShapeResourceManagerSerialization } from "./e-shape-resource-manager-serialization";
|
|
3
|
+
import { EShapeData } from "./e-shape-data";
|
|
4
|
+
import { EShapeDataValue } from "./e-shape-data-value";
|
|
5
|
+
import { EShapeDataValueRange } from "./e-shape-data-value-range";
|
|
6
|
+
import { EShapeDataValueType } from "./e-shape-data-value-type";
|
|
7
|
+
import { EShapeDataMapping } from "./e-shape-data-mapping";
|
|
8
|
+
import { EShapeDataValueScope } from "./e-shape-data-value-scope";
|
|
9
|
+
import { DDiagramSerializedData, DDiagramSerializedDataWithMapping } from "../d-diagram-serialized";
|
|
10
|
+
import { EShapeDataPrivate } from "./e-shape-data-private";
|
|
11
|
+
export declare class EShapeDataImpl implements EShapeData {
|
|
12
|
+
protected _values: EShapeDataValue[];
|
|
13
|
+
protected _isChanged: boolean;
|
|
14
|
+
protected _mapping?: EShapeDataMapping;
|
|
15
|
+
protected _private?: EShapeDataPrivate;
|
|
16
|
+
constructor();
|
|
17
|
+
get values(): EShapeDataValue[];
|
|
18
|
+
get isChanged(): boolean;
|
|
19
|
+
set isChanged(isChanged: boolean);
|
|
20
|
+
get id(): string;
|
|
21
|
+
get type(): EShapeDataValueType;
|
|
22
|
+
get scope(): EShapeDataValueScope;
|
|
23
|
+
get initial(): string;
|
|
24
|
+
get format(): string;
|
|
25
|
+
get range(): EShapeDataValueRange;
|
|
26
|
+
get value(): unknown;
|
|
27
|
+
set value(value: unknown);
|
|
28
|
+
get nvalue(): number;
|
|
29
|
+
get time(): number;
|
|
30
|
+
set time(time: number);
|
|
31
|
+
get capacity(): number;
|
|
32
|
+
set capacity(capacity: number);
|
|
33
|
+
get mapping(): EShapeDataMapping;
|
|
34
|
+
protected newMapping(): EShapeDataMapping;
|
|
35
|
+
getMapping(): EShapeDataMapping | undefined;
|
|
36
|
+
get private(): EShapeDataPrivate;
|
|
37
|
+
protected newPrivate(): EShapeDataPrivate;
|
|
38
|
+
getPrivate(): EShapeDataPrivate | undefined;
|
|
39
|
+
add(value: EShapeDataValue, index?: number): void;
|
|
40
|
+
set(index: number, value: EShapeDataValue): EShapeDataValue | null;
|
|
41
|
+
remove(index: number): void;
|
|
42
|
+
indexOf(target: EShapeDataValue): number;
|
|
43
|
+
get(index: number): EShapeDataValue | null;
|
|
44
|
+
size(): number;
|
|
45
|
+
swap(indexA: number, indexB: number): void;
|
|
46
|
+
copy(target: EShapeData): this;
|
|
47
|
+
serialize(manager: EShapeResourceManagerSerialization): number;
|
|
48
|
+
deserialize(target: number, manager: EShapeResourceManagerDeserialization): void;
|
|
49
|
+
protected isMapped(target: DDiagramSerializedData): target is DDiagramSerializedDataWithMapping;
|
|
50
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EShapeDataMapper } from "./e-shape-data-mapper";
|
|
2
|
+
import { EShapeDataValue } from "./e-shape-data-value";
|
|
3
|
+
export declare class EShapeDataMapperImpl implements EShapeDataMapper {
|
|
4
|
+
protected static SEPARATOR: string;
|
|
5
|
+
protected static WILDCARD: string;
|
|
6
|
+
protected _sources: string[] | null;
|
|
7
|
+
protected _sourceIndices: number[];
|
|
8
|
+
protected _targetIndices: number[];
|
|
9
|
+
protected _targetIndicesLength: number;
|
|
10
|
+
constructor(source?: string | null);
|
|
11
|
+
map(value: EShapeDataValue, destinations: string[] | null, initial: string): void;
|
|
12
|
+
protected newSources(source?: string | null): string[] | null;
|
|
13
|
+
protected newValueId(destinations: string[], target: string, targetIndices: number[]): string | null;
|
|
14
|
+
protected calcTargetIndices(target: string): void;
|
|
15
|
+
protected newSourceIndices(sources: string[] | null): number[];
|
|
16
|
+
static split(target?: string | null): string[] | null;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EShapeDataMapping, EShapeDataMappingValue } from "./e-shape-data-mapping";
|
|
2
|
+
import { EShapeResourceManagerDeserialization } from "./e-shape-resource-manager-deserialization";
|
|
3
|
+
import { EShapeResourceManagerSerialization } from "./e-shape-resource-manager-serialization";
|
|
4
|
+
export declare class EShapeDataMappingImpl implements EShapeDataMapping {
|
|
5
|
+
values: EShapeDataMappingValue[];
|
|
6
|
+
constructor();
|
|
7
|
+
add(value: EShapeDataMappingValue, index?: number): this;
|
|
8
|
+
addAll(values: EShapeDataMappingValue[]): this;
|
|
9
|
+
clearAndAdd(value: EShapeDataMappingValue): this;
|
|
10
|
+
clearAndAddAll(values: EShapeDataMappingValue[]): this;
|
|
11
|
+
indexOf(target: EShapeDataMappingValue): number;
|
|
12
|
+
get(index: number): EShapeDataMappingValue | null;
|
|
13
|
+
set(index: number, value: EShapeDataMappingValue): EShapeDataMappingValue | null;
|
|
14
|
+
remove(index: number): EShapeDataMappingValue | null;
|
|
15
|
+
clear(): this;
|
|
16
|
+
size(): number;
|
|
17
|
+
swap(indexA: number, indexB: number): this;
|
|
18
|
+
copy(target: EShapeDataMapping): void;
|
|
19
|
+
serialize(manager: EShapeResourceManagerSerialization): number;
|
|
20
|
+
deserialize(target: number, manager: EShapeResourceManagerDeserialization): void;
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EShapeResourceManagerDeserialization } from "./e-shape-resource-manager-deserialization";
|
|
2
|
+
import { EShapeResourceManagerSerialization } from "./e-shape-resource-manager-serialization";
|
|
3
|
+
export declare type EShapeDataMappingValue = [string, string, string];
|
|
4
|
+
export interface EShapeDataMapping {
|
|
5
|
+
readonly values: EShapeDataMappingValue[];
|
|
6
|
+
add(value: EShapeDataMappingValue, index?: number): this;
|
|
7
|
+
addAll(values: EShapeDataMappingValue[]): this;
|
|
8
|
+
clearAndAdd(value: EShapeDataMappingValue): this;
|
|
9
|
+
clearAndAddAll(values: EShapeDataMappingValue[]): this;
|
|
10
|
+
indexOf(target: EShapeDataMappingValue): number;
|
|
11
|
+
get(index: number): EShapeDataMappingValue | null;
|
|
12
|
+
set(index: number, value: EShapeDataMappingValue): EShapeDataMappingValue | null;
|
|
13
|
+
remove(index: number): EShapeDataMappingValue | null;
|
|
14
|
+
clear(): this;
|
|
15
|
+
size(): number;
|
|
16
|
+
swap(indexA: number, indexB: number): this;
|
|
17
|
+
copy(target: EShapeDataMapping): void;
|
|
18
|
+
serialize(manager: EShapeResourceManagerSerialization): number;
|
|
19
|
+
deserialize(target: number, manager: EShapeResourceManagerDeserialization): void;
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EShapeDataPrivate } from "./e-shape-data-private";
|
|
2
|
+
import { EShapeDataValue } from "./e-shape-data-value";
|
|
3
|
+
export declare class EShapeDataPrivateImpl implements EShapeDataPrivate {
|
|
4
|
+
protected _data?: Map<string, EShapeDataValue[]>;
|
|
5
|
+
add(id: string, value: EShapeDataValue): void;
|
|
6
|
+
set(id: string, value: unknown, time?: number, from?: number | null, to?: number | null): boolean;
|
|
7
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { EShapeResourceManagerDeserialization } from "
|
|
2
|
-
import { EShapeResourceManagerSerialization } from "
|
|
3
|
-
import { EShapeDataValue,
|
|
4
|
-
import { EShapeDataValueRange } from "
|
|
1
|
+
import { EShapeResourceManagerDeserialization } from "./e-shape-resource-manager-deserialization";
|
|
2
|
+
import { EShapeResourceManagerSerialization } from "./e-shape-resource-manager-serialization";
|
|
3
|
+
import { EShapeDataValue, EShapeDataValueParent } from "./e-shape-data-value";
|
|
4
|
+
import { EShapeDataValueRange } from "./e-shape-data-value-range";
|
|
5
|
+
import { EShapeDataValueOrder } from "./e-shape-data-value-order";
|
|
6
|
+
import { EShapeDataValueType } from "./e-shape-data-value-type";
|
|
7
|
+
import { EShapeDataValueScope } from "./e-shape-data-value-scope";
|
|
5
8
|
export declare class EShapeDataValueImpl implements EShapeDataValue {
|
|
6
9
|
id: string;
|
|
10
|
+
type: EShapeDataValueType;
|
|
11
|
+
scope: EShapeDataValueScope;
|
|
7
12
|
initial: string;
|
|
8
13
|
format: string;
|
|
9
14
|
range: EShapeDataValueRange;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EShapeResourceManagerDeserialization } from "
|
|
2
|
-
import { EShapeResourceManagerSerialization } from "
|
|
3
|
-
import { EShapeDataValueRange, EShapeDataValueRangeLike, EShapeDataValueRangeParent, EShapeDataValueRangeType } from "
|
|
1
|
+
import { EShapeResourceManagerDeserialization } from "./e-shape-resource-manager-deserialization";
|
|
2
|
+
import { EShapeResourceManagerSerialization } from "./e-shape-resource-manager-serialization";
|
|
3
|
+
import { EShapeDataValueRange, EShapeDataValueRangeLike, EShapeDataValueRangeParent, EShapeDataValueRangeType } from "./e-shape-data-value-range";
|
|
4
4
|
export declare class EShapeDataValueRangeImpl implements EShapeDataValueRange {
|
|
5
5
|
protected _type: EShapeDataValueRangeType;
|
|
6
6
|
protected _from: number;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const EShapeDataValueScope: {
|
|
2
|
+
/**
|
|
3
|
+
* A private data is accessible only from inside the graphic that this data belongs to.
|
|
4
|
+
* The data is not accessible from anywhere outside the graphic.
|
|
5
|
+
*/
|
|
6
|
+
readonly PRIVATE: 0;
|
|
7
|
+
/**
|
|
8
|
+
* A public data is accessible from anywhere outside graphics.
|
|
9
|
+
*/
|
|
10
|
+
readonly PUBLIC: 1;
|
|
11
|
+
};
|
|
12
|
+
export declare type EShapeDataValueScope = typeof EShapeDataValueScope[keyof typeof EShapeDataValueScope];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const EShapeDataValueType: {
|
|
2
|
+
readonly NUMBER: 0;
|
|
3
|
+
readonly NUMBER_ARRAY: 1;
|
|
4
|
+
readonly STRING: 2;
|
|
5
|
+
readonly STRING_ARRAY: 3;
|
|
6
|
+
readonly OBJECT: 4;
|
|
7
|
+
readonly OBJECT_ARRAY: 5;
|
|
8
|
+
readonly TICKER: 6;
|
|
9
|
+
};
|
|
10
|
+
export declare type EShapeDataValueType = typeof EShapeDataValueType[keyof typeof EShapeDataValueType];
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { EShapeResourceManagerDeserialization } from "./e-shape-resource-manager-deserialization";
|
|
2
2
|
import { EShapeResourceManagerSerialization } from "./e-shape-resource-manager-serialization";
|
|
3
3
|
import { EShapeDataValueRange, EShapeDataValueRangeLike } from "./e-shape-data-value-range";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export declare type EShapeDataValueOrder = typeof EShapeDataValueOrder[keyof typeof EShapeDataValueOrder];
|
|
4
|
+
import { EShapeDataValueOrder } from "./e-shape-data-value-order";
|
|
5
|
+
import { EShapeDataValueScope } from "./e-shape-data-value-scope";
|
|
6
|
+
import { EShapeDataValueType } from "./e-shape-data-value-type";
|
|
9
7
|
export interface EShapeDataValueLike {
|
|
10
8
|
id: string;
|
|
9
|
+
type: EShapeDataValueType;
|
|
10
|
+
scope: EShapeDataValueScope;
|
|
11
11
|
initial: string;
|
|
12
12
|
format: string;
|
|
13
13
|
range: EShapeDataValueRangeLike;
|
|
@@ -2,10 +2,16 @@ import { EShapeResourceManagerDeserialization } from "./e-shape-resource-manager
|
|
|
2
2
|
import { EShapeResourceManagerSerialization } from "./e-shape-resource-manager-serialization";
|
|
3
3
|
import { EShapeDataValue } from "./e-shape-data-value";
|
|
4
4
|
import { EShapeDataValueRange } from "./e-shape-data-value-range";
|
|
5
|
+
import { EShapeDataMapping } from "./e-shape-data-mapping";
|
|
6
|
+
import { EShapeDataValueType } from "./e-shape-data-value-type";
|
|
7
|
+
import { EShapeDataValueScope } from "./e-shape-data-value-scope";
|
|
8
|
+
import { EShapeDataPrivate } from "./e-shape-data-private";
|
|
5
9
|
export interface EShapeData {
|
|
6
10
|
readonly values: EShapeDataValue[];
|
|
7
11
|
isChanged: boolean;
|
|
8
12
|
readonly id: string;
|
|
13
|
+
readonly type: EShapeDataValueType;
|
|
14
|
+
readonly scope: EShapeDataValueScope;
|
|
9
15
|
readonly initial: string;
|
|
10
16
|
readonly format: string;
|
|
11
17
|
readonly range: EShapeDataValueRange;
|
|
@@ -13,6 +19,10 @@ export interface EShapeData {
|
|
|
13
19
|
readonly nvalue: number;
|
|
14
20
|
time: number;
|
|
15
21
|
capacity: number;
|
|
22
|
+
readonly mapping: EShapeDataMapping;
|
|
23
|
+
getMapping(): EShapeDataMapping | undefined;
|
|
24
|
+
readonly private: EShapeDataPrivate;
|
|
25
|
+
getPrivate(): EShapeDataPrivate | undefined;
|
|
16
26
|
add(value: EShapeDataValue, index?: number): void;
|
|
17
27
|
set(index: number, value: EShapeDataValue): EShapeDataValue | null;
|
|
18
28
|
indexOf(target: EShapeDataValue): number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DDiagramSerializedFill, DDiagramSerializedStroke, DDiagramSerializedDataRange, DDiagramSerializedDataValue, DDiagramSerializedText, DDiagramSerializedTextOutline } from "../d-diagram-serialized";
|
|
1
|
+
import { DDiagramSerializedFill, DDiagramSerializedStroke, DDiagramSerializedDataRange, DDiagramSerializedDataValue, DDiagramSerializedText, DDiagramSerializedTextOutline, DDiagramSerializedData, DDiagramSerializedDataMapping } from "../d-diagram-serialized";
|
|
2
2
|
import { EShapeActionValue } from "./action/e-shape-action-value";
|
|
3
|
+
import { EShapeDataMapper } from "./e-shape-data-mapper";
|
|
3
4
|
import { EShapeTextAlignHorizontal } from "./e-shape-text-align-horizontal";
|
|
4
5
|
import { EShapeTextAlignVertical } from "./e-shape-text-align-vertical";
|
|
5
6
|
import { EShapeEmbeddedDatum } from "./variant/e-shape-embedded-datum";
|
|
@@ -17,8 +18,11 @@ export declare class EShapeResourceManagerDeserialization {
|
|
|
17
18
|
protected _actions: Map<number, EShapeActionValue>;
|
|
18
19
|
protected _fills: Map<number, DDiagramSerializedFill>;
|
|
19
20
|
protected _strokes: Map<number, DDiagramSerializedStroke>;
|
|
21
|
+
protected _data: Map<number, DDiagramSerializedData>;
|
|
20
22
|
protected _dataValues: Map<number, DDiagramSerializedDataValue>;
|
|
21
|
-
protected
|
|
23
|
+
protected _dataMapping: Map<number, DDiagramSerializedDataMapping>;
|
|
24
|
+
protected _dataMappers: Map<string, EShapeDataMapper | null>;
|
|
25
|
+
protected _dataDestinations: Map<string, string[] | null>;
|
|
22
26
|
protected _ranges: Map<number, DDiagramSerializedDataRange>;
|
|
23
27
|
protected _aligns: Map<number, [EShapeTextAlignHorizontal, EShapeTextAlignVertical]>;
|
|
24
28
|
protected _margins: Map<number, [number, number]>;
|
|
@@ -32,10 +36,14 @@ export declare class EShapeResourceManagerDeserialization {
|
|
|
32
36
|
setFill(id: number, fill: DDiagramSerializedFill): void;
|
|
33
37
|
getStroke(id: number): DDiagramSerializedStroke | undefined;
|
|
34
38
|
setStroke(id: number, stroke: DDiagramSerializedStroke): void;
|
|
35
|
-
getData(id: number):
|
|
36
|
-
setData(id: number, data:
|
|
39
|
+
getData(id: number): DDiagramSerializedData | undefined;
|
|
40
|
+
setData(id: number, data: DDiagramSerializedData): void;
|
|
37
41
|
getDataValue(id: number): DDiagramSerializedDataValue | undefined;
|
|
38
42
|
setDataValue(id: number, dataValue: DDiagramSerializedDataValue): void;
|
|
43
|
+
getDataMapping(id: number): DDiagramSerializedDataMapping | undefined;
|
|
44
|
+
setDataMapping(id: number, dataMapping: DDiagramSerializedDataMapping): void;
|
|
45
|
+
getDataMapper(source: string): EShapeDataMapper | null;
|
|
46
|
+
getDataDestination(destination: string): string[] | null;
|
|
39
47
|
getRange(id: number): DDiagramSerializedDataRange | undefined;
|
|
40
48
|
setRange(id: number, range: DDiagramSerializedDataRange): void;
|
|
41
49
|
getAlign(id: number): [EShapeTextAlignHorizontal, EShapeTextAlignVertical] | undefined;
|
|
@@ -26,7 +26,19 @@ export * from "./e-shape-connectors";
|
|
|
26
26
|
export * from "./e-shape-container";
|
|
27
27
|
export * from "./e-shape-copy-part";
|
|
28
28
|
export * from "./e-shape-corner";
|
|
29
|
+
export * from "./e-shape-data-impl";
|
|
30
|
+
export * from "./e-shape-data-mapper-impl";
|
|
31
|
+
export * from "./e-shape-data-mapper";
|
|
32
|
+
export * from "./e-shape-data-mapping-impl";
|
|
33
|
+
export * from "./e-shape-data-mapping";
|
|
34
|
+
export * from "./e-shape-data-private-impl";
|
|
35
|
+
export * from "./e-shape-data-private";
|
|
36
|
+
export * from "./e-shape-data-value-impl";
|
|
37
|
+
export * from "./e-shape-data-value-scope";
|
|
38
|
+
export * from "./e-shape-data-value-order";
|
|
39
|
+
export * from "./e-shape-data-value-range-impl";
|
|
29
40
|
export * from "./e-shape-data-value-range";
|
|
41
|
+
export * from "./e-shape-data-value-type";
|
|
30
42
|
export * from "./e-shape-data-value";
|
|
31
43
|
export * from "./e-shape-data";
|
|
32
44
|
export * from "./e-shape-defaults";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EShapeActionRuntime } from "../action";
|
|
1
|
+
import { EShapeActionRuntime } from "../action/e-shape-action-runtime";
|
|
2
2
|
import { EShape } from "../e-shape";
|
|
3
3
|
import { EShapeRuntime } from "../e-shape-runtime";
|
|
4
4
|
import { EShapeStateSet } from "../e-shape-state-set";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EShapeActionRuntime } from "../action";
|
|
1
|
+
import { EShapeActionRuntime } from "../action/e-shape-action-runtime";
|
|
2
2
|
import { EShape } from "../e-shape";
|
|
3
3
|
import { EShapeRuntime } from "../e-shape-runtime";
|
|
4
4
|
import { EShapeStateSet } from "../e-shape-state-set";
|
|
@@ -103,9 +103,6 @@ export * from "./e-shape-button-runtime";
|
|
|
103
103
|
export * from "./e-shape-button";
|
|
104
104
|
export * from "./e-shape-circle";
|
|
105
105
|
export * from "./e-shape-connector-line";
|
|
106
|
-
export * from "./e-shape-data-impl";
|
|
107
|
-
export * from "./e-shape-data-value-impl";
|
|
108
|
-
export * from "./e-shape-data-value-range-impl";
|
|
109
106
|
export * from "./e-shape-embedded-datum";
|
|
110
107
|
export * from "./e-shape-embedded-layer-container";
|
|
111
108
|
export * from "./e-shape-embedded-layer";
|
|
@@ -64,7 +64,7 @@ var DButtonSelect = /** @class */ (function (_super) {
|
|
|
64
64
|
var dialog = this.dialog;
|
|
65
65
|
var oldValue = (_a = this._textValueComputed) !== null && _a !== void 0 ? _a : null;
|
|
66
66
|
this._dialogSetter(dialog, oldValue);
|
|
67
|
-
dialog.open().then(function () {
|
|
67
|
+
dialog.open(this).then(function () {
|
|
68
68
|
var newValue = _this._dialogGetter(dialog);
|
|
69
69
|
if (newValue !== oldValue) {
|
|
70
70
|
_this.text = newValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-button-select.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-button-select.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,OAAO,EAA+C,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"d-button-select.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-button-select.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,OAAO,EAA+C,MAAM,YAAY,CAAC;AAElF,OAAO,EAAE,aAAa,EAAwB,MAAM,mBAAmB,CAAC;AA6ExE,IAAM,aAAa,GAAG,UAAC,MAAgC;IACtD,qCAAqC;IACrC,OAAO,MAAM,CAAC,KAAK,CAAC;AACrB,CAAC,CAAC;AAEF,IAAM,aAAa,GAAG;IACrB,aAAa;AACd,CAAC,CAAC;AAEF,IAAM,SAAS,GAAG,UACjB,OAAiB;;IAEjB,IAAI,OAAO,EAAE;QACZ,oEAAoE;QACpE,IAAM,SAAS,GAAG,MAAA,OAAO,CAAC,IAAI,0CAAE,SAAS,CAAC;QAC1C,IAAI,SAAS,KAAK,SAAS,EAAE;YAC5B,IAAI,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;YAC5B,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,IAAI,MAAM,CAAC,EAAE;gBAClC,MAAM,GAAG,MAAM,IAAI,EAAE,CAAC;gBACtB,IAAM,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;gBAC/C,IAAM,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;gBAC3C,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;oBACjC,8EAA8E;oBAC9E,IAAI,CAAC,SAAS,GAAG,SAAgB,CAAC;iBAClC;aACD;SACD;aAAM;YACN,2DAA2D;YAC3D,IAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;YAC9B,IAAI,CAAC,CAAC,MAAM,IAAI,MAAM,IAAI,MAAM,CAAC,EAAE;gBAClC,IAAM,eAAe,GAAG,MAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,0CAAE,IAAI,0CAAE,SAAS,CAAC;gBACtD,IAAI,eAAe,KAAK,SAAS,EAAE;oBAClC,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;oBAChC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;oBACpB,IAAI,IAAI,CAAC,SAAS,KAAK,SAAS,EAAE;wBACjC,6EAA6E;wBAC7E,IAAI,CAAC,SAAS,GAAG,eAAsB,CAAC;qBACxC;iBACD;aACD;SACD;KACD;IACD,OAAO,OAAO,CAAC;AAChB,CAAC,CAAC;AAEF;IAWU,iCAAqC;IAK9C,uBAAY,OAAiB;QAA7B,iBAIC;;gBAHA,kBAAM,SAAS,CAAC,OAAO,CAAC,CAAC;QACzB,KAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,aAAa,CAAC;QACtD,KAAI,CAAC,aAAa,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,aAAa,CAAC;;IACvD,CAAC;IAES,kCAAU,GAApB,UACC,CAA0E;QAD3E,iBAcC;;QAXA,iBAAM,UAAU,YAAC,CAAC,CAAC,CAAC;QACpB,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC3B,IAAM,QAAQ,GAAG,MAAA,IAAI,CAAC,kBAAkB,mCAAI,IAAI,CAAC;QACjD,IAAI,CAAC,aAAa,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;YACtB,IAAM,QAAQ,GAAG,KAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;YAC5C,IAAI,QAAQ,KAAK,QAAQ,EAAE;gBAC1B,KAAI,CAAC,IAAI,GAAG,QAAQ,CAAC;gBACrB,KAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAI,CAAC,CAAC;aAC9C;QACF,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,sBAAI,iCAAM;aAAV;;YACC,IAAI,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC;YAC1B,IAAI,MAAM,IAAI,IAAI,EAAE;gBACnB,IAAM,OAAO,GAAG,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,CAAC;gBACtC,IAAI,OAAO,IAAI,MAAM,IAAI,OAAO,EAAE;oBACjC,MAAM,GAAG,OAAO,CAAC;iBACjB;qBAAM;oBACN,kDAAkD;oBAClD,MAAM,GAAG,IAAI,aAAa,CAAe,OAAO,CAAkB,CAAC;iBACnE;gBACD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;aACtB;YACD,OAAO,MAAM,CAAC;QACf,CAAC;;;OAAA;IAED,sBAAI,gCAAK;aAAT;;YACC,OAAO,MAAA,IAAI,CAAC,kBAAkB,mCAAI,IAAI,CAAC;QACxC,CAAC;aAED,UAAU,KAAmB;YAC5B,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;QACnB,CAAC;;;OAJA;IAMS,+BAAO,GAAjB;QACC,OAAO,eAAe,CAAC;IACxB,CAAC;IACF,oBAAC;AAAD,CAAC,AAhED,CAWU,OAAO,GAqDhB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { interaction } from \"pixi.js\";\nimport { DButton, DButtonEvents, DButtonOptions, DThemeButton } from \"./d-button\";\nimport { DDialogOpener } from \"./d-dialog\";\nimport { DDialogSelect, DDialogSelectOptions } from \"./d-dialog-select\";\nimport { DOnOptions } from \"./d-on-options\";\n\n/**\n * A dialog to select values.\n */\nexport interface DButtonSelectDialog<VALUE> {\n\treadonly value: VALUE | null;\n\topen(opener?: DDialogOpener): Promise<unknown>;\n}\n\n/**\n * A function to retrieve a selected value from a dialog.\n */\nexport type DButtonSelectGetter<VALUE, DIALOG> = (dialog: DIALOG) => VALUE | null;\n\n/**\n * A function to set a selecte value to a dialog.\n * Called before opening a dialog.\n */\nexport type DButtonSelectSetter<VALUE, DIALOG> = (dialog: DIALOG, value: VALUE | null) => void;\n\n/**\n * {@link DButtonSelect} events.\n */\nexport interface DButtonSelectEvents<VALUE, EMITTER> extends DButtonEvents<VALUE, EMITTER> {\n\t/**\n\t * Triggered when a selection is changed.\n\t *\n\t * @param newValue a newly selected value\n\t * @param oldValue a previously selected value\n\t * @param emitter an emitter\n\t */\n\tchange(newValue: VALUE | null, oldValue: VALUE | null, emitter: EMITTER): void;\n}\n\n/**\n * {@link DButtonSelect} \"on\" options.\n */\nexport interface DButtonSelectOnOptions<VALUE, EMITTER>\n\textends Partial<DButtonSelectEvents<VALUE, EMITTER>>,\n\t\tDOnOptions {}\n\n/**\n * {@link DButtonSelect} options.\n */\nexport interface DButtonSelectOptions<\n\tVALUE = unknown,\n\tDIALOG_VALUE = unknown,\n\tDIALOG extends DButtonSelectDialog<DIALOG_VALUE> = DButtonSelectDialog<DIALOG_VALUE>,\n\tTHEME extends DThemeButtonSelect<VALUE> = DThemeButtonSelect<VALUE>,\n\tEMITTER = any\n> extends DButtonOptions<VALUE | null, THEME, EMITTER> {\n\t/**\n\t * A function to retrieve a selected value from a dialog.\n\t */\n\tgetter?: DButtonSelectGetter<VALUE, DIALOG>;\n\n\t/**\n\t * A function to set a selected value to a dialog.\n\t * Called before opening a dialog.\n\t */\n\tsetter?: DButtonSelectSetter<VALUE, DIALOG>;\n\n\t/**\n\t * A dialog to select values.\n\t */\n\tdialog?: DDialogSelectOptions<DIALOG_VALUE> | DIALOG;\n\n\ton?: DButtonSelectOnOptions<VALUE, EMITTER>;\n}\n\n/**\n * {@link DButtonSelect} theme.\n */\nexport interface DThemeButtonSelect<VALUE = unknown> extends DThemeButton<VALUE | null> {}\n\nconst defaultGetter = (dialog: DButtonSelectDialog<any>): any => {\n\t// Assumes the dialog.value is VALUE.\n\treturn dialog.value;\n};\n\nconst defaultSetter = (): void => {\n\t// DO NOTHING\n};\n\nconst toOptions = <OPTIONS extends DButtonSelectOptions<any, any, any, any>>(\n\toptions?: OPTIONS\n): OPTIONS | undefined => {\n\tif (options) {\n\t\t// Try to copy text.formatter to dialog.item.text.formatter at first\n\t\tconst formatter = options.text?.formatter;\n\t\tif (formatter !== undefined) {\n\t\t\tlet dialog = options.dialog;\n\t\t\tif (!(dialog && \"open\" in dialog)) {\n\t\t\t\tdialog = dialog || {};\n\t\t\t\tconst item = (dialog.item = dialog.item || {});\n\t\t\t\tconst text = (item.text = item.text || {});\n\t\t\t\tif (text.formatter === undefined) {\n\t\t\t\t\t// Assumes formatter is ( value: DIALOG_VALUE | null, caller: any ) => string.\n\t\t\t\t\ttext.formatter = formatter as any;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t// Try to copy dialog.item.text.formatter to text.formatter\n\t\t\tconst dialog = options.dialog;\n\t\t\tif (!(dialog && \"open\" in dialog)) {\n\t\t\t\tconst dialogFormatter = dialog?.item?.text?.formatter;\n\t\t\t\tif (dialogFormatter !== undefined) {\n\t\t\t\t\tconst text = options.text || {};\n\t\t\t\t\toptions.text = text;\n\t\t\t\t\tif (text.formatter === undefined) {\n\t\t\t\t\t\t// Assumes dialogFormatter is ( value: VALUE | null, caller: any ) => string.\n\t\t\t\t\t\ttext.formatter = dialogFormatter as any;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\treturn options;\n};\n\nexport class DButtonSelect<\n\tVALUE = unknown,\n\tDIALOG_VALUE = unknown,\n\tDIALOG extends DButtonSelectDialog<DIALOG_VALUE> = DButtonSelectDialog<DIALOG_VALUE>,\n\tTHEME extends DThemeButtonSelect<VALUE> = DThemeButtonSelect<VALUE>,\n\tOPTIONS extends DButtonSelectOptions<VALUE, DIALOG_VALUE, DIALOG, THEME> = DButtonSelectOptions<\n\t\tVALUE,\n\t\tDIALOG_VALUE,\n\t\tDIALOG,\n\t\tTHEME\n\t>\n> extends DButton<VALUE | null, THEME, OPTIONS> {\n\tprotected _dialog?: DIALOG;\n\tprotected _dialogGetter: DButtonSelectGetter<VALUE, DIALOG>;\n\tprotected _dialogSetter: DButtonSelectSetter<VALUE, DIALOG>;\n\n\tconstructor(options?: OPTIONS) {\n\t\tsuper(toOptions(options));\n\t\tthis._dialogGetter = options?.getter ?? defaultGetter;\n\t\tthis._dialogSetter = options?.setter ?? defaultSetter;\n\t}\n\n\tprotected onActivate(\n\t\te?: interaction.InteractionEvent | KeyboardEvent | MouseEvent | TouchEvent\n\t): void {\n\t\tsuper.onActivate(e);\n\t\tconst dialog = this.dialog;\n\t\tconst oldValue = this._textValueComputed ?? null;\n\t\tthis._dialogSetter(dialog, oldValue);\n\t\tdialog.open(this).then((): void => {\n\t\t\tconst newValue = this._dialogGetter(dialog);\n\t\t\tif (newValue !== oldValue) {\n\t\t\t\tthis.text = newValue;\n\t\t\t\tthis.emit(\"change\", newValue, oldValue, this);\n\t\t\t}\n\t\t});\n\t}\n\n\tget dialog(): DIALOG {\n\t\tlet dialog = this._dialog;\n\t\tif (dialog == null) {\n\t\t\tconst options = this._options?.dialog;\n\t\t\tif (options && \"open\" in options) {\n\t\t\t\tdialog = options;\n\t\t\t} else {\n\t\t\t\t// Assumes DIALOG === DDialogSelect<DIALOG_VALUE>.\n\t\t\t\tdialog = new DDialogSelect<DIALOG_VALUE>(options) as any as DIALOG;\n\t\t\t}\n\t\t\tthis._dialog = dialog;\n\t\t}\n\t\treturn dialog;\n\t}\n\n\tget value(): VALUE | null {\n\t\treturn this._textValueComputed ?? null;\n\t}\n\n\tset value(value: VALUE | null) {\n\t\tthis.text = value;\n\t}\n\n\tprotected getType(): string {\n\t\treturn \"DButtonSelect\";\n\t}\n}\n"]}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DChartAxisBaseOptionParser } from "./d-chart-axis-base-options-parser";
|
|
6
6
|
import { DChartAxisPosition } from "./d-chart-axis-position";
|
|
7
|
-
import { EShapePointsStyle } from "./shape";
|
|
7
|
+
import { EShapePointsStyle } from "./shape/e-shape-points-style";
|
|
8
8
|
import { EShapeBar } from "./shape/variant/e-shape-bar";
|
|
9
9
|
import { EShapeBarPosition } from "./shape/variant/e-shape-bar-position";
|
|
10
10
|
import { DThemes } from "./theme/d-themes";
|