@dangl/angular-material-shared 2.9.0-beta0047 → 2.9.0-beta0048
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/package.json +1 -1
- package/tinymce-assets/icons/default/icons.js +9 -46
- package/tinymce-assets/icons/default/icons.min.js +1 -1
- package/tinymce-assets/models/dom/model.js +7239 -8193
- package/tinymce-assets/models/dom/model.min.js +1 -1
- package/tinymce-assets/plugins/accordion/plugin.js +879 -1174
- package/tinymce-assets/plugins/accordion/plugin.min.js +5 -1
- package/tinymce-assets/plugins/advlist/plugin.js +200 -412
- package/tinymce-assets/plugins/advlist/plugin.min.js +5 -1
- package/tinymce-assets/plugins/anchor/plugin.js +166 -189
- package/tinymce-assets/plugins/anchor/plugin.min.js +5 -1
- package/tinymce-assets/plugins/autolink/plugin.js +220 -310
- package/tinymce-assets/plugins/autolink/plugin.min.js +5 -1
- package/tinymce-assets/plugins/autoresize/plugin.js +149 -180
- package/tinymce-assets/plugins/autoresize/plugin.min.js +5 -1
- package/tinymce-assets/plugins/autosave/plugin.js +189 -208
- package/tinymce-assets/plugins/autosave/plugin.min.js +5 -1
- package/tinymce-assets/plugins/charmap/plugin.js +1566 -905
- package/tinymce-assets/plugins/charmap/plugin.min.js +5 -1
- package/tinymce-assets/plugins/code/plugin.js +61 -73
- package/tinymce-assets/plugins/code/plugin.min.js +4 -0
- package/tinymce-assets/plugins/codesample/plugin.js +2409 -3592
- package/tinymce-assets/plugins/codesample/plugin.min.js +12 -8
- package/tinymce-assets/plugins/directionality/plugin.js +304 -545
- package/tinymce-assets/plugins/directionality/plugin.min.js +5 -1
- package/tinymce-assets/plugins/emoticons/plugin.js +488 -702
- package/tinymce-assets/plugins/emoticons/plugin.min.js +5 -1
- package/tinymce-assets/plugins/fullscreen/plugin.js +1049 -1409
- package/tinymce-assets/plugins/fullscreen/plugin.min.js +5 -1
- package/tinymce-assets/plugins/help/js/i18n/keynav/ar.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/bg_BG.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/ca.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/cs.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/da.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/de.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/el.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/en.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/es.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/eu.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/fa.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/fi.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/fr_FR.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/he_IL.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/hi.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/hr.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/hu_HU.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/id.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/it.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/ja.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/kk.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/ko_KR.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/ms.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/nb_NO.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/nl.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/pl.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/pt_BR.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/pt_PT.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/ro.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/ru.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/sk.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/sl_SI.js +2 -5
- package/tinymce-assets/plugins/help/js/i18n/keynav/sv_SE.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/th_TH.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/tr.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/uk.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/vi.js +1 -4
- package/tinymce-assets/plugins/help/js/i18n/keynav/zh_CN.js +5 -8
- package/tinymce-assets/plugins/help/js/i18n/keynav/zh_TW.js +1 -4
- package/tinymce-assets/plugins/help/plugin.js +809 -739
- package/tinymce-assets/plugins/help/plugin.min.js +5 -1
- package/tinymce-assets/plugins/image/plugin.js +1291 -1475
- package/tinymce-assets/plugins/image/plugin.min.js +5 -1
- package/tinymce-assets/plugins/importcss/plugin.js +269 -328
- package/tinymce-assets/plugins/importcss/plugin.min.js +5 -1
- package/tinymce-assets/plugins/insertdatetime/plugin.js +141 -140
- package/tinymce-assets/plugins/insertdatetime/plugin.min.js +5 -1
- package/tinymce-assets/plugins/link/plugin.js +1084 -1419
- package/tinymce-assets/plugins/link/plugin.min.js +5 -1
- package/tinymce-assets/plugins/lists/plugin.js +1805 -2177
- package/tinymce-assets/plugins/lists/plugin.min.js +5 -1
- package/tinymce-assets/plugins/media/plugin.js +1047 -1305
- package/tinymce-assets/plugins/media/plugin.min.js +5 -1
- package/tinymce-assets/plugins/nonbreaking/plugin.js +88 -93
- package/tinymce-assets/plugins/nonbreaking/plugin.min.js +4 -0
- package/tinymce-assets/plugins/pagebreak/plugin.js +85 -91
- package/tinymce-assets/plugins/pagebreak/plugin.min.js +4 -0
- package/tinymce-assets/plugins/preview/plugin.js +74 -742
- package/tinymce-assets/plugins/preview/plugin.min.js +5 -1
- package/tinymce-assets/plugins/quickbars/plugin.js +375 -582
- package/tinymce-assets/plugins/quickbars/plugin.min.js +5 -1
- package/tinymce-assets/plugins/save/plugin.js +82 -100
- package/tinymce-assets/plugins/save/plugin.min.js +5 -1
- package/tinymce-assets/plugins/searchreplace/plugin.js +906 -1183
- package/tinymce-assets/plugins/searchreplace/plugin.min.js +5 -1
- package/tinymce-assets/plugins/table/plugin.js +3094 -3651
- package/tinymce-assets/plugins/table/plugin.min.js +5 -1
- package/tinymce-assets/plugins/template/index.js +7 -0
- package/tinymce-assets/plugins/template/plugin.js +567 -0
- package/tinymce-assets/plugins/template/plugin.min.js +5 -0
- package/tinymce-assets/plugins/visualblocks/plugin.js +63 -71
- package/tinymce-assets/plugins/visualblocks/plugin.min.js +5 -1
- package/tinymce-assets/plugins/visualchars/plugin.js +436 -685
- package/tinymce-assets/plugins/visualchars/plugin.min.js +5 -1
- package/tinymce-assets/plugins/wordcount/plugin.js +307 -382
- package/tinymce-assets/plugins/wordcount/plugin.min.js +5 -1
- package/tinymce-assets/skins/content/dark/content.css +4 -0
- package/tinymce-assets/skins/content/dark/content.js +6 -1
- package/tinymce-assets/skins/content/dark/content.min.css +4 -0
- package/tinymce-assets/skins/content/default/content.css +4 -0
- package/tinymce-assets/skins/content/default/content.js +6 -1
- package/tinymce-assets/skins/content/default/content.min.css +4 -0
- package/tinymce-assets/skins/content/document/content.css +4 -0
- package/tinymce-assets/skins/content/document/content.js +6 -1
- package/tinymce-assets/skins/content/document/content.min.css +4 -0
- package/tinymce-assets/skins/content/tinymce-5/content.css +4 -0
- package/tinymce-assets/skins/content/tinymce-5/content.js +6 -1
- package/tinymce-assets/skins/content/tinymce-5/content.min.css +4 -0
- package/tinymce-assets/skins/content/tinymce-5-dark/content.css +4 -0
- package/tinymce-assets/skins/content/tinymce-5-dark/content.js +6 -1
- package/tinymce-assets/skins/content/tinymce-5-dark/content.min.css +4 -0
- package/tinymce-assets/skins/content/writer/content.css +4 -0
- package/tinymce-assets/skins/content/writer/content.js +6 -1
- package/tinymce-assets/skins/content/writer/content.min.css +4 -0
- package/tinymce-assets/skins/ui/oxide/content.css +53 -148
- package/tinymce-assets/skins/ui/oxide/content.inline.css +53 -148
- package/tinymce-assets/skins/ui/oxide/content.inline.js +6 -1
- package/tinymce-assets/skins/ui/oxide/content.inline.min.css +5 -1
- package/tinymce-assets/skins/ui/oxide/content.js +6 -1
- package/tinymce-assets/skins/ui/oxide/content.min.css +5 -1
- package/tinymce-assets/skins/ui/oxide/skin.css +207 -1585
- package/tinymce-assets/skins/ui/oxide/skin.js +2 -1
- package/tinymce-assets/skins/ui/oxide/skin.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide/skin.shadowdom.js +2 -1
- package/tinymce-assets/skins/ui/oxide-dark/content.css +46 -148
- package/tinymce-assets/skins/ui/oxide-dark/content.inline.css +53 -148
- package/tinymce-assets/skins/ui/oxide-dark/content.inline.js +6 -1
- package/tinymce-assets/skins/ui/oxide-dark/content.inline.min.css +5 -1
- package/tinymce-assets/skins/ui/oxide-dark/content.js +6 -1
- package/tinymce-assets/skins/ui/oxide-dark/content.min.css +5 -1
- package/tinymce-assets/skins/ui/oxide-dark/skin.css +219 -1597
- package/tinymce-assets/skins/ui/oxide-dark/skin.js +2 -1
- package/tinymce-assets/skins/ui/oxide-dark/skin.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide-dark/skin.shadowdom.js +2 -1
- package/tinymce-assets/skins/ui/tinymce-5/content.css +53 -148
- package/tinymce-assets/skins/ui/tinymce-5/content.inline.css +53 -148
- package/tinymce-assets/skins/ui/tinymce-5/content.inline.js +6 -1
- package/tinymce-assets/skins/ui/tinymce-5/content.inline.min.css +5 -1
- package/tinymce-assets/skins/ui/tinymce-5/content.js +6 -1
- package/tinymce-assets/skins/ui/tinymce-5/content.min.css +5 -1
- package/tinymce-assets/skins/ui/tinymce-5/skin.css +194 -1597
- package/tinymce-assets/skins/ui/tinymce-5/skin.js +2 -1
- package/tinymce-assets/skins/ui/tinymce-5/skin.min.css +1 -1
- package/tinymce-assets/skins/ui/tinymce-5/skin.shadowdom.js +2 -1
- package/tinymce-assets/skins/ui/tinymce-5-dark/content.css +46 -148
- package/tinymce-assets/skins/ui/tinymce-5-dark/content.inline.css +53 -148
- package/tinymce-assets/skins/ui/tinymce-5-dark/content.inline.js +6 -1
- package/tinymce-assets/skins/ui/tinymce-5-dark/content.inline.min.css +5 -1
- package/tinymce-assets/skins/ui/tinymce-5-dark/content.js +6 -1
- package/tinymce-assets/skins/ui/tinymce-5-dark/content.min.css +5 -1
- package/tinymce-assets/skins/ui/tinymce-5-dark/skin.css +202 -1605
- package/tinymce-assets/skins/ui/tinymce-5-dark/skin.js +2 -1
- package/tinymce-assets/skins/ui/tinymce-5-dark/skin.min.css +1 -1
- package/tinymce-assets/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -1
- package/tinymce-assets/themes/silver/theme.js +28439 -32466
- package/tinymce-assets/themes/silver/theme.min.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* TinyMCE version
|
|
2
|
+
* TinyMCE version 6.8.6 (TBD)
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
(function () {
|
|
@@ -8,425 +8,194 @@
|
|
|
8
8
|
var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
9
9
|
|
|
10
10
|
const fireInsertCustomChar = (editor, chr) => {
|
|
11
|
-
|
|
11
|
+
return editor.dispatch('insertCustomChar', { chr });
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
const insertChar = (editor, chr) => {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const evtChr = fireInsertCustomChar(editor, chr).chr;
|
|
16
|
+
editor.execCommand('mceInsertContent', false, evtChr);
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
/* eslint-disable @typescript-eslint/no-wrapper-object-types */
|
|
20
19
|
const hasProto = (v, constructor, predicate) => {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
|
|
28
|
-
}
|
|
20
|
+
var _a;
|
|
21
|
+
if (predicate(v, constructor.prototype)) {
|
|
22
|
+
return true;
|
|
23
|
+
} else {
|
|
24
|
+
return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
|
|
25
|
+
}
|
|
29
26
|
};
|
|
30
|
-
const typeOf =
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
else {
|
|
42
|
-
return t;
|
|
43
|
-
}
|
|
27
|
+
const typeOf = x => {
|
|
28
|
+
const t = typeof x;
|
|
29
|
+
if (x === null) {
|
|
30
|
+
return 'null';
|
|
31
|
+
} else if (t === 'object' && Array.isArray(x)) {
|
|
32
|
+
return 'array';
|
|
33
|
+
} else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
|
|
34
|
+
return 'string';
|
|
35
|
+
} else {
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
44
38
|
};
|
|
45
|
-
const isType =
|
|
46
|
-
const isSimpleType =
|
|
47
|
-
const eq =
|
|
39
|
+
const isType = type => value => typeOf(value) === type;
|
|
40
|
+
const isSimpleType = type => value => typeof value === type;
|
|
41
|
+
const eq = t => a => t === a;
|
|
48
42
|
const isArray$1 = isType('array');
|
|
49
43
|
const isNull = eq(null);
|
|
50
44
|
const isUndefined = eq(undefined);
|
|
51
|
-
const isNullable =
|
|
52
|
-
const isNonNullable =
|
|
45
|
+
const isNullable = a => a === null || a === undefined;
|
|
46
|
+
const isNonNullable = a => !isNullable(a);
|
|
53
47
|
const isFunction = isSimpleType('function');
|
|
54
48
|
|
|
55
|
-
const constant =
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
49
|
+
const constant = value => {
|
|
50
|
+
return () => {
|
|
51
|
+
return value;
|
|
52
|
+
};
|
|
59
53
|
};
|
|
60
54
|
const never = constant(false);
|
|
61
55
|
|
|
62
|
-
/**
|
|
63
|
-
* The `Optional` type represents a value (of any type) that potentially does
|
|
64
|
-
* not exist. Any `Optional<T>` can either be a `Some<T>` (in which case the
|
|
65
|
-
* value does exist) or a `None` (in which case the value does not exist). This
|
|
66
|
-
* module defines a whole lot of FP-inspired utility functions for dealing with
|
|
67
|
-
* `Optional` objects.
|
|
68
|
-
*
|
|
69
|
-
* Comparison with null or undefined:
|
|
70
|
-
* - We don't get fancy null coalescing operators with `Optional`
|
|
71
|
-
* - We do get fancy helper functions with `Optional`
|
|
72
|
-
* - `Optional` support nesting, and allow for the type to still be nullable (or
|
|
73
|
-
* another `Optional`)
|
|
74
|
-
* - There is no option to turn off strict-optional-checks like there is for
|
|
75
|
-
* strict-null-checks
|
|
76
|
-
*/
|
|
77
56
|
class Optional {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
* any type because we don't actually have a `T`.
|
|
94
|
-
*/
|
|
95
|
-
static none() {
|
|
96
|
-
return Optional.singletonNone;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Perform a transform on an `Optional` type. Regardless of whether this
|
|
100
|
-
* `Optional` contains a value or not, `fold` will return a value of type `U`.
|
|
101
|
-
* If this `Optional` does not contain a value, the `U` will be created by
|
|
102
|
-
* calling `onNone`. If this `Optional` does contain a value, the `U` will be
|
|
103
|
-
* created by calling `onSome`.
|
|
104
|
-
*
|
|
105
|
-
* For the FP enthusiasts in the room, this function:
|
|
106
|
-
* 1. Could be used to implement all of the functions below
|
|
107
|
-
* 2. Forms a catamorphism
|
|
108
|
-
*/
|
|
109
|
-
fold(onNone, onSome) {
|
|
110
|
-
if (this.tag) {
|
|
111
|
-
return onSome(this.value);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return onNone();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Determine if this `Optional` object contains a value.
|
|
119
|
-
*/
|
|
120
|
-
isSome() {
|
|
121
|
-
return this.tag;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* Determine if this `Optional` object **does not** contain a value.
|
|
125
|
-
*/
|
|
126
|
-
isNone() {
|
|
127
|
-
return !this.tag;
|
|
128
|
-
}
|
|
129
|
-
// --- Functor (name stolen from Haskell / maths) ---
|
|
130
|
-
/**
|
|
131
|
-
* Perform a transform on an `Optional` object, **if** there is a value. If
|
|
132
|
-
* you provide a function to turn a T into a U, this is the function you use
|
|
133
|
-
* to turn an `Optional<T>` into an `Optional<U>`. If this **does** contain
|
|
134
|
-
* a value then the output will also contain a value (that value being the
|
|
135
|
-
* output of `mapper(this.value)`), and if this **does not** contain a value
|
|
136
|
-
* then neither will the output.
|
|
137
|
-
*/
|
|
138
|
-
map(mapper) {
|
|
139
|
-
if (this.tag) {
|
|
140
|
-
return Optional.some(mapper(this.value));
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
return Optional.none();
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
// --- Monad (name stolen from Haskell / maths) ---
|
|
147
|
-
/**
|
|
148
|
-
* Perform a transform on an `Optional` object, **if** there is a value.
|
|
149
|
-
* Unlike `map`, here the transform itself also returns an `Optional`.
|
|
150
|
-
*/
|
|
151
|
-
bind(binder) {
|
|
152
|
-
if (this.tag) {
|
|
153
|
-
return binder(this.value);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
return Optional.none();
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
// --- Traversable (name stolen from Haskell / maths) ---
|
|
160
|
-
/**
|
|
161
|
-
* For a given predicate, this function finds out if there **exists** a value
|
|
162
|
-
* inside this `Optional` object that meets the predicate. In practice, this
|
|
163
|
-
* means that for `Optional`s that do not contain a value it returns false (as
|
|
164
|
-
* no predicate-meeting value exists).
|
|
165
|
-
*/
|
|
166
|
-
exists(predicate) {
|
|
167
|
-
return this.tag && predicate(this.value);
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* For a given predicate, this function finds out if **all** the values inside
|
|
171
|
-
* this `Optional` object meet the predicate. In practice, this means that
|
|
172
|
-
* for `Optional`s that do not contain a value it returns true (as all 0
|
|
173
|
-
* objects do meet the predicate).
|
|
174
|
-
*/
|
|
175
|
-
forall(predicate) {
|
|
176
|
-
return !this.tag || predicate(this.value);
|
|
177
|
-
}
|
|
178
|
-
filter(predicate) {
|
|
179
|
-
if (!this.tag || predicate(this.value)) {
|
|
180
|
-
return this;
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return Optional.none();
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
// --- Getters ---
|
|
187
|
-
/**
|
|
188
|
-
* Get the value out of the inside of the `Optional` object, using a default
|
|
189
|
-
* `replacement` value if the provided `Optional` object does not contain a
|
|
190
|
-
* value.
|
|
191
|
-
*/
|
|
192
|
-
getOr(replacement) {
|
|
193
|
-
return this.tag ? this.value : replacement;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Get the value out of the inside of the `Optional` object, using a default
|
|
197
|
-
* `replacement` value if the provided `Optional` object does not contain a
|
|
198
|
-
* value. Unlike `getOr`, in this method the `replacement` object is also
|
|
199
|
-
* `Optional` - meaning that this method will always return an `Optional`.
|
|
200
|
-
*/
|
|
201
|
-
or(replacement) {
|
|
202
|
-
return this.tag ? this : replacement;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Get the value out of the inside of the `Optional` object, using a default
|
|
206
|
-
* `replacement` value if the provided `Optional` object does not contain a
|
|
207
|
-
* value. Unlike `getOr`, in this method the `replacement` value is
|
|
208
|
-
* "thunked" - that is to say that you don't pass a value to `getOrThunk`, you
|
|
209
|
-
* pass a function which (if called) will **return** the `value` you want to
|
|
210
|
-
* use.
|
|
211
|
-
*/
|
|
212
|
-
getOrThunk(thunk) {
|
|
213
|
-
return this.tag ? this.value : thunk();
|
|
214
|
-
}
|
|
215
|
-
/**
|
|
216
|
-
* Get the value out of the inside of the `Optional` object, using a default
|
|
217
|
-
* `replacement` value if the provided Optional object does not contain a
|
|
218
|
-
* value.
|
|
219
|
-
*
|
|
220
|
-
* Unlike `or`, in this method the `replacement` value is "thunked" - that is
|
|
221
|
-
* to say that you don't pass a value to `orThunk`, you pass a function which
|
|
222
|
-
* (if called) will **return** the `value` you want to use.
|
|
223
|
-
*
|
|
224
|
-
* Unlike `getOrThunk`, in this method the `replacement` value is also
|
|
225
|
-
* `Optional`, meaning that this method will always return an `Optional`.
|
|
226
|
-
*/
|
|
227
|
-
orThunk(thunk) {
|
|
228
|
-
return this.tag ? this : thunk();
|
|
229
|
-
}
|
|
230
|
-
/**
|
|
231
|
-
* Get the value out of the inside of the `Optional` object, throwing an
|
|
232
|
-
* exception if the provided `Optional` object does not contain a value.
|
|
233
|
-
*
|
|
234
|
-
* WARNING:
|
|
235
|
-
* You should only be using this function if you know that the `Optional`
|
|
236
|
-
* object **is not** empty (otherwise you're throwing exceptions in production
|
|
237
|
-
* code, which is bad).
|
|
238
|
-
*
|
|
239
|
-
* In tests this is more acceptable.
|
|
240
|
-
*
|
|
241
|
-
* Prefer other methods to this, such as `.each`.
|
|
242
|
-
*/
|
|
243
|
-
getOrDie(message) {
|
|
244
|
-
if (!this.tag) {
|
|
245
|
-
throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
return this.value;
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
// --- Interop with null and undefined ---
|
|
252
|
-
/**
|
|
253
|
-
* Creates an `Optional` value from a nullable (or undefined-able) input.
|
|
254
|
-
* Null, or undefined, is converted to `None`, and anything else is converted
|
|
255
|
-
* to `Some`.
|
|
256
|
-
*/
|
|
257
|
-
static from(value) {
|
|
258
|
-
return isNonNullable(value) ? Optional.some(value) : Optional.none();
|
|
57
|
+
constructor(tag, value) {
|
|
58
|
+
this.tag = tag;
|
|
59
|
+
this.value = value;
|
|
60
|
+
}
|
|
61
|
+
static some(value) {
|
|
62
|
+
return new Optional(true, value);
|
|
63
|
+
}
|
|
64
|
+
static none() {
|
|
65
|
+
return Optional.singletonNone;
|
|
66
|
+
}
|
|
67
|
+
fold(onNone, onSome) {
|
|
68
|
+
if (this.tag) {
|
|
69
|
+
return onSome(this.value);
|
|
70
|
+
} else {
|
|
71
|
+
return onNone();
|
|
259
72
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
73
|
+
}
|
|
74
|
+
isSome() {
|
|
75
|
+
return this.tag;
|
|
76
|
+
}
|
|
77
|
+
isNone() {
|
|
78
|
+
return !this.tag;
|
|
79
|
+
}
|
|
80
|
+
map(mapper) {
|
|
81
|
+
if (this.tag) {
|
|
82
|
+
return Optional.some(mapper(this.value));
|
|
83
|
+
} else {
|
|
84
|
+
return Optional.none();
|
|
266
85
|
}
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
86
|
+
}
|
|
87
|
+
bind(binder) {
|
|
88
|
+
if (this.tag) {
|
|
89
|
+
return binder(this.value);
|
|
90
|
+
} else {
|
|
91
|
+
return Optional.none();
|
|
273
92
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
each(worker) {
|
|
287
|
-
if (this.tag) {
|
|
288
|
-
worker(this.value);
|
|
289
|
-
}
|
|
93
|
+
}
|
|
94
|
+
exists(predicate) {
|
|
95
|
+
return this.tag && predicate(this.value);
|
|
96
|
+
}
|
|
97
|
+
forall(predicate) {
|
|
98
|
+
return !this.tag || predicate(this.value);
|
|
99
|
+
}
|
|
100
|
+
filter(predicate) {
|
|
101
|
+
if (!this.tag || predicate(this.value)) {
|
|
102
|
+
return this;
|
|
103
|
+
} else {
|
|
104
|
+
return Optional.none();
|
|
290
105
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
106
|
+
}
|
|
107
|
+
getOr(replacement) {
|
|
108
|
+
return this.tag ? this.value : replacement;
|
|
109
|
+
}
|
|
110
|
+
or(replacement) {
|
|
111
|
+
return this.tag ? this : replacement;
|
|
112
|
+
}
|
|
113
|
+
getOrThunk(thunk) {
|
|
114
|
+
return this.tag ? this.value : thunk();
|
|
115
|
+
}
|
|
116
|
+
orThunk(thunk) {
|
|
117
|
+
return this.tag ? this : thunk();
|
|
118
|
+
}
|
|
119
|
+
getOrDie(message) {
|
|
120
|
+
if (!this.tag) {
|
|
121
|
+
throw new Error(message !== null && message !== void 0 ? message : 'Called getOrDie on None');
|
|
122
|
+
} else {
|
|
123
|
+
return this.value;
|
|
298
124
|
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
125
|
+
}
|
|
126
|
+
static from(value) {
|
|
127
|
+
return isNonNullable(value) ? Optional.some(value) : Optional.none();
|
|
128
|
+
}
|
|
129
|
+
getOrNull() {
|
|
130
|
+
return this.tag ? this.value : null;
|
|
131
|
+
}
|
|
132
|
+
getOrUndefined() {
|
|
133
|
+
return this.value;
|
|
134
|
+
}
|
|
135
|
+
each(worker) {
|
|
136
|
+
if (this.tag) {
|
|
137
|
+
worker(this.value);
|
|
307
138
|
}
|
|
139
|
+
}
|
|
140
|
+
toArray() {
|
|
141
|
+
return this.tag ? [this.value] : [];
|
|
142
|
+
}
|
|
143
|
+
toString() {
|
|
144
|
+
return this.tag ? `some(${ this.value })` : 'none()';
|
|
145
|
+
}
|
|
308
146
|
}
|
|
309
|
-
// Sneaky optimisation: every instance of Optional.none is identical, so just
|
|
310
|
-
// reuse the same object
|
|
311
147
|
Optional.singletonNone = new Optional(false);
|
|
312
148
|
|
|
313
|
-
/* eslint-disable @typescript-eslint/unbound-method */
|
|
314
|
-
const nativeSlice = Array.prototype.slice;
|
|
315
149
|
const nativePush = Array.prototype.push;
|
|
316
150
|
const map = (xs, f) => {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}
|
|
325
|
-
return r;
|
|
151
|
+
const len = xs.length;
|
|
152
|
+
const r = new Array(len);
|
|
153
|
+
for (let i = 0; i < len; i++) {
|
|
154
|
+
const x = xs[i];
|
|
155
|
+
r[i] = f(x, i);
|
|
156
|
+
}
|
|
157
|
+
return r;
|
|
326
158
|
};
|
|
327
|
-
// Unwound implementing other functions in terms of each.
|
|
328
|
-
// The code size is roughly the same, and it should allow for better optimisation.
|
|
329
|
-
// const each = function<T, U>(xs: T[], f: (x: T, i?: number, xs?: T[]) => void): void {
|
|
330
159
|
const each = (xs, f) => {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
160
|
+
for (let i = 0, len = xs.length; i < len; i++) {
|
|
161
|
+
const x = xs[i];
|
|
162
|
+
f(x, i);
|
|
163
|
+
}
|
|
335
164
|
};
|
|
336
165
|
const findUntil = (xs, pred, until) => {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
break;
|
|
344
|
-
}
|
|
166
|
+
for (let i = 0, len = xs.length; i < len; i++) {
|
|
167
|
+
const x = xs[i];
|
|
168
|
+
if (pred(x, i)) {
|
|
169
|
+
return Optional.some(x);
|
|
170
|
+
} else if (until(x, i)) {
|
|
171
|
+
break;
|
|
345
172
|
}
|
|
346
|
-
|
|
173
|
+
}
|
|
174
|
+
return Optional.none();
|
|
347
175
|
};
|
|
348
176
|
const find = (xs, pred) => {
|
|
349
|
-
|
|
177
|
+
return findUntil(xs, pred, never);
|
|
350
178
|
};
|
|
351
|
-
const flatten =
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
const r = [];
|
|
357
|
-
for (let i = 0, len = xs.length; i < len; ++i) {
|
|
358
|
-
// Ensure that each value is an array itself
|
|
359
|
-
if (!isArray$1(xs[i])) {
|
|
360
|
-
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
|
361
|
-
}
|
|
362
|
-
nativePush.apply(r, xs[i]);
|
|
179
|
+
const flatten = xs => {
|
|
180
|
+
const r = [];
|
|
181
|
+
for (let i = 0, len = xs.length; i < len; ++i) {
|
|
182
|
+
if (!isArray$1(xs[i])) {
|
|
183
|
+
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
|
363
184
|
}
|
|
364
|
-
|
|
185
|
+
nativePush.apply(r, xs[i]);
|
|
186
|
+
}
|
|
187
|
+
return r;
|
|
365
188
|
};
|
|
366
189
|
const bind = (xs, f) => flatten(map(xs, f));
|
|
367
|
-
isFunction(Array.from) ? Array.from : (x) => nativeSlice.call(x);
|
|
368
|
-
|
|
369
|
-
const Cell = (initial) => {
|
|
370
|
-
let value = initial;
|
|
371
|
-
const get = () => {
|
|
372
|
-
return value;
|
|
373
|
-
};
|
|
374
|
-
const set = (v) => {
|
|
375
|
-
value = v;
|
|
376
|
-
};
|
|
377
|
-
return {
|
|
378
|
-
get,
|
|
379
|
-
set
|
|
380
|
-
};
|
|
381
|
-
};
|
|
382
|
-
|
|
383
|
-
const contains = (str, substr, start = 0, end) => {
|
|
384
|
-
const idx = str.indexOf(substr, start);
|
|
385
|
-
if (idx !== -1) {
|
|
386
|
-
return isUndefined(end) ? true : idx + substr.length <= end;
|
|
387
|
-
}
|
|
388
|
-
else {
|
|
389
|
-
return false;
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
const fromCodePoint = String.fromCodePoint;
|
|
393
|
-
|
|
394
|
-
// Run a function fn after rate ms. If another invocation occurs
|
|
395
|
-
// during the time it is waiting, reschedule the function again
|
|
396
|
-
// with the new arguments.
|
|
397
|
-
const last = (fn, rate) => {
|
|
398
|
-
let timer = null;
|
|
399
|
-
const cancel = () => {
|
|
400
|
-
if (!isNull(timer)) {
|
|
401
|
-
clearTimeout(timer);
|
|
402
|
-
timer = null;
|
|
403
|
-
}
|
|
404
|
-
};
|
|
405
|
-
const throttle = (...args) => {
|
|
406
|
-
cancel();
|
|
407
|
-
timer = setTimeout(() => {
|
|
408
|
-
timer = null;
|
|
409
|
-
fn.apply(null, args);
|
|
410
|
-
}, rate);
|
|
411
|
-
};
|
|
412
|
-
return {
|
|
413
|
-
cancel,
|
|
414
|
-
throttle
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
190
|
|
|
418
191
|
var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
419
192
|
|
|
420
|
-
const option =
|
|
421
|
-
const register$2 =
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
});
|
|
427
|
-
registerOption('charmap_append', {
|
|
428
|
-
processor: charMapProcessor
|
|
429
|
-
});
|
|
193
|
+
const option = name => editor => editor.options.get(name);
|
|
194
|
+
const register$2 = editor => {
|
|
195
|
+
const registerOption = editor.options.register;
|
|
196
|
+
const charMapProcessor = value => isFunction(value) || isArray$1(value);
|
|
197
|
+
registerOption('charmap', { processor: charMapProcessor });
|
|
198
|
+
registerOption('charmap_append', { processor: charMapProcessor });
|
|
430
199
|
};
|
|
431
200
|
const getCharMap$1 = option('charmap');
|
|
432
201
|
const getCharMapAppend = option('charmap_append');
|
|
@@ -434,564 +203,1456 @@
|
|
|
434
203
|
const isArray = global.isArray;
|
|
435
204
|
const UserDefined = 'User Defined';
|
|
436
205
|
const getDefaultCharMap = () => {
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
206
|
+
return [
|
|
207
|
+
{
|
|
208
|
+
name: 'Currency',
|
|
209
|
+
characters: [
|
|
210
|
+
[
|
|
211
|
+
36,
|
|
212
|
+
'dollar sign'
|
|
213
|
+
],
|
|
214
|
+
[
|
|
215
|
+
162,
|
|
216
|
+
'cent sign'
|
|
217
|
+
],
|
|
218
|
+
[
|
|
219
|
+
8364,
|
|
220
|
+
'euro sign'
|
|
221
|
+
],
|
|
222
|
+
[
|
|
223
|
+
163,
|
|
224
|
+
'pound sign'
|
|
225
|
+
],
|
|
226
|
+
[
|
|
227
|
+
165,
|
|
228
|
+
'yen sign'
|
|
229
|
+
],
|
|
230
|
+
[
|
|
231
|
+
164,
|
|
232
|
+
'currency sign'
|
|
233
|
+
],
|
|
234
|
+
[
|
|
235
|
+
8352,
|
|
236
|
+
'euro-currency sign'
|
|
237
|
+
],
|
|
238
|
+
[
|
|
239
|
+
8353,
|
|
240
|
+
'colon sign'
|
|
241
|
+
],
|
|
242
|
+
[
|
|
243
|
+
8354,
|
|
244
|
+
'cruzeiro sign'
|
|
245
|
+
],
|
|
246
|
+
[
|
|
247
|
+
8355,
|
|
248
|
+
'french franc sign'
|
|
249
|
+
],
|
|
250
|
+
[
|
|
251
|
+
8356,
|
|
252
|
+
'lira sign'
|
|
253
|
+
],
|
|
254
|
+
[
|
|
255
|
+
8357,
|
|
256
|
+
'mill sign'
|
|
257
|
+
],
|
|
258
|
+
[
|
|
259
|
+
8358,
|
|
260
|
+
'naira sign'
|
|
261
|
+
],
|
|
262
|
+
[
|
|
263
|
+
8359,
|
|
264
|
+
'peseta sign'
|
|
265
|
+
],
|
|
266
|
+
[
|
|
267
|
+
8360,
|
|
268
|
+
'rupee sign'
|
|
269
|
+
],
|
|
270
|
+
[
|
|
271
|
+
8361,
|
|
272
|
+
'won sign'
|
|
273
|
+
],
|
|
274
|
+
[
|
|
275
|
+
8362,
|
|
276
|
+
'new sheqel sign'
|
|
277
|
+
],
|
|
278
|
+
[
|
|
279
|
+
8363,
|
|
280
|
+
'dong sign'
|
|
281
|
+
],
|
|
282
|
+
[
|
|
283
|
+
8365,
|
|
284
|
+
'kip sign'
|
|
285
|
+
],
|
|
286
|
+
[
|
|
287
|
+
8366,
|
|
288
|
+
'tugrik sign'
|
|
289
|
+
],
|
|
290
|
+
[
|
|
291
|
+
8367,
|
|
292
|
+
'drachma sign'
|
|
293
|
+
],
|
|
294
|
+
[
|
|
295
|
+
8368,
|
|
296
|
+
'german penny symbol'
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
8369,
|
|
300
|
+
'peso sign'
|
|
301
|
+
],
|
|
302
|
+
[
|
|
303
|
+
8370,
|
|
304
|
+
'guarani sign'
|
|
305
|
+
],
|
|
306
|
+
[
|
|
307
|
+
8371,
|
|
308
|
+
'austral sign'
|
|
309
|
+
],
|
|
310
|
+
[
|
|
311
|
+
8372,
|
|
312
|
+
'hryvnia sign'
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
8373,
|
|
316
|
+
'cedi sign'
|
|
317
|
+
],
|
|
318
|
+
[
|
|
319
|
+
8374,
|
|
320
|
+
'livre tournois sign'
|
|
321
|
+
],
|
|
322
|
+
[
|
|
323
|
+
8375,
|
|
324
|
+
'spesmilo sign'
|
|
325
|
+
],
|
|
326
|
+
[
|
|
327
|
+
8376,
|
|
328
|
+
'tenge sign'
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
8377,
|
|
332
|
+
'indian rupee sign'
|
|
333
|
+
],
|
|
334
|
+
[
|
|
335
|
+
8378,
|
|
336
|
+
'turkish lira sign'
|
|
337
|
+
],
|
|
338
|
+
[
|
|
339
|
+
8379,
|
|
340
|
+
'nordic mark sign'
|
|
341
|
+
],
|
|
342
|
+
[
|
|
343
|
+
8380,
|
|
344
|
+
'manat sign'
|
|
345
|
+
],
|
|
346
|
+
[
|
|
347
|
+
8381,
|
|
348
|
+
'ruble sign'
|
|
349
|
+
],
|
|
350
|
+
[
|
|
351
|
+
20870,
|
|
352
|
+
'yen character'
|
|
353
|
+
],
|
|
354
|
+
[
|
|
355
|
+
20803,
|
|
356
|
+
'yuan character'
|
|
357
|
+
],
|
|
358
|
+
[
|
|
359
|
+
22291,
|
|
360
|
+
'yuan character, in hong kong and taiwan'
|
|
361
|
+
],
|
|
362
|
+
[
|
|
363
|
+
22278,
|
|
364
|
+
'yen/yuan character variant one'
|
|
365
|
+
]
|
|
366
|
+
]
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
name: 'Text',
|
|
370
|
+
characters: [
|
|
371
|
+
[
|
|
372
|
+
169,
|
|
373
|
+
'copyright sign'
|
|
374
|
+
],
|
|
375
|
+
[
|
|
376
|
+
174,
|
|
377
|
+
'registered sign'
|
|
378
|
+
],
|
|
379
|
+
[
|
|
380
|
+
8482,
|
|
381
|
+
'trade mark sign'
|
|
382
|
+
],
|
|
383
|
+
[
|
|
384
|
+
8240,
|
|
385
|
+
'per mille sign'
|
|
386
|
+
],
|
|
387
|
+
[
|
|
388
|
+
181,
|
|
389
|
+
'micro sign'
|
|
390
|
+
],
|
|
391
|
+
[
|
|
392
|
+
183,
|
|
393
|
+
'middle dot'
|
|
394
|
+
],
|
|
395
|
+
[
|
|
396
|
+
8226,
|
|
397
|
+
'bullet'
|
|
398
|
+
],
|
|
399
|
+
[
|
|
400
|
+
8230,
|
|
401
|
+
'three dot leader'
|
|
402
|
+
],
|
|
403
|
+
[
|
|
404
|
+
8242,
|
|
405
|
+
'minutes / feet'
|
|
406
|
+
],
|
|
407
|
+
[
|
|
408
|
+
8243,
|
|
409
|
+
'seconds / inches'
|
|
410
|
+
],
|
|
411
|
+
[
|
|
412
|
+
167,
|
|
413
|
+
'section sign'
|
|
414
|
+
],
|
|
415
|
+
[
|
|
416
|
+
182,
|
|
417
|
+
'paragraph sign'
|
|
418
|
+
],
|
|
419
|
+
[
|
|
420
|
+
223,
|
|
421
|
+
'sharp s / ess-zed'
|
|
422
|
+
]
|
|
423
|
+
]
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
name: 'Quotations',
|
|
427
|
+
characters: [
|
|
428
|
+
[
|
|
429
|
+
8249,
|
|
430
|
+
'single left-pointing angle quotation mark'
|
|
431
|
+
],
|
|
432
|
+
[
|
|
433
|
+
8250,
|
|
434
|
+
'single right-pointing angle quotation mark'
|
|
435
|
+
],
|
|
436
|
+
[
|
|
437
|
+
171,
|
|
438
|
+
'left pointing guillemet'
|
|
439
|
+
],
|
|
440
|
+
[
|
|
441
|
+
187,
|
|
442
|
+
'right pointing guillemet'
|
|
443
|
+
],
|
|
444
|
+
[
|
|
445
|
+
8216,
|
|
446
|
+
'left single quotation mark'
|
|
447
|
+
],
|
|
448
|
+
[
|
|
449
|
+
8217,
|
|
450
|
+
'right single quotation mark'
|
|
451
|
+
],
|
|
452
|
+
[
|
|
453
|
+
8220,
|
|
454
|
+
'left double quotation mark'
|
|
455
|
+
],
|
|
456
|
+
[
|
|
457
|
+
8221,
|
|
458
|
+
'right double quotation mark'
|
|
459
|
+
],
|
|
460
|
+
[
|
|
461
|
+
8218,
|
|
462
|
+
'single low-9 quotation mark'
|
|
463
|
+
],
|
|
464
|
+
[
|
|
465
|
+
8222,
|
|
466
|
+
'double low-9 quotation mark'
|
|
467
|
+
],
|
|
468
|
+
[
|
|
469
|
+
60,
|
|
470
|
+
'less-than sign'
|
|
471
|
+
],
|
|
472
|
+
[
|
|
473
|
+
62,
|
|
474
|
+
'greater-than sign'
|
|
475
|
+
],
|
|
476
|
+
[
|
|
477
|
+
8804,
|
|
478
|
+
'less-than or equal to'
|
|
479
|
+
],
|
|
480
|
+
[
|
|
481
|
+
8805,
|
|
482
|
+
'greater-than or equal to'
|
|
483
|
+
],
|
|
484
|
+
[
|
|
485
|
+
8211,
|
|
486
|
+
'en dash'
|
|
487
|
+
],
|
|
488
|
+
[
|
|
489
|
+
8212,
|
|
490
|
+
'em dash'
|
|
491
|
+
],
|
|
492
|
+
[
|
|
493
|
+
175,
|
|
494
|
+
'macron'
|
|
495
|
+
],
|
|
496
|
+
[
|
|
497
|
+
8254,
|
|
498
|
+
'overline'
|
|
499
|
+
],
|
|
500
|
+
[
|
|
501
|
+
164,
|
|
502
|
+
'currency sign'
|
|
503
|
+
],
|
|
504
|
+
[
|
|
505
|
+
166,
|
|
506
|
+
'broken bar'
|
|
507
|
+
],
|
|
508
|
+
[
|
|
509
|
+
168,
|
|
510
|
+
'diaeresis'
|
|
511
|
+
],
|
|
512
|
+
[
|
|
513
|
+
161,
|
|
514
|
+
'inverted exclamation mark'
|
|
515
|
+
],
|
|
516
|
+
[
|
|
517
|
+
191,
|
|
518
|
+
'turned question mark'
|
|
519
|
+
],
|
|
520
|
+
[
|
|
521
|
+
710,
|
|
522
|
+
'circumflex accent'
|
|
523
|
+
],
|
|
524
|
+
[
|
|
525
|
+
732,
|
|
526
|
+
'small tilde'
|
|
527
|
+
],
|
|
528
|
+
[
|
|
529
|
+
176,
|
|
530
|
+
'degree sign'
|
|
531
|
+
],
|
|
532
|
+
[
|
|
533
|
+
8722,
|
|
534
|
+
'minus sign'
|
|
535
|
+
],
|
|
536
|
+
[
|
|
537
|
+
177,
|
|
538
|
+
'plus-minus sign'
|
|
539
|
+
],
|
|
540
|
+
[
|
|
541
|
+
247,
|
|
542
|
+
'division sign'
|
|
543
|
+
],
|
|
544
|
+
[
|
|
545
|
+
8260,
|
|
546
|
+
'fraction slash'
|
|
547
|
+
],
|
|
548
|
+
[
|
|
549
|
+
215,
|
|
550
|
+
'multiplication sign'
|
|
551
|
+
],
|
|
552
|
+
[
|
|
553
|
+
185,
|
|
554
|
+
'superscript one'
|
|
555
|
+
],
|
|
556
|
+
[
|
|
557
|
+
178,
|
|
558
|
+
'superscript two'
|
|
559
|
+
],
|
|
560
|
+
[
|
|
561
|
+
179,
|
|
562
|
+
'superscript three'
|
|
563
|
+
],
|
|
564
|
+
[
|
|
565
|
+
188,
|
|
566
|
+
'fraction one quarter'
|
|
567
|
+
],
|
|
568
|
+
[
|
|
569
|
+
189,
|
|
570
|
+
'fraction one half'
|
|
571
|
+
],
|
|
572
|
+
[
|
|
573
|
+
190,
|
|
574
|
+
'fraction three quarters'
|
|
575
|
+
]
|
|
576
|
+
]
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
name: 'Mathematical',
|
|
580
|
+
characters: [
|
|
581
|
+
[
|
|
582
|
+
402,
|
|
583
|
+
'function / florin'
|
|
584
|
+
],
|
|
585
|
+
[
|
|
586
|
+
8747,
|
|
587
|
+
'integral'
|
|
588
|
+
],
|
|
589
|
+
[
|
|
590
|
+
8721,
|
|
591
|
+
'n-ary sumation'
|
|
592
|
+
],
|
|
593
|
+
[
|
|
594
|
+
8734,
|
|
595
|
+
'infinity'
|
|
596
|
+
],
|
|
597
|
+
[
|
|
598
|
+
8730,
|
|
599
|
+
'square root'
|
|
600
|
+
],
|
|
601
|
+
[
|
|
602
|
+
8764,
|
|
603
|
+
'similar to'
|
|
604
|
+
],
|
|
605
|
+
[
|
|
606
|
+
8773,
|
|
607
|
+
'approximately equal to'
|
|
608
|
+
],
|
|
609
|
+
[
|
|
610
|
+
8776,
|
|
611
|
+
'almost equal to'
|
|
612
|
+
],
|
|
613
|
+
[
|
|
614
|
+
8800,
|
|
615
|
+
'not equal to'
|
|
616
|
+
],
|
|
617
|
+
[
|
|
618
|
+
8801,
|
|
619
|
+
'identical to'
|
|
620
|
+
],
|
|
621
|
+
[
|
|
622
|
+
8712,
|
|
623
|
+
'element of'
|
|
624
|
+
],
|
|
625
|
+
[
|
|
626
|
+
8713,
|
|
627
|
+
'not an element of'
|
|
628
|
+
],
|
|
629
|
+
[
|
|
630
|
+
8715,
|
|
631
|
+
'contains as member'
|
|
632
|
+
],
|
|
633
|
+
[
|
|
634
|
+
8719,
|
|
635
|
+
'n-ary product'
|
|
636
|
+
],
|
|
637
|
+
[
|
|
638
|
+
8743,
|
|
639
|
+
'logical and'
|
|
640
|
+
],
|
|
641
|
+
[
|
|
642
|
+
8744,
|
|
643
|
+
'logical or'
|
|
644
|
+
],
|
|
645
|
+
[
|
|
646
|
+
172,
|
|
647
|
+
'not sign'
|
|
648
|
+
],
|
|
649
|
+
[
|
|
650
|
+
8745,
|
|
651
|
+
'intersection'
|
|
652
|
+
],
|
|
653
|
+
[
|
|
654
|
+
8746,
|
|
655
|
+
'union'
|
|
656
|
+
],
|
|
657
|
+
[
|
|
658
|
+
8706,
|
|
659
|
+
'partial differential'
|
|
660
|
+
],
|
|
661
|
+
[
|
|
662
|
+
8704,
|
|
663
|
+
'for all'
|
|
664
|
+
],
|
|
665
|
+
[
|
|
666
|
+
8707,
|
|
667
|
+
'there exists'
|
|
668
|
+
],
|
|
669
|
+
[
|
|
670
|
+
8709,
|
|
671
|
+
'diameter'
|
|
672
|
+
],
|
|
673
|
+
[
|
|
674
|
+
8711,
|
|
675
|
+
'backward difference'
|
|
676
|
+
],
|
|
677
|
+
[
|
|
678
|
+
8727,
|
|
679
|
+
'asterisk operator'
|
|
680
|
+
],
|
|
681
|
+
[
|
|
682
|
+
8733,
|
|
683
|
+
'proportional to'
|
|
684
|
+
],
|
|
685
|
+
[
|
|
686
|
+
8736,
|
|
687
|
+
'angle'
|
|
688
|
+
]
|
|
689
|
+
]
|
|
690
|
+
},
|
|
691
|
+
{
|
|
692
|
+
name: 'Extended Latin',
|
|
693
|
+
characters: [
|
|
694
|
+
[
|
|
695
|
+
192,
|
|
696
|
+
'A - grave'
|
|
697
|
+
],
|
|
698
|
+
[
|
|
699
|
+
193,
|
|
700
|
+
'A - acute'
|
|
701
|
+
],
|
|
702
|
+
[
|
|
703
|
+
194,
|
|
704
|
+
'A - circumflex'
|
|
705
|
+
],
|
|
706
|
+
[
|
|
707
|
+
195,
|
|
708
|
+
'A - tilde'
|
|
709
|
+
],
|
|
710
|
+
[
|
|
711
|
+
196,
|
|
712
|
+
'A - diaeresis'
|
|
713
|
+
],
|
|
714
|
+
[
|
|
715
|
+
197,
|
|
716
|
+
'A - ring above'
|
|
717
|
+
],
|
|
718
|
+
[
|
|
719
|
+
256,
|
|
720
|
+
'A - macron'
|
|
721
|
+
],
|
|
722
|
+
[
|
|
723
|
+
198,
|
|
724
|
+
'ligature AE'
|
|
725
|
+
],
|
|
726
|
+
[
|
|
727
|
+
199,
|
|
728
|
+
'C - cedilla'
|
|
729
|
+
],
|
|
730
|
+
[
|
|
731
|
+
200,
|
|
732
|
+
'E - grave'
|
|
733
|
+
],
|
|
734
|
+
[
|
|
735
|
+
201,
|
|
736
|
+
'E - acute'
|
|
737
|
+
],
|
|
738
|
+
[
|
|
739
|
+
202,
|
|
740
|
+
'E - circumflex'
|
|
741
|
+
],
|
|
742
|
+
[
|
|
743
|
+
203,
|
|
744
|
+
'E - diaeresis'
|
|
745
|
+
],
|
|
746
|
+
[
|
|
747
|
+
274,
|
|
748
|
+
'E - macron'
|
|
749
|
+
],
|
|
750
|
+
[
|
|
751
|
+
204,
|
|
752
|
+
'I - grave'
|
|
753
|
+
],
|
|
754
|
+
[
|
|
755
|
+
205,
|
|
756
|
+
'I - acute'
|
|
757
|
+
],
|
|
758
|
+
[
|
|
759
|
+
206,
|
|
760
|
+
'I - circumflex'
|
|
761
|
+
],
|
|
762
|
+
[
|
|
763
|
+
207,
|
|
764
|
+
'I - diaeresis'
|
|
765
|
+
],
|
|
766
|
+
[
|
|
767
|
+
298,
|
|
768
|
+
'I - macron'
|
|
769
|
+
],
|
|
770
|
+
[
|
|
771
|
+
208,
|
|
772
|
+
'ETH'
|
|
773
|
+
],
|
|
774
|
+
[
|
|
775
|
+
209,
|
|
776
|
+
'N - tilde'
|
|
777
|
+
],
|
|
778
|
+
[
|
|
779
|
+
210,
|
|
780
|
+
'O - grave'
|
|
781
|
+
],
|
|
782
|
+
[
|
|
783
|
+
211,
|
|
784
|
+
'O - acute'
|
|
785
|
+
],
|
|
786
|
+
[
|
|
787
|
+
212,
|
|
788
|
+
'O - circumflex'
|
|
789
|
+
],
|
|
790
|
+
[
|
|
791
|
+
213,
|
|
792
|
+
'O - tilde'
|
|
793
|
+
],
|
|
794
|
+
[
|
|
795
|
+
214,
|
|
796
|
+
'O - diaeresis'
|
|
797
|
+
],
|
|
798
|
+
[
|
|
799
|
+
216,
|
|
800
|
+
'O - slash'
|
|
801
|
+
],
|
|
802
|
+
[
|
|
803
|
+
332,
|
|
804
|
+
'O - macron'
|
|
805
|
+
],
|
|
806
|
+
[
|
|
807
|
+
338,
|
|
808
|
+
'ligature OE'
|
|
809
|
+
],
|
|
810
|
+
[
|
|
811
|
+
352,
|
|
812
|
+
'S - caron'
|
|
813
|
+
],
|
|
814
|
+
[
|
|
815
|
+
217,
|
|
816
|
+
'U - grave'
|
|
817
|
+
],
|
|
818
|
+
[
|
|
819
|
+
218,
|
|
820
|
+
'U - acute'
|
|
821
|
+
],
|
|
822
|
+
[
|
|
823
|
+
219,
|
|
824
|
+
'U - circumflex'
|
|
825
|
+
],
|
|
826
|
+
[
|
|
827
|
+
220,
|
|
828
|
+
'U - diaeresis'
|
|
829
|
+
],
|
|
830
|
+
[
|
|
831
|
+
362,
|
|
832
|
+
'U - macron'
|
|
833
|
+
],
|
|
834
|
+
[
|
|
835
|
+
221,
|
|
836
|
+
'Y - acute'
|
|
837
|
+
],
|
|
838
|
+
[
|
|
839
|
+
376,
|
|
840
|
+
'Y - diaeresis'
|
|
841
|
+
],
|
|
842
|
+
[
|
|
843
|
+
562,
|
|
844
|
+
'Y - macron'
|
|
845
|
+
],
|
|
846
|
+
[
|
|
847
|
+
222,
|
|
848
|
+
'THORN'
|
|
849
|
+
],
|
|
850
|
+
[
|
|
851
|
+
224,
|
|
852
|
+
'a - grave'
|
|
853
|
+
],
|
|
854
|
+
[
|
|
855
|
+
225,
|
|
856
|
+
'a - acute'
|
|
857
|
+
],
|
|
858
|
+
[
|
|
859
|
+
226,
|
|
860
|
+
'a - circumflex'
|
|
861
|
+
],
|
|
862
|
+
[
|
|
863
|
+
227,
|
|
864
|
+
'a - tilde'
|
|
865
|
+
],
|
|
866
|
+
[
|
|
867
|
+
228,
|
|
868
|
+
'a - diaeresis'
|
|
869
|
+
],
|
|
870
|
+
[
|
|
871
|
+
229,
|
|
872
|
+
'a - ring above'
|
|
873
|
+
],
|
|
874
|
+
[
|
|
875
|
+
257,
|
|
876
|
+
'a - macron'
|
|
877
|
+
],
|
|
878
|
+
[
|
|
879
|
+
230,
|
|
880
|
+
'ligature ae'
|
|
881
|
+
],
|
|
882
|
+
[
|
|
883
|
+
231,
|
|
884
|
+
'c - cedilla'
|
|
885
|
+
],
|
|
886
|
+
[
|
|
887
|
+
232,
|
|
888
|
+
'e - grave'
|
|
889
|
+
],
|
|
890
|
+
[
|
|
891
|
+
233,
|
|
892
|
+
'e - acute'
|
|
893
|
+
],
|
|
894
|
+
[
|
|
895
|
+
234,
|
|
896
|
+
'e - circumflex'
|
|
897
|
+
],
|
|
898
|
+
[
|
|
899
|
+
235,
|
|
900
|
+
'e - diaeresis'
|
|
901
|
+
],
|
|
902
|
+
[
|
|
903
|
+
275,
|
|
904
|
+
'e - macron'
|
|
905
|
+
],
|
|
906
|
+
[
|
|
907
|
+
236,
|
|
908
|
+
'i - grave'
|
|
909
|
+
],
|
|
910
|
+
[
|
|
911
|
+
237,
|
|
912
|
+
'i - acute'
|
|
913
|
+
],
|
|
914
|
+
[
|
|
915
|
+
238,
|
|
916
|
+
'i - circumflex'
|
|
917
|
+
],
|
|
918
|
+
[
|
|
919
|
+
239,
|
|
920
|
+
'i - diaeresis'
|
|
921
|
+
],
|
|
922
|
+
[
|
|
923
|
+
299,
|
|
924
|
+
'i - macron'
|
|
925
|
+
],
|
|
926
|
+
[
|
|
927
|
+
240,
|
|
928
|
+
'eth'
|
|
929
|
+
],
|
|
930
|
+
[
|
|
931
|
+
241,
|
|
932
|
+
'n - tilde'
|
|
933
|
+
],
|
|
934
|
+
[
|
|
935
|
+
242,
|
|
936
|
+
'o - grave'
|
|
937
|
+
],
|
|
938
|
+
[
|
|
939
|
+
243,
|
|
940
|
+
'o - acute'
|
|
941
|
+
],
|
|
942
|
+
[
|
|
943
|
+
244,
|
|
944
|
+
'o - circumflex'
|
|
945
|
+
],
|
|
946
|
+
[
|
|
947
|
+
245,
|
|
948
|
+
'o - tilde'
|
|
949
|
+
],
|
|
950
|
+
[
|
|
951
|
+
246,
|
|
952
|
+
'o - diaeresis'
|
|
953
|
+
],
|
|
954
|
+
[
|
|
955
|
+
248,
|
|
956
|
+
'o slash'
|
|
957
|
+
],
|
|
958
|
+
[
|
|
959
|
+
333,
|
|
960
|
+
'o macron'
|
|
961
|
+
],
|
|
962
|
+
[
|
|
963
|
+
339,
|
|
964
|
+
'ligature oe'
|
|
965
|
+
],
|
|
966
|
+
[
|
|
967
|
+
353,
|
|
968
|
+
's - caron'
|
|
969
|
+
],
|
|
970
|
+
[
|
|
971
|
+
249,
|
|
972
|
+
'u - grave'
|
|
973
|
+
],
|
|
974
|
+
[
|
|
975
|
+
250,
|
|
976
|
+
'u - acute'
|
|
977
|
+
],
|
|
978
|
+
[
|
|
979
|
+
251,
|
|
980
|
+
'u - circumflex'
|
|
981
|
+
],
|
|
982
|
+
[
|
|
983
|
+
252,
|
|
984
|
+
'u - diaeresis'
|
|
985
|
+
],
|
|
986
|
+
[
|
|
987
|
+
363,
|
|
988
|
+
'u - macron'
|
|
989
|
+
],
|
|
990
|
+
[
|
|
991
|
+
253,
|
|
992
|
+
'y - acute'
|
|
993
|
+
],
|
|
994
|
+
[
|
|
995
|
+
254,
|
|
996
|
+
'thorn'
|
|
997
|
+
],
|
|
998
|
+
[
|
|
999
|
+
255,
|
|
1000
|
+
'y - diaeresis'
|
|
1001
|
+
],
|
|
1002
|
+
[
|
|
1003
|
+
563,
|
|
1004
|
+
'y - macron'
|
|
1005
|
+
],
|
|
1006
|
+
[
|
|
1007
|
+
913,
|
|
1008
|
+
'Alpha'
|
|
1009
|
+
],
|
|
1010
|
+
[
|
|
1011
|
+
914,
|
|
1012
|
+
'Beta'
|
|
1013
|
+
],
|
|
1014
|
+
[
|
|
1015
|
+
915,
|
|
1016
|
+
'Gamma'
|
|
1017
|
+
],
|
|
1018
|
+
[
|
|
1019
|
+
916,
|
|
1020
|
+
'Delta'
|
|
1021
|
+
],
|
|
1022
|
+
[
|
|
1023
|
+
917,
|
|
1024
|
+
'Epsilon'
|
|
1025
|
+
],
|
|
1026
|
+
[
|
|
1027
|
+
918,
|
|
1028
|
+
'Zeta'
|
|
1029
|
+
],
|
|
1030
|
+
[
|
|
1031
|
+
919,
|
|
1032
|
+
'Eta'
|
|
1033
|
+
],
|
|
1034
|
+
[
|
|
1035
|
+
920,
|
|
1036
|
+
'Theta'
|
|
1037
|
+
],
|
|
1038
|
+
[
|
|
1039
|
+
921,
|
|
1040
|
+
'Iota'
|
|
1041
|
+
],
|
|
1042
|
+
[
|
|
1043
|
+
922,
|
|
1044
|
+
'Kappa'
|
|
1045
|
+
],
|
|
1046
|
+
[
|
|
1047
|
+
923,
|
|
1048
|
+
'Lambda'
|
|
1049
|
+
],
|
|
1050
|
+
[
|
|
1051
|
+
924,
|
|
1052
|
+
'Mu'
|
|
1053
|
+
],
|
|
1054
|
+
[
|
|
1055
|
+
925,
|
|
1056
|
+
'Nu'
|
|
1057
|
+
],
|
|
1058
|
+
[
|
|
1059
|
+
926,
|
|
1060
|
+
'Xi'
|
|
1061
|
+
],
|
|
1062
|
+
[
|
|
1063
|
+
927,
|
|
1064
|
+
'Omicron'
|
|
1065
|
+
],
|
|
1066
|
+
[
|
|
1067
|
+
928,
|
|
1068
|
+
'Pi'
|
|
1069
|
+
],
|
|
1070
|
+
[
|
|
1071
|
+
929,
|
|
1072
|
+
'Rho'
|
|
1073
|
+
],
|
|
1074
|
+
[
|
|
1075
|
+
931,
|
|
1076
|
+
'Sigma'
|
|
1077
|
+
],
|
|
1078
|
+
[
|
|
1079
|
+
932,
|
|
1080
|
+
'Tau'
|
|
1081
|
+
],
|
|
1082
|
+
[
|
|
1083
|
+
933,
|
|
1084
|
+
'Upsilon'
|
|
1085
|
+
],
|
|
1086
|
+
[
|
|
1087
|
+
934,
|
|
1088
|
+
'Phi'
|
|
1089
|
+
],
|
|
1090
|
+
[
|
|
1091
|
+
935,
|
|
1092
|
+
'Chi'
|
|
1093
|
+
],
|
|
1094
|
+
[
|
|
1095
|
+
936,
|
|
1096
|
+
'Psi'
|
|
1097
|
+
],
|
|
1098
|
+
[
|
|
1099
|
+
937,
|
|
1100
|
+
'Omega'
|
|
1101
|
+
],
|
|
1102
|
+
[
|
|
1103
|
+
945,
|
|
1104
|
+
'alpha'
|
|
1105
|
+
],
|
|
1106
|
+
[
|
|
1107
|
+
946,
|
|
1108
|
+
'beta'
|
|
1109
|
+
],
|
|
1110
|
+
[
|
|
1111
|
+
947,
|
|
1112
|
+
'gamma'
|
|
1113
|
+
],
|
|
1114
|
+
[
|
|
1115
|
+
948,
|
|
1116
|
+
'delta'
|
|
1117
|
+
],
|
|
1118
|
+
[
|
|
1119
|
+
949,
|
|
1120
|
+
'epsilon'
|
|
1121
|
+
],
|
|
1122
|
+
[
|
|
1123
|
+
950,
|
|
1124
|
+
'zeta'
|
|
1125
|
+
],
|
|
1126
|
+
[
|
|
1127
|
+
951,
|
|
1128
|
+
'eta'
|
|
1129
|
+
],
|
|
1130
|
+
[
|
|
1131
|
+
952,
|
|
1132
|
+
'theta'
|
|
1133
|
+
],
|
|
1134
|
+
[
|
|
1135
|
+
953,
|
|
1136
|
+
'iota'
|
|
1137
|
+
],
|
|
1138
|
+
[
|
|
1139
|
+
954,
|
|
1140
|
+
'kappa'
|
|
1141
|
+
],
|
|
1142
|
+
[
|
|
1143
|
+
955,
|
|
1144
|
+
'lambda'
|
|
1145
|
+
],
|
|
1146
|
+
[
|
|
1147
|
+
956,
|
|
1148
|
+
'mu'
|
|
1149
|
+
],
|
|
1150
|
+
[
|
|
1151
|
+
957,
|
|
1152
|
+
'nu'
|
|
1153
|
+
],
|
|
1154
|
+
[
|
|
1155
|
+
958,
|
|
1156
|
+
'xi'
|
|
1157
|
+
],
|
|
1158
|
+
[
|
|
1159
|
+
959,
|
|
1160
|
+
'omicron'
|
|
1161
|
+
],
|
|
1162
|
+
[
|
|
1163
|
+
960,
|
|
1164
|
+
'pi'
|
|
1165
|
+
],
|
|
1166
|
+
[
|
|
1167
|
+
961,
|
|
1168
|
+
'rho'
|
|
1169
|
+
],
|
|
1170
|
+
[
|
|
1171
|
+
962,
|
|
1172
|
+
'final sigma'
|
|
1173
|
+
],
|
|
1174
|
+
[
|
|
1175
|
+
963,
|
|
1176
|
+
'sigma'
|
|
1177
|
+
],
|
|
1178
|
+
[
|
|
1179
|
+
964,
|
|
1180
|
+
'tau'
|
|
1181
|
+
],
|
|
1182
|
+
[
|
|
1183
|
+
965,
|
|
1184
|
+
'upsilon'
|
|
1185
|
+
],
|
|
1186
|
+
[
|
|
1187
|
+
966,
|
|
1188
|
+
'phi'
|
|
1189
|
+
],
|
|
1190
|
+
[
|
|
1191
|
+
967,
|
|
1192
|
+
'chi'
|
|
1193
|
+
],
|
|
1194
|
+
[
|
|
1195
|
+
968,
|
|
1196
|
+
'psi'
|
|
1197
|
+
],
|
|
1198
|
+
[
|
|
1199
|
+
969,
|
|
1200
|
+
'omega'
|
|
1201
|
+
]
|
|
1202
|
+
]
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
name: 'Symbols',
|
|
1206
|
+
characters: [
|
|
1207
|
+
[
|
|
1208
|
+
8501,
|
|
1209
|
+
'alef symbol'
|
|
1210
|
+
],
|
|
1211
|
+
[
|
|
1212
|
+
982,
|
|
1213
|
+
'pi symbol'
|
|
1214
|
+
],
|
|
1215
|
+
[
|
|
1216
|
+
8476,
|
|
1217
|
+
'real part symbol'
|
|
1218
|
+
],
|
|
1219
|
+
[
|
|
1220
|
+
978,
|
|
1221
|
+
'upsilon - hook symbol'
|
|
1222
|
+
],
|
|
1223
|
+
[
|
|
1224
|
+
8472,
|
|
1225
|
+
'Weierstrass p'
|
|
1226
|
+
],
|
|
1227
|
+
[
|
|
1228
|
+
8465,
|
|
1229
|
+
'imaginary part'
|
|
1230
|
+
]
|
|
1231
|
+
]
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
name: 'Arrows',
|
|
1235
|
+
characters: [
|
|
1236
|
+
[
|
|
1237
|
+
8592,
|
|
1238
|
+
'leftwards arrow'
|
|
1239
|
+
],
|
|
1240
|
+
[
|
|
1241
|
+
8593,
|
|
1242
|
+
'upwards arrow'
|
|
1243
|
+
],
|
|
1244
|
+
[
|
|
1245
|
+
8594,
|
|
1246
|
+
'rightwards arrow'
|
|
1247
|
+
],
|
|
1248
|
+
[
|
|
1249
|
+
8595,
|
|
1250
|
+
'downwards arrow'
|
|
1251
|
+
],
|
|
1252
|
+
[
|
|
1253
|
+
8596,
|
|
1254
|
+
'left right arrow'
|
|
1255
|
+
],
|
|
1256
|
+
[
|
|
1257
|
+
8629,
|
|
1258
|
+
'carriage return'
|
|
1259
|
+
],
|
|
1260
|
+
[
|
|
1261
|
+
8656,
|
|
1262
|
+
'leftwards double arrow'
|
|
1263
|
+
],
|
|
1264
|
+
[
|
|
1265
|
+
8657,
|
|
1266
|
+
'upwards double arrow'
|
|
1267
|
+
],
|
|
1268
|
+
[
|
|
1269
|
+
8658,
|
|
1270
|
+
'rightwards double arrow'
|
|
1271
|
+
],
|
|
1272
|
+
[
|
|
1273
|
+
8659,
|
|
1274
|
+
'downwards double arrow'
|
|
1275
|
+
],
|
|
1276
|
+
[
|
|
1277
|
+
8660,
|
|
1278
|
+
'left right double arrow'
|
|
1279
|
+
],
|
|
1280
|
+
[
|
|
1281
|
+
8756,
|
|
1282
|
+
'therefore'
|
|
1283
|
+
],
|
|
1284
|
+
[
|
|
1285
|
+
8834,
|
|
1286
|
+
'subset of'
|
|
1287
|
+
],
|
|
1288
|
+
[
|
|
1289
|
+
8835,
|
|
1290
|
+
'superset of'
|
|
1291
|
+
],
|
|
1292
|
+
[
|
|
1293
|
+
8836,
|
|
1294
|
+
'not a subset of'
|
|
1295
|
+
],
|
|
1296
|
+
[
|
|
1297
|
+
8838,
|
|
1298
|
+
'subset of or equal to'
|
|
1299
|
+
],
|
|
1300
|
+
[
|
|
1301
|
+
8839,
|
|
1302
|
+
'superset of or equal to'
|
|
1303
|
+
],
|
|
1304
|
+
[
|
|
1305
|
+
8853,
|
|
1306
|
+
'circled plus'
|
|
1307
|
+
],
|
|
1308
|
+
[
|
|
1309
|
+
8855,
|
|
1310
|
+
'circled times'
|
|
1311
|
+
],
|
|
1312
|
+
[
|
|
1313
|
+
8869,
|
|
1314
|
+
'perpendicular'
|
|
1315
|
+
],
|
|
1316
|
+
[
|
|
1317
|
+
8901,
|
|
1318
|
+
'dot operator'
|
|
1319
|
+
],
|
|
1320
|
+
[
|
|
1321
|
+
8968,
|
|
1322
|
+
'left ceiling'
|
|
1323
|
+
],
|
|
1324
|
+
[
|
|
1325
|
+
8969,
|
|
1326
|
+
'right ceiling'
|
|
1327
|
+
],
|
|
1328
|
+
[
|
|
1329
|
+
8970,
|
|
1330
|
+
'left floor'
|
|
1331
|
+
],
|
|
1332
|
+
[
|
|
1333
|
+
8971,
|
|
1334
|
+
'right floor'
|
|
1335
|
+
],
|
|
1336
|
+
[
|
|
1337
|
+
9001,
|
|
1338
|
+
'left-pointing angle bracket'
|
|
1339
|
+
],
|
|
1340
|
+
[
|
|
1341
|
+
9002,
|
|
1342
|
+
'right-pointing angle bracket'
|
|
1343
|
+
],
|
|
1344
|
+
[
|
|
1345
|
+
9674,
|
|
1346
|
+
'lozenge'
|
|
1347
|
+
],
|
|
1348
|
+
[
|
|
1349
|
+
9824,
|
|
1350
|
+
'black spade suit'
|
|
1351
|
+
],
|
|
1352
|
+
[
|
|
1353
|
+
9827,
|
|
1354
|
+
'black club suit'
|
|
1355
|
+
],
|
|
1356
|
+
[
|
|
1357
|
+
9829,
|
|
1358
|
+
'black heart suit'
|
|
1359
|
+
],
|
|
1360
|
+
[
|
|
1361
|
+
9830,
|
|
1362
|
+
'black diamond suit'
|
|
1363
|
+
],
|
|
1364
|
+
[
|
|
1365
|
+
8194,
|
|
1366
|
+
'en space'
|
|
1367
|
+
],
|
|
1368
|
+
[
|
|
1369
|
+
8195,
|
|
1370
|
+
'em space'
|
|
1371
|
+
],
|
|
1372
|
+
[
|
|
1373
|
+
8201,
|
|
1374
|
+
'thin space'
|
|
1375
|
+
],
|
|
1376
|
+
[
|
|
1377
|
+
8204,
|
|
1378
|
+
'zero width non-joiner'
|
|
1379
|
+
],
|
|
1380
|
+
[
|
|
1381
|
+
8205,
|
|
1382
|
+
'zero width joiner'
|
|
1383
|
+
],
|
|
1384
|
+
[
|
|
1385
|
+
8206,
|
|
1386
|
+
'left-to-right mark'
|
|
1387
|
+
],
|
|
1388
|
+
[
|
|
1389
|
+
8207,
|
|
1390
|
+
'right-to-left mark'
|
|
1391
|
+
]
|
|
1392
|
+
]
|
|
1393
|
+
}
|
|
1394
|
+
];
|
|
780
1395
|
};
|
|
781
|
-
const charmapFilter =
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1396
|
+
const charmapFilter = charmap => {
|
|
1397
|
+
return global.grep(charmap, item => {
|
|
1398
|
+
return isArray(item) && item.length === 2;
|
|
1399
|
+
});
|
|
785
1400
|
};
|
|
786
|
-
const getCharsFromOption =
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
1401
|
+
const getCharsFromOption = optionValue => {
|
|
1402
|
+
if (isArray(optionValue)) {
|
|
1403
|
+
return charmapFilter(optionValue);
|
|
1404
|
+
}
|
|
1405
|
+
if (typeof optionValue === 'function') {
|
|
1406
|
+
return optionValue();
|
|
1407
|
+
}
|
|
1408
|
+
return [];
|
|
794
1409
|
};
|
|
795
1410
|
const extendCharMap = (editor, charmap) => {
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
1411
|
+
const userCharMap = getCharMap$1(editor);
|
|
1412
|
+
if (userCharMap) {
|
|
1413
|
+
charmap = [{
|
|
1414
|
+
name: UserDefined,
|
|
1415
|
+
characters: getCharsFromOption(userCharMap)
|
|
1416
|
+
}];
|
|
1417
|
+
}
|
|
1418
|
+
const userCharMapAppend = getCharMapAppend(editor);
|
|
1419
|
+
if (userCharMapAppend) {
|
|
1420
|
+
const userDefinedGroup = global.grep(charmap, cg => cg.name === UserDefined);
|
|
1421
|
+
if (userDefinedGroup.length) {
|
|
1422
|
+
userDefinedGroup[0].characters = [
|
|
1423
|
+
...userDefinedGroup[0].characters,
|
|
1424
|
+
...getCharsFromOption(userCharMapAppend)
|
|
1425
|
+
];
|
|
1426
|
+
return charmap;
|
|
808
1427
|
}
|
|
809
|
-
return charmap
|
|
1428
|
+
return charmap.concat({
|
|
1429
|
+
name: UserDefined,
|
|
1430
|
+
characters: getCharsFromOption(userCharMapAppend)
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1433
|
+
return charmap;
|
|
810
1434
|
};
|
|
811
|
-
const getCharMap =
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
}
|
|
818
|
-
].concat(groups) : groups;
|
|
1435
|
+
const getCharMap = editor => {
|
|
1436
|
+
const groups = extendCharMap(editor, getDefaultCharMap());
|
|
1437
|
+
return groups.length > 1 ? [{
|
|
1438
|
+
name: 'All',
|
|
1439
|
+
characters: bind(groups, g => g.characters)
|
|
1440
|
+
}].concat(groups) : groups;
|
|
819
1441
|
};
|
|
820
1442
|
|
|
821
|
-
const get =
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
1443
|
+
const get = editor => {
|
|
1444
|
+
const getCharMap$1 = () => {
|
|
1445
|
+
return getCharMap(editor);
|
|
1446
|
+
};
|
|
1447
|
+
const insertChar$1 = chr => {
|
|
1448
|
+
insertChar(editor, chr);
|
|
1449
|
+
};
|
|
1450
|
+
return {
|
|
1451
|
+
getCharMap: getCharMap$1,
|
|
1452
|
+
insertChar: insertChar$1
|
|
1453
|
+
};
|
|
832
1454
|
};
|
|
833
1455
|
|
|
834
|
-
const
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
1456
|
+
const Cell = initial => {
|
|
1457
|
+
let value = initial;
|
|
1458
|
+
const get = () => {
|
|
1459
|
+
return value;
|
|
1460
|
+
};
|
|
1461
|
+
const set = v => {
|
|
1462
|
+
value = v;
|
|
1463
|
+
};
|
|
1464
|
+
return {
|
|
1465
|
+
get,
|
|
1466
|
+
set
|
|
1467
|
+
};
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
const last = (fn, rate) => {
|
|
1471
|
+
let timer = null;
|
|
1472
|
+
const cancel = () => {
|
|
1473
|
+
if (!isNull(timer)) {
|
|
1474
|
+
clearTimeout(timer);
|
|
1475
|
+
timer = null;
|
|
840
1476
|
}
|
|
1477
|
+
};
|
|
1478
|
+
const throttle = (...args) => {
|
|
1479
|
+
cancel();
|
|
1480
|
+
timer = setTimeout(() => {
|
|
1481
|
+
timer = null;
|
|
1482
|
+
fn.apply(null, args);
|
|
1483
|
+
}, rate);
|
|
1484
|
+
};
|
|
1485
|
+
return {
|
|
1486
|
+
cancel,
|
|
1487
|
+
throttle
|
|
1488
|
+
};
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1491
|
+
const contains = (str, substr, start = 0, end) => {
|
|
1492
|
+
const idx = str.indexOf(substr, start);
|
|
1493
|
+
if (idx !== -1) {
|
|
1494
|
+
return isUndefined(end) ? true : idx + substr.length <= end;
|
|
1495
|
+
} else {
|
|
1496
|
+
return false;
|
|
1497
|
+
}
|
|
1498
|
+
};
|
|
1499
|
+
const fromCodePoint = String.fromCodePoint;
|
|
1500
|
+
|
|
1501
|
+
const charMatches = (charCode, name, lowerCasePattern) => {
|
|
1502
|
+
if (contains(fromCodePoint(charCode).toLowerCase(), lowerCasePattern)) {
|
|
1503
|
+
return true;
|
|
1504
|
+
} else {
|
|
1505
|
+
return contains(name.toLowerCase(), lowerCasePattern) || contains(name.toLowerCase().replace(/\s+/g, ''), lowerCasePattern);
|
|
1506
|
+
}
|
|
841
1507
|
};
|
|
842
1508
|
const scan = (group, pattern) => {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
1509
|
+
const matches = [];
|
|
1510
|
+
const lowerCasePattern = pattern.toLowerCase();
|
|
1511
|
+
each(group.characters, g => {
|
|
1512
|
+
if (charMatches(g[0], g[1], lowerCasePattern)) {
|
|
1513
|
+
matches.push(g);
|
|
1514
|
+
}
|
|
1515
|
+
});
|
|
1516
|
+
return map(matches, m => ({
|
|
1517
|
+
text: m[1],
|
|
1518
|
+
value: fromCodePoint(m[0]),
|
|
1519
|
+
icon: fromCodePoint(m[0])
|
|
1520
|
+
}));
|
|
855
1521
|
};
|
|
856
1522
|
|
|
857
1523
|
const patternName = 'pattern';
|
|
858
1524
|
const open = (editor, charMap) => {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1525
|
+
const makeGroupItems = () => [
|
|
1526
|
+
{
|
|
1527
|
+
label: 'Search',
|
|
1528
|
+
type: 'input',
|
|
1529
|
+
name: patternName
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
type: 'collection',
|
|
1533
|
+
name: 'results'
|
|
1534
|
+
}
|
|
1535
|
+
];
|
|
1536
|
+
const makeTabs = () => map(charMap, charGroup => ({
|
|
1537
|
+
title: charGroup.name,
|
|
1538
|
+
name: charGroup.name,
|
|
1539
|
+
items: makeGroupItems()
|
|
1540
|
+
}));
|
|
1541
|
+
const makePanel = () => ({
|
|
1542
|
+
type: 'panel',
|
|
1543
|
+
items: makeGroupItems()
|
|
1544
|
+
});
|
|
1545
|
+
const makeTabPanel = () => ({
|
|
1546
|
+
type: 'tabpanel',
|
|
1547
|
+
tabs: makeTabs()
|
|
1548
|
+
});
|
|
1549
|
+
const currentTab = charMap.length === 1 ? Cell(UserDefined) : Cell('All');
|
|
1550
|
+
const scanAndSet = (dialogApi, pattern) => {
|
|
1551
|
+
find(charMap, group => group.name === currentTab.get()).each(f => {
|
|
1552
|
+
const items = scan(f, pattern);
|
|
1553
|
+
dialogApi.setData({ results: items });
|
|
1554
|
+
});
|
|
1555
|
+
};
|
|
1556
|
+
const SEARCH_DELAY = 40;
|
|
1557
|
+
const updateFilter = last(dialogApi => {
|
|
1558
|
+
const pattern = dialogApi.getData().pattern;
|
|
1559
|
+
scanAndSet(dialogApi, pattern);
|
|
1560
|
+
}, SEARCH_DELAY);
|
|
1561
|
+
const body = charMap.length === 1 ? makePanel() : makeTabPanel();
|
|
1562
|
+
const initialData = {
|
|
1563
|
+
pattern: '',
|
|
1564
|
+
results: scan(charMap[0], '')
|
|
1565
|
+
};
|
|
1566
|
+
const bridgeSpec = {
|
|
1567
|
+
title: 'Special Character',
|
|
1568
|
+
size: 'normal',
|
|
1569
|
+
body,
|
|
1570
|
+
buttons: [{
|
|
1571
|
+
type: 'cancel',
|
|
1572
|
+
name: 'close',
|
|
1573
|
+
text: 'Close',
|
|
1574
|
+
primary: true
|
|
1575
|
+
}],
|
|
1576
|
+
initialData,
|
|
1577
|
+
onAction: (api, details) => {
|
|
1578
|
+
if (details.name === 'results') {
|
|
1579
|
+
insertChar(editor, details.value);
|
|
1580
|
+
api.close();
|
|
1581
|
+
}
|
|
1582
|
+
},
|
|
1583
|
+
onTabChange: (dialogApi, details) => {
|
|
1584
|
+
currentTab.set(details.newTabName);
|
|
1585
|
+
updateFilter.throttle(dialogApi);
|
|
1586
|
+
},
|
|
1587
|
+
onChange: (dialogApi, changeData) => {
|
|
1588
|
+
if (changeData.name === patternName) {
|
|
1589
|
+
updateFilter.throttle(dialogApi);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
};
|
|
1593
|
+
const dialogApi = editor.windowManager.open(bridgeSpec);
|
|
1594
|
+
dialogApi.focus(patternName);
|
|
929
1595
|
};
|
|
930
1596
|
|
|
931
1597
|
const register$1 = (editor, charMap) => {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
1598
|
+
editor.addCommand('mceShowCharmap', () => {
|
|
1599
|
+
open(editor, charMap);
|
|
1600
|
+
});
|
|
935
1601
|
};
|
|
936
1602
|
|
|
937
1603
|
const init = (editor, all) => {
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
1604
|
+
editor.ui.registry.addAutocompleter('charmap', {
|
|
1605
|
+
trigger: ':',
|
|
1606
|
+
columns: 'auto',
|
|
1607
|
+
minChars: 2,
|
|
1608
|
+
fetch: (pattern, _maxResults) => new Promise((resolve, _reject) => {
|
|
1609
|
+
resolve(scan(all, pattern));
|
|
1610
|
+
}),
|
|
1611
|
+
onAction: (autocompleteApi, rng, value) => {
|
|
1612
|
+
editor.selection.setRng(rng);
|
|
1613
|
+
editor.insertContent(value);
|
|
1614
|
+
autocompleteApi.hide();
|
|
1615
|
+
}
|
|
1616
|
+
});
|
|
951
1617
|
};
|
|
952
1618
|
|
|
953
|
-
const onSetupEditable =
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
1619
|
+
const onSetupEditable = editor => api => {
|
|
1620
|
+
const nodeChanged = () => {
|
|
1621
|
+
api.setEnabled(editor.selection.isEditable());
|
|
1622
|
+
};
|
|
1623
|
+
editor.on('NodeChange', nodeChanged);
|
|
1624
|
+
nodeChanged();
|
|
1625
|
+
return () => {
|
|
1626
|
+
editor.off('NodeChange', nodeChanged);
|
|
1627
|
+
};
|
|
962
1628
|
};
|
|
963
|
-
const register =
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1629
|
+
const register = editor => {
|
|
1630
|
+
const onAction = () => editor.execCommand('mceShowCharmap');
|
|
1631
|
+
editor.ui.registry.addButton('charmap', {
|
|
1632
|
+
icon: 'insert-character',
|
|
1633
|
+
tooltip: 'Special character',
|
|
1634
|
+
onAction,
|
|
1635
|
+
onSetup: onSetupEditable(editor)
|
|
1636
|
+
});
|
|
1637
|
+
editor.ui.registry.addMenuItem('charmap', {
|
|
1638
|
+
icon: 'insert-character',
|
|
1639
|
+
text: 'Special character...',
|
|
1640
|
+
onAction,
|
|
1641
|
+
onSetup: onSetupEditable(editor)
|
|
1642
|
+
});
|
|
977
1643
|
};
|
|
978
1644
|
|
|
979
1645
|
var Plugin = () => {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1646
|
+
global$1.add('charmap', editor => {
|
|
1647
|
+
register$2(editor);
|
|
1648
|
+
const charMap = getCharMap(editor);
|
|
1649
|
+
register$1(editor, charMap);
|
|
1650
|
+
register(editor);
|
|
1651
|
+
init(editor, charMap[0]);
|
|
1652
|
+
return get(editor);
|
|
1653
|
+
});
|
|
988
1654
|
};
|
|
989
1655
|
|
|
990
1656
|
Plugin();
|
|
991
|
-
/** *****
|
|
992
|
-
* DO NOT EXPORT ANYTHING
|
|
993
|
-
*
|
|
994
|
-
* IF YOU DO ROLLUP WILL LEAVE A GLOBAL ON THE PAGE
|
|
995
|
-
*******/
|
|
996
1657
|
|
|
997
1658
|
})();
|