@contrail/documents 1.0.77 → 1.0.78

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.
Files changed (35) hide show
  1. package/lib/components/components.d.ts +269 -269
  2. package/lib/components/components.js +86 -86
  3. package/lib/components/index.d.ts +1 -1
  4. package/lib/components/index.js +17 -17
  5. package/lib/document-action.d.ts +7 -7
  6. package/lib/document-action.js +10 -10
  7. package/lib/document-element-component-size-handler.d.ts +4 -4
  8. package/lib/document-element-component-size-handler.js +55 -55
  9. package/lib/document-element-factory.d.ts +12 -12
  10. package/lib/document-element-factory.js +76 -76
  11. package/lib/document-element-property-binding-handler.d.ts +5 -5
  12. package/lib/document-element-property-binding-handler.js +58 -57
  13. package/lib/index.d.ts +6 -6
  14. package/lib/index.js +22 -22
  15. package/lib/types/common.d.ts +69 -69
  16. package/lib/types/common.js +8 -8
  17. package/lib/types/data-object.d.ts +6 -6
  18. package/lib/types/data-object.js +2 -2
  19. package/lib/types/document-change.d.ts +13 -13
  20. package/lib/types/document-change.js +10 -10
  21. package/lib/types/document-element-event.d.ts +23 -23
  22. package/lib/types/document-element-event.js +2 -2
  23. package/lib/types/document-element-holder.d.ts +8 -8
  24. package/lib/types/document-element-holder.js +2 -2
  25. package/lib/types/document-element.d.ts +27 -27
  26. package/lib/types/document-element.js +2 -2
  27. package/lib/types/document-navigation-event.d.ts +4 -4
  28. package/lib/types/document-navigation-event.js +2 -2
  29. package/lib/types/document.d.ts +23 -23
  30. package/lib/types/document.js +2 -2
  31. package/lib/types/element-transformation.d.ts +18 -18
  32. package/lib/types/element-transformation.js +2 -2
  33. package/lib/types/index.d.ts +9 -9
  34. package/lib/types/index.js +25 -25
  35. package/package.json +45 -45
@@ -1,86 +1,86 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComponentRegistry = exports.ITEM_VIEW_V2 = exports.ITEM_VIEW = exports.ITEM_VIEW_TEMPLATE_V2 = exports.ITEM_VIEW_TEMPLATE = void 0;
4
- const types_1 = require("../types");
5
- exports.ITEM_VIEW_TEMPLATE = {
6
- elements: [{
7
- type: "image",
8
- size: { width: 125, height: 125 },
9
- style: { background: { size: types_1.BackgroundSizeType.CONTAIN } },
10
- propertyBindings: { url: 'thumbnail.downloadUrl' }
11
- }, {
12
- type: "text",
13
- position: { x: 0, y: 126 },
14
- size: { height: 25, width: 125 },
15
- style: {
16
- font: {
17
- size: 8,
18
- }
19
- },
20
- propertyBindings: { text: 'item.name' }
21
- }, {
22
- type: "text",
23
- position: { x: 0, y: 151 },
24
- size: { height: 25, width: 125 },
25
- style: {
26
- font: {
27
- size: 8,
28
- },
29
- color: 'rgba(0,0,0,.5)',
30
- },
31
- propertyBindings: { text: 'item.optionName' }
32
- }
33
- ]
34
- };
35
- exports.ITEM_VIEW_TEMPLATE_V2 = {
36
- elements: [{
37
- type: "image",
38
- size: { width: 125, height: 125 },
39
- style: { background: { size: types_1.BackgroundSizeType.CONTAIN } },
40
- propertyBindings: { url: 'viewable.mediumViewableDownloadUrl' }
41
- }, {
42
- type: "text",
43
- position: { x: 0, y: 126 },
44
- size: { height: 25, width: 125 },
45
- style: {
46
- font: {
47
- size: 8,
48
- }
49
- },
50
- propertyBindings: { text: 'item.name' }
51
- }, {
52
- type: "text",
53
- position: { x: 0, y: 151 },
54
- size: { height: 25, width: 125 },
55
- style: {
56
- font: {
57
- size: 8,
58
- },
59
- color: 'rgba(0,0,0,.5)',
60
- },
61
- propertyBindings: { text: 'item.optionName' }
62
- }
63
- ]
64
- };
65
- exports.ITEM_VIEW = {
66
- slug: 'item-view',
67
- defaultTemplate: exports.ITEM_VIEW_TEMPLATE,
68
- };
69
- exports.ITEM_VIEW_V2 = {
70
- slug: 'item-view-v2',
71
- defaultTemplate: exports.ITEM_VIEW_TEMPLATE_V2,
72
- };
73
- class ComponentRegistry {
74
- static getComponentDefinition(slug) {
75
- if (!this.componentDefinitionMap) {
76
- this.initMap();
77
- }
78
- return this.componentDefinitionMap.get(slug);
79
- }
80
- static initMap() {
81
- this.componentDefinitionMap = new Map();
82
- this.componentDefinitionMap.set('item-view', exports.ITEM_VIEW);
83
- this.componentDefinitionMap.set('item-view-v2', exports.ITEM_VIEW_V2);
84
- }
85
- }
86
- exports.ComponentRegistry = ComponentRegistry;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentRegistry = exports.ITEM_VIEW_V2 = exports.ITEM_VIEW = exports.ITEM_VIEW_TEMPLATE_V2 = exports.ITEM_VIEW_TEMPLATE = void 0;
4
+ const types_1 = require("../types");
5
+ exports.ITEM_VIEW_TEMPLATE = {
6
+ elements: [{
7
+ type: "image",
8
+ size: { width: 125, height: 125 },
9
+ style: { background: { size: types_1.BackgroundSizeType.CONTAIN } },
10
+ propertyBindings: { url: 'thumbnail.downloadUrl' }
11
+ }, {
12
+ type: "text",
13
+ position: { x: 0, y: 126 },
14
+ size: { height: 25, width: 125 },
15
+ style: {
16
+ font: {
17
+ size: 8,
18
+ }
19
+ },
20
+ propertyBindings: { text: 'item.name' }
21
+ }, {
22
+ type: "text",
23
+ position: { x: 0, y: 151 },
24
+ size: { height: 25, width: 125 },
25
+ style: {
26
+ font: {
27
+ size: 8,
28
+ },
29
+ color: 'rgba(0,0,0,.5)',
30
+ },
31
+ propertyBindings: { text: 'item.optionName' }
32
+ }
33
+ ]
34
+ };
35
+ exports.ITEM_VIEW_TEMPLATE_V2 = {
36
+ elements: [{
37
+ type: "image",
38
+ size: { width: 125, height: 125 },
39
+ style: { background: { size: types_1.BackgroundSizeType.CONTAIN } },
40
+ propertyBindings: { url: 'viewable.mediumViewableDownloadUrl' }
41
+ }, {
42
+ type: "text",
43
+ position: { x: 0, y: 126 },
44
+ size: { height: 25, width: 125 },
45
+ style: {
46
+ font: {
47
+ size: 8,
48
+ }
49
+ },
50
+ propertyBindings: { text: 'item.name' }
51
+ }, {
52
+ type: "text",
53
+ position: { x: 0, y: 151 },
54
+ size: { height: 25, width: 125 },
55
+ style: {
56
+ font: {
57
+ size: 8,
58
+ },
59
+ color: 'rgba(0,0,0,.5)',
60
+ },
61
+ propertyBindings: { text: 'item.optionName' }
62
+ }
63
+ ]
64
+ };
65
+ exports.ITEM_VIEW = {
66
+ slug: 'item-view',
67
+ defaultTemplate: exports.ITEM_VIEW_TEMPLATE,
68
+ };
69
+ exports.ITEM_VIEW_V2 = {
70
+ slug: 'item-view-v2',
71
+ defaultTemplate: exports.ITEM_VIEW_TEMPLATE_V2,
72
+ };
73
+ class ComponentRegistry {
74
+ static getComponentDefinition(slug) {
75
+ if (!this.componentDefinitionMap) {
76
+ this.initMap();
77
+ }
78
+ return this.componentDefinitionMap.get(slug);
79
+ }
80
+ static initMap() {
81
+ this.componentDefinitionMap = new Map();
82
+ this.componentDefinitionMap.set('item-view', exports.ITEM_VIEW);
83
+ this.componentDefinitionMap.set('item-view-v2', exports.ITEM_VIEW_V2);
84
+ }
85
+ }
86
+ exports.ComponentRegistry = ComponentRegistry;
@@ -1 +1 @@
1
- export * from './components';
1
+ export * from './components';
@@ -1,17 +1,17 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./components"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./components"), exports);
@@ -1,7 +1,7 @@
1
- import { Action } from '@contrail/actions';
2
- import { DocumentChange } from './types';
3
- export declare class DocumentAction extends Action {
4
- changeDefinition: DocumentChange;
5
- undoChangeDefinition: DocumentChange;
6
- constructor(change: any, undoChange?: any);
7
- }
1
+ import { Action } from '@contrail/actions';
2
+ import { DocumentChange } from './types';
3
+ export declare class DocumentAction extends Action {
4
+ changeDefinition: DocumentChange;
5
+ undoChangeDefinition: DocumentChange;
6
+ constructor(change: any, undoChange?: any);
7
+ }
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentAction = void 0;
4
- const actions_1 = require("@contrail/actions");
5
- class DocumentAction extends actions_1.Action {
6
- constructor(change, undoChange = null) {
7
- super('document', change, undoChange);
8
- }
9
- }
10
- exports.DocumentAction = DocumentAction;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentAction = void 0;
4
+ const actions_1 = require("@contrail/actions");
5
+ class DocumentAction extends actions_1.Action {
6
+ constructor(change, undoChange = null) {
7
+ super('document', change, undoChange);
8
+ }
9
+ }
10
+ exports.DocumentAction = DocumentAction;
@@ -1,4 +1,4 @@
1
- export declare class DocumentElementComponentSizeHandler {
2
- static updateSizeAndPositionForPropertyElements(propertyElements: any[]): any;
3
- private static getYMargin;
4
- }
1
+ export declare class DocumentElementComponentSizeHandler {
2
+ static updateSizeAndPositionForPropertyElements(propertyElements: any[]): any;
3
+ private static getYMargin;
4
+ }
@@ -1,55 +1,55 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentElementComponentSizeHandler = void 0;
4
- class DocumentElementComponentSizeHandler {
5
- static updateSizeAndPositionForPropertyElements(propertyElements) {
6
- const newElements = [];
7
- let lastYPosition = 0;
8
- let width = 200;
9
- const imageElements = propertyElements.filter(element => {
10
- return element.type === 'image';
11
- });
12
- if (imageElements.length > 0) {
13
- width = imageElements[0].size.width;
14
- }
15
- propertyElements.forEach((element) => {
16
- var _a;
17
- if (element.enabled === false) {
18
- return;
19
- }
20
- element.position = {
21
- x: 0,
22
- y: lastYPosition
23
- };
24
- lastYPosition = lastYPosition + this.getYMargin(element);
25
- if (element.type === 'text') {
26
- if (!((_a = element.style) === null || _a === void 0 ? void 0 : _a.font)) {
27
- element.style = Object.assign(Object.assign({}, element.style), { font: { size: 8 } });
28
- }
29
- if (!(element === null || element === void 0 ? void 0 : element.size)) {
30
- element.size = {};
31
- }
32
- element.size.height = element.style.font.size + 6;
33
- }
34
- element.size.width = width;
35
- newElements.push(element);
36
- });
37
- return newElements;
38
- }
39
- static getYMargin(element) {
40
- let marginY = 11;
41
- if (element.type === 'image') {
42
- marginY = element.size.height;
43
- }
44
- else if (element.type === 'text') {
45
- if (element.size && element.size.height) {
46
- marginY = element.size.height;
47
- }
48
- else if (element.style && element.style.font) {
49
- marginY = element.style.font.size + 6;
50
- }
51
- }
52
- return marginY;
53
- }
54
- }
55
- exports.DocumentElementComponentSizeHandler = DocumentElementComponentSizeHandler;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentElementComponentSizeHandler = void 0;
4
+ class DocumentElementComponentSizeHandler {
5
+ static updateSizeAndPositionForPropertyElements(propertyElements) {
6
+ const newElements = [];
7
+ let lastYPosition = 0;
8
+ let width = 200;
9
+ const imageElements = propertyElements.filter(element => {
10
+ return element.type === 'image';
11
+ });
12
+ if (imageElements.length > 0) {
13
+ width = imageElements[0].size.width;
14
+ }
15
+ propertyElements.forEach((element) => {
16
+ var _a;
17
+ if (element.enabled === false) {
18
+ return;
19
+ }
20
+ element.position = {
21
+ x: 0,
22
+ y: lastYPosition
23
+ };
24
+ lastYPosition = lastYPosition + this.getYMargin(element);
25
+ if (element.type === 'text') {
26
+ if (!((_a = element.style) === null || _a === void 0 ? void 0 : _a.font)) {
27
+ element.style = Object.assign(Object.assign({}, element.style), { font: { size: 8 } });
28
+ }
29
+ if (!(element === null || element === void 0 ? void 0 : element.size)) {
30
+ element.size = {};
31
+ }
32
+ element.size.height = element.style.font.size + 6;
33
+ }
34
+ element.size.width = width;
35
+ newElements.push(element);
36
+ });
37
+ return newElements;
38
+ }
39
+ static getYMargin(element) {
40
+ let marginY = 11;
41
+ if (element.type === 'image') {
42
+ marginY = element.size.height;
43
+ }
44
+ else if (element.type === 'text') {
45
+ if (element.size && element.size.height) {
46
+ marginY = element.size.height;
47
+ }
48
+ else if (element.style && element.style.font) {
49
+ marginY = element.style.font.size + 6;
50
+ }
51
+ }
52
+ return marginY;
53
+ }
54
+ }
55
+ exports.DocumentElementComponentSizeHandler = DocumentElementComponentSizeHandler;
@@ -1,12 +1,12 @@
1
- import { ComponentDefinition } from './components/components';
2
- import { DocumentElement } from './types/document-element';
3
- export declare class DocumentElementFactory {
4
- static initNewElement(type: string): DocumentElement;
5
- static createTextElement(text: string, options?: DocumentElement): DocumentElement;
6
- static createShapeElement(type: string, options?: DocumentElement): DocumentElement;
7
- static createElement(type: string, options?: DocumentElement): DocumentElement;
8
- static createImageElement(options: DocumentElement): DocumentElement;
9
- static createFrameElement(options: DocumentElement): DocumentElement;
10
- static createComponent(componentType: string, model: any, modelBindings: any, options?: DocumentElement): DocumentElement;
11
- static createComponentFromComponentDefinition(componentDefinition: ComponentDefinition, model: any, modelBindings: any, options?: DocumentElement): DocumentElement;
12
- }
1
+ import { ComponentDefinition } from './components/components';
2
+ import { DocumentElement } from './types/document-element';
3
+ export declare class DocumentElementFactory {
4
+ static initNewElement(type: string): DocumentElement;
5
+ static createTextElement(text: string, options?: DocumentElement): DocumentElement;
6
+ static createShapeElement(type: string, options?: DocumentElement): DocumentElement;
7
+ static createElement(type: string, options?: DocumentElement): DocumentElement;
8
+ static createImageElement(options: DocumentElement): DocumentElement;
9
+ static createFrameElement(options: DocumentElement): DocumentElement;
10
+ static createComponent(componentType: string, model: any, modelBindings: any, options?: DocumentElement): DocumentElement;
11
+ static createComponentFromComponentDefinition(componentDefinition: ComponentDefinition, model: any, modelBindings: any, options?: DocumentElement): DocumentElement;
12
+ }
@@ -1,76 +1,76 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentElementFactory = void 0;
4
- const nanoid_1 = require("nanoid");
5
- const components_1 = require("./components/components");
6
- const document_element_property_binding_handler_1 = require("./document-element-property-binding-handler");
7
- class DocumentElementFactory {
8
- static initNewElement(type) {
9
- const element = {
10
- id: (0, nanoid_1.nanoid)(16),
11
- position: { x: 300, y: 300 },
12
- type,
13
- };
14
- return element;
15
- }
16
- static createTextElement(text, options = {}) {
17
- let element = this.initNewElement('text');
18
- element.text = text;
19
- element.size = { width: 65, height: 20 };
20
- element.style = {
21
- color: '#000000'
22
- };
23
- element = Object.assign(element, options);
24
- return element;
25
- }
26
- static createShapeElement(type, options = {}) {
27
- let element = this.initNewElement(type);
28
- element = Object.assign(element, options);
29
- return element;
30
- }
31
- static createElement(type, options = {}) {
32
- var _a;
33
- let element = this.initNewElement(type);
34
- element = Object.assign(element, options);
35
- if (((_a = element === null || element === void 0 ? void 0 : element.elements) === null || _a === void 0 ? void 0 : _a.length) > 0) {
36
- element.elements = element.elements.map((e) => {
37
- e.id = (0, nanoid_1.nanoid)(16);
38
- return e;
39
- });
40
- }
41
- return element;
42
- }
43
- static createImageElement(options) {
44
- let element = this.initNewElement('image');
45
- element = Object.assign(element, options);
46
- return element;
47
- }
48
- static createFrameElement(options) {
49
- let element = this.initNewElement('frame');
50
- element = Object.assign(element, options);
51
- return element;
52
- }
53
- static createComponent(componentType, model, modelBindings, options) {
54
- const componentDefinition = components_1.ComponentRegistry.getComponentDefinition(componentType);
55
- return this.createComponentFromComponentDefinition(componentDefinition, model, modelBindings, options);
56
- }
57
- static createComponentFromComponentDefinition(componentDefinition, model, modelBindings, options) {
58
- var _a;
59
- let element = this.initNewElement('component');
60
- if (options) {
61
- element = Object.assign(element, options);
62
- }
63
- const elements = JSON.parse(JSON.stringify(componentDefinition.defaultTemplate.elements));
64
- document_element_property_binding_handler_1.DocumentElementPropertyBindingHandler.bindPropertiesToElements(elements, model);
65
- element.elements = elements;
66
- element.modelBindings = modelBindings;
67
- if (((_a = element === null || element === void 0 ? void 0 : element.elements) === null || _a === void 0 ? void 0 : _a.length) > 0) {
68
- element.elements = element.elements.map((e) => {
69
- e.id = (0, nanoid_1.nanoid)(16);
70
- return e;
71
- });
72
- }
73
- return element;
74
- }
75
- }
76
- exports.DocumentElementFactory = DocumentElementFactory;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentElementFactory = void 0;
4
+ const nanoid_1 = require("nanoid");
5
+ const components_1 = require("./components/components");
6
+ const document_element_property_binding_handler_1 = require("./document-element-property-binding-handler");
7
+ class DocumentElementFactory {
8
+ static initNewElement(type) {
9
+ const element = {
10
+ id: (0, nanoid_1.nanoid)(16),
11
+ position: { x: 300, y: 300 },
12
+ type,
13
+ };
14
+ return element;
15
+ }
16
+ static createTextElement(text, options = {}) {
17
+ let element = this.initNewElement('text');
18
+ element.text = text;
19
+ element.size = { width: 65, height: 20 };
20
+ element.style = {
21
+ color: '#000000'
22
+ };
23
+ element = Object.assign(element, options);
24
+ return element;
25
+ }
26
+ static createShapeElement(type, options = {}) {
27
+ let element = this.initNewElement(type);
28
+ element = Object.assign(element, options);
29
+ return element;
30
+ }
31
+ static createElement(type, options = {}) {
32
+ var _a;
33
+ let element = this.initNewElement(type);
34
+ element = Object.assign(element, options);
35
+ if (((_a = element === null || element === void 0 ? void 0 : element.elements) === null || _a === void 0 ? void 0 : _a.length) > 0) {
36
+ element.elements = element.elements.map((e) => {
37
+ e.id = (0, nanoid_1.nanoid)(16);
38
+ return e;
39
+ });
40
+ }
41
+ return element;
42
+ }
43
+ static createImageElement(options) {
44
+ let element = this.initNewElement('image');
45
+ element = Object.assign(element, options);
46
+ return element;
47
+ }
48
+ static createFrameElement(options) {
49
+ let element = this.initNewElement('frame');
50
+ element = Object.assign(element, options);
51
+ return element;
52
+ }
53
+ static createComponent(componentType, model, modelBindings, options) {
54
+ const componentDefinition = components_1.ComponentRegistry.getComponentDefinition(componentType);
55
+ return this.createComponentFromComponentDefinition(componentDefinition, model, modelBindings, options);
56
+ }
57
+ static createComponentFromComponentDefinition(componentDefinition, model, modelBindings, options) {
58
+ var _a;
59
+ let element = this.initNewElement('component');
60
+ if (options) {
61
+ element = Object.assign(element, options);
62
+ }
63
+ const elements = JSON.parse(JSON.stringify(componentDefinition.defaultTemplate.elements));
64
+ document_element_property_binding_handler_1.DocumentElementPropertyBindingHandler.bindPropertiesToElements(elements, model);
65
+ element.elements = elements;
66
+ element.modelBindings = modelBindings;
67
+ if (((_a = element === null || element === void 0 ? void 0 : element.elements) === null || _a === void 0 ? void 0 : _a.length) > 0) {
68
+ element.elements = element.elements.map((e) => {
69
+ e.id = (0, nanoid_1.nanoid)(16);
70
+ return e;
71
+ });
72
+ }
73
+ return element;
74
+ }
75
+ }
76
+ exports.DocumentElementFactory = DocumentElementFactory;
@@ -1,5 +1,5 @@
1
- import { DocumentElement } from './types/document-element';
2
- export declare class DocumentElementPropertyBindingHandler {
3
- static bindPropertiesToElements(elements: Array<DocumentElement>, model: any): void;
4
- static bindPropertiesToElement(element: DocumentElement, model: any): void;
5
- }
1
+ import { DocumentElement } from './types/document-element';
2
+ export declare class DocumentElementPropertyBindingHandler {
3
+ static bindPropertiesToElements(elements: Array<DocumentElement>, model: any): void;
4
+ static bindPropertiesToElement(element: DocumentElement, model: any): void;
5
+ }