@mediafly/js-ui 50.0.2 → 50.0.4-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/lib/rich-text/rich-text.component.d.ts +0 -5
- package/lib/rich-text/rich-text.component.js +3 -12
- package/lib/rich-text/rich-text.component.js.map +1 -1
- package/lib/tsconfig.deploy.tsbuildinfo +2 -2
- package/package.json +1 -1
- package/src/components/rich-text/rich-text.component.ts +2 -13
- package/tsconfig.tsbuildinfo +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -41,11 +41,6 @@ export default class RichTextComponentController implements ng.IComponentControl
|
|
|
41
41
|
protected manageValidity(): void;
|
|
42
42
|
protected onTextChange(_delta: any, _oldContents: any, source: any): void;
|
|
43
43
|
protected selectionChange(range: any, oldRange: any, source: any): void;
|
|
44
|
-
/**
|
|
45
|
-
* Since the editor area is smaller than the visible container area, this
|
|
46
|
-
* function allows the user to click anywhere in the container to start typing.
|
|
47
|
-
*/
|
|
48
|
-
protected setFocusInEditor: () => void;
|
|
49
44
|
private applyColor;
|
|
50
45
|
private cacheSelection;
|
|
51
46
|
private sanitizeContents;
|
|
@@ -8,9 +8,9 @@ const lodash_1 = __importDefault(require("lodash"));
|
|
|
8
8
|
const quill_1 = __importDefault(require("quill"));
|
|
9
9
|
const jquery_1 = __importDefault(require("jquery"));
|
|
10
10
|
// text editor requires sanitization but also needs to allow for style attributes which are removed by default
|
|
11
|
-
angular_1.default.module('app').config(($sanitizeProvider) => {
|
|
12
|
-
|
|
13
|
-
});
|
|
11
|
+
angular_1.default.module('app').config(['$sanitizeProvider', ($sanitizeProvider) => {
|
|
12
|
+
$sanitizeProvider.addValidAttrs(['style']);
|
|
13
|
+
}]);
|
|
14
14
|
class RichTextComponentController {
|
|
15
15
|
constructor($element, $rootScope, $sanitize, $timeout, translateFactory) {
|
|
16
16
|
this.$element = $element;
|
|
@@ -22,13 +22,6 @@ class RichTextComponentController {
|
|
|
22
22
|
this.DEFAULT_COLOR = '#535353';
|
|
23
23
|
this.DEFAULT_FONT = 'Roboto';
|
|
24
24
|
this.DEFAULT_SIZE = '14px';
|
|
25
|
-
/**
|
|
26
|
-
* Since the editor area is smaller than the visible container area, this
|
|
27
|
-
* function allows the user to click anywhere in the container to start typing.
|
|
28
|
-
*/
|
|
29
|
-
this.setFocusInEditor = () => {
|
|
30
|
-
this.$element.find('.ql-editor').focus();
|
|
31
|
-
};
|
|
32
25
|
}
|
|
33
26
|
$onChanges(changes) {
|
|
34
27
|
if (!changes.isRequired) {
|
|
@@ -41,7 +34,6 @@ class RichTextComponentController {
|
|
|
41
34
|
}
|
|
42
35
|
$onDestroy() {
|
|
43
36
|
this.editor.off('text-change', this.debouncedOnTextChange);
|
|
44
|
-
this.$element.find('.ql-container').off('click', this.setFocusInEditor);
|
|
45
37
|
this.colorPicker.removeEventListener('change', this.colorChanged.bind(this));
|
|
46
38
|
this.colorPicker.removeEventListener('click', this.colorInputOpened.bind(this));
|
|
47
39
|
}
|
|
@@ -77,7 +69,6 @@ class RichTextComponentController {
|
|
|
77
69
|
this.editor.root.setAttribute('spellcheck', false);
|
|
78
70
|
this.editor.on('text-change', this.debouncedOnTextChange);
|
|
79
71
|
this.editor.on('selection-change', this.selectionChange.bind(this));
|
|
80
|
-
this.$element.find('.ql-container').on('click', this.setFocusInEditor);
|
|
81
72
|
this.ngModelCtrl.$render = () => {
|
|
82
73
|
if (!this.ngModelCtrl.$viewValue) {
|
|
83
74
|
this.editor.setText('\n');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rich-text.component.js","sourceRoot":"","sources":["../../src/components/rich-text/rich-text.component.ts"],"names":[],"mappings":";;;;;AAAA,sDAA2C;AAC3C,oDAAsB;AACtB,kDAAyB;AACzB,oDAAsB;AAGtB,8GAA8G;AAC9G,iBAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,iBAAgD,EAAE,EAAE;
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AAC,KAAK,CAAC,CAAC,SAAS,CAAC,UAAU,EAAE;IAC3C,QAAQ,EAAE;QACT,mBAAmB,EAAE,GAAG;QACxB,kBAAkB,EAAE,GAAG;QACvB,UAAU,EAAE,GAAG;QACf,OAAO,EAAE,GAAG;KACZ;IACD,UAAU,EAAE,2BAA2B;IACvC,OAAO,EAAE;QACR,WAAW,EAAE,SAAS;KACtB;IACD,QAAQ,EAAE,OAAO,CAAC,4BAA4B,CAAC;CAC/C,CAAC,CAAA"}
|
|
@@ -1262,8 +1262,8 @@
|
|
|
1262
1262
|
"affectsGlobalScope": false
|
|
1263
1263
|
},
|
|
1264
1264
|
"../src/components/rich-text/rich-text.component.ts": {
|
|
1265
|
-
"version": "
|
|
1266
|
-
"signature": "
|
|
1265
|
+
"version": "44f749cadac50a0ae59f8716ab5e768239cf3f5d8ae97f2399304e1a456b30d5",
|
|
1266
|
+
"signature": "7ba5c5e32b6d96041f42b3ad086ed2db4e941f0e320337e0ab8f753b1cd1792a",
|
|
1267
1267
|
"affectsGlobalScope": false
|
|
1268
1268
|
},
|
|
1269
1269
|
"../src/components/rich-text/index.ts": {
|
package/package.json
CHANGED
|
@@ -5,9 +5,9 @@ import $ from 'jquery'
|
|
|
5
5
|
import { FontFamilyStyle } from '../font-selector/font-selector'
|
|
6
6
|
|
|
7
7
|
// text editor requires sanitization but also needs to allow for style attributes which are removed by default
|
|
8
|
-
angular.module('app').config(($sanitizeProvider: ng.sanitize.ISanitizeProvider) => {
|
|
8
|
+
angular.module('app').config(['$sanitizeProvider', ($sanitizeProvider: ng.sanitize.ISanitizeProvider) => {
|
|
9
9
|
$sanitizeProvider.addValidAttrs(['style'])
|
|
10
|
-
})
|
|
10
|
+
}])
|
|
11
11
|
|
|
12
12
|
export default class RichTextComponentController implements ng.IComponentController {
|
|
13
13
|
|
|
@@ -49,7 +49,6 @@ export default class RichTextComponentController implements ng.IComponentControl
|
|
|
49
49
|
|
|
50
50
|
$onDestroy() {
|
|
51
51
|
this.editor.off('text-change', this.debouncedOnTextChange)
|
|
52
|
-
this.$element.find('.ql-container').off('click', this.setFocusInEditor)
|
|
53
52
|
this.colorPicker.removeEventListener('change', this.colorChanged.bind(this))
|
|
54
53
|
this.colorPicker.removeEventListener('click', this.colorInputOpened.bind(this))
|
|
55
54
|
}
|
|
@@ -97,8 +96,6 @@ export default class RichTextComponentController implements ng.IComponentControl
|
|
|
97
96
|
this.editor.on('text-change', this.debouncedOnTextChange)
|
|
98
97
|
this.editor.on('selection-change', this.selectionChange.bind(this))
|
|
99
98
|
|
|
100
|
-
this.$element.find('.ql-container').on('click', this.setFocusInEditor)
|
|
101
|
-
|
|
102
99
|
this.ngModelCtrl.$render = () => {
|
|
103
100
|
if (!this.ngModelCtrl.$viewValue) {
|
|
104
101
|
this.editor.setText('\n')
|
|
@@ -195,14 +192,6 @@ export default class RichTextComponentController implements ng.IComponentControl
|
|
|
195
192
|
}
|
|
196
193
|
}
|
|
197
194
|
|
|
198
|
-
/**
|
|
199
|
-
* Since the editor area is smaller than the visible container area, this
|
|
200
|
-
* function allows the user to click anywhere in the container to start typing.
|
|
201
|
-
*/
|
|
202
|
-
protected setFocusInEditor = (): void => {
|
|
203
|
-
this.$element.find('.ql-editor').focus()
|
|
204
|
-
}
|
|
205
|
-
|
|
206
195
|
private applyColor(): void {
|
|
207
196
|
// CE-3031: Re-apply the text selection that was made before selecting a color
|
|
208
197
|
// as the act of hiding some browsers color inputs can change the selected text
|
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1792,8 +1792,8 @@
|
|
|
1792
1792
|
"affectsGlobalScope": false
|
|
1793
1793
|
},
|
|
1794
1794
|
"./src/components/dropdown/dropdown.ts": {
|
|
1795
|
-
"version": "
|
|
1796
|
-
"signature": "
|
|
1795
|
+
"version": "0e8a3273816f29c1f04150fb68dc846776864aaa7120ef6b5113b4e5cb77504d",
|
|
1796
|
+
"signature": "84342560504a61d0bb90aa30b6ebd20155b855d9139c48818bf4715e74dddb35",
|
|
1797
1797
|
"affectsGlobalScope": false
|
|
1798
1798
|
},
|
|
1799
1799
|
"./src/components/dropdown/index.ts": {
|
|
@@ -1827,7 +1827,7 @@
|
|
|
1827
1827
|
"affectsGlobalScope": false
|
|
1828
1828
|
},
|
|
1829
1829
|
"./src/components/font-selector/webfont-loader.service.ts": {
|
|
1830
|
-
"version": "
|
|
1830
|
+
"version": "eb565e1c3ca5ae7fcdbe9fa6c81bd185f54752c52d49c25f6c8edb1b4b5299ca",
|
|
1831
1831
|
"signature": "bbd2f564fd1f2863c05f27a96b089852de337861bb1f51f32c40bc496739604b",
|
|
1832
1832
|
"affectsGlobalScope": false
|
|
1833
1833
|
},
|
|
@@ -2791,7 +2791,7 @@
|
|
|
2791
2791
|
"target": 2,
|
|
2792
2792
|
"inlineSourceMap": false,
|
|
2793
2793
|
"declarationMap": false,
|
|
2794
|
-
"pathsBasePath": "C:/Work/
|
|
2794
|
+
"pathsBasePath": "C:/Work/BitBucket/mediafly-js-ui",
|
|
2795
2795
|
"configFilePath": "./tsconfig.json"
|
|
2796
2796
|
},
|
|
2797
2797
|
"referencedMap": {
|
|
@@ -5475,7 +5475,7 @@
|
|
|
5475
5475
|
],
|
|
5476
5476
|
"./node_modules/@types/stylelint/index.d.ts": [
|
|
5477
5477
|
"./node_modules/@types/stylelint/node_modules/globby/index.d.ts",
|
|
5478
|
-
"./node_modules
|
|
5478
|
+
"./node_modules/postcss/lib/postcss.d.ts"
|
|
5479
5479
|
],
|
|
5480
5480
|
"./node_modules/@types/stylelint/node_modules/globby/index.d.ts": [
|
|
5481
5481
|
"./node_modules/fast-glob/out/index.d.ts"
|
|
@@ -5484,7 +5484,7 @@
|
|
|
5484
5484
|
"./node_modules/@types/stylelint/node_modules/source-map/source-map.d.ts"
|
|
5485
5485
|
],
|
|
5486
5486
|
"./node_modules/@types/uglify-js/index.d.ts": [
|
|
5487
|
-
"./node_modules
|
|
5487
|
+
"./node_modules/postcss/node_modules/source-map/source-map.d.ts"
|
|
5488
5488
|
],
|
|
5489
5489
|
"./node_modules/@types/webpack-sources/index.d.ts": [
|
|
5490
5490
|
"./node_modules/@types/node/index.d.ts",
|
|
@@ -5562,11 +5562,11 @@
|
|
|
5562
5562
|
"./node_modules/@types/webpack/index.d.ts": [
|
|
5563
5563
|
"./node_modules/@types/node/crypto.d.ts",
|
|
5564
5564
|
"./node_modules/@types/node/index.d.ts",
|
|
5565
|
-
"./node_modules/@types/stylelint/node_modules/source-map/source-map.d.ts",
|
|
5566
5565
|
"./node_modules/@types/tapable/index.d.ts",
|
|
5567
5566
|
"./node_modules/@types/uglify-js/index.d.ts",
|
|
5568
5567
|
"./node_modules/@types/webpack-sources/index.d.ts",
|
|
5569
|
-
"./node_modules/anymatch/index.d.ts"
|
|
5568
|
+
"./node_modules/anymatch/index.d.ts",
|
|
5569
|
+
"./node_modules/postcss/node_modules/source-map/source-map.d.ts"
|
|
5570
5570
|
],
|
|
5571
5571
|
"./node_modules/@uirouter/angularjs/lib/directives/viewDirective.d.ts": [
|
|
5572
5572
|
"./node_modules/@uirouter/angularjs/lib/directives/stateDirectives.d.ts",
|