jpf 5.0.61 → 5.0.63
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/controls/codeMirror/Editor/Editor.d.ts +4 -5
- package/dist/controls/codeMirror/Editor/Editor.js +8 -9
- package/dist/controls/codeMirror/Editor/Editor.js.map +1 -1
- package/dist/controls/custom/FileSelector/FileSelector.d.ts +3 -4
- package/dist/controls/custom/FileSelector/FileSelector.js +5 -6
- package/dist/controls/custom/FileSelector/FileSelector.js.map +1 -1
- package/dist/controls/custom/LabeledControl/LabeledControl.d.ts +5 -6
- package/dist/controls/custom/LabeledControl/LabeledControl.js +3 -4
- package/dist/controls/custom/LabeledControl/LabeledControl.js.map +1 -1
- package/dist/controls/custom/ListItem/ListItem.d.ts +8 -9
- package/dist/controls/custom/ListItem/ListItem.js +8 -9
- package/dist/controls/custom/ListItem/ListItem.js.map +1 -1
- package/dist/controls/html/Button/Button.d.ts +6 -7
- package/dist/controls/html/Button/Button.js +8 -9
- package/dist/controls/html/Button/Button.js.map +1 -1
- package/dist/controls/html/Div/Div.d.ts +4 -5
- package/dist/controls/html/Div/Div.js +2 -3
- package/dist/controls/html/Div/Div.js.map +1 -1
- package/dist/controls/html/Image/Image.d.ts +4 -5
- package/dist/controls/html/Image/Image.js +2 -3
- package/dist/controls/html/Image/Image.js.map +1 -1
- package/dist/controls/html/Input/Input.d.ts +4 -5
- package/dist/controls/html/Input/Input.js +23 -23
- package/dist/controls/html/Input/Input.js.map +1 -1
- package/dist/controls/html/Select/Select.d.ts +4 -5
- package/dist/controls/html/Select/Select.js +15 -16
- package/dist/controls/html/Select/Select.js.map +1 -1
- package/dist/controls/html/Span/Span.d.ts +3 -4
- package/dist/controls/html/Span/Span.js +2 -3
- package/dist/controls/html/Span/Span.js.map +1 -1
- package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.d.ts +4 -5
- package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.js +7 -8
- package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.js.map +1 -1
- package/dist/controls/kendo/Chart/Chart.d.ts +3 -4
- package/dist/controls/kendo/Chart/Chart.js +9 -10
- package/dist/controls/kendo/Chart/Chart.js.map +1 -1
- package/dist/controls/kendo/Editor/Editor.d.ts +3 -4
- package/dist/controls/kendo/Editor/Editor.js +13 -14
- package/dist/controls/kendo/Editor/Editor.js.map +1 -1
- package/dist/controls/kendo/Grid/Grid.d.ts +4 -5
- package/dist/controls/kendo/Grid/Grid.js +12 -13
- package/dist/controls/kendo/Grid/Grid.js.map +1 -1
- package/dist/controls/kendo/Menu/Menu.d.ts +3 -4
- package/dist/controls/kendo/Menu/Menu.js +9 -10
- package/dist/controls/kendo/Menu/Menu.js.map +1 -1
- package/dist/controls/kendo/Treeview/Treeview.d.ts +3 -4
- package/dist/controls/kendo/Treeview/Treeview.js +9 -10
- package/dist/controls/kendo/Treeview/Treeview.js.map +1 -1
- package/dist/controls/leaflet/LabelControl/LabelControl.d.ts +2 -3
- package/dist/controls/leaflet/LabelControl/LabelControl.js +1 -2
- package/dist/controls/leaflet/LabelControl/LabelControl.js.map +1 -1
- package/dist/controls/leaflet/Map/Map.d.ts +4 -5
- package/dist/controls/leaflet/Map/Map.js +9 -10
- package/dist/controls/leaflet/Map/Map.js.map +1 -1
- package/dist/controls/svg/Circle/Circle.d.ts +3 -4
- package/dist/controls/svg/Circle/Circle.js +1 -2
- package/dist/controls/svg/Circle/Circle.js.map +1 -1
- package/dist/controls/svg/Ellipse/Ellipse.d.ts +3 -4
- package/dist/controls/svg/Ellipse/Ellipse.js +1 -2
- package/dist/controls/svg/Ellipse/Ellipse.js.map +1 -1
- package/dist/controls/svg/ForeignObject/ForeignObject.d.ts +3 -4
- package/dist/controls/svg/ForeignObject/ForeignObject.js +1 -2
- package/dist/controls/svg/ForeignObject/ForeignObject.js.map +1 -1
- package/dist/controls/svg/Group/Group.d.ts +3 -4
- package/dist/controls/svg/Group/Group.js +1 -2
- package/dist/controls/svg/Group/Group.js.map +1 -1
- package/dist/controls/svg/Line/Line.d.ts +3 -4
- package/dist/controls/svg/Line/Line.js +1 -2
- package/dist/controls/svg/Line/Line.js.map +1 -1
- package/dist/controls/svg/Pattern/Pattern.d.ts +3 -4
- package/dist/controls/svg/Pattern/Pattern.js +1 -2
- package/dist/controls/svg/Pattern/Pattern.js.map +1 -1
- package/dist/controls/svg/Polygon/Polygon.d.ts +3 -4
- package/dist/controls/svg/Polygon/Polygon.js +3 -4
- package/dist/controls/svg/Polygon/Polygon.js.map +1 -1
- package/dist/controls/svg/Polyline/Polyline.d.ts +3 -4
- package/dist/controls/svg/Polyline/Polyline.js +1 -2
- package/dist/controls/svg/Polyline/Polyline.js.map +1 -1
- package/dist/controls/svg/Rectangle/Rectangle.d.ts +3 -4
- package/dist/controls/svg/Rectangle/Rectangle.js +1 -2
- package/dist/controls/svg/Rectangle/Rectangle.js.map +1 -1
- package/dist/controls/svg/Svg/Svg.d.ts +3 -4
- package/dist/controls/svg/Svg/Svg.js +1 -2
- package/dist/controls/svg/Svg/Svg.js.map +1 -1
- package/dist/controls/svg/Text/Text.d.ts +3 -4
- package/dist/controls/svg/Text/Text.js +1 -2
- package/dist/controls/svg/Text/Text.js.map +1 -1
- package/dist/controls/svg/Title/Title.d.ts +3 -4
- package/dist/controls/svg/Title/Title.js +1 -2
- package/dist/controls/svg/Title/Title.js.map +1 -1
- package/dist/controls/svg/svg.d.ts +1 -1
- package/dist/controls/svg/svg.js +5 -5
- package/dist/controls/svg/svg.js.map +1 -1
- package/dist/framework/attributes.d.ts +1 -46
- package/dist/framework/css.d.ts +1 -4
- package/dist/framework/element.d.ts +48 -15
- package/dist/framework/element.js +279 -29
- package/dist/framework/element.js.map +1 -1
- package/dist/framework/observable.d.ts +41 -0
- package/dist/framework/observable.js +46 -0
- package/dist/framework/observable.js.map +1 -0
- package/dist/framework/observablelmplementations.d.ts +1 -24
- package/dist/framework/observablelmplementations.js +0 -110
- package/dist/framework/observablelmplementations.js.map +1 -1
- package/dist/framework/properties.d.ts +1 -40
- package/dist/framework/properties.js +0 -265
- package/dist/framework/properties.js.map +1 -1
- package/dist/framework/style.d.ts +1 -328
- package/dist/index.d.ts +2 -4
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/utilities/object/object.d.ts +5 -0
- package/dist/utilities/object/object.js +47 -0
- package/dist/utilities/object/object.js.map +1 -0
- package/dist/utilities/value/value.d.ts +1 -0
- package/dist/utilities/value/value.js +7 -0
- package/dist/utilities/value/value.js.map +1 -0
- package/package.json +1 -1
- package/src/controls/codeMirror/Editor/Editor.ts +9 -11
- package/src/controls/custom/FileSelector/FileSelector.ts +5 -6
- package/src/controls/custom/LabeledControl/LabeledControl.ts +5 -6
- package/src/controls/custom/ListItem/ListItem.ts +13 -15
- package/src/controls/html/Button/Button.ts +13 -15
- package/src/controls/html/Div/Div.ts +4 -5
- package/src/controls/html/Image/Image.ts +4 -5
- package/src/controls/html/Input/Input.ts +21 -22
- package/src/controls/html/Select/Select.ts +16 -18
- package/src/controls/html/Span/Span.ts +3 -4
- package/src/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.ts +10 -12
- package/src/controls/kendo/Chart/Chart.ts +17 -19
- package/src/controls/kendo/Editor/Editor.ts +14 -16
- package/src/controls/kendo/Grid/Grid.ts +13 -15
- package/src/controls/kendo/Menu/Menu.ts +11 -13
- package/src/controls/kendo/Treeview/Treeview.ts +9 -11
- package/src/controls/leaflet/LabelControl/LabelControl.ts +4 -5
- package/src/controls/leaflet/Map/Map.ts +10 -12
- package/src/controls/svg/Circle/Circle.ts +3 -4
- package/src/controls/svg/Ellipse/Ellipse.ts +3 -4
- package/src/controls/svg/ForeignObject/ForeignObject.ts +3 -4
- package/src/controls/svg/Group/Group.ts +3 -4
- package/src/controls/svg/Line/Line.ts +3 -4
- package/src/controls/svg/Pattern/Pattern.ts +3 -4
- package/src/controls/svg/Polygon/Polygon.ts +4 -6
- package/src/controls/svg/Polyline/Polyline.ts +3 -4
- package/src/controls/svg/Rectangle/Rectangle.ts +3 -4
- package/src/controls/svg/Svg/Svg.ts +3 -4
- package/src/controls/svg/Text/Text.ts +3 -4
- package/src/controls/svg/Title/Title.ts +3 -4
- package/src/controls/svg/svg.ts +5 -6
- package/src/framework/attributes.ts +1 -47
- package/src/framework/css.ts +3 -5
- package/src/framework/element.ts +380 -44
- package/src/framework/observable.ts +100 -0
- package/src/framework/observablelmplementations.ts +135 -135
- package/src/framework/properties.ts +1 -342
- package/src/framework/style.ts +1556 -1556
- package/src/index.ts +2 -4
- package/src/utilities/object/object.ts +56 -0
- package/src/utilities/value/value.ts +3 -0
- package/src/framework/observableInterfaces.ts +0 -39
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createForeignObject = createForeignObject;
|
|
4
4
|
const element_1 = require("../../../framework/element");
|
|
5
|
-
const properties_1 = require("../../../framework/properties");
|
|
6
5
|
class ForeignObjectElement extends element_1.Element {
|
|
7
6
|
constructor(properties) {
|
|
8
7
|
super({
|
|
9
8
|
tagName: "foreignObject",
|
|
10
|
-
properties: (0,
|
|
9
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
11
10
|
elementType: "ForeignObject",
|
|
12
11
|
attributes: {
|
|
13
12
|
height: properties.height,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ForeignObject.js","sourceRoot":"","sources":["../../../../src/controls/svg/ForeignObject/ForeignObject.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ForeignObject.js","sourceRoot":"","sources":["../../../../src/controls/svg/ForeignObject/ForeignObject.ts"],"names":[],"mappings":";;AAiCA,kDAEC;AAnCD,wDAAqG;AAUrG,MAAM,oBAAqB,SAAQ,iBAAiC;IAChE,YAAY,UAAoC;QAC5C,KAAK,CACD;YACI,OAAO,EAAE,eAAe;YACxB,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,eAAe;gBAC5B,UAAU,EAAE;oBACR,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;iBAClB;aACJ,CACJ;SACJ,EACD,UAAU,CAAC,QAAQ,CACtB,CAAC;IACN,CAAC;CACJ;AAED,SAAgB,mBAAmB,CAAC,UAAoC;IACpE,OAAO,IAAI,oBAAoB,CAAC,UAAU,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Element, IElement } from "../../../framework/element";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface IGroupProperties extends IProperties {
|
|
1
|
+
import { Element, IElement, IElementProperties } from "../../../framework/element";
|
|
2
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
3
|
+
export interface IGroupProperties extends IElementProperties {
|
|
5
4
|
x1?: number | string | ISubscribable<number | string>;
|
|
6
5
|
x2?: number | string | ISubscribable<number | string>;
|
|
7
6
|
y1?: number | string | ISubscribable<number | string>;
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createGroup = createGroup;
|
|
4
4
|
const element_1 = require("../../../framework/element");
|
|
5
|
-
const properties_1 = require("../../../framework/properties");
|
|
6
5
|
class GroupElement extends element_1.Element {
|
|
7
6
|
constructor(properties) {
|
|
8
7
|
super({
|
|
9
8
|
tagName: "g",
|
|
10
|
-
properties: (0,
|
|
9
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
11
10
|
elementType: "Group",
|
|
12
11
|
attributes: {
|
|
13
12
|
x1: properties.x1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../src/controls/svg/Group/Group.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Group.js","sourceRoot":"","sources":["../../../../src/controls/svg/Group/Group.ts"],"names":[],"mappings":";;AAkCA,kCAEC;AApCD,wDAAqG;AAWrG,MAAM,YAAa,SAAQ,iBAAyB;IAChD,YAAY,UAA4B;QACpC,KAAK,CACD;YACI,OAAO,EAAE,GAAG;YACZ,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,OAAO;gBACpB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;iBACpB;aACJ,CACJ;SACJ,EACD,UAAU,CAAC,QAAQ,CACtB,CAAC;IACN,CAAC;CACJ;AAED,SAAgB,WAAW,CAAC,UAA4B;IACpD,OAAO,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Element } from "../../../framework/element";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface ILineProperties extends IProperties {
|
|
1
|
+
import { Element, IElementProperties } from "../../../framework/element";
|
|
2
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
3
|
+
export interface ILineProperties extends IElementProperties {
|
|
5
4
|
x1: number | string | ISubscribable<number | string>;
|
|
6
5
|
x2: number | string | ISubscribable<number | string>;
|
|
7
6
|
y1: number | string | ISubscribable<number | string>;
|
|
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LineElement = void 0;
|
|
4
4
|
exports.createLine = createLine;
|
|
5
5
|
const element_1 = require("../../../framework/element");
|
|
6
|
-
const properties_1 = require("../../../framework/properties");
|
|
7
6
|
class LineElement extends element_1.Element {
|
|
8
7
|
constructor(properties) {
|
|
9
8
|
super({
|
|
10
9
|
tagName: "line",
|
|
11
|
-
properties: (0,
|
|
10
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
12
11
|
elementType: "Line",
|
|
13
12
|
attributes: {
|
|
14
13
|
x1: properties.x1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Line.js","sourceRoot":"","sources":["../../../../src/controls/svg/Line/Line.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Line.js","sourceRoot":"","sources":["../../../../src/controls/svg/Line/Line.ts"],"names":[],"mappings":";;;AAgCA,gCAEC;AAlCD,wDAA2F;AAU3F,MAAa,WAAY,SAAQ,iBAAwB;IACrD,YAAY,UAA2B;QACnC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,MAAM;gBACnB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;iBACpB;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AApBD,kCAoBC;AAED,SAAgB,UAAU,CAAC,UAA2B;IAClD,OAAO,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { Element } from "../../../framework/element";
|
|
2
|
-
import { IProperties } from "../../../framework/properties";
|
|
1
|
+
import { Element, IElementProperties } from "../../../framework/element";
|
|
3
2
|
import { PatternUnits } from "../../../framework/css";
|
|
4
|
-
import { ISubscribable } from "../../../framework/
|
|
3
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
5
4
|
import { CircleElement } from "../Circle/Circle";
|
|
6
5
|
import { EllipseElement } from "../Ellipse/Ellipse";
|
|
7
6
|
import { LineElement } from "../Line/Line";
|
|
8
7
|
import { PolygonElement } from "../Polygon/Polygon";
|
|
9
8
|
import { PolylineElement } from "../Polyline/Polyline";
|
|
10
9
|
import { TextElement } from "../Text/Text";
|
|
11
|
-
export interface IPatternProperties extends
|
|
10
|
+
export interface IPatternProperties extends IElementProperties {
|
|
12
11
|
id: string;
|
|
13
12
|
width: number | string | ISubscribable<number | string>;
|
|
14
13
|
height: number | string | ISubscribable<number | string>;
|
|
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PatternElement = void 0;
|
|
4
4
|
exports.createPattern = createPattern;
|
|
5
5
|
const element_1 = require("../../../framework/element");
|
|
6
|
-
const properties_1 = require("../../../framework/properties");
|
|
7
6
|
class PatternElement extends element_1.Element {
|
|
8
7
|
constructor(properties) {
|
|
9
8
|
super({
|
|
10
9
|
tagName: "pattern",
|
|
11
|
-
properties: (0,
|
|
10
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
12
11
|
elementType: "Pattern",
|
|
13
12
|
attributes: {
|
|
14
13
|
id: properties.id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pattern.js","sourceRoot":"","sources":["../../../../src/controls/svg/Pattern/Pattern.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Pattern.js","sourceRoot":"","sources":["../../../../src/controls/svg/Pattern/Pattern.ts"],"names":[],"mappings":";;;AA4CA,sCAEC;AA9CD,wDAA2F;AAoB3F,MAAa,cAAe,SAAQ,iBAA2B;IAC3D,YAAY,UAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE;oBACR,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,YAAY,EAAE,UAAU,CAAC,YAAY;oBACrC,gBAAgB,EAAE,UAAU,CAAC,gBAAgB;iBAChD;aACJ,CACJ;SACJ,EACD,CAAC,UAAU,CAAC,OAAO,CAAC,CACvB,CAAC;IACN,CAAC;CACJ;AAtBD,wCAsBC;AAED,SAAgB,aAAa,CAAC,UAA8B;IACxD,OAAO,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Element } from "../../../framework/element";
|
|
2
|
-
import {
|
|
3
|
-
import { ISubscribable } from "../../../framework/observableInterfaces";
|
|
1
|
+
import { Element, IElementProperties } from "../../../framework/element";
|
|
2
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
4
3
|
import { ISvgPoint } from "../svg";
|
|
5
|
-
export interface IPolygonProperties extends
|
|
4
|
+
export interface IPolygonProperties extends IElementProperties {
|
|
6
5
|
points: Array<ISvgPoint> | ISubscribable<Array<ISvgPoint>>;
|
|
7
6
|
}
|
|
8
7
|
export declare class PolygonElement extends Element<IPolygonProperties> {
|
|
@@ -3,17 +3,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PolygonElement = void 0;
|
|
4
4
|
exports.createPolygon = createPolygon;
|
|
5
5
|
const element_1 = require("../../../framework/element");
|
|
6
|
-
const
|
|
7
|
-
const observablelmplementations_1 = require("../../../framework/observablelmplementations");
|
|
6
|
+
const observable_1 = require("../../../framework/observable");
|
|
8
7
|
const svg_1 = require("../svg");
|
|
9
8
|
class PolygonElement extends element_1.Element {
|
|
10
9
|
constructor(properties) {
|
|
11
10
|
super({
|
|
12
11
|
tagName: "polygon",
|
|
13
|
-
properties: (0,
|
|
12
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
14
13
|
elementType: "Polygon",
|
|
15
14
|
attributes: {
|
|
16
|
-
points: (0, svg_1.serializePoints)(
|
|
15
|
+
points: (0, svg_1.serializePoints)(observable_1.observable.unwrap(properties.points))
|
|
17
16
|
}
|
|
18
17
|
})
|
|
19
18
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Polygon.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polygon/Polygon.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Polygon.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polygon/Polygon.ts"],"names":[],"mappings":";;;AA2BA,sCAEC;AA7BD,wDAA2F;AAC3F,8DAA0E;AAC1E,gCAAoD;AAMpD,MAAa,cAAe,SAAQ,iBAA2B;IAC3D,YAAY,UAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE;oBACR,MAAM,EAAE,IAAA,qBAAe,EAAC,uBAAU,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;iBAChE;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAjBD,wCAiBC;AAED,SAAgB,aAAa,CAAC,UAA8B;IACxD,OAAO,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Element } from "../../../framework/element";
|
|
2
|
-
import { IProperties } from "../../../framework/properties";
|
|
1
|
+
import { Element, IElementProperties } from "../../../framework/element";
|
|
3
2
|
import { ISvgPoint } from "../svg";
|
|
4
|
-
import { ISubscribable } from "../../../framework/
|
|
5
|
-
export interface IPolylineProperties extends
|
|
3
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
4
|
+
export interface IPolylineProperties extends IElementProperties {
|
|
6
5
|
points: Array<ISvgPoint> | ISubscribable<Array<ISvgPoint>>;
|
|
7
6
|
}
|
|
8
7
|
export declare class PolylineElement extends Element<IPolylineProperties> {
|
|
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PolylineElement = void 0;
|
|
4
4
|
exports.createPolyline = createPolyline;
|
|
5
5
|
const element_1 = require("../../../framework/element");
|
|
6
|
-
const properties_1 = require("../../../framework/properties");
|
|
7
6
|
const svg_1 = require("../svg");
|
|
8
7
|
class PolylineElement extends element_1.Element {
|
|
9
8
|
constructor(properties) {
|
|
10
9
|
super({
|
|
11
10
|
tagName: "polyline",
|
|
12
|
-
properties: (0,
|
|
11
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
13
12
|
elementType: "Polyline",
|
|
14
13
|
attributes: {
|
|
15
14
|
points: (0, svg_1.serializePoints)(properties.points)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Polyline.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polyline/Polyline.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Polyline.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polyline/Polyline.ts"],"names":[],"mappings":";;;AA2BA,wCAEC;AA7BD,wDAA2F;AAC3F,gCAAoD;AAOpD,MAAa,eAAgB,SAAQ,iBAA4B;IAC7D,YAAY,UAA+B;QACvC,KAAK,CACD;YACI,OAAO,EAAE,UAAU;YACnB,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR,MAAM,EAAE,IAAA,qBAAe,EAAC,UAAU,CAAC,MAAM,CAAC;iBAC7C;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAjBD,0CAiBC;AAED,SAAgB,cAAc,CAAC,UAA+B;IAC1D,OAAO,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Element } from "../../../framework/element";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface IRectangleProperties extends IProperties {
|
|
1
|
+
import { Element, IElementProperties } from "../../../framework/element";
|
|
2
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
3
|
+
export interface IRectangleProperties extends IElementProperties {
|
|
5
4
|
x?: number | string | ISubscribable<number | string>;
|
|
6
5
|
y?: number | string | ISubscribable<number | string>;
|
|
7
6
|
width?: number | string | ISubscribable<number | string>;
|
|
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RectangleElement = void 0;
|
|
4
4
|
exports.createRectangle = createRectangle;
|
|
5
5
|
const element_1 = require("../../../framework/element");
|
|
6
|
-
const properties_1 = require("../../../framework/properties");
|
|
7
6
|
class RectangleElement extends element_1.Element {
|
|
8
7
|
constructor(properties) {
|
|
9
8
|
super({
|
|
10
9
|
tagName: "rect",
|
|
11
|
-
properties: (0,
|
|
10
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
12
11
|
elementType: "Rectangle",
|
|
13
12
|
attributes: {
|
|
14
13
|
x: properties.x,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Rectangle.js","sourceRoot":"","sources":["../../../../src/controls/svg/Rectangle/Rectangle.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Rectangle.js","sourceRoot":"","sources":["../../../../src/controls/svg/Rectangle/Rectangle.ts"],"names":[],"mappings":";;;AAgCA,0CAEC;AAlCD,wDAA2F;AAU3F,MAAa,gBAAiB,SAAQ,iBAA6B;IAC/D,YAAY,UAAgC;QACxC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,WAAW;gBACxB,UAAU,EAAE;oBACR,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC5B;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AApBD,4CAoBC;AAED,SAAgB,eAAe,CAAC,UAAgC;IAC5D,OAAO,IAAI,gBAAgB,CAAC,UAAU,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { Element, IElement } from "../../../framework/element";
|
|
2
|
-
import { IProperties } from "../../../framework/properties";
|
|
1
|
+
import { Element, IElement, IElementProperties } from "../../../framework/element";
|
|
3
2
|
import { PreserveAspectRatio } from "../../../framework/css";
|
|
4
|
-
import { ISubscribable } from "../../../framework/
|
|
5
|
-
export interface ISvgProperties extends
|
|
3
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
4
|
+
export interface ISvgProperties extends IElementProperties {
|
|
6
5
|
x?: number | string | ISubscribable<number | string>;
|
|
7
6
|
y?: number | string | ISubscribable<number | string>;
|
|
8
7
|
height?: number | string | ISubscribable<number | string>;
|
|
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SvgElement = void 0;
|
|
4
4
|
exports.createSvg = createSvg;
|
|
5
5
|
const element_1 = require("../../../framework/element");
|
|
6
|
-
const properties_1 = require("../../../framework/properties");
|
|
7
6
|
class SvgElement extends element_1.Element {
|
|
8
7
|
constructor(properties) {
|
|
9
8
|
super({
|
|
10
9
|
tagName: "svg",
|
|
11
|
-
properties: (0,
|
|
10
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
12
11
|
elementType: "Svg",
|
|
13
12
|
attributes: {
|
|
14
13
|
x: properties.x,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Svg.js","sourceRoot":"","sources":["../../../../src/controls/svg/Svg/Svg.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Svg.js","sourceRoot":"","sources":["../../../../src/controls/svg/Svg/Svg.ts"],"names":[],"mappings":";;;AAuCA,8BAEC;AAzCD,wDAAqG;AAcrG,MAAa,UAAW,SAAQ,iBAAuB;IACnD,YAAY,UAA0B;QAClC,KAAK,CACD;YACI,OAAO,EAAE,KAAK;YACd,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,KAAK;gBAClB,UAAU,EAAE;oBACR,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,MAAM,EAAE,UAAU,CAAC,MAAM;oBACzB,KAAK,EAAE,UAAU,CAAC,KAAK;oBACvB,OAAO,EAAE,UAAU,CAAC,OAAO;oBAC3B,mBAAmB,EAAE,UAAU,CAAC,mBAAmB;iBACtD;aACJ,CACJ;SACJ,EACD,UAAU,CAAC,QAAQ,CACtB,CAAC;IACN,CAAC;CACJ;AAvBD,gCAuBC;AAED,SAAgB,SAAS,CAAC,UAA0B;IAChD,OAAO,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC;AACtC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Element } from "../../../framework/element";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface ITextProperties extends IProperties {
|
|
1
|
+
import { Element, IElementProperties } from "../../../framework/element";
|
|
2
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
3
|
+
export interface ITextProperties extends IElementProperties {
|
|
5
4
|
x?: number | string | ISubscribable<number | string>;
|
|
6
5
|
y?: number | string | ISubscribable<number | string>;
|
|
7
6
|
dx?: number | string | ISubscribable<number | string>;
|
|
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TextElement = void 0;
|
|
4
4
|
exports.createText = createText;
|
|
5
5
|
const element_1 = require("../../../framework/element");
|
|
6
|
-
const properties_1 = require("../../../framework/properties");
|
|
7
6
|
class TextElement extends element_1.Element {
|
|
8
7
|
constructor(properties) {
|
|
9
8
|
super({
|
|
10
9
|
tagName: "text",
|
|
11
|
-
properties: (0,
|
|
10
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
12
11
|
elementType: "Text",
|
|
13
12
|
attributes: {
|
|
14
13
|
x: properties.x,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/controls/svg/Text/Text.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Text.js","sourceRoot":"","sources":["../../../../src/controls/svg/Text/Text.ts"],"names":[],"mappings":";;;AAkCA,gCAEC;AApCD,wDAA2F;AAW3F,MAAa,WAAY,SAAQ,iBAAwB;IACrD,YAAY,UAA2B;QACnC,KAAK,CACD;YACI,OAAO,EAAE,MAAM;YACf,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,MAAM;gBACnB,UAAU,EAAE;oBACR,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,CAAC,EAAE,UAAU,CAAC,CAAC;oBACf,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,EAAE,EAAE,UAAU,CAAC,EAAE;oBACjB,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC5B;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AArBD,kCAqBC;AAED,SAAgB,UAAU,CAAC,UAA2B;IAClD,OAAO,IAAI,WAAW,CAAC,UAAU,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Element } from "../../../framework/element";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export interface ITitleProperties extends IProperties {
|
|
1
|
+
import { Element, IElementProperties } from "../../../framework/element";
|
|
2
|
+
import { ISubscribable } from "../../../framework/observable";
|
|
3
|
+
export interface ITitleProperties extends IElementProperties {
|
|
5
4
|
title: string | ISubscribable<string>;
|
|
6
5
|
}
|
|
7
6
|
export declare class TitleElement extends Element<ITitleProperties> {
|
|
@@ -3,12 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TitleElement = void 0;
|
|
4
4
|
exports.createTitle = createTitle;
|
|
5
5
|
const element_1 = require("../../../framework/element");
|
|
6
|
-
const properties_1 = require("../../../framework/properties");
|
|
7
6
|
class TitleElement extends element_1.Element {
|
|
8
7
|
constructor(properties) {
|
|
9
8
|
super({
|
|
10
9
|
tagName: "title",
|
|
11
|
-
properties: (0,
|
|
10
|
+
properties: (0, element_1.extendProperties)(properties, {
|
|
12
11
|
elementType: "Title",
|
|
13
12
|
textContent: properties.title
|
|
14
13
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/controls/svg/Title/Title.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Title.js","sourceRoot":"","sources":["../../../../src/controls/svg/Title/Title.ts"],"names":[],"mappings":";;;AAwBA,kCAEC;AA1BD,wDAA2F;AAO3F,MAAa,YAAa,SAAQ,iBAAyB;IACvD,YAAY,UAA4B;QACpC,KAAK,CACD;YACI,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,IAAA,0BAAgB,EACxB,UAAU,EACV;gBACI,WAAW,EAAE,OAAO;gBACpB,WAAW,EAAE,UAAU,CAAC,KAAK;aAChC,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAfD,oCAeC;AAED,SAAgB,WAAW,CAAC,UAA4B;IACpD,OAAO,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC;AACxC,CAAC"}
|
package/dist/controls/svg/svg.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.serializePoints = serializePoints;
|
|
4
|
-
const
|
|
4
|
+
const observable_1 = require("../../framework/observable");
|
|
5
5
|
function serializePoints(points) {
|
|
6
6
|
if (points) {
|
|
7
|
-
if (
|
|
8
|
-
return
|
|
9
|
-
return
|
|
7
|
+
if (observable_1.observable.isSubscribable(points)) {
|
|
8
|
+
return observable_1.observable.computed(() => {
|
|
9
|
+
return observable_1.observable.unwrap(points).map((point) => { return point.x + "," + point.y; }).join(" ");
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return observable_1.observable.unwrap(points).map((point) => { return point.x + "," + point.y; }).join(" ");
|
|
13
13
|
}
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../src/controls/svg/svg.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../src/controls/svg/svg.ts"],"names":[],"mappings":";;AAOA,0CAYC;AAnBD,2DAAuE;AAOvE,SAAgB,eAAe,CAAC,MAA0D;IACtF,IAAI,MAAM,EAAE,CAAC;QACT,IAAI,uBAAU,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;YACpC,OAAO,uBAAU,CAAC,QAAQ,CACtB,GAAG,EAAE;gBACD,OAAO,uBAAU,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,OAAO,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClG,CAAC,CACJ,CAAC;QACN,CAAC;QACD,OAAO,uBAAU,CAAC,MAAM,CAAmB,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,GAAG,OAAO,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,CAAC,CAAA,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpH,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -1,51 +1,6 @@
|
|
|
1
1
|
import { PreserveAspectRatio } from "./css";
|
|
2
|
-
import { ISubscribable } from "./
|
|
2
|
+
import { ISubscribable } from "./observable";
|
|
3
3
|
export interface IAttributes {
|
|
4
|
-
alt?: string;
|
|
5
|
-
disabled?: string;
|
|
6
|
-
href?: string;
|
|
7
|
-
target?: string;
|
|
8
|
-
id?: string;
|
|
9
|
-
src?: string;
|
|
10
|
-
title?: string;
|
|
11
|
-
class?: string;
|
|
12
|
-
tabindex?: number;
|
|
13
|
-
draggable?: string;
|
|
14
|
-
placeholder?: string;
|
|
15
|
-
for?: string;
|
|
16
|
-
type?: string;
|
|
17
|
-
value?: string;
|
|
18
|
-
view?: string;
|
|
19
|
-
checked?: string;
|
|
20
|
-
enctype?: string;
|
|
21
|
-
name?: string;
|
|
22
|
-
multiple?: boolean;
|
|
23
|
-
["aria-label"]?: string;
|
|
24
|
-
cx?: number | string;
|
|
25
|
-
cy?: number | string;
|
|
26
|
-
r?: number | string;
|
|
27
|
-
rx?: number | string;
|
|
28
|
-
ry?: number | string;
|
|
29
|
-
x?: number | string;
|
|
30
|
-
x1?: number | string;
|
|
31
|
-
x2?: number | string;
|
|
32
|
-
y?: number | string;
|
|
33
|
-
y1?: number | string;
|
|
34
|
-
y2?: number | string;
|
|
35
|
-
width?: number | string;
|
|
36
|
-
height?: number | string;
|
|
37
|
-
patternUnits?: string;
|
|
38
|
-
patternTransform?: string;
|
|
39
|
-
points?: string;
|
|
40
|
-
viewBox?: string;
|
|
41
|
-
dx?: number | string;
|
|
42
|
-
dy?: number | string;
|
|
43
|
-
rotate?: string;
|
|
44
|
-
preserveAspectRatio?: PreserveAspectRatio;
|
|
45
|
-
xmlns?: string;
|
|
46
|
-
info?: string;
|
|
47
|
-
}
|
|
48
|
-
export interface IAttributesSubscribable {
|
|
49
4
|
alt?: string | ISubscribable<string>;
|
|
50
5
|
disabled?: string | ISubscribable<string>;
|
|
51
6
|
href?: string | ISubscribable<string>;
|
package/dist/framework/css.d.ts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
export type PatternUnits = "userSpaceOnUse" | "objectboudingBox";
|
|
2
2
|
export type DropEffect = "none" | "copy" | "link" | "move";
|
|
3
3
|
export type EffectAllowed = "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
|
|
4
|
-
type
|
|
5
|
-
type CssPropertyL = "layoutGrid" | "layoutGridChar" | "layoutGridLine" | "layoutGridMode" | "layoutGridType" | "left" | "letterSpacing" | "lineBreak" | "lineClamp" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "marqueeDirection" | "marqueeStyle" | "mask" | "maskBorder" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskOrigin" | "maxFontSize" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineStyle" | "outlineOffset" | "outlineWidth" | "overflow" | "overflowStyle" | "overflowWrap" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "pause" | "pauseAfter" | "pauseBefore" | "perspective" | "perspectiveOrigin" | "pointerEvents" | "position" | "punctuationTrim" | "quotes" | "regionFragment" | "resize" | "restAfter" | "restBefore" | "right" | "rubyAlign" | "rubyPosition" | "rx" | "ry" | "shapeImageThreshold" | "shapeInside" | "shapeMargin" | "shapeOutside" | "speak" | "speakAs" | "src" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAnchor" | "textAlign" | "textAlignLast" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationLineThrough" | "textDecorationNone" | "textDecorationOverline" | "textDecorationSkip" | "textDecorationStyle" | "textDecorationUnderline" | "textEmphasis" | "textEmphasisColor" | "textEmphasisStyle" | "textHeight" | "textIndent" | "textJustifyTrim" | "textKashidaSpace" | "textLineThrough" | "textLineThroughColor" | "textLineThroughMode" | "textLineThroughStyle" | "textLineThroughWidth" | "textOverflow" | "textOverline" | "textOverlineColor" | "textOverlineMode" | "textOverlineStyle" | "textOverlineWidth" | "textRendering" | "textScript" | "textShadow" | "textTransform" | "textUnderlinePosition" | "textUnderlineStyle" | "top" | "touchAction" | "transform" | "transformOrigin" | "transformOriginZ" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "unicodeBidi" | "unicodeRange" | "userFocus" | "userInput" | "userSelect" | "verticalAlign" | "visibility" | "voiceBalance" | "voiceDuration" | "voiceFamily" | "voicePitch" | "voiceRange" | "voiceRate" | "voiceStress" | "voiceVolume" | "whiteSpace" | "whiteSpaceTreatment" | "widows" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "wrapFlow" | "wrapMargin" | "wrapOption" | "writingMode" | "zIndex" | "zoom";
|
|
6
|
-
export type CssProperty = CssPropertyA | CssPropertyL;
|
|
4
|
+
export type CssProperty = "alignContent" | "alignItems" | "alignSelf" | "alignmentAdjust" | "alignmentBaseline" | "animation" | "animationDelay" | "animationDirection" | "animationDuration" | "animationFillMode" | "animationIterationCount" | "animationName" | "animationPlayState" | "animationTimingFunction" | "appearance" | "backfaceVisibility" | "background" | "backgroundAttachment" | "backgroundBlendMode" | "backgroundClip" | "backgroundColor" | "backgroundComposite" | "backgroundImage" | "backgroundOrigin" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "baselineShift" | "behavior" | "border" | "borderBottom" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderCollapse" | "borderColor" | "borderCornerShape" | "borderImageSource" | "borderImageWidth" | "borderLeft" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRadius" | "borderRight" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderSpacing" | "borderStyle" | "borderTop" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "borderWidth" | "bottom" | "boxAlign" | "boxDecorationBreak" | "boxDirection" | "boxLineProgression" | "boxLines" | "boxOrdinalGroup" | "boxFlex" | "boxSizing" | "boxShadow" | "boxFlexGroup" | "breakAfter" | "breakBefore" | "breakInside" | "captionSide" | "clear" | "clip" | "clipRule" | "color" | "columnCount" | "columnFill" | "columnGap" | "columnRule" | "columnRuleColor" | "columnRuleWidth" | "columnSpan" | "columnWidth" | "columns" | "content" | "counterIncrement" | "counterReset" | "cue" | "cueAfter" | "cursor" | "direction" | "display" | "dominantBaseline" | "emptyCells" | "fill" | "fillOpacity" | "fillRule" | "filter" | "flex" | "flexAlign" | "flexBasis" | "flexDirection" | "flexFlow" | "flexGrow" | "flexItemAlign" | "flexLinePack" | "flexPositive" | "flexNegative" | "flexOrder" | "flexShrink" | "flexWrap" | "float" | "flowFrom" | "font" | "fontFamily" | "fontKerning" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontSynthesis" | "fontVariant" | "fontVariantAlternates" | "fontWeight" | "gridArea" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridColumn" | "gridColumnGap" | "gridColumnEnd" | "gridColumnStart" | "gridGap" | "gridRow" | "gridRowEnd" | "gridRowGap" | "gridRowStart" | "gridRowPosition" | "gridRowSpan" | "gridTemplate" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "hyphenateLimitChars" | "hyphenateLimitLines" | "hyphenateLimitZone" | "hyphens" | "imeMode" | "justifyContent" | "justifyItems" | "justifySelf" | "layoutGrid" | "layoutGridChar" | "layoutGridLine" | "layoutGridMode" | "layoutGridType" | "left" | "letterSpacing" | "lineBreak" | "lineClamp" | "lineHeight" | "listStyle" | "listStyleImage" | "listStylePosition" | "listStyleType" | "margin" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "marqueeDirection" | "marqueeStyle" | "mask" | "maskBorder" | "maskBorderRepeat" | "maskBorderSlice" | "maskBorderSource" | "maskBorderWidth" | "maskClip" | "maskOrigin" | "maxFontSize" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "mixBlendMode" | "objectFit" | "objectPosition" | "opacity" | "order" | "orphans" | "outline" | "outlineColor" | "outlineStyle" | "outlineOffset" | "outlineWidth" | "overflow" | "overflowStyle" | "overflowWrap" | "overflowX" | "overflowY" | "padding" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "pageBreakAfter" | "pageBreakBefore" | "pageBreakInside" | "pause" | "pauseAfter" | "pauseBefore" | "perspective" | "perspectiveOrigin" | "pointerEvents" | "position" | "punctuationTrim" | "quotes" | "regionFragment" | "resize" | "restAfter" | "restBefore" | "right" | "rubyAlign" | "rubyPosition" | "rx" | "ry" | "shapeImageThreshold" | "shapeInside" | "shapeMargin" | "shapeOutside" | "speak" | "speakAs" | "src" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeOpacity" | "strokeWidth" | "tabSize" | "tableLayout" | "textAnchor" | "textAlign" | "textAlignLast" | "textDecoration" | "textDecorationColor" | "textDecorationLine" | "textDecorationLineThrough" | "textDecorationNone" | "textDecorationOverline" | "textDecorationSkip" | "textDecorationStyle" | "textDecorationUnderline" | "textEmphasis" | "textEmphasisColor" | "textEmphasisStyle" | "textHeight" | "textIndent" | "textJustifyTrim" | "textKashidaSpace" | "textLineThrough" | "textLineThroughColor" | "textLineThroughMode" | "textLineThroughStyle" | "textLineThroughWidth" | "textOverflow" | "textOverline" | "textOverlineColor" | "textOverlineMode" | "textOverlineStyle" | "textOverlineWidth" | "textRendering" | "textScript" | "textShadow" | "textTransform" | "textUnderlinePosition" | "textUnderlineStyle" | "top" | "touchAction" | "transform" | "transformOrigin" | "transformOriginZ" | "transformStyle" | "transition" | "transitionDelay" | "transitionDuration" | "transitionProperty" | "transitionTimingFunction" | "unicodeBidi" | "unicodeRange" | "userFocus" | "userInput" | "userSelect" | "verticalAlign" | "visibility" | "voiceBalance" | "voiceDuration" | "voiceFamily" | "voicePitch" | "voiceRange" | "voiceRate" | "voiceStress" | "voiceVolume" | "whiteSpace" | "whiteSpaceTreatment" | "widows" | "width" | "willChange" | "wordBreak" | "wordSpacing" | "wordWrap" | "wrapFlow" | "wrapMargin" | "wrapOption" | "writingMode" | "zIndex" | "zoom";
|
|
7
5
|
export type CssValue<T> = T | T[];
|
|
8
6
|
export type CssValueGeneral = CssValue<number | string>;
|
|
9
7
|
export type CssValueString = CssValue<string>;
|
|
@@ -84,4 +82,3 @@ export type VerticalAlign = CssGlobalValues | "baseline" | "sub" | "super" | "te
|
|
|
84
82
|
export type WritingMode = CssGlobalValues | "horizontal-tb" | "vertical-rl" | "vertical-lr" | "sideways-rl" | "sideways-lr";
|
|
85
83
|
export type CssStyleName = "alignContent" | "alignItems";
|
|
86
84
|
export type PreserveAspectRatio = "none" | "xMinYMin" | "xMidYMin" | "xMaxYMin" | "xMinYMid" | "xMidYMid" | "xMaxYMid" | "xMinYMax" | "xMidYMax" | "xMaxYMax" | "meet" | "slice";
|
|
87
|
-
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import "tocca";
|
|
2
|
-
import { IDisposer, ISubscribable } from "./
|
|
3
|
-
import {
|
|
2
|
+
import { IDisposer, ISubscribable } from "./observable";
|
|
3
|
+
import { IEventListener } from "./event";
|
|
4
|
+
import { IAttributes } from "./attributes";
|
|
5
|
+
import { IStyle } from "./style";
|
|
4
6
|
declare const htmlTags: {
|
|
5
7
|
a: boolean;
|
|
6
8
|
div: boolean;
|
|
@@ -28,34 +30,65 @@ declare const svgTags: {
|
|
|
28
30
|
foreignObject: boolean;
|
|
29
31
|
};
|
|
30
32
|
type TagName = keyof typeof htmlTags | keyof typeof svgTags;
|
|
33
|
+
export interface IElementProperties {
|
|
34
|
+
attributes?: IAttributes;
|
|
35
|
+
classNames?: Array<string> | ISubscribable<Array<string>>;
|
|
36
|
+
style?: IStyle;
|
|
37
|
+
visible?: boolean | ISubscribable<boolean>;
|
|
38
|
+
disabled?: boolean | ISubscribable<boolean>;
|
|
39
|
+
innerHtml?: string | ISubscribable<string>;
|
|
40
|
+
textContent?: string | ISubscribable<string>;
|
|
41
|
+
addViewModelToDataObject?: boolean;
|
|
42
|
+
userSelectable?: boolean;
|
|
43
|
+
eventListeners?: Array<IEventListener>;
|
|
44
|
+
elementType?: string;
|
|
45
|
+
focused?: boolean | ISubscribable<boolean>;
|
|
46
|
+
}
|
|
47
|
+
export interface IElementOptions<TElementProperties> {
|
|
48
|
+
tagName: TagName;
|
|
49
|
+
properties?: TElementProperties;
|
|
50
|
+
}
|
|
31
51
|
export interface IElement {
|
|
32
52
|
render(): HTMLElement;
|
|
33
53
|
unmount(): void;
|
|
34
54
|
}
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
properties?: TProperties;
|
|
38
|
-
}
|
|
39
|
-
export declare class Element<TProperties = IProperties> implements IElement {
|
|
40
|
-
constructor(options: IElementOptions<TProperties>, children?: Array<IElement> | ISubscribable<Array<IElement>>);
|
|
55
|
+
export declare class Element<TElementProperties = IElementProperties> implements IElement {
|
|
56
|
+
constructor(options: IElementOptions<TElementProperties>, children?: Array<IElement> | ISubscribable<Array<IElement>>);
|
|
41
57
|
private readonly tagName;
|
|
42
58
|
private readonly optionsChildren;
|
|
43
59
|
private children;
|
|
44
60
|
private buildChildren;
|
|
45
|
-
protected
|
|
46
|
-
protected readonly properties:
|
|
61
|
+
protected htmlElement: HTMLElement;
|
|
62
|
+
protected readonly properties: TElementProperties;
|
|
47
63
|
protected readonly disposers: IDisposer[];
|
|
48
64
|
protected build(): void;
|
|
49
65
|
protected remove(): void;
|
|
50
|
-
protected addChild(child: IElement): Element<
|
|
51
|
-
protected setChildren(...children: Array<IElement>): Element<
|
|
66
|
+
protected addChild(child: IElement): Element<TElementProperties>;
|
|
67
|
+
protected setChildren(...children: Array<IElement>): Element<TElementProperties>;
|
|
52
68
|
protected empty(): void;
|
|
53
69
|
render(): HTMLElement;
|
|
54
70
|
unmount(): void;
|
|
55
71
|
focus(options?: FocusOptions): void;
|
|
56
72
|
}
|
|
57
|
-
export declare
|
|
73
|
+
export declare abstract class ElementProperties implements IElementProperties {
|
|
74
|
+
protected setProperties<TProperties>(object: object, properties?: TProperties): void;
|
|
75
|
+
attributes?: IAttributes;
|
|
76
|
+
classNames?: Array<string> | ISubscribable<Array<string>>;
|
|
77
|
+
style?: IStyle;
|
|
78
|
+
visible?: boolean | ISubscribable<boolean>;
|
|
79
|
+
disabled?: boolean | ISubscribable<boolean>;
|
|
80
|
+
innerHtml?: string | ISubscribable<string>;
|
|
81
|
+
textContent?: string | ISubscribable<string>;
|
|
82
|
+
addViewModelToDataObject?: boolean;
|
|
83
|
+
userSelectable?: boolean;
|
|
84
|
+
eventListeners?: Array<IEventListener>;
|
|
85
|
+
elementType?: string;
|
|
86
|
+
focused?: boolean | ISubscribable<boolean>;
|
|
87
|
+
}
|
|
88
|
+
export declare function extendProperties<TTarget = IElementProperties, TOverwritingProperties = TTarget, TPreserveExistingProperties = TTarget>(target: TTarget, preserveExisting: TPreserveExistingProperties, overWriteExisting?: TOverwritingProperties): TTarget;
|
|
89
|
+
export declare function createElement<TProperties>(options: IElementOptions<TProperties>, children?: Array<IElement> | ISubscribable<Array<IElement>>): Element<TProperties>;
|
|
90
|
+
export declare function applyBindings(properties: IElementProperties, element: HTMLElement, disposers: Array<IDisposer>): void;
|
|
58
91
|
export declare function addElementToDictionary(properties: Function, element: Function): void;
|
|
59
|
-
export declare function getElement(properties:
|
|
60
|
-
export declare function render(properties:
|
|
92
|
+
export declare function getElement(properties: IElementProperties): IElement;
|
|
93
|
+
export declare function render(properties: IElementProperties): HTMLElement;
|
|
61
94
|
export {};
|