@vaadin-component-factory/vcf-pdf-viewer 0.9.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +42 -26
- package/{src/display → pdfjs/dist}/display_utils.js +344 -139
- package/{src/display → pdfjs/dist}/fetch_stream.js +115 -97
- package/pdfjs/dist/l10n_utils.js +140 -0
- package/{src/shared → pdfjs/dist}/message_handler.js +243 -259
- package/{src/display → pdfjs/dist}/network.js +149 -87
- package/{src/display/content_disposition.js → pdfjs/dist/network_utils.js} +167 -55
- package/{src/display → pdfjs/dist}/node_stream.js +133 -98
- package/pdfjs/dist/pdf.js +12778 -0
- package/pdfjs/dist/pdf_link_service.js +638 -0
- package/pdfjs/dist/pdf_rendering_queue.js +199 -0
- package/pdfjs/dist/pdf_thumbnail_viewer.js +819 -0
- package/pdfjs/dist/pdf_viewer.js +3598 -0
- package/pdfjs/dist/ui_utils.js +1033 -0
- package/{src/shared → pdfjs/dist}/util.js +301 -287
- package/pdfjs/dist/worker.js +62813 -0
- package/src/vcf-pdf-viewer.js +98 -46
- package/theme/lumo/vcf-pdf-viewer-styles.js +4 -4
- package/theme/material/vcf-pdf-viewer-styles.js +4 -4
- package/theme/material/vcf-pdf-viewer.js +2 -2
- package/src/core/.eslintrc +0 -13
- package/src/core/annotation.js +0 -2948
- package/src/core/arithmetic_decoder.js +0 -182
- package/src/core/ascii_85_stream.js +0 -98
- package/src/core/ascii_hex_stream.js +0 -79
- package/src/core/base_stream.js +0 -110
- package/src/core/bidi.js +0 -438
- package/src/core/calibri_factors.js +0 -308
- package/src/core/catalog.js +0 -1459
- package/src/core/ccitt.js +0 -1062
- package/src/core/ccitt_stream.js +0 -60
- package/src/core/cff_font.js +0 -116
- package/src/core/cff_parser.js +0 -1949
- package/src/core/charsets.js +0 -119
- package/src/core/chunked_stream.js +0 -557
- package/src/core/cmap.js +0 -1039
- package/src/core/colorspace.js +0 -1533
- package/src/core/core_utils.js +0 -464
- package/src/core/crypto.js +0 -1900
- package/src/core/decode_stream.js +0 -170
- package/src/core/decrypt_stream.js +0 -59
- package/src/core/default_appearance.js +0 -99
- package/src/core/document.js +0 -1456
- package/src/core/encodings.js +0 -301
- package/src/core/evaluator.js +0 -4601
- package/src/core/file_spec.js +0 -108
- package/src/core/flate_stream.js +0 -402
- package/src/core/font_renderer.js +0 -882
- package/src/core/fonts.js +0 -3260
- package/src/core/fonts_utils.js +0 -221
- package/src/core/function.js +0 -1257
- package/src/core/glyf.js +0 -706
- package/src/core/glyphlist.js +0 -4558
- package/src/core/helvetica_factors.js +0 -353
- package/src/core/image.js +0 -802
- package/src/core/image_utils.js +0 -291
- package/src/core/jbig2.js +0 -2572
- package/src/core/jbig2_stream.js +0 -73
- package/src/core/jpeg_stream.js +0 -105
- package/src/core/jpg.js +0 -1416
- package/src/core/jpx.js +0 -2343
- package/src/core/jpx_stream.js +0 -87
- package/src/core/liberationsans_widths.js +0 -221
- package/src/core/lzw_stream.js +0 -150
- package/src/core/metadata_parser.js +0 -146
- package/src/core/metrics.js +0 -2970
- package/src/core/murmurhash3.js +0 -139
- package/src/core/myriadpro_factors.js +0 -290
- package/src/core/name_number_tree.js +0 -153
- package/src/core/object_loader.js +0 -149
- package/src/core/opentype_file_builder.js +0 -154
- package/src/core/operator_list.js +0 -734
- package/src/core/parser.js +0 -1416
- package/src/core/pattern.js +0 -985
- package/src/core/pdf_manager.js +0 -217
- package/src/core/predictor_stream.js +0 -238
- package/src/core/primitives.js +0 -402
- package/src/core/ps_parser.js +0 -272
- package/src/core/run_length_stream.js +0 -61
- package/src/core/segoeui_factors.js +0 -308
- package/src/core/standard_fonts.js +0 -817
- package/src/core/stream.js +0 -103
- package/src/core/struct_tree.js +0 -335
- package/src/core/to_unicode_map.js +0 -103
- package/src/core/type1_font.js +0 -421
- package/src/core/type1_parser.js +0 -776
- package/src/core/unicode.js +0 -1649
- package/src/core/worker.js +0 -848
- package/src/core/worker_stream.js +0 -135
- package/src/core/writer.js +0 -278
- package/src/core/xfa/bind.js +0 -652
- package/src/core/xfa/builder.js +0 -207
- package/src/core/xfa/config.js +0 -1926
- package/src/core/xfa/connection_set.js +0 -202
- package/src/core/xfa/data.js +0 -82
- package/src/core/xfa/datasets.js +0 -76
- package/src/core/xfa/factory.js +0 -111
- package/src/core/xfa/fonts.js +0 -181
- package/src/core/xfa/formcalc_lexer.js +0 -385
- package/src/core/xfa/formcalc_parser.js +0 -1340
- package/src/core/xfa/html_utils.js +0 -639
- package/src/core/xfa/layout.js +0 -383
- package/src/core/xfa/locale_set.js +0 -345
- package/src/core/xfa/namespaces.js +0 -81
- package/src/core/xfa/parser.js +0 -184
- package/src/core/xfa/setup.js +0 -38
- package/src/core/xfa/signature.js +0 -40
- package/src/core/xfa/som.js +0 -338
- package/src/core/xfa/stylesheet.js +0 -40
- package/src/core/xfa/template.js +0 -6260
- package/src/core/xfa/text.js +0 -290
- package/src/core/xfa/unknown.js +0 -29
- package/src/core/xfa/utils.js +0 -217
- package/src/core/xfa/xdp.js +0 -59
- package/src/core/xfa/xfa_object.js +0 -1130
- package/src/core/xfa/xhtml.js +0 -543
- package/src/core/xfa_fonts.js +0 -208
- package/src/core/xml_parser.js +0 -507
- package/src/core/xref.js +0 -899
- package/src/display/annotation_layer.js +0 -2107
- package/src/display/annotation_storage.js +0 -113
- package/src/display/api.js +0 -3292
- package/src/display/base_factory.js +0 -180
- package/src/display/canvas.js +0 -2828
- package/src/display/font_loader.js +0 -484
- package/src/display/metadata.js +0 -41
- package/src/display/network_utils.js +0 -100
- package/src/display/node_utils.js +0 -83
- package/src/display/optional_content_config.js +0 -189
- package/src/display/pattern_helper.js +0 -659
- package/src/display/svg.js +0 -1709
- package/src/display/text_layer.js +0 -847
- package/src/display/transport_stream.js +0 -303
- package/src/display/worker_options.js +0 -40
- package/src/display/xfa_layer.js +0 -204
- package/src/doc_helper.js +0 -25
- package/src/images/logo.svg +0 -41
- package/src/interfaces.js +0 -169
- package/src/license_header.js +0 -14
- package/src/license_header_libre.js +0 -21
- package/src/pdf.image_decoders.js +0 -46
- package/src/pdf.js +0 -146
- package/src/pdf.sandbox.external.js +0 -181
- package/src/pdf.sandbox.js +0 -151
- package/src/pdf.scripting.js +0 -25
- package/src/pdf.worker.entry.js +0 -19
- package/src/pdf.worker.js +0 -23
- package/src/scripting_api/aform.js +0 -608
- package/src/scripting_api/app.js +0 -621
- package/src/scripting_api/color.js +0 -129
- package/src/scripting_api/common.js +0 -58
- package/src/scripting_api/console.js +0 -38
- package/src/scripting_api/constants.js +0 -208
- package/src/scripting_api/doc.js +0 -1195
- package/src/scripting_api/error.js +0 -23
- package/src/scripting_api/event.js +0 -232
- package/src/scripting_api/field.js +0 -620
- package/src/scripting_api/fullscreen.js +0 -145
- package/src/scripting_api/initialization.js +0 -223
- package/src/scripting_api/pdf_object.js +0 -24
- package/src/scripting_api/print_params.js +0 -146
- package/src/scripting_api/proxy.js +0 -139
- package/src/scripting_api/thermometer.js +0 -69
- package/src/scripting_api/util.js +0 -581
- package/src/shared/.eslintrc +0 -13
- package/src/shared/cffStandardStrings.js +0 -311
- package/src/shared/compatibility.js +0 -114
- package/src/shared/fonts_utils.js +0 -429
- package/src/shared/is_node.js +0 -27
- package/src/shared/scripting_utils.js +0 -85
- package/src/worker_loader.js +0 -32
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
/* Copyright 2020 Mozilla Foundation
|
|
2
|
-
*
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { ColorConverters } from "../shared/scripting_utils.js";
|
|
17
|
-
import { PDFObject } from "./pdf_object.js";
|
|
18
|
-
|
|
19
|
-
class Color extends PDFObject {
|
|
20
|
-
constructor() {
|
|
21
|
-
super({});
|
|
22
|
-
|
|
23
|
-
this.transparent = ["T"];
|
|
24
|
-
this.black = ["G", 0];
|
|
25
|
-
this.white = ["G", 1];
|
|
26
|
-
this.red = ["RGB", 1, 0, 0];
|
|
27
|
-
this.green = ["RGB", 0, 1, 0];
|
|
28
|
-
this.blue = ["RGB", 0, 0, 1];
|
|
29
|
-
this.cyan = ["CMYK", 1, 0, 0, 0];
|
|
30
|
-
this.magenta = ["CMYK", 0, 1, 0, 0];
|
|
31
|
-
this.yellow = ["CMYK", 0, 0, 1, 0];
|
|
32
|
-
this.dkGray = ["G", 0.25];
|
|
33
|
-
this.gray = ["G", 0.5];
|
|
34
|
-
this.ltGray = ["G", 0.75];
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
static _isValidSpace(cColorSpace) {
|
|
38
|
-
return (
|
|
39
|
-
typeof cColorSpace === "string" &&
|
|
40
|
-
(cColorSpace === "T" ||
|
|
41
|
-
cColorSpace === "G" ||
|
|
42
|
-
cColorSpace === "RGB" ||
|
|
43
|
-
cColorSpace === "CMYK")
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
static _isValidColor(colorArray) {
|
|
48
|
-
if (!Array.isArray(colorArray) || colorArray.length === 0) {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
const space = colorArray[0];
|
|
52
|
-
if (!Color._isValidSpace(space)) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
switch (space) {
|
|
57
|
-
case "T":
|
|
58
|
-
if (colorArray.length !== 1) {
|
|
59
|
-
return false;
|
|
60
|
-
}
|
|
61
|
-
break;
|
|
62
|
-
case "G":
|
|
63
|
-
if (colorArray.length !== 2) {
|
|
64
|
-
return false;
|
|
65
|
-
}
|
|
66
|
-
break;
|
|
67
|
-
case "RGB":
|
|
68
|
-
if (colorArray.length !== 4) {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
break;
|
|
72
|
-
case "CMYK":
|
|
73
|
-
if (colorArray.length !== 5) {
|
|
74
|
-
return false;
|
|
75
|
-
}
|
|
76
|
-
break;
|
|
77
|
-
default:
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return colorArray
|
|
82
|
-
.slice(1)
|
|
83
|
-
.every(c => typeof c === "number" && c >= 0 && c <= 1);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
static _getCorrectColor(colorArray) {
|
|
87
|
-
return Color._isValidColor(colorArray) ? colorArray : ["G", 0];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
convert(colorArray, cColorSpace) {
|
|
91
|
-
if (!Color._isValidSpace(cColorSpace)) {
|
|
92
|
-
return this.black;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
if (cColorSpace === "T") {
|
|
96
|
-
return ["T"];
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
colorArray = Color._getCorrectColor(colorArray);
|
|
100
|
-
if (colorArray[0] === cColorSpace) {
|
|
101
|
-
return colorArray;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (colorArray[0] === "T") {
|
|
105
|
-
return this.convert(this.black, cColorSpace);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
return ColorConverters[`${colorArray[0]}_${cColorSpace}`](
|
|
109
|
-
colorArray.slice(1)
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
equal(colorArray1, colorArray2) {
|
|
114
|
-
colorArray1 = Color._getCorrectColor(colorArray1);
|
|
115
|
-
colorArray2 = Color._getCorrectColor(colorArray2);
|
|
116
|
-
|
|
117
|
-
if (colorArray1[0] === "T" || colorArray2[0] === "T") {
|
|
118
|
-
return colorArray1[0] === "T" && colorArray2[0] === "T";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (colorArray1[0] !== colorArray2[0]) {
|
|
122
|
-
colorArray2 = this.convert(colorArray2, colorArray1[0]);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return colorArray1.slice(1).every((c, i) => c === colorArray2[i + 1]);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export { Color };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
/* Copyright 2020 Mozilla Foundation
|
|
2
|
-
*
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const FieldType = {
|
|
17
|
-
none: 0,
|
|
18
|
-
number: 1,
|
|
19
|
-
percent: 2,
|
|
20
|
-
date: 3,
|
|
21
|
-
time: 4,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
function createActionsMap(actions) {
|
|
25
|
-
const actionsMap = new Map();
|
|
26
|
-
if (actions) {
|
|
27
|
-
for (const [eventType, actionsForEvent] of Object.entries(actions)) {
|
|
28
|
-
actionsMap.set(eventType, actionsForEvent);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return actionsMap;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
function getFieldType(actions) {
|
|
35
|
-
let format = actions.get("Format");
|
|
36
|
-
if (!format) {
|
|
37
|
-
return FieldType.none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
format = format[0];
|
|
41
|
-
|
|
42
|
-
format = format.trim();
|
|
43
|
-
if (format.startsWith("AFNumber_")) {
|
|
44
|
-
return FieldType.number;
|
|
45
|
-
}
|
|
46
|
-
if (format.startsWith("AFPercent_")) {
|
|
47
|
-
return FieldType.percent;
|
|
48
|
-
}
|
|
49
|
-
if (format.startsWith("AFDate_")) {
|
|
50
|
-
return FieldType.date;
|
|
51
|
-
}
|
|
52
|
-
if (format.startsWith("AFTime__")) {
|
|
53
|
-
return FieldType.time;
|
|
54
|
-
}
|
|
55
|
-
return FieldType.none;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export { createActionsMap, FieldType, getFieldType };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* Copyright 2020 Mozilla Foundation
|
|
2
|
-
*
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
import { PDFObject } from "./pdf_object.js";
|
|
17
|
-
|
|
18
|
-
class Console extends PDFObject {
|
|
19
|
-
clear() {
|
|
20
|
-
this._send({ id: "clear" });
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
hide() {
|
|
24
|
-
/* Not implemented */
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
println(msg) {
|
|
28
|
-
if (typeof msg === "string") {
|
|
29
|
-
this._send({ command: "println", value: "PDF.js Console:: " + msg });
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
show() {
|
|
34
|
-
/* Not implemented */
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { Console };
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
/* Copyright 2020 Mozilla Foundation
|
|
2
|
-
*
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
* you may not use this file except in compliance with the License.
|
|
5
|
-
* You may obtain a copy of the License at
|
|
6
|
-
*
|
|
7
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
*
|
|
9
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
* See the License for the specific language governing permissions and
|
|
13
|
-
* limitations under the License.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const Border = Object.freeze({
|
|
17
|
-
s: "solid",
|
|
18
|
-
d: "dashed",
|
|
19
|
-
b: "beveled",
|
|
20
|
-
i: "inset",
|
|
21
|
-
u: "underline",
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
const Cursor = Object.freeze({
|
|
25
|
-
visible: 0,
|
|
26
|
-
hidden: 1,
|
|
27
|
-
delay: 2,
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const Display = Object.freeze({
|
|
31
|
-
visible: 0,
|
|
32
|
-
hidden: 1,
|
|
33
|
-
noPrint: 2,
|
|
34
|
-
noView: 3,
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
const Font = Object.freeze({
|
|
38
|
-
Times: "Times-Roman",
|
|
39
|
-
TimesB: "Times-Bold",
|
|
40
|
-
TimesI: "Times-Italic",
|
|
41
|
-
TimesBI: "Times-BoldItalic",
|
|
42
|
-
Helv: "Helvetica",
|
|
43
|
-
HelvB: "Helvetica-Bold",
|
|
44
|
-
HelvI: "Helvetica-Oblique",
|
|
45
|
-
HelvBI: "Helvetica-BoldOblique",
|
|
46
|
-
Cour: "Courier",
|
|
47
|
-
CourB: "Courier-Bold",
|
|
48
|
-
CourI: "Courier-Oblique",
|
|
49
|
-
CourBI: "Courier-BoldOblique",
|
|
50
|
-
Symbol: "Symbol",
|
|
51
|
-
ZapfD: "ZapfDingbats",
|
|
52
|
-
KaGo: "HeiseiKakuGo-W5-UniJIS-UCS2-H",
|
|
53
|
-
KaMi: "HeiseiMin-W3-UniJIS-UCS2-H",
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
const Highlight = Object.freeze({
|
|
57
|
-
n: "none",
|
|
58
|
-
i: "invert",
|
|
59
|
-
p: "push",
|
|
60
|
-
o: "outline",
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
const Position = Object.freeze({
|
|
64
|
-
textOnly: 0,
|
|
65
|
-
iconOnly: 1,
|
|
66
|
-
iconTextV: 2,
|
|
67
|
-
textIconV: 3,
|
|
68
|
-
iconTextH: 4,
|
|
69
|
-
textIconH: 5,
|
|
70
|
-
overlay: 6,
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
const ScaleHow = Object.freeze({
|
|
74
|
-
proportional: 0,
|
|
75
|
-
anamorphic: 1,
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
const ScaleWhen = Object.freeze({
|
|
79
|
-
always: 0,
|
|
80
|
-
never: 1,
|
|
81
|
-
tooBig: 2,
|
|
82
|
-
tooSmall: 3,
|
|
83
|
-
});
|
|
84
|
-
|
|
85
|
-
const Style = Object.freeze({
|
|
86
|
-
ch: "check",
|
|
87
|
-
cr: "cross",
|
|
88
|
-
di: "diamond",
|
|
89
|
-
ci: "circle",
|
|
90
|
-
st: "star",
|
|
91
|
-
sq: "square",
|
|
92
|
-
});
|
|
93
|
-
|
|
94
|
-
const Trans = Object.freeze({
|
|
95
|
-
blindsH: "BlindsHorizontal",
|
|
96
|
-
blindsV: "BlindsVertical",
|
|
97
|
-
boxI: "BoxIn",
|
|
98
|
-
boxO: "BoxOut",
|
|
99
|
-
dissolve: "Dissolve",
|
|
100
|
-
glitterD: "GlitterDown",
|
|
101
|
-
glitterR: "GlitterRight",
|
|
102
|
-
glitterRD: "GlitterRightDown",
|
|
103
|
-
random: "Random",
|
|
104
|
-
replace: "Replace",
|
|
105
|
-
splitHI: "SplitHorizontalIn",
|
|
106
|
-
splitHO: "SplitHorizontalOut",
|
|
107
|
-
splitVI: "SplitVerticalIn",
|
|
108
|
-
splitVO: "SplitVerticalOut",
|
|
109
|
-
wipeD: "WipeDown",
|
|
110
|
-
wipeL: "WipeLeft",
|
|
111
|
-
wipeR: "WipeRight",
|
|
112
|
-
wipeU: "WipeUp",
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
const ZoomType = Object.freeze({
|
|
116
|
-
none: "NoVary",
|
|
117
|
-
fitP: "FitPage",
|
|
118
|
-
fitW: "FitWidth",
|
|
119
|
-
fitH: "FitHeight",
|
|
120
|
-
fitV: "FitVisibleWidth",
|
|
121
|
-
pref: "Preferred",
|
|
122
|
-
refW: "ReflowWidth",
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
const GlobalConstants = Object.freeze({
|
|
126
|
-
IDS_GREATER_THAN: "Invalid value: must be greater than or equal to % s.",
|
|
127
|
-
IDS_GT_AND_LT:
|
|
128
|
-
"Invalid value: must be greater than or equal to % s " +
|
|
129
|
-
"and less than or equal to % s.",
|
|
130
|
-
IDS_LESS_THAN: "Invalid value: must be less than or equal to % s.",
|
|
131
|
-
IDS_INVALID_MONTH: "** Invalid **",
|
|
132
|
-
IDS_INVALID_DATE:
|
|
133
|
-
"Invalid date / time: please ensure that the date / time exists.Field",
|
|
134
|
-
IDS_INVALID_DATE2: " should match format ",
|
|
135
|
-
IDS_INVALID_VALUE: "The value entered does not match the format of the field",
|
|
136
|
-
IDS_AM: "am",
|
|
137
|
-
IDS_PM: "pm",
|
|
138
|
-
IDS_MONTH_INFO:
|
|
139
|
-
"January[1] February[2] March[3] April[4] May[5] " +
|
|
140
|
-
"June[6] July[7] August[8] September[9] October[10] " +
|
|
141
|
-
"November[11] December[12] Sept[9] Jan[1] Feb[2] Mar[3] " +
|
|
142
|
-
"Apr[4] Jun[6] Jul[7] Aug[8] Sep[9] Oct[10] Nov[11] Dec[12]",
|
|
143
|
-
IDS_STARTUP_CONSOLE_MSG: "** ^ _ ^ **",
|
|
144
|
-
RE_NUMBER_ENTRY_DOT_SEP: ["[+-]?\\d*\\.?\\d*"],
|
|
145
|
-
RE_NUMBER_COMMIT_DOT_SEP: [
|
|
146
|
-
// -1.0 or -1
|
|
147
|
-
"[+-]?\\d+(\\.\\d+)?",
|
|
148
|
-
// -.1
|
|
149
|
-
"[+-]?\\.\\d+",
|
|
150
|
-
// -1.
|
|
151
|
-
"[+-]?\\d+\\.",
|
|
152
|
-
],
|
|
153
|
-
RE_NUMBER_ENTRY_COMMA_SEP: ["[+-]?\\d*,?\\d*"],
|
|
154
|
-
RE_NUMBER_COMMIT_COMMA_SEP: [
|
|
155
|
-
// -1,0 or -1
|
|
156
|
-
"[+-]?\\d+([.,]\\d+)?",
|
|
157
|
-
// -,1
|
|
158
|
-
"[+-]?[.,]\\d+",
|
|
159
|
-
// -1,
|
|
160
|
-
"[+-]?\\d+[.,]",
|
|
161
|
-
],
|
|
162
|
-
RE_ZIP_ENTRY: ["\\d{0,5}"],
|
|
163
|
-
RE_ZIP_COMMIT: ["\\d{5}"],
|
|
164
|
-
RE_ZIP4_ENTRY: ["\\d{0,5}(\\.|[- ])?\\d{0,4}"],
|
|
165
|
-
RE_ZIP4_COMMIT: ["\\d{5}(\\.|[- ])?\\d{4}"],
|
|
166
|
-
RE_PHONE_ENTRY: [
|
|
167
|
-
// 555-1234 or 408 555-1234
|
|
168
|
-
"\\d{0,3}(\\.|[- ])?\\d{0,3}(\\.|[- ])?\\d{0,4}",
|
|
169
|
-
// (408
|
|
170
|
-
"\\(\\d{0,3}",
|
|
171
|
-
// (408) 555-1234
|
|
172
|
-
// (allow the addition of parens as an afterthought)
|
|
173
|
-
"\\(\\d{0,3}\\)(\\.|[- ])?\\d{0,3}(\\.|[- ])?\\d{0,4}",
|
|
174
|
-
// (408 555-1234
|
|
175
|
-
"\\(\\d{0,3}(\\.|[- ])?\\d{0,3}(\\.|[- ])?\\d{0,4}",
|
|
176
|
-
// 408) 555-1234
|
|
177
|
-
"\\d{0,3}\\)(\\.|[- ])?\\d{0,3}(\\.|[- ])?\\d{0,4}",
|
|
178
|
-
// international
|
|
179
|
-
"011(\\.|[- \\d])*",
|
|
180
|
-
],
|
|
181
|
-
RE_PHONE_COMMIT: [
|
|
182
|
-
// 555-1234
|
|
183
|
-
"\\d{3}(\\.|[- ])?\\d{4}",
|
|
184
|
-
// 408 555-1234
|
|
185
|
-
"\\d{3}(\\.|[- ])?\\d{3}(\\.|[- ])?\\d{4}",
|
|
186
|
-
// (408) 555-1234
|
|
187
|
-
"\\(\\d{3}\\)(\\.|[- ])?\\d{3}(\\.|[- ])?\\d{4}",
|
|
188
|
-
// international
|
|
189
|
-
"011(\\.|[- \\d])*",
|
|
190
|
-
],
|
|
191
|
-
RE_SSN_ENTRY: ["\\d{0,3}(\\.|[- ])?\\d{0,2}(\\.|[- ])?\\d{0,4}"],
|
|
192
|
-
RE_SSN_COMMIT: ["\\d{3}(\\.|[- ])?\\d{2}(\\.|[- ])?\\d{4}"],
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
export {
|
|
196
|
-
Border,
|
|
197
|
-
Cursor,
|
|
198
|
-
Display,
|
|
199
|
-
Font,
|
|
200
|
-
GlobalConstants,
|
|
201
|
-
Highlight,
|
|
202
|
-
Position,
|
|
203
|
-
ScaleHow,
|
|
204
|
-
ScaleWhen,
|
|
205
|
-
Style,
|
|
206
|
-
Trans,
|
|
207
|
-
ZoomType,
|
|
208
|
-
};
|