jpf 4.0.2 → 4.0.4

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 (135) hide show
  1. package/dist/View.d.ts +5 -2
  2. package/dist/View.js +5 -0
  3. package/dist/View.js.map +1 -1
  4. package/dist/ViewModel.d.ts +6 -12
  5. package/dist/ViewModel.js +47 -64
  6. package/dist/ViewModel.js.map +1 -1
  7. package/dist/attributes.d.ts +8 -0
  8. package/dist/controls/JsonFormatter/Json.d.ts +27 -0
  9. package/dist/controls/JsonFormatter/Json.js +72 -0
  10. package/dist/controls/JsonFormatter/Json.js.map +1 -0
  11. package/dist/controls/codeMirror/HtmlEditor.d.ts +15 -0
  12. package/dist/controls/codeMirror/HtmlEditor.js +127 -0
  13. package/dist/controls/codeMirror/HtmlEditor.js.map +1 -0
  14. package/dist/controls/codeMirror/JsonEditor.d.ts +15 -0
  15. package/dist/controls/codeMirror/JsonEditor.js +111 -0
  16. package/dist/controls/codeMirror/JsonEditor.js.map +1 -0
  17. package/dist/controls/html/Button.d.ts +15 -0
  18. package/dist/controls/html/Button.js +48 -0
  19. package/dist/controls/html/Button.js.map +1 -0
  20. package/dist/controls/html/Div.d.ts +10 -0
  21. package/dist/controls/html/Div.js +17 -0
  22. package/dist/controls/html/Div.js.map +1 -0
  23. package/dist/controls/html/Image.d.ts +7 -0
  24. package/dist/controls/html/Image.js +16 -0
  25. package/dist/controls/html/Image.js.map +1 -0
  26. package/dist/controls/html/Input.d.ts +43 -0
  27. package/dist/controls/html/Input.js +179 -0
  28. package/dist/controls/html/Input.js.map +1 -0
  29. package/dist/controls/html/Select.d.ts +27 -0
  30. package/dist/controls/html/Select.js +116 -0
  31. package/dist/controls/html/Select.js.map +1 -0
  32. package/dist/controls/html/Span.d.ts +7 -0
  33. package/dist/controls/html/Span.js +16 -0
  34. package/dist/controls/html/Span.js.map +1 -0
  35. package/dist/controls/kendo/Culture.d.ts +1 -0
  36. package/dist/controls/kendo/Culture.js +26 -0
  37. package/dist/controls/kendo/Culture.js.map +1 -0
  38. package/dist/controls/kendo/DataSource.d.ts +4 -0
  39. package/dist/controls/kendo/DataSource.js +2 -0
  40. package/dist/controls/kendo/DataSource.js.map +1 -0
  41. package/dist/controls/kendo/Editor.d.ts +18 -0
  42. package/dist/controls/kendo/Editor.js +113 -0
  43. package/dist/controls/kendo/Editor.js.map +1 -0
  44. package/dist/controls/kendo/Grid.d.ts +50 -0
  45. package/dist/controls/kendo/Grid.js +214 -0
  46. package/dist/controls/kendo/Grid.js.map +1 -0
  47. package/dist/controls/kendo/Menu.d.ts +14 -0
  48. package/dist/controls/kendo/Menu.js +86 -0
  49. package/dist/controls/kendo/Menu.js.map +1 -0
  50. package/dist/controls/kendo/Tree.d.ts +16 -0
  51. package/dist/controls/kendo/Tree.js +104 -0
  52. package/dist/controls/kendo/Tree.js.map +1 -0
  53. package/dist/controls/user/Content.d.ts +16 -0
  54. package/dist/controls/user/Content.js +45 -0
  55. package/dist/controls/user/Content.js.map +1 -0
  56. package/dist/controls/user/FileSelector.d.ts +17 -0
  57. package/dist/controls/user/FileSelector.js +54 -0
  58. package/dist/controls/user/FileSelector.js.map +1 -0
  59. package/dist/controls/user/LabeledControl.d.ts +14 -0
  60. package/dist/controls/user/LabeledControl.js +32 -0
  61. package/dist/controls/user/LabeledControl.js.map +1 -0
  62. package/dist/controls/user/ListItem.d.ts +30 -0
  63. package/dist/controls/user/ListItem.js +61 -0
  64. package/dist/controls/user/ListItem.js.map +1 -0
  65. package/dist/event.d.ts +17 -3
  66. package/dist/event.js +1 -0
  67. package/dist/event.js.map +1 -1
  68. package/dist/{src → framework}/View.d.ts +1 -1
  69. package/dist/{src → framework}/View.js +19 -22
  70. package/dist/framework/View.js.map +1 -0
  71. package/dist/{src → framework}/ViewModel.d.ts +0 -1
  72. package/dist/{src → framework}/ViewModel.js +59 -82
  73. package/dist/framework/ViewModel.js.map +1 -0
  74. package/dist/{src → framework}/attributes.d.ts +0 -0
  75. package/dist/framework/attributes.js +2 -0
  76. package/dist/{src → framework}/attributes.js.map +1 -1
  77. package/dist/{src → framework}/event.d.ts +3 -3
  78. package/dist/framework/event.js +26 -0
  79. package/dist/framework/event.js.map +1 -0
  80. package/dist/{src → framework}/observable.d.ts +0 -0
  81. package/dist/framework/observable.js +59 -0
  82. package/dist/framework/observable.js.map +1 -0
  83. package/dist/{src → framework}/style.d.ts +0 -0
  84. package/dist/{src → framework}/style.js +4 -8
  85. package/dist/framework/style.js.map +1 -0
  86. package/dist/framework/types.d.ts +85 -0
  87. package/dist/framework/types.js +2 -0
  88. package/dist/{src → framework}/types.js.map +1 -1
  89. package/dist/{src → framework}/userAgent.d.ts +0 -0
  90. package/dist/{src → framework}/userAgent.js +3 -6
  91. package/dist/framework/userAgent.js.map +1 -0
  92. package/dist/index.d.ts +8 -6
  93. package/dist/index.js +9 -21
  94. package/dist/index.js.map +1 -1
  95. package/dist/observable.d.ts +12 -0
  96. package/dist/{src/observable.js → observable.js} +0 -0
  97. package/dist/observable.js.map +1 -0
  98. package/dist/style.js +2 -2
  99. package/dist/style.js.map +1 -1
  100. package/dist/userAgent.js.map +1 -1
  101. package/dist/utilities/blob.d.ts +2 -0
  102. package/dist/utilities/blob.js +19 -0
  103. package/dist/utilities/blob.js.map +1 -0
  104. package/dist/utilities/common.d.ts +17 -0
  105. package/dist/utilities/common.js +193 -0
  106. package/dist/utilities/common.js.map +1 -0
  107. package/dist/utilities/fetch.d.ts +5 -0
  108. package/dist/utilities/fetch.js +110 -0
  109. package/dist/utilities/fetch.js.map +1 -0
  110. package/dist/utilities/notification.d.ts +5 -0
  111. package/dist/utilities/notification.js +67 -0
  112. package/dist/utilities/notification.js.map +1 -0
  113. package/dist/utilities/router.d.ts +20 -0
  114. package/dist/utilities/router.js +63 -0
  115. package/dist/utilities/router.js.map +1 -0
  116. package/dist/utilities/webSocket.d.ts +1 -0
  117. package/dist/utilities/webSocket.js +53 -0
  118. package/dist/utilities/webSocket.js.map +1 -0
  119. package/package.json +13 -6
  120. package/dist/examples/example-01.d.ts +0 -1
  121. package/dist/examples/example-01.js +0 -43
  122. package/dist/examples/example-01.js.map +0 -1
  123. package/dist/src/View.js.map +0 -1
  124. package/dist/src/ViewModel.js.map +0 -1
  125. package/dist/src/attributes.js +0 -3
  126. package/dist/src/event.js +0 -30
  127. package/dist/src/event.js.map +0 -1
  128. package/dist/src/index.d.ts +0 -7
  129. package/dist/src/index.js +0 -22
  130. package/dist/src/index.js.map +0 -1
  131. package/dist/src/observable.js.map +0 -1
  132. package/dist/src/style.js.map +0 -1
  133. package/dist/src/types.d.ts +0 -85
  134. package/dist/src/types.js +0 -3
  135. package/dist/src/userAgent.js.map +0 -1
@@ -1,47 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.applyViewModelToElement = exports.extendViewModel = exports.ViewModel = exports.isNullOrUndefined = exports.extend = void 0;
4
- const knockout_1 = require("knockout");
5
- const userAgent_1 = require("./userAgent");
6
- const event_1 = require("./event");
7
- const style_1 = require("./style");
8
- function extend(deep, ...objects) {
9
- var extended = {};
10
- var withChildren = false;
11
- let i = 0;
12
- const length = arguments.length;
13
- if (typeof (arguments[0]) === "boolean") {
14
- withChildren = arguments[0];
15
- i++;
16
- }
17
- const merge = obj => {
18
- for (let prop in obj) {
19
- if (Object.prototype.hasOwnProperty.call(obj, prop)) {
20
- if (withChildren && Object.prototype.toString.call(obj[prop]) === "[object Object]") {
21
- extended[prop] = extend(true, extended[prop], obj[prop]);
22
- }
23
- else {
24
- extended[prop] = obj[prop];
25
- }
26
- }
27
- }
28
- };
29
- for (; i < length; i++) {
30
- const obj = arguments[i];
31
- merge(obj);
32
- }
33
- return extended;
34
- }
35
- exports.extend = extend;
36
- function isNullOrUndefined(value) {
1
+ import { unwrap, isSubscribable } from "knockout";
2
+ import { userAgent } from "./userAgent";
3
+ import { mouseEvents, touchEvents, isGlobalEvent } from "./event";
4
+ import { defaultStyle } from "./style";
5
+ import { extend } from "jquery";
6
+ export function isNullOrUndefined(value) {
37
7
  return value === null || typeof value === "undefined";
38
8
  }
39
- exports.isNullOrUndefined = isNullOrUndefined;
40
- class ViewModel {
9
+ export class ViewModel {
41
10
  constructor(options) {
42
- this.visible = true;
43
- this.disabled = false;
44
- this.addViewModelToDataObject = false;
45
11
  options = options || {};
46
12
  this.classNames = options.classNames;
47
13
  this.attributes = options.attributes || {};
@@ -61,6 +27,19 @@ class ViewModel {
61
27
  this.eventListeners = options.eventListeners || {};
62
28
  this.viewType = options.viewType;
63
29
  }
30
+ classNames;
31
+ attributes;
32
+ style;
33
+ visible = true;
34
+ disabled = false;
35
+ innerHtml;
36
+ innerText;
37
+ addViewModelToDataObject = false;
38
+ userSelectable;
39
+ dispose;
40
+ refresh;
41
+ eventListeners;
42
+ viewType;
64
43
  getStyle(...cssProperties) {
65
44
  if (cssProperties && this.style) {
66
45
  const style = {};
@@ -73,7 +52,7 @@ class ViewModel {
73
52
  }
74
53
  getStyleValue(cssProperty) {
75
54
  if (this.style) {
76
- return (0, knockout_1.unwrap)(this.style[cssProperty]);
55
+ return unwrap(this.style[cssProperty]);
77
56
  }
78
57
  return null;
79
58
  }
@@ -88,8 +67,8 @@ class ViewModel {
88
67
  }
89
68
  }
90
69
  setClasses(classNames, replace) {
91
- if ((0, knockout_1.isSubscribable)(this.classNames)) {
92
- var currentClassNames = (0, knockout_1.unwrap)(this.classNames);
70
+ if (isSubscribable(this.classNames)) {
71
+ var currentClassNames = unwrap(this.classNames);
93
72
  if (replace) {
94
73
  currentClassNames = new Array();
95
74
  }
@@ -108,8 +87,8 @@ class ViewModel {
108
87
  if (newValue === null || newValue === undefined) {
109
88
  newValue = null;
110
89
  }
111
- if ((0, knockout_1.isSubscribable)(this.attributes[key])) {
112
- this.attributes[key]((0, knockout_1.unwrap)(newValue));
90
+ if (isSubscribable(this.attributes[key])) {
91
+ this.attributes[key](unwrap(newValue));
113
92
  }
114
93
  else {
115
94
  this.attributes[key] = newValue;
@@ -122,15 +101,15 @@ class ViewModel {
122
101
  Object.keys(style).forEach((key) => {
123
102
  let newValue = style[key];
124
103
  if (newValue === null || newValue === undefined) {
125
- if (userAgent_1.userAgent.browser.isInternetExplorer) {
126
- newValue = style_1.defaultStyle[key];
104
+ if (userAgent.browser.isInternetExplorer) {
105
+ newValue = defaultStyle[key];
127
106
  }
128
107
  else {
129
108
  newValue = null;
130
109
  }
131
110
  }
132
- if ((0, knockout_1.isSubscribable)(this.style[key])) {
133
- this.style[key]((0, knockout_1.unwrap)(newValue));
111
+ if (isSubscribable(this.style[key])) {
112
+ this.style[key](unwrap(newValue));
134
113
  }
135
114
  else {
136
115
  this.style[key] = newValue;
@@ -139,28 +118,28 @@ class ViewModel {
139
118
  }
140
119
  }
141
120
  setVisible(visible) {
142
- if ((0, knockout_1.isSubscribable)(this.visible)) {
121
+ if (isSubscribable(this.visible)) {
143
122
  this.visible(visible);
144
123
  }
145
124
  }
146
125
  setDisabled(disabled) {
147
- if ((0, knockout_1.isSubscribable)(this.disabled)) {
126
+ if (isSubscribable(this.disabled)) {
148
127
  this.disabled(disabled);
149
128
  }
150
129
  }
151
130
  setInnerHtml(innerHtml) {
152
- if ((0, knockout_1.isSubscribable)(this.innerHtml)) {
131
+ if (isSubscribable(this.innerHtml)) {
153
132
  this.innerHtml(innerHtml);
154
133
  }
155
134
  }
156
135
  setInnerText(innerText) {
157
- if ((0, knockout_1.isSubscribable)(this.innerText)) {
136
+ if (isSubscribable(this.innerText)) {
158
137
  this.innerText(innerText);
159
138
  }
160
139
  }
161
140
  removeClasses(classNames) {
162
- if ((0, knockout_1.isSubscribable)(this.classNames)) {
163
- const currentClassNames = (0, knockout_1.unwrap)(this.classNames);
141
+ if (isSubscribable(this.classNames)) {
142
+ const currentClassNames = unwrap(this.classNames);
164
143
  for (let i = 0; i < currentClassNames.length; i++) {
165
144
  if (classNames.includes(currentClassNames[i])) {
166
145
  currentClassNames.splice(i, 1);
@@ -171,17 +150,16 @@ class ViewModel {
171
150
  }
172
151
  focus() {
173
152
  }
153
+ handleWebSocketMessage;
174
154
  }
175
- exports.ViewModel = ViewModel;
176
- function extendViewModel(target, source) {
155
+ export function extendViewModel(target, source) {
177
156
  return extend(true, target, source);
178
157
  }
179
- exports.extendViewModel = extendViewModel;
180
- function applyViewModelToElement(viewModel, element) {
158
+ export function applyViewModelToElement(viewModel, element) {
181
159
  element.setAttribute("viewtype", viewModel.viewType || "View");
182
160
  if (viewModel.classNames) {
183
- applyClassesToElement((0, knockout_1.unwrap)(viewModel.classNames), true, element);
184
- if ((0, knockout_1.isSubscribable)(viewModel.classNames)) {
161
+ applyClassesToElement(unwrap(viewModel.classNames), true, element);
162
+ if (isSubscribable(viewModel.classNames)) {
185
163
  viewModel.classNames.subscribe((classNames) => {
186
164
  applyClassesToElement(classNames, true, element);
187
165
  });
@@ -190,8 +168,8 @@ function applyViewModelToElement(viewModel, element) {
190
168
  if (viewModel.attributes) {
191
169
  Object.keys(viewModel.attributes).forEach((key) => {
192
170
  var value = viewModel.attributes[key];
193
- applyAttributeToElement(key, (0, knockout_1.unwrap)(value), element);
194
- if ((0, knockout_1.isSubscribable)(value)) {
171
+ applyAttributeToElement(key, unwrap(value), element);
172
+ if (isSubscribable(value)) {
195
173
  value.subscribe((newValue) => {
196
174
  applyAttributeToElement(key, newValue, element);
197
175
  });
@@ -201,8 +179,8 @@ function applyViewModelToElement(viewModel, element) {
201
179
  if (viewModel.style) {
202
180
  Object.keys(viewModel.style).forEach((key) => {
203
181
  const style = viewModel.style[key];
204
- element.style[key] = (0, knockout_1.unwrap)(style);
205
- if ((0, knockout_1.isSubscribable)(style)) {
182
+ element.style[key] = unwrap(style);
183
+ if (isSubscribable(style)) {
206
184
  style.subscribe((newStyle) => {
207
185
  element.style[key] = newStyle;
208
186
  });
@@ -210,16 +188,16 @@ function applyViewModelToElement(viewModel, element) {
210
188
  });
211
189
  }
212
190
  if (!isNullOrUndefined(viewModel.innerHtml)) {
213
- element.innerHTML = (0, knockout_1.unwrap)(viewModel.innerHtml);
214
- if ((0, knockout_1.isSubscribable)(viewModel.innerHtml)) {
191
+ element.innerHTML = unwrap(viewModel.innerHtml);
192
+ if (isSubscribable(viewModel.innerHtml)) {
215
193
  viewModel.innerHtml.subscribe((innerHtml) => {
216
194
  element.innerHTML = innerHtml;
217
195
  });
218
196
  }
219
197
  }
220
198
  if (!isNullOrUndefined(viewModel.innerText)) {
221
- element.innerText = (0, knockout_1.unwrap)(viewModel.innerText);
222
- if ((0, knockout_1.isSubscribable)(viewModel.innerText)) {
199
+ element.innerText = unwrap(viewModel.innerText);
200
+ if (isSubscribable(viewModel.innerText)) {
223
201
  viewModel.innerText.subscribe((innerText) => {
224
202
  element.innerText = innerText;
225
203
  });
@@ -238,14 +216,14 @@ function applyViewModelToElement(viewModel, element) {
238
216
  if (viewModel.eventListeners) {
239
217
  applyEventListenersToElement(viewModel, element);
240
218
  }
241
- applyVisibilityToElement((0, knockout_1.unwrap)(viewModel.visible), element);
242
- if ((0, knockout_1.isSubscribable)(viewModel.visible)) {
219
+ applyVisibilityToElement(unwrap(viewModel.visible), element);
220
+ if (isSubscribable(viewModel.visible)) {
243
221
  viewModel.visible.subscribe((visible) => {
244
222
  applyVisibilityToElement(visible, element);
245
223
  });
246
224
  }
247
- applyDisabledToElement((0, knockout_1.unwrap)(viewModel.disabled), element);
248
- if ((0, knockout_1.isSubscribable)(viewModel.disabled)) {
225
+ applyDisabledToElement(unwrap(viewModel.disabled), element);
226
+ if (isSubscribable(viewModel.disabled)) {
249
227
  viewModel.disabled.subscribe((disabled) => {
250
228
  applyDisabledToElement(disabled, element);
251
229
  });
@@ -254,7 +232,6 @@ function applyViewModelToElement(viewModel, element) {
254
232
  element.focus();
255
233
  };
256
234
  }
257
- exports.applyViewModelToElement = applyViewModelToElement;
258
235
  function applyVisibilityToElement(visible, element) {
259
236
  if (visible === false) {
260
237
  element.classList.add("hidden");
@@ -288,7 +265,7 @@ function applyEventListenersToElement(viewModel, element) {
288
265
  if (eventName === "dragstart") {
289
266
  element.setAttribute("draggable", "true");
290
267
  }
291
- if ((0, event_1.isGlobalEvent)(eventName)) {
268
+ if (isGlobalEvent(eventName)) {
292
269
  applyEventListenerToElement(eventName, (event) => {
293
270
  if (eventListener.options) {
294
271
  const options = eventListener.options;
@@ -309,26 +286,26 @@ function applyEventListenersToElement(viewModel, element) {
309
286
  eventListener.listener.call(viewModel, event);
310
287
  }, eventListener.options, element);
311
288
  }
312
- else if (event_1.mouseEvents[eventName] && userAgent_1.userAgent.device.supportsMouseEvents) {
289
+ else if (mouseEvents[eventName] && userAgent.device.supportsMouseEvents) {
313
290
  applyEventListenerToElement(eventName, eventListener.listener, eventListener.options, element);
314
291
  }
315
- else if (event_1.touchEvents[eventName] && userAgent_1.userAgent.device.supportsTouchEvents) {
292
+ else if (touchEvents[eventName] && userAgent.device.supportsTouchEvents) {
316
293
  applyEventListenerToElement(eventName, eventListener.listener, eventListener.options, element);
317
294
  }
318
295
  });
319
296
  clickEventListeners.forEach((clickEventListener) => {
320
- if (userAgent_1.userAgent.device.supportsTouchEvents) {
297
+ if (userAgent.device.supportsTouchEvents) {
321
298
  applyEventListenerToElement("tap", clickEventListener.listener, clickEventListener.options, element);
322
299
  }
323
- if (userAgent_1.userAgent.device.supportsMouseEvents) {
300
+ if (userAgent.device.supportsMouseEvents) {
324
301
  applyEventListenerToElement("click", clickEventListener.listener, clickEventListener.options, element);
325
302
  }
326
303
  });
327
304
  doubleClickEventListeners.forEach((doubleClickEventListener) => {
328
- if (userAgent_1.userAgent.device.supportsTouchEvents) {
305
+ if (userAgent.device.supportsTouchEvents) {
329
306
  applyEventListenerToElement("dbltap", doubleClickEventListener.listener, doubleClickEventListener.options, element);
330
307
  }
331
- if (userAgent_1.userAgent.device.supportsMouseEvents) {
308
+ if (userAgent.device.supportsMouseEvents) {
332
309
  applyEventListenerToElement("dblclick", doubleClickEventListener.listener, doubleClickEventListener.options, element);
333
310
  }
334
311
  });
@@ -0,0 +1 @@
1
+ {"version":3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changes
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=attributes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"attributes.js","sourceRoot":"","sources":["../../src/attributes.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"attributes.js","sourceRoot":"","sources":["../../src/framework/attributes.ts"],"names":[],"mappings":""}
@@ -20,7 +20,7 @@ export declare const touchEvents: {
20
20
  swipeup: boolean;
21
21
  swipedown: boolean;
22
22
  };
23
- export declare type MouseE = "click" | "contextmenu";
23
+ export type MouseE = "click" | "contextmenu";
24
24
  export declare function isGlobalEvent(event: keyof UiElementEventMap): boolean;
25
25
  export interface UiElementEventMap extends HTMLElementEventMap {
26
26
  "tap": Event;
@@ -44,7 +44,7 @@ export interface IContextMenuEventListener extends IEventListener {
44
44
  export interface IGenericEventListener extends IEventListener {
45
45
  listener: (event: Event) => void;
46
46
  }
47
- interface IEventListener {
47
+ export interface IEventListener {
48
48
  options?: IEventListenerOptions;
49
49
  }
50
50
  export interface MouseEventListeners {
@@ -60,7 +60,7 @@ export interface EventListeners extends MouseEventListeners, FocusEventListeners
60
60
  change?: IGenericEventListener;
61
61
  load?: IGenericEventListener;
62
62
  }
63
- declare type EventKey = "Enter" | "ArrowDown" | "ArrowUp" | "ArrowLeft" | "ArrowRight";
63
+ type EventKey = "Enter" | "ArrowDown" | "ArrowUp" | "ArrowLeft" | "ArrowRight";
64
64
  export interface IEventListenerOptions extends AddEventListenerOptions {
65
65
  eventKey?: EventKey;
66
66
  altKey?: boolean;
@@ -0,0 +1,26 @@
1
+ export const mouseEvents = {
2
+ click: true,
3
+ contextmenu: true,
4
+ mousedown: true,
5
+ mouseenter: true,
6
+ mouseleave: true,
7
+ mousemove: true,
8
+ mouseout: true,
9
+ mouseover: true,
10
+ mouseup: true
11
+ };
12
+ export const touchEvents = {
13
+ touchcancel: true,
14
+ touchend: true,
15
+ touchmove: true,
16
+ touchstart: true,
17
+ longtap: true,
18
+ swipeleft: true,
19
+ swiperight: true,
20
+ swipeup: true,
21
+ swipedown: true
22
+ };
23
+ export function isGlobalEvent(event) {
24
+ return !(mouseEvents[event] || touchEvents[event]);
25
+ }
26
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/framework/event.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,IAAI;IACjB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,OAAO,EAAE,IAAI;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,WAAW,EAAE,IAAI;IACjB,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,IAAI;IACb,SAAS,EAAE,IAAI;CAClB,CAAC;AAIF,MAAM,UAAU,aAAa,CAAC,KAA8B;IACxD,OAAO,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AACvD,CAAC"}
File without changes
@@ -0,0 +1,59 @@
1
+ import { isObservable, observable, observableArray, pureComputed } from "knockout";
2
+ export function isObservableProperty(instance) {
3
+ return instance && !!instance.set;
4
+ }
5
+ export function observableProperty(value, setter, notifyAlways = false) {
6
+ let internalProperty;
7
+ if (value === undefined) {
8
+ value = null;
9
+ }
10
+ if (isObservable(value)) {
11
+ internalProperty = value;
12
+ }
13
+ else {
14
+ internalProperty = observable(value);
15
+ }
16
+ if (notifyAlways) {
17
+ internalProperty.extend({ notify: "always" });
18
+ }
19
+ const computed = pureComputed({ read: internalProperty }).extend({ notify: "always" });
20
+ computed.set = (newValue, triggerSetter = true) => {
21
+ if (setter && triggerSetter) {
22
+ setter(newValue, internalProperty);
23
+ }
24
+ else {
25
+ internalProperty(newValue);
26
+ }
27
+ };
28
+ return computed;
29
+ }
30
+ export function observableArrayProperty(items, setter) {
31
+ let internalProperty;
32
+ if (!items) {
33
+ items = [];
34
+ }
35
+ if (isObservable(items)) {
36
+ internalProperty = items;
37
+ }
38
+ else {
39
+ internalProperty = observableArray(items);
40
+ }
41
+ const computed = pureComputed({ read: internalProperty }).extend({ notify: "always" });
42
+ computed.set = (value, triggerSetter = true) => {
43
+ if (setter && triggerSetter) {
44
+ setter(value, internalProperty);
45
+ }
46
+ else {
47
+ internalProperty(value);
48
+ }
49
+ };
50
+ computed.push = (...itemsToPush) => {
51
+ internalProperty.push(...itemsToPush);
52
+ return itemsToPush.length;
53
+ };
54
+ computed.map = (callBack, thisArg) => {
55
+ return internalProperty().map(callBack, thisArg);
56
+ };
57
+ return computed;
58
+ }
59
+ //# sourceMappingURL=observable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observable.js","sourceRoot":"","sources":["../../src/framework/observable.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6C,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAO9H,MAAM,UAAU,oBAAoB,CAAU,QAAa;IACvD,OAAO,QAAQ,IAAI,CAAC,CAAE,QAAkC,CAAC,GAAG,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,kBAAkB,CAA2B,KAAmC,EAAE,MAAuE,EAAE,eAAwB,KAAK;IACpM,IAAI,gBAAoC,CAAC;IACzC,IAAI,KAAK,KAAK,SAAS,EAAE;QACrB,KAAK,GAAG,IAAI,CAAC;KAChB;IACD,IAAI,YAAY,CAAC,KAAK,CAAC,EAAE;QACrB,gBAAgB,GAAG,KAAK,CAAC;KAC5B;SAAM;QACH,gBAAgB,GAAG,UAAU,CAAS,KAAK,CAAC,CAA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AG,WAAW,EAAE,EAAE;QAC/B,gBAAgB,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC;QACtC,OAAO,WAAW,CAAC,MAAM,CAAC;IAC9B,CAAC,CAAA;IAED,QAAQ,CAAC,GAAG,GAAG,CAAC,QAA8D,EAAE,OAAa,EAAE,EAAE;QAE7F,OAAO,gBAAgB,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC,CAAA;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"}
File without changes
@@ -1,15 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultStyle = exports.extendStyle = void 0;
4
- const ViewModel_1 = require("./ViewModel");
5
- function extendStyle(target, source) {
1
+ import { extend } from "jquery";
2
+ export function extendStyle(target, source) {
6
3
  if (source) {
7
- return (0, ViewModel_1.extend)(true, target, source);
4
+ return extend(true, target, source);
8
5
  }
9
6
  return target;
10
7
  }
11
- exports.extendStyle = extendStyle;
12
- exports.defaultStyle = {
8
+ export const defaultStyle = {
13
9
  animation: "none",
14
10
  animationDelay: 0,
15
11
  animationDirection: "normal",
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/framework/style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,MAAM,UAAU,WAAW,CAAC,MAAa,EAAE,MAAa;IAEpD,IAAI,MAAM,EAAE;QACR,OAAO,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAU,CAAC;KAChD;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AA2iGD,MAAM,CAAC,MAAM,YAAY,GAAU;IAC/B,SAAS,EAAE,MAAM;IACjB,cAAc,EAAE,CAAC;IACjB,kBAAkB,EAAE,QAAQ;IAC5B,iBAAiB,EAAE,GAAG;IACtB,iBAAiB,EAAE,MAAM;IACzB,uBAAuB,EAAE,CAAC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AAO,EAAE,CAAC;IACV,aAAa,EAAE,CAAC;IAChB,WAAW,EAAE,CAAC;IACd,YAAY,EAAE,CAAC;IACf,UAAU,EAAE,CAAC;IACb,cAAc,EAAE,MAAM;IACtB,eAAe,EAAE,MAAM;IACvB,eAAe,EAAE,MAAM;IACvB,WAAW,EAAE,MAAM;IACnB,iBAAiB,EAAE,SAAS;IAC5B,QAAQ,EAAE,QAAQ;IAClB,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,CAAC;IACV,WAAW,EAAE,MAAM;IACnB,SAAS,EAAE,SAAS;IACpB,aAAa,EAAE,MAAM;IACrB,cAAc,EAAE,MAAM;IACtB,mBAAmB,EAAE,SAAS;IAC9B,kBAAkB,EAAE,MAAM;IAC1B,mBAAmB,EAAE,OAAO;IAC5B,UAAU,EAAE,CAAC;IACb,UAAU,EAAE,MAAM;IAClB,aAAa,EAAE,MAAM;IACrB,GAAG,EAAE,MAAM;IACX,SAAS,EAAE,MAAM;IACjB,cAAc,EAAE,MAAM;IACtB,UAAU,EAAE,MAAM;IAClB,eAAe,EAAE,IAAI;IACrB,kBAAkB,EAAE,IAAI;IACxB,kBAAkB,EAAE,MAAM;IAC1B,wBAAwB,EAAE,MAAM;IAChC,WAAW,EAAE,QAAQ;IACrB,aAAa,EAAE,UAAU;IACzB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,QAAQ;IACrB,MAAM,EAAE,MAAM;CACjB,CAAA"}
@@ -0,0 +1,85 @@
1
+ export type DropEffect = "none" | "copy" | "link" | "move";
2
+ export type EffectAllowed = "none" | "copy" | "copyLink" | "copyMove" | "link" | "linkMove" | "move" | "all" | "uninitialized";
3
+ type CssPropertyA = "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";
4
+ 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";
5
+ export type CssProperty = CssPropertyA | CssPropertyL;
6
+ export type CssValue<T> = T | T[];
7
+ export type CssValueGeneral = CssValue<number | string>;
8
+ export type CssValueString = CssValue<string>;
9
+ export type CssGlobalValues = "initial" | "inherit" | "unset" | "revert";
10
+ export interface IFontFace {
11
+ fontFamily?: string;
12
+ src?: CssValueString;
13
+ unicodeRange?: any;
14
+ fontVariant?: "common-ligatures" | "small-caps" | CssGlobalValues;
15
+ fontFeatureSettings?: string;
16
+ fontWeight?: CssFontWeight;
17
+ fontStyle?: "normal" | "italic" | "oblique" | CssGlobalValues;
18
+ }
19
+ export type CssAbsoluteSize = "xx-small" | "x-small" | "small" | "medium" | "large" | "x-large" | "xx-large";
20
+ export type CssAngle = CssGlobalValues | string | 0;
21
+ export type CssAnimationPlayState = CssGlobalValues | string | "paused" | "running";
22
+ export type CssBlendMode = "normal" | "multiply" | "screen" | "overlay" | "darken" | "lighten" | "color-dodge" | "color-burn" | "hard-light" | "soft-light" | "difference" | "exclusion" | "hue" | "saturation" | "color" | "luminosity";
23
+ export type CssBorderShorthand = CssGlobalValues | CssColor | CssLength | CssLineStyleSet | string;
24
+ export type CssBox = CssGlobalValues | string | "border-box" | "padding-box" | "content-box";
25
+ export type CssColor = CssNamedColor | CssGlobalValues | "currentColor" | string;
26
+ export type CssNamedColor = "aliceblue" | "antiquewhite" | "aqua" | "aquamarine" | "azure" | "beige" | "bisque" | "black" | "blanchedalmond" | "blue" | "blueviolet" | "brown" | "burlywood" | "cadetblue" | "chartreuse" | "chocolate" | "coral" | "cornflowerblue" | "cornsilk" | "crimson" | "cyan" | "darkblue" | "darkcyan" | "darkgoldenrod" | "darkgray" | "darkgreen" | "darkgrey" | "darkkhaki" | "darkmagenta" | "darkolivegreen" | "darkorange" | "darkorchid" | "darkred" | "darksalmon" | "darkseagreen" | "darkslateblue" | "darkslategray" | "darkslategrey" | "darkturquoise" | "darkviolet" | "deeppink" | "deepskyblue" | "dimgray" | "dimgrey" | "dodgerblue" | "firebrick" | "floralwhite" | "forestgreen" | "fuchsia" | "gainsboro" | "ghostwhite" | "gold" | "goldenrod" | "gray" | "green" | "greenyellow" | "grey" | "honeydew" | "hotpink" | "indianred" | "indigo" | "ivory" | "khaki" | "lavender" | "lavenderblush" | "lawngreen" | "lemonchiffon" | "lightblue" | "lightcoral" | "lightcyan" | "lightgoldenrodyellow" | "lightgray" | "lightgreen" | "lightgrey" | "lightpink" | "lightsalmon" | "lightseagreen" | "lightskyblue" | "lightslategray" | "lightslategrey" | "lightsteelblue" | "lightyellow" | "lime" | "limegreen" | "linen" | "maroon" | "mediumaquamarine" | "mediumblue" | "mediumorchid" | "mediumpurple" | "mediumseagreen" | "mediumslateblue" | "mediumspringgreen" | "mediumturquoise" | "mediumvioletred" | "midnightblue" | "mintcream" | "mistyrose" | "moccasin" | "navajowhite" | "navy" | "oldlace" | "olive" | "olivedrab" | "orange" | "purple" | "rebeccapurple" | "red" | "silver" | "teal" | "transparent" | "white" | "yellow";
27
+ export type CssColorSet = string | CssColor;
28
+ export type CssDisplay = "" | "inherit" | "initial" | "block" | "inline" | "run-in" | "flow" | "flow-root" | "table" | "flex" | "grid" | "ruby" | "subgrid" | "block flow" | "inline table" | "flex run-in" | "list-item" | "list-item block" | "list-item inline" | "list-item flow" | "list-item flow-root" | "list-item block flow" | "list-item block flow-root" | "flow list-item block" | "table-row-group" | "table-header-group" | "table-footer-group" | "table-row" | "table-cell" | "table-column-group" | "table-column" | "table-caption" | "ruby-base" | "ruby-text" | "ruby-base-container" | "ruby-text-container" | "contents" | "none" | "inline-block" | "inline-list-item" | "inline-table" | "inline-flex" | "inline-grid";
29
+ export type CssBoxAlignmentBaselinePosition = "baseline" | "first baseline" | "last baseline";
30
+ export type CssBoxAlignmentContentDistribution = "space-between" | "space-around" | "space-evenly" | "stretch";
31
+ export type CssBoxAlignmentContentPositionWithOverflow = "center" | "start" | "end" | "flex-start" | "flex-end" | "unsafe center" | "unsafe start" | "unsafe end" | "unsafe flex-start" | "unsafe flex-end" | "safe center" | "safe start" | "safe end" | "safe flex-start" | "safe flex-end";
32
+ export type CssBoxAlignmentSelfPositionWithOverflow = "center" | "start" | "end" | "self-start" | "self-end" | "flex-start" | "flex-end" | "unsafe center" | "unsafe start" | "unsafe end" | "unsafe self-start" | "unsafe self-end" | "unsafe flex-start" | "unsafe flex-end" | "safe center" | "safe start" | "safe end" | "safe self-start" | "safe self-end" | "safe flex-start" | "safe flex-end";
33
+ export type CssBoxAlignmentLeftRightWithOverflow = "left" | "right" | "unsafe left" | "unsafe right" | "safe left" | "safe right";
34
+ export type JustifyContent = "normal" | CssBoxAlignmentContentDistribution | CssBoxAlignmentContentPositionWithOverflow | "left" | "right";
35
+ export type AlignContent = "normal" | CssBoxAlignmentBaselinePosition | CssBoxAlignmentContentDistribution | CssBoxAlignmentContentPositionWithOverflow;
36
+ export type JustifyItems = "normal" | "stretch" | CssBoxAlignmentBaselinePosition | CssBoxAlignmentSelfPositionWithOverflow | "left" | "right" | "center" | "legacy left" | "legacy right" | "legacy center";
37
+ export type AlignItems = "normal" | "stretch" | CssBoxAlignmentBaselinePosition | CssBoxAlignmentSelfPositionWithOverflow;
38
+ export type JustifySelf = "auto" | "normal" | "stretch" | CssBoxAlignmentBaselinePosition | CssBoxAlignmentSelfPositionWithOverflow | CssBoxAlignmentLeftRightWithOverflow;
39
+ export type AlignSelf = "auto" | "normal" | "stretch" | CssBoxAlignmentBaselinePosition | CssBoxAlignmentSelfPositionWithOverflow;
40
+ export type CssGradient = CssGlobalValues | string;
41
+ export type CssFontSize = CssGlobalValues | CssLength | CssPercentage | CssAbsoluteSize | CssRelativeSize;
42
+ export type CssImage = CssGlobalValues | string | CssGradient | CssUrl;
43
+ export type CssLength = CssGlobalValues | string | number;
44
+ export type CssLineStyle = string | "none" | "hidden" | "dotted" | "dashed" | "solid" | "double" | "groove" | "ridge" | "inset" | "outset";
45
+ export type CssLineStyleSet = string | CssLineStyle;
46
+ export type CssObjectFit = "fill" | "contain" | "cover" | "none" | "scale-down" | CssGlobalValues;
47
+ export type CssOverflow = "visible" | "hidden" | "scroll" | "clip" | "auto";
48
+ export type CssPercentage = CssGlobalValues | string | 0;
49
+ export type CssPosition = CssAngle | string;
50
+ export type CssRelativeSize = "larger" | "smaller";
51
+ export type CssRepeatStyle = "repeat-x" | "repeat-y" | "repeat" | "space" | "round" | "no-repeat" | "repeat repeat" | "repeat space" | "repeat round" | "repeat no-repeat" | "space repeat" | "space space" | "space round" | "space no-repeat" | "round repeat" | "round space" | "round round" | "round no-repeat" | "no-repeat repeat" | "no-repeat space" | "no-repeat round" | "no-repeat no-repeat";
52
+ export type CssTransformFunction = string | "none";
53
+ export type CssSideOrCorner = CssAngle | "left" | "right" | "top" | "bottom" | "to left" | "to right" | "to top" | "to bottom" | "left top" | "right top" | "left bottom" | "right bottom" | "top left" | "top right" | "bottom left" | "bottom right" | "to left top" | "to right top" | "to left bottom" | "to right bottom" | "to top left" | "to top right" | "to bottom left" | "to bottom right";
54
+ export type CssRadialGradientEndingShape = "circle" | "ellipse";
55
+ export type CssRadialGradientSize = CssLength | Array<CssLength> | "closest-side" | "farthest-side" | "closest-corner" | "closest-side";
56
+ export type CssTimingFunction = string | CssGlobalValues | "ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end";
57
+ export type CssUrl = string;
58
+ export type CssFontWeight = "normal" | "bold" | "bolder" | "lighter" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | number | CssGlobalValues;
59
+ export type AlignmentBaseline = "auto" | "baseline" | "before-edge" | "text-before-edge" | "middle" | "central" | "after-edge" | "text-after-edge" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "inherit";
60
+ export type AnimationDirection = "normal" | "alternate" | "reverse" | "alternate-reverse";
61
+ export type AnimationFillMode = "none" | "forwards" | "backwards" | "both";
62
+ export type BackgroundAttachment = "scroll" | "fixed" | "local";
63
+ export type BackgroundSize = "auto" | "cover" | "contain";
64
+ export type BreakAfter = "auto" | "avoid" | "avoid-page" | "page" | "left" | "right" | "recto" | "verso" | "avoid-column" | "column" | "avoid-region" | "region";
65
+ export type BreakBefore = "auto" | "avoid" | "avoid-page" | "page" | "left" | "right" | "recto" | "verso" | "avoid-column" | "column" | "avoid-region" | "region";
66
+ export type BreakInside = "auto" | "avoid" | "avoid-page" | "avoid-column" | "avoid-region";
67
+ export type CaptionSide = CssGlobalValues | "top" | "bottom" | "block-start" | "block-end" | "inline-start" | "inline-end";
68
+ export type Cursor = CssValue<CssGlobalValues | string | "auto" | "default" | "none" | "context-menu" | "help" | "pointer" | "progress" | "wait" | "cell" | "crosshair" | "text" | "vertical-text" | "alias" | "copy" | "move" | "no-drop" | "not-allowed" | "e-resize" | "n-resize" | "ne-resize" | "nw-resize" | "s-resize" | "se-resize" | "sw-resize" | "w-resize" | "ew-resize" | "ns-resize" | "nesw-resize" | "nwse-resize" | "col-resize" | "row-resize" | "all-scroll" | "zoom-in" | "zoom-out" | "grab" | "grabbing">;
69
+ export type DominantBaseline = "auto" | "use-script" | "no-change" | "reset-size" | "ideographic" | "alphabetic" | "hanging" | "mathematical" | "central" | "middle" | "text-after-edge" | "text-before-edge" | "inherit";
70
+ export type FlexDirection = "row" | "row-reverse" | "column" | "column-reverse";
71
+ export type FlexWrap = CssGlobalValues | "nowrap" | "wrap" | "wrap-reverse";
72
+ export type FontStretch = CssGlobalValues | "normal" | "ultra-condensed" | "extra-condensed" | "condensed" | "semi-condensed" | "semi-expanded" | "expanded" | "extra-expanded" | "ultra-expanded";
73
+ export type OutlineStyle = CssGlobalValues | "auto" | "none" | "dotted" | "dashed" | "solid" | "double" | "groove" | "ridge" | "inset" | "outset";
74
+ export type PageBreakAfter = CssGlobalValues | "auto" | "always" | "avoid" | "left" | "right" | "recto" | "verso";
75
+ export type PageBreakBefore = CssGlobalValues | "auto" | "always" | "avoid" | "left" | "right" | "recto" | "verso";
76
+ export type PointerEvents = CssGlobalValues | "auto" | "none" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "fill" | "stroke" | "all";
77
+ export type PositionX = CssValue<CssGlobalValues | "static" | "relative" | "absolute" | "sticky" | "-webkit-sticky" | "fixed">;
78
+ export type TextAlign = CssGlobalValues | "start" | "end" | "left" | "right" | "center" | "justify" | "justify-all" | "match-parent";
79
+ export type TextAlignLast = CssGlobalValues | "auto" | "start" | "end" | "left" | "right" | "center" | "justify";
80
+ export type TextTransform = CssGlobalValues | "none" | "capitalize" | "uppercase" | "lowercase" | "full-width";
81
+ export type TouchAction = CssGlobalValues | "auto" | "none" | "pan-x" | "pan-left" | "pan-right" | "pan-y" | "pan-up" | "pan-down" | "manipulation";
82
+ export type VerticalAlign = CssGlobalValues | "baseline" | "sub" | "super" | "text-top" | "text-bottom" | "middle" | "top" | "bottom" | CssLength | CssPercentage;
83
+ export type WritingMode = CssGlobalValues | "horizontal-tb" | "vertical-rl" | "vertical-lr" | "sideways-rl" | "sideways-lr";
84
+ export type CssStyleName = "alignContent" | "alignItems";
85
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/framework/types.ts"],"names":[],"mappings":""}
File without changes