jpf 4.1.6 → 4.1.10

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 (181) hide show
  1. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.d.ts +15 -0
  2. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js +127 -0
  3. package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js.map +1 -0
  4. package/dist/controls/codeMirror/JsonEditor/JsonEditor.d.ts +15 -0
  5. package/dist/controls/codeMirror/JsonEditor/JsonEditor.js +111 -0
  6. package/dist/controls/codeMirror/JsonEditor/JsonEditor.js.map +1 -0
  7. package/dist/controls/codeMirror/index.d.ts +2 -0
  8. package/dist/controls/codeMirror/index.js +3 -0
  9. package/dist/controls/codeMirror/index.js.map +1 -0
  10. package/dist/controls/custom/Content/Content.d.ts +16 -0
  11. package/dist/controls/custom/Content/Content.js +45 -0
  12. package/dist/controls/custom/Content/Content.js.map +1 -0
  13. package/dist/controls/custom/FileSelector/FileSelector.d.ts +17 -0
  14. package/dist/controls/custom/FileSelector/FileSelector.js +54 -0
  15. package/dist/controls/custom/FileSelector/FileSelector.js.map +1 -0
  16. package/dist/controls/custom/LabeledControl/LabeledControl.d.ts +14 -0
  17. package/dist/controls/custom/LabeledControl/LabeledControl.js +32 -0
  18. package/dist/controls/custom/LabeledControl/LabeledControl.js.map +1 -0
  19. package/dist/controls/custom/ListItem/ListItem.d.ts +30 -0
  20. package/dist/controls/custom/ListItem/ListItem.js +61 -0
  21. package/dist/controls/custom/ListItem/ListItem.js.map +1 -0
  22. package/dist/controls/custom/index.d.ts +4 -0
  23. package/dist/controls/custom/index.js +5 -0
  24. package/dist/controls/custom/index.js.map +1 -0
  25. package/dist/controls/html/Button/Button.d.ts +15 -0
  26. package/dist/controls/html/Button/Button.js +48 -0
  27. package/dist/controls/html/Button/Button.js.map +1 -0
  28. package/dist/controls/html/Div/Div.d.ts +10 -0
  29. package/dist/controls/html/Div/Div.js +17 -0
  30. package/dist/controls/html/Div/Div.js.map +1 -0
  31. package/dist/controls/html/Image/Image.d.ts +7 -0
  32. package/dist/controls/html/Image/Image.js +16 -0
  33. package/dist/controls/html/Image/Image.js.map +1 -0
  34. package/dist/controls/html/Input/Input.d.ts +43 -0
  35. package/dist/controls/html/Input/Input.js +179 -0
  36. package/dist/controls/html/Input/Input.js.map +1 -0
  37. package/dist/controls/html/Select/Select.d.ts +27 -0
  38. package/dist/controls/html/Select/Select.js +116 -0
  39. package/dist/controls/html/Select/Select.js.map +1 -0
  40. package/dist/controls/html/Span/Span.d.ts +7 -0
  41. package/dist/controls/html/Span/Span.js +16 -0
  42. package/dist/controls/html/Span/Span.js.map +1 -0
  43. package/dist/controls/html/index.d.ts +6 -0
  44. package/dist/controls/html/index.js +7 -0
  45. package/dist/controls/html/index.js.map +1 -0
  46. package/dist/controls/index.d.ts +12 -0
  47. package/dist/controls/index.js +13 -0
  48. package/dist/controls/index.js.map +1 -0
  49. package/dist/controls/jsonViewAwesome/index.d.ts +1 -0
  50. package/dist/controls/jsonViewAwesome/index.js +2 -0
  51. package/dist/controls/jsonViewAwesome/index.js.map +1 -0
  52. package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.d.ts +27 -0
  53. package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.js +72 -0
  54. package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.js.map +1 -0
  55. package/dist/controls/kendo/Culture/Culture.d.ts +1 -0
  56. package/dist/controls/kendo/Culture/Culture.js +26 -0
  57. package/dist/controls/kendo/Culture/Culture.js.map +1 -0
  58. package/dist/controls/kendo/DataSource/DataSource.d.ts +4 -0
  59. package/dist/controls/kendo/DataSource/DataSource.js +2 -0
  60. package/dist/controls/kendo/DataSource/DataSource.js.map +1 -0
  61. package/dist/controls/kendo/Dialog/Dialog.d.ts +13 -0
  62. package/dist/controls/kendo/Dialog/Dialog.js +46 -0
  63. package/dist/controls/kendo/Dialog/Dialog.js.map +1 -0
  64. package/dist/controls/kendo/Editor/Editor.d.ts +18 -0
  65. package/dist/controls/kendo/Editor/Editor.js +113 -0
  66. package/dist/controls/kendo/Editor/Editor.js.map +1 -0
  67. package/dist/controls/kendo/Grid/Grid.d.ts +52 -0
  68. package/dist/controls/kendo/Grid/Grid.js +244 -0
  69. package/dist/controls/kendo/Grid/Grid.js.map +1 -0
  70. package/dist/controls/kendo/Menu/Menu.d.ts +14 -0
  71. package/dist/controls/kendo/Menu/Menu.js +86 -0
  72. package/dist/controls/kendo/Menu/Menu.js.map +1 -0
  73. package/dist/controls/kendo/ObservableObject/ObservableObject.d.ts +5 -0
  74. package/dist/controls/kendo/ObservableObject/ObservableObject.js +35 -0
  75. package/dist/controls/kendo/ObservableObject/ObservableObject.js.map +1 -0
  76. package/dist/controls/kendo/Tree/Tree.d.ts +16 -0
  77. package/dist/controls/kendo/Tree/Tree.js +104 -0
  78. package/dist/controls/kendo/Tree/Tree.js.map +1 -0
  79. package/dist/controls/kendo/index.d.ts +8 -0
  80. package/dist/controls/kendo/index.js +9 -0
  81. package/dist/controls/kendo/index.js.map +1 -0
  82. package/dist/controls/leaflet/LabelControl/LabelControl.d.ts +11 -0
  83. package/dist/controls/leaflet/LabelControl/LabelControl.js +31 -0
  84. package/dist/controls/leaflet/LabelControl/LabelControl.js.map +1 -0
  85. package/dist/controls/leaflet/Map/Map.d.ts +46 -0
  86. package/dist/controls/leaflet/Map/Map.js +122 -0
  87. package/dist/controls/leaflet/Map/Map.js.map +1 -0
  88. package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.d.ts +7 -0
  89. package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js +11 -0
  90. package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js.map +1 -0
  91. package/dist/controls/leaflet/PointerEvent/PointerEvent.d.ts +2 -0
  92. package/dist/controls/leaflet/PointerEvent/PointerEvent.js +8 -0
  93. package/dist/controls/leaflet/PointerEvent/PointerEvent.js.map +1 -0
  94. package/dist/controls/leaflet/index.d.ts +4 -0
  95. package/dist/controls/leaflet/index.js +5 -0
  96. package/dist/controls/leaflet/index.js.map +1 -0
  97. package/dist/framework/View.d.ts +32 -0
  98. package/dist/framework/View.js +98 -0
  99. package/dist/framework/View.js.map +1 -0
  100. package/dist/framework/ViewModel.d.ts +54 -0
  101. package/dist/framework/ViewModel.js +364 -0
  102. package/dist/framework/ViewModel.js.map +1 -0
  103. package/dist/framework/attributes.d.ts +45 -0
  104. package/dist/framework/attributes.js +2 -0
  105. package/dist/framework/attributes.js.map +1 -0
  106. package/dist/framework/event.d.ts +73 -0
  107. package/dist/framework/event.js +26 -0
  108. package/dist/framework/event.js.map +1 -0
  109. package/dist/framework/observable.d.ts +12 -0
  110. package/dist/framework/observable.js +59 -0
  111. package/dist/framework/observable.js.map +1 -0
  112. package/dist/framework/style.d.ts +658 -0
  113. package/dist/framework/style.js +154 -0
  114. package/dist/framework/style.js.map +1 -0
  115. package/dist/framework/types.d.ts +85 -0
  116. package/dist/framework/types.js +2 -0
  117. package/dist/framework/types.js.map +1 -0
  118. package/dist/framework/userAgent.d.ts +31 -0
  119. package/dist/framework/userAgent.js +47 -0
  120. package/dist/framework/userAgent.js.map +1 -0
  121. package/dist/index.d.ts +12 -0
  122. package/dist/index.js +13 -0
  123. package/dist/index.js.map +1 -0
  124. package/dist/utilities/blob/blob.d.ts +1 -0
  125. package/dist/utilities/blob/blob.js +18 -0
  126. package/dist/utilities/blob/blob.js.map +1 -0
  127. package/dist/utilities/cookie/cookie.d.ts +3 -0
  128. package/dist/utilities/cookie/cookie.js +27 -0
  129. package/dist/utilities/cookie/cookie.js.map +1 -0
  130. package/dist/utilities/dataReaderTable/dataReaderTable.d.ts +9 -0
  131. package/dist/utilities/dataReaderTable/dataReaderTable.js +24 -0
  132. package/dist/utilities/dataReaderTable/dataReaderTable.js.map +1 -0
  133. package/dist/utilities/fetch/fetch.d.ts +8 -0
  134. package/dist/utilities/fetch/fetch.js +138 -0
  135. package/dist/utilities/fetch/fetch.js.map +1 -0
  136. package/dist/utilities/float/float.d.ts +1 -0
  137. package/dist/utilities/float/float.js +4 -0
  138. package/dist/utilities/float/float.js.map +1 -0
  139. package/dist/utilities/formData/formData.d.ts +1 -0
  140. package/dist/utilities/formData/formData.js +12 -0
  141. package/dist/utilities/formData/formData.js.map +1 -0
  142. package/dist/utilities/html/html.d.ts +1 -0
  143. package/dist/utilities/html/html.js +8 -0
  144. package/dist/utilities/html/html.js.map +1 -0
  145. package/dist/utilities/htmlElement/htmlElement.d.ts +1 -0
  146. package/dist/utilities/htmlElement/htmlElement.js +17 -0
  147. package/dist/utilities/htmlElement/htmlElement.js.map +1 -0
  148. package/dist/utilities/image/image.d.ts +1 -0
  149. package/dist/utilities/image/image.js +2 -0
  150. package/dist/utilities/image/image.js.map +1 -0
  151. package/dist/utilities/index.d.ts +36 -0
  152. package/dist/utilities/index.js +37 -0
  153. package/dist/utilities/index.js.map +1 -0
  154. package/dist/utilities/integer/integer.d.ts +3 -0
  155. package/dist/utilities/integer/integer.js +28 -0
  156. package/dist/utilities/integer/integer.js.map +1 -0
  157. package/dist/utilities/key/key.d.ts +2 -0
  158. package/dist/utilities/key/key.js +7 -0
  159. package/dist/utilities/key/key.js.map +1 -0
  160. package/dist/utilities/navigator/navigator.d.ts +1 -0
  161. package/dist/utilities/navigator/navigator.js +9 -0
  162. package/dist/utilities/navigator/navigator.js.map +1 -0
  163. package/dist/utilities/notification/notification.d.ts +5 -0
  164. package/dist/utilities/notification/notification.js +67 -0
  165. package/dist/utilities/notification/notification.js.map +1 -0
  166. package/dist/utilities/querystring/querystring.d.ts +4 -0
  167. package/dist/utilities/querystring/querystring.js +38 -0
  168. package/dist/utilities/querystring/querystring.js.map +1 -0
  169. package/dist/utilities/router/router.d.ts +20 -0
  170. package/dist/utilities/router/router.js +63 -0
  171. package/dist/utilities/router/router.js.map +1 -0
  172. package/dist/utilities/stylesheet/stylesheet.d.ts +2 -0
  173. package/dist/utilities/stylesheet/stylesheet.js +48 -0
  174. package/dist/utilities/stylesheet/stylesheet.js.map +1 -0
  175. package/dist/utilities/uniqueId/uniqueId.d.ts +1 -0
  176. package/dist/utilities/uniqueId/uniqueId.js +5 -0
  177. package/dist/utilities/uniqueId/uniqueId.js.map +1 -0
  178. package/dist/utilities/webSocket/webSocket.d.ts +1 -0
  179. package/dist/utilities/webSocket/webSocket.js +53 -0
  180. package/dist/utilities/webSocket/webSocket.js.map +1 -0
  181. package/package.json +1 -1
@@ -0,0 +1,154 @@
1
+ import { extend } from "jquery";
2
+ export function extendStyle(target, source) {
3
+ if (source) {
4
+ return extend(true, target, source);
5
+ }
6
+ return target;
7
+ }
8
+ export const defaultStyle = {
9
+ animation: "none",
10
+ animationDelay: 0,
11
+ animationDirection: "normal",
12
+ animationDuration: "0",
13
+ animationFillMode: "none",
14
+ animationIterationCount: 1,
15
+ animationName: "none",
16
+ animationPlayState: "running",
17
+ animationTimingFunction: "ease",
18
+ backfaceVisibility: "visible",
19
+ background: 0,
20
+ backgroundAttachment: "scroll",
21
+ backgroundClip: "border-box",
22
+ backgroundColor: "transparent",
23
+ backgroundImage: "none",
24
+ backgroundOrigin: "padding-box",
25
+ backgroundPosition: "0 0",
26
+ backgroundRepeat: "repeat",
27
+ backgroundSize: "auto auto",
28
+ border: 0,
29
+ borderStyle: "none",
30
+ borderWidth: "medium",
31
+ borderColor: "inherit",
32
+ borderBottom: 0,
33
+ borderBottomColor: "inherit",
34
+ borderBottomLeftRadius: 0,
35
+ borderBottomRightRadius: 0,
36
+ borderBottomStyle: "none",
37
+ borderBottomWidth: "medium",
38
+ borderCollapse: "separate",
39
+ borderImageSource: "none",
40
+ borderLeft: 0,
41
+ borderLeftColor: "inherit",
42
+ borderLeftStyle: "none",
43
+ borderLeftWidth: "medium",
44
+ borderRadius: 0,
45
+ borderRight: 0,
46
+ borderRightColor: "inherit",
47
+ borderRightStyle: "none",
48
+ borderRightWidth: "medium",
49
+ borderSpacing: 0,
50
+ borderTop: 0,
51
+ borderTopColor: "inherit",
52
+ borderTopLeftRadius: 0,
53
+ borderTopRightRadius: 0,
54
+ borderTopStyle: "none",
55
+ borderTopWidth: "medium",
56
+ bottom: "auto",
57
+ boxShadow: "none",
58
+ boxSizing: "content-box",
59
+ captionSide: "top",
60
+ clear: "none",
61
+ clip: "auto",
62
+ color: "inherit",
63
+ columns: "auto",
64
+ columnCount: "auto",
65
+ columnFill: "balance",
66
+ columnGap: "normal",
67
+ columnRule: "medium none currentColor",
68
+ columnRuleColor: "currentColor",
69
+ columnRuleStyle: "none",
70
+ columnRuleWidth: "none",
71
+ columnSpan: 1,
72
+ columnWidth: "auto",
73
+ content: "normal",
74
+ counterIncrement: "none",
75
+ counterReset: "none",
76
+ cursor: "auto",
77
+ direction: "ltr",
78
+ display: "inline",
79
+ emptyCells: "show",
80
+ float: "none",
81
+ font: "normal",
82
+ fontFamily: "inherit",
83
+ fontSize: "medium",
84
+ fontStyle: "normal",
85
+ fontVariant: "normal",
86
+ fontWeight: "normal",
87
+ height: "auto",
88
+ hyphens: "none",
89
+ left: "auto",
90
+ letterSpacing: "normal",
91
+ lineHeight: "normal",
92
+ listStyle: "none",
93
+ listStyleImage: "none",
94
+ listStylePosition: "outside",
95
+ listStyleType: "disc",
96
+ margin: 0,
97
+ marginBottom: 0,
98
+ marginLeft: 0,
99
+ marginRight: 0,
100
+ marginTop: 0,
101
+ maxHeight: "none",
102
+ maxWidth: "none",
103
+ minHeight: 0,
104
+ minWidth: 0,
105
+ opacity: 1,
106
+ orphans: 0,
107
+ outline: 0,
108
+ outlineColor: "invert",
109
+ outlineStyle: "none",
110
+ outlineWidth: "medium",
111
+ overflow: "visible",
112
+ overflowX: "visible",
113
+ overflowY: "visible",
114
+ padding: 0,
115
+ paddingBottom: 0,
116
+ paddingLeft: 0,
117
+ paddingRight: 0,
118
+ paddingTop: 0,
119
+ pageBreakAfter: "auto",
120
+ pageBreakBefore: "auto",
121
+ pageBreakInside: "auto",
122
+ perspective: "none",
123
+ perspectiveOrigin: "50% 50%",
124
+ position: "static",
125
+ right: "auto",
126
+ tabSize: 8,
127
+ tableLayout: "auto",
128
+ textAlign: "inherit",
129
+ textAlignLast: "auto",
130
+ textDecoration: "none",
131
+ textDecorationColor: "inherit",
132
+ textDecorationLine: "none",
133
+ textDecorationStyle: "solid",
134
+ textIndent: 0,
135
+ textShadow: "none",
136
+ textTransform: "none",
137
+ top: "auto",
138
+ transform: "none",
139
+ transformStyle: "flat",
140
+ transition: "none",
141
+ transitionDelay: "0s",
142
+ transitionDuration: "0s",
143
+ transitionProperty: "none",
144
+ transitionTimingFunction: "ease",
145
+ unicodeBidi: "normal",
146
+ verticalAlign: "baseline",
147
+ visibility: "visible",
148
+ whiteSpace: "normal",
149
+ widows: 0,
150
+ width: "auto",
151
+ wordSpacing: "normal",
152
+ zIndex: "auto"
153
+ };
154
+ //# sourceMappingURL=style.js.map
@@ -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;IAC1B,aAAa,EAAE,MAAM;IACrB,kBAAkB,EAAE,SAAS;IAC7B,uBAAuB,EAAE,MAAM;IAC/B,kBAAkB,EAAE,SAAS;IAC7B,UAAU,EAAE,CAAC;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ACtB,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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/framework/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
1
+ export declare const userAgent: {
2
+ browser: {
3
+ isEdgeHtml: boolean;
4
+ isEdgeChromium: boolean;
5
+ isInternetExplorer: boolean;
6
+ isChrome: boolean;
7
+ isFirefox: boolean;
8
+ isAndroid: boolean;
9
+ };
10
+ os: {
11
+ isIos: boolean;
12
+ isAndroid: boolean;
13
+ isWindows: boolean;
14
+ version: string;
15
+ majorVersion: number;
16
+ };
17
+ device: {
18
+ type: string;
19
+ isMobile: boolean;
20
+ isTablet: boolean;
21
+ isSmartTv: boolean;
22
+ supportsMouseEvents: boolean;
23
+ supportsTouchEvents: boolean;
24
+ };
25
+ engine: {
26
+ isWebkit: boolean;
27
+ isBlink: boolean;
28
+ isGecko: boolean;
29
+ isTrident: boolean;
30
+ };
31
+ };
@@ -0,0 +1,47 @@
1
+ import { UAParser } from "ua-parser-js";
2
+ const parser = new UAParser();
3
+ const result = parser.getResult();
4
+ function supportsTouchEvents() {
5
+ if (("ontouchstart" in window)) {
6
+ return true;
7
+ }
8
+ const prefixes = " -webkit- -moz- -o- -ms- ".split(" ");
9
+ const mq = (query) => window.matchMedia(query).matches;
10
+ const queryString = ["(", prefixes.join("touch-enabled),("), "heartz", ")"].join("");
11
+ return mq(queryString);
12
+ }
13
+ function supportsMouseEvents() {
14
+ return matchMedia('(pointer:fine)').matches || !!window.MouseEvent;
15
+ }
16
+ export const userAgent = {
17
+ browser: {
18
+ isEdgeHtml: result.browser.name === "Edge",
19
+ isEdgeChromium: result.browser.name === "Edg",
20
+ isInternetExplorer: result.browser.name === "IE",
21
+ isChrome: result.browser.name === "Chrome",
22
+ isFirefox: result.browser.name === "Firefox",
23
+ isAndroid: result.browser.name === "Android Browser"
24
+ },
25
+ os: {
26
+ isIos: result.os.name === "iOS",
27
+ isAndroid: result.os.name === "Android",
28
+ isWindows: result.os.name === "Windows",
29
+ version: result.os.version,
30
+ majorVersion: Number(result.os.version.substring(0, 2))
31
+ },
32
+ device: {
33
+ type: result.device.type,
34
+ isMobile: result.device.type === "mobile",
35
+ isTablet: result.device.type === "tablet",
36
+ isSmartTv: result.device.type === "smarttv",
37
+ supportsMouseEvents: supportsMouseEvents(),
38
+ supportsTouchEvents: supportsTouchEvents()
39
+ },
40
+ engine: {
41
+ isWebkit: result.engine.name === "WebKit",
42
+ isBlink: result.engine.name === "Blink",
43
+ isGecko: result.engine.name === "Gecko",
44
+ isTrident: result.engine.name === "Trident"
45
+ }
46
+ };
47
+ //# sourceMappingURL=userAgent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userAgent.js","sourceRoot":"","sources":["../../src/framework/userAgent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,MAAM,MAAM,GAAG,IAAI,QAAQ,EAAE,CAAC;AAC9B,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;AAElC,SAAS,mBAAmB;IACxB,IAAI,CAAC,cAAc,IAAI,MAAM,CAAC,EAAE;QAC5B,OAAO,IAAI,CAAC;KACf;IAED,MAAM,QAAQ,GAAG,2BAA2B,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxD,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;IACvD,MAAM,WAAW,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACrF,OAAO,EAAE,CAAC,WAAW,CAAC,CAAC;AAC3B,CAAC;AAED,SAAS,mBAAmB;IACxB,OAAO,UAAU,CAAC,gBAAgB,CAAC,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,UA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AO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO;QACvC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,OAAO;QACvC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,KAAK,SAAS;KAC9C;CACJ,CAAA"}
@@ -0,0 +1,12 @@
1
+ import * as controls from "./controls/index";
2
+ import * as utilities from "./utilities/index";
3
+ export { controls };
4
+ export { utilities };
5
+ export * from "./framework/attributes";
6
+ export * from "./framework/event";
7
+ export * from "./framework/types";
8
+ export * from "./framework/observable";
9
+ export * from "./framework/style";
10
+ export * from "./framework/userAgent";
11
+ export * from "./framework/View";
12
+ export * from "./framework/ViewModel";
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ import * as controls from "./controls/index";
2
+ import * as utilities from "./utilities/index";
3
+ export { controls };
4
+ export { utilities };
5
+ export * from "./framework/attributes";
6
+ export * from "./framework/event";
7
+ export * from "./framework/types";
8
+ export * from "./framework/observable";
9
+ export * from "./framework/style";
10
+ export * from "./framework/userAgent";
11
+ export * from "./framework/View";
12
+ export * from "./framework/ViewModel";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,CAAC;AAErB,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1 @@
1
+ export declare function toUrl(blob: Blob): Promise<string>;
@@ -0,0 +1,18 @@
1
+ const blobDictionary = {};
2
+ async function toBase64(blob) {
3
+ return new Promise((resolve) => {
4
+ const reader = new FileReader();
5
+ reader.onloadend = () => resolve(reader.result);
6
+ reader.readAsDataURL(blob);
7
+ });
8
+ }
9
+ export async function toUrl(blob) {
10
+ const base64 = await toBase64(blob);
11
+ let url = blobDictionary[base64];
12
+ if (!url) {
13
+ url = URL.createObjectURL(blob);
14
+ blobDictionary[base64] = url;
15
+ }
16
+ return url;
17
+ }
18
+ //# sourceMappingURL=blob.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blob.js","sourceRoot":"","sources":["../../../src/utilities/blob/blob.ts"],"names":[],"mappings":"AAAA,MAAM,cAAc,GAA8B,EAAE,CAAC;AAErD,KAAK,UAAU,QAAQ,CAAC,IAAI;IACxB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC3B,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAChC,MAAM,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,MAAgB,CAAC,CAAC;QAC1D,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,KAAK,CAAC,IAAU;IAClC,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpC,IAAI,GAAG,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IACjC,IAAI,CAAC,GAAG,EAAE;QACN,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;QAChC,cAAc,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;KAChC;IACD,OAAO,GAAG,CAAC;AACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function set(name: string, value: string, days: number): void;
2
+ export declare function get(name: string): string;
3
+ export declare function eraseCookie(name: string): void;
@@ -0,0 +1,27 @@
1
+ export function set(name, value, days) {
2
+ let expires = "";
3
+ if (days) {
4
+ const date = new Date();
5
+ date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
6
+ expires = "; expires=" + date.toUTCString();
7
+ }
8
+ document.cookie = name + "=" + (value || "") + expires + "; path=/";
9
+ }
10
+ export function get(name) {
11
+ const nameEq = name + "=";
12
+ const ca = document.cookie.split(";");
13
+ for (let i = 0; i < ca.length; i++) {
14
+ let c = ca[i];
15
+ while (c.charAt(0) === " ") {
16
+ c = c.substring(1, c.length);
17
+ }
18
+ if (c.indexOf(nameEq) === 0) {
19
+ return c.substring(nameEq.length, c.length);
20
+ }
21
+ }
22
+ return null;
23
+ }
24
+ export function eraseCookie(name) {
25
+ document.cookie = name + "=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;";
26
+ }
27
+ //# sourceMappingURL=cookie.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cookie.js","sourceRoot":"","sources":["../../../src/utilities/cookie/cookie.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,IAAY;IACzD,IAAI,OAAO,GAAG,EAAE,CAAC;IACjB,IAAI,IAAI,EAAE;QACN,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,CAAC,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;QAC5D,OAAO,GAAG,YAAY,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;KAC/C;IACD,QAAQ,CAAC,MAAM,GAAG,IAAI,GAAG,GAAG,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC,GAAG,OAAO,GAAG,UAAU,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,GAAG,CAAC,IAAY;IAC5B,MAAM,MAAM,GAAG,IAAI,GAAG,GAAG,CAAC;IAC1B,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAChC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACd,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YACxB,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;SAChC;QACD,IAAI,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;YACzB,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;SAC/C;KACJ;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,IAAY;IACpC,QAAQ,CAAC,MAAM,GAAG,IAAI,GAAG,mDAAmD,CAAC;AACjF,CAAC"}
@@ -0,0 +1,9 @@
1
+ export declare function toObjectArray<T>(dataReaderTable: IDataReaderTable): Array<T>;
2
+ export interface IDataReaderTableColumn {
3
+ field?: string;
4
+ datatype?: string;
5
+ }
6
+ export interface IDataReaderTable {
7
+ rows: Array<Array<any>>;
8
+ columns: Array<IDataReaderTableColumn>;
9
+ }
@@ -0,0 +1,24 @@
1
+ export function toObjectArray(dataReaderTable) {
2
+ const objects = new Array();
3
+ dataReaderTable.rows.forEach((row) => {
4
+ const object = {};
5
+ for (let index = 0; index < dataReaderTable.columns.length; index++) {
6
+ const column = dataReaderTable.columns[index];
7
+ if (column.datatype === "Date") {
8
+ const value = row[index];
9
+ if (value) {
10
+ object[column.field] = new Date(value);
11
+ }
12
+ else {
13
+ object[column.field] = null;
14
+ }
15
+ }
16
+ else {
17
+ object[column.field] = row[index];
18
+ }
19
+ }
20
+ objects.push(object);
21
+ });
22
+ return objects;
23
+ }
24
+ //# sourceMappingURL=dataReaderTable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataReaderTable.js","sourceRoot":"","sources":["../../../src/utilities/dataReaderTable/dataReaderTable.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,aAAa,CAAI,eAAiC;IAC9D,MAAM,OAAO,GAAG,IAAI,KAAK,EAAK,CAAC;IAE/B,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAe,EAAE,EAAE;QAC7C,MAAM,MAAM,GAAG,EAAO,CAAC;QACvB,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;YACjE,MAAM,MAAM,GAAG,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;YAC9C,IAAI,MAAM,CAAC,QAAQ,KAAK,MAAM,EAAE;gBAC5B,MAAM,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;gBACzB,IAAI,KAAK,EAAE;oBACP,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;iBAC1C;qBAAM;oBACH,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;iBAC/B;aACJ;iBAAM;gBACH,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;aACrC;SACJ;QACD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC;AACnB,CAAC"}
@@ -0,0 +1,8 @@
1
+ type ResponseType = "void" | "json" | "blob" | "arrayBuffer";
2
+ export declare function setTestAccessToken(accessToken: string): void;
3
+ export declare function setIsTestRun(testRun: boolean): void;
4
+ export declare function setTestUserId(userId: number): void;
5
+ export declare function initialize(authorizationTokenProvider: () => Promise<string>, headersProvider?: (headers: HeadersInit) => void): void;
6
+ export declare function get(input: RequestInfo, authorized: boolean, responseType: ResponseType, init?: RequestInit): Promise<any>;
7
+ export declare function post(input: RequestInfo, data: any, authorized: boolean, responseType: ResponseType, init: RequestInit): Promise<any>;
8
+ export {};