@mediafly/js-ui 51.5.0-5 → 51.5.0-7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,12 +18,12 @@ export default class FontWeightSelectorController implements IComponentControlle
18
18
  protected isDropdownVisible: boolean;
19
19
  protected kbSelectedIndex: number;
20
20
  protected keyEventElement: HTMLElement | null;
21
+ protected fontWeightTranslationsMap: Map<string, string>;
21
22
  private observer;
22
- private fontWeightOptionsMap;
23
23
  constructor($document: ng.IDocumentService, $scope: ng.IScope, $element: ng.IAugmentedJQuery, $timeout: ng.ITimeoutService, translateFactory: any, webfontLoaderService: WebfontLoaderService);
24
24
  $onDestroy(): void;
25
25
  $onInit(): void;
26
- protected clickSelect($event: any): void;
26
+ protected onClickWeightButton($event: any): void;
27
27
  dropdownWasMousedOver(): void;
28
28
  protected variantWasSelected(variant: string): void;
29
29
  private onClickElsewhere;
@@ -1,5 +1,5 @@
1
1
  <div>
2
- <button ng-click="$ctrl.clickSelect($event)" class="c-font-weight-selector__select">
2
+ <button ng-click="$ctrl.onClickWeightButton($event)" class="c-font-weight-selector__select">
3
3
  <div class="fas fa-text-height c-font-weight-selector__select__icon"></div>
4
4
  </button>
5
5
 
@@ -16,12 +16,13 @@
16
16
  ng-class="[
17
17
  ($ctrl.interactionMode === 'mouse') ? 'with-mouse' : 'with-keyboard',
18
18
  { 'is-selected': ($ctrl.kbSelectedIndex === $index) },
19
+ { 'is-current-value': $ctrl.fontWeight === variant },
19
20
  ]"
20
21
  ng-style="{'font-family': $ctrl.fontFamily, 'font-weight': variant}"
21
22
  ng-click="$ctrl.variantWasSelected(variant)"
22
23
  ng-repeat="variant in $ctrl.fontWeightOptions"
23
24
  >
24
- <span>{{ $ctrl.fontWeightOptionsMap.get(variant) }}</span>
25
+ <span>{{ $ctrl.fontWeightTranslationsMap.get(variant) }}</span>
25
26
  </div>
26
27
  </div>
27
28
  </div>
@@ -29,7 +29,7 @@ let FontWeightSelectorController = class FontWeightSelectorController {
29
29
  this.isDropdownVisible = false;
30
30
  this.kbSelectedIndex = -1;
31
31
  this.keyEventElement = null;
32
- this.fontWeightOptionsMap = new Map();
32
+ this.fontWeightTranslationsMap = new Map();
33
33
  this.onClickElsewhere = ($event) => {
34
34
  this.$timeout(() => {
35
35
  this.isDropdownVisible = false;
@@ -88,7 +88,7 @@ let FontWeightSelectorController = class FontWeightSelectorController {
88
88
  body.addEventListener('click', this.onClickElsewhere);
89
89
  this.kbSelectedIndex = ((_a = this.fontWeightOptions) === null || _a === void 0 ? void 0 : _a.indexOf(this.fontWeight || '')) || -1;
90
90
  for (let i = 1; i <= 9; i++) {
91
- this.fontWeightOptionsMap.set(`${i}00`, this.translateFactory.instant(`JSUI.FONT_WEIGHT_${i}00`));
91
+ this.fontWeightTranslationsMap.set(`${i}00`, this.translateFactory.instant(`JSUI.FONT_WEIGHT_${i}00`));
92
92
  }
93
93
  // Load preview fonts when the font family or weight options change
94
94
  this.$scope.$watchCollection(() => [this.fontFamily, this.fontWeightOptions], () => {
@@ -106,7 +106,7 @@ let FontWeightSelectorController = class FontWeightSelectorController {
106
106
  });
107
107
  this.observer.observe(body, { attributes: true, childList: true, characterData: false, subtree: true });
108
108
  }
109
- clickSelect($event) {
109
+ onClickWeightButton($event) {
110
110
  this.isDropdownVisible = !this.isDropdownVisible;
111
111
  if (this.isDropdownVisible) {
112
112
  this.$timeout(() => {
@@ -124,9 +124,6 @@ let FontWeightSelectorController = class FontWeightSelectorController {
124
124
  }
125
125
  variantWasSelected(variant) {
126
126
  var _a;
127
- if (!this.fontFamily) {
128
- throw new Error('Font family is unexpectedly undefined.');
129
- }
130
127
  this.isDropdownVisible = false;
131
128
  (_a = this.onFontWeightSelect) === null || _a === void 0 ? void 0 : _a.call(this, { fontWeight: variant });
132
129
  }
@@ -1 +1 @@
1
- {"version":3,"file":"font-weight-selector.js","sourceRoot":"","sources":["../../src/components/font-weight-selector/font-weight-selector.ts"],"names":[],"mappings":";;;;;;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AI,EAAsB,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,CAAA;IACnD,CAAC;IAkDO,iBAAiB,CAAC,KAAa;QAEtC,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,oCAAoC,CAAC,CAAC,KAAK,CAAmB,CAAA;QAC7F,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAA;IAE9D,CAAC;CAED,CAAA;AA9IS;IAAR,kBAAK,EAAE;;gEAAoB;AACnB;IAAR,kBAAK,EAAE;;gEAAoB;AACnB;IAAR,kBAAK,EAAE;;uEAA6B;AAEvB;IAAb,mBAAM,CAAC,IAAI,CAAC;;wEAA6D;AANtD,4BAA4B;IAJhD,sBAAS,CAAC;QACV,QAAQ,EAAE,wBAAwB;QAClC,QAAQ,EAAE,OAAO,CAAC,6BAA6B,CAAC;KAChD,CAAC;IAiBC,WAAA,mBAAM,CAAC,WAAW,CAAC,CAAA;IACnB,WAAA,mBAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,mBAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,mBAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,mBAAM,CAAC,kBAAkB,CAAC,CAAA;IAC1B,WAAA,mBAAM,CAAC,sBAAsB,CAAC,CAAA;+EAA+B,gCAAoB;GArB/D,4BAA4B,CAgJhD;kBAhJoB,4BAA4B"}
1
+ {"version":3,"file":"font-weight-selector.js","sourceRoot":"","sources":["../../src/components/font-weight-selector/font-weight-selector.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8CAAgE;AAChE,qGAA0E;AAO1E,IAAqB,4BAA4B,GAAjD,MAAqB,4BAA4B;IAehD,YAC8B,SAA8B,EACjC,MAAiB,EACf,QAA6B,EAC7B,QAA4B,EACpB,gBAAgB,EACZ,oBAA0C;QALrD,cAAS,G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,EAAE,SAAS,EAAE,CAAC,CAAA;IAE9D,CAAC;CAED,CAAA;AA5IS;IAAR,kBAAK,EAAE;;gEAAoB;AACnB;IAAR,kBAAK,EAAE;;gEAAoB;AACnB;IAAR,kBAAK,EAAE;;uEAA6B;AAEvB;IAAb,mBAAM,CAAC,IAAI,CAAC;;wEAA6D;AANtD,4BAA4B;IAJhD,sBAAS,CAAC;QACV,QAAQ,EAAE,wBAAwB;QAClC,QAAQ,EAAE,OAAO,CAAC,6BAA6B,CAAC;KAChD,CAAC;IAiBC,WAAA,mBAAM,CAAC,WAAW,CAAC,CAAA;IACnB,WAAA,mBAAM,CAAC,QAAQ,CAAC,CAAA;IAChB,WAAA,mBAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,mBAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,mBAAM,CAAC,kBAAkB,CAAC,CAAA;IAC1B,WAAA,mBAAM,CAAC,sBAAsB,CAAC,CAAA;+EAA+B,gCAAoB;GArB/D,4BAA4B,CA8IhD;kBA9IoB,4BAA4B"}
@@ -1,2 +1 @@
1
- import '../font-selector/webfont-loader.service';
2
1
  import './font-weight-selector';
@@ -1,5 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("../font-selector/webfont-loader.service");
4
3
  require("./font-weight-selector");
5
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/font-weight-selector/index.ts"],"names":[],"mappings":";;AAAA,mDAAgD;AAChD,kCAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/font-weight-selector/index.ts"],"names":[],"mappings":";;AAAA,kCAA+B"}
@@ -1,3 +1,2 @@
1
- import '../font-selector/google-webfonts-api.service';
2
1
  import './rich-text.component';
3
2
  import './rich-text.service';
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require("../font-selector/google-webfonts-api.service");
4
3
  require("./rich-text.component");
5
4
  require("./rich-text.service");
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/rich-text/index.ts"],"names":[],"mappings":";;AAAA,wDAAqD;AACrD,iCAA8B;AAC9B,+BAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/rich-text/index.ts"],"names":[],"mappings":";;AAAA,iCAA8B;AAC9B,+BAA4B"}
@@ -9,6 +9,7 @@ export default class RichTextComponentController implements IComponentController
9
9
  private $element;
10
10
  private $rootScope;
11
11
  private $timeout;
12
+ private $q;
12
13
  private googleWebfontsApiService;
13
14
  private richTextService;
14
15
  private translateFactory;
@@ -23,6 +24,7 @@ export default class RichTextComponentController implements IComponentController
23
24
  protected requiredText: string;
24
25
  protected selectedColor: string;
25
26
  protected selectedFont: string;
27
+ protected fontWeightOptions: string[];
26
28
  protected fontWeightOptionsCache: Map<string, string[]>;
27
29
  protected selectedFontWeight: string;
28
30
  protected toolbarId: string;
@@ -41,7 +43,7 @@ export default class RichTextComponentController implements IComponentController
41
43
  private HEADING_2_COLOR;
42
44
  private HEADING_2_FONT;
43
45
  private HEADING_2_SIZE;
44
- constructor($element: ng.IAugmentedJQuery, $rootScope: JSUIRootScope, $timeout: ng.ITimeoutService, googleWebfontsApiService: GoogleWebfontsApiService, richTextService: RichTextService, translateFactory: TranslateFactory);
46
+ constructor($element: ng.IAugmentedJQuery, $rootScope: JSUIRootScope, $timeout: ng.ITimeoutService, $q: ng.IQService, googleWebfontsApiService: GoogleWebfontsApiService, richTextService: RichTextService, translateFactory: TranslateFactory);
45
47
  $onChanges(changes: {
46
48
  isRequired?: ng.IChangesObject<boolean>;
47
49
  }): void;
@@ -56,7 +58,6 @@ export default class RichTextComponentController implements IComponentController
56
58
  protected onTextChange(delta: Delta, oldContents: Delta, source: EmitterSource): void;
57
59
  /** The user moved the cursor. Fix missing formats and update the toolbar to reflect the current selection. */
58
60
  protected selectionChange(range: Range, _oldRange: Range, source: EmitterSource): void;
59
- protected getFontWeightOptions(): string[];
60
61
  private checkValidity;
61
62
  /**
62
63
  * Quill's "Clear formatting" button leaves us with no font, size, or color, so the style is inherited from the CSS.
@@ -107,6 +108,9 @@ export default class RichTextComponentController implements IComponentController
107
108
  private updateColorPicker;
108
109
  /** Updates the font shown in the toolbar. Does not change the font being used in the text. */
109
110
  private updateFontPicker;
111
+ private updateFontWeightPicker;
110
112
  /** Updates the size shown in the toolbar. Does not change the size being used in the text. */
111
113
  private updateSizePicker;
114
+ /** Caches all available font weights for all provided fonts. And sets this.fontWeightOptions to the weights common to all fonts. */
115
+ private updateAvailableFontWeights;
112
116
  }
@@ -39,12 +39,12 @@
39
39
  </span>
40
40
 
41
41
  <span class="ql-formats">
42
- <button class="ql-bold" ng-show="$ctrl.getFontWeightOptions().length <= 1 || !$ctrl.allowFontSelection"></button>
42
+ <button class="ql-bold" ng-show="$ctrl.fontWeightOptions.length <= 1 || !$ctrl.allowFontSelection"></button>
43
43
  <mfly:font-weight-selector
44
- ng-if="$ctrl.getFontWeightOptions().length > 1 && $ctrl.allowFontSelection"
44
+ ng-if="$ctrl.fontWeightOptions.length > 1 && $ctrl.allowFontSelection"
45
45
  font-family="$ctrl.selectedFont"
46
46
  font-weight="$ctrl.selectedFontWeight"
47
- font-weight-options="$ctrl.getFontWeightOptions()"
47
+ font-weight-options="$ctrl.fontWeightOptions"
48
48
  on-font-weight-select="$ctrl.fontWeightSelected(fontWeight)"
49
49
  ></mfly:font-weight-selector>
50
50
  <button class="ql-italic"></button>
@@ -43,13 +43,15 @@ const rich_text_service_1 = __importDefault(require("./rich-text.service"));
43
43
  const parchment_1 = require("parchment");
44
44
  const google_webfonts_api_service_1 = __importDefault(require("../font-selector/google-webfonts-api.service"));
45
45
  let RichTextComponentController = class RichTextComponentController {
46
- constructor($element, $rootScope, $timeout, googleWebfontsApiService, richTextService, translateFactory) {
46
+ constructor($element, $rootScope, $timeout, $q, googleWebfontsApiService, richTextService, translateFactory) {
47
47
  this.$element = $element;
48
48
  this.$rootScope = $rootScope;
49
49
  this.$timeout = $timeout;
50
+ this.$q = $q;
50
51
  this.googleWebfontsApiService = googleWebfontsApiService;
51
52
  this.richTextService = richTextService;
52
53
  this.translateFactory = translateFactory;
54
+ this.fontWeightOptions = [];
53
55
  this.fontWeightOptionsCache = new Map();
54
56
  this.debouncedSanitizeAndValidate = lodash_1.default.debounce(() => this.sanitizeAndValidate(), 250);
55
57
  this.DEFAULT_COLOR = '#535353';
@@ -86,9 +88,7 @@ let RichTextComponentController = class RichTextComponentController {
86
88
  this.toolbarId = 'rteToolbar-' + uuid_1.v4();
87
89
  // Populate the available font weights for the default font
88
90
  if (this.allowFontSelection) {
89
- this.googleWebfontsApiService.getFontVariants(this.DEFAULT_FONT)
90
- .then(variants => this.googleWebfontsApiService.sortFontWeightVariants(variants))
91
- .then(weights => this.fontWeightOptionsCache.set(this.DEFAULT_FONT, weights));
91
+ this.updateAvailableFontWeights([this.DEFAULT_FONT]);
92
92
  }
93
93
  this.$timeout(() => {
94
94
  var _a, _b;
@@ -96,6 +96,7 @@ let RichTextComponentController = class RichTextComponentController {
96
96
  (_a = this.colorPicker) === null || _a === void 0 ? void 0 : _a.addEventListener('change', this.colorChanged.bind(this));
97
97
  (_b = this.colorPicker) === null || _b === void 0 ? void 0 : _b.addEventListener('click', this.colorInputOpened.bind(this));
98
98
  this.updateFontPicker(this.DEFAULT_FONT);
99
+ this.updateFontWeightPicker(this.DEFAULT_WEIGHT);
99
100
  this.updateSizePicker(this.DEFAULT_SIZE);
100
101
  this.updateColorPicker(this.DEFAULT_COLOR);
101
102
  });
@@ -154,6 +155,7 @@ let RichTextComponentController = class RichTextComponentController {
154
155
  this.$rootScope.$broadcast('richTextToolbarContainer:closeContainer');
155
156
  this.editor.format('font', `"${fontFamily}"`);
156
157
  this.fontWeightOptionsCache.set(fontFamily, fontWeightOptions || []);
158
+ this.fontWeightOptions = fontWeightOptions || [];
157
159
  if (!(fontWeightOptions === null || fontWeightOptions === void 0 ? void 0 : fontWeightOptions.includes(this.selectedFontWeight))) {
158
160
  this.selectedFontWeight = this.DEFAULT_WEIGHT;
159
161
  this.editor.format('font-weight', undefined);
@@ -163,6 +165,7 @@ let RichTextComponentController = class RichTextComponentController {
163
165
  fontWeightSelected(fontWeight) {
164
166
  this.selectedFontWeight = fontWeight;
165
167
  this.editor.format('font-weight', fontWeight === this.DEFAULT_WEIGHT ? undefined : fontWeight);
168
+ this.debouncedSanitizeAndValidate();
166
169
  }
167
170
  /** The user entered/deleted/modified some text. Handle any formatting issues, then store the model. */
168
171
  onTextChange(delta, oldContents, source) {
@@ -199,13 +202,12 @@ let RichTextComponentController = class RichTextComponentController {
199
202
  // fonts, text size, and color are handled by plugins so we need to update those ourselves.
200
203
  const format = this.editor.getFormat(range);
201
204
  this.updateFontPicker(this.getFontFromFormat(format));
205
+ this.updateFontWeightPicker(this.getFontWeightFromFormat(format));
202
206
  this.updateColorPicker(this.getColorFromFormat(format));
203
207
  this.updateSizePicker(this.getSizeFromFormat(format));
208
+ this.updateAvailableFontWeights(Array.isArray(format.font) ? format.font : [format.font]);
204
209
  });
205
210
  }
206
- getFontWeightOptions() {
207
- return this.fontWeightOptionsCache.get(this.selectedFont) || [];
208
- }
209
211
  checkValidity() {
210
212
  const isValid = !this.isRequired || !!this.ngModelCtrl.$viewValue;
211
213
  this.$timeout(() => {
@@ -232,6 +234,7 @@ let RichTextComponentController = class RichTextComponentController {
232
234
  this.editor.format('color', this.DEFAULT_COLOR);
233
235
  this.updateColorPicker(this.DEFAULT_COLOR);
234
236
  this.editor.format('font-weight', undefined);
237
+ this.updateFontWeightPicker(this.DEFAULT_WEIGHT);
235
238
  }
236
239
  }
237
240
  /**
@@ -326,7 +329,7 @@ let RichTextComponentController = class RichTextComponentController {
326
329
  currentPos += op.retain;
327
330
  }
328
331
  if (allIsFont) {
329
- // The whole selection was the same font, so so that in the font picker.
332
+ // The whole selection was the same font, so show that in the font picker.
330
333
  this.updateFontPicker(allIsFont);
331
334
  }
332
335
  }
@@ -385,6 +388,7 @@ let RichTextComponentController = class RichTextComponentController {
385
388
  if (!format['font-weight']) {
386
389
  const fontWeight = this.getFontWeightFromFormat(nearbyFormat);
387
390
  this.editor.format('font-weight', fontWeight === this.DEFAULT_WEIGHT ? undefined : fontWeight);
391
+ this.updateFontWeightPicker(fontWeight);
388
392
  }
389
393
  }
390
394
  getColorFromFormat(format) {
@@ -551,21 +555,39 @@ let RichTextComponentController = class RichTextComponentController {
551
555
  /** Updates the font shown in the toolbar. Does not change the font being used in the text. */
552
556
  updateFontPicker(font) {
553
557
  this.selectedFont = font;
554
- // If we don't already have the font weight options for this font, fetch them
555
- if (!this.fontWeightOptionsCache.get(font)) {
556
- this.googleWebfontsApiService.getFontVariants(font)
557
- .then(variants => this.googleWebfontsApiService.sortFontWeightVariants(variants))
558
- .then(weights => {
559
- this.fontWeightOptionsCache.set(font, weights);
560
- });
558
+ if (font) {
559
+ this.updateAvailableFontWeights([font]);
561
560
  }
562
561
  }
562
+ updateFontWeightPicker(fontWeight) {
563
+ this.selectedFontWeight = fontWeight;
564
+ }
563
565
  /** Updates the size shown in the toolbar. Does not change the size being used in the text. */
564
566
  updateSizePicker(size) {
565
567
  this.$element.find('.ql-size').val(size);
566
568
  this.$element.find(`#${this.editorSizeId} .ql-picker-label`).attr('data-value', size);
567
569
  this.$element.find(`#${this.editorSizeId} .ql-picker-label`).attr('data-label', size);
568
570
  }
571
+ /** Caches all available font weights for all provided fonts. And sets this.fontWeightOptions to the weights common to all fonts. */
572
+ updateAvailableFontWeights(fonts) {
573
+ // Cache all weights for all requested fonts
574
+ const fontPromises = fonts.map(font => {
575
+ const cachedWeights = this.fontWeightOptionsCache.get(font);
576
+ if (cachedWeights) {
577
+ return this.$q.resolve(cachedWeights);
578
+ }
579
+ return this.googleWebfontsApiService.getFontVariants(font)
580
+ .then(variants => this.googleWebfontsApiService.sortFontWeightVariants(variants))
581
+ .then(weights => {
582
+ this.fontWeightOptionsCache.set(font, weights);
583
+ return weights;
584
+ });
585
+ });
586
+ // Set fontWeightOptions to the weights common to all requested fonts
587
+ this.$q.all(fontPromises).then(results => {
588
+ this.fontWeightOptions = results.reduce((commonWeights, weights) => commonWeights.filter(weight => weights.includes(weight), []));
589
+ });
590
+ }
569
591
  };
570
592
  __decorate([
571
593
  decorators_1.Input(),
@@ -594,10 +616,11 @@ RichTextComponentController = __decorate([
594
616
  __param(0, decorators_1.Inject('$element')),
595
617
  __param(1, decorators_1.Inject('$rootScope')),
596
618
  __param(2, decorators_1.Inject('$timeout')),
597
- __param(3, decorators_1.Inject('googleWebfontsApiService')),
598
- __param(4, decorators_1.Inject('richTextService')),
599
- __param(5, decorators_1.Inject('translateFactory')),
600
- __metadata("design:paramtypes", [Object, Object, Function, google_webfonts_api_service_1.default,
619
+ __param(3, decorators_1.Inject('$q')),
620
+ __param(4, decorators_1.Inject('googleWebfontsApiService')),
621
+ __param(5, decorators_1.Inject('richTextService')),
622
+ __param(6, decorators_1.Inject('translateFactory')),
623
+ __metadata("design:paramtypes", [Object, Object, Function, Function, google_webfonts_api_service_1.default,
601
624
  rich_text_service_1.default, Object])
602
625
  ], RichTextComponentController);
603
626
  exports.default = RichTextComponentController;
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text.component.js","sourceRoot":"","sources":["../../src/components/rich-text/rich-text.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,oDAAsB;AACtB,+CAA+C;AAE/C,8CAAwD;AAExD,+BAAmC;AACnC,4EAAiD;AAEjD,yCAAkD;AAClD,+GAAmF;AASnF,IAAqB,2BAA2B,GAAhD,MAAqB,2BAA2B;IAsC/C,YAC6B,QAA6B,EAC3B,UAAyB,EAC3B,QAA4B,EACZ,wBAAkD,EAC3D,eAAgC,EAC/B,gBAAkC;QAL1C,aAAQ,GAAR,QAAQ,CAAqB;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C,CAAA;SACH;IACF,CAAC;IAED,8FAA8F;IACtF,gBAAgB,CAAC,IAAY;QAEpC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACxC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,mBAAmB,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;QACrF,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,YAAY,mBAAmB,CAAC,CAAC,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;IACtF,CAAC;CACD,CAAA;AAloBS;IAAR,kBAAK,EAAE;;wEAA8B;AAC7B;IAAR,kBAAK,EAAE;;uEAA6B;AAC5B;IAAR,kBAAK,EAAE;;gEAAsB;AACrB;IAAR,kBAAK,EAAE;;+DAAqB;AALT,2BAA2B;IAP/C,sBAAS,CAAC;QACV,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE;YACR,WAAW,EAAE,SAAS;SACtB;QACD,QAAQ,EAAE,OAAO,CAAC,4BAA4B,CAAC;KAC/C,CAAC;IAwCC,WAAA,mBAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,mBAAM,CAAC,YAAY,CAAC,CAAA;IACpB,WAAA,mBAAM,CAAC,UAAU,CAAC,CAAA;IAClB,WAAA,mBAAM,CAAC,0BAA0B,CAAC,CAAA;IAClC,WAAA,mBAAM,CAAC,iBAAiB,CAAC,CAAA;IACzB,WAAA,mBAAM,CAAC,kBAAkB,CAAC,CAAA;+DAF2C,qCAAwB;QAC1C,2BAAe;GA3ChD,2BAA2B,CAooB/C;kBApoBoB,2BAA2B"}
1
+ {"version":3,"file":"rich-text.component.js","sourceRoot":"","sources":["../../src/components/rich-text/rich-text.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAsC;AAC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B"}
@@ -1032,13 +1032,13 @@
1032
1032
  "affectsGlobalScope": false
1033
1033
  },
1034
1034
  "../src/components/font-weight-selector/font-weight-selector.ts": {
1035
- "version": "ccd164ff7a459f2635a21fa29aa5965899de73bc4e7143868ba36ac321ec57e5",
1036
- "signature": "2db1ab08e69a6cb57b0b1ced0148dbbe7d1ad46222198aba0ee97b90ac4db903",
1035
+ "version": "40d185b29ffb901cb32c5c51889993361291e81bb643f82586b1003d325830a6",
1036
+ "signature": "b9c7c5911b3265db86ccd050b41fea67c5501883db165000e25284f1d4c75d44",
1037
1037
  "affectsGlobalScope": false
1038
1038
  },
1039
1039
  "../src/components/font-weight-selector/index.ts": {
1040
- "version": "d05ad4bd2f5026dc6a6fff464bf1e94a2a47b1093daffec2b07566cde48c9c9c",
1041
- "signature": "f55798d330a6dbfd55c709a5a8abca797ec37484d751eadf6d82e9dd4f20d8da",
1040
+ "version": "40fcd72a018d9084e1c17e72c5361c7eb4768477c3d4064717db72a1e7460f74",
1041
+ "signature": "8b7214c496589317c7cccc62bab0324d478e033e434b708b3b5404a23a7567a8",
1042
1042
  "affectsGlobalScope": false
1043
1043
  },
1044
1044
  "../src/components/footer/footer.js": {
@@ -1437,13 +1437,13 @@
1437
1437
  "affectsGlobalScope": false
1438
1438
  },
1439
1439
  "../src/components/rich-text/rich-text.component.ts": {
1440
- "version": "b09e749ae50f51a7a29a970459fbfe715fa2f939fb44204615ad1699f01de859",
1441
- "signature": "8e3fd16816fdeeb084f299b2a998433bc4a57429598d97791ec2f16c20a364b6",
1440
+ "version": "7192aaf21b034ce490e017223f3f2f780af33935035d834548ff78d352b3ea04",
1441
+ "signature": "460e3d5e40704e830529b6741f3035e5271818a62aacdac65200acbd1d92bdbc",
1442
1442
  "affectsGlobalScope": false
1443
1443
  },
1444
1444
  "../src/components/rich-text/index.ts": {
1445
- "version": "b86c0a2f1911d9015cdaf7da60ebe10230d04ac70c015136a754fcf09bede3b7",
1446
- "signature": "52b139856e88ba76b9e02ea50cbc6fb977faf7bde9c08adf38efc9c99894afaf",
1445
+ "version": "22efe1767d235af027a3a35fdec7b2b295b06ab9a4c7bdd88d850d408c52f300",
1446
+ "signature": "e93274de5181a90d328111a8dde317dfd45141dda09ffab29efc96dfbfa9d606",
1447
1447
  "affectsGlobalScope": false
1448
1448
  },
1449
1449
  "../src/components/site-header/default-background-img.b64.js": {
@@ -3755,7 +3755,6 @@
3755
3755
  "../src/components/font-selector/webfont-loader.service.ts"
3756
3756
  ],
3757
3757
  "../src/components/font-weight-selector/index.ts": [
3758
- "../src/components/font-selector/webfont-loader.service.ts",
3759
3758
  "../src/components/font-weight-selector/font-weight-selector.ts"
3760
3759
  ],
3761
3760
  "../src/components/footer/footer.js": [
@@ -3978,7 +3977,6 @@
3978
3977
  "../src/components/decorators/index.ts"
3979
3978
  ],
3980
3979
  "../src/components/rich-text/index.ts": [
3981
- "../src/components/font-selector/google-webfonts-api.service.ts",
3982
3980
  "../src/components/rich-text/rich-text.component.ts",
3983
3981
  "../src/components/rich-text/rich-text.service.ts"
3984
3982
  ],
@@ -5552,7 +5550,6 @@
5552
5550
  "../src/components/font-selector/webfont-loader.service.ts"
5553
5551
  ],
5554
5552
  "../src/components/font-weight-selector/index.ts": [
5555
- "../src/components/font-selector/webfont-loader.service.ts",
5556
5553
  "../src/components/font-weight-selector/font-weight-selector.ts"
5557
5554
  ],
5558
5555
  "../src/components/footer/index.ts": [
@@ -5695,7 +5692,6 @@
5695
5692
  "../src/components/response-handlers/log-error-handler.ts"
5696
5693
  ],
5697
5694
  "../src/components/rich-text/index.ts": [
5698
- "../src/components/font-selector/google-webfonts-api.service.ts",
5699
5695
  "../src/components/rich-text/rich-text.component.ts",
5700
5696
  "../src/components/rich-text/rich-text.service.ts"
5701
5697
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediafly/js-ui",
3
- "version": "51.5.0-5",
3
+ "version": "51.5.0-7",
4
4
  "license": "UNLICENSED",
5
5
  "description": "UI components for Mediafly Angular applications",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  <div>
2
- <button ng-click="$ctrl.clickSelect($event)" class="c-font-weight-selector__select">
2
+ <button ng-click="$ctrl.onClickWeightButton($event)" class="c-font-weight-selector__select">
3
3
  <div class="fas fa-text-height c-font-weight-selector__select__icon"></div>
4
4
  </button>
5
5
 
@@ -16,12 +16,13 @@
16
16
  ng-class="[
17
17
  ($ctrl.interactionMode === 'mouse') ? 'with-mouse' : 'with-keyboard',
18
18
  { 'is-selected': ($ctrl.kbSelectedIndex === $index) },
19
+ { 'is-current-value': $ctrl.fontWeight === variant },
19
20
  ]"
20
21
  ng-style="{'font-family': $ctrl.fontFamily, 'font-weight': variant}"
21
22
  ng-click="$ctrl.variantWasSelected(variant)"
22
23
  ng-repeat="variant in $ctrl.fontWeightOptions"
23
24
  >
24
- <span>{{ $ctrl.fontWeightOptionsMap.get(variant) }}</span>
25
+ <span>{{ $ctrl.fontWeightTranslationsMap.get(variant) }}</span>
25
26
  </div>
26
27
  </div>
27
28
  </div>
@@ -45,4 +45,8 @@ mfly\:font-weight-selector {
45
45
  &.with-keyboard.is-selected {
46
46
  background-color: @color-gray-xx-light;
47
47
  }
48
+
49
+ &.is-current-value {
50
+ background-color: @color-gray-xxx-light;
51
+ }
48
52
  }
@@ -18,8 +18,8 @@ export default class FontWeightSelectorController implements IComponentControlle
18
18
  protected isDropdownVisible: boolean = false
19
19
  protected kbSelectedIndex = -1
20
20
  protected keyEventElement: HTMLElement | null = null
21
+ protected fontWeightTranslationsMap: Map<string, string> = new Map()
21
22
  private observer: MutationObserver
22
- private fontWeightOptionsMap: Map<string, string> = new Map()
23
23
 
24
24
  constructor (
25
25
  @Inject('$document') private $document: ng.IDocumentService,
@@ -49,7 +49,7 @@ export default class FontWeightSelectorController implements IComponentControlle
49
49
  this.kbSelectedIndex = this.fontWeightOptions?.indexOf(this.fontWeight || '') || -1
50
50
 
51
51
  for (let i = 1; i <= 9; i++) {
52
- this.fontWeightOptionsMap.set(`${i}00`, this.translateFactory.instant(`JSUI.FONT_WEIGHT_${i}00`))
52
+ this.fontWeightTranslationsMap.set(`${i}00`, this.translateFactory.instant(`JSUI.FONT_WEIGHT_${i}00`))
53
53
  }
54
54
 
55
55
  // Load preview fonts when the font family or weight options change
@@ -70,7 +70,7 @@ export default class FontWeightSelectorController implements IComponentControlle
70
70
  this.observer.observe(body, { attributes: true, childList: true, characterData: false, subtree: true })
71
71
  }
72
72
 
73
- protected clickSelect($event): void {
73
+ protected onClickWeightButton($event): void {
74
74
  this.isDropdownVisible = !this.isDropdownVisible
75
75
  if (this.isDropdownVisible) {
76
76
  this.$timeout(() => {
@@ -89,8 +89,6 @@ export default class FontWeightSelectorController implements IComponentControlle
89
89
  }
90
90
 
91
91
  protected variantWasSelected(variant: string) {
92
- if (!this.fontFamily) { throw new Error('Font family is unexpectedly undefined.') }
93
-
94
92
  this.isDropdownVisible = false
95
93
  this.onFontWeightSelect?.({ fontWeight: variant })
96
94
  }
@@ -1,2 +1 @@
1
- import '../font-selector/webfont-loader.service'
2
1
  import './font-weight-selector'
@@ -1,3 +1,2 @@
1
- import '../font-selector/google-webfonts-api.service'
2
1
  import './rich-text.component'
3
2
  import './rich-text.service'
@@ -39,12 +39,12 @@
39
39
  </span>
40
40
 
41
41
  <span class="ql-formats">
42
- <button class="ql-bold" ng-show="$ctrl.getFontWeightOptions().length <= 1 || !$ctrl.allowFontSelection"></button>
42
+ <button class="ql-bold" ng-show="$ctrl.fontWeightOptions.length <= 1 || !$ctrl.allowFontSelection"></button>
43
43
  <mfly:font-weight-selector
44
- ng-if="$ctrl.getFontWeightOptions().length > 1 && $ctrl.allowFontSelection"
44
+ ng-if="$ctrl.fontWeightOptions.length > 1 && $ctrl.allowFontSelection"
45
45
  font-family="$ctrl.selectedFont"
46
46
  font-weight="$ctrl.selectedFontWeight"
47
- font-weight-options="$ctrl.getFontWeightOptions()"
47
+ font-weight-options="$ctrl.fontWeightOptions"
48
48
  on-font-weight-select="$ctrl.fontWeightSelected(fontWeight)"
49
49
  ></mfly:font-weight-selector>
50
50
  <button class="ql-italic"></button>
@@ -31,6 +31,7 @@ export default class RichTextComponentController implements IComponentController
31
31
  protected requiredText: string
32
32
  protected selectedColor: string
33
33
  protected selectedFont: string
34
+ protected fontWeightOptions: string[] = []
34
35
  protected fontWeightOptionsCache: Map<string, string[]> = new Map()
35
36
  protected selectedFontWeight: string
36
37
  protected toolbarId: string
@@ -59,6 +60,7 @@ export default class RichTextComponentController implements IComponentController
59
60
  @Inject('$element') private $element: ng.IAugmentedJQuery,
60
61
  @Inject('$rootScope') private $rootScope: JSUIRootScope,
61
62
  @Inject('$timeout') private $timeout: ng.ITimeoutService,
63
+ @Inject('$q') private $q: ng.IQService,
62
64
  @Inject('googleWebfontsApiService') private googleWebfontsApiService: GoogleWebfontsApiService,
63
65
  @Inject('richTextService') private richTextService: RichTextService,
64
66
  @Inject('translateFactory') private translateFactory: TranslateFactory,
@@ -90,9 +92,7 @@ export default class RichTextComponentController implements IComponentController
90
92
 
91
93
  // Populate the available font weights for the default font
92
94
  if (this.allowFontSelection) {
93
- this.googleWebfontsApiService.getFontVariants(this.DEFAULT_FONT)
94
- .then(variants => this.googleWebfontsApiService.sortFontWeightVariants(variants))
95
- .then(weights => this.fontWeightOptionsCache.set(this.DEFAULT_FONT, weights))
95
+ this.updateAvailableFontWeights([this.DEFAULT_FONT])
96
96
  }
97
97
 
98
98
  this.$timeout(() => {
@@ -101,6 +101,7 @@ export default class RichTextComponentController implements IComponentController
101
101
  this.colorPicker?.addEventListener('click', this.colorInputOpened.bind(this))
102
102
 
103
103
  this.updateFontPicker(this.DEFAULT_FONT)
104
+ this.updateFontWeightPicker(this.DEFAULT_WEIGHT)
104
105
  this.updateSizePicker(this.DEFAULT_SIZE)
105
106
  this.updateColorPicker(this.DEFAULT_COLOR)
106
107
  })
@@ -175,6 +176,7 @@ export default class RichTextComponentController implements IComponentController
175
176
  this.editor.format('font', `"${fontFamily}"`)
176
177
 
177
178
  this.fontWeightOptionsCache.set(fontFamily, fontWeightOptions || [])
179
+ this.fontWeightOptions = fontWeightOptions || []
178
180
  if (!fontWeightOptions?.includes(this.selectedFontWeight)) {
179
181
  this.selectedFontWeight = this.DEFAULT_WEIGHT
180
182
  this.editor.format('font-weight', undefined)
@@ -186,6 +188,8 @@ export default class RichTextComponentController implements IComponentController
186
188
  protected fontWeightSelected(fontWeight: string): void {
187
189
  this.selectedFontWeight = fontWeight
188
190
  this.editor.format('font-weight', fontWeight === this.DEFAULT_WEIGHT ? undefined : fontWeight)
191
+
192
+ this.debouncedSanitizeAndValidate()
189
193
  }
190
194
 
191
195
  /** The user entered/deleted/modified some text. Handle any formatting issues, then store the model. */
@@ -228,13 +232,12 @@ export default class RichTextComponentController implements IComponentController
228
232
  // fonts, text size, and color are handled by plugins so we need to update those ourselves.
229
233
  const format = this.editor.getFormat(range)
230
234
  this.updateFontPicker(this.getFontFromFormat(format))
235
+ this.updateFontWeightPicker(this.getFontWeightFromFormat(format))
231
236
  this.updateColorPicker(this.getColorFromFormat(format))
232
237
  this.updateSizePicker(this.getSizeFromFormat(format))
233
- })
234
- }
235
238
 
236
- protected getFontWeightOptions(): string[] {
237
- return this.fontWeightOptionsCache.get(this.selectedFont) || []
239
+ this.updateAvailableFontWeights(Array.isArray(format.font) ? format.font : [format.font])
240
+ })
238
241
  }
239
242
 
240
243
  private checkValidity(): void {
@@ -266,6 +269,7 @@ export default class RichTextComponentController implements IComponentController
266
269
  this.editor.format('color', this.DEFAULT_COLOR)
267
270
  this.updateColorPicker(this.DEFAULT_COLOR)
268
271
  this.editor.format('font-weight', undefined)
272
+ this.updateFontWeightPicker(this.DEFAULT_WEIGHT)
269
273
  }
270
274
  }
271
275
 
@@ -371,7 +375,7 @@ export default class RichTextComponentController implements IComponentController
371
375
  }
372
376
 
373
377
  if (allIsFont) {
374
- // The whole selection was the same font, so so that in the font picker.
378
+ // The whole selection was the same font, so show that in the font picker.
375
379
  this.updateFontPicker(allIsFont)
376
380
  }
377
381
  }
@@ -440,6 +444,7 @@ export default class RichTextComponentController implements IComponentController
440
444
  if (!format['font-weight']) {
441
445
  const fontWeight = this.getFontWeightFromFormat(nearbyFormat)
442
446
  this.editor.format('font-weight', fontWeight === this.DEFAULT_WEIGHT ? undefined : fontWeight)
447
+ this.updateFontWeightPicker(fontWeight)
443
448
  }
444
449
  }
445
450
 
@@ -644,16 +649,15 @@ export default class RichTextComponentController implements IComponentController
644
649
 
645
650
  this.selectedFont = font
646
651
 
647
- // If we don't already have the font weight options for this font, fetch them
648
- if (!this.fontWeightOptionsCache.get(font)) {
649
- this.googleWebfontsApiService.getFontVariants(font)
650
- .then(variants => this.googleWebfontsApiService.sortFontWeightVariants(variants))
651
- .then(weights => {
652
- this.fontWeightOptionsCache.set(font, weights)
653
- })
652
+ if (font) {
653
+ this.updateAvailableFontWeights([font])
654
654
  }
655
655
  }
656
656
 
657
+ private updateFontWeightPicker(fontWeight: string): void {
658
+ this.selectedFontWeight = fontWeight
659
+ }
660
+
657
661
  /** Updates the size shown in the toolbar. Does not change the size being used in the text. */
658
662
  private updateSizePicker(size: string): void {
659
663
 
@@ -661,6 +665,29 @@ export default class RichTextComponentController implements IComponentController
661
665
  this.$element.find(`#${this.editorSizeId} .ql-picker-label`).attr('data-value', size)
662
666
  this.$element.find(`#${this.editorSizeId} .ql-picker-label`).attr('data-label', size)
663
667
  }
668
+
669
+ /** Caches all available font weights for all provided fonts. And sets this.fontWeightOptions to the weights common to all fonts. */
670
+ private updateAvailableFontWeights(fonts: string[]): void {
671
+
672
+ // Cache all weights for all requested fonts
673
+ const fontPromises = fonts.map(font => {
674
+ const cachedWeights = this.fontWeightOptionsCache.get(font)
675
+ if (cachedWeights) { return this.$q.resolve(cachedWeights) }
676
+
677
+ return this.googleWebfontsApiService.getFontVariants(font)
678
+ .then(variants => this.googleWebfontsApiService.sortFontWeightVariants(variants))
679
+ .then(weights => {
680
+ this.fontWeightOptionsCache.set(font, weights)
681
+ return weights
682
+ })
683
+
684
+ })
685
+
686
+ // Set fontWeightOptions to the weights common to all requested fonts
687
+ this.$q.all(fontPromises).then(results => {
688
+ this.fontWeightOptions = results.reduce((commonWeights: string[], weights: string[]) => commonWeights.filter(weight => weights.includes(weight), []))
689
+ })
690
+ }
664
691
  }
665
692
 
666
693
  interface FontRange {