jpf-mobx 1.0.102 → 1.0.104
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/README.md +2 -2
- package/dist/controls/kendo/DataSource/DataSource.d.ts +1 -1
- package/dist/controls/kendo/Grid/Grid.d.ts +1 -1
- package/dist/controls/leaflet/LabelControl/LabelControl.d.ts +3 -3
- package/dist/controls/leaflet/LabelControl/LabelControl.js.map +1 -1
- package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.d.ts +3 -3
- package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js.map +1 -1
- package/dist/controls/svg/Polygon/Polygon.d.ts +1 -1
- package/dist/controls/svg/Polygon/Polygon.js.map +1 -1
- package/dist/controls/svg/Polyline/Polyline.d.ts +1 -1
- package/dist/controls/svg/Polyline/Polyline.js.map +1 -1
- package/dist/controls/svg/svg.d.ts +2 -2
- package/dist/controls/svg/svg.js.map +1 -1
- package/dist/framework/IAttributes.d.ts +90 -0
- package/dist/framework/IAttributes.js +2 -0
- package/dist/framework/IAttributes.js.map +1 -0
- package/dist/framework/IStyle.d.ts +656 -0
- package/dist/framework/IStyle.js +154 -0
- package/dist/framework/IStyle.js.map +1 -0
- package/dist/framework/event.d.ts +7 -7
- package/dist/framework/event.js.map +1 -1
- package/dist/framework/properties.d.ts +3 -3
- package/dist/framework/properties.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/utilities/router/router.d.ts +3 -3
- package/dist/utilities/router/router.js.map +1 -1
- package/package.json +6 -6
- package/src/controls/kendo/DataSource/DataSource.ts +1 -1
- package/src/controls/kendo/Grid/Grid.ts +1 -1
- package/src/controls/leaflet/LabelControl/LabelControl.ts +3 -3
- package/src/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.ts +3 -3
- package/src/controls/svg/Polygon/Polygon.ts +1 -1
- package/src/controls/svg/Polyline/Polyline.ts +1 -1
- package/src/controls/svg/svg.ts +3 -3
- package/src/framework/{attributes.ts → IAttributes.ts} +2 -2
- package/src/framework/{style.ts → IStyle.ts} +5 -5
- package/src/framework/event.ts +7 -7
- package/src/framework/properties.ts +3 -3
- package/src/index.ts +2 -2
- package/src/utilities/router/router.ts +3 -3
package/README.md
CHANGED
|
@@ -5,13 +5,13 @@ So if a property in the ViewModel is observable and changes its value the View w
|
|
|
5
5
|
This implementation uses Mobx for State management
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
### The main goals for this library are:
|
|
9
9
|
1. **Support the MVVM design pattern**
|
|
10
10
|
1. **Have a clear separation between GUI logic and presentation. Clear separation of concern between View and ViewModel**
|
|
11
11
|
1. **Being able to change the presentation without affecting the GUI logic. Changing the View without affecting the ViewModel**
|
|
12
12
|
1. **Sharing the same GUI logic for multiple presentations. Having one ViewModel with multiple Views for example for Desktop and Mobile**
|
|
13
13
|
1. **Eliminate the use of text based templating**
|
|
14
|
-
1. **Support binding expression checking at
|
|
14
|
+
1. **Support binding expression checking at design time instead of runtime**
|
|
15
15
|
1. **Discover programming errors at compile time instead of runtime**
|
|
16
16
|
1. **Circumvent the typical React diffing mechanisme and update the DOM in a more fine grained way**
|
|
17
17
|
|
|
@@ -2,7 +2,7 @@ import * as kendo from "@progress/kendo-ui/js/kendo.grid.js";
|
|
|
2
2
|
import { Element } from "../../../framework/element";
|
|
3
3
|
import { Properties, IProperties } from "../../../framework/properties";
|
|
4
4
|
import { ISubscribable } from "../../../framework/observable";
|
|
5
|
-
import { ChangedItem } from "../DataSource/DataSource";
|
|
5
|
+
import { IChangedItem as ChangedItem } from "../DataSource/DataSource";
|
|
6
6
|
export interface IGridProperties<TItem> extends IProperties {
|
|
7
7
|
items?: Array<TItem> | ISubscribable<Array<TItem>>;
|
|
8
8
|
idProperty?: keyof TItem;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as leaflet from "leaflet";
|
|
2
2
|
import { IElement } from "../../../framework/element";
|
|
3
3
|
import { Properties } from "../../../framework/properties";
|
|
4
|
-
export interface
|
|
4
|
+
export interface ILeafletLabelControlOptions extends leaflet.ControlOptions {
|
|
5
5
|
content: string | IElement | Properties;
|
|
6
6
|
}
|
|
7
7
|
export declare class LeafletLabelControl extends leaflet.Control {
|
|
8
|
-
constructor(options:
|
|
8
|
+
constructor(options: ILeafletLabelControlOptions);
|
|
9
9
|
private readonly content;
|
|
10
10
|
onAdd(map: leaflet.Map): HTMLElement;
|
|
11
11
|
}
|
|
12
|
-
export declare function createLeafletLabelControl(options:
|
|
12
|
+
export declare function createLeafletLabelControl(options: ILeafletLabelControlOptions): LeafletLabelControl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LabelControl.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/LabelControl/LabelControl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAY,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAM3D,MAAM,OAAO,mBAAoB,SAAQ,OAAO,CAAC,OAAO;IACpD,YAAY,
|
|
1
|
+
{"version":3,"file":"LabelControl.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/LabelControl/LabelControl.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AACnC,OAAO,EAAY,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAM3D,MAAM,OAAO,mBAAoB,SAAQ,OAAO,CAAC,OAAO;IACpD,YAAY,OAAoC;QAC5C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IACnC,CAAC;IAEgB,OAAO,CAAiC;IAEzD,KAAK,CAAC,GAAgB;QAClB,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE1C,IAAI,IAAI,CAAC;QACT,IAAI,IAAI,CAAC,OAAO,YAAY,UAAU,EAAE;YACpC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAChC,IAAI,IAAI,EAAE;gBACN,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;aAClC;SACJ;aAAM,IAAI,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,EAAE;YACzC,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC;SAChC;aAAM;YACH,IAAI,GAAG,IAAI,CAAC,OAAmB,CAAC;YAChC,IAAI,IAAI,CAAC,MAAM,EAAE;gBACb,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;aAClC;SACJ;QAED,OAAO,GAAG,CAAC;IACf,CAAC;CACJ;AAED,MAAM,UAAU,yBAAyB,CAAC,OAAoC;IAC1E,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TileLayerOptions, TileLayer } from "leaflet";
|
|
2
|
-
export interface
|
|
2
|
+
export interface IOpenStreetMapTileLayerOptions extends TileLayerOptions {
|
|
3
3
|
attribution?: string;
|
|
4
4
|
}
|
|
5
5
|
export declare class OpenStreetMapTileLayer extends TileLayer {
|
|
6
|
-
constructor(options?:
|
|
6
|
+
constructor(options?: IOpenStreetMapTileLayerOptions);
|
|
7
7
|
}
|
|
8
|
-
export declare function createOpenStreetMapTileLayer(options?:
|
|
8
|
+
export declare function createOpenStreetMapTileLayer(options?: IOpenStreetMapTileLayerOptions): OpenStreetMapTileLayer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenStreetMapTileLayer.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,SAAS,CAAC;AAMtD,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IACjD,YAAY,
|
|
1
|
+
{"version":3,"file":"OpenStreetMapTileLayer.js","sourceRoot":"","sources":["../../../../src/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,SAAS,CAAC;AAMtD,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IACjD,YAAY,OAAwC;QAChD,IAAI,CAAC,OAAO,EAAE;YACV,OAAO,GAAG,EAAE,CAAC;SAChB;QACD,OAAO,CAAC,WAAW,GAAG,2FAA2F,CAAC;QAClH,KAAK,CAAC,oDAAoD,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACJ;AAED,MAAM,UAAU,4BAA4B,CAAC,OAAwC;IACjF,OAAO,IAAI,sBAAsB,CAAC,OAAO,CAAC,CAAC;AAC/C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Element } from "../../../framework/element";
|
|
2
2
|
import { IProperties } from "../../../framework/properties";
|
|
3
3
|
import { ISubscribable } from "../../../framework/observable";
|
|
4
|
-
import { SvgPoint } from "../svg";
|
|
4
|
+
import { ISvgPoint as SvgPoint } from "../svg";
|
|
5
5
|
export interface IPolygonProperties extends IProperties {
|
|
6
6
|
points: Array<SvgPoint> | ISubscribable<Array<SvgPoint>>;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Polygon.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polygon/Polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAe,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAiB,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"Polygon.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polygon/Polygon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAe,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAiB,MAAM,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAyB,eAAe,IAAI,SAAS,EAAE,MAAM,QAAQ,CAAC;AAM7E,MAAM,OAAO,cAAe,SAAQ,OAA2B;IAC3D,YAAY,UAA8B;QACtC,KAAK,CACD;YACI,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,SAAS;gBACtB,UAAU,EAAE;oBACR,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;iBAC/C;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,aAAa,CAAC,UAA8B;IACxD,OAAO,IAAI,cAAc,CAAC,UAAU,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Element } from "../../../framework/element";
|
|
2
2
|
import { IProperties } from "../../../framework/properties";
|
|
3
3
|
import { ISubscribable } from "../../../framework/observable";
|
|
4
|
-
import { SvgPoint } from "../svg";
|
|
4
|
+
import { ISvgPoint as SvgPoint } from "../svg";
|
|
5
5
|
export interface IPolylineProperties extends IProperties {
|
|
6
6
|
points: Array<SvgPoint> | ISubscribable<Array<SvgPoint>>;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Polyline.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polyline/Polyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAgB,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,
|
|
1
|
+
{"version":3,"file":"Polyline.js","sourceRoot":"","sources":["../../../../src/controls/svg/Polyline/Polyline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAgB,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,EAAyB,eAAe,EAAE,MAAM,QAAQ,CAAC;AAMhE,MAAM,OAAO,eAAgB,SAAQ,OAA4B;IAC7D,YAAY,UAA+B;QACvC,KAAK,CACD;YACI,OAAO,EAAE,UAAU;YACnB,UAAU,EAAE,gBAAgB,CACxB,UAAU,EACV;gBACI,WAAW,EAAE,UAAU;gBACvB,UAAU,EAAE;oBACR,MAAM,EAAE,eAAe,CAAC,UAAU,CAAC,MAAM,CAAC;iBAC7C;aACJ,CACJ;SACJ,CACJ,CAAC;IACN,CAAC;CACJ;AAED,MAAM,UAAU,cAAc,CAAC,UAA+B;IAC1D,OAAO,IAAI,eAAe,CAAC,UAAU,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ISubscribable } from "../../framework/observable";
|
|
2
|
-
export interface
|
|
2
|
+
export interface ISvgPoint {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
5
5
|
}
|
|
6
|
-
export declare function serializePoints(points: Array<
|
|
6
|
+
export declare function serializePoints(points: Array<ISvgPoint> | ISubscribable<Array<ISvgPoint>>): string | ISubscribable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../src/controls/svg/svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAO7F,MAAM,UAAU,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"svg.js","sourceRoot":"","sources":["../../../src/controls/svg/svg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAO7F,MAAM,UAAU,eAAe,CAAC,MAA0D;IACtF,IAAI,MAAM,EAAE;QACR,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE;YACxB,OAAO,QAAQ,CACX,GAAG,EAAE;gBACD,OAAO,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;YACvF,CAAC,CACJ,CAAC;SACL;QACD,OAAO,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;KACxG;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ISubscribable } from "./observable";
|
|
2
|
+
import { PreserveAspectRatio } from "./types";
|
|
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
|
+
}
|
|
47
|
+
export interface IAttributesSubscribable {
|
|
48
|
+
alt?: string | ISubscribable<string>;
|
|
49
|
+
disabled?: string | ISubscribable<string>;
|
|
50
|
+
href?: string | ISubscribable<string>;
|
|
51
|
+
target?: string | ISubscribable<string>;
|
|
52
|
+
id?: string | ISubscribable<string>;
|
|
53
|
+
src?: string | ISubscribable<string>;
|
|
54
|
+
title?: string | ISubscribable<string>;
|
|
55
|
+
class?: string | ISubscribable<string>;
|
|
56
|
+
tabindex?: number | ISubscribable<number>;
|
|
57
|
+
draggable?: string | ISubscribable<string>;
|
|
58
|
+
placeholder?: string | ISubscribable<string>;
|
|
59
|
+
for?: string | ISubscribable<string>;
|
|
60
|
+
type?: string | ISubscribable<string>;
|
|
61
|
+
value?: string | ISubscribable<string>;
|
|
62
|
+
view?: string | ISubscribable<string>;
|
|
63
|
+
checked?: string | ISubscribable<string>;
|
|
64
|
+
enctype?: string | ISubscribable<string>;
|
|
65
|
+
name?: string | ISubscribable<string>;
|
|
66
|
+
multiple?: boolean | ISubscribable<boolean>;
|
|
67
|
+
["aria-label"]?: string | ISubscribable<string>;
|
|
68
|
+
cx?: number | string | ISubscribable<number | string>;
|
|
69
|
+
cy?: number | string | ISubscribable<number | string>;
|
|
70
|
+
r?: number | string | ISubscribable<number | string>;
|
|
71
|
+
rx?: number | string | ISubscribable<number | string>;
|
|
72
|
+
ry?: number | string | ISubscribable<number | string>;
|
|
73
|
+
x?: number | string | ISubscribable<number | string>;
|
|
74
|
+
x1?: number | string | ISubscribable<number | string>;
|
|
75
|
+
x2?: number | string | ISubscribable<number | string>;
|
|
76
|
+
y?: number | string | ISubscribable<number | string>;
|
|
77
|
+
y1?: number | string | ISubscribable<number | string>;
|
|
78
|
+
y2?: number | string | ISubscribable<number | string>;
|
|
79
|
+
width?: number | string | ISubscribable<number | string>;
|
|
80
|
+
height?: number | string | ISubscribable<number | string>;
|
|
81
|
+
patternUnits?: string | ISubscribable<string>;
|
|
82
|
+
patternTransform?: string | ISubscribable<string>;
|
|
83
|
+
points?: string | ISubscribable<string>;
|
|
84
|
+
viewBox?: string | ISubscribable<string>;
|
|
85
|
+
dx?: number | string | ISubscribable<number | string>;
|
|
86
|
+
dy?: number | string | ISubscribable<number | string>;
|
|
87
|
+
rotate?: string | ISubscribable<string>;
|
|
88
|
+
preserveAspectRatio?: PreserveAspectRatio | ISubscribable<PreserveAspectRatio>;
|
|
89
|
+
xmlns?: string | ISubscribable<string>;
|
|
90
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IAttributes.js","sourceRoot":"","sources":["../../src/framework/IAttributes.ts"],"names":[],"mappings":""}
|