jpf 5.0.3 → 5.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controls/codeMirror/Editor/Editor.d.ts +19 -0
- package/dist/controls/codeMirror/Editor/Editor.js +151 -0
- package/dist/controls/codeMirror/Editor/Editor.js.map +1 -0
- package/dist/controls/codeMirror/index.d.ts +1 -2
- package/dist/controls/codeMirror/index.js +1 -2
- package/dist/controls/codeMirror/index.js.map +1 -1
- package/dist/controls/custom/FileSelector/FileSelector.d.ts +18 -18
- package/dist/controls/custom/FileSelector/FileSelector.js +47 -46
- package/dist/controls/custom/FileSelector/FileSelector.js.map +1 -1
- package/dist/controls/custom/LabeledControl/LabeledControl.d.ts +15 -15
- package/dist/controls/custom/LabeledControl/LabeledControl.js +31 -36
- package/dist/controls/custom/LabeledControl/LabeledControl.js.map +1 -1
- package/dist/controls/custom/ListItem/ListItem.d.ts +37 -36
- package/dist/controls/custom/ListItem/ListItem.js +62 -62
- package/dist/controls/custom/ListItem/ListItem.js.map +1 -1
- package/dist/controls/custom/index.d.ts +3 -3
- package/dist/controls/custom/index.js +3 -3
- package/dist/controls/html/Button/Button.d.ts +16 -16
- package/dist/controls/html/Button/Button.js +47 -50
- package/dist/controls/html/Button/Button.js.map +1 -1
- package/dist/controls/html/Div/Div.d.ts +14 -14
- package/dist/controls/html/Div/Div.js +23 -24
- package/dist/controls/html/Div/Div.js.map +1 -1
- package/dist/controls/html/Image/Image.d.ts +16 -16
- package/dist/controls/html/Image/Image.js +29 -28
- package/dist/controls/html/Image/Image.js.map +1 -1
- package/dist/controls/html/Input/Input.d.ts +34 -34
- package/dist/controls/html/Input/Input.js +166 -170
- package/dist/controls/html/Input/Input.js.map +1 -1
- package/dist/controls/html/Select/Select.d.ts +30 -30
- package/dist/controls/html/Select/Select.js +109 -110
- package/dist/controls/html/Select/Select.js.map +1 -1
- package/dist/controls/html/Span/Span.d.ts +11 -11
- package/dist/controls/html/Span/Span.js +22 -22
- package/dist/controls/html/Span/Span.js.map +1 -1
- package/dist/controls/html/index.d.ts +6 -6
- package/dist/controls/html/index.js +6 -6
- package/dist/controls/index.d.ts +14 -14
- package/dist/controls/index.js +14 -14
- package/dist/controls/index.js.map +1 -1
- package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/index.d.ts +1 -1
- package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/index.js +1 -1
- package/dist/controls/jsonViewerAwesome/index.js.map +1 -0
- package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.d.ts +28 -0
- package/dist/controls/{jsonViewAwesome → jsonViewerAwesome}/jsonFormatter/JsonFormatter.js +65 -65
- package/dist/controls/jsonViewerAwesome/jsonFormatter/JsonFormatter.js.map +1 -0
- package/dist/controls/kendo/Chart/Chart.d.ts +19 -19
- package/dist/controls/kendo/Chart/Chart.js +62 -62
- package/dist/controls/kendo/Chart/Chart.js.map +1 -1
- package/dist/controls/kendo/Culture/Culture.d.ts +1 -1
- package/dist/controls/kendo/Culture/Culture.js +25 -25
- package/dist/controls/kendo/Culture/Culture.js.map +1 -1
- package/dist/controls/kendo/DataSource/DataSource.d.ts +4 -4
- package/dist/controls/kendo/DataSource/DataSource.js +1 -1
- package/dist/controls/kendo/Editor/Editor.d.ts +14 -19
- package/dist/controls/kendo/Editor/Editor.js +94 -104
- package/dist/controls/kendo/Editor/Editor.js.map +1 -1
- package/dist/controls/kendo/Grid/Grid.d.ts +54 -54
- package/dist/controls/kendo/Grid/Grid.js +201 -218
- package/dist/controls/kendo/Grid/Grid.js.map +1 -1
- package/dist/controls/kendo/Menu/Menu.d.ts +15 -15
- package/dist/controls/kendo/Menu/Menu.js +90 -90
- package/dist/controls/kendo/Menu/Menu.js.map +1 -1
- package/dist/controls/kendo/ObservableObject/ObservableObject.d.ts +0 -5
- package/dist/controls/kendo/ObservableObject/ObservableObject.js +0 -34
- package/dist/controls/kendo/ObservableObject/ObservableObject.js.map +1 -1
- package/dist/controls/kendo/Treeview/Treeview.d.ts +17 -0
- package/dist/controls/kendo/{Tree/Tree.js → Treeview/Treeview.js} +107 -107
- package/dist/controls/kendo/Treeview/Treeview.js.map +1 -0
- package/dist/controls/kendo/Window/Window.d.ts +14 -0
- package/dist/controls/kendo/{Dialog/Dialog.js → Window/Window.js} +49 -49
- package/dist/controls/kendo/Window/Window.js.map +1 -0
- package/dist/controls/kendo/index.d.ts +8 -9
- package/dist/controls/kendo/index.js +8 -9
- package/dist/controls/kendo/index.js.map +1 -1
- package/dist/controls/leaflet/LabelControl/LabelControl.d.ts +12 -12
- package/dist/controls/leaflet/LabelControl/LabelControl.js +33 -33
- package/dist/controls/leaflet/LabelControl/LabelControl.js.map +1 -1
- package/dist/controls/leaflet/Map/Map.d.ts +45 -45
- package/dist/controls/leaflet/Map/Map.js +116 -115
- package/dist/controls/leaflet/Map/Map.js.map +1 -1
- package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.d.ts +8 -8
- package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js +13 -13
- package/dist/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.js.map +1 -1
- package/dist/controls/leaflet/PointerEvent/PointerEvent.d.ts +2 -2
- package/dist/controls/leaflet/PointerEvent/PointerEvent.js +7 -7
- package/dist/controls/leaflet/PointerEvent/PointerEvent.js.map +1 -1
- package/dist/controls/leaflet/index.d.ts +4 -4
- package/dist/controls/leaflet/index.js +4 -4
- package/dist/controls/svg/Circle/Circle.d.ts +12 -12
- package/dist/controls/svg/Circle/Circle.js +20 -20
- package/dist/controls/svg/Circle/Circle.js.map +1 -1
- package/dist/controls/svg/Ellipse/Ellipse.d.ts +13 -13
- package/dist/controls/svg/Ellipse/Ellipse.js +21 -21
- package/dist/controls/svg/Ellipse/Ellipse.js.map +1 -1
- package/dist/controls/svg/ForeignObject/ForeignObject.d.ts +15 -14
- package/dist/controls/svg/ForeignObject/ForeignObject.js +21 -22
- package/dist/controls/svg/ForeignObject/ForeignObject.js.map +1 -1
- package/dist/controls/svg/Group/Group.d.ts +15 -14
- package/dist/controls/svg/Group/Group.js +21 -22
- package/dist/controls/svg/Group/Group.js.map +1 -1
- package/dist/controls/svg/Line/Line.d.ts +13 -13
- package/dist/controls/svg/Line/Line.js +21 -21
- package/dist/controls/svg/Line/Line.js.map +1 -1
- package/dist/controls/svg/Pattern/Pattern.d.ts +22 -22
- package/dist/controls/svg/Pattern/Pattern.js +22 -23
- package/dist/controls/svg/Pattern/Pattern.js.map +1 -1
- package/dist/controls/svg/Polygon/Polygon.d.ts +11 -11
- package/dist/controls/svg/Polygon/Polygon.js +20 -20
- package/dist/controls/svg/Polygon/Polygon.js.map +1 -1
- package/dist/controls/svg/Polyline/Polyline.d.ts +11 -11
- package/dist/controls/svg/Polyline/Polyline.js +19 -19
- package/dist/controls/svg/Polyline/Polyline.js.map +1 -1
- package/dist/controls/svg/Rectangle/Rectangle.d.ts +13 -13
- package/dist/controls/svg/Rectangle/Rectangle.js +21 -21
- package/dist/controls/svg/Rectangle/Rectangle.js.map +1 -1
- package/dist/controls/svg/Svg/Svg.d.ts +17 -17
- package/dist/controls/svg/Svg/Svg.js +23 -24
- package/dist/controls/svg/Svg/Svg.js.map +1 -1
- package/dist/controls/svg/Text/Text.d.ts +14 -14
- package/dist/controls/svg/Text/Text.js +22 -22
- package/dist/controls/svg/Text/Text.js.map +1 -1
- package/dist/controls/svg/Title/Title.d.ts +10 -10
- package/dist/controls/svg/Title/Title.js +16 -16
- package/dist/controls/svg/Title/Title.js.map +1 -1
- package/dist/controls/svg/index.d.ts +13 -13
- package/dist/controls/svg/index.js +13 -13
- package/dist/controls/svg/svg.d.ts +6 -6
- package/dist/controls/svg/svg.js +12 -12
- package/dist/controls/svg/svg.js.map +1 -1
- package/dist/framework/attributes.d.ts +90 -90
- package/dist/framework/attributes.js +1 -1
- package/dist/framework/{View.d.ts → element.d.ts} +61 -62
- package/dist/framework/{View.js → element.js} +157 -150
- package/dist/framework/element.js.map +1 -0
- package/dist/framework/event.d.ts +80 -80
- package/dist/framework/event.js +25 -25
- package/dist/framework/event.js.map +1 -1
- package/dist/framework/observable.d.ts +37 -12
- package/dist/framework/observable.js +66 -58
- package/dist/framework/observable.js.map +1 -1
- package/dist/framework/properties.d.ts +40 -0
- package/dist/framework/{ViewModel.js → properties.js} +303 -312
- package/dist/framework/properties.js.map +1 -0
- package/dist/framework/root.d.ts +9 -0
- package/dist/framework/root.js +38 -0
- package/dist/framework/root.js.map +1 -0
- package/dist/framework/style.d.ts +657 -658
- package/dist/framework/style.js +146 -153
- package/dist/framework/style.js.map +1 -1
- package/dist/framework/types.d.ts +87 -87
- package/dist/framework/types.js +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/utilities/blob/blob.d.ts +1 -1
- package/dist/utilities/blob/blob.js +17 -17
- package/dist/utilities/blob/blob.js.map +1 -1
- package/dist/utilities/contextMenu/contextMenu.d.ts +2 -0
- package/dist/utilities/contextMenu/contextMenu.js +11 -0
- package/dist/utilities/contextMenu/contextMenu.js.map +1 -0
- package/dist/utilities/cookie/cookie.d.ts +3 -3
- package/dist/utilities/cookie/cookie.js +26 -26
- package/dist/utilities/cookie/cookie.js.map +1 -1
- package/dist/utilities/dataReaderTable/dataReaderTable.d.ts +9 -9
- package/dist/utilities/dataReaderTable/dataReaderTable.js +23 -23
- package/dist/utilities/dataReaderTable/dataReaderTable.js.map +1 -1
- package/dist/utilities/fetch/fetch.d.ts +7 -8
- package/dist/utilities/fetch/fetch.js +139 -137
- package/dist/utilities/fetch/fetch.js.map +1 -1
- package/dist/utilities/float/float.d.ts +1 -1
- package/dist/utilities/float/float.js +3 -3
- package/dist/utilities/formData/formData.d.ts +1 -1
- package/dist/utilities/formData/formData.js +11 -11
- package/dist/utilities/formData/formData.js.map +1 -1
- package/dist/utilities/formatting/formatting.d.ts +4 -0
- package/dist/utilities/formatting/formatting.js +26 -0
- package/dist/utilities/formatting/formatting.js.map +1 -0
- package/dist/utilities/htmlElement/htmlElement.d.ts +1 -1
- package/dist/utilities/htmlElement/htmlElement.js +16 -16
- package/dist/utilities/htmlElement/htmlElement.js.map +1 -1
- package/dist/utilities/image/image.d.ts +1 -1
- package/dist/utilities/image/image.js +1 -1
- package/dist/utilities/index.d.ts +40 -36
- package/dist/utilities/index.js +40 -36
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/integer/integer.d.ts +3 -3
- package/dist/utilities/integer/integer.js +27 -27
- package/dist/utilities/integer/integer.js.map +1 -1
- package/dist/utilities/key/key.d.ts +2 -2
- package/dist/utilities/key/key.js +6 -6
- package/dist/utilities/navigator/navigator.d.ts +1 -1
- package/dist/utilities/navigator/navigator.js +8 -8
- package/dist/utilities/navigator/navigator.js.map +1 -1
- package/dist/utilities/notification/notification.d.ts +5 -5
- package/dist/utilities/notification/notification.js +66 -66
- package/dist/utilities/notification/notification.js.map +1 -1
- package/dist/utilities/querystring/querystring.d.ts +6 -6
- package/dist/utilities/querystring/querystring.js +53 -53
- package/dist/utilities/querystring/querystring.js.map +1 -1
- package/dist/utilities/router/router.d.ts +19 -19
- package/dist/utilities/router/router.js +80 -80
- package/dist/utilities/router/router.js.map +1 -1
- package/dist/utilities/stylesheet/stylesheet.d.ts +2 -2
- package/dist/utilities/stylesheet/stylesheet.js +47 -47
- package/dist/utilities/stylesheet/stylesheet.js.map +1 -1
- package/dist/utilities/uniqueId/uniqueId.d.ts +1 -1
- package/dist/utilities/uniqueId/uniqueId.js +4 -4
- package/dist/{framework → utilities/userAgent}/userAgent.d.ts +31 -31
- package/dist/{framework → utilities/userAgent}/userAgent.js +46 -46
- package/dist/utilities/userAgent/userAgent.js.map +1 -0
- package/dist/utilities/webSocket/webSocket.d.ts +1 -1
- package/dist/utilities/webSocket/webSocket.js +54 -54
- package/dist/utilities/webSocket/webSocket.js.map +1 -1
- package/package.json +15 -11
- package/src/controls/codeMirror/Editor/Editor.ts +207 -0
- package/src/controls/codeMirror/index.ts +1 -2
- package/src/controls/custom/FileSelector/FileSelector.ts +30 -28
- package/src/controls/custom/LabeledControl/LabeledControl.ts +32 -36
- package/src/controls/custom/ListItem/ListItem.ts +37 -37
- package/src/controls/html/Button/Button.ts +37 -30
- package/src/controls/html/Div/Div.ts +20 -21
- package/src/controls/html/Image/Image.ts +22 -20
- package/src/controls/html/Input/Input.ts +63 -65
- package/src/controls/html/Select/Select.ts +39 -41
- package/src/controls/html/Span/Span.ts +14 -14
- package/src/controls/index.ts +2 -2
- package/src/controls/{jsonViewAwesome → jsonViewerAwesome}/jsonFormatter/JsonFormatter.ts +24 -24
- package/src/controls/kendo/Chart/Chart.ts +37 -37
- package/src/controls/kendo/DataSource/DataSource.ts +1 -1
- package/src/controls/kendo/Editor/Editor.ts +59 -69
- package/src/controls/kendo/Grid/Grid.ts +81 -84
- package/src/controls/kendo/Menu/Menu.ts +24 -24
- package/src/controls/kendo/ObservableObject/ObservableObject.ts +45 -45
- package/src/controls/kendo/{Tree/Tree.ts → Treeview/Treeview.ts} +17 -17
- package/src/controls/kendo/{Dialog/Dialog.ts → Window/Window.ts} +21 -19
- package/src/controls/kendo/index.ts +3 -3
- package/src/controls/leaflet/LabelControl/LabelControl.ts +10 -10
- package/src/controls/leaflet/Map/Map.ts +44 -41
- package/src/controls/leaflet/OpenStreetMapTileLayer/OpenStreetMapTileLayer.ts +3 -3
- package/src/controls/svg/Circle/Circle.ts +14 -14
- package/src/controls/svg/Ellipse/Ellipse.ts +15 -15
- package/src/controls/svg/ForeignObject/ForeignObject.ts +19 -20
- package/src/controls/svg/Group/Group.ts +19 -19
- package/src/controls/svg/Line/Line.ts +15 -15
- package/src/controls/svg/Pattern/Pattern.ts +25 -25
- package/src/controls/svg/Polygon/Polygon.ts +13 -13
- package/src/controls/svg/Polyline/Polyline.ts +13 -13
- package/src/controls/svg/Rectangle/Rectangle.ts +15 -15
- package/src/controls/svg/Svg/Svg.ts +19 -19
- package/src/controls/svg/Text/Text.ts +16 -16
- package/src/controls/svg/Title/Title.ts +12 -12
- package/src/controls/svg/svg.ts +4 -4
- package/src/framework/attributes.ts +46 -46
- package/src/framework/{View.ts → element.ts} +54 -41
- package/src/framework/event.ts +7 -7
- package/src/framework/observable.ts +93 -60
- package/src/framework/properties.ts +393 -0
- package/src/framework/root.ts +45 -0
- package/src/framework/style.ts +330 -340
- package/src/index.ts +4 -4
- package/src/utilities/contextMenu/contextMenu.ts +16 -0
- package/src/utilities/fetch/fetch.ts +16 -14
- package/src/utilities/formatting/formatting.ts +29 -0
- package/src/utilities/index.ts +7 -3
- package/src/utilities/router/router.ts +3 -3
- package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.d.ts +0 -16
- package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js +0 -120
- package/dist/controls/codeMirror/HtmlEditor/HtmlEditor.js.map +0 -1
- package/dist/controls/codeMirror/JsonEditor/JsonEditor.d.ts +0 -16
- package/dist/controls/codeMirror/JsonEditor/JsonEditor.js +0 -104
- package/dist/controls/codeMirror/JsonEditor/JsonEditor.js.map +0 -1
- package/dist/controls/jsonViewAwesome/index.js.map +0 -1
- package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.d.ts +0 -28
- package/dist/controls/jsonViewAwesome/jsonFormatter/JsonFormatter.js.map +0 -1
- package/dist/controls/kendo/Dialog/Dialog.d.ts +0 -14
- package/dist/controls/kendo/Dialog/Dialog.js.map +0 -1
- package/dist/controls/kendo/Tree/Tree.d.ts +0 -17
- package/dist/controls/kendo/Tree/Tree.js.map +0 -1
- package/dist/framework/View.js.map +0 -1
- package/dist/framework/ViewModel.d.ts +0 -42
- package/dist/framework/ViewModel.js.map +0 -1
- package/dist/framework/userAgent.js.map +0 -1
- package/dist/utilities/html/html.d.ts +0 -1
- package/dist/utilities/html/html.js +0 -8
- package/dist/utilities/html/html.js.map +0 -1
- package/src/controls/codeMirror/HtmlEditor/HtmlEditor.ts +0 -153
- package/src/controls/codeMirror/JsonEditor/JsonEditor.ts +0 -136
- package/src/framework/ViewModel.ts +0 -528
- package/src/utilities/html/html.ts +0 -8
- /package/src/controls/{jsonViewAwesome → jsonViewerAwesome}/index.ts +0 -0
- /package/src/{framework → utilities/userAgent}/userAgent.ts +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import beautiful from "simply-beautiful";
|
|
2
|
+
export function formatHtml(html) {
|
|
3
|
+
if (html) {
|
|
4
|
+
return beautiful.html(html);
|
|
5
|
+
}
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
export function formatCss(css) {
|
|
9
|
+
if (css) {
|
|
10
|
+
return beautiful.css(css);
|
|
11
|
+
}
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
export function formatJson(json) {
|
|
15
|
+
if (json) {
|
|
16
|
+
return beautiful.json(json);
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
export function formatJavascript(javascript) {
|
|
21
|
+
if (javascript) {
|
|
22
|
+
return beautiful.js(javascript);
|
|
23
|
+
}
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=formatting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatting.js","sourceRoot":"","sources":["../../../src/utilities/formatting/formatting.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,kBAAkB,CAAC;AAEzC,MAAM,UAAU,UAAU,CAAC,IAAY;IACnC,IAAI,IAAI,EAAE,CAAC;QACP,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,GAAW;IACjC,IAAI,GAAG,EAAE,CAAC;QACN,OAAO,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,UAAU,CAAC,IAAY;IACnC,IAAG,IAAI,EAAE,CAAC;QACN,OAAO,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,UAAkB;IAC/C,IAAI,UAAU,EAAE,CAAC;QACb,OAAO,SAAS,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;IACpC,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function setScale(htmlElement: HTMLElement, scale: number): void;
|
|
1
|
+
export declare function setScale(htmlElement: HTMLElement, scale: number): void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export function setScale(htmlElement, scale) {
|
|
2
|
-
htmlElement.style.transformOrigin = "center";
|
|
3
|
-
const scaleValue = " scale(" + scale + ")";
|
|
4
|
-
const transform = htmlElement.style.transform;
|
|
5
|
-
if (transform) {
|
|
6
|
-
if (transform.indexOf("scale") > -1) {
|
|
7
|
-
htmlElement.style.transform = transform.replace(/scale\(.*\)/, scaleValue);
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
htmlElement.style.transform += scaleValue;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
htmlElement.style.transform = scaleValue;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
1
|
+
export function setScale(htmlElement, scale) {
|
|
2
|
+
htmlElement.style.transformOrigin = "center";
|
|
3
|
+
const scaleValue = " scale(" + scale + ")";
|
|
4
|
+
const transform = htmlElement.style.transform;
|
|
5
|
+
if (transform) {
|
|
6
|
+
if (transform.indexOf("scale") > -1) {
|
|
7
|
+
htmlElement.style.transform = transform.replace(/scale\(.*\)/, scaleValue);
|
|
8
|
+
}
|
|
9
|
+
else {
|
|
10
|
+
htmlElement.style.transform += scaleValue;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
htmlElement.style.transform = scaleValue;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=htmlElement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"htmlElement.js","sourceRoot":"","sources":["../../../src/utilities/htmlElement/htmlElement.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,WAAwB,EAAE,KAAa;IAC5D,WAAW,CAAC,KAAK,CAAC,eAAe,GAAG,QAAQ,CAAC;IAE7C,MAAM,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,GAAG,CAAC;IAC3C,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC;IAC9C,IAAI,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"htmlElement.js","sourceRoot":"","sources":["../../../src/utilities/htmlElement/htmlElement.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,QAAQ,CAAC,WAAwB,EAAE,KAAa;IAC5D,WAAW,CAAC,KAAK,CAAC,eAAe,GAAG,QAAQ,CAAC;IAE7C,MAAM,UAAU,GAAG,SAAS,GAAG,KAAK,GAAG,GAAG,CAAC;IAC3C,MAAM,SAAS,GAAG,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC;IAC9C,IAAI,SAAS,EAAE,CAAC;QACZ,IAAI,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YAClC,WAAW,CAAC,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;QAC/E,CAAC;aAAM,CAAC;YACJ,WAAW,CAAC,KAAK,CAAC,SAAS,IAAI,UAAU,CAAC;QAC9C,CAAC;IACL,CAAC;SAAM,CAAC;QACJ,WAAW,CAAC,KAAK,CAAC,SAAS,GAAG,UAAU,CAAC;IAC7C,CAAC;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const blankGif = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
1
|
+
export declare const blankGif = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const blankGif = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
1
|
+
export const blankGif = "data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";
|
|
2
2
|
//# sourceMappingURL=image.js.map
|
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
import * as blob from "./blob/blob";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
1
|
+
import * as blob from "./blob/blob";
|
|
2
|
+
import * as contextMenu from "./contextMenu/contextMenu";
|
|
3
|
+
import * as cookie from "./cookie/cookie";
|
|
4
|
+
import * as dataReaderTable from "./dataReaderTable/dataReaderTable";
|
|
5
|
+
import * as fetch from "./fetch/fetch";
|
|
6
|
+
import * as float from "./float/float";
|
|
7
|
+
import * as formData from "./formData/formData";
|
|
8
|
+
import * as formatting from "./formatting/formatting";
|
|
9
|
+
import * as htmlElement from "./htmlElement/htmlElement";
|
|
10
|
+
import * as image from "./image/image";
|
|
11
|
+
import * as integer from "./integer/integer";
|
|
12
|
+
import * as key from "./key/key";
|
|
13
|
+
import * as navigator from "./navigator/navigator";
|
|
14
|
+
import * as notification from "./notification/notification";
|
|
15
|
+
import * as querystring from "./querystring/querystring";
|
|
16
|
+
import * as router from "./router/router";
|
|
17
|
+
import * as stylesheet from "./stylesheet/stylesheet";
|
|
18
|
+
import * as uniqueId from "./uniqueId/uniqueId";
|
|
19
|
+
import * as webSocket from "./webSocket/webSocket";
|
|
20
|
+
import * as userAgent from "./userAgent/userAgent";
|
|
21
|
+
export { blob };
|
|
22
|
+
export { contextMenu };
|
|
23
|
+
export { cookie };
|
|
24
|
+
export { dataReaderTable };
|
|
25
|
+
export { fetch };
|
|
26
|
+
export { float };
|
|
27
|
+
export { formData };
|
|
28
|
+
export { formatting };
|
|
29
|
+
export { htmlElement };
|
|
30
|
+
export { image };
|
|
31
|
+
export { integer };
|
|
32
|
+
export { key };
|
|
33
|
+
export { navigator };
|
|
34
|
+
export { notification };
|
|
35
|
+
export { querystring };
|
|
36
|
+
export { router };
|
|
37
|
+
export { stylesheet };
|
|
38
|
+
export { uniqueId };
|
|
39
|
+
export { webSocket };
|
|
40
|
+
export { userAgent };
|
package/dist/utilities/index.js
CHANGED
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
import * as blob from "./blob/blob";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
1
|
+
import * as blob from "./blob/blob";
|
|
2
|
+
import * as contextMenu from "./contextMenu/contextMenu";
|
|
3
|
+
import * as cookie from "./cookie/cookie";
|
|
4
|
+
import * as dataReaderTable from "./dataReaderTable/dataReaderTable";
|
|
5
|
+
import * as fetch from "./fetch/fetch";
|
|
6
|
+
import * as float from "./float/float";
|
|
7
|
+
import * as formData from "./formData/formData";
|
|
8
|
+
import * as formatting from "./formatting/formatting";
|
|
9
|
+
import * as htmlElement from "./htmlElement/htmlElement";
|
|
10
|
+
import * as image from "./image/image";
|
|
11
|
+
import * as integer from "./integer/integer";
|
|
12
|
+
import * as key from "./key/key";
|
|
13
|
+
import * as navigator from "./navigator/navigator";
|
|
14
|
+
import * as notification from "./notification/notification";
|
|
15
|
+
import * as querystring from "./querystring/querystring";
|
|
16
|
+
import * as router from "./router/router";
|
|
17
|
+
import * as stylesheet from "./stylesheet/stylesheet";
|
|
18
|
+
import * as uniqueId from "./uniqueId/uniqueId";
|
|
19
|
+
import * as webSocket from "./webSocket/webSocket";
|
|
20
|
+
import * as userAgent from "./userAgent/userAgent";
|
|
21
|
+
export { blob };
|
|
22
|
+
export { contextMenu };
|
|
23
|
+
export { cookie };
|
|
24
|
+
export { dataReaderTable };
|
|
25
|
+
export { fetch };
|
|
26
|
+
export { float };
|
|
27
|
+
export { formData };
|
|
28
|
+
export { formatting };
|
|
29
|
+
export { htmlElement };
|
|
30
|
+
export { image };
|
|
31
|
+
export { integer };
|
|
32
|
+
export { key };
|
|
33
|
+
export { navigator };
|
|
34
|
+
export { notification };
|
|
35
|
+
export { querystring };
|
|
36
|
+
export { router };
|
|
37
|
+
export { stylesheet };
|
|
38
|
+
export { uniqueId };
|
|
39
|
+
export { webSocket };
|
|
40
|
+
export { userAgent };
|
|
37
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,eAAe,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,eAAe,MAAM,mCAAmC,CAAC;AACrE,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAA;AACrD,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,GAAG,MAAM,WAAW,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,YAAY,MAAM,6BAA6B,CAAC;AAC5D,OAAO,KAAK,WAAW,MAAM,2BAA2B,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AACnD,OAAO,KAAK,SAAS,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,OAAO,EAAE,eAAe,EAAE,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,KAAK,EAAE,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB,OAAO,EAAE,GAAG,EAAE,CAAC;AACf,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,OAAO,EAAE,UAAU,EAAE,CAAC;AACtB,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function isInteger(text: string): boolean;
|
|
2
|
-
export declare function isIntegerOrNull(text: string): boolean;
|
|
3
|
-
export declare function convertToInt(text: any): number;
|
|
1
|
+
export declare function isInteger(text: string): boolean;
|
|
2
|
+
export declare function isIntegerOrNull(text: string): boolean;
|
|
3
|
+
export declare function convertToInt(text: any): number;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export function isInteger(text) {
|
|
2
|
-
if (!text) {
|
|
3
|
-
throw "parameter text not provided";
|
|
4
|
-
}
|
|
5
|
-
return text.match(/\D/) === null;
|
|
6
|
-
}
|
|
7
|
-
export function isIntegerOrNull(text) {
|
|
8
|
-
if (text) {
|
|
9
|
-
return isInteger(text);
|
|
10
|
-
}
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
export function convertToInt(text) {
|
|
14
|
-
if (typeof text === "string") {
|
|
15
|
-
if (isInteger(text)) {
|
|
16
|
-
const intValue = Number.parseInt(text);
|
|
17
|
-
if (Number.isNaN(intValue)) {
|
|
18
|
-
return null;
|
|
19
|
-
}
|
|
20
|
-
return intValue;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
if (typeof text === "number") {
|
|
24
|
-
return Math.trunc(text);
|
|
25
|
-
}
|
|
26
|
-
return null;
|
|
27
|
-
}
|
|
1
|
+
export function isInteger(text) {
|
|
2
|
+
if (!text) {
|
|
3
|
+
throw "parameter text not provided";
|
|
4
|
+
}
|
|
5
|
+
return text.match(/\D/) === null;
|
|
6
|
+
}
|
|
7
|
+
export function isIntegerOrNull(text) {
|
|
8
|
+
if (text) {
|
|
9
|
+
return isInteger(text);
|
|
10
|
+
}
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
export function convertToInt(text) {
|
|
14
|
+
if (typeof text === "string") {
|
|
15
|
+
if (isInteger(text)) {
|
|
16
|
+
const intValue = Number.parseInt(text);
|
|
17
|
+
if (Number.isNaN(intValue)) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
return intValue;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (typeof text === "number") {
|
|
24
|
+
return Math.trunc(text);
|
|
25
|
+
}
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
28
|
//# sourceMappingURL=integer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integer.js","sourceRoot":"","sources":["../../../src/utilities/integer/integer.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,IAAY;IAClC,IAAI,CAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"integer.js","sourceRoot":"","sources":["../../../src/utilities/integer/integer.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,SAAS,CAAC,IAAY;IAClC,IAAI,CAAC,IAAI,EAAE,CAAC;QACR,MAAM,6BAA6B,CAAC;IACxC,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC;AACrC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAY;IACxC,IAAI,IAAI,EAAE,CAAC;QACP,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAS;IAClC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,IAAI,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;YAClB,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACzB,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,OAAO,QAAQ,CAAC;QACpB,CAAC;IACL,CAAC;IAED,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function getKeys<TObject>(): (key: keyof TObject) => string;
|
|
2
|
-
export declare function getKey<TObject>(name: keyof TObject): keyof TObject;
|
|
1
|
+
export declare function getKeys<TObject>(): (key: keyof TObject) => string;
|
|
2
|
+
export declare function getKey<TObject>(name: keyof TObject): keyof TObject;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export function getKeys() {
|
|
2
|
-
return (key) => key.toString();
|
|
3
|
-
}
|
|
4
|
-
export function getKey(name) {
|
|
5
|
-
return name;
|
|
6
|
-
}
|
|
1
|
+
export function getKeys() {
|
|
2
|
+
return (key) => key.toString();
|
|
3
|
+
}
|
|
4
|
+
export function getKey(name) {
|
|
5
|
+
return name;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function getLanguage(): any;
|
|
1
|
+
export declare function getLanguage(): any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export function getLanguage() {
|
|
2
|
-
if (window.navigator.languages) {
|
|
3
|
-
return window.navigator.languages[0];
|
|
4
|
-
}
|
|
5
|
-
else {
|
|
6
|
-
return window.navigator["userLanguage"] || window.navigator.language;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
export function getLanguage() {
|
|
2
|
+
if (window.navigator.languages) {
|
|
3
|
+
return window.navigator.languages[0];
|
|
4
|
+
}
|
|
5
|
+
else {
|
|
6
|
+
return window.navigator["userLanguage"] || window.navigator.language;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
9
|
//# sourceMappingURL=navigator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigator.js","sourceRoot":"","sources":["../../../src/utilities/navigator/navigator.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW;IACvB,IAAI,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"navigator.js","sourceRoot":"","sources":["../../../src/utilities/navigator/navigator.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW;IACvB,IAAI,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;QAC7B,OAAO,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;SAAM,CAAC;QACJ,OAAO,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;IACzE,CAAC;AACL,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type MessageType = "error" | "info" | "success" | "warning";
|
|
2
|
-
export declare function showError(error: string, title: string, autoHideAfter?: number): void;
|
|
3
|
-
export declare function showInfo(info: string, title: string, autoHideAfter?: number): void;
|
|
4
|
-
export declare function showSuccess(success: string, title: string, autoHideAfter?: number): void;
|
|
5
|
-
export declare function showWarning(warning: string, title: string, autoHideAfter?: number): void;
|
|
1
|
+
export type MessageType = "error" | "info" | "success" | "warning";
|
|
2
|
+
export declare function showError(error: string, title: string, autoHideAfter?: number): void;
|
|
3
|
+
export declare function showInfo(info: string, title: string, autoHideAfter?: number): void;
|
|
4
|
+
export declare function showSuccess(success: string, title: string, autoHideAfter?: number): void;
|
|
5
|
+
export declare function showWarning(warning: string, title: string, autoHideAfter?: number): void;
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import * as toastr from "toastr";
|
|
2
|
-
import { extend } from "jquery";
|
|
3
|
-
toastr.options.closeButton = true;
|
|
4
|
-
toastr.options.positionClass = "toast-bottom-full-width";
|
|
5
|
-
toastr.options.hideDuration = 1000;
|
|
6
|
-
toastr.options.timeOut = 6000;
|
|
7
|
-
toastr.options.extendedTimeOut = 2000;
|
|
8
|
-
toastr.options.progressBar = true;
|
|
9
|
-
const defaults = {
|
|
10
|
-
title: "",
|
|
11
|
-
message: "no message provided",
|
|
12
|
-
data: "",
|
|
13
|
-
showToast: true,
|
|
14
|
-
type: "info"
|
|
15
|
-
};
|
|
16
|
-
function show(options) {
|
|
17
|
-
let extendedOptions = extend({}, defaults);
|
|
18
|
-
if (options) {
|
|
19
|
-
extendedOptions = extend(extendedOptions, options);
|
|
20
|
-
}
|
|
21
|
-
console.log("Notification " + extendedOptions.type + ": " + extendedOptions.message + " " + extendedOptions.data + " ");
|
|
22
|
-
if (extendedOptions.showToast) {
|
|
23
|
-
if (options.timeOut) {
|
|
24
|
-
toastr[extendedOptions.type](extendedOptions.message, extendedOptions.title, { timeOut: options.timeOut });
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
toastr[extendedOptions.type](extendedOptions.message, extendedOptions.title);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
export function showError(error, title, autoHideAfter) {
|
|
32
|
-
show({
|
|
33
|
-
title: title,
|
|
34
|
-
message: error,
|
|
35
|
-
type: "error",
|
|
36
|
-
showToast: true,
|
|
37
|
-
timeOut: autoHideAfter
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
export function showInfo(info, title, autoHideAfter) {
|
|
41
|
-
show({
|
|
42
|
-
title: title,
|
|
43
|
-
message: info,
|
|
44
|
-
type: "info",
|
|
45
|
-
showToast: true,
|
|
46
|
-
timeOut: autoHideAfter
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
export function showSuccess(success, title, autoHideAfter) {
|
|
50
|
-
show({
|
|
51
|
-
title: title,
|
|
52
|
-
message: success,
|
|
53
|
-
type: "success",
|
|
54
|
-
showToast: true,
|
|
55
|
-
timeOut: autoHideAfter
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
export function showWarning(warning, title, autoHideAfter) {
|
|
59
|
-
show({
|
|
60
|
-
title: title,
|
|
61
|
-
message: warning,
|
|
62
|
-
type: "warning",
|
|
63
|
-
showToast: true,
|
|
64
|
-
timeOut: autoHideAfter
|
|
65
|
-
});
|
|
66
|
-
}
|
|
1
|
+
import * as toastr from "toastr";
|
|
2
|
+
import { extend } from "jquery";
|
|
3
|
+
toastr.options.closeButton = true;
|
|
4
|
+
toastr.options.positionClass = "toast-bottom-full-width";
|
|
5
|
+
toastr.options.hideDuration = 1000;
|
|
6
|
+
toastr.options.timeOut = 6000;
|
|
7
|
+
toastr.options.extendedTimeOut = 2000;
|
|
8
|
+
toastr.options.progressBar = true;
|
|
9
|
+
const defaults = {
|
|
10
|
+
title: "",
|
|
11
|
+
message: "no message provided",
|
|
12
|
+
data: "",
|
|
13
|
+
showToast: true,
|
|
14
|
+
type: "info"
|
|
15
|
+
};
|
|
16
|
+
function show(options) {
|
|
17
|
+
let extendedOptions = extend({}, defaults);
|
|
18
|
+
if (options) {
|
|
19
|
+
extendedOptions = extend(extendedOptions, options);
|
|
20
|
+
}
|
|
21
|
+
console.log("Notification " + extendedOptions.type + ": " + extendedOptions.message + " " + extendedOptions.data + " ");
|
|
22
|
+
if (extendedOptions.showToast) {
|
|
23
|
+
if (options.timeOut) {
|
|
24
|
+
toastr[extendedOptions.type](extendedOptions.message, extendedOptions.title, { timeOut: options.timeOut });
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
toastr[extendedOptions.type](extendedOptions.message, extendedOptions.title);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export function showError(error, title, autoHideAfter) {
|
|
32
|
+
show({
|
|
33
|
+
title: title,
|
|
34
|
+
message: error,
|
|
35
|
+
type: "error",
|
|
36
|
+
showToast: true,
|
|
37
|
+
timeOut: autoHideAfter
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
export function showInfo(info, title, autoHideAfter) {
|
|
41
|
+
show({
|
|
42
|
+
title: title,
|
|
43
|
+
message: info,
|
|
44
|
+
type: "info",
|
|
45
|
+
showToast: true,
|
|
46
|
+
timeOut: autoHideAfter
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export function showSuccess(success, title, autoHideAfter) {
|
|
50
|
+
show({
|
|
51
|
+
title: title,
|
|
52
|
+
message: success,
|
|
53
|
+
type: "success",
|
|
54
|
+
showToast: true,
|
|
55
|
+
timeOut: autoHideAfter
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
export function showWarning(warning, title, autoHideAfter) {
|
|
59
|
+
show({
|
|
60
|
+
title: title,
|
|
61
|
+
message: warning,
|
|
62
|
+
type: "warning",
|
|
63
|
+
showToast: true,
|
|
64
|
+
timeOut: autoHideAfter
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
67
|
//# sourceMappingURL=notification.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../src/utilities/notification/notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,MAAM,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;AAClC,MAAM,CAAC,OAAO,CAAC,aAAa,GAAG,yBAAyB,CAAC;AACzD,MAAM,CAAC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;AACnC,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;AAC9B,MAAM,CAAC,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;AACtC,MAAM,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;AAGlC,MAAM,QAAQ,GAAyB;IACnC,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,qBAAqB;IAC9B,IAAI,EAAE,EAAE;IACR,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,MAAM;CACf,CAAC;AAYF,SAAS,IAAI,CAAC,OAA6B;IACvC,IAAI,eAAe,GAAG,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC3C,IAAI,OAAO,EAAE;
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../src/utilities/notification/notification.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,MAAM,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;AAClC,MAAM,CAAC,OAAO,CAAC,aAAa,GAAG,yBAAyB,CAAC;AACzD,MAAM,CAAC,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC;AACnC,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC;AAC9B,MAAM,CAAC,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC;AACtC,MAAM,CAAC,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;AAGlC,MAAM,QAAQ,GAAyB;IACnC,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,qBAAqB;IAC9B,IAAI,EAAE,EAAE;IACR,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,MAAM;CACf,CAAC;AAYF,SAAS,IAAI,CAAC,OAA6B;IACvC,IAAI,eAAe,GAAG,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IAC3C,IAAI,OAAO,EAAE,CAAC;QACV,eAAe,GAAG,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACvD,CAAC;IACD,OAAO,CAAC,GAAG,CAAC,eAAe,GAAG,eAAe,CAAC,IAAI,GAAG,IAAI,GAAG,eAAe,CAAC,OAAO,GAAG,GAAG,GAAG,eAAe,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC;IAExH,IAAI,eAAe,CAAC,SAAS,EAAE,CAAC;QAC5B,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAClB,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;QAC/G,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;QACjF,CAAC;IACL,CAAC;AACL,CAAC;AAID,MAAM,UAAU,SAAS,CAAC,KAAa,EAAE,KAAa,EAAE,aAAsB;IAC1E,IAAI,CAAC;QACD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,OAAO;QACb,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,aAAa;KACzB,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,KAAa,EAAE,aAAsB;IACxE,IAAI,CAAC;QACD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,MAAM;QACZ,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,aAAa;KACzB,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,KAAa,EAAE,aAAsB;IAC9E,IAAI,CAAC;QACD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,aAAa;KACzB,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,OAAe,EAAE,KAAa,EAAE,aAAsB;IAC9E,IAAI,CAAC;QACD,KAAK,EAAE,KAAK;QACZ,OAAO,EAAE,OAAO;QAChB,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,IAAI;QACf,OAAO,EAAE,aAAa;KACzB,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare function parameterExists(name: string): boolean;
|
|
2
|
-
export declare function getParameter(name: string): string;
|
|
3
|
-
export declare function objectToQueryString(object: object): string;
|
|
4
|
-
export declare function getObjectFromQueryString(): object;
|
|
5
|
-
export declare function objectToBase64SQueryString(object: object, parameterName: string): string;
|
|
6
|
-
export declare function getObjectFromBase64QueryString(parameterName: string): object;
|
|
1
|
+
export declare function parameterExists(name: string): boolean;
|
|
2
|
+
export declare function getParameter(name: string): string;
|
|
3
|
+
export declare function objectToQueryString(object: object): string;
|
|
4
|
+
export declare function getObjectFromQueryString(): object;
|
|
5
|
+
export declare function objectToBase64SQueryString(object: object, parameterName: string): string;
|
|
6
|
+
export declare function getObjectFromBase64QueryString(parameterName: string): object;
|