@skyux/text-editor 4.0.0-beta.2 → 5.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/bundles/skyux-text-editor.umd.js +730 -562
- package/bundles/skyux-text-editor.umd.js.map +1 -1
- package/documentation.json +1961 -0
- package/esm2015/modules/rich-text-display/rich-text-display.component.js +17 -20
- package/esm2015/modules/rich-text-display/rich-text-display.module.js +22 -17
- package/esm2015/modules/shared/forms-utility.js +1 -1
- package/esm2015/modules/shared/sky-text-editor-resources.module.js +41 -0
- package/esm2015/modules/text-editor/defaults/font-list-defaults.js +1 -1
- package/esm2015/modules/text-editor/defaults/font-size-list-defaults.js +1 -1
- package/esm2015/modules/text-editor/defaults/menu-defaults.js +1 -1
- package/esm2015/modules/text-editor/defaults/style-state-defaults.js +1 -1
- package/esm2015/modules/text-editor/defaults/toolbar-action-defaults.js +1 -1
- package/esm2015/modules/text-editor/menubar/text-editor-menubar.component.js +32 -36
- package/esm2015/modules/text-editor/services/text-editor-adapter.service.js +17 -22
- package/esm2015/modules/text-editor/services/text-editor-selection.service.js +12 -13
- package/esm2015/modules/text-editor/services/text-editor.service.js +11 -11
- package/esm2015/modules/text-editor/services/text-sanitization.service.js +12 -14
- package/esm2015/modules/text-editor/text-editor.component.js +63 -68
- package/esm2015/modules/text-editor/text-editor.module.js +68 -27
- package/esm2015/modules/text-editor/toolbar/text-editor-toolbar.component.js +40 -42
- package/esm2015/modules/text-editor/types/editor-command.js +2 -1
- package/esm2015/modules/text-editor/types/editor-setting.js +2 -1
- package/esm2015/modules/text-editor/types/font-state.js +2 -1
- package/esm2015/modules/text-editor/types/menu-type.js +2 -1
- package/esm2015/modules/text-editor/types/style-state.js +2 -1
- package/esm2015/modules/text-editor/types/text-editor-merge-field.js +2 -1
- package/esm2015/modules/text-editor/types/toolbar-action-type.js +2 -1
- package/esm2015/modules/text-editor/url-modal/text-editor-url-modal-context.js +1 -1
- package/esm2015/modules/text-editor/url-modal/text-editor-url-modal-result.js +2 -1
- package/esm2015/modules/text-editor/url-modal/text-editor-url-modal.component.js +21 -18
- package/esm2015/modules/text-editor/url-modal/text-editor-url-target.js +1 -1
- package/esm2015/public-api.js +15 -0
- package/esm2015/skyux-text-editor.js +2 -14
- package/fesm2015/skyux-text-editor.js +359 -312
- package/fesm2015/skyux-text-editor.js.map +1 -1
- package/modules/rich-text-display/rich-text-display.component.d.ts +3 -0
- package/modules/rich-text-display/rich-text-display.module.d.ts +6 -0
- package/modules/shared/sky-text-editor-resources.module.d.ts +14 -0
- package/modules/text-editor/menubar/text-editor-menubar.component.d.ts +3 -0
- package/modules/text-editor/services/text-editor-adapter.service.d.ts +3 -0
- package/modules/text-editor/services/text-editor-selection.service.d.ts +3 -0
- package/modules/text-editor/services/text-editor.service.d.ts +3 -0
- package/modules/text-editor/services/text-sanitization.service.d.ts +3 -0
- package/modules/text-editor/text-editor.component.d.ts +3 -0
- package/modules/text-editor/text-editor.module.d.ts +21 -0
- package/modules/text-editor/toolbar/text-editor-toolbar.component.d.ts +3 -0
- package/modules/text-editor/url-modal/text-editor-url-modal.component.d.ts +3 -0
- package/package.json +20 -36
- package/public-api.d.ts +12 -0
- package/skyux-text-editor.d.ts +2 -13
- package/CHANGELOG.md +0 -13
- package/bundles/skyux-text-editor.umd.min.js +0 -2
- package/bundles/skyux-text-editor.umd.min.js.map +0 -1
- package/esm2015/plugin-resources/text-editor-resources-provider.js +0 -16
- package/esm2015/plugin-resources/text-editor-resources.module.js +0 -19
- package/esm2015/public_api.js +0 -3
- package/esm5/modules/rich-text-display/rich-text-display.component.js +0 -44
- package/esm5/modules/rich-text-display/rich-text-display.module.js +0 -24
- package/esm5/modules/shared/forms-utility.js +0 -14
- package/esm5/modules/text-editor/defaults/font-list-defaults.js +0 -42
- package/esm5/modules/text-editor/defaults/font-size-list-defaults.js +0 -5
- package/esm5/modules/text-editor/defaults/menu-defaults.js +0 -8
- package/esm5/modules/text-editor/defaults/style-state-defaults.js +0 -15
- package/esm5/modules/text-editor/defaults/toolbar-action-defaults.js +0 -12
- package/esm5/modules/text-editor/menubar/text-editor-menubar.component.js +0 -199
- package/esm5/modules/text-editor/services/text-editor-adapter.service.js +0 -470
- package/esm5/modules/text-editor/services/text-editor-selection.service.js +0 -77
- package/esm5/modules/text-editor/services/text-editor.service.js +0 -49
- package/esm5/modules/text-editor/services/text-sanitization.service.js +0 -41
- package/esm5/modules/text-editor/text-editor.component.js +0 -287
- package/esm5/modules/text-editor/text-editor.module.js +0 -63
- package/esm5/modules/text-editor/toolbar/text-editor-toolbar.component.js +0 -178
- package/esm5/modules/text-editor/types/editor-command.js +0 -1
- package/esm5/modules/text-editor/types/editor-setting.js +0 -1
- package/esm5/modules/text-editor/types/font-state.js +0 -1
- package/esm5/modules/text-editor/types/menu-type.js +0 -1
- package/esm5/modules/text-editor/types/style-state.js +0 -1
- package/esm5/modules/text-editor/types/text-editor-merge-field.js +0 -1
- package/esm5/modules/text-editor/types/toolbar-action-type.js +0 -1
- package/esm5/modules/text-editor/url-modal/text-editor-url-modal-context.js +0 -10
- package/esm5/modules/text-editor/url-modal/text-editor-url-modal-result.js +0 -1
- package/esm5/modules/text-editor/url-modal/text-editor-url-modal.component.js +0 -120
- package/esm5/modules/text-editor/url-modal/text-editor-url-target.js +0 -9
- package/esm5/plugin-resources/text-editor-resources-provider.js +0 -17
- package/esm5/plugin-resources/text-editor-resources.module.js +0 -22
- package/esm5/public_api.js +0 -3
- package/esm5/skyux-text-editor.js +0 -17
- package/fesm5/skyux-text-editor.js +0 -1620
- package/fesm5/skyux-text-editor.js.map +0 -1
- package/plugin-resources/text-editor-resources-provider.d.ts +0 -5
- package/plugin-resources/text-editor-resources.module.d.ts +0 -2
- package/public_api.d.ts +0 -7
- package/skyux-text-editor.metadata.json +0 -1
- package/src/assets/img/default-anatomy.png +0 -0
- package/src/assets/img/default-option-menu-toolbar-items.png +0 -0
- package/src/assets/img/default-use-when.png +0 -0
- package/src/assets/img/modern-anatomy.png +0 -0
- package/src/assets/img/modern-option-menu-toolbar-items.png +0 -0
- package/src/assets/img/modern-use-when.png +0 -0
- package/src/assets/locales/resources_en_US.json +0 -130
|
@@ -1,234 +1,48 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@angular/platform-browser'), require('dompurify'), require('@angular/forms'), require('@skyux/colorpicker'), require('@skyux/core'), require('@skyux/forms'), require('@skyux/modals'), require('@skyux/i18n'), require('@skyux/indicators'), require('@skyux/layout'), require('@skyux/popovers'), require('@skyux/tabs'), require('@skyux/theme'), require('rxjs'), require('rxjs/operators'), require('@skyux/validation')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@skyux/text-editor', ['exports', '@angular/common', '@angular/core', '@angular/platform-browser', 'dompurify', '@angular/forms', '@skyux/colorpicker', '@skyux/core', '@skyux/forms', '@skyux/modals', '@skyux/i18n', '@skyux/indicators', '@skyux/layout', '@skyux/popovers', '@skyux/tabs', '@skyux/theme', 'rxjs', 'rxjs/operators', '@skyux/validation'], factory) :
|
|
4
|
-
(global = global || self, factory((global.skyux = global.skyux || {}, global.skyux['text-editor'] = {}), global.ng.common, global.ng.core, global.ng.platformBrowser, global.
|
|
5
|
-
}(this, (function (exports,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux['text-editor'] = {}), global.ng.common, global.ng.core, global.ng.platformBrowser, global.createDOMPurify, global.ng.forms, global.i6$1, global.i3, global.i4$1, global.i1$1, global.i2, global.i7, global.i3$1, global.i4, global.i3$2, global.i6, global.rxjs, global.rxjs.operators, global.validation));
|
|
5
|
+
}(this, (function (exports, i8, i0, i1, createDOMPurify, i5, i6$1, i3, i4$1, i1$1, i2, i7, i3$1, i4, i3$2, i6, rxjs, operators, validation) { 'use strict';
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
28
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
29
|
-
return extendStatics(d, b);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
function __extends(d, b) {
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
var __assign = function() {
|
|
39
|
-
__assign = Object.assign || function __assign(t) {
|
|
40
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
41
|
-
s = arguments[i];
|
|
42
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
43
|
-
}
|
|
44
|
-
return t;
|
|
45
|
-
};
|
|
46
|
-
return __assign.apply(this, arguments);
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
52
|
-
t[p] = s[p];
|
|
53
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
54
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
55
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
56
|
-
t[p[i]] = s[p[i]];
|
|
57
|
-
}
|
|
58
|
-
return t;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
64
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
65
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function __param(paramIndex, decorator) {
|
|
69
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
function __metadata(metadataKey, metadataValue) {
|
|
73
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
77
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
78
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
79
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
80
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
81
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
82
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function __generator(thisArg, body) {
|
|
87
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
88
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
89
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
90
|
-
function step(op) {
|
|
91
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
92
|
-
while (_) try {
|
|
93
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
94
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
95
|
-
switch (op[0]) {
|
|
96
|
-
case 0: case 1: t = op; break;
|
|
97
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
98
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
99
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
100
|
-
default:
|
|
101
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
102
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
103
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
104
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
105
|
-
if (t[2]) _.ops.pop();
|
|
106
|
-
_.trys.pop(); continue;
|
|
107
|
-
}
|
|
108
|
-
op = body.call(thisArg, _);
|
|
109
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
110
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
function __createBinding(o, m, k, k2) {
|
|
115
|
-
if (k2 === undefined) k2 = k;
|
|
116
|
-
o[k2] = m[k];
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function __exportStar(m, exports) {
|
|
120
|
-
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function __values(o) {
|
|
124
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
125
|
-
if (m) return m.call(o);
|
|
126
|
-
if (o && typeof o.length === "number") return {
|
|
127
|
-
next: function () {
|
|
128
|
-
if (o && i >= o.length) o = void 0;
|
|
129
|
-
return { value: o && o[i++], done: !o };
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
function __read(o, n) {
|
|
136
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
137
|
-
if (!m) return o;
|
|
138
|
-
var i = m.call(o), r, ar = [], e;
|
|
139
|
-
try {
|
|
140
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
141
|
-
}
|
|
142
|
-
catch (error) { e = { error: error }; }
|
|
143
|
-
finally {
|
|
144
|
-
try {
|
|
145
|
-
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
146
|
-
}
|
|
147
|
-
finally { if (e) throw e.error; }
|
|
148
|
-
}
|
|
149
|
-
return ar;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function __spread() {
|
|
153
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
154
|
-
ar = ar.concat(__read(arguments[i]));
|
|
155
|
-
return ar;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
function __spreadArrays() {
|
|
159
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
160
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
161
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
162
|
-
r[k] = a[j];
|
|
163
|
-
return r;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
function __await(v) {
|
|
167
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
171
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
172
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
173
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
174
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
175
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
176
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
177
|
-
function fulfill(value) { resume("next", value); }
|
|
178
|
-
function reject(value) { resume("throw", value); }
|
|
179
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
function __asyncDelegator(o) {
|
|
183
|
-
var i, p;
|
|
184
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
185
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
function __asyncValues(o) {
|
|
189
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
190
|
-
var m = o[Symbol.asyncIterator], i;
|
|
191
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
192
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
193
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
function __makeTemplateObject(cooked, raw) {
|
|
197
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
198
|
-
return cooked;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
function __importStar(mod) {
|
|
202
|
-
if (mod && mod.__esModule) return mod;
|
|
203
|
-
var result = {};
|
|
204
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
205
|
-
result.default = mod;
|
|
206
|
-
return result;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
function __importDefault(mod) {
|
|
210
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
function __classPrivateFieldGet(receiver, privateMap) {
|
|
214
|
-
if (!privateMap.has(receiver)) {
|
|
215
|
-
throw new TypeError("attempted to get private field on non-instance");
|
|
216
|
-
}
|
|
217
|
-
return privateMap.get(receiver);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
function __classPrivateFieldSet(receiver, privateMap, value) {
|
|
221
|
-
if (!privateMap.has(receiver)) {
|
|
222
|
-
throw new TypeError("attempted to set private field on non-instance");
|
|
223
|
-
}
|
|
224
|
-
privateMap.set(receiver, value);
|
|
225
|
-
return value;
|
|
9
|
+
function _interopNamespace(e) {
|
|
10
|
+
if (e && e.__esModule) return e;
|
|
11
|
+
var n = Object.create(null);
|
|
12
|
+
if (e) {
|
|
13
|
+
Object.keys(e).forEach(function (k) {
|
|
14
|
+
if (k !== 'default') {
|
|
15
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
n['default'] = e;
|
|
26
|
+
return Object.freeze(n);
|
|
226
27
|
}
|
|
227
28
|
|
|
228
|
-
|
|
229
|
-
|
|
29
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
30
|
+
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
31
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
+
var createDOMPurify__default = /*#__PURE__*/_interopDefaultLegacy(createDOMPurify);
|
|
33
|
+
var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
|
|
34
|
+
var i6__namespace$1 = /*#__PURE__*/_interopNamespace(i6$1);
|
|
35
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
36
|
+
var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
|
|
37
|
+
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
38
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
39
|
+
var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
|
|
40
|
+
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
|
|
41
|
+
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
42
|
+
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
43
|
+
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
230
44
|
|
|
231
|
-
var domPurify =
|
|
45
|
+
var domPurify = createDOMPurify__default['default'](window);
|
|
232
46
|
domPurify.addHook('afterSanitizeAttributes', function (node) {
|
|
233
47
|
// Set all elements owning target to target=_blank
|
|
234
48
|
// so we only allow the target attribute with that value.
|
|
@@ -253,14 +67,16 @@
|
|
|
253
67
|
SkyTextSanitizationService.prototype.sanitize = function (htmlString) {
|
|
254
68
|
return domPurify.sanitize(htmlString, { ADD_ATTR: this.allowedAttributes });
|
|
255
69
|
};
|
|
256
|
-
SkyTextSanitizationService.ɵprov = core.ɵɵdefineInjectable({ factory: function SkyTextSanitizationService_Factory() { return new SkyTextSanitizationService(); }, token: SkyTextSanitizationService, providedIn: "root" });
|
|
257
|
-
SkyTextSanitizationService = __decorate([
|
|
258
|
-
core.Injectable({
|
|
259
|
-
providedIn: 'root'
|
|
260
|
-
})
|
|
261
|
-
], SkyTextSanitizationService);
|
|
262
70
|
return SkyTextSanitizationService;
|
|
263
71
|
}());
|
|
72
|
+
SkyTextSanitizationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextSanitizationService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
73
|
+
SkyTextSanitizationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextSanitizationService, providedIn: 'root' });
|
|
74
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextSanitizationService, decorators: [{
|
|
75
|
+
type: i0.Injectable,
|
|
76
|
+
args: [{
|
|
77
|
+
providedIn: 'root'
|
|
78
|
+
}]
|
|
79
|
+
}] });
|
|
264
80
|
|
|
265
81
|
var SkyRichTextDisplayComponent = /** @class */ (function () {
|
|
266
82
|
function SkyRichTextDisplayComponent(sanitizer, sanitizationService) {
|
|
@@ -282,73 +98,422 @@
|
|
|
282
98
|
this.sanitizedText = this.sanitizer.bypassSecurityTrustHtml(cleaned);
|
|
283
99
|
}
|
|
284
100
|
},
|
|
285
|
-
enumerable:
|
|
101
|
+
enumerable: false,
|
|
286
102
|
configurable: true
|
|
287
103
|
});
|
|
288
|
-
SkyRichTextDisplayComponent.ctorParameters = function () { return [
|
|
289
|
-
{ type: platformBrowser.DomSanitizer },
|
|
290
|
-
{ type: SkyTextSanitizationService }
|
|
291
|
-
]; };
|
|
292
|
-
__decorate([
|
|
293
|
-
core.Input()
|
|
294
|
-
], SkyRichTextDisplayComponent.prototype, "richText", null);
|
|
295
|
-
SkyRichTextDisplayComponent = __decorate([
|
|
296
|
-
core.Component({
|
|
297
|
-
selector: 'sky-rich-text-display',
|
|
298
|
-
template: "<span\n class=\"sky-rich-text-display-text\"\n [innerHTML]=\"sanitizedText\"\n>\n</span>\n"
|
|
299
|
-
})
|
|
300
|
-
], SkyRichTextDisplayComponent);
|
|
301
104
|
return SkyRichTextDisplayComponent;
|
|
302
105
|
}());
|
|
106
|
+
SkyRichTextDisplayComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyRichTextDisplayComponent, deps: [{ token: i1__namespace.DomSanitizer }, { token: SkyTextSanitizationService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
107
|
+
SkyRichTextDisplayComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyRichTextDisplayComponent, selector: "sky-rich-text-display", inputs: { richText: "richText" }, ngImport: i0__namespace, template: "<span\n class=\"sky-rich-text-display-text\"\n [innerHTML]=\"sanitizedText\"\n>\n</span>\n" });
|
|
108
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyRichTextDisplayComponent, decorators: [{
|
|
109
|
+
type: i0.Component,
|
|
110
|
+
args: [{
|
|
111
|
+
selector: 'sky-rich-text-display',
|
|
112
|
+
templateUrl: './rich-text-display.component.html'
|
|
113
|
+
}]
|
|
114
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.DomSanitizer }, { type: SkyTextSanitizationService }]; }, propDecorators: { richText: [{
|
|
115
|
+
type: i0.Input
|
|
116
|
+
}] } });
|
|
303
117
|
|
|
304
118
|
var SkyRichTextDisplayModule = /** @class */ (function () {
|
|
305
119
|
function SkyRichTextDisplayModule() {
|
|
306
120
|
}
|
|
307
|
-
SkyRichTextDisplayModule = __decorate([
|
|
308
|
-
core.NgModule({
|
|
309
|
-
imports: [
|
|
310
|
-
common.CommonModule
|
|
311
|
-
],
|
|
312
|
-
exports: [
|
|
313
|
-
SkyRichTextDisplayComponent
|
|
314
|
-
],
|
|
315
|
-
declarations: [
|
|
316
|
-
SkyRichTextDisplayComponent
|
|
317
|
-
]
|
|
318
|
-
})
|
|
319
|
-
], SkyRichTextDisplayModule);
|
|
320
121
|
return SkyRichTextDisplayModule;
|
|
321
122
|
}());
|
|
123
|
+
SkyRichTextDisplayModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyRichTextDisplayModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
124
|
+
SkyRichTextDisplayModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyRichTextDisplayModule, declarations: [SkyRichTextDisplayComponent], imports: [i8.CommonModule], exports: [SkyRichTextDisplayComponent] });
|
|
125
|
+
SkyRichTextDisplayModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyRichTextDisplayModule, imports: [[
|
|
126
|
+
i8.CommonModule
|
|
127
|
+
]] });
|
|
128
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyRichTextDisplayModule, decorators: [{
|
|
129
|
+
type: i0.NgModule,
|
|
130
|
+
args: [{
|
|
131
|
+
imports: [
|
|
132
|
+
i8.CommonModule
|
|
133
|
+
],
|
|
134
|
+
exports: [
|
|
135
|
+
SkyRichTextDisplayComponent
|
|
136
|
+
],
|
|
137
|
+
declarations: [
|
|
138
|
+
SkyRichTextDisplayComponent
|
|
139
|
+
]
|
|
140
|
+
}]
|
|
141
|
+
}] });
|
|
322
142
|
|
|
143
|
+
/**
|
|
144
|
+
* NOTICE: DO NOT MODIFY THIS FILE!
|
|
145
|
+
* The contents of this file were automatically generated by
|
|
146
|
+
* the 'ng generate @skyux/i18n:lib-resources-module modules/shared/sky-text-editor' schematic.
|
|
147
|
+
* To update this file, simply rerun the command.
|
|
148
|
+
*/
|
|
149
|
+
var RESOURCES = {
|
|
150
|
+
'EN-US': { "skyux_text_editor_format_menu_action_bold_label": { "message": "Bold" }, "skyux_text_editor_format_menu_action_bold_key_shortcut": { "message": "Ctrl+B" }, "skyux_text_editor_format_menu_action_italic_label": { "message": "Italic" }, "skyux_text_editor_format_menu_action_italic_key_shortcut": { "message": "Ctrl+I" }, "skyux_text_editor_format_menu_action_underline_label": { "message": "Underline" }, "skyux_text_editor_format_menu_action_underline_key_shortcut": { "message": "Ctrl+U" }, "skyux_text_editor_format_menu_action_strikethrough_label": { "message": "Strikethrough" }, "skyux_text_editor_format_menu_action_clear_formatting_label": { "message": "Clear formatting" }, "skyux_text_editor_edit_menu_action_undo_label": { "message": "Undo" }, "skyux_text_editor_edit_menu_action_undo_key_shortcut": { "message": "Ctrl+Z" }, "skyux_text_editor_edit_menu_action_redo_label": { "message": "Redo" }, "skyux_text_editor_edit_menu_action_redo_key_shortcut": { "message": "Ctrl+Y" }, "skyux_text_editor_edit_menu_action_cut_label": { "message": "Cut" }, "skyux_text_editor_edit_menu_action_cut_key_shortcut": { "message": "Ctrl+X" }, "skyux_text_editor_edit_menu_action_copy_label": { "message": "Copy" }, "skyux_text_editor_edit_menu_action_copy_key_shortcut": { "message": "Ctrl+C" }, "skyux_text_editor_edit_menu_action_paste_label": { "message": "Paste" }, "skyux_text_editor_edit_menu_action_paste_key_shortcut": { "message": "Ctrl+V" }, "skyux_text_editor_edit_menu_action_select_all_label": { "message": "Select all" }, "skyux_text_editor_edit_menu_action_select_all_key_shortcut": { "message": "Ctrl+A" }, "skyux_text_editor_menubar_dropdown_button_edit_label": { "message": "Edit" }, "skyux_text_editor_menubar_dropdown_button_format_label": { "message": "Format" }, "skyux_text_editor_menubar_dropdown_button_insert_label": { "message": "Insert merge field" }, "skyux_text_editor_url_modal_header_label": { "message": "Create link" }, "skyux_text_editor_url_modal_url_label": { "message": "Enter a URL to link to:" }, "skyux_text_editor_url_modal_open_label": { "message": "Where should it open?" }, "skyux_text_editor_url_modal_current_option_label": { "message": "Current window" }, "skyux_text_editor_url_modal_new_option_label": { "message": "New window" }, "skyux_text_editor_url_modal_email_label": { "message": "Email address" }, "skyux_text_editor_url_modal_subject_label": { "message": "Subject line" }, "skyux_text_editor_url_modal_save_button_label": { "message": "Save" }, "skyux_text_editor_url_modal_cancel_button_label": { "message": "Cancel" } },
|
|
151
|
+
};
|
|
323
152
|
var SkyTextEditorResourcesProvider = /** @class */ (function () {
|
|
324
153
|
function SkyTextEditorResourcesProvider() {
|
|
325
|
-
this.resources = { "EN-US": { "skyux_text_editor_format_menu_action_bold_label": "Bold", "skyux_text_editor_format_menu_action_bold_key_shortcut": "Ctrl+B", "skyux_text_editor_format_menu_action_italic_label": "Italic", "skyux_text_editor_format_menu_action_italic_key_shortcut": "Ctrl+I", "skyux_text_editor_format_menu_action_underline_label": "Underline", "skyux_text_editor_format_menu_action_underline_key_shortcut": "Ctrl+U", "skyux_text_editor_format_menu_action_strikethrough_label": "Strikethrough", "skyux_text_editor_format_menu_action_clear_formatting_label": "Clear formatting", "skyux_text_editor_edit_menu_action_undo_label": "Undo", "skyux_text_editor_edit_menu_action_undo_key_shortcut": "Ctrl+Z", "skyux_text_editor_edit_menu_action_redo_label": "Redo", "skyux_text_editor_edit_menu_action_redo_key_shortcut": "Ctrl+Y", "skyux_text_editor_edit_menu_action_cut_label": "Cut", "skyux_text_editor_edit_menu_action_cut_key_shortcut": "Ctrl+X", "skyux_text_editor_edit_menu_action_copy_label": "Copy", "skyux_text_editor_edit_menu_action_copy_key_shortcut": "Ctrl+C", "skyux_text_editor_edit_menu_action_paste_label": "Paste", "skyux_text_editor_edit_menu_action_paste_key_shortcut": "Ctrl+V", "skyux_text_editor_edit_menu_action_select_all_label": "Select all", "skyux_text_editor_edit_menu_action_select_all_key_shortcut": "Ctrl+A", "skyux_text_editor_menubar_dropdown_button_edit_label": "Edit", "skyux_text_editor_menubar_dropdown_button_format_label": "Format", "skyux_text_editor_menubar_dropdown_button_insert_label": "Insert merge field", "skyux_text_editor_url_modal_header_label": "Create link", "skyux_text_editor_url_modal_url_label": "Enter a URL to link to:", "skyux_text_editor_url_modal_open_label": "Where should it open?", "skyux_text_editor_url_modal_current_option_label": "Current window", "skyux_text_editor_url_modal_new_option_label": "New window", "skyux_text_editor_url_modal_email_label": "Email address", "skyux_text_editor_url_modal_subject_label": "Subject line", "skyux_text_editor_url_modal_save_button_label": "Save", "skyux_text_editor_url_modal_cancel_button_label": "Cancel" } };
|
|
326
154
|
}
|
|
327
155
|
SkyTextEditorResourcesProvider.prototype.getString = function (localeInfo, name) {
|
|
328
|
-
return
|
|
156
|
+
return i2.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
|
|
329
157
|
};
|
|
330
|
-
SkyTextEditorResourcesProvider = __decorate([
|
|
331
|
-
core.Injectable()
|
|
332
|
-
], SkyTextEditorResourcesProvider);
|
|
333
158
|
return SkyTextEditorResourcesProvider;
|
|
334
159
|
}());
|
|
335
|
-
|
|
160
|
+
/**
|
|
161
|
+
* Import into any component library module that needs to use resource strings.
|
|
162
|
+
*/
|
|
336
163
|
var SkyTextEditorResourcesModule = /** @class */ (function () {
|
|
337
164
|
function SkyTextEditorResourcesModule() {
|
|
338
165
|
}
|
|
339
|
-
SkyTextEditorResourcesModule = __decorate([
|
|
340
|
-
core.NgModule({
|
|
341
|
-
providers: [
|
|
342
|
-
{
|
|
343
|
-
provide: i18n.SKY_LIB_RESOURCES_PROVIDERS,
|
|
344
|
-
useClass: SkyTextEditorResourcesProvider,
|
|
345
|
-
multi: true
|
|
346
|
-
}
|
|
347
|
-
]
|
|
348
|
-
})
|
|
349
|
-
], SkyTextEditorResourcesModule);
|
|
350
166
|
return SkyTextEditorResourcesModule;
|
|
351
167
|
}());
|
|
168
|
+
SkyTextEditorResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
169
|
+
SkyTextEditorResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorResourcesModule, exports: [i2.SkyI18nModule] });
|
|
170
|
+
SkyTextEditorResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorResourcesModule, providers: [{
|
|
171
|
+
provide: i2.SKY_LIB_RESOURCES_PROVIDERS,
|
|
172
|
+
useClass: SkyTextEditorResourcesProvider,
|
|
173
|
+
multi: true
|
|
174
|
+
}], imports: [i2.SkyI18nModule] });
|
|
175
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorResourcesModule, decorators: [{
|
|
176
|
+
type: i0.NgModule,
|
|
177
|
+
args: [{
|
|
178
|
+
exports: [i2.SkyI18nModule],
|
|
179
|
+
providers: [{
|
|
180
|
+
provide: i2.SKY_LIB_RESOURCES_PROVIDERS,
|
|
181
|
+
useClass: SkyTextEditorResourcesProvider,
|
|
182
|
+
multi: true
|
|
183
|
+
}]
|
|
184
|
+
}]
|
|
185
|
+
}] });
|
|
186
|
+
|
|
187
|
+
// Need to add the following to classes which contain static methods.
|
|
188
|
+
// See: https://github.com/ng-packagr/ng-packagr/issues/641
|
|
189
|
+
// @dynamic
|
|
190
|
+
var SkyFormsUtility = /** @class */ (function () {
|
|
191
|
+
function SkyFormsUtility() {
|
|
192
|
+
}
|
|
193
|
+
/** Coerces a data-bound value (typically a string) to a boolean. */
|
|
194
|
+
SkyFormsUtility.coerceBooleanProperty = function (value) {
|
|
195
|
+
return value !== undefined && "" + value !== 'false';
|
|
196
|
+
};
|
|
197
|
+
return SkyFormsUtility;
|
|
198
|
+
}());
|
|
199
|
+
|
|
200
|
+
/*! *****************************************************************************
|
|
201
|
+
Copyright (c) Microsoft Corporation.
|
|
202
|
+
|
|
203
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
204
|
+
purpose with or without fee is hereby granted.
|
|
205
|
+
|
|
206
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
207
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
208
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
209
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
210
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
211
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
212
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
213
|
+
***************************************************************************** */
|
|
214
|
+
/* global Reflect, Promise */
|
|
215
|
+
var extendStatics = function (d, b) {
|
|
216
|
+
extendStatics = Object.setPrototypeOf ||
|
|
217
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
218
|
+
function (d, b) { for (var p in b)
|
|
219
|
+
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
220
|
+
d[p] = b[p]; };
|
|
221
|
+
return extendStatics(d, b);
|
|
222
|
+
};
|
|
223
|
+
function __extends(d, b) {
|
|
224
|
+
if (typeof b !== "function" && b !== null)
|
|
225
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
226
|
+
extendStatics(d, b);
|
|
227
|
+
function __() { this.constructor = d; }
|
|
228
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
229
|
+
}
|
|
230
|
+
var __assign = function () {
|
|
231
|
+
__assign = Object.assign || function __assign(t) {
|
|
232
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
233
|
+
s = arguments[i];
|
|
234
|
+
for (var p in s)
|
|
235
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
236
|
+
t[p] = s[p];
|
|
237
|
+
}
|
|
238
|
+
return t;
|
|
239
|
+
};
|
|
240
|
+
return __assign.apply(this, arguments);
|
|
241
|
+
};
|
|
242
|
+
function __rest(s, e) {
|
|
243
|
+
var t = {};
|
|
244
|
+
for (var p in s)
|
|
245
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
246
|
+
t[p] = s[p];
|
|
247
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
248
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
249
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
250
|
+
t[p[i]] = s[p[i]];
|
|
251
|
+
}
|
|
252
|
+
return t;
|
|
253
|
+
}
|
|
254
|
+
function __decorate(decorators, target, key, desc) {
|
|
255
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
256
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
257
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
258
|
+
else
|
|
259
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
260
|
+
if (d = decorators[i])
|
|
261
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
262
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
263
|
+
}
|
|
264
|
+
function __param(paramIndex, decorator) {
|
|
265
|
+
return function (target, key) { decorator(target, key, paramIndex); };
|
|
266
|
+
}
|
|
267
|
+
function __metadata(metadataKey, metadataValue) {
|
|
268
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
269
|
+
return Reflect.metadata(metadataKey, metadataValue);
|
|
270
|
+
}
|
|
271
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
272
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
273
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
274
|
+
function fulfilled(value) { try {
|
|
275
|
+
step(generator.next(value));
|
|
276
|
+
}
|
|
277
|
+
catch (e) {
|
|
278
|
+
reject(e);
|
|
279
|
+
} }
|
|
280
|
+
function rejected(value) { try {
|
|
281
|
+
step(generator["throw"](value));
|
|
282
|
+
}
|
|
283
|
+
catch (e) {
|
|
284
|
+
reject(e);
|
|
285
|
+
} }
|
|
286
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
287
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
function __generator(thisArg, body) {
|
|
291
|
+
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
292
|
+
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
293
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
294
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
295
|
+
function step(op) {
|
|
296
|
+
if (f)
|
|
297
|
+
throw new TypeError("Generator is already executing.");
|
|
298
|
+
while (_)
|
|
299
|
+
try {
|
|
300
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
301
|
+
return t;
|
|
302
|
+
if (y = 0, t)
|
|
303
|
+
op = [op[0] & 2, t.value];
|
|
304
|
+
switch (op[0]) {
|
|
305
|
+
case 0:
|
|
306
|
+
case 1:
|
|
307
|
+
t = op;
|
|
308
|
+
break;
|
|
309
|
+
case 4:
|
|
310
|
+
_.label++;
|
|
311
|
+
return { value: op[1], done: false };
|
|
312
|
+
case 5:
|
|
313
|
+
_.label++;
|
|
314
|
+
y = op[1];
|
|
315
|
+
op = [0];
|
|
316
|
+
continue;
|
|
317
|
+
case 7:
|
|
318
|
+
op = _.ops.pop();
|
|
319
|
+
_.trys.pop();
|
|
320
|
+
continue;
|
|
321
|
+
default:
|
|
322
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
323
|
+
_ = 0;
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
327
|
+
_.label = op[1];
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
331
|
+
_.label = t[1];
|
|
332
|
+
t = op;
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
if (t && _.label < t[2]) {
|
|
336
|
+
_.label = t[2];
|
|
337
|
+
_.ops.push(op);
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
if (t[2])
|
|
341
|
+
_.ops.pop();
|
|
342
|
+
_.trys.pop();
|
|
343
|
+
continue;
|
|
344
|
+
}
|
|
345
|
+
op = body.call(thisArg, _);
|
|
346
|
+
}
|
|
347
|
+
catch (e) {
|
|
348
|
+
op = [6, e];
|
|
349
|
+
y = 0;
|
|
350
|
+
}
|
|
351
|
+
finally {
|
|
352
|
+
f = t = 0;
|
|
353
|
+
}
|
|
354
|
+
if (op[0] & 5)
|
|
355
|
+
throw op[1];
|
|
356
|
+
return { value: op[0] ? op[1] : void 0, done: true };
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
360
|
+
if (k2 === undefined)
|
|
361
|
+
k2 = k;
|
|
362
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
363
|
+
}) : (function (o, m, k, k2) {
|
|
364
|
+
if (k2 === undefined)
|
|
365
|
+
k2 = k;
|
|
366
|
+
o[k2] = m[k];
|
|
367
|
+
});
|
|
368
|
+
function __exportStar(m, o) {
|
|
369
|
+
for (var p in m)
|
|
370
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
371
|
+
__createBinding(o, m, p);
|
|
372
|
+
}
|
|
373
|
+
function __values(o) {
|
|
374
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
375
|
+
if (m)
|
|
376
|
+
return m.call(o);
|
|
377
|
+
if (o && typeof o.length === "number")
|
|
378
|
+
return {
|
|
379
|
+
next: function () {
|
|
380
|
+
if (o && i >= o.length)
|
|
381
|
+
o = void 0;
|
|
382
|
+
return { value: o && o[i++], done: !o };
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
386
|
+
}
|
|
387
|
+
function __read(o, n) {
|
|
388
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
389
|
+
if (!m)
|
|
390
|
+
return o;
|
|
391
|
+
var i = m.call(o), r, ar = [], e;
|
|
392
|
+
try {
|
|
393
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
394
|
+
ar.push(r.value);
|
|
395
|
+
}
|
|
396
|
+
catch (error) {
|
|
397
|
+
e = { error: error };
|
|
398
|
+
}
|
|
399
|
+
finally {
|
|
400
|
+
try {
|
|
401
|
+
if (r && !r.done && (m = i["return"]))
|
|
402
|
+
m.call(i);
|
|
403
|
+
}
|
|
404
|
+
finally {
|
|
405
|
+
if (e)
|
|
406
|
+
throw e.error;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
return ar;
|
|
410
|
+
}
|
|
411
|
+
/** @deprecated */
|
|
412
|
+
function __spread() {
|
|
413
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
414
|
+
ar = ar.concat(__read(arguments[i]));
|
|
415
|
+
return ar;
|
|
416
|
+
}
|
|
417
|
+
/** @deprecated */
|
|
418
|
+
function __spreadArrays() {
|
|
419
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
420
|
+
s += arguments[i].length;
|
|
421
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
422
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
423
|
+
r[k] = a[j];
|
|
424
|
+
return r;
|
|
425
|
+
}
|
|
426
|
+
function __spreadArray(to, from, pack) {
|
|
427
|
+
if (pack || arguments.length === 2)
|
|
428
|
+
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
429
|
+
if (ar || !(i in from)) {
|
|
430
|
+
if (!ar)
|
|
431
|
+
ar = Array.prototype.slice.call(from, 0, i);
|
|
432
|
+
ar[i] = from[i];
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
return to.concat(ar || from);
|
|
436
|
+
}
|
|
437
|
+
function __await(v) {
|
|
438
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
439
|
+
}
|
|
440
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
441
|
+
if (!Symbol.asyncIterator)
|
|
442
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
443
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
444
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
445
|
+
function verb(n) { if (g[n])
|
|
446
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
447
|
+
function resume(n, v) { try {
|
|
448
|
+
step(g[n](v));
|
|
449
|
+
}
|
|
450
|
+
catch (e) {
|
|
451
|
+
settle(q[0][3], e);
|
|
452
|
+
} }
|
|
453
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
454
|
+
function fulfill(value) { resume("next", value); }
|
|
455
|
+
function reject(value) { resume("throw", value); }
|
|
456
|
+
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
457
|
+
resume(q[0][0], q[0][1]); }
|
|
458
|
+
}
|
|
459
|
+
function __asyncDelegator(o) {
|
|
460
|
+
var i, p;
|
|
461
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
462
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
463
|
+
}
|
|
464
|
+
function __asyncValues(o) {
|
|
465
|
+
if (!Symbol.asyncIterator)
|
|
466
|
+
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
467
|
+
var m = o[Symbol.asyncIterator], i;
|
|
468
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
469
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
470
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
471
|
+
}
|
|
472
|
+
function __makeTemplateObject(cooked, raw) {
|
|
473
|
+
if (Object.defineProperty) {
|
|
474
|
+
Object.defineProperty(cooked, "raw", { value: raw });
|
|
475
|
+
}
|
|
476
|
+
else {
|
|
477
|
+
cooked.raw = raw;
|
|
478
|
+
}
|
|
479
|
+
return cooked;
|
|
480
|
+
}
|
|
481
|
+
;
|
|
482
|
+
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
483
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
484
|
+
}) : function (o, v) {
|
|
485
|
+
o["default"] = v;
|
|
486
|
+
};
|
|
487
|
+
function __importStar(mod) {
|
|
488
|
+
if (mod && mod.__esModule)
|
|
489
|
+
return mod;
|
|
490
|
+
var result = {};
|
|
491
|
+
if (mod != null)
|
|
492
|
+
for (var k in mod)
|
|
493
|
+
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
494
|
+
__createBinding(result, mod, k);
|
|
495
|
+
__setModuleDefault(result, mod);
|
|
496
|
+
return result;
|
|
497
|
+
}
|
|
498
|
+
function __importDefault(mod) {
|
|
499
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
500
|
+
}
|
|
501
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
502
|
+
if (kind === "a" && !f)
|
|
503
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
504
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
505
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
506
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
507
|
+
}
|
|
508
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
509
|
+
if (kind === "m")
|
|
510
|
+
throw new TypeError("Private method is not writable");
|
|
511
|
+
if (kind === "a" && !f)
|
|
512
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
513
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
514
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
515
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
516
|
+
}
|
|
352
517
|
|
|
353
518
|
/**
|
|
354
519
|
* @internal
|
|
@@ -415,51 +580,6 @@
|
|
|
415
580
|
UrlTarget[UrlTarget["NewWindow"] = 1] = "NewWindow";
|
|
416
581
|
})(UrlTarget || (UrlTarget = {}));
|
|
417
582
|
|
|
418
|
-
/**
|
|
419
|
-
* @internal
|
|
420
|
-
*/
|
|
421
|
-
var SkyTextEditorService = /** @class */ (function () {
|
|
422
|
-
function SkyTextEditorService() {
|
|
423
|
-
/**
|
|
424
|
-
* A dictionary representing all active text editors and their settings.
|
|
425
|
-
*/
|
|
426
|
-
this.editors = {};
|
|
427
|
-
}
|
|
428
|
-
/**
|
|
429
|
-
* Returns the click observable from the editor with the corresponding id.
|
|
430
|
-
*/
|
|
431
|
-
SkyTextEditorService.prototype.clickListener = function (id) {
|
|
432
|
-
return this.editors[id].clickObservable;
|
|
433
|
-
};
|
|
434
|
-
/**
|
|
435
|
-
* Returns the command change observable from the editor with the corresponding id.
|
|
436
|
-
*/
|
|
437
|
-
SkyTextEditorService.prototype.commandChangeListener = function (id) {
|
|
438
|
-
return this.editors[id].commandChangeObservable;
|
|
439
|
-
};
|
|
440
|
-
/**
|
|
441
|
-
* Removes editor from the `editors` index by id.
|
|
442
|
-
*/
|
|
443
|
-
SkyTextEditorService.prototype.removeEditor = function (id) {
|
|
444
|
-
if (id in this.editors) {
|
|
445
|
-
delete this.editors[id];
|
|
446
|
-
}
|
|
447
|
-
};
|
|
448
|
-
/**
|
|
449
|
-
* Returns the selection change observable from the editor with the corresponding id.
|
|
450
|
-
*/
|
|
451
|
-
SkyTextEditorService.prototype.selectionChangeListener = function (id) {
|
|
452
|
-
return this.editors[id].selectionChangeObservable;
|
|
453
|
-
};
|
|
454
|
-
SkyTextEditorService.ɵprov = core.ɵɵdefineInjectable({ factory: function SkyTextEditorService_Factory() { return new SkyTextEditorService(); }, token: SkyTextEditorService, providedIn: "root" });
|
|
455
|
-
SkyTextEditorService = __decorate([
|
|
456
|
-
core.Injectable({
|
|
457
|
-
providedIn: 'root'
|
|
458
|
-
})
|
|
459
|
-
], SkyTextEditorService);
|
|
460
|
-
return SkyTextEditorService;
|
|
461
|
-
}());
|
|
462
|
-
|
|
463
583
|
/**
|
|
464
584
|
* @internal
|
|
465
585
|
*/
|
|
@@ -469,8 +589,7 @@
|
|
|
469
589
|
SkyTextEditorSelectionService.prototype.isElementSelected = function (documentEl, element) {
|
|
470
590
|
var selectedNode = this.getCurrentSelection(documentEl).anchorNode;
|
|
471
591
|
return selectedNode &&
|
|
472
|
-
(element.contains(selectedNode) ||
|
|
473
|
-
(selectedNode.parentNode && element.contains(selectedNode.parentNode)));
|
|
592
|
+
(element.contains(selectedNode) || (selectedNode.parentNode && element.contains(selectedNode.parentNode)));
|
|
474
593
|
};
|
|
475
594
|
SkyTextEditorSelectionService.prototype.getCurrentSelection = function (documentEl) {
|
|
476
595
|
return documentEl.getSelection();
|
|
@@ -524,14 +643,63 @@
|
|
|
524
643
|
}
|
|
525
644
|
}
|
|
526
645
|
};
|
|
527
|
-
SkyTextEditorSelectionService.ɵprov = core.ɵɵdefineInjectable({ factory: function SkyTextEditorSelectionService_Factory() { return new SkyTextEditorSelectionService(); }, token: SkyTextEditorSelectionService, providedIn: "root" });
|
|
528
|
-
SkyTextEditorSelectionService = __decorate([
|
|
529
|
-
core.Injectable({
|
|
530
|
-
providedIn: 'root'
|
|
531
|
-
})
|
|
532
|
-
], SkyTextEditorSelectionService);
|
|
533
646
|
return SkyTextEditorSelectionService;
|
|
534
647
|
}());
|
|
648
|
+
SkyTextEditorSelectionService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorSelectionService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
649
|
+
SkyTextEditorSelectionService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorSelectionService, providedIn: 'root' });
|
|
650
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorSelectionService, decorators: [{
|
|
651
|
+
type: i0.Injectable,
|
|
652
|
+
args: [{
|
|
653
|
+
providedIn: 'root'
|
|
654
|
+
}]
|
|
655
|
+
}] });
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* @internal
|
|
659
|
+
*/
|
|
660
|
+
var SkyTextEditorService = /** @class */ (function () {
|
|
661
|
+
function SkyTextEditorService() {
|
|
662
|
+
/**
|
|
663
|
+
* A dictionary representing all active text editors and their settings.
|
|
664
|
+
*/
|
|
665
|
+
this.editors = {};
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Returns the click observable from the editor with the corresponding id.
|
|
669
|
+
*/
|
|
670
|
+
SkyTextEditorService.prototype.clickListener = function (id) {
|
|
671
|
+
return this.editors[id].clickObservable;
|
|
672
|
+
};
|
|
673
|
+
/**
|
|
674
|
+
* Returns the command change observable from the editor with the corresponding id.
|
|
675
|
+
*/
|
|
676
|
+
SkyTextEditorService.prototype.commandChangeListener = function (id) {
|
|
677
|
+
return this.editors[id].commandChangeObservable;
|
|
678
|
+
};
|
|
679
|
+
/**
|
|
680
|
+
* Removes editor from the `editors` index by id.
|
|
681
|
+
*/
|
|
682
|
+
SkyTextEditorService.prototype.removeEditor = function (id) {
|
|
683
|
+
if (id in this.editors) {
|
|
684
|
+
delete this.editors[id];
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
/**
|
|
688
|
+
* Returns the selection change observable from the editor with the corresponding id.
|
|
689
|
+
*/
|
|
690
|
+
SkyTextEditorService.prototype.selectionChangeListener = function (id) {
|
|
691
|
+
return this.editors[id].selectionChangeObservable;
|
|
692
|
+
};
|
|
693
|
+
return SkyTextEditorService;
|
|
694
|
+
}());
|
|
695
|
+
SkyTextEditorService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
696
|
+
SkyTextEditorService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorService, providedIn: 'root' });
|
|
697
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorService, decorators: [{
|
|
698
|
+
type: i0.Injectable,
|
|
699
|
+
args: [{
|
|
700
|
+
providedIn: 'root'
|
|
701
|
+
}]
|
|
702
|
+
}] });
|
|
535
703
|
|
|
536
704
|
/**
|
|
537
705
|
* @internal
|
|
@@ -546,7 +714,7 @@
|
|
|
546
714
|
get: function () {
|
|
547
715
|
return this.textEditorService.editors;
|
|
548
716
|
},
|
|
549
|
-
enumerable:
|
|
717
|
+
enumerable: false,
|
|
550
718
|
configurable: true
|
|
551
719
|
});
|
|
552
720
|
/**
|
|
@@ -559,7 +727,7 @@
|
|
|
559
727
|
var styleEl = documentEl.createElement('style');
|
|
560
728
|
styleEl.innerHTML = ".editor:empty:before {\n content: attr(data-placeholder);\n font-family: \"Blackbaud Sans\", Arial, sans-serif;\n color: #686c73;\n font-weight: 400;\n font-size: 15px;\n font-style: italic;\n }";
|
|
561
729
|
documentEl.head.appendChild(styleEl);
|
|
562
|
-
var style =
|
|
730
|
+
var style = Object.assign(Object.assign({}, STYLE_STATE_DEFAULTS), styleState);
|
|
563
731
|
var bodyStyle = "background-color: " + style.backColor + ";\n color: " + style.fontColor + ";\n font-family: " + style.font + ";\n font-size: " + style.fontSize + "px";
|
|
564
732
|
documentEl.querySelector('html').setAttribute('lang', 'en');
|
|
565
733
|
documentEl.body.setAttribute('contenteditable', 'true');
|
|
@@ -943,13 +1111,13 @@
|
|
|
943
1111
|
try {
|
|
944
1112
|
for (var removableElements_1 = __values(removableElements), removableElements_1_1 = removableElements_1.next(); !removableElements_1_1.done; removableElements_1_1 = removableElements_1.next()) {
|
|
945
1113
|
var element = removableElements_1_1.value;
|
|
946
|
-
var
|
|
1114
|
+
var parent = element.parentNode;
|
|
947
1115
|
/* istanbul ignore else */
|
|
948
|
-
if (
|
|
1116
|
+
if (parent) {
|
|
949
1117
|
while (element.firstChild) {
|
|
950
|
-
|
|
1118
|
+
parent.insertBefore(element.firstChild, element);
|
|
951
1119
|
}
|
|
952
|
-
|
|
1120
|
+
parent.removeChild(element);
|
|
953
1121
|
}
|
|
954
1122
|
}
|
|
955
1123
|
}
|
|
@@ -971,37 +1139,24 @@
|
|
|
971
1139
|
SkyTextEditorAdapterService.prototype.setEditorDisabled = function (id, focusableChildren, textEditorNativeElement, disabled) {
|
|
972
1140
|
textEditorNativeElement.style.pointerEvents = disabled ? 'none' : 'auto';
|
|
973
1141
|
textEditorNativeElement.setAttribute('aria-disabled', disabled ? 'true' : 'false');
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
1142
|
+
/* istanbul ignore else */
|
|
1143
|
+
if (focusableChildren.length > 0) {
|
|
1144
|
+
focusableChildren.forEach(function (aFocusableChild) {
|
|
1145
|
+
aFocusableChild.tabIndex = disabled ? -1 : 0;
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
977
1148
|
this.getIframeDocumentEl(id).body.setAttribute('contenteditable', disabled ? 'false' : 'true');
|
|
978
1149
|
};
|
|
979
|
-
SkyTextEditorAdapterService.ctorParameters = function () { return [
|
|
980
|
-
{ type: SkyTextEditorSelectionService },
|
|
981
|
-
{ type: SkyTextEditorService },
|
|
982
|
-
{ type: core$1.SkyAppWindowRef }
|
|
983
|
-
]; };
|
|
984
|
-
SkyTextEditorAdapterService.ɵprov = core.ɵɵdefineInjectable({ factory: function SkyTextEditorAdapterService_Factory() { return new SkyTextEditorAdapterService(core.ɵɵinject(SkyTextEditorSelectionService), core.ɵɵinject(SkyTextEditorService), core.ɵɵinject(core$1.SkyAppWindowRef)); }, token: SkyTextEditorAdapterService, providedIn: "root" });
|
|
985
|
-
SkyTextEditorAdapterService = __decorate([
|
|
986
|
-
core.Injectable({
|
|
987
|
-
providedIn: 'root'
|
|
988
|
-
})
|
|
989
|
-
], SkyTextEditorAdapterService);
|
|
990
1150
|
return SkyTextEditorAdapterService;
|
|
991
1151
|
}());
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
SkyFormsUtility.coerceBooleanProperty = function (value) {
|
|
1001
|
-
return value !== undefined && "" + value !== 'false';
|
|
1002
|
-
};
|
|
1003
|
-
return SkyFormsUtility;
|
|
1004
|
-
}());
|
|
1152
|
+
SkyTextEditorAdapterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorAdapterService, deps: [{ token: SkyTextEditorSelectionService }, { token: SkyTextEditorService }, { token: i3__namespace.SkyAppWindowRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1153
|
+
SkyTextEditorAdapterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorAdapterService, providedIn: 'root' });
|
|
1154
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorAdapterService, decorators: [{
|
|
1155
|
+
type: i0.Injectable,
|
|
1156
|
+
args: [{
|
|
1157
|
+
providedIn: 'root'
|
|
1158
|
+
}]
|
|
1159
|
+
}], ctorParameters: function () { return [{ type: SkyTextEditorSelectionService }, { type: SkyTextEditorService }, { type: i3__namespace.SkyAppWindowRef }]; } });
|
|
1005
1160
|
|
|
1006
1161
|
/**
|
|
1007
1162
|
* @internal
|
|
@@ -1031,7 +1186,7 @@
|
|
|
1031
1186
|
this.changeDetector.markForCheck();
|
|
1032
1187
|
}
|
|
1033
1188
|
},
|
|
1034
|
-
enumerable:
|
|
1189
|
+
enumerable: false,
|
|
1035
1190
|
configurable: true
|
|
1036
1191
|
});
|
|
1037
1192
|
SkyTextEditorMenubarComponent.prototype.ngOnInit = function () {
|
|
@@ -1151,9 +1306,9 @@
|
|
|
1151
1306
|
'" src="' + (field.previewImageUrl || this.adapterService.getMergeFieldDataURI(field.name)) + '">');
|
|
1152
1307
|
};
|
|
1153
1308
|
SkyTextEditorMenubarComponent.prototype.closeDropdowns = function () {
|
|
1154
|
-
this.editDropdownStream.next({ type:
|
|
1155
|
-
this.formatDropdownStream.next({ type:
|
|
1156
|
-
this.mergeFieldDropdownStream.next({ type:
|
|
1309
|
+
this.editDropdownStream.next({ type: i4.SkyDropdownMessageType.Close });
|
|
1310
|
+
this.formatDropdownStream.next({ type: i4.SkyDropdownMessageType.Close });
|
|
1311
|
+
this.mergeFieldDropdownStream.next({ type: i4.SkyDropdownMessageType.Close });
|
|
1157
1312
|
};
|
|
1158
1313
|
SkyTextEditorMenubarComponent.prototype.clearFormat = function () {
|
|
1159
1314
|
var currentSelection = this.adapterService.getCurrentSelection(this.editorId);
|
|
@@ -1162,36 +1317,29 @@
|
|
|
1162
1317
|
}
|
|
1163
1318
|
this.execCommand('removeFormat');
|
|
1164
1319
|
};
|
|
1165
|
-
SkyTextEditorMenubarComponent.ctorParameters = function () { return [
|
|
1166
|
-
{ type: SkyTextEditorAdapterService },
|
|
1167
|
-
{ type: core.ChangeDetectorRef },
|
|
1168
|
-
{ type: i18n.SkyLibResourcesService }
|
|
1169
|
-
]; };
|
|
1170
|
-
__decorate([
|
|
1171
|
-
core.Input()
|
|
1172
|
-
], SkyTextEditorMenubarComponent.prototype, "editorFocusStream", void 0);
|
|
1173
|
-
__decorate([
|
|
1174
|
-
core.Input()
|
|
1175
|
-
], SkyTextEditorMenubarComponent.prototype, "editorId", void 0);
|
|
1176
|
-
__decorate([
|
|
1177
|
-
core.Input()
|
|
1178
|
-
], SkyTextEditorMenubarComponent.prototype, "menus", void 0);
|
|
1179
|
-
__decorate([
|
|
1180
|
-
core.Input()
|
|
1181
|
-
], SkyTextEditorMenubarComponent.prototype, "mergeFields", void 0);
|
|
1182
|
-
__decorate([
|
|
1183
|
-
core.Input()
|
|
1184
|
-
], SkyTextEditorMenubarComponent.prototype, "disabled", null);
|
|
1185
|
-
SkyTextEditorMenubarComponent = __decorate([
|
|
1186
|
-
core.Component({
|
|
1187
|
-
selector: 'sky-text-editor-menubar',
|
|
1188
|
-
template: "\n <sky-toolbar-item *ngFor=\"let menu of menus\"\n class=\"sky-text-editor-menu\"\n [ngClass]=\"'sky-text-editor-menu-' + menu\"\n >\n <ng-container\n [ngSwitch]=\"menu\"\n >\n <ng-container *ngSwitchCase=\"'edit'\">\n <sky-dropdown\n label=\"Edit menu\"\n [disabled]=\"disabled\"\n [messageStream]=\"editDropdownStream\"\n >\n <sky-dropdown-button>\n {{ 'skyux_text_editor_menubar_dropdown_button_edit_label' | skyLibResources }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let editItem of editItems\">\n <button *ngIf=\"!editItem.isDivider\"\n type=\"button\"\n (click)=\"editItem.function()\"\n >\n {{ editItem.label }}\n <div *ngIf=\"editItem.keyShortcut\"\n class=\"sky-text-editor-menu-key-shortcut\"\n [skyThemeClass]=\"{\n 'sky-font-deemphasized' : 'modern',\n 'sky-deemphasized' : 'default'\n }\"\n >\n {{ editItem.keyShortcut }}\n </div>\n </button>\n <div *ngIf=\"editItem.isDivider\"\n class=\"sky-text-editor-dropdown-item-divider\"\n role=\"divider\"\n >\n </div>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n <ng-container *ngSwitchCase=\"'format'\">\n <sky-dropdown\n label=\"Format menu\"\n [disabled]=\"disabled\"\n [messageStream]=\"formatDropdownStream\"\n >\n <sky-dropdown-button>\n {{ 'skyux_text_editor_menubar_dropdown_button_format_label' | skyLibResources }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let formatItem of formatItems\">\n <button *ngIf=\"!formatItem.isDivider\"\n type=\"button\"\n (click)=\"formatItem.function()\"\n >\n {{ formatItem.label }}\n <div *ngIf=\"formatItem.keyShortcut\"\n class=\"sky-text-editor-menu-key-shortcut\"\n [skyThemeClass]=\"{\n 'sky-font-deemphasized' : 'modern',\n 'sky-deemphasized' : 'default'\n }\"\n >\n {{ formatItem.keyShortcut}}\n </div>\n </button>\n <div *ngIf=\"formatItem.isDivider\"\n class=\"sky-text-editor-dropdown-item-divider\"\n role=\"divider\"\n >\n </div>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n <ng-container *ngSwitchCase=\"'merge-field'\">\n <sky-dropdown *ngIf=\"mergeFields && mergeFields.length > 0\"\n label=\"Insert merge field\"\n [disabled]=\"disabled\"\n [messageStream]=\"mergeFieldDropdownStream\"\n >\n <sky-dropdown-button>\n {{ 'skyux_text_editor_menubar_dropdown_button_insert_label' | skyLibResources }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let mergeField of mergeFields\">\n <button\n type=\"button\"\n (click)=\"insertMergeField(mergeField)\"\n >\n {{ mergeField.name }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n </ng-container>\n </sky-toolbar-item>\n",
|
|
1189
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1190
|
-
styles: [".sky-text-editor-dropdown-item-divider{border:0;padding:0;height:1px;margin:9px 1px;overflow:hidden;background:0 0;border-bottom:1px solid rgba(0,0,0,.1);cursor:default;filter:none}.sky-text-editor-menu-key-shortcut{float:right;margin-left:15px}"]
|
|
1191
|
-
})
|
|
1192
|
-
], SkyTextEditorMenubarComponent);
|
|
1193
1320
|
return SkyTextEditorMenubarComponent;
|
|
1194
1321
|
}());
|
|
1322
|
+
SkyTextEditorMenubarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorMenubarComponent, deps: [{ token: SkyTextEditorAdapterService }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.SkyLibResourcesService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1323
|
+
SkyTextEditorMenubarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyTextEditorMenubarComponent, selector: "sky-text-editor-menubar", inputs: { editorFocusStream: "editorFocusStream", editorId: "editorId", menus: "menus", mergeFields: "mergeFields", disabled: "disabled" }, ngImport: i0__namespace, template: "\n <sky-toolbar-item *ngFor=\"let menu of menus\"\n class=\"sky-text-editor-menu\"\n [ngClass]=\"'sky-text-editor-menu-' + menu\"\n >\n <ng-container\n [ngSwitch]=\"menu\"\n >\n <ng-container *ngSwitchCase=\"'edit'\">\n <sky-dropdown\n label=\"Edit menu\"\n [disabled]=\"disabled\"\n [messageStream]=\"editDropdownStream\"\n >\n <sky-dropdown-button>\n {{ 'skyux_text_editor_menubar_dropdown_button_edit_label' | skyLibResources }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let editItem of editItems\">\n <button *ngIf=\"!editItem.isDivider\"\n type=\"button\"\n (click)=\"editItem.function()\"\n >\n {{ editItem.label }}\n <div *ngIf=\"editItem.keyShortcut\"\n class=\"sky-text-editor-menu-key-shortcut\"\n [skyThemeClass]=\"{\n 'sky-font-deemphasized' : 'modern',\n 'sky-deemphasized' : 'default'\n }\"\n >\n {{ editItem.keyShortcut }}\n </div>\n </button>\n <div *ngIf=\"editItem.isDivider\"\n class=\"sky-text-editor-dropdown-item-divider\"\n role=\"divider\"\n >\n </div>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n <ng-container *ngSwitchCase=\"'format'\">\n <sky-dropdown\n label=\"Format menu\"\n [disabled]=\"disabled\"\n [messageStream]=\"formatDropdownStream\"\n >\n <sky-dropdown-button>\n {{ 'skyux_text_editor_menubar_dropdown_button_format_label' | skyLibResources }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let formatItem of formatItems\">\n <button *ngIf=\"!formatItem.isDivider\"\n type=\"button\"\n (click)=\"formatItem.function()\"\n >\n {{ formatItem.label }}\n <div *ngIf=\"formatItem.keyShortcut\"\n class=\"sky-text-editor-menu-key-shortcut\"\n [skyThemeClass]=\"{\n 'sky-font-deemphasized' : 'modern',\n 'sky-deemphasized' : 'default'\n }\"\n >\n {{ formatItem.keyShortcut}}\n </div>\n </button>\n <div *ngIf=\"formatItem.isDivider\"\n class=\"sky-text-editor-dropdown-item-divider\"\n role=\"divider\"\n >\n </div>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n <ng-container *ngSwitchCase=\"'merge-field'\">\n <sky-dropdown *ngIf=\"mergeFields && mergeFields.length > 0\"\n label=\"Insert merge field\"\n [disabled]=\"disabled\"\n [messageStream]=\"mergeFieldDropdownStream\"\n >\n <sky-dropdown-button>\n {{ 'skyux_text_editor_menubar_dropdown_button_insert_label' | skyLibResources }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let mergeField of mergeFields\">\n <button\n type=\"button\"\n (click)=\"insertMergeField(mergeField)\"\n >\n {{ mergeField.name }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n </ng-container>\n </sky-toolbar-item>\n", styles: [".sky-text-editor-dropdown-item-divider{border:0;padding:0;height:1px;margin:9px 1px;overflow:hidden;background:transparent;border-bottom:1px solid rgba(0,0,0,.1);cursor:default;filter:none}.sky-text-editor-menu-key-shortcut{float:right;margin-left:15px}\n"], components: [{ type: i3__namespace$1.λ39, selector: "sky-toolbar-item" }, { type: i4__namespace.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i4__namespace.λ2, selector: "sky-dropdown-button" }, { type: i4__namespace.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }, { type: i4__namespace.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }], directives: [{ type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], pipes: { "skyLibResources": i2__namespace.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1324
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorMenubarComponent, decorators: [{
|
|
1325
|
+
type: i0.Component,
|
|
1326
|
+
args: [{
|
|
1327
|
+
selector: 'sky-text-editor-menubar',
|
|
1328
|
+
templateUrl: './text-editor-menubar.component.html',
|
|
1329
|
+
styleUrls: ['./text-editor-menubar.component.scss'],
|
|
1330
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1331
|
+
}]
|
|
1332
|
+
}], ctorParameters: function () { return [{ type: SkyTextEditorAdapterService }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.SkyLibResourcesService }]; }, propDecorators: { editorFocusStream: [{
|
|
1333
|
+
type: i0.Input
|
|
1334
|
+
}], editorId: [{
|
|
1335
|
+
type: i0.Input
|
|
1336
|
+
}], menus: [{
|
|
1337
|
+
type: i0.Input
|
|
1338
|
+
}], mergeFields: [{
|
|
1339
|
+
type: i0.Input
|
|
1340
|
+
}], disabled: [{
|
|
1341
|
+
type: i0.Input
|
|
1342
|
+
}] } });
|
|
1195
1343
|
|
|
1196
1344
|
/**
|
|
1197
1345
|
* @internal
|
|
@@ -1245,7 +1393,7 @@
|
|
|
1245
1393
|
this._activeTab = value;
|
|
1246
1394
|
this.valid = this.isValid();
|
|
1247
1395
|
},
|
|
1248
|
-
enumerable:
|
|
1396
|
+
enumerable: false,
|
|
1249
1397
|
configurable: true
|
|
1250
1398
|
});
|
|
1251
1399
|
Object.defineProperty(SkyTextEditorUrlModalComponent.prototype, "emailAddress", {
|
|
@@ -1256,7 +1404,7 @@
|
|
|
1256
1404
|
this._emailAddress = value;
|
|
1257
1405
|
this.valid = this.isValid();
|
|
1258
1406
|
},
|
|
1259
|
-
enumerable:
|
|
1407
|
+
enumerable: false,
|
|
1260
1408
|
configurable: true
|
|
1261
1409
|
});
|
|
1262
1410
|
Object.defineProperty(SkyTextEditorUrlModalComponent.prototype, "url", {
|
|
@@ -1267,7 +1415,7 @@
|
|
|
1267
1415
|
this._url = value;
|
|
1268
1416
|
this.valid = this.isValid();
|
|
1269
1417
|
},
|
|
1270
|
-
enumerable:
|
|
1418
|
+
enumerable: false,
|
|
1271
1419
|
configurable: true
|
|
1272
1420
|
});
|
|
1273
1421
|
SkyTextEditorUrlModalComponent.prototype.activeTabChanged = function (value) {
|
|
@@ -1301,19 +1449,18 @@
|
|
|
1301
1449
|
}
|
|
1302
1450
|
return !!this.emailAddress && validation.SkyValidation.isEmail(this.emailAddress);
|
|
1303
1451
|
};
|
|
1304
|
-
SkyTextEditorUrlModalComponent.ctorParameters = function () { return [
|
|
1305
|
-
{ type: modals.SkyModalInstance },
|
|
1306
|
-
{ type: SkyUrlModalContext }
|
|
1307
|
-
]; };
|
|
1308
|
-
SkyTextEditorUrlModalComponent = __decorate([
|
|
1309
|
-
core.Component({
|
|
1310
|
-
selector: 'skyux-text-editor-url-modal',
|
|
1311
|
-
template: "<sky-modal>\n <sky-modal-header>\n {{ 'skyux_text_editor_url_modal_header_label' | skyLibResources }}\n </sky-modal-header>\n <sky-modal-content>\n <sky-tabset\n data-sky-id=\"test-tabset\"\n [active]=\"activeTab\"\n (activeChange)=\"activeTabChanged($event)\"\n >\n <sky-tab\n tabHeading=\"Web page\"\n >\n <div class=\"sky-form-group sky-text-editor-url-modal-first-field\">\n <sky-input-box>\n <label\n class=\"sky-control-label sky-control-label-required\"\n [for]=\"urlInput.id\"\n >\n {{ 'skyux_text_editor_url_modal_url_label' | skyLibResources }}\n </label>\n <input\n class=\"sky-form-control\"\n type=\"text\"\n [(ngModel)]=\"url\"\n skyId\n #urlInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n <sky-input-box class=\"sky-form-group\">\n <label\n class=\"sky-control-label\"\n [for]=\"targetInput.id\"\n >\n {{ 'skyux_text_editor_url_modal_open_label' | skyLibResources }}\n </label>\n <select\n class=\"sky-form-control\"\n [(ngModel)]=\"target\"\n skyId\n #targetInput=\"skyId\"\n >\n <option value=\"0\">\n {{ 'skyux_text_editor_url_modal_current_option_label' | skyLibResources }}\n </option>\n <option value=\"1\">\n {{ 'skyux_text_editor_url_modal_new_option_label' | skyLibResources }}\n </option>\n </select>\n </sky-input-box>\n </sky-tab>\n <sky-tab\n tabHeading=\"Email address\"\n >\n <div class=\"sky-form-group first-field\">\n <sky-input-box>\n <label\n class=\"sky-control-label sky-control-label-required\"\n [for]=\"emailAddressInput.id\"\n >\n {{ 'skyux_text_editor_url_modal_email_label' | skyLibResources }}\n </label>\n <input\n class=\"sky-form-control\"\n type=\"text\"\n [(ngModel)]=\"emailAddress\"\n skyId\n #emailAddressInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n <sky-input-box class=\"sky-form-group\">\n <label\n class=\"sky-control-label\"\n [for]=\"subjectInput.id\"\n >\n {{ 'skyux_text_editor_url_modal_subject_label' | skyLibResources }}\n </label>\n <input\n class=\"sky-form-control\"\n type=\"text\"\n [(ngModel)]=\"subject\"\n skyId\n #subjectInput=\"skyId\"\n />\n </sky-input-box>\n </sky-tab>\n </sky-tabset>\n </sky-modal-content>\n <sky-modal-footer>\n <button\n type=\"submit\"\n class=\"sky-btn sky-btn-primary\"\n [disabled]=\"!valid\"\n (click)=\"save()\"\n >\n {{ 'skyux_text_editor_url_modal_save_button_label' | skyLibResources }}\n </button>\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-link\"\n (click)=\"cancel()\"\n >\n {{ 'skyux_text_editor_url_modal_cancel_button_label' | skyLibResources }}\n </button>\n </sky-modal-footer>\n</sky-modal>\n",
|
|
1312
|
-
styles: [".sky-text-editor-url-modal-first-field{margin-top:15px}"]
|
|
1313
|
-
})
|
|
1314
|
-
], SkyTextEditorUrlModalComponent);
|
|
1315
1452
|
return SkyTextEditorUrlModalComponent;
|
|
1316
1453
|
}());
|
|
1454
|
+
SkyTextEditorUrlModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorUrlModalComponent, deps: [{ token: i1__namespace$1.SkyModalInstance }, { token: SkyUrlModalContext }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1455
|
+
SkyTextEditorUrlModalComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyTextEditorUrlModalComponent, selector: "skyux-text-editor-url-modal", ngImport: i0__namespace, template: "<sky-modal>\n <sky-modal-header>\n {{ 'skyux_text_editor_url_modal_header_label' | skyLibResources }}\n </sky-modal-header>\n <sky-modal-content>\n <sky-tabset\n data-sky-id=\"test-tabset\"\n [active]=\"activeTab\"\n (activeChange)=\"activeTabChanged($event)\"\n >\n <sky-tab\n tabHeading=\"Web page\"\n >\n <div class=\"sky-form-group sky-text-editor-url-modal-first-field\">\n <sky-input-box>\n <label\n class=\"sky-control-label sky-control-label-required\"\n [for]=\"urlInput.id\"\n >\n {{ 'skyux_text_editor_url_modal_url_label' | skyLibResources }}\n </label>\n <input\n class=\"sky-form-control\"\n type=\"text\"\n [(ngModel)]=\"url\"\n skyId\n #urlInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n <sky-input-box class=\"sky-form-group\">\n <label\n class=\"sky-control-label\"\n [for]=\"targetInput.id\"\n >\n {{ 'skyux_text_editor_url_modal_open_label' | skyLibResources }}\n </label>\n <select\n class=\"sky-form-control\"\n [(ngModel)]=\"target\"\n skyId\n #targetInput=\"skyId\"\n >\n <option value=\"0\">\n {{ 'skyux_text_editor_url_modal_current_option_label' | skyLibResources }}\n </option>\n <option value=\"1\">\n {{ 'skyux_text_editor_url_modal_new_option_label' | skyLibResources }}\n </option>\n </select>\n </sky-input-box>\n </sky-tab>\n <sky-tab\n tabHeading=\"Email address\"\n >\n <div class=\"sky-form-group first-field\">\n <sky-input-box>\n <label\n class=\"sky-control-label sky-control-label-required\"\n [for]=\"emailAddressInput.id\"\n >\n {{ 'skyux_text_editor_url_modal_email_label' | skyLibResources }}\n </label>\n <input\n class=\"sky-form-control\"\n type=\"text\"\n [(ngModel)]=\"emailAddress\"\n skyId\n #emailAddressInput=\"skyId\"\n />\n </sky-input-box>\n </div>\n <sky-input-box class=\"sky-form-group\">\n <label\n class=\"sky-control-label\"\n [for]=\"subjectInput.id\"\n >\n {{ 'skyux_text_editor_url_modal_subject_label' | skyLibResources }}\n </label>\n <input\n class=\"sky-form-control\"\n type=\"text\"\n [(ngModel)]=\"subject\"\n skyId\n #subjectInput=\"skyId\"\n />\n </sky-input-box>\n </sky-tab>\n </sky-tabset>\n </sky-modal-content>\n <sky-modal-footer>\n <button\n type=\"submit\"\n class=\"sky-btn sky-btn-primary\"\n [disabled]=\"!valid\"\n (click)=\"save()\"\n >\n {{ 'skyux_text_editor_url_modal_save_button_label' | skyLibResources }}\n </button>\n <button\n type=\"button\"\n class=\"sky-btn sky-btn-link\"\n (click)=\"cancel()\"\n >\n {{ 'skyux_text_editor_url_modal_cancel_button_label' | skyLibResources }}\n </button>\n </sky-modal-footer>\n</sky-modal>\n", styles: [".sky-text-editor-url-modal-first-field{margin-top:15px}\n"], components: [{ type: i1__namespace$1.λ5, selector: "sky-modal", inputs: ["ariaRole", "tiledBody"] }, { type: i1__namespace$1.λ4, selector: "sky-modal-header" }, { type: i1__namespace$1.λ2, selector: "sky-modal-content" }, { type: i3__namespace$2.λ2, selector: "sky-tabset", inputs: ["active", "ariaLabel", "ariaLabelledBy", "permalinkId", "tabStyle"], outputs: ["activeChange", "newTab", "openTab", "tabIndexesChange"] }, { type: i3__namespace$2.λ1, selector: "sky-tab", inputs: ["active", "disabled", "permalinkValue", "tabHeaderCount", "tabHeading", "tabIndex"], outputs: ["close"] }, { type: i4__namespace$1.λ10, selector: "sky-input-box", inputs: ["hasErrors", "disabled"] }, { type: i1__namespace$1.λ3, selector: "sky-modal-footer" }], directives: [{ type: i5__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3__namespace.λ2, selector: "[skyId]", exportAs: ["skyId"] }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i5__namespace.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i5__namespace.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "skyLibResources": i2__namespace.SkyLibResourcesPipe } });
|
|
1456
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorUrlModalComponent, decorators: [{
|
|
1457
|
+
type: i0.Component,
|
|
1458
|
+
args: [{
|
|
1459
|
+
selector: 'skyux-text-editor-url-modal',
|
|
1460
|
+
templateUrl: './text-editor-url-modal.component.html',
|
|
1461
|
+
styleUrls: ['./text-editor-url-modal.component.scss']
|
|
1462
|
+
}]
|
|
1463
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.SkyModalInstance }, { type: SkyUrlModalContext }]; } });
|
|
1317
1464
|
|
|
1318
1465
|
/**
|
|
1319
1466
|
* @internal
|
|
@@ -1346,7 +1493,7 @@
|
|
|
1346
1493
|
}
|
|
1347
1494
|
}
|
|
1348
1495
|
},
|
|
1349
|
-
enumerable:
|
|
1496
|
+
enumerable: false,
|
|
1350
1497
|
configurable: true
|
|
1351
1498
|
});
|
|
1352
1499
|
Object.defineProperty(SkyTextEditorToolbarComponent.prototype, "disabled", {
|
|
@@ -1360,13 +1507,13 @@
|
|
|
1360
1507
|
this.changeDetector.markForCheck();
|
|
1361
1508
|
}
|
|
1362
1509
|
},
|
|
1363
|
-
enumerable:
|
|
1510
|
+
enumerable: false,
|
|
1364
1511
|
configurable: true
|
|
1365
1512
|
});
|
|
1366
1513
|
SkyTextEditorToolbarComponent.prototype.ngOnInit = function () {
|
|
1367
1514
|
var _this = this;
|
|
1368
1515
|
this.editorFocusStream.subscribe(function () {
|
|
1369
|
-
_this.styleState =
|
|
1516
|
+
_this.styleState = Object.assign(Object.assign({}, _this._styleState), _this.adapterService.getStyleState(_this.editorId));
|
|
1370
1517
|
_this.closeDropdowns();
|
|
1371
1518
|
_this.changeDetector.detectChanges();
|
|
1372
1519
|
});
|
|
@@ -1377,7 +1524,7 @@
|
|
|
1377
1524
|
command: command,
|
|
1378
1525
|
value: value
|
|
1379
1526
|
});
|
|
1380
|
-
this.styleState =
|
|
1527
|
+
this.styleState = Object.assign(Object.assign({}, this.styleState), this.adapterService.getStyleState(this.editorId));
|
|
1381
1528
|
};
|
|
1382
1529
|
SkyTextEditorToolbarComponent.prototype.toggleFontStyle = function (currentState, newState, command) {
|
|
1383
1530
|
if (currentState !== newState) {
|
|
@@ -1423,18 +1570,18 @@
|
|
|
1423
1570
|
};
|
|
1424
1571
|
SkyTextEditorToolbarComponent.prototype.changeFontSize = function (size) {
|
|
1425
1572
|
this.adapterService.setFontSize(this.editorId, size);
|
|
1426
|
-
this.styleState =
|
|
1573
|
+
this.styleState = Object.assign(Object.assign({}, this.styleState), this.adapterService.getStyleState(this.editorId));
|
|
1427
1574
|
};
|
|
1428
1575
|
SkyTextEditorToolbarComponent.prototype.onColorpickerColorChanged = function (color, isBackground) {
|
|
1429
1576
|
if (isBackground === void 0) { isBackground = false; }
|
|
1430
1577
|
this.execCommand(isBackground ? 'backColor' : 'foreColor', color.hex);
|
|
1431
1578
|
};
|
|
1432
1579
|
SkyTextEditorToolbarComponent.prototype.closeDropdowns = function () {
|
|
1433
|
-
var message = { type:
|
|
1580
|
+
var message = { type: i6$1.SkyColorpickerMessageType.Close };
|
|
1434
1581
|
this.colorpickerStream.next(message);
|
|
1435
1582
|
this.backColorpickerStream.next(message);
|
|
1436
|
-
this.fontPickerStream.next({ type:
|
|
1437
|
-
this.fontSizeStream.next({ type:
|
|
1583
|
+
this.fontPickerStream.next({ type: i4.SkyDropdownMessageType.Close });
|
|
1584
|
+
this.fontSizeStream.next({ type: i4.SkyDropdownMessageType.Close });
|
|
1438
1585
|
};
|
|
1439
1586
|
SkyTextEditorToolbarComponent.prototype.getFontName = function (fontName) {
|
|
1440
1587
|
for (var i = 0; i < this.fontList.length; i++) {
|
|
@@ -1443,42 +1590,33 @@
|
|
|
1443
1590
|
}
|
|
1444
1591
|
}
|
|
1445
1592
|
};
|
|
1446
|
-
SkyTextEditorToolbarComponent.ctorParameters = function () { return [
|
|
1447
|
-
{ type: SkyTextEditorAdapterService },
|
|
1448
|
-
{ type: core.ChangeDetectorRef },
|
|
1449
|
-
{ type: modals.SkyModalService }
|
|
1450
|
-
]; };
|
|
1451
|
-
__decorate([
|
|
1452
|
-
core.Input()
|
|
1453
|
-
], SkyTextEditorToolbarComponent.prototype, "editorFocusStream", void 0);
|
|
1454
|
-
__decorate([
|
|
1455
|
-
core.Input()
|
|
1456
|
-
], SkyTextEditorToolbarComponent.prototype, "editorId", void 0);
|
|
1457
|
-
__decorate([
|
|
1458
|
-
core.Input()
|
|
1459
|
-
], SkyTextEditorToolbarComponent.prototype, "fontList", void 0);
|
|
1460
|
-
__decorate([
|
|
1461
|
-
core.Input()
|
|
1462
|
-
], SkyTextEditorToolbarComponent.prototype, "fontSizeList", void 0);
|
|
1463
|
-
__decorate([
|
|
1464
|
-
core.Input()
|
|
1465
|
-
], SkyTextEditorToolbarComponent.prototype, "toolbarActions", void 0);
|
|
1466
|
-
__decorate([
|
|
1467
|
-
core.Input()
|
|
1468
|
-
], SkyTextEditorToolbarComponent.prototype, "styleState", null);
|
|
1469
|
-
__decorate([
|
|
1470
|
-
core.Input()
|
|
1471
|
-
], SkyTextEditorToolbarComponent.prototype, "disabled", null);
|
|
1472
|
-
SkyTextEditorToolbarComponent = __decorate([
|
|
1473
|
-
core.Component({
|
|
1474
|
-
selector: 'sky-text-editor-toolbar',
|
|
1475
|
-
template: "\n <sky-toolbar-item *ngFor=\"let action of toolbarActions\"\n class=\"sky-text-editor-toolbar-action\"\n [ngClass]=\"'sky-text-editor-toolbar-action-' + action\"\n >\n <ng-container\n [ngSwitch]=\"action\"\n >\n <ng-container *ngSwitchCase=\"'font-family'\">\n <sky-dropdown\n class=\"sky-text-editor-font-picker\"\n [disabled]=\"disabled\"\n [label]=\"'Font: ' + styleStateFontName\"\n [messageStream]=\"fontPickerStream\"\n >\n <sky-dropdown-button\n [ngStyle]=\"{\n 'font-family': styleState.font\n }\"\n >\n {{ styleStateFontName }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let fontModel of fontList\">\n <button\n type=\"button\"\n [ngStyle]=\"{\n 'font-family': fontModel.value\n }\"\n (click)=\"execCommand('fontname', fontModel.name)\"\n >\n {{ fontModel.name }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n <ng-container *ngSwitchCase=\"'font-size'\">\n <sky-dropdown\n class=\"sky-text-editor-font-size-picker\"\n [disabled]=\"disabled\"\n [label]=\"'Font size: ' + styleState.fontSize + 'px'\"\n [messageStream]=\"fontSizeStream\"\n >\n <sky-dropdown-button\n [ngStyle]=\"{\n 'font-family': styleState.fontSize\n }\"\n >\n {{ styleState.fontSize + 'px' }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let size of fontSizeList\">\n <button\n type=\"button\"\n (click)=\"changeFontSize(size)\"\n >\n {{ size + 'px' }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n <ng-container *ngSwitchCase=\"'font-style'\">\n <div\n class=\"sky-switch-icon-group sky-text-editor-font-style-picker\"\n >\n <sky-checkbox\n icon=\"bold\"\n label=\"Bold\"\n title=\"Bold\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.boldState\"\n (ngModelChange)=\"toggleFontStyle(styleState.boldState, $event, 'bold')\"\n >\n </sky-checkbox>\n <sky-checkbox\n icon=\"italic\"\n label=\"Italicized\"\n title=\"Italicized\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.italicState\"\n (ngModelChange)=\"toggleFontStyle(styleState.italicState, $event, 'italic')\"\n >\n </sky-checkbox>\n <sky-checkbox\n icon=\"underline\"\n label=\"Underline\"\n title=\"Underline\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.underlineState\"\n (ngModelChange)=\"toggleFontStyle(styleState.underlineState, $event, 'underline')\"\n >\n </sky-checkbox>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'color'\">\n <div class=\"sky-text-editor-colorpicker-group\">\n <div class=\"sky-text-editor-colorpicker-container\">\n <sky-colorpicker\n class=\"sky-text-editor-font-color-picker\"\n label=\"Font color\"\n [messageStream]=\"colorpickerStream\"\n [showResetButton]=\"false\"\n (selectedColorChanged)=\"onColorpickerColorChanged($event)\"\n #colorPicker\n >\n <input\n outputFormat=\"hex\"\n type=\"text\"\n [allowTransparency]=\"false\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.fontColor\"\n [skyColorpickerInput]=\"colorPicker\"\n />\n </sky-colorpicker>\n </div>\n <div class=\"sky-text-editor-colorpicker-container\">\n <sky-colorpicker\n class=\"sky-text-editor-background-color-picker\"\n label=\"Background color\"\n [messageStream]=\"backColorpickerStream\"\n [showResetButton]=\"false\"\n (selectedColorChanged)=\"onColorpickerColorChanged($event, true)\"\n #backColorPicker\n >\n <input\n outputFormat=\"rgba\"\n type=\"text\"\n [allowTransparency]=\"true\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.backColor\"\n [skyColorpickerInput]=\"backColorPicker\"\n />\n </sky-colorpicker>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'list'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Bulleted list\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Bulleted list\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('insertUnorderedList')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"list-ul\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"bullet-list-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Numbered list\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Numbered list\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('insertOrderedList')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"list-ol\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"number-list-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'alignment'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Align left\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Align left\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('justifyLeft')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"align-left\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"align-left-text-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Align center\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Align center\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('justifyCenter')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"align-center\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"center-text-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Align right\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Align right\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('justifyRight')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"align-right\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"align-right-text-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'indentation'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Outdent\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Outdent\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('outdent')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"outdent\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"outdent-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Indent\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Indent\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('indent')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"indent\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"indent-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'undo-redo'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Undo\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Undo\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('undo')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"undo\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"undo-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Redo\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Redo\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('redo')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"repeat\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"redo-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'link'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Link\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Link\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n 'icon-btn-active': styleState.linkState\n }\"\n (click)=\"link()\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"link\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"link-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Unlink\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Unlink\"\n [disabled]=\"!styleState.linkState || disabled\"\n (click)=\"unlink()\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"unlink\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"unlink-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n </ng-container>\n </sky-toolbar-item>\n",
|
|
1476
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1477
|
-
styles: [".sky-text-editor-toolbar-action .sky-toolbar-item{margin-right:15px}.sky-text-editor-toolbar-action .sky-text-editor-font-picker ::ng-deep .sky-dropdown-button-content-container{width:140px;height:20px;text-align:left}.sky-text-editor-toolbar-action .sky-text-editor-colorpicker-group{display:flex}.sky-text-editor-toolbar-action .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container{position:relative;top:3px;margin:0 10px 0 0}.sky-text-editor-toolbar-action .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container:last-child{margin-right:0}.sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn{margin-left:0;margin-right:0;border-radius:0;border-right:none}.sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn:first-of-type{border-top-left-radius:3px;border-bottom-left-radius:3px}.sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn:last-of-type{border-top-right-radius:3px;border-bottom-right-radius:3px;border-right:1px solid #cdcfd2}:host-context(.sky-theme-modern) .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container{top:-2px;margin:0}:host-context(.sky-theme-modern) .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container:last-child ::ng-deep sky-colorpicker .sky-colorpicker-button{margin-right:0}:host-context(.sky-theme-modern) .sky-switch-icon-group .sky-btn{margin:inherit;border-radius:6px}:host-context(.sky-theme-modern) .sky-switch-icon-group .sky-btn:first-of-type,:host-context(.sky-theme-modern) .sky-switch-icon-group .sky-btn:last-of-type{border-radius:6px}:host-context(.sky-theme-modern) .sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn:last-of-type{border:none}.sky-theme-modern .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container{top:-2px;margin:0}.sky-theme-modern .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container:last-child ::ng-deep sky-colorpicker .sky-colorpicker-button{margin-right:0}.sky-theme-modern .sky-switch-icon-group .sky-btn{margin:inherit;border-radius:6px}.sky-theme-modern .sky-switch-icon-group .sky-btn:first-of-type,.sky-theme-modern .sky-switch-icon-group .sky-btn:last-of-type{border-radius:6px}.sky-theme-modern .sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn:last-of-type{border:none}"]
|
|
1478
|
-
})
|
|
1479
|
-
], SkyTextEditorToolbarComponent);
|
|
1480
1593
|
return SkyTextEditorToolbarComponent;
|
|
1481
1594
|
}());
|
|
1595
|
+
SkyTextEditorToolbarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorToolbarComponent, deps: [{ token: SkyTextEditorAdapterService }, { token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$1.SkyModalService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1596
|
+
SkyTextEditorToolbarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyTextEditorToolbarComponent, selector: "sky-text-editor-toolbar", inputs: { editorFocusStream: "editorFocusStream", editorId: "editorId", fontList: "fontList", fontSizeList: "fontSizeList", toolbarActions: "toolbarActions", styleState: "styleState", disabled: "disabled" }, ngImport: i0__namespace, template: "\n <sky-toolbar-item *ngFor=\"let action of toolbarActions\"\n class=\"sky-text-editor-toolbar-action\"\n [ngClass]=\"'sky-text-editor-toolbar-action-' + action\"\n >\n <ng-container\n [ngSwitch]=\"action\"\n >\n <ng-container *ngSwitchCase=\"'font-family'\">\n <sky-dropdown\n class=\"sky-text-editor-font-picker\"\n [disabled]=\"disabled\"\n [label]=\"'Font: ' + styleStateFontName\"\n [messageStream]=\"fontPickerStream\"\n >\n <sky-dropdown-button\n [ngStyle]=\"{\n 'font-family': styleState.font\n }\"\n >\n {{ styleStateFontName }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let fontModel of fontList\">\n <button\n type=\"button\"\n [ngStyle]=\"{\n 'font-family': fontModel.value\n }\"\n (click)=\"execCommand('fontname', fontModel.name)\"\n >\n {{ fontModel.name }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n <ng-container *ngSwitchCase=\"'font-size'\">\n <sky-dropdown\n class=\"sky-text-editor-font-size-picker\"\n [disabled]=\"disabled\"\n [label]=\"'Font size: ' + styleState.fontSize + 'px'\"\n [messageStream]=\"fontSizeStream\"\n >\n <sky-dropdown-button\n [ngStyle]=\"{\n 'font-family': styleState.fontSize\n }\"\n >\n {{ styleState.fontSize + 'px' }}\n </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let size of fontSizeList\">\n <button\n type=\"button\"\n (click)=\"changeFontSize(size)\"\n >\n {{ size + 'px' }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </ng-container>\n <ng-container *ngSwitchCase=\"'font-style'\">\n <div\n class=\"sky-switch-icon-group sky-text-editor-font-style-picker\"\n >\n <sky-checkbox\n icon=\"bold\"\n label=\"Bold\"\n title=\"Bold\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.boldState\"\n (ngModelChange)=\"toggleFontStyle(styleState.boldState, $event, 'bold')\"\n >\n </sky-checkbox>\n <sky-checkbox\n icon=\"italic\"\n label=\"Italicized\"\n title=\"Italicized\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.italicState\"\n (ngModelChange)=\"toggleFontStyle(styleState.italicState, $event, 'italic')\"\n >\n </sky-checkbox>\n <sky-checkbox\n icon=\"underline\"\n label=\"Underline\"\n title=\"Underline\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.underlineState\"\n (ngModelChange)=\"toggleFontStyle(styleState.underlineState, $event, 'underline')\"\n >\n </sky-checkbox>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'color'\">\n <div class=\"sky-text-editor-colorpicker-group\">\n <div class=\"sky-text-editor-colorpicker-container\">\n <sky-colorpicker\n class=\"sky-text-editor-font-color-picker\"\n label=\"Font color\"\n [messageStream]=\"colorpickerStream\"\n [showResetButton]=\"false\"\n (selectedColorChanged)=\"onColorpickerColorChanged($event)\"\n #colorPicker\n >\n <input\n outputFormat=\"hex\"\n type=\"text\"\n [allowTransparency]=\"false\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.fontColor\"\n [skyColorpickerInput]=\"colorPicker\"\n />\n </sky-colorpicker>\n </div>\n <div class=\"sky-text-editor-colorpicker-container\">\n <sky-colorpicker\n class=\"sky-text-editor-background-color-picker\"\n label=\"Background color\"\n [messageStream]=\"backColorpickerStream\"\n [showResetButton]=\"false\"\n (selectedColorChanged)=\"onColorpickerColorChanged($event, true)\"\n #backColorPicker\n >\n <input\n outputFormat=\"rgba\"\n type=\"text\"\n [allowTransparency]=\"true\"\n [disabled]=\"disabled\"\n [ngModel]=\"styleState.backColor\"\n [skyColorpickerInput]=\"backColorPicker\"\n />\n </sky-colorpicker>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'list'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Bulleted list\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Bulleted list\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('insertUnorderedList')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"list-ul\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"bullet-list-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Numbered list\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Numbered list\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('insertOrderedList')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"list-ol\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"number-list-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'alignment'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Align left\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Align left\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('justifyLeft')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"align-left\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"align-left-text-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Align center\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Align center\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('justifyCenter')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"align-center\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"center-text-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Align right\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Align right\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('justifyRight')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"align-right\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"align-right-text-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'indentation'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Outdent\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Outdent\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('outdent')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"outdent\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"outdent-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Indent\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Indent\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('indent')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"indent\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"indent-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'undo-redo'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Undo\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Undo\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('undo')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"undo\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"undo-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Redo\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Redo\"\n [disabled]=\"disabled\"\n (click)=\"execCommand('redo')\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"repeat\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"redo-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'link'\">\n <div\n class=\"sky-switch-icon-group\"\n >\n <button\n aria-label=\"Link\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Link\"\n [disabled]=\"disabled\"\n [ngClass]=\"{\n 'icon-btn-active': styleState.linkState\n }\"\n (click)=\"link()\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"link\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"link-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n <button\n aria-label=\"Unlink\"\n class=\"sky-btn sky-btn-default sky-btn-icon\"\n title=\"Unlink\"\n [disabled]=\"!styleState.linkState || disabled\"\n (click)=\"unlink()\"\n >\n <sky-icon *skyThemeIf=\"'default'\"\n icon=\"unlink\"\n >\n </sky-icon>\n <sky-icon *skyThemeIf=\"'modern'\"\n icon=\"unlink-line\"\n iconType=\"skyux\"\n >\n </sky-icon>\n </button>\n </div>\n </ng-container>\n </ng-container>\n </sky-toolbar-item>\n", styles: [".sky-text-editor-toolbar-action .sky-toolbar-item{margin-right:15px}.sky-text-editor-toolbar-action .sky-text-editor-font-picker ::ng-deep .sky-dropdown-button-content-container{width:140px;height:20px;text-align:left}.sky-text-editor-toolbar-action .sky-text-editor-colorpicker-group{display:flex}.sky-text-editor-toolbar-action .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container{position:relative;top:3px;margin:0 10px 0 0}.sky-text-editor-toolbar-action .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container:last-child{margin-right:0}.sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn{margin-left:0;margin-right:0;border-radius:0;border-right:none}.sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn:first-of-type{border-top-left-radius:3px;border-bottom-left-radius:3px}.sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn:last-of-type{border-top-right-radius:3px;border-bottom-right-radius:3px;border-right:1px solid #cdcfd2}:host-context(.sky-theme-modern) .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container{top:-2px;margin:0}:host-context(.sky-theme-modern) .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container:last-child ::ng-deep sky-colorpicker .sky-colorpicker-button{margin-right:0}:host-context(.sky-theme-modern) .sky-switch-icon-group .sky-btn{margin:inherit;border-radius:6px}:host-context(.sky-theme-modern) .sky-switch-icon-group .sky-btn:first-of-type,:host-context(.sky-theme-modern) .sky-switch-icon-group .sky-btn:last-of-type{border-radius:6px}:host-context(.sky-theme-modern) .sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn:last-of-type{border:none}.sky-theme-modern .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container{top:-2px;margin:0}.sky-theme-modern .sky-text-editor-colorpicker-group .sky-text-editor-colorpicker-container:last-child ::ng-deep sky-colorpicker .sky-colorpicker-button{margin-right:0}.sky-theme-modern .sky-switch-icon-group .sky-btn{margin:inherit;border-radius:6px}.sky-theme-modern .sky-switch-icon-group .sky-btn:first-of-type,.sky-theme-modern .sky-switch-icon-group .sky-btn:last-of-type{border-radius:6px}.sky-theme-modern .sky-text-editor-toolbar-action .sky-switch-icon-group .sky-btn:last-of-type{border:none}\n"], components: [{ type: i3__namespace$1.λ39, selector: "sky-toolbar-item" }, { type: i4__namespace.λ3, selector: "sky-dropdown", inputs: ["buttonStyle", "buttonType", "disabled", "dismissOnBlur", "label", "horizontalAlignment", "messageStream", "title", "trigger"] }, { type: i4__namespace.λ2, selector: "sky-dropdown-button" }, { type: i4__namespace.λ4, selector: "sky-dropdown-menu", inputs: ["ariaLabelledBy", "ariaRole", "useNativeFocus"], outputs: ["menuChanges"] }, { type: i4__namespace.λ1, selector: "sky-dropdown-item", inputs: ["ariaRole"] }, { type: i4__namespace$1.λ3, selector: "sky-checkbox", inputs: ["label", "labelledBy", "id", "disabled", "tabindex", "name", "icon", "checkboxType", "checked", "required"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: i6__namespace$1.λ1, selector: "sky-colorpicker", inputs: ["label", "labelledBy", "messageStream", "showResetButton"], outputs: ["selectedColorChanged", "selectedColorApplied"] }, { type: i7__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i8__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i8__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i8__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i5__namespace.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5__namespace.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i6__namespace$1.λ2, selector: "[skyColorpickerInput]", inputs: ["skyColorpickerInput", "initialColor", "returnFormat", "outputFormat", "presetColors", "alphaChannel", "allowTransparency"] }, { type: i6__namespace.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
1597
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorToolbarComponent, decorators: [{
|
|
1598
|
+
type: i0.Component,
|
|
1599
|
+
args: [{
|
|
1600
|
+
selector: 'sky-text-editor-toolbar',
|
|
1601
|
+
templateUrl: './text-editor-toolbar.component.html',
|
|
1602
|
+
styleUrls: ['./text-editor-toolbar.component.scss'],
|
|
1603
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
1604
|
+
}]
|
|
1605
|
+
}], ctorParameters: function () { return [{ type: SkyTextEditorAdapterService }, { type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$1.SkyModalService }]; }, propDecorators: { editorFocusStream: [{
|
|
1606
|
+
type: i0.Input
|
|
1607
|
+
}], editorId: [{
|
|
1608
|
+
type: i0.Input
|
|
1609
|
+
}], fontList: [{
|
|
1610
|
+
type: i0.Input
|
|
1611
|
+
}], fontSizeList: [{
|
|
1612
|
+
type: i0.Input
|
|
1613
|
+
}], toolbarActions: [{
|
|
1614
|
+
type: i0.Input
|
|
1615
|
+
}], styleState: [{
|
|
1616
|
+
type: i0.Input
|
|
1617
|
+
}], disabled: [{
|
|
1618
|
+
type: i0.Input
|
|
1619
|
+
}] } });
|
|
1482
1620
|
|
|
1483
1621
|
/**
|
|
1484
1622
|
* @internal
|
|
@@ -1569,7 +1707,6 @@
|
|
|
1569
1707
|
/* istanbul ignore next */
|
|
1570
1708
|
this._onChange = function (_) { };
|
|
1571
1709
|
}
|
|
1572
|
-
SkyTextEditorComponent_1 = SkyTextEditorComponent;
|
|
1573
1710
|
Object.defineProperty(SkyTextEditorComponent.prototype, "disabled", {
|
|
1574
1711
|
get: function () {
|
|
1575
1712
|
return this._disabled;
|
|
@@ -1591,7 +1728,7 @@
|
|
|
1591
1728
|
this.changeDetector.markForCheck();
|
|
1592
1729
|
}
|
|
1593
1730
|
},
|
|
1594
|
-
enumerable:
|
|
1731
|
+
enumerable: false,
|
|
1595
1732
|
configurable: true
|
|
1596
1733
|
});
|
|
1597
1734
|
Object.defineProperty(SkyTextEditorComponent.prototype, "initialStyleState", {
|
|
@@ -1604,10 +1741,10 @@
|
|
|
1604
1741
|
set: function (state) {
|
|
1605
1742
|
// Do not update the state after initialization has taken place
|
|
1606
1743
|
if (!this.initialized) {
|
|
1607
|
-
this._initialStyleState =
|
|
1744
|
+
this._initialStyleState = Object.assign(Object.assign({}, STYLE_STATE_DEFAULTS), state);
|
|
1608
1745
|
}
|
|
1609
1746
|
},
|
|
1610
|
-
enumerable:
|
|
1747
|
+
enumerable: false,
|
|
1611
1748
|
configurable: true
|
|
1612
1749
|
});
|
|
1613
1750
|
Object.defineProperty(SkyTextEditorComponent.prototype, "placeholder", {
|
|
@@ -1625,7 +1762,7 @@
|
|
|
1625
1762
|
}
|
|
1626
1763
|
}
|
|
1627
1764
|
},
|
|
1628
|
-
enumerable:
|
|
1765
|
+
enumerable: false,
|
|
1629
1766
|
configurable: true
|
|
1630
1767
|
});
|
|
1631
1768
|
Object.defineProperty(SkyTextEditorComponent.prototype, "value", {
|
|
@@ -1650,7 +1787,7 @@
|
|
|
1650
1787
|
this.onChange();
|
|
1651
1788
|
}
|
|
1652
1789
|
},
|
|
1653
|
-
enumerable:
|
|
1790
|
+
enumerable: false,
|
|
1654
1791
|
configurable: true
|
|
1655
1792
|
});
|
|
1656
1793
|
SkyTextEditorComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -1713,126 +1850,157 @@
|
|
|
1713
1850
|
};
|
|
1714
1851
|
SkyTextEditorComponent.prototype.updateValueAndStyle = function () {
|
|
1715
1852
|
this.value = this.adapterService.getEditorInnerHtml(this.id);
|
|
1716
|
-
this._initialStyleState =
|
|
1717
|
-
};
|
|
1718
|
-
var SkyTextEditorComponent_1;
|
|
1719
|
-
SkyTextEditorComponent.ctorParameters = function () { return [
|
|
1720
|
-
{ type: core.ChangeDetectorRef },
|
|
1721
|
-
{ type: core$1.SkyCoreAdapterService },
|
|
1722
|
-
{ type: SkyTextEditorAdapterService },
|
|
1723
|
-
{ type: SkyTextEditorService },
|
|
1724
|
-
{ type: SkyTextSanitizationService }
|
|
1725
|
-
]; };
|
|
1726
|
-
__decorate([
|
|
1727
|
-
core.Input()
|
|
1728
|
-
], SkyTextEditorComponent.prototype, "autofocus", void 0);
|
|
1729
|
-
__decorate([
|
|
1730
|
-
core.Input()
|
|
1731
|
-
], SkyTextEditorComponent.prototype, "disabled", null);
|
|
1732
|
-
__decorate([
|
|
1733
|
-
core.Input()
|
|
1734
|
-
], SkyTextEditorComponent.prototype, "fontList", void 0);
|
|
1735
|
-
__decorate([
|
|
1736
|
-
core.Input()
|
|
1737
|
-
], SkyTextEditorComponent.prototype, "fontSizeList", void 0);
|
|
1738
|
-
__decorate([
|
|
1739
|
-
core.Input()
|
|
1740
|
-
], SkyTextEditorComponent.prototype, "id", void 0);
|
|
1741
|
-
__decorate([
|
|
1742
|
-
core.Input()
|
|
1743
|
-
], SkyTextEditorComponent.prototype, "initialStyleState", null);
|
|
1744
|
-
__decorate([
|
|
1745
|
-
core.Input()
|
|
1746
|
-
], SkyTextEditorComponent.prototype, "menus", void 0);
|
|
1747
|
-
__decorate([
|
|
1748
|
-
core.Input()
|
|
1749
|
-
], SkyTextEditorComponent.prototype, "mergeFields", void 0);
|
|
1750
|
-
__decorate([
|
|
1751
|
-
core.Input()
|
|
1752
|
-
], SkyTextEditorComponent.prototype, "placeholder", null);
|
|
1753
|
-
__decorate([
|
|
1754
|
-
core.Input()
|
|
1755
|
-
], SkyTextEditorComponent.prototype, "toolbarActions", void 0);
|
|
1756
|
-
__decorate([
|
|
1757
|
-
core.ViewChild('iframe')
|
|
1758
|
-
], SkyTextEditorComponent.prototype, "iframeRef", void 0);
|
|
1759
|
-
SkyTextEditorComponent = SkyTextEditorComponent_1 = __decorate([
|
|
1760
|
-
core.Component({
|
|
1761
|
-
selector: 'sky-text-editor',
|
|
1762
|
-
template: "<div\n class=\"sky-text-editor\"\n>\n <sky-toolbar\n class=\"sky-text-editor-toolbar\"\n >\n <sky-toolbar-section\n aria-label=\"Text formatting\"\n class=\"menubar\"\n role=\"toolbar\"\n >\n <sky-text-editor-menubar\n [disabled]=\"disabled\"\n [editorFocusStream]=\"editorFocusStream\"\n [editorId]=\"id\"\n [menus]=\"menus\"\n [mergeFields]=\"mergeFields\"\n >\n </sky-text-editor-menubar>\n </sky-toolbar-section>\n <sky-toolbar-section\n aria-label=\"Text formatting\"\n class=\"toolbar\"\n role=\"toolbar\"\n >\n <sky-text-editor-toolbar\n [disabled]=\"disabled\"\n [editorFocusStream]=\"editorFocusStream\"\n [editorId]=\"id\"\n [fontList]=\"fontList\"\n [fontSizeList]=\"fontSizeList\"\n [toolbarActions]=\"toolbarActions\"\n [styleState]=\"initialStyleState\"\n >\n </sky-text-editor-toolbar>\n </sky-toolbar-section>\n </sky-toolbar>\n <iframe\n class=\"sky-text-editor-wrapper\"\n src=\"about:blank\"\n title=\"Text Editor\"\n [ngClass]=\"{\n 'sky-text-editor-wrapper-disabled': disabled\n }\"\n #iframe\n >\n </iframe>\n</div>\n",
|
|
1763
|
-
providers: [
|
|
1764
|
-
{
|
|
1765
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
1766
|
-
// tslint:disable-next-line: no-forward-ref
|
|
1767
|
-
useExisting: core.forwardRef(function () { return SkyTextEditorComponent_1; }),
|
|
1768
|
-
multi: true
|
|
1769
|
-
}
|
|
1770
|
-
],
|
|
1771
|
-
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
1772
|
-
encapsulation: core.ViewEncapsulation.None,
|
|
1773
|
-
styles: [".sky-text-editor .sky-text-editor-wrapper{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;height:300px;padding:1rem;font-size:1.2rem;border:1px solid silver;overflow-y:auto;outline:0}.sky-text-editor .sky-text-editor-wrapper.sky-text-editor-wrapper-disabled{background-color:#ededee}.sky-text-editor .sky-text-editor-toolbar .sky-toolbar-section{padding:10px 10px 0}.sky-text-editor .sky-text-editor-toolbar .sky-toolbar-sectioned{border-left:1px solid #cdcfd2!important;border-right:1px solid #cdcfd2!important}.sky-text-editor .sky-text-editor-toolbar .sky-toolbar-item{margin:0 20px 10px 0}.sky-text-editor .sky-text-editor-toolbar .sky-dropdown-button{border:none}.sky-text-editor .sky-text-editor-toolbar sky-text-editor-menubar,.sky-text-editor .sky-text-editor-toolbar sky-text-editor-toolbar{display:flex;flex-wrap:wrap}.sky-theme-modern .sky-text-editor .sky-text-editor-wrapper{border:1px solid #d2d2d2}.sky-theme-modern .sky-text-editor .sky-text-editor-wrapper.sky-text-editor-wrapper-disabled{background-color:#ececed}.sky-theme-modern .sky-text-editor .sky-text-editor-toolbar .sky-toolbar{padding:10px 10px 0}.sky-theme-modern .sky-text-editor .sky-text-editor-toolbar .sky-toolbar-section{padding:10px!important}.sky-theme-modern .sky-text-editor .sky-text-editor-toolbar .sky-toolbar-sectioned{border-top:1px solid #d2d2d2!important;border-left:1px solid #d2d2d2!important;border-right:1px solid #d2d2d2!important}.sky-theme-modern .sky-text-editor .sky-text-editor-toolbar .sky-toolbar-item{margin:0 20px 0 0!important}"]
|
|
1774
|
-
})
|
|
1775
|
-
], SkyTextEditorComponent);
|
|
1853
|
+
this._initialStyleState = Object.assign(Object.assign({}, this._initialStyleState), this.adapterService.getStyleState(this.id));
|
|
1854
|
+
};
|
|
1776
1855
|
return SkyTextEditorComponent;
|
|
1777
1856
|
}());
|
|
1857
|
+
SkyTextEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i3__namespace.SkyCoreAdapterService }, { token: SkyTextEditorAdapterService }, { token: SkyTextEditorService }, { token: SkyTextSanitizationService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1858
|
+
SkyTextEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.7", type: SkyTextEditorComponent, selector: "sky-text-editor", inputs: { autofocus: "autofocus", disabled: "disabled", fontList: "fontList", fontSizeList: "fontSizeList", id: "id", initialStyleState: "initialStyleState", menus: "menus", mergeFields: "mergeFields", placeholder: "placeholder", toolbarActions: "toolbarActions" }, providers: [
|
|
1859
|
+
{
|
|
1860
|
+
provide: i5.NG_VALUE_ACCESSOR,
|
|
1861
|
+
// tslint:disable-next-line: no-forward-ref
|
|
1862
|
+
useExisting: i0.forwardRef(function () { return SkyTextEditorComponent; }),
|
|
1863
|
+
multi: true
|
|
1864
|
+
}
|
|
1865
|
+
], viewQueries: [{ propertyName: "iframeRef", first: true, predicate: ["iframe"], descendants: true }], ngImport: i0__namespace, template: "<div\n class=\"sky-text-editor\"\n>\n <sky-toolbar\n class=\"sky-text-editor-toolbar\"\n >\n <sky-toolbar-section\n aria-label=\"Text formatting\"\n class=\"menubar\"\n role=\"toolbar\"\n >\n <sky-text-editor-menubar\n [disabled]=\"disabled\"\n [editorFocusStream]=\"editorFocusStream\"\n [editorId]=\"id\"\n [menus]=\"menus\"\n [mergeFields]=\"mergeFields\"\n >\n </sky-text-editor-menubar>\n </sky-toolbar-section>\n <sky-toolbar-section\n aria-label=\"Text formatting\"\n class=\"toolbar\"\n role=\"toolbar\"\n >\n <sky-text-editor-toolbar\n [disabled]=\"disabled\"\n [editorFocusStream]=\"editorFocusStream\"\n [editorId]=\"id\"\n [fontList]=\"fontList\"\n [fontSizeList]=\"fontSizeList\"\n [toolbarActions]=\"toolbarActions\"\n [styleState]=\"initialStyleState\"\n >\n </sky-text-editor-toolbar>\n </sky-toolbar-section>\n </sky-toolbar>\n <iframe\n class=\"sky-text-editor-wrapper\"\n src=\"about:blank\"\n title=\"Text Editor\"\n [ngClass]=\"{\n 'sky-text-editor-wrapper-disabled': disabled\n }\"\n #iframe\n >\n </iframe>\n</div>\n", styles: [".sky-text-editor .sky-text-editor-wrapper{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;height:300px;padding:1rem;font-size:1.2rem;border:1px solid #C0C0C0;overflow-y:auto;outline:none}.sky-text-editor .sky-text-editor-wrapper.sky-text-editor-wrapper-disabled{background-color:#ededee}.sky-text-editor .sky-text-editor-toolbar .sky-toolbar-section{padding:10px 10px 0}.sky-text-editor .sky-text-editor-toolbar .sky-toolbar-sectioned{border-left:1px solid #cdcfd2!important;border-right:1px solid #cdcfd2!important}.sky-text-editor .sky-text-editor-toolbar .sky-toolbar-item{margin:0 20px 10px 0}.sky-text-editor .sky-text-editor-toolbar .sky-dropdown-button{border:none}.sky-text-editor .sky-text-editor-toolbar sky-text-editor-menubar,.sky-text-editor .sky-text-editor-toolbar sky-text-editor-toolbar{display:flex;flex-wrap:wrap}.sky-theme-modern .sky-text-editor .sky-text-editor-wrapper{border:1px solid #d2d2d2}.sky-theme-modern .sky-text-editor .sky-text-editor-wrapper.sky-text-editor-wrapper-disabled{background-color:#ececed}.sky-theme-modern .sky-text-editor .sky-text-editor-toolbar .sky-toolbar{padding:10px 10px 0}.sky-theme-modern .sky-text-editor .sky-text-editor-toolbar .sky-toolbar-section{padding:10px!important}.sky-theme-modern .sky-text-editor .sky-text-editor-toolbar .sky-toolbar-sectioned{border-top:1px solid #d2d2d2!important;border-left:1px solid #d2d2d2!important;border-right:1px solid #d2d2d2!important}.sky-theme-modern .sky-text-editor .sky-text-editor-toolbar .sky-toolbar-item{margin:0 20px 0 0!important}\n"], components: [{ type: i3__namespace$1.λ37, selector: "sky-toolbar" }, { type: i3__namespace$1.λ38, selector: "sky-toolbar-section" }, { type: SkyTextEditorMenubarComponent, selector: "sky-text-editor-menubar", inputs: ["editorFocusStream", "editorId", "menus", "mergeFields", "disabled"] }, { type: SkyTextEditorToolbarComponent, selector: "sky-text-editor-toolbar", inputs: ["editorFocusStream", "editorId", "fontList", "fontSizeList", "toolbarActions", "styleState", "disabled"] }], directives: [{ type: i8__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
|
|
1866
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorComponent, decorators: [{
|
|
1867
|
+
type: i0.Component,
|
|
1868
|
+
args: [{
|
|
1869
|
+
selector: 'sky-text-editor',
|
|
1870
|
+
templateUrl: './text-editor.component.html',
|
|
1871
|
+
styleUrls: ['./text-editor.component.scss'],
|
|
1872
|
+
providers: [
|
|
1873
|
+
{
|
|
1874
|
+
provide: i5.NG_VALUE_ACCESSOR,
|
|
1875
|
+
// tslint:disable-next-line: no-forward-ref
|
|
1876
|
+
useExisting: i0.forwardRef(function () { return SkyTextEditorComponent; }),
|
|
1877
|
+
multi: true
|
|
1878
|
+
}
|
|
1879
|
+
],
|
|
1880
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1881
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
1882
|
+
}]
|
|
1883
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i3__namespace.SkyCoreAdapterService }, { type: SkyTextEditorAdapterService }, { type: SkyTextEditorService }, { type: SkyTextSanitizationService }]; }, propDecorators: { autofocus: [{
|
|
1884
|
+
type: i0.Input
|
|
1885
|
+
}], disabled: [{
|
|
1886
|
+
type: i0.Input
|
|
1887
|
+
}], fontList: [{
|
|
1888
|
+
type: i0.Input
|
|
1889
|
+
}], fontSizeList: [{
|
|
1890
|
+
type: i0.Input
|
|
1891
|
+
}], id: [{
|
|
1892
|
+
type: i0.Input
|
|
1893
|
+
}], initialStyleState: [{
|
|
1894
|
+
type: i0.Input
|
|
1895
|
+
}], menus: [{
|
|
1896
|
+
type: i0.Input
|
|
1897
|
+
}], mergeFields: [{
|
|
1898
|
+
type: i0.Input
|
|
1899
|
+
}], placeholder: [{
|
|
1900
|
+
type: i0.Input
|
|
1901
|
+
}], toolbarActions: [{
|
|
1902
|
+
type: i0.Input
|
|
1903
|
+
}], iframeRef: [{
|
|
1904
|
+
type: i0.ViewChild,
|
|
1905
|
+
args: ['iframe']
|
|
1906
|
+
}] } });
|
|
1778
1907
|
|
|
1779
1908
|
var SkyTextEditorModule = /** @class */ (function () {
|
|
1780
1909
|
function SkyTextEditorModule() {
|
|
1781
1910
|
}
|
|
1782
|
-
SkyTextEditorModule = __decorate([
|
|
1783
|
-
core.NgModule({
|
|
1784
|
-
imports: [
|
|
1785
|
-
common.CommonModule,
|
|
1786
|
-
forms.FormsModule,
|
|
1787
|
-
forms.ReactiveFormsModule,
|
|
1788
|
-
core$1.SkyCoreAdapterModule,
|
|
1789
|
-
SkyTextEditorResourcesModule,
|
|
1790
|
-
i18n.SkyI18nModule,
|
|
1791
|
-
indicators.SkyIconModule,
|
|
1792
|
-
core$1.SkyIdModule,
|
|
1793
|
-
forms$1.SkyInputBoxModule,
|
|
1794
|
-
colorpicker.SkyColorpickerModule,
|
|
1795
|
-
forms$1.SkyCheckboxModule,
|
|
1796
|
-
popovers.SkyDropdownModule,
|
|
1797
|
-
modals.SkyModalModule,
|
|
1798
|
-
tabs.SkyTabsModule,
|
|
1799
|
-
theme.SkyThemeModule,
|
|
1800
|
-
layout.SkyToolbarModule
|
|
1801
|
-
],
|
|
1802
|
-
exports: [
|
|
1803
|
-
SkyTextEditorComponent,
|
|
1804
|
-
SkyTextEditorUrlModalComponent,
|
|
1805
|
-
SkyTextEditorToolbarComponent,
|
|
1806
|
-
SkyTextEditorMenubarComponent
|
|
1807
|
-
],
|
|
1808
|
-
declarations: [
|
|
1809
|
-
SkyTextEditorComponent,
|
|
1810
|
-
SkyTextEditorUrlModalComponent,
|
|
1811
|
-
SkyTextEditorToolbarComponent,
|
|
1812
|
-
SkyTextEditorMenubarComponent
|
|
1813
|
-
],
|
|
1814
|
-
entryComponents: [
|
|
1815
|
-
SkyTextEditorUrlModalComponent
|
|
1816
|
-
]
|
|
1817
|
-
})
|
|
1818
|
-
], SkyTextEditorModule);
|
|
1819
1911
|
return SkyTextEditorModule;
|
|
1820
1912
|
}());
|
|
1913
|
+
SkyTextEditorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1914
|
+
SkyTextEditorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorModule, declarations: [SkyTextEditorComponent,
|
|
1915
|
+
SkyTextEditorUrlModalComponent,
|
|
1916
|
+
SkyTextEditorToolbarComponent,
|
|
1917
|
+
SkyTextEditorMenubarComponent], imports: [i8.CommonModule,
|
|
1918
|
+
i5.FormsModule,
|
|
1919
|
+
i5.ReactiveFormsModule,
|
|
1920
|
+
i3.SkyCoreAdapterModule,
|
|
1921
|
+
SkyTextEditorResourcesModule,
|
|
1922
|
+
i2.SkyI18nModule,
|
|
1923
|
+
i7.SkyIconModule,
|
|
1924
|
+
i3.SkyIdModule,
|
|
1925
|
+
i4$1.SkyInputBoxModule,
|
|
1926
|
+
i6$1.SkyColorpickerModule,
|
|
1927
|
+
i4$1.SkyCheckboxModule,
|
|
1928
|
+
i4.SkyDropdownModule,
|
|
1929
|
+
i1$1.SkyModalModule,
|
|
1930
|
+
i3$2.SkyTabsModule,
|
|
1931
|
+
i6.SkyThemeModule,
|
|
1932
|
+
i3$1.SkyToolbarModule], exports: [SkyTextEditorComponent,
|
|
1933
|
+
SkyTextEditorUrlModalComponent,
|
|
1934
|
+
SkyTextEditorToolbarComponent,
|
|
1935
|
+
SkyTextEditorMenubarComponent] });
|
|
1936
|
+
SkyTextEditorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorModule, imports: [[
|
|
1937
|
+
i8.CommonModule,
|
|
1938
|
+
i5.FormsModule,
|
|
1939
|
+
i5.ReactiveFormsModule,
|
|
1940
|
+
i3.SkyCoreAdapterModule,
|
|
1941
|
+
SkyTextEditorResourcesModule,
|
|
1942
|
+
i2.SkyI18nModule,
|
|
1943
|
+
i7.SkyIconModule,
|
|
1944
|
+
i3.SkyIdModule,
|
|
1945
|
+
i4$1.SkyInputBoxModule,
|
|
1946
|
+
i6$1.SkyColorpickerModule,
|
|
1947
|
+
i4$1.SkyCheckboxModule,
|
|
1948
|
+
i4.SkyDropdownModule,
|
|
1949
|
+
i1$1.SkyModalModule,
|
|
1950
|
+
i3$2.SkyTabsModule,
|
|
1951
|
+
i6.SkyThemeModule,
|
|
1952
|
+
i3$1.SkyToolbarModule
|
|
1953
|
+
]] });
|
|
1954
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.7", ngImport: i0__namespace, type: SkyTextEditorModule, decorators: [{
|
|
1955
|
+
type: i0.NgModule,
|
|
1956
|
+
args: [{
|
|
1957
|
+
imports: [
|
|
1958
|
+
i8.CommonModule,
|
|
1959
|
+
i5.FormsModule,
|
|
1960
|
+
i5.ReactiveFormsModule,
|
|
1961
|
+
i3.SkyCoreAdapterModule,
|
|
1962
|
+
SkyTextEditorResourcesModule,
|
|
1963
|
+
i2.SkyI18nModule,
|
|
1964
|
+
i7.SkyIconModule,
|
|
1965
|
+
i3.SkyIdModule,
|
|
1966
|
+
i4$1.SkyInputBoxModule,
|
|
1967
|
+
i6$1.SkyColorpickerModule,
|
|
1968
|
+
i4$1.SkyCheckboxModule,
|
|
1969
|
+
i4.SkyDropdownModule,
|
|
1970
|
+
i1$1.SkyModalModule,
|
|
1971
|
+
i3$2.SkyTabsModule,
|
|
1972
|
+
i6.SkyThemeModule,
|
|
1973
|
+
i3$1.SkyToolbarModule
|
|
1974
|
+
],
|
|
1975
|
+
exports: [
|
|
1976
|
+
SkyTextEditorComponent,
|
|
1977
|
+
SkyTextEditorUrlModalComponent,
|
|
1978
|
+
SkyTextEditorToolbarComponent,
|
|
1979
|
+
SkyTextEditorMenubarComponent
|
|
1980
|
+
],
|
|
1981
|
+
declarations: [
|
|
1982
|
+
SkyTextEditorComponent,
|
|
1983
|
+
SkyTextEditorUrlModalComponent,
|
|
1984
|
+
SkyTextEditorToolbarComponent,
|
|
1985
|
+
SkyTextEditorMenubarComponent
|
|
1986
|
+
],
|
|
1987
|
+
entryComponents: [
|
|
1988
|
+
SkyTextEditorUrlModalComponent
|
|
1989
|
+
]
|
|
1990
|
+
}]
|
|
1991
|
+
}] });
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* Generated bundle index. Do not edit.
|
|
1995
|
+
*/
|
|
1821
1996
|
|
|
1822
1997
|
exports.SkyRichTextDisplayModule = SkyRichTextDisplayModule;
|
|
1823
1998
|
exports.SkyTextEditorModule = SkyTextEditorModule;
|
|
1824
|
-
exports
|
|
1825
|
-
exports
|
|
1826
|
-
exports
|
|
1827
|
-
exports
|
|
1828
|
-
exports
|
|
1829
|
-
exports.ɵf = SkyTextEditorAdapterService;
|
|
1830
|
-
exports.ɵg = SkyTextEditorSelectionService;
|
|
1831
|
-
exports.ɵh = SkyTextEditorService;
|
|
1832
|
-
exports.ɵi = SkyTextEditorUrlModalComponent;
|
|
1833
|
-
exports.ɵj = SkyUrlModalContext;
|
|
1834
|
-
exports.ɵk = SkyTextEditorToolbarComponent;
|
|
1835
|
-
exports.ɵl = SkyTextEditorMenubarComponent;
|
|
1999
|
+
exports.λ1 = SkyRichTextDisplayComponent;
|
|
2000
|
+
exports.λ2 = SkyTextEditorMenubarComponent;
|
|
2001
|
+
exports.λ3 = SkyTextEditorUrlModalComponent;
|
|
2002
|
+
exports.λ4 = SkyTextEditorToolbarComponent;
|
|
2003
|
+
exports.λ5 = SkyTextEditorComponent;
|
|
1836
2004
|
|
|
1837
2005
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1838
2006
|
|