@dangl/angular-material-shared 1.2.1-beta0013 → 1.2.1-beta0028

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.
Files changed (150) hide show
  1. package/dangl-angular-material-shared.d.ts +1 -0
  2. package/{esm2015/dangl-angular-material-shared.js → esm2020/dangl-angular-material-shared.mjs} +0 -0
  3. package/esm2020/lib/angular-material-shared.module.mjs +40 -0
  4. package/esm2020/lib/components/footer/footer.component.mjs +33 -0
  5. package/esm2020/lib/components/header/header.component.mjs +80 -0
  6. package/esm2020/lib/components/tiny-mce/tiny-mce.component.mjs +104 -0
  7. package/{esm2015/lib/models/footer-options.js → esm2020/lib/models/footer-options.mjs} +0 -0
  8. package/{esm2015/lib/utils/guid-generator.js → esm2020/lib/utils/guid-generator.mjs} +0 -0
  9. package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
  10. package/fesm2015/dangl-angular-material-shared.mjs +294 -0
  11. package/fesm2015/dangl-angular-material-shared.mjs.map +1 -0
  12. package/fesm2020/dangl-angular-material-shared.mjs +292 -0
  13. package/fesm2020/dangl-angular-material-shared.mjs.map +1 -0
  14. package/lib/angular-material-shared.module.d.ts +12 -0
  15. package/lib/components/footer/footer.component.d.ts +3 -0
  16. package/lib/components/header/header.component.d.ts +3 -0
  17. package/lib/components/tiny-mce/tiny-mce.component.d.ts +3 -0
  18. package/package.json +27 -15
  19. package/styles/material-style.scss +1 -1
  20. package/styles/material-theme.scss +4 -3
  21. package/styles/material-variables.scss +9 -8
  22. package/tinymce-assets/langs/cs.js +118 -75
  23. package/tinymce-assets/langs/cy.js +61 -18
  24. package/tinymce-assets/langs/da.js +60 -17
  25. package/tinymce-assets/langs/de.js +60 -17
  26. package/tinymce-assets/langs/eo.js +334 -138
  27. package/tinymce-assets/langs/es_ES.js +32 -2
  28. package/tinymce-assets/langs/fa.js +60 -17
  29. package/tinymce-assets/langs/fa_IR.js +31 -1
  30. package/tinymce-assets/langs/fr_FR.js +60 -17
  31. package/tinymce-assets/langs/hu_HU.js +60 -17
  32. package/tinymce-assets/langs/ja.js +60 -17
  33. package/tinymce-assets/langs/ko_KR.js +3 -3
  34. package/tinymce-assets/langs/nb_NO.js +61 -18
  35. package/tinymce-assets/langs/nl.js +60 -17
  36. package/tinymce-assets/langs/pl.js +60 -17
  37. package/tinymce-assets/langs/pt_BR.js +60 -17
  38. package/tinymce-assets/langs/pt_PT.js +60 -17
  39. package/tinymce-assets/langs/ro.js +60 -17
  40. package/tinymce-assets/langs/ro_RO.js +32 -2
  41. package/tinymce-assets/langs/ru.js +60 -17
  42. package/tinymce-assets/langs/ru_RU.js +445 -0
  43. package/tinymce-assets/langs/sl.js +59 -14
  44. package/tinymce-assets/langs/ta.js +60 -17
  45. package/tinymce-assets/langs/ta_IN.js +60 -17
  46. package/tinymce-assets/langs/th_TH.js +60 -17
  47. package/tinymce-assets/langs/tr_TR.js +81 -8
  48. package/tinymce-assets/langs/vi.js +179 -21
  49. package/tinymce-assets/langs/zh_CN.js +60 -17
  50. package/tinymce-assets/plugins/advlist/plugin.js +1 -1
  51. package/tinymce-assets/plugins/advlist/plugin.min.js +1 -1
  52. package/tinymce-assets/plugins/anchor/plugin.js +1 -1
  53. package/tinymce-assets/plugins/anchor/plugin.min.js +1 -1
  54. package/tinymce-assets/plugins/autolink/plugin.js +25 -19
  55. package/tinymce-assets/plugins/autolink/plugin.min.js +2 -2
  56. package/tinymce-assets/plugins/autoresize/plugin.js +1 -1
  57. package/tinymce-assets/plugins/autoresize/plugin.min.js +1 -1
  58. package/tinymce-assets/plugins/autosave/plugin.js +1 -1
  59. package/tinymce-assets/plugins/autosave/plugin.min.js +1 -1
  60. package/tinymce-assets/plugins/bbcode/plugin.js +1 -1
  61. package/tinymce-assets/plugins/bbcode/plugin.min.js +1 -1
  62. package/tinymce-assets/plugins/charmap/plugin.js +1 -1
  63. package/tinymce-assets/plugins/charmap/plugin.min.js +1 -1
  64. package/tinymce-assets/plugins/code/plugin.js +1 -1
  65. package/tinymce-assets/plugins/code/plugin.min.js +1 -1
  66. package/tinymce-assets/plugins/codesample/plugin.js +1 -1
  67. package/tinymce-assets/plugins/codesample/plugin.min.js +1 -1
  68. package/tinymce-assets/plugins/colorpicker/plugin.js +1 -1
  69. package/tinymce-assets/plugins/colorpicker/plugin.min.js +1 -1
  70. package/tinymce-assets/plugins/contextmenu/plugin.js +1 -1
  71. package/tinymce-assets/plugins/contextmenu/plugin.min.js +1 -1
  72. package/tinymce-assets/plugins/directionality/plugin.js +1 -1
  73. package/tinymce-assets/plugins/directionality/plugin.min.js +1 -1
  74. package/tinymce-assets/plugins/emoticons/plugin.js +1 -1
  75. package/tinymce-assets/plugins/emoticons/plugin.min.js +1 -1
  76. package/tinymce-assets/plugins/fullpage/plugin.js +1 -1
  77. package/tinymce-assets/plugins/fullpage/plugin.min.js +1 -1
  78. package/tinymce-assets/plugins/fullscreen/plugin.js +2 -2
  79. package/tinymce-assets/plugins/fullscreen/plugin.min.js +2 -2
  80. package/tinymce-assets/plugins/help/plugin.js +1 -1
  81. package/tinymce-assets/plugins/help/plugin.min.js +1 -1
  82. package/tinymce-assets/plugins/hr/plugin.js +1 -1
  83. package/tinymce-assets/plugins/hr/plugin.min.js +1 -1
  84. package/tinymce-assets/plugins/image/plugin.js +1 -1
  85. package/tinymce-assets/plugins/image/plugin.min.js +1 -1
  86. package/tinymce-assets/plugins/imagetools/plugin.js +1 -1
  87. package/tinymce-assets/plugins/imagetools/plugin.min.js +1 -1
  88. package/tinymce-assets/plugins/importcss/plugin.js +3 -2
  89. package/tinymce-assets/plugins/importcss/plugin.min.js +2 -2
  90. package/tinymce-assets/plugins/insertdatetime/plugin.js +1 -1
  91. package/tinymce-assets/plugins/insertdatetime/plugin.min.js +1 -1
  92. package/tinymce-assets/plugins/legacyoutput/plugin.js +1 -1
  93. package/tinymce-assets/plugins/legacyoutput/plugin.min.js +1 -1
  94. package/tinymce-assets/plugins/link/plugin.js +1 -1
  95. package/tinymce-assets/plugins/link/plugin.min.js +1 -1
  96. package/tinymce-assets/plugins/lists/plugin.js +1 -1
  97. package/tinymce-assets/plugins/lists/plugin.min.js +1 -1
  98. package/tinymce-assets/plugins/media/plugin.js +1 -1
  99. package/tinymce-assets/plugins/media/plugin.min.js +1 -1
  100. package/tinymce-assets/plugins/nonbreaking/plugin.js +1 -1
  101. package/tinymce-assets/plugins/nonbreaking/plugin.min.js +1 -1
  102. package/tinymce-assets/plugins/noneditable/plugin.js +1 -1
  103. package/tinymce-assets/plugins/noneditable/plugin.min.js +1 -1
  104. package/tinymce-assets/plugins/pagebreak/plugin.js +1 -1
  105. package/tinymce-assets/plugins/pagebreak/plugin.min.js +1 -1
  106. package/tinymce-assets/plugins/paste/plugin.js +1 -1
  107. package/tinymce-assets/plugins/paste/plugin.min.js +1 -1
  108. package/tinymce-assets/plugins/preview/plugin.js +1 -1
  109. package/tinymce-assets/plugins/preview/plugin.min.js +1 -1
  110. package/tinymce-assets/plugins/print/plugin.js +1 -1
  111. package/tinymce-assets/plugins/print/plugin.min.js +1 -1
  112. package/tinymce-assets/plugins/quickbars/plugin.js +1 -1
  113. package/tinymce-assets/plugins/quickbars/plugin.min.js +1 -1
  114. package/tinymce-assets/plugins/save/plugin.js +1 -1
  115. package/tinymce-assets/plugins/save/plugin.min.js +1 -1
  116. package/tinymce-assets/plugins/searchreplace/plugin.js +17 -12
  117. package/tinymce-assets/plugins/searchreplace/plugin.min.js +2 -2
  118. package/tinymce-assets/plugins/spellchecker/plugin.js +1 -1
  119. package/tinymce-assets/plugins/spellchecker/plugin.min.js +1 -1
  120. package/tinymce-assets/plugins/tabfocus/plugin.js +1 -1
  121. package/tinymce-assets/plugins/tabfocus/plugin.min.js +1 -1
  122. package/tinymce-assets/plugins/table/plugin.js +2 -1
  123. package/tinymce-assets/plugins/table/plugin.min.js +2 -2
  124. package/tinymce-assets/plugins/template/plugin.js +1 -1
  125. package/tinymce-assets/plugins/template/plugin.min.js +1 -1
  126. package/tinymce-assets/plugins/textcolor/plugin.js +1 -1
  127. package/tinymce-assets/plugins/textcolor/plugin.min.js +1 -1
  128. package/tinymce-assets/plugins/textpattern/plugin.js +1 -1
  129. package/tinymce-assets/plugins/textpattern/plugin.min.js +1 -1
  130. package/tinymce-assets/plugins/toc/plugin.js +6 -2
  131. package/tinymce-assets/plugins/toc/plugin.min.js +2 -2
  132. package/tinymce-assets/plugins/visualblocks/plugin.js +1 -1
  133. package/tinymce-assets/plugins/visualblocks/plugin.min.js +1 -1
  134. package/tinymce-assets/plugins/visualchars/plugin.js +1 -1
  135. package/tinymce-assets/plugins/visualchars/plugin.min.js +1 -1
  136. package/tinymce-assets/plugins/wordcount/plugin.js +7 -4
  137. package/tinymce-assets/plugins/wordcount/plugin.min.js +2 -2
  138. package/tinymce-assets/themes/mobile/theme.js +1 -1
  139. package/tinymce-assets/themes/mobile/theme.min.js +1 -1
  140. package/tinymce-assets/themes/silver/theme.js +261 -201
  141. package/tinymce-assets/themes/silver/theme.min.js +2 -2
  142. package/bundles/dangl-angular-material-shared.umd.js +0 -285
  143. package/bundles/dangl-angular-material-shared.umd.js.map +0 -1
  144. package/dangl-angular-material-shared.metadata.json +0 -1
  145. package/esm2015/lib/angular-material-shared.module.js +0 -25
  146. package/esm2015/lib/components/footer/footer.component.js +0 -27
  147. package/esm2015/lib/components/header/header.component.js +0 -67
  148. package/esm2015/lib/components/tiny-mce/tiny-mce.component.js +0 -100
  149. package/fesm2015/dangl-angular-material-shared.js +0 -259
  150. package/fesm2015/dangl-angular-material-shared.js.map +0 -1
@@ -0,0 +1,292 @@
1
+ import * as i4 from '@angular/common';
2
+ import { CommonModule } from '@angular/common';
3
+ import * as i0 from '@angular/core';
4
+ import { EventEmitter, Component, Input, Output, forwardRef, Inject, NgModule } from '@angular/core';
5
+ import * as i2 from '@angular/router';
6
+ import { RouterModule } from '@angular/router';
7
+ import * as i1 from '@angular/material/toolbar';
8
+ import { MatToolbarModule } from '@angular/material/toolbar';
9
+ import * as i2$1 from '@angular/material/button';
10
+ import { MatButtonModule } from '@angular/material/button';
11
+ import * as i3 from '@angular/material/icon';
12
+ import { MatIconModule } from '@angular/material/icon';
13
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
14
+
15
+ class FooterComponent {
16
+ constructor() {
17
+ this.currentYear = new Date().getFullYear();
18
+ this.showLegalNotice = false;
19
+ this.legalNoticeText = 'Legal Notice';
20
+ this.legalNoticeLink = 'legal-notice';
21
+ this.useLegalNoticeCallback = false;
22
+ this.legalNoticeCallback = new EventEmitter();
23
+ }
24
+ }
25
+ FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
+ FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: FooterComponent, selector: "dangl-footer", inputs: { showLegalNotice: "showLegalNotice", legalNoticeText: "legalNoticeText", legalNoticeLink: "legalNoticeLink", useLegalNoticeCallback: "useLegalNoticeCallback", options: "options" }, outputs: { legalNoticeCallback: "legalNoticeCallback" }, ngImport: i0, template: "<footer class=\"gd-footer\">\r\n <p>\r\n <ng-template [ngIf]=\"!options\">\r\n <span class=\"gd-logo gd-logo-sm\">GD</span>\r\n <span>&nbsp;</span>\r\n <a href=\"https://www.dangl-it.com\"\r\n >Dangl<strong>IT</strong> GmbH \u00A9 {{ currentYear }}</a\r\n >\r\n </ng-template>\r\n <ng-template [ngIf]=\"options\">\r\n <span *ngIf=\"options.logoInitials\" class=\"gd-logo gd-logo-sm\">{{\r\n options.logoInitials\r\n }}</span>\r\n <span>&nbsp;</span>\r\n <a *ngIf=\"options.copyrightUrl\" href=\"{{ options.copyrightUrl }}\"\r\n ><span [innerHtml]=\"options.companyNameHtml\"></span\r\n ></a>\r\n <span\r\n *ngIf=\"!options.copyrightUrl\"\r\n [innerHtml]=\"options.companyNameHtml\"\r\n ></span>\r\n </ng-template>\r\n <ng-template [ngIf]=\"showLegalNotice\">\r\n -\r\n <a *ngIf=\"!useLegalNoticeCallback\" [routerLink]=\"legalNoticeLink\">{{\r\n legalNoticeText\r\n }}</a>\r\n <a\r\n href=\"javascript:void(0)\"\r\n *ngIf=\"useLegalNoticeCallback\"\r\n (click)=\"legalNoticeCallback.next(null)\"\r\n >{{ legalNoticeText }}</a\r\n >\r\n </ng-template>\r\n </p>\r\n</footer>\r\n", styles: [""], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }] });
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: FooterComponent, decorators: [{
28
+ type: Component,
29
+ args: [{ selector: 'dangl-footer', template: "<footer class=\"gd-footer\">\r\n <p>\r\n <ng-template [ngIf]=\"!options\">\r\n <span class=\"gd-logo gd-logo-sm\">GD</span>\r\n <span>&nbsp;</span>\r\n <a href=\"https://www.dangl-it.com\"\r\n >Dangl<strong>IT</strong> GmbH \u00A9 {{ currentYear }}</a\r\n >\r\n </ng-template>\r\n <ng-template [ngIf]=\"options\">\r\n <span *ngIf=\"options.logoInitials\" class=\"gd-logo gd-logo-sm\">{{\r\n options.logoInitials\r\n }}</span>\r\n <span>&nbsp;</span>\r\n <a *ngIf=\"options.copyrightUrl\" href=\"{{ options.copyrightUrl }}\"\r\n ><span [innerHtml]=\"options.companyNameHtml\"></span\r\n ></a>\r\n <span\r\n *ngIf=\"!options.copyrightUrl\"\r\n [innerHtml]=\"options.companyNameHtml\"\r\n ></span>\r\n </ng-template>\r\n <ng-template [ngIf]=\"showLegalNotice\">\r\n -\r\n <a *ngIf=\"!useLegalNoticeCallback\" [routerLink]=\"legalNoticeLink\">{{\r\n legalNoticeText\r\n }}</a>\r\n <a\r\n href=\"javascript:void(0)\"\r\n *ngIf=\"useLegalNoticeCallback\"\r\n (click)=\"legalNoticeCallback.next(null)\"\r\n >{{ legalNoticeText }}</a\r\n >\r\n </ng-template>\r\n </p>\r\n</footer>\r\n", styles: [""] }]
30
+ }], propDecorators: { showLegalNotice: [{
31
+ type: Input
32
+ }], legalNoticeText: [{
33
+ type: Input
34
+ }], legalNoticeLink: [{
35
+ type: Input
36
+ }], useLegalNoticeCallback: [{
37
+ type: Input
38
+ }], options: [{
39
+ type: Input
40
+ }], legalNoticeCallback: [{
41
+ type: Output
42
+ }] } });
43
+
44
+ class HeaderComponent {
45
+ constructor() {
46
+ this.showMenuButton = false;
47
+ this.logoInitials = "GD";
48
+ this.menuButtonClicked = new EventEmitter();
49
+ this._forceDisablePrereleaseHeader = false;
50
+ }
51
+ set showPrerelease(val) {
52
+ if (val) {
53
+ this._forceDisablePrereleaseHeader = false;
54
+ this._showPrerelease = this.checkPrereleaseData();
55
+ }
56
+ else {
57
+ this._forceDisablePrereleaseHeader = true;
58
+ this._showPrerelease = false;
59
+ }
60
+ }
61
+ get showPrerelease() {
62
+ if (this._forceDisablePrereleaseHeader) {
63
+ return false;
64
+ }
65
+ return this._showPrerelease;
66
+ }
67
+ ngOnChanges(_) {
68
+ if (!this._forceDisablePrereleaseHeader) {
69
+ this._showPrerelease = this.checkPrereleaseData();
70
+ }
71
+ }
72
+ checkPrereleaseData() {
73
+ let isShowing = this.preReleaseVersion != null ||
74
+ this.preReleaseBuildDate != null ||
75
+ this.preReleaseLiveSiteLink != null;
76
+ if (this.preReleaseVersion != null && typeof Storage !== "undefined") {
77
+ isShowing =
78
+ this.preReleaseVersion !==
79
+ localStorage.getItem("dangl_preview_notice_header_hide_version");
80
+ }
81
+ return isShowing;
82
+ }
83
+ hideForCurrentVersion() {
84
+ if (typeof Storage !== "undefined") {
85
+ localStorage.setItem("dangl_preview_notice_header_hide_version", this.preReleaseVersion);
86
+ this.showPrerelease = false;
87
+ }
88
+ }
89
+ }
90
+ HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
91
+ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: HeaderComponent, selector: "dangl-header", inputs: { prefix: "prefix", postfix: "postfix", showMenuButton: "showMenuButton", logoInitials: "logoInitials", iconUrl: "iconUrl", preReleaseVersion: "preReleaseVersion", preReleaseBuildDate: "preReleaseBuildDate", preReleaseLiveSiteLink: "preReleaseLiveSiteLink", showPrerelease: "showPrerelease" }, outputs: { menuButtonClicked: "menuButtonClicked" }, usesOnChanges: true, ngImport: i0, template: "<mat-toolbar color=\"primary\">\r\n <mat-toolbar-row>\r\n <button\r\n mat-button\r\n class=\"menu-button\"\r\n *ngIf=\"showMenuButton\"\r\n (click)=\"menuButtonClicked.next(null)\"\r\n >\r\n <mat-icon>menu</mat-icon>\r\n </button>\r\n <a routerLink=\"/\" class=\"header-title\" *ngIf=\"iconUrl\">\r\n <img class=\"dangl-header-logo\" [src]=\"iconUrl\" />\r\n </a>\r\n <a routerLink=\"/\" class=\"header-title\">\r\n <h1>\r\n <span *ngIf=\"logoInitials\" class=\"gd-logo\">{{ logoInitials }}</span>\r\n <ng-container *ngIf=\"prefix || postfix\">\r\n {{ prefix }}<strong>{{ postfix }}</strong>\r\n </ng-container>\r\n </h1>\r\n </a>\r\n <span class=\"toolbar-spacer\"></span>\r\n <ng-content></ng-content>\r\n </mat-toolbar-row>\r\n <mat-toolbar-row *ngIf=\"showPrerelease\" class=\"preview-notice\">\r\n <div class=\"preview-row\">\r\n <span> <mat-icon>warning</mat-icon> This is a preview site. </span>\r\n <a href=\"{{ preReleaseLiveSiteLink }}\" *ngIf=\"preReleaseLiveSiteLink\"\r\n >Click here to go to the live site</a\r\n >\r\n <div>\r\n <button\r\n mat-button\r\n mat-raised-button\r\n color=\"primary\"\r\n (click)=\"showPrerelease = false\"\r\n >\r\n OK\r\n </button>\r\n <button\r\n mat-button\r\n mat-raised-button\r\n color=\"primary\"\r\n (click)=\"hideForCurrentVersion()\"\r\n >\r\n Hide for this version\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"preview-row\">\r\n <span *ngIf=\"preReleaseVersion\">Version: {{ preReleaseVersion }}</span>\r\n <span *ngIf=\"preReleaseBuildDate\"\r\n >Built: {{ preReleaseBuildDate | date: \"dd.MM.yyyy HH:mm\" }}</span\r\n >\r\n </div>\r\n </mat-toolbar-row>\r\n <mat-toolbar-row class=\"header-divider\"></mat-toolbar-row>\r\n</mat-toolbar>\r\n", styles: [".header-divider{background-color:#3b4c55;height:12px}.preview-notice{background-color:#f44336;display:flex;flex-direction:column}.preview-notice .preview-row{display:flex;width:100%;flex-direction:row;justify-content:space-between}.preview-notice .preview-row a{text-decoration:underline}.dangl-header-logo{max-height:64px;vertical-align:middle}@media (max-width: 599px){.dangl-header-logo{max-height:56px}}mat-toolbar-row{padding-left:0}.header-title{padding-left:16px}.menu-button{height:100%;margin-left:0;min-width:auto;width:52px}.menu-button mat-icon{transform:scale(1.25)}.toolbar-spacer{flex:1 1 auto}\n"], components: [{ type: i1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], directives: [{ type: i1.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "date": i4.DatePipe } });
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: HeaderComponent, decorators: [{
93
+ type: Component,
94
+ args: [{ selector: "dangl-header", template: "<mat-toolbar color=\"primary\">\r\n <mat-toolbar-row>\r\n <button\r\n mat-button\r\n class=\"menu-button\"\r\n *ngIf=\"showMenuButton\"\r\n (click)=\"menuButtonClicked.next(null)\"\r\n >\r\n <mat-icon>menu</mat-icon>\r\n </button>\r\n <a routerLink=\"/\" class=\"header-title\" *ngIf=\"iconUrl\">\r\n <img class=\"dangl-header-logo\" [src]=\"iconUrl\" />\r\n </a>\r\n <a routerLink=\"/\" class=\"header-title\">\r\n <h1>\r\n <span *ngIf=\"logoInitials\" class=\"gd-logo\">{{ logoInitials }}</span>\r\n <ng-container *ngIf=\"prefix || postfix\">\r\n {{ prefix }}<strong>{{ postfix }}</strong>\r\n </ng-container>\r\n </h1>\r\n </a>\r\n <span class=\"toolbar-spacer\"></span>\r\n <ng-content></ng-content>\r\n </mat-toolbar-row>\r\n <mat-toolbar-row *ngIf=\"showPrerelease\" class=\"preview-notice\">\r\n <div class=\"preview-row\">\r\n <span> <mat-icon>warning</mat-icon> This is a preview site. </span>\r\n <a href=\"{{ preReleaseLiveSiteLink }}\" *ngIf=\"preReleaseLiveSiteLink\"\r\n >Click here to go to the live site</a\r\n >\r\n <div>\r\n <button\r\n mat-button\r\n mat-raised-button\r\n color=\"primary\"\r\n (click)=\"showPrerelease = false\"\r\n >\r\n OK\r\n </button>\r\n <button\r\n mat-button\r\n mat-raised-button\r\n color=\"primary\"\r\n (click)=\"hideForCurrentVersion()\"\r\n >\r\n Hide for this version\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"preview-row\">\r\n <span *ngIf=\"preReleaseVersion\">Version: {{ preReleaseVersion }}</span>\r\n <span *ngIf=\"preReleaseBuildDate\"\r\n >Built: {{ preReleaseBuildDate | date: \"dd.MM.yyyy HH:mm\" }}</span\r\n >\r\n </div>\r\n </mat-toolbar-row>\r\n <mat-toolbar-row class=\"header-divider\"></mat-toolbar-row>\r\n</mat-toolbar>\r\n", styles: [".header-divider{background-color:#3b4c55;height:12px}.preview-notice{background-color:#f44336;display:flex;flex-direction:column}.preview-notice .preview-row{display:flex;width:100%;flex-direction:row;justify-content:space-between}.preview-notice .preview-row a{text-decoration:underline}.dangl-header-logo{max-height:64px;vertical-align:middle}@media (max-width: 599px){.dangl-header-logo{max-height:56px}}mat-toolbar-row{padding-left:0}.header-title{padding-left:16px}.menu-button{height:100%;margin-left:0;min-width:auto;width:52px}.menu-button mat-icon{transform:scale(1.25)}.toolbar-spacer{flex:1 1 auto}\n"] }]
95
+ }], propDecorators: { prefix: [{
96
+ type: Input
97
+ }], postfix: [{
98
+ type: Input
99
+ }], showMenuButton: [{
100
+ type: Input
101
+ }], logoInitials: [{
102
+ type: Input
103
+ }], iconUrl: [{
104
+ type: Input
105
+ }], menuButtonClicked: [{
106
+ type: Output
107
+ }], preReleaseVersion: [{
108
+ type: Input
109
+ }], preReleaseBuildDate: [{
110
+ type: Input
111
+ }], preReleaseLiveSiteLink: [{
112
+ type: Input
113
+ }], showPrerelease: [{
114
+ type: Input
115
+ }] } });
116
+
117
+ // tslint:disable:no-bitwise
118
+ class GuidGenerator {
119
+ /**
120
+ * Taken from https://github.com/Steve-Fenton/TypeScriptUtilities/blob/master/Guid
121
+ * (modified)
122
+ * Generates a Version 4 (= Pseudorandom) Guid
123
+ */
124
+ static generatePseudoRandomGuid() {
125
+ const newGuidPlaceholder = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
126
+ const pseudoGuid = newGuidPlaceholder.replace(/[xy]/g, letter => this.generateRandomHexDigit(letter));
127
+ return pseudoGuid;
128
+ }
129
+ static generateRandomHexDigit(letter) {
130
+ const r = Math.random() * 16 | 0;
131
+ let v;
132
+ if (letter === 'x') {
133
+ v = r;
134
+ }
135
+ else if (letter === 'y') {
136
+ v = r & 0x3 | 0x8;
137
+ /* r & 0x3 -> Allows either 0x0000, 0x0001, 0x0010 or 0x0011
138
+ * | 0x8 -> 0x1000 = 8
139
+ * 0x1001 = 9
140
+ * 0x1010 = A
141
+ * 0x1011 = B
142
+ * The possible variants of version 4 Guids
143
+ */
144
+ }
145
+ else {
146
+ throw new Error('Please provide either "x" to indicate a random replacement or "y" to '
147
+ + 'indicate the generation of the variant identifier');
148
+ }
149
+ return v.toString(16);
150
+ }
151
+ }
152
+
153
+ class TinyMceComponent {
154
+ constructor(baseUrl, ngZone) {
155
+ this.baseUrl = baseUrl;
156
+ this.ngZone = ngZone;
157
+ this.elementId = GuidGenerator.generatePseudoRandomGuid();
158
+ this.onTouchedCallback = () => { };
159
+ this.onChangeCallback = () => { };
160
+ }
161
+ get editorContent() {
162
+ return this._editorContent;
163
+ }
164
+ set editorContent(value) {
165
+ if (value !== this._editorContent) {
166
+ this._editorContent = value;
167
+ this.ngZone.run(() => {
168
+ // tinyMCE events are outside of the Angular zone
169
+ // ngZone.run() makes sure everything runs in the
170
+ // Angular zone, so it integrates in the Angular
171
+ // lifecycle. Otherwise, e.g., 'required' validation
172
+ // would not update on change
173
+ this.onChangeCallback(value);
174
+ });
175
+ }
176
+ }
177
+ ngAfterViewInit() {
178
+ tinymce.init({
179
+ selector: '#' + this.elementId,
180
+ plugins: ['link', 'paste', 'table', 'image', 'code'],
181
+ language: this.tinyMceLanguageCode,
182
+ base_url: this.baseUrl,
183
+ branding: false,
184
+ setup: editor => {
185
+ editor.on('change keyup', () => {
186
+ const content = editor.getContent();
187
+ this.editorContent = content;
188
+ });
189
+ },
190
+ init_instance_callback: editor => {
191
+ if (editor && this.editorContent) {
192
+ editor.setContent(this.editorContent);
193
+ }
194
+ this.editor = editor;
195
+ }
196
+ });
197
+ }
198
+ ngOnDestroy() {
199
+ tinymce.remove(this.editor);
200
+ }
201
+ writeValue(obj) {
202
+ obj = obj || '';
203
+ this.editorContent = obj;
204
+ if (!this.editor) {
205
+ return;
206
+ }
207
+ const tinyMceContent = this.editor.getContent();
208
+ if (tinyMceContent !== obj) {
209
+ this.editor.setContent(obj);
210
+ }
211
+ }
212
+ registerOnChange(fn) {
213
+ this.onChangeCallback = fn;
214
+ }
215
+ registerOnTouched(fn) {
216
+ this.onTouchedCallback = fn;
217
+ }
218
+ setDisabledState(isDisabled) {
219
+ if (isDisabled) {
220
+ this.editor.setMode('readonly');
221
+ }
222
+ else {
223
+ this.editor.setMode('design');
224
+ }
225
+ }
226
+ }
227
+ TinyMceComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TinyMceComponent, deps: [{ token: 'TINYMCE_BASE_URL' }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
228
+ TinyMceComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: TinyMceComponent, selector: "dangl-tiny-mce", inputs: { tinyMceLanguageUrl: "tinyMceLanguageUrl", tinyMceLanguageCode: "tinyMceLanguageCode" }, providers: [
229
+ {
230
+ provide: NG_VALUE_ACCESSOR,
231
+ useExisting: forwardRef(() => TinyMceComponent),
232
+ multi: true,
233
+ }
234
+ ], ngImport: i0, template: "<textarea id=\"{{ elementId }}\"></textarea>\r\n", styles: [""] });
235
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: TinyMceComponent, decorators: [{
236
+ type: Component,
237
+ args: [{ selector: 'dangl-tiny-mce', providers: [
238
+ {
239
+ provide: NG_VALUE_ACCESSOR,
240
+ useExisting: forwardRef(() => TinyMceComponent),
241
+ multi: true,
242
+ }
243
+ ], template: "<textarea id=\"{{ elementId }}\"></textarea>\r\n", styles: [""] }]
244
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
245
+ type: Inject,
246
+ args: ['TINYMCE_BASE_URL']
247
+ }] }, { type: i0.NgZone }]; }, propDecorators: { tinyMceLanguageUrl: [{
248
+ type: Input
249
+ }], tinyMceLanguageCode: [{
250
+ type: Input
251
+ }] } });
252
+
253
+ class AngularMaterialSharedModule {
254
+ }
255
+ AngularMaterialSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AngularMaterialSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
256
+ AngularMaterialSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AngularMaterialSharedModule, declarations: [FooterComponent, HeaderComponent, TinyMceComponent], imports: [MatToolbarModule,
257
+ MatIconModule,
258
+ MatButtonModule,
259
+ RouterModule,
260
+ CommonModule], exports: [FooterComponent, HeaderComponent, TinyMceComponent] });
261
+ AngularMaterialSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AngularMaterialSharedModule, imports: [[
262
+ MatToolbarModule,
263
+ MatIconModule,
264
+ MatButtonModule,
265
+ RouterModule,
266
+ CommonModule
267
+ ]] });
268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: AngularMaterialSharedModule, decorators: [{
269
+ type: NgModule,
270
+ args: [{
271
+ imports: [
272
+ MatToolbarModule,
273
+ MatIconModule,
274
+ MatButtonModule,
275
+ RouterModule,
276
+ CommonModule
277
+ ],
278
+ declarations: [FooterComponent, HeaderComponent, TinyMceComponent],
279
+ exports: [FooterComponent, HeaderComponent, TinyMceComponent]
280
+ }]
281
+ }] });
282
+
283
+ /*
284
+ * Public API Surface of angular-material-shared
285
+ */
286
+
287
+ /**
288
+ * Generated bundle index. Do not edit.
289
+ */
290
+
291
+ export { AngularMaterialSharedModule, FooterComponent, GuidGenerator, HeaderComponent, TinyMceComponent };
292
+ //# sourceMappingURL=dangl-angular-material-shared.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dangl-angular-material-shared.mjs","sources":["../../../projects/angular-material-shared/src/lib/components/footer/footer.component.ts","../../../projects/angular-material-shared/src/lib/components/footer/footer.component.html","../../../projects/angular-material-shared/src/lib/components/header/header.component.ts","../../../projects/angular-material-shared/src/lib/components/header/header.component.html","../../../projects/angular-material-shared/src/lib/utils/guid-generator.ts","../../../projects/angular-material-shared/src/lib/components/tiny-mce/tiny-mce.component.ts","../../../projects/angular-material-shared/src/lib/components/tiny-mce/tiny-mce.component.html","../../../projects/angular-material-shared/src/lib/angular-material-shared.module.ts","../../../projects/angular-material-shared/src/public_api.ts","../../../projects/angular-material-shared/src/dangl-angular-material-shared.ts"],"sourcesContent":["import { Component, EventEmitter, Input, Output } from '@angular/core';\r\n\r\nimport { FooterOptions } from '../../models/footer-options';\r\n\r\n@Component({\r\n selector: 'dangl-footer',\r\n templateUrl: './footer.component.html',\r\n styleUrls: ['./footer.component.scss']\r\n})\r\nexport class FooterComponent {\r\n\r\n currentYear = new Date().getFullYear();\r\n\r\n @Input() showLegalNotice = false;\r\n @Input() legalNoticeText = 'Legal Notice';\r\n @Input() legalNoticeLink = 'legal-notice';\r\n @Input() useLegalNoticeCallback = false;\r\n @Input() options: FooterOptions;\r\n @Output() legalNoticeCallback = new EventEmitter();\r\n\r\n}\r\n","<footer class=\"gd-footer\">\r\n <p>\r\n <ng-template [ngIf]=\"!options\">\r\n <span class=\"gd-logo gd-logo-sm\">GD</span>\r\n <span>&nbsp;</span>\r\n <a href=\"https://www.dangl-it.com\"\r\n >Dangl<strong>IT</strong> GmbH © {{ currentYear }}</a\r\n >\r\n </ng-template>\r\n <ng-template [ngIf]=\"options\">\r\n <span *ngIf=\"options.logoInitials\" class=\"gd-logo gd-logo-sm\">{{\r\n options.logoInitials\r\n }}</span>\r\n <span>&nbsp;</span>\r\n <a *ngIf=\"options.copyrightUrl\" href=\"{{ options.copyrightUrl }}\"\r\n ><span [innerHtml]=\"options.companyNameHtml\"></span\r\n ></a>\r\n <span\r\n *ngIf=\"!options.copyrightUrl\"\r\n [innerHtml]=\"options.companyNameHtml\"\r\n ></span>\r\n </ng-template>\r\n <ng-template [ngIf]=\"showLegalNotice\">\r\n -\r\n <a *ngIf=\"!useLegalNoticeCallback\" [routerLink]=\"legalNoticeLink\">{{\r\n legalNoticeText\r\n }}</a>\r\n <a\r\n href=\"javascript:void(0)\"\r\n *ngIf=\"useLegalNoticeCallback\"\r\n (click)=\"legalNoticeCallback.next(null)\"\r\n >{{ legalNoticeText }}</a\r\n >\r\n </ng-template>\r\n </p>\r\n</footer>\r\n","import {\r\n Component,\r\n EventEmitter,\r\n Input,\r\n OnChanges,\r\n OnInit,\r\n Output,\r\n SimpleChanges,\r\n} from \"@angular/core\";\r\n\r\n@Component({\r\n selector: \"dangl-header\",\r\n templateUrl: \"./header.component.html\",\r\n styleUrls: [\"./header.component.scss\"],\r\n})\r\nexport class HeaderComponent implements OnChanges {\r\n @Input() prefix: string;\r\n @Input() postfix: string;\r\n @Input() showMenuButton = false;\r\n @Input() logoInitials = \"GD\";\r\n @Input() iconUrl: string;\r\n @Output() menuButtonClicked = new EventEmitter();\r\n\r\n @Input() preReleaseVersion: string;\r\n @Input() preReleaseBuildDate: Date;\r\n @Input() preReleaseLiveSiteLink: string;\r\n\r\n @Input() set showPrerelease(val: boolean) {\r\n if (val) {\r\n this._forceDisablePrereleaseHeader = false;\r\n this._showPrerelease = this.checkPrereleaseData();\r\n } else {\r\n this._forceDisablePrereleaseHeader = true;\r\n this._showPrerelease = false;\r\n }\r\n }\r\n\r\n get showPrerelease() {\r\n if (this._forceDisablePrereleaseHeader) {\r\n return false;\r\n }\r\n return this._showPrerelease;\r\n }\r\n\r\n private _showPrerelease: boolean;\r\n private _forceDisablePrereleaseHeader = false;\r\n\r\n ngOnChanges(_: SimpleChanges): void {\r\n if (!this._forceDisablePrereleaseHeader) {\r\n this._showPrerelease = this.checkPrereleaseData();\r\n }\r\n }\r\n\r\n checkPrereleaseData(): boolean {\r\n let isShowing =\r\n this.preReleaseVersion != null ||\r\n this.preReleaseBuildDate != null ||\r\n this.preReleaseLiveSiteLink != null;\r\n if (this.preReleaseVersion != null && typeof Storage !== \"undefined\") {\r\n isShowing =\r\n this.preReleaseVersion !==\r\n localStorage.getItem(\"dangl_preview_notice_header_hide_version\");\r\n }\r\n return isShowing;\r\n }\r\n\r\n hideForCurrentVersion() {\r\n if (typeof Storage !== \"undefined\") {\r\n localStorage.setItem(\r\n \"dangl_preview_notice_header_hide_version\",\r\n this.preReleaseVersion\r\n );\r\n this.showPrerelease = false;\r\n }\r\n }\r\n}\r\n","<mat-toolbar color=\"primary\">\r\n <mat-toolbar-row>\r\n <button\r\n mat-button\r\n class=\"menu-button\"\r\n *ngIf=\"showMenuButton\"\r\n (click)=\"menuButtonClicked.next(null)\"\r\n >\r\n <mat-icon>menu</mat-icon>\r\n </button>\r\n <a routerLink=\"/\" class=\"header-title\" *ngIf=\"iconUrl\">\r\n <img class=\"dangl-header-logo\" [src]=\"iconUrl\" />\r\n </a>\r\n <a routerLink=\"/\" class=\"header-title\">\r\n <h1>\r\n <span *ngIf=\"logoInitials\" class=\"gd-logo\">{{ logoInitials }}</span>\r\n <ng-container *ngIf=\"prefix || postfix\">\r\n {{ prefix }}<strong>{{ postfix }}</strong>\r\n </ng-container>\r\n </h1>\r\n </a>\r\n <span class=\"toolbar-spacer\"></span>\r\n <ng-content></ng-content>\r\n </mat-toolbar-row>\r\n <mat-toolbar-row *ngIf=\"showPrerelease\" class=\"preview-notice\">\r\n <div class=\"preview-row\">\r\n <span> <mat-icon>warning</mat-icon> This is a preview site. </span>\r\n <a href=\"{{ preReleaseLiveSiteLink }}\" *ngIf=\"preReleaseLiveSiteLink\"\r\n >Click here to go to the live site</a\r\n >\r\n <div>\r\n <button\r\n mat-button\r\n mat-raised-button\r\n color=\"primary\"\r\n (click)=\"showPrerelease = false\"\r\n >\r\n OK\r\n </button>\r\n <button\r\n mat-button\r\n mat-raised-button\r\n color=\"primary\"\r\n (click)=\"hideForCurrentVersion()\"\r\n >\r\n Hide for this version\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"preview-row\">\r\n <span *ngIf=\"preReleaseVersion\">Version: {{ preReleaseVersion }}</span>\r\n <span *ngIf=\"preReleaseBuildDate\"\r\n >Built: {{ preReleaseBuildDate | date: \"dd.MM.yyyy HH:mm\" }}</span\r\n >\r\n </div>\r\n </mat-toolbar-row>\r\n <mat-toolbar-row class=\"header-divider\"></mat-toolbar-row>\r\n</mat-toolbar>\r\n","// tslint:disable:no-bitwise\r\n\r\nexport class GuidGenerator {\r\n /**\r\n * Taken from https://github.com/Steve-Fenton/TypeScriptUtilities/blob/master/Guid\r\n * (modified)\r\n * Generates a Version 4 (= Pseudorandom) Guid\r\n */\r\n public static generatePseudoRandomGuid(): string {\r\n const newGuidPlaceholder = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\r\n const pseudoGuid = newGuidPlaceholder.replace(/[xy]/g, letter => this.generateRandomHexDigit(letter));\r\n return pseudoGuid;\r\n }\r\n\r\n private static generateRandomHexDigit(letter: string): string {\r\n const r = Math.random() * 16 | 0;\r\n let v: number;\r\n if (letter === 'x') {\r\n v = r;\r\n } else if (letter === 'y') {\r\n v = r & 0x3 | 0x8;\r\n /* r & 0x3 -> Allows either 0x0000, 0x0001, 0x0010 or 0x0011\r\n * | 0x8 -> 0x1000 = 8\r\n * 0x1001 = 9\r\n * 0x1010 = A\r\n * 0x1011 = B\r\n * The possible variants of version 4 Guids\r\n */\r\n } else {\r\n throw new Error('Please provide either \"x\" to indicate a random replacement or \"y\" to '\r\n + 'indicate the generation of the variant identifier');\r\n }\r\n return v.toString(16);\r\n }\r\n}\r\n","import { Component, forwardRef, Inject, NgZone, Input } from '@angular/core';\r\n// 'AfterViewInit' and 'OnDestroy' should be placed in a separate import to\r\n// mitigate this bug: https://github.com/ng-packagr/ng-packagr/issues/1543#issuecomment-593873874\r\nimport { AfterViewInit, OnDestroy } from '@angular/core';\r\nimport { NG_VALUE_ACCESSOR, ControlValueAccessor } from '@angular/forms';\r\nimport { GuidGenerator } from '../../utils/guid-generator';\r\n\r\ndeclare var tinymce: any;\r\n\r\n@Component({\r\n selector: 'dangl-tiny-mce',\r\n templateUrl: './tiny-mce.component.html',\r\n styleUrls: ['./tiny-mce.component.scss'],\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => TinyMceComponent),\r\n multi: true,\r\n }\r\n ]\r\n})\r\nexport class TinyMceComponent implements AfterViewInit, OnDestroy, ControlValueAccessor {\r\n\r\n @Input() tinyMceLanguageUrl: string;\r\n @Input() tinyMceLanguageCode: string;\r\n\r\n elementId = GuidGenerator.generatePseudoRandomGuid();\r\n editor: any;\r\n private _editorContent: string;\r\n get editorContent(): string {\r\n return this._editorContent;\r\n }\r\n set editorContent(value: string) {\r\n if (value !== this._editorContent) {\r\n this._editorContent = value;\r\n this.ngZone.run(() => {\r\n // tinyMCE events are outside of the Angular zone\r\n // ngZone.run() makes sure everything runs in the\r\n // Angular zone, so it integrates in the Angular\r\n // lifecycle. Otherwise, e.g., 'required' validation\r\n // would not update on change\r\n this.onChangeCallback(value);\r\n });\r\n }\r\n }\r\n\r\n private onTouchedCallback: () => void = () => { };\r\n private onChangeCallback: (_: any) => void = () => { };\r\n\r\n constructor(@Inject('TINYMCE_BASE_URL') private baseUrl: string,\r\n private ngZone: NgZone) {\r\n }\r\n\r\n ngAfterViewInit() {\r\n tinymce.init({\r\n selector: '#' + this.elementId,\r\n plugins: ['link', 'paste', 'table', 'image', 'code'],\r\n language: this.tinyMceLanguageCode,\r\n base_url: this.baseUrl,\r\n branding: false, // To disable 'POWERED BY TINYMCE' in footer\r\n setup: editor => {\r\n editor.on('change keyup', () => {\r\n const content = editor.getContent();\r\n this.editorContent = content;\r\n });\r\n },\r\n init_instance_callback: editor => {\r\n if (editor && this.editorContent) {\r\n editor.setContent(this.editorContent);\r\n }\r\n this.editor = editor;\r\n }\r\n });\r\n }\r\n\r\n ngOnDestroy() {\r\n tinymce.remove(this.editor);\r\n }\r\n\r\n writeValue(obj: any): void {\r\n obj = obj || '';\r\n this.editorContent = obj;\r\n if (!this.editor) {\r\n return;\r\n }\r\n const tinyMceContent = this.editor.getContent();\r\n if (tinyMceContent !== obj) {\r\n this.editor.setContent(obj);\r\n }\r\n }\r\n registerOnChange(fn: any): void {\r\n this.onChangeCallback = fn;\r\n }\r\n registerOnTouched(fn: any): void {\r\n this.onTouchedCallback = fn;\r\n }\r\n setDisabledState?(isDisabled: boolean): void {\r\n if (isDisabled) {\r\n this.editor.setMode('readonly');\r\n } else {\r\n this.editor.setMode('design');\r\n }\r\n }\r\n\r\n}\r\n","<textarea id=\"{{ elementId }}\"></textarea>\r\n","import { CommonModule } from '@angular/common';\r\nimport { FooterComponent } from './components/footer/footer.component';\r\nimport { HeaderComponent } from './components/header/header.component';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatToolbarModule } from '@angular/material/toolbar';\r\nimport { NgModule } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { TinyMceComponent } from './components/tiny-mce/tiny-mce.component';\r\n\r\n@NgModule({\r\n imports: [\r\n MatToolbarModule,\r\n MatIconModule,\r\n MatButtonModule,\r\n RouterModule,\r\n CommonModule\r\n ],\r\n declarations: [FooterComponent, HeaderComponent, TinyMceComponent],\r\n exports: [FooterComponent, HeaderComponent, TinyMceComponent]\r\n})\r\nexport class AngularMaterialSharedModule { }\r\n","/*\r\n * Public API Surface of angular-material-shared\r\n */\r\n\r\nexport * from './lib/angular-material-shared.module';\r\nexport * from './lib/utils/guid-generator';\r\nexport * from './lib/models/footer-options';\r\n\r\nexport * from './lib/components/footer/footer.component';\r\nexport * from './lib/components/header/header.component';\r\nexport * from './lib/components/tiny-mce/tiny-mce.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":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,iBAAiB;YAC1B,WAAW,EAAE,UAAU,CAAC,MAAM,gBAAgB,CAAC;YAC/C,KAAK,EAAE,IAAI;SACZ;KACF,0BCnBH,kDACA;2FDoBa,gBAAgB;kBAZ5B,SAAS;+BACE,gBAAgB,aAGf;wBACT;4BACE,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,sBAAsB,CAAC;4BAC/C,KAAK,EAAE,IAAI;yBACZ;qBACF;;0BA8BY,MAAM;2BAAC,kBAAkB;iEA1B7B,kBAAkB;sBAA1B,KAAK;gBACG,mBAAmB;sBAA3B,KAAK;;;MEHK,2BAA2B;;wHAA3B,2BAA2B;yHAA3B,2BAA2B,iBAHvB,eAAe,EAAE,eAAe,EAAE,gBAAgB,aAN/D,gBAAgB;QAChB,aAAa;QACb,eAAe;QACf,YAAY;QACZ,YAAY,aAGJ,eAAe,EAAE,eAAe,EAAE,gBAAgB;yHAEjD,2BAA2B,YAV7B;YACP,gBAAgB;YAChB,aAAa;YACb,eAAe;YACf,YAAY;YACZ,YAAY;SACb;2FAIU,2BAA2B;kBAXvC,QAAQ;mBAAC;oBACR,OAAO,EAAE;wBACP,gBAAgB;wBAChB,aAAa;wBACb,eAAe;wBACf,YAAY;wBACZ,YAAY;qBACb;oBACD,YAAY,EAAE,CAAC,eAAe,EAAE,eAAe,EAAE,gBAAgB,CAAC;oBAClE,OAAO,EAAE,CAAC,eAAe,EAAE,eAAe,EAAE,gBAAgB,CAAC;iBAC9D;;;ACpBD;;;;ACAA;;;;;;"}
@@ -1,2 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./components/footer/footer.component";
3
+ import * as i2 from "./components/header/header.component";
4
+ import * as i3 from "./components/tiny-mce/tiny-mce.component";
5
+ import * as i4 from "@angular/material/toolbar";
6
+ import * as i5 from "@angular/material/icon";
7
+ import * as i6 from "@angular/material/button";
8
+ import * as i7 from "@angular/router";
9
+ import * as i8 from "@angular/common";
1
10
  export declare class AngularMaterialSharedModule {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<AngularMaterialSharedModule, never>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AngularMaterialSharedModule, [typeof i1.FooterComponent, typeof i2.HeaderComponent, typeof i3.TinyMceComponent], [typeof i4.MatToolbarModule, typeof i5.MatIconModule, typeof i6.MatButtonModule, typeof i7.RouterModule, typeof i8.CommonModule], [typeof i1.FooterComponent, typeof i2.HeaderComponent, typeof i3.TinyMceComponent]>;
13
+ static ɵinj: i0.ɵɵInjectorDeclaration<AngularMaterialSharedModule>;
2
14
  }
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { FooterOptions } from '../../models/footer-options';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class FooterComponent {
4
5
  currentYear: number;
5
6
  showLegalNotice: boolean;
@@ -8,4 +9,6 @@ export declare class FooterComponent {
8
9
  useLegalNoticeCallback: boolean;
9
10
  options: FooterOptions;
10
11
  legalNoticeCallback: EventEmitter<any>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "dangl-footer", never, { "showLegalNotice": "showLegalNotice"; "legalNoticeText": "legalNoticeText"; "legalNoticeLink": "legalNoticeLink"; "useLegalNoticeCallback": "useLegalNoticeCallback"; "options": "options"; }, { "legalNoticeCallback": "legalNoticeCallback"; }, never, never>;
11
14
  }
@@ -1,4 +1,5 @@
1
1
  import { EventEmitter, OnChanges, SimpleChanges } from "@angular/core";
2
+ import * as i0 from "@angular/core";
2
3
  export declare class HeaderComponent implements OnChanges {
3
4
  prefix: string;
4
5
  postfix: string;
@@ -16,4 +17,6 @@ export declare class HeaderComponent implements OnChanges {
16
17
  ngOnChanges(_: SimpleChanges): void;
17
18
  checkPrereleaseData(): boolean;
18
19
  hideForCurrentVersion(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "dangl-header", never, { "prefix": "prefix"; "postfix": "postfix"; "showMenuButton": "showMenuButton"; "logoInitials": "logoInitials"; "iconUrl": "iconUrl"; "preReleaseVersion": "preReleaseVersion"; "preReleaseBuildDate": "preReleaseBuildDate"; "preReleaseLiveSiteLink": "preReleaseLiveSiteLink"; "showPrerelease": "showPrerelease"; }, { "menuButtonClicked": "menuButtonClicked"; }, never, ["*"]>;
19
22
  }
@@ -1,6 +1,7 @@
1
1
  import { NgZone } from '@angular/core';
2
2
  import { AfterViewInit, OnDestroy } from '@angular/core';
3
3
  import { ControlValueAccessor } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class TinyMceComponent implements AfterViewInit, OnDestroy, ControlValueAccessor {
5
6
  private baseUrl;
6
7
  private ngZone;
@@ -20,4 +21,6 @@ export declare class TinyMceComponent implements AfterViewInit, OnDestroy, Contr
20
21
  registerOnChange(fn: any): void;
21
22
  registerOnTouched(fn: any): void;
22
23
  setDisabledState?(isDisabled: boolean): void;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<TinyMceComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<TinyMceComponent, "dangl-tiny-mce", never, { "tinyMceLanguageUrl": "tinyMceLanguageUrl"; "tinyMceLanguageCode": "tinyMceLanguageCode"; }, {}, never, never>;
23
26
  }
package/package.json CHANGED
@@ -1,25 +1,37 @@
1
1
  {
2
2
  "name": "@dangl/angular-material-shared",
3
- "version": "1.2.1-beta0013",
3
+ "version": "1.2.1-beta0028",
4
4
  "peerDependencies": {
5
- "@angular/animations": "^12.2.2",
6
- "@angular/common": "^12.2.2",
7
- "@angular/compiler": "^12.2.2",
8
- "@angular/router": "^12.2.2",
9
- "@angular/core": "^12.2.2",
10
- "@angular/forms": "^12.2.2",
11
- "@angular/material": "^12.2.2",
12
- "@angular/cdk": "^12.2.2"
5
+ "@angular/animations": "^13.2.2",
6
+ "@angular/common": "^13.2.2",
7
+ "@angular/compiler": "^13.2.2",
8
+ "@angular/router": "^13.2.2",
9
+ "@angular/core": "^13.2.2",
10
+ "@angular/forms": "^13.2.2",
11
+ "@angular/material": "^13.2.2",
12
+ "@angular/cdk": "^13.2.2"
13
13
  },
14
14
  "dependencies": {
15
15
  "tslib": "^2.3.1"
16
16
  },
17
- "main": "bundles/dangl-angular-material-shared.umd.js",
18
- "module": "fesm2015/dangl-angular-material-shared.js",
19
- "es2015": "fesm2015/dangl-angular-material-shared.js",
20
- "esm2015": "esm2015/dangl-angular-material-shared.js",
21
- "fesm2015": "fesm2015/dangl-angular-material-shared.js",
17
+ "module": "fesm2015/dangl-angular-material-shared.mjs",
18
+ "es2020": "fesm2020/dangl-angular-material-shared.mjs",
19
+ "esm2020": "esm2020/dangl-angular-material-shared.mjs",
20
+ "fesm2020": "fesm2020/dangl-angular-material-shared.mjs",
21
+ "fesm2015": "fesm2015/dangl-angular-material-shared.mjs",
22
22
  "typings": "dangl-angular-material-shared.d.ts",
23
- "metadata": "dangl-angular-material-shared.metadata.json",
23
+ "exports": {
24
+ "./package.json": {
25
+ "default": "./package.json"
26
+ },
27
+ ".": {
28
+ "types": "./dangl-angular-material-shared.d.ts",
29
+ "esm2020": "./esm2020/dangl-angular-material-shared.mjs",
30
+ "es2020": "./fesm2020/dangl-angular-material-shared.mjs",
31
+ "es2015": "./fesm2015/dangl-angular-material-shared.mjs",
32
+ "node": "./fesm2015/dangl-angular-material-shared.mjs",
33
+ "default": "./fesm2020/dangl-angular-material-shared.mjs"
34
+ }
35
+ },
24
36
  "sideEffects": false
25
37
  }
@@ -1,5 +1,5 @@
1
1
  // Import theming functions
2
- @import '~@angular/material/theming';
2
+ @import '@angular/material/theming';
3
3
  // Import your custom theme
4
4
  @import './material-theme.scss';
5
5
 
@@ -1,17 +1,18 @@
1
+ @use '@angular/material' as mat;
1
2
  @import url(https://fonts.googleapis.com/icon?family=Material+Icons);
2
3
  @import url(https://fonts.googleapis.com/css?family=Roboto:300,400,500);
3
4
 
4
5
  @import './material-variables.scss';
5
6
 
6
- @import '~@angular/material/theming';
7
+ @import '@angular/material/theming';
7
8
  // Plus imports for other components in your app.
8
9
 
9
10
  // Include the common styles for Angular Material. We include this here so that you only
10
11
  // have to load a single css file for Angular Material in your app.
11
12
  // Be sure that you only ever include this mixin once!
12
- @include mat-core();
13
+ @include mat.core();
13
14
 
14
15
  // Include theme styles for core and each component used in your app.
15
16
  // Alternatively, you can import and @include the theme mixins for each component
16
17
  // that you are using.
17
- @include angular-material-theme($dangl-app-theme);
18
+ @include mat.all-component-themes($dangl-app-theme);
@@ -1,22 +1,23 @@
1
1
  // Import material theming functions
2
- @import '~@angular/material/theming';
2
+ @use '@angular/material' as mat;
3
+ @import '@angular/material/theming';
3
4
 
4
5
  // Define the palettes for your theme using the Material Design palettes available in palette.scss
5
6
  // (imported above). For each palette, you can optionally specify a default, lighter, and darker
6
7
  // hue.
7
8
 
8
- $dangl-app-primary: mat-palette($mat-cyan, 600, 500, 700);
9
- $dangl-app-accent: mat-palette($mat-blue-grey, 500, 400, 700);
9
+ $dangl-app-primary: mat.define-palette(mat.$cyan-palette, 600, 500, 700);
10
+ $dangl-app-accent: mat.define-palette(mat.$blue-grey-palette, 500, 400, 700);
10
11
 
11
12
  // The warn palette is optional (defaults to red).
12
- $dangl-app-warn: mat-palette($mat-red);
13
+ $dangl-app-warn: mat.define-palette(mat.$red-palette);
13
14
 
14
15
  // Create the theme object (a Sass map containing all of the palettes).
15
- $dangl-app-theme: mat-light-theme($dangl-app-primary, $dangl-app-accent, $dangl-app-warn);
16
+ $dangl-app-theme: mat.define-light-theme($dangl-app-primary, $dangl-app-accent, $dangl-app-warn);
16
17
 
17
18
  // They are just exported below to be easier to use in the project
18
- $color-primary: mat-color($dangl-app-primary);
19
- $color-accent: mat-color($dangl-app-accent);
20
- $color-warn: mat-color($dangl-app-warn);
19
+ $color-primary: mat.get-color-from-palette($dangl-app-primary);
20
+ $color-accent: mat.get-color-from-palette($dangl-app-accent);
21
+ $color-warn: mat.get-color-from-palette($dangl-app-warn);
21
22
  $color-dark: #3b4c55;
22
23
  $color-light: #bdbdbd;