@tilde-nlp/ngx-common 0.0.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/README.md +95 -0
- package/esm2020/lib/close-button/close-button.component.mjs +34 -0
- package/esm2020/lib/close-button/close-button.module.mjs +38 -0
- package/esm2020/lib/close-button/index.mjs +3 -0
- package/esm2020/lib/company-product/company-product.component.mjs +20 -0
- package/esm2020/lib/company-product/company-product.module.mjs +24 -0
- package/esm2020/lib/company-product/index.mjs +3 -0
- package/esm2020/lib/directives/click-outside/click-outside.directive.mjs +29 -0
- package/esm2020/lib/directives/click-outside/click-outside.module.mjs +26 -0
- package/esm2020/lib/directives/click-outside/index.mjs +3 -0
- package/esm2020/lib/directives/index.mjs +2 -0
- package/esm2020/lib/footer/footer.component.mjs +37 -0
- package/esm2020/lib/footer/footer.module.mjs +36 -0
- package/esm2020/lib/footer/index.mjs +3 -0
- package/esm2020/lib/helpers/index.mjs +2 -0
- package/esm2020/lib/helpers/missing-translation-helper.mjs +7 -0
- package/esm2020/lib/inline-message/index.mjs +4 -0
- package/esm2020/lib/inline-message/inline-message.component.mjs +23 -0
- package/esm2020/lib/inline-message/inline-message.module.mjs +34 -0
- package/esm2020/lib/inline-message/models/index.mjs +4 -0
- package/esm2020/lib/inline-message/models/inline-message-icon-position.enum.mjs +6 -0
- package/esm2020/lib/inline-message/models/inline-message-type.enum.mjs +7 -0
- package/esm2020/lib/inline-message/models/inline-message.model.mjs +2 -0
- package/esm2020/lib/notification-message/enums/index.mjs +2 -0
- package/esm2020/lib/notification-message/enums/notification-message-type.enum.mjs +8 -0
- package/esm2020/lib/notification-message/index.mjs +5 -0
- package/esm2020/lib/notification-message/interfaces/index.mjs +2 -0
- package/esm2020/lib/notification-message/interfaces/notification-message.model.mjs +2 -0
- package/esm2020/lib/notification-message/notification-message.component.mjs +51 -0
- package/esm2020/lib/notification-message/notification-message.module.mjs +46 -0
- package/esm2020/lib/pipes/filter-with-highlight/filter-with-highlight.module.mjs +26 -0
- package/esm2020/lib/pipes/filter-with-highlight/filter-with-highlight.pipe.mjs +39 -0
- package/esm2020/lib/pipes/filter-with-highlight/index.mjs +3 -0
- package/esm2020/lib/pipes/index.mjs +3 -0
- package/esm2020/lib/pipes/sort-translations/index.mjs +3 -0
- package/esm2020/lib/pipes/sort-translations/sort-translations.module.mjs +24 -0
- package/esm2020/lib/pipes/sort-translations/sort-translations.pipe.mjs +60 -0
- package/esm2020/lib/plausible/index.mjs +5 -0
- package/esm2020/lib/plausible/models/index.mjs +2 -0
- package/esm2020/lib/plausible/models/plausible-event.model.mjs +2 -0
- package/esm2020/lib/plausible/plausible-event.directive.mjs +40 -0
- package/esm2020/lib/plausible/plausible.helper.mjs +37 -0
- package/esm2020/lib/plausible/plausible.module.mjs +26 -0
- package/esm2020/lib/services/dom.service.mjs +21 -0
- package/esm2020/lib/services/icon.service.mjs +35 -0
- package/esm2020/lib/services/index.mjs +3 -0
- package/esm2020/lib/tld-loader/index.mjs +3 -0
- package/esm2020/lib/tld-loader/tld-loader.component.mjs +11 -0
- package/esm2020/lib/tld-loader/tld-loader.module.mjs +20 -0
- package/esm2020/public-api.mjs +15 -0
- package/esm2020/tilde-nlp-ngx-common.mjs +5 -0
- package/fesm2015/tilde-nlp-ngx-common.mjs +694 -0
- package/fesm2015/tilde-nlp-ngx-common.mjs.map +1 -0
- package/fesm2020/tilde-nlp-ngx-common.mjs +693 -0
- package/fesm2020/tilde-nlp-ngx-common.mjs.map +1 -0
- package/lib/close-button/close-button.component.d.ts +13 -0
- package/lib/close-button/close-button.module.d.ts +11 -0
- package/lib/close-button/index.d.ts +2 -0
- package/lib/company-product/company-product.component.d.ts +7 -0
- package/lib/company-product/company-product.module.d.ts +8 -0
- package/lib/company-product/index.d.ts +2 -0
- package/lib/directives/click-outside/click-outside.directive.d.ts +10 -0
- package/lib/directives/click-outside/click-outside.module.d.ts +8 -0
- package/lib/directives/click-outside/index.d.ts +2 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/footer/footer.component.d.ts +15 -0
- package/lib/footer/footer.module.d.ts +11 -0
- package/lib/footer/index.d.ts +2 -0
- package/lib/helpers/index.d.ts +1 -0
- package/lib/helpers/missing-translation-helper.d.ts +4 -0
- package/lib/inline-message/index.d.ts +3 -0
- package/lib/inline-message/inline-message.component.d.ts +10 -0
- package/lib/inline-message/inline-message.module.d.ts +10 -0
- package/lib/inline-message/models/index.d.ts +3 -0
- package/lib/inline-message/models/inline-message-icon-position.enum.d.ts +4 -0
- package/lib/inline-message/models/inline-message-type.enum.d.ts +5 -0
- package/lib/inline-message/models/inline-message.model.d.ts +10 -0
- package/lib/notification-message/enums/index.d.ts +1 -0
- package/lib/notification-message/enums/notification-message-type.enum.d.ts +6 -0
- package/lib/notification-message/index.d.ts +4 -0
- package/lib/notification-message/interfaces/index.d.ts +1 -0
- package/lib/notification-message/interfaces/notification-message.model.d.ts +18 -0
- package/lib/notification-message/notification-message.component.d.ts +22 -0
- package/lib/notification-message/notification-message.module.d.ts +13 -0
- package/lib/pipes/filter-with-highlight/filter-with-highlight.module.d.ts +8 -0
- package/lib/pipes/filter-with-highlight/filter-with-highlight.pipe.d.ts +7 -0
- package/lib/pipes/filter-with-highlight/index.d.ts +2 -0
- package/lib/pipes/index.d.ts +2 -0
- package/lib/pipes/sort-translations/index.d.ts +2 -0
- package/lib/pipes/sort-translations/sort-translations.module.d.ts +8 -0
- package/lib/pipes/sort-translations/sort-translations.pipe.d.ts +20 -0
- package/lib/plausible/index.d.ts +4 -0
- package/lib/plausible/models/index.d.ts +1 -0
- package/lib/plausible/models/plausible-event.model.d.ts +7 -0
- package/lib/plausible/plausible-event.directive.d.ts +11 -0
- package/lib/plausible/plausible.helper.d.ts +15 -0
- package/lib/plausible/plausible.module.d.ts +8 -0
- package/lib/services/dom.service.d.ts +7 -0
- package/lib/services/icon.service.d.ts +14 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/tld-loader/index.d.ts +2 -0
- package/lib/tld-loader/tld-loader.component.d.ts +5 -0
- package/lib/tld-loader/tld-loader.module.d.ts +7 -0
- package/package.json +34 -0
- package/public-api.d.ts +11 -0
- package/styles/components/borders.scss +28 -0
- package/styles/components/buttons.scss +0 -0
- package/styles/components/icons.scss +6 -0
- package/styles/components/links.scss +5 -0
- package/styles/components/strapi-html.scss +20 -0
- package/styles/custom/containers.scss +15 -0
- package/styles/mixins/icon-fill.mixin.scss +11 -0
- package/styles/mixins/material-overrides/mat-button-overrides.mixin.scss +31 -0
- package/styles/mixins/material-overrides/mat-form-field-overrides.mixin.scss +24 -0
- package/styles/mixins/material-overrides/material-overrides.mixin.scss +7 -0
- package/styles/mixins/sass-variables-to-css.mixin.scss +9 -0
- package/styles/mixins/tld-all-mixins.mixin.scss +16 -0
- package/styles/mixins/tld-font.mixin.scss +5 -0
- package/styles/strapi/strapi-base.scss +75 -0
- package/styles/tilde-fonts.scss +3 -0
- package/styles/tilde-style.scss +11 -0
- package/styles/tilde-theme.scss +65 -0
- package/styles/typography.scss +75 -0
- package/styles/variables/borders.variables.scss +4 -0
- package/styles/variables/colors.variables.scss +21 -0
- package/styles/variables/font-size.variables.scss +7 -0
- package/styles/variables/fonts.variables.scss +1 -0
- package/tilde-nlp-ngx-common.d.ts +5 -0
|
@@ -0,0 +1,693 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Directive, Input, HostListener, NgModule, Component, Pipe, EventEmitter, Output, ViewChild } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/material/icon';
|
|
4
|
+
import * as i2 from '@angular/platform-browser';
|
|
5
|
+
import * as i1$1 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import * as i2$1 from '@angular/material/tooltip';
|
|
8
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
9
|
+
import * as i1$2 from '@ngx-translate/core';
|
|
10
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
11
|
+
import { Observable, of } from 'rxjs';
|
|
12
|
+
import * as i1$3 from '@angular/material/button';
|
|
13
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
15
|
+
import * as i6 from '@angular/router';
|
|
16
|
+
import { RouterModule } from '@angular/router';
|
|
17
|
+
import * as i3 from '@angular/flex-layout/flex';
|
|
18
|
+
import * as i4 from '@angular/flex-layout/extended';
|
|
19
|
+
|
|
20
|
+
class IconService {
|
|
21
|
+
constructor(iconRegistry, sanitizer) {
|
|
22
|
+
this.iconRegistry = iconRegistry;
|
|
23
|
+
this.sanitizer = sanitizer;
|
|
24
|
+
}
|
|
25
|
+
//https://material.angular.io/components/icon/examples
|
|
26
|
+
/** Registers svg icons to mat icon registry. Icon SVG's should be under some key in object. Icon name can be used with property name in lowercase. */
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
28
|
+
registerIcons(icons) {
|
|
29
|
+
for (const key in icons) {
|
|
30
|
+
this.iconRegistry.addSvgIconLiteral(key.toLowerCase(), this.sanitizer.bypassSecurityTrustHtml(icons[key]));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
registerIconFromUrl(name, url) {
|
|
34
|
+
this.iconRegistry.addSvgIcon(name, this.sanitizer.bypassSecurityTrustResourceUrl(url));
|
|
35
|
+
}
|
|
36
|
+
addSvgIconSet(path, namespace) {
|
|
37
|
+
namespace ?
|
|
38
|
+
this.iconRegistry.addSvgIconSetInNamespace(namespace, this.sanitizer.bypassSecurityTrustResourceUrl(path)) :
|
|
39
|
+
this.iconRegistry.addSvgIconSet(this.sanitizer.bypassSecurityTrustResourceUrl(path));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
IconService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: IconService, deps: [{ token: i1.MatIconRegistry }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
43
|
+
IconService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: IconService, providedIn: 'root' });
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: IconService, decorators: [{
|
|
45
|
+
type: Injectable,
|
|
46
|
+
args: [{
|
|
47
|
+
providedIn: 'root'
|
|
48
|
+
}]
|
|
49
|
+
}], ctorParameters: function () { return [{ type: i1.MatIconRegistry }, { type: i2.DomSanitizer }]; } });
|
|
50
|
+
|
|
51
|
+
const _localStorage = typeof localStorage !== 'undefined' ? localStorage : null;
|
|
52
|
+
const _window = typeof window !== 'undefined' ? window : null;
|
|
53
|
+
class DOMService {
|
|
54
|
+
get window() {
|
|
55
|
+
return _window;
|
|
56
|
+
}
|
|
57
|
+
get localStorage() {
|
|
58
|
+
return _localStorage;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
DOMService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: DOMService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
62
|
+
DOMService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: DOMService, providedIn: 'root' });
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: DOMService, decorators: [{
|
|
64
|
+
type: Injectable,
|
|
65
|
+
args: [{
|
|
66
|
+
providedIn: 'root'
|
|
67
|
+
}]
|
|
68
|
+
}] });
|
|
69
|
+
|
|
70
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
71
|
+
class PlausibleHelper {
|
|
72
|
+
/**
|
|
73
|
+
* Adds plausible for selected domain and adds additional script for custom event (goal) triggering
|
|
74
|
+
* @param domain domain that is registered in your plausible account
|
|
75
|
+
* @returns
|
|
76
|
+
*/
|
|
77
|
+
static addPlausible(domain) {
|
|
78
|
+
const domService = new DOMService();
|
|
79
|
+
const windowObj = domService.window;
|
|
80
|
+
if (!windowObj || !domain) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const plausibleSrc = "https://plausible.io/js/plausible.js";
|
|
84
|
+
const script = document.createElement("script");
|
|
85
|
+
script.src = plausibleSrc;
|
|
86
|
+
script.setAttribute("data-domain", domain);
|
|
87
|
+
document.head.append(script);
|
|
88
|
+
// Add plausible custom event functionality https://plausible.io/docs/custom-event-goals#code-example-for-tracking-link-clicks
|
|
89
|
+
windowObj.plausible = windowObj.plausible || ((...params) => { (windowObj.plausible.q = windowObj.plausible.q || []).push(params); });
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Emits custom plausible event
|
|
93
|
+
* @param id plausible event id that should be the same as registered in plausible
|
|
94
|
+
* @param properties an object with custom properties for the event
|
|
95
|
+
* @returns
|
|
96
|
+
*/
|
|
97
|
+
static customEvent(id, properties) {
|
|
98
|
+
const windowObj = window;
|
|
99
|
+
if (!windowObj?.plausible) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
windowObj.plausible(id, { props: properties });
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
class PlausibleEventDirective {
|
|
107
|
+
constructor() {
|
|
108
|
+
this.id = "";
|
|
109
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
110
|
+
this.properties = null;
|
|
111
|
+
}
|
|
112
|
+
/** Plausible event id. */
|
|
113
|
+
set libPlausibleEvent(value) {
|
|
114
|
+
if (!value) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
this.id = value.eventId;
|
|
118
|
+
if (value.properties) {
|
|
119
|
+
this.properties = {};
|
|
120
|
+
value.properties.forEach(item => this.properties[item.key] = item.value);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
onClick() {
|
|
124
|
+
if (this.id.length) {
|
|
125
|
+
PlausibleHelper.customEvent(this.id, this.properties);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
PlausibleEventDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: PlausibleEventDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
130
|
+
PlausibleEventDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.3", type: PlausibleEventDirective, selector: "[libPlausibleEvent]", inputs: { libPlausibleEvent: "libPlausibleEvent" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: PlausibleEventDirective, decorators: [{
|
|
132
|
+
type: Directive,
|
|
133
|
+
args: [{
|
|
134
|
+
selector: '[libPlausibleEvent]'
|
|
135
|
+
}]
|
|
136
|
+
}], propDecorators: { libPlausibleEvent: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], onClick: [{
|
|
139
|
+
type: HostListener,
|
|
140
|
+
args: ["click"]
|
|
141
|
+
}] } });
|
|
142
|
+
|
|
143
|
+
class PlausibleModule {
|
|
144
|
+
}
|
|
145
|
+
PlausibleModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: PlausibleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
146
|
+
PlausibleModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: PlausibleModule, declarations: [PlausibleEventDirective], imports: [CommonModule], exports: [PlausibleEventDirective] });
|
|
147
|
+
PlausibleModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: PlausibleModule, imports: [[
|
|
148
|
+
CommonModule
|
|
149
|
+
]] });
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: PlausibleModule, decorators: [{
|
|
151
|
+
type: NgModule,
|
|
152
|
+
args: [{
|
|
153
|
+
declarations: [
|
|
154
|
+
PlausibleEventDirective
|
|
155
|
+
],
|
|
156
|
+
imports: [
|
|
157
|
+
CommonModule
|
|
158
|
+
],
|
|
159
|
+
exports: [
|
|
160
|
+
PlausibleEventDirective
|
|
161
|
+
]
|
|
162
|
+
}]
|
|
163
|
+
}] });
|
|
164
|
+
|
|
165
|
+
var InlineMessageIconPosition;
|
|
166
|
+
(function (InlineMessageIconPosition) {
|
|
167
|
+
InlineMessageIconPosition[InlineMessageIconPosition["START"] = 0] = "START";
|
|
168
|
+
InlineMessageIconPosition[InlineMessageIconPosition["END"] = 1] = "END";
|
|
169
|
+
})(InlineMessageIconPosition || (InlineMessageIconPosition = {}));
|
|
170
|
+
|
|
171
|
+
class InlineMessageComponent {
|
|
172
|
+
constructor() {
|
|
173
|
+
this.END_ICON_POSITION = InlineMessageIconPosition.END;
|
|
174
|
+
this.iconName = "info";
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
InlineMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InlineMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
178
|
+
InlineMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: InlineMessageComponent, selector: "lib-inline-message", inputs: { iconName: "iconName", message: "message" }, ngImport: i0, template: "<div class=\"tld-inline-message {{message.type}}\">\r\n <span class=\"material-icons\" [class.order-end]=\"message.iconPosition === END_ICON_POSITION\"\r\n [matTooltip]=\"message.iconTooltip? (message.iconTooltip | translate: message.localizationParams) : ''\" *ngIf=\"iconName\">{{iconName}}</span>\r\n <section *ngIf=\"message\">\r\n <div class=\"text-s-semi-bold title\" *ngIf=\"message.title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\">\r\n </div>\r\n <p class=\"text-s description\" *ngIf=\"message.description\" [innerHtml]=\"message.description | translate:\r\n message.localizationParams\"></p>\r\n </section>\r\n</div>", styles: [":host{display:block}.tld-inline-message{display:flex;flex-direction:row}.tld-inline-message.error .material-icons{color:var(--error-dark)}.tld-inline-message.info .material-icons{color:var(--base-40)}.tld-inline-message.warning .material-icons{color:var(--warning-dark)}.tld-inline-message .material-icons{font-size:16px;margin-right:.5rem;display:inline-block}.tld-inline-message .material-icons.order-end{order:2}.tld-inline-message .title,.tld-inline-message .description{margin:0}.tld-inline-message .title+.description{margin-top:.5rem}\n"], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "translate": i1$2.TranslatePipe } });
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InlineMessageComponent, decorators: [{
|
|
180
|
+
type: Component,
|
|
181
|
+
args: [{ selector: 'lib-inline-message', template: "<div class=\"tld-inline-message {{message.type}}\">\r\n <span class=\"material-icons\" [class.order-end]=\"message.iconPosition === END_ICON_POSITION\"\r\n [matTooltip]=\"message.iconTooltip? (message.iconTooltip | translate: message.localizationParams) : ''\" *ngIf=\"iconName\">{{iconName}}</span>\r\n <section *ngIf=\"message\">\r\n <div class=\"text-s-semi-bold title\" *ngIf=\"message.title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\">\r\n </div>\r\n <p class=\"text-s description\" *ngIf=\"message.description\" [innerHtml]=\"message.description | translate:\r\n message.localizationParams\"></p>\r\n </section>\r\n</div>", styles: [":host{display:block}.tld-inline-message{display:flex;flex-direction:row}.tld-inline-message.error .material-icons{color:var(--error-dark)}.tld-inline-message.info .material-icons{color:var(--base-40)}.tld-inline-message.warning .material-icons{color:var(--warning-dark)}.tld-inline-message .material-icons{font-size:16px;margin-right:.5rem;display:inline-block}.tld-inline-message .material-icons.order-end{order:2}.tld-inline-message .title,.tld-inline-message .description{margin:0}.tld-inline-message .title+.description{margin-top:.5rem}\n"] }]
|
|
182
|
+
}], propDecorators: { iconName: [{
|
|
183
|
+
type: Input
|
|
184
|
+
}], message: [{
|
|
185
|
+
type: Input
|
|
186
|
+
}] } });
|
|
187
|
+
|
|
188
|
+
class InlineMessageModule {
|
|
189
|
+
}
|
|
190
|
+
InlineMessageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InlineMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
191
|
+
InlineMessageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InlineMessageModule, declarations: [InlineMessageComponent], imports: [CommonModule,
|
|
192
|
+
TranslateModule,
|
|
193
|
+
MatTooltipModule], exports: [InlineMessageComponent] });
|
|
194
|
+
InlineMessageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InlineMessageModule, imports: [[
|
|
195
|
+
CommonModule,
|
|
196
|
+
TranslateModule,
|
|
197
|
+
MatTooltipModule
|
|
198
|
+
]] });
|
|
199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: InlineMessageModule, decorators: [{
|
|
200
|
+
type: NgModule,
|
|
201
|
+
args: [{
|
|
202
|
+
declarations: [
|
|
203
|
+
InlineMessageComponent
|
|
204
|
+
],
|
|
205
|
+
imports: [
|
|
206
|
+
CommonModule,
|
|
207
|
+
TranslateModule,
|
|
208
|
+
MatTooltipModule
|
|
209
|
+
],
|
|
210
|
+
exports: [
|
|
211
|
+
InlineMessageComponent
|
|
212
|
+
]
|
|
213
|
+
}]
|
|
214
|
+
}] });
|
|
215
|
+
|
|
216
|
+
var InlineMessageType;
|
|
217
|
+
(function (InlineMessageType) {
|
|
218
|
+
InlineMessageType["INFO"] = "info";
|
|
219
|
+
InlineMessageType["WARNING"] = "warning";
|
|
220
|
+
InlineMessageType["ERROR"] = "error";
|
|
221
|
+
})(InlineMessageType || (InlineMessageType = {}));
|
|
222
|
+
|
|
223
|
+
class FilterWithHighlightPipe {
|
|
224
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
225
|
+
transform(value, filter, key) {
|
|
226
|
+
if (!filter.length) {
|
|
227
|
+
return [...value];
|
|
228
|
+
}
|
|
229
|
+
const filteredArr = [];
|
|
230
|
+
const regex = new RegExp(filter, 'gi');
|
|
231
|
+
for (let element of value) {
|
|
232
|
+
const elementText = key ? element[key] : element;
|
|
233
|
+
const match = elementText.match(regex);
|
|
234
|
+
if (!match) {
|
|
235
|
+
continue;
|
|
236
|
+
}
|
|
237
|
+
let newElement;
|
|
238
|
+
const textWithHighlight = elementText.replace(regex, (match) => `<span class="filter-highlight">${match}</span>`);
|
|
239
|
+
if (key) {
|
|
240
|
+
newElement = { ...element };
|
|
241
|
+
newElement[key] = textWithHighlight;
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
element = textWithHighlight;
|
|
245
|
+
}
|
|
246
|
+
filteredArr.push(newElement ?? element);
|
|
247
|
+
}
|
|
248
|
+
return filteredArr;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
FilterWithHighlightPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FilterWithHighlightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
252
|
+
FilterWithHighlightPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FilterWithHighlightPipe, name: "filterWithHighlight" });
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FilterWithHighlightPipe, decorators: [{
|
|
254
|
+
type: Pipe,
|
|
255
|
+
args: [{
|
|
256
|
+
name: 'filterWithHighlight'
|
|
257
|
+
}]
|
|
258
|
+
}] });
|
|
259
|
+
|
|
260
|
+
class FilterWithHighlightModule {
|
|
261
|
+
}
|
|
262
|
+
FilterWithHighlightModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FilterWithHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
263
|
+
FilterWithHighlightModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FilterWithHighlightModule, declarations: [FilterWithHighlightPipe], imports: [CommonModule], exports: [FilterWithHighlightPipe] });
|
|
264
|
+
FilterWithHighlightModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FilterWithHighlightModule, imports: [[
|
|
265
|
+
CommonModule
|
|
266
|
+
]] });
|
|
267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FilterWithHighlightModule, decorators: [{
|
|
268
|
+
type: NgModule,
|
|
269
|
+
args: [{
|
|
270
|
+
declarations: [
|
|
271
|
+
FilterWithHighlightPipe
|
|
272
|
+
],
|
|
273
|
+
imports: [
|
|
274
|
+
CommonModule
|
|
275
|
+
],
|
|
276
|
+
exports: [
|
|
277
|
+
FilterWithHighlightPipe
|
|
278
|
+
]
|
|
279
|
+
}]
|
|
280
|
+
}] });
|
|
281
|
+
|
|
282
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
283
|
+
/**
|
|
284
|
+
* Pipe used to sort translated values.
|
|
285
|
+
*/
|
|
286
|
+
class SortTranslationsPipe {
|
|
287
|
+
constructor(translate) {
|
|
288
|
+
this.translate = translate;
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
*
|
|
292
|
+
* @param objects array of objects to be sorted
|
|
293
|
+
* @param localizationPrefix prefix for localization code. This is used to get necessary object translations.
|
|
294
|
+
* @param key Which object property needs to be used for sorting.
|
|
295
|
+
* @param currentLanguage This is necessary to update values if language is changed.
|
|
296
|
+
* @returns
|
|
297
|
+
*/
|
|
298
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
299
|
+
transform(objects, localizationPrefix, key = null, currentLanguage, translationKey = null) {
|
|
300
|
+
const arrayCopy = [...objects];
|
|
301
|
+
if (localizationPrefix) {
|
|
302
|
+
return new Observable((subscriber) => {
|
|
303
|
+
this.translate.get(localizationPrefix ?? "").subscribe((translations) => {
|
|
304
|
+
const array = this.sortObjects(arrayCopy, key, translations);
|
|
305
|
+
subscriber.next(array);
|
|
306
|
+
subscriber.complete();
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
return of(this.sortObjects(arrayCopy, key));
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
sortObjects(array, key, translations) {
|
|
315
|
+
return array.sort((a, b) => {
|
|
316
|
+
const aValue = key ? a[key] : a;
|
|
317
|
+
const aTranslation = translations ? translations[aValue.toUpperCase()] : aValue;
|
|
318
|
+
const bValue = key ? b[key] : b;
|
|
319
|
+
const bTranslation = translations ? translations[bValue.toUpperCase()] : bValue;
|
|
320
|
+
if (aTranslation < bTranslation)
|
|
321
|
+
return -1;
|
|
322
|
+
else if (aTranslation > bTranslation)
|
|
323
|
+
return 1;
|
|
324
|
+
else
|
|
325
|
+
return 0;
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
SortTranslationsPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SortTranslationsPipe, deps: [{ token: i1$2.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
330
|
+
SortTranslationsPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SortTranslationsPipe, name: "sortTranslations" });
|
|
331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SortTranslationsPipe, decorators: [{
|
|
332
|
+
type: Pipe,
|
|
333
|
+
args: [{
|
|
334
|
+
name: 'sortTranslations'
|
|
335
|
+
}]
|
|
336
|
+
}], ctorParameters: function () { return [{ type: i1$2.TranslateService }]; } });
|
|
337
|
+
|
|
338
|
+
class SortTranslationsModule {
|
|
339
|
+
}
|
|
340
|
+
SortTranslationsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SortTranslationsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
341
|
+
SortTranslationsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SortTranslationsModule, declarations: [SortTranslationsPipe], imports: [CommonModule], exports: [SortTranslationsPipe] });
|
|
342
|
+
SortTranslationsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SortTranslationsModule, imports: [[
|
|
343
|
+
CommonModule
|
|
344
|
+
]] });
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: SortTranslationsModule, decorators: [{
|
|
346
|
+
type: NgModule,
|
|
347
|
+
args: [{
|
|
348
|
+
declarations: [SortTranslationsPipe],
|
|
349
|
+
imports: [
|
|
350
|
+
CommonModule
|
|
351
|
+
],
|
|
352
|
+
exports: [
|
|
353
|
+
SortTranslationsPipe
|
|
354
|
+
]
|
|
355
|
+
}]
|
|
356
|
+
}] });
|
|
357
|
+
|
|
358
|
+
class ClickOutsideDirective {
|
|
359
|
+
constructor(elementRef) {
|
|
360
|
+
this.elementRef = elementRef;
|
|
361
|
+
this.clickOutside = new EventEmitter();
|
|
362
|
+
}
|
|
363
|
+
onClick(target) {
|
|
364
|
+
const clickedInside = this.elementRef.nativeElement.contains(target);
|
|
365
|
+
if (!clickedInside) {
|
|
366
|
+
this.clickOutside.emit();
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
371
|
+
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.3", type: ClickOutsideDirective, selector: "[clickOutside]", outputs: { clickOutside: "clickOutside" }, host: { listeners: { "document:click": "onClick($event.target)" } }, ngImport: i0 });
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
373
|
+
type: Directive,
|
|
374
|
+
args: [{
|
|
375
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
376
|
+
selector: '[clickOutside]'
|
|
377
|
+
}]
|
|
378
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { clickOutside: [{
|
|
379
|
+
type: Output
|
|
380
|
+
}], onClick: [{
|
|
381
|
+
type: HostListener,
|
|
382
|
+
args: ['document:click', ['$event.target']]
|
|
383
|
+
}] } });
|
|
384
|
+
|
|
385
|
+
class ClickOutsideModule {
|
|
386
|
+
}
|
|
387
|
+
ClickOutsideModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ClickOutsideModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
388
|
+
ClickOutsideModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ClickOutsideModule, declarations: [ClickOutsideDirective], imports: [CommonModule], exports: [ClickOutsideDirective] });
|
|
389
|
+
ClickOutsideModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ClickOutsideModule, imports: [[
|
|
390
|
+
CommonModule
|
|
391
|
+
]] });
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: ClickOutsideModule, decorators: [{
|
|
393
|
+
type: NgModule,
|
|
394
|
+
args: [{
|
|
395
|
+
declarations: [
|
|
396
|
+
ClickOutsideDirective
|
|
397
|
+
],
|
|
398
|
+
imports: [
|
|
399
|
+
CommonModule
|
|
400
|
+
],
|
|
401
|
+
exports: [
|
|
402
|
+
ClickOutsideDirective
|
|
403
|
+
]
|
|
404
|
+
}]
|
|
405
|
+
}] });
|
|
406
|
+
|
|
407
|
+
class CloseButtonComponent {
|
|
408
|
+
constructor() {
|
|
409
|
+
// any type because emitter doesn't really need a value
|
|
410
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
411
|
+
this.tldClick = new EventEmitter();
|
|
412
|
+
this.ariaCode = "CLOSE_BUTTON";
|
|
413
|
+
}
|
|
414
|
+
clicked() {
|
|
415
|
+
this.tldClick.emit(null);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
CloseButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CloseButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
419
|
+
CloseButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: CloseButtonComponent, selector: "tld-close-button", inputs: { ariaCode: "ariaCode", disabled: "disabled", tooltip: "tooltip" }, outputs: { tldClick: "tldClick" }, viewQueries: [{ propertyName: "clearButton", first: true, predicate: ["clearButton"], descendants: true }], ngImport: i0, template: "<button [matTooltip]=\"tooltip | translate\"\r\n#clearButton mat-icon-button (click)=\"clicked()\" [attr.aria-label]=\"'ARIA_LABELS.'+ariaCode | translate\"\r\n [disabled]=\"disabled\">\r\n <span class=\"material-icons\">\r\n close\r\n </span>\r\n</button>", components: [{ type: i1$3.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"] }], directives: [{ type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "translate": i1$2.TranslatePipe } });
|
|
420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CloseButtonComponent, decorators: [{
|
|
421
|
+
type: Component,
|
|
422
|
+
args: [{ selector: 'tld-close-button', template: "<button [matTooltip]=\"tooltip | translate\"\r\n#clearButton mat-icon-button (click)=\"clicked()\" [attr.aria-label]=\"'ARIA_LABELS.'+ariaCode | translate\"\r\n [disabled]=\"disabled\">\r\n <span class=\"material-icons\">\r\n close\r\n </span>\r\n</button>" }]
|
|
423
|
+
}], propDecorators: { tldClick: [{
|
|
424
|
+
type: Output
|
|
425
|
+
}], ariaCode: [{
|
|
426
|
+
type: Input
|
|
427
|
+
}], clearButton: [{
|
|
428
|
+
type: ViewChild,
|
|
429
|
+
args: ["clearButton"]
|
|
430
|
+
}], disabled: [{
|
|
431
|
+
type: Input
|
|
432
|
+
}], tooltip: [{
|
|
433
|
+
type: Input
|
|
434
|
+
}] } });
|
|
435
|
+
|
|
436
|
+
class CloseButtonModule {
|
|
437
|
+
}
|
|
438
|
+
CloseButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CloseButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
439
|
+
CloseButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CloseButtonModule, declarations: [CloseButtonComponent], imports: [CommonModule,
|
|
440
|
+
MatButtonModule,
|
|
441
|
+
TranslateModule,
|
|
442
|
+
MatTooltipModule], exports: [CloseButtonComponent] });
|
|
443
|
+
CloseButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CloseButtonModule, imports: [[
|
|
444
|
+
CommonModule,
|
|
445
|
+
MatButtonModule,
|
|
446
|
+
TranslateModule,
|
|
447
|
+
MatTooltipModule
|
|
448
|
+
]] });
|
|
449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CloseButtonModule, decorators: [{
|
|
450
|
+
type: NgModule,
|
|
451
|
+
args: [{
|
|
452
|
+
declarations: [
|
|
453
|
+
CloseButtonComponent
|
|
454
|
+
],
|
|
455
|
+
imports: [
|
|
456
|
+
CommonModule,
|
|
457
|
+
MatButtonModule,
|
|
458
|
+
TranslateModule,
|
|
459
|
+
MatTooltipModule
|
|
460
|
+
],
|
|
461
|
+
exports: [
|
|
462
|
+
CloseButtonComponent
|
|
463
|
+
]
|
|
464
|
+
}]
|
|
465
|
+
}] });
|
|
466
|
+
|
|
467
|
+
class NotificationMessageComponent {
|
|
468
|
+
constructor() {
|
|
469
|
+
this.buttonClicked = new EventEmitter();
|
|
470
|
+
this.closeClicked = new EventEmitter();
|
|
471
|
+
this.linkClicked = new EventEmitter();
|
|
472
|
+
this.iconNames = {
|
|
473
|
+
"BASIC": "info",
|
|
474
|
+
"ERROR": "error",
|
|
475
|
+
"SUCCESS": "check_circle",
|
|
476
|
+
"WARNING": "info",
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
ngOnInit() {
|
|
480
|
+
this.className = this.message.type.toLocaleLowerCase();
|
|
481
|
+
}
|
|
482
|
+
buttonClick() {
|
|
483
|
+
this.buttonClicked.next(null);
|
|
484
|
+
}
|
|
485
|
+
closeClick() {
|
|
486
|
+
this.closeClicked.next(null);
|
|
487
|
+
}
|
|
488
|
+
linkClick() {
|
|
489
|
+
this.linkClicked.next(null);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
NotificationMessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: NotificationMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
493
|
+
NotificationMessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: NotificationMessageComponent, selector: "lib-tld-notification-message", inputs: { message: "message", inline: "inline" }, outputs: { buttonClicked: "buttonClicked", closeClicked: "closeClicked", linkClicked: "linkClicked" }, ngImport: i0, template: "<div class=\"notification-message {{className}}\">\r\n <div class=\"notification-message-container tld-default-border\" [ngClass.lt-md]=\"'mobile'\" [class.inline]=\"inline\"\r\n fxLayout=\"row\" fxLayoutAlign=\"start start\" [attr.id]=\"message.id\" aria-live=\"polite\" fxLayout=\"row\">\r\n <span class=\"material-icons message-icon\">\r\n {{iconNames[message.type]}}\r\n </span>\r\n <div class=\"items-container\" fxFlex>\r\n <div fxLayout=\"row\">\r\n <div class=\"text-container\" fxFlex>\r\n <h1 *ngIf=\"message.title\" class=\"message-title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\"></h1>\r\n <p *ngIf=\"message.body\" class=\"message-body\">\r\n <span [innerHtml]=\"message.body | translate: message.localizationParams\"></span>\r\n <span *ngIf=\"message.support\" [innerHtml]=\"message.support | translate: message.localizationParams\"></span>\r\n </p>\r\n </div>\r\n <tld-close-button *ngIf=\"!message.hideClose\" class=\"close-button\" (tldClick)=\"closeClick()\">\r\n </tld-close-button>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutGap=\"16px\" fxLayoutAlign=\"start center\"\r\n *ngIf=\"message.buttonText || message.linkHref || message.routerLink\">\r\n <button class=\"message-action-button\" color=\"accent\" mat-flat-button *ngIf=\"message.buttonText\"\r\n (click)=\"buttonClick()\">{{message.buttonText | translate}} </button>\r\n <a class=\"message-action-link\" *ngIf=\"message.linkHref && message.linkText\" (click)=\"linkClick()\"\r\n [attr.href]=\"message.linkHref\">{{message.linkText |\r\n translate}}</a>\r\n <a class=\"message-action-link\" *ngIf=\"message.routerLink && message.linkText\" (click)=\"linkClick()\"\r\n [routerLink]=\"[message.routerLink]\">{{message.linkText |\r\n translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".notification-message.basic .notification-message-container{background-color:var(--base-100);border-color:var(--base-100)}.notification-message.basic .notification-message-container .message-icon{color:var(--base-40)}.notification-message.basic .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.error .notification-message-container{background-color:var(--error-light);border-color:var(--base-100)}.notification-message.error .notification-message-container .message-icon{color:var(--error-dark)}.notification-message.error .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.warning .notification-message-container{background-color:var(--warning-light);border-color:var(--base-100)}.notification-message.warning .notification-message-container .message-icon{color:var(--warning-dark)}.notification-message.warning .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.success .notification-message-container{background-color:var(--success-light);border-color:var(--base-100)}.notification-message.success .notification-message-container .message-icon{color:var(--success-dark)}.notification-message.success .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message .notification-message-container{border:1px solid var(--base-95);border-radius:.5em}.notification-message .notification-message-container.mobile{padding:.6em .4em!important}.notification-message .notification-message-container.mobile .items-container{margin-left:.4em!important}.notification-message .notification-message-container.mobile .items-container div+div{margin-top:.2em!important}.notification-message .notification-message-container.mobile .items-container .message-title+.message-body{margin-top:0!important}.notification-message .notification-message-container .text-container:first-child{line-height:1.5em}.notification-message .notification-message-container .text-container .message-title{font-weight:500;margin:0}.notification-message .notification-message-container .text-container .message-body{margin:0}.notification-message .notification-message-container:not(.inline){padding:1.5em}.notification-message .notification-message-container:not(.inline) .items-container{margin-left:1em}.notification-message .notification-message-container:not(.inline) .items-container div+div,.notification-message .notification-message-container:not(.inline) .items-container .message-title+.message-body{margin-top:1em}.notification-message .notification-message-container:not(.inline) .message-title{font-size:1.25em}.notification-message .notification-message-container:not(.inline) .message-body{line-height:1.5em}.notification-message .notification-message-container.inline{padding:.75em 1em}.notification-message .notification-message-container.inline .items-container{margin-left:.75em}.notification-message .notification-message-container.inline .items-container div+div{margin-top:.5em}.notification-message .notification-message-container.inline .items-container .message-title+.message-body{margin-top:.2em}.notification-message .notification-message-container.inline .message-title{font-size:1em}\n"], components: [{ type: CloseButtonComponent, selector: "tld-close-button", inputs: ["ariaCode", "disabled", "tooltip"], outputs: ["tldClick"] }, { type: i1$3.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"] }], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i4.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i6.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "translate": i1$2.TranslatePipe } });
|
|
494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: NotificationMessageComponent, decorators: [{
|
|
495
|
+
type: Component,
|
|
496
|
+
args: [{ selector: 'lib-tld-notification-message', template: "<div class=\"notification-message {{className}}\">\r\n <div class=\"notification-message-container tld-default-border\" [ngClass.lt-md]=\"'mobile'\" [class.inline]=\"inline\"\r\n fxLayout=\"row\" fxLayoutAlign=\"start start\" [attr.id]=\"message.id\" aria-live=\"polite\" fxLayout=\"row\">\r\n <span class=\"material-icons message-icon\">\r\n {{iconNames[message.type]}}\r\n </span>\r\n <div class=\"items-container\" fxFlex>\r\n <div fxLayout=\"row\">\r\n <div class=\"text-container\" fxFlex>\r\n <h1 *ngIf=\"message.title\" class=\"message-title\"\r\n [innerHtml]=\"message.title | translate: message.localizationParams\"></h1>\r\n <p *ngIf=\"message.body\" class=\"message-body\">\r\n <span [innerHtml]=\"message.body | translate: message.localizationParams\"></span>\r\n <span *ngIf=\"message.support\" [innerHtml]=\"message.support | translate: message.localizationParams\"></span>\r\n </p>\r\n </div>\r\n <tld-close-button *ngIf=\"!message.hideClose\" class=\"close-button\" (tldClick)=\"closeClick()\">\r\n </tld-close-button>\r\n </div>\r\n <div fxLayout=\"row\" fxLayoutGap=\"16px\" fxLayoutAlign=\"start center\"\r\n *ngIf=\"message.buttonText || message.linkHref || message.routerLink\">\r\n <button class=\"message-action-button\" color=\"accent\" mat-flat-button *ngIf=\"message.buttonText\"\r\n (click)=\"buttonClick()\">{{message.buttonText | translate}} </button>\r\n <a class=\"message-action-link\" *ngIf=\"message.linkHref && message.linkText\" (click)=\"linkClick()\"\r\n [attr.href]=\"message.linkHref\">{{message.linkText |\r\n translate}}</a>\r\n <a class=\"message-action-link\" *ngIf=\"message.routerLink && message.linkText\" (click)=\"linkClick()\"\r\n [routerLink]=\"[message.routerLink]\">{{message.linkText |\r\n translate}}</a>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".notification-message.basic .notification-message-container{background-color:var(--base-100);border-color:var(--base-100)}.notification-message.basic .notification-message-container .message-icon{color:var(--base-40)}.notification-message.basic .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.error .notification-message-container{background-color:var(--error-light);border-color:var(--base-100)}.notification-message.error .notification-message-container .message-icon{color:var(--error-dark)}.notification-message.error .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.warning .notification-message-container{background-color:var(--warning-light);border-color:var(--base-100)}.notification-message.warning .notification-message-container .message-icon{color:var(--warning-dark)}.notification-message.warning .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message.success .notification-message-container{background-color:var(--success-light);border-color:var(--base-100)}.notification-message.success .notification-message-container .message-icon{color:var(--success-dark)}.notification-message.success .notification-message-container .message-action-button{background-color:var(--base-40)}.notification-message .notification-message-container{border:1px solid var(--base-95);border-radius:.5em}.notification-message .notification-message-container.mobile{padding:.6em .4em!important}.notification-message .notification-message-container.mobile .items-container{margin-left:.4em!important}.notification-message .notification-message-container.mobile .items-container div+div{margin-top:.2em!important}.notification-message .notification-message-container.mobile .items-container .message-title+.message-body{margin-top:0!important}.notification-message .notification-message-container .text-container:first-child{line-height:1.5em}.notification-message .notification-message-container .text-container .message-title{font-weight:500;margin:0}.notification-message .notification-message-container .text-container .message-body{margin:0}.notification-message .notification-message-container:not(.inline){padding:1.5em}.notification-message .notification-message-container:not(.inline) .items-container{margin-left:1em}.notification-message .notification-message-container:not(.inline) .items-container div+div,.notification-message .notification-message-container:not(.inline) .items-container .message-title+.message-body{margin-top:1em}.notification-message .notification-message-container:not(.inline) .message-title{font-size:1.25em}.notification-message .notification-message-container:not(.inline) .message-body{line-height:1.5em}.notification-message .notification-message-container.inline{padding:.75em 1em}.notification-message .notification-message-container.inline .items-container{margin-left:.75em}.notification-message .notification-message-container.inline .items-container div+div{margin-top:.5em}.notification-message .notification-message-container.inline .items-container .message-title+.message-body{margin-top:.2em}.notification-message .notification-message-container.inline .message-title{font-size:1em}\n"] }]
|
|
497
|
+
}], propDecorators: { message: [{
|
|
498
|
+
type: Input
|
|
499
|
+
}], buttonClicked: [{
|
|
500
|
+
type: Output
|
|
501
|
+
}], closeClicked: [{
|
|
502
|
+
type: Output
|
|
503
|
+
}], linkClicked: [{
|
|
504
|
+
type: Output
|
|
505
|
+
}], inline: [{
|
|
506
|
+
type: Input
|
|
507
|
+
}] } });
|
|
508
|
+
|
|
509
|
+
class NotificationMessageModule {
|
|
510
|
+
}
|
|
511
|
+
NotificationMessageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: NotificationMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
512
|
+
NotificationMessageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: NotificationMessageModule, declarations: [NotificationMessageComponent], imports: [CommonModule,
|
|
513
|
+
FlexLayoutModule,
|
|
514
|
+
CloseButtonModule,
|
|
515
|
+
MatButtonModule,
|
|
516
|
+
TranslateModule,
|
|
517
|
+
RouterModule], exports: [NotificationMessageComponent] });
|
|
518
|
+
NotificationMessageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: NotificationMessageModule, imports: [[
|
|
519
|
+
CommonModule,
|
|
520
|
+
FlexLayoutModule,
|
|
521
|
+
CloseButtonModule,
|
|
522
|
+
MatButtonModule,
|
|
523
|
+
TranslateModule,
|
|
524
|
+
RouterModule
|
|
525
|
+
]] });
|
|
526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: NotificationMessageModule, decorators: [{
|
|
527
|
+
type: NgModule,
|
|
528
|
+
args: [{
|
|
529
|
+
declarations: [
|
|
530
|
+
NotificationMessageComponent
|
|
531
|
+
],
|
|
532
|
+
imports: [
|
|
533
|
+
CommonModule,
|
|
534
|
+
FlexLayoutModule,
|
|
535
|
+
CloseButtonModule,
|
|
536
|
+
MatButtonModule,
|
|
537
|
+
TranslateModule,
|
|
538
|
+
RouterModule
|
|
539
|
+
],
|
|
540
|
+
exports: [
|
|
541
|
+
NotificationMessageComponent
|
|
542
|
+
]
|
|
543
|
+
}]
|
|
544
|
+
}] });
|
|
545
|
+
|
|
546
|
+
var NotificationMessageType;
|
|
547
|
+
(function (NotificationMessageType) {
|
|
548
|
+
NotificationMessageType["BASIC"] = "BASIC";
|
|
549
|
+
NotificationMessageType["WARNING"] = "WARNING";
|
|
550
|
+
NotificationMessageType["SUCCESS"] = "SUCCESS";
|
|
551
|
+
NotificationMessageType["ERROR"] = "ERROR";
|
|
552
|
+
})(NotificationMessageType || (NotificationMessageType = {}));
|
|
553
|
+
|
|
554
|
+
class TldLoaderComponent {
|
|
555
|
+
}
|
|
556
|
+
TldLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: TldLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
557
|
+
TldLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: TldLoaderComponent, selector: "lib-tld-loader", ngImport: i0, template: "<div class=\"tld-loader accent-color\" fxLayout=\"row\" fxLayoutGap=\"10px\">\r\n <div class=\"accent-bg-color tld-loader-element element-1\"></div>\r\n <div class=\"accent-bg-color tld-loader-element element-2\"></div>\r\n <div class=\"accent-bg-color tld-loader-element element-3\"></div>\r\n</div>\r\n", styles: [".tld-loader .tld-loader-element{will-change:transform;border-radius:50%;animation:grow .6s ease-in-out infinite alternate;width:24px;height:24px}.tld-loader .tld-loader-element.element-2{animation-delay:.2s}.tld-loader .tld-loader-element.element-3{animation-delay:.4s}@keyframes grow{to{transform:translate(-50%) scale(0)}}\n"] });
|
|
558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: TldLoaderComponent, decorators: [{
|
|
559
|
+
type: Component,
|
|
560
|
+
args: [{ selector: 'lib-tld-loader', template: "<div class=\"tld-loader accent-color\" fxLayout=\"row\" fxLayoutGap=\"10px\">\r\n <div class=\"accent-bg-color tld-loader-element element-1\"></div>\r\n <div class=\"accent-bg-color tld-loader-element element-2\"></div>\r\n <div class=\"accent-bg-color tld-loader-element element-3\"></div>\r\n</div>\r\n", styles: [".tld-loader .tld-loader-element{will-change:transform;border-radius:50%;animation:grow .6s ease-in-out infinite alternate;width:24px;height:24px}.tld-loader .tld-loader-element.element-2{animation-delay:.2s}.tld-loader .tld-loader-element.element-3{animation-delay:.4s}@keyframes grow{to{transform:translate(-50%) scale(0)}}\n"] }]
|
|
561
|
+
}] });
|
|
562
|
+
|
|
563
|
+
class TldLoaderModule {
|
|
564
|
+
}
|
|
565
|
+
TldLoaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: TldLoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
566
|
+
TldLoaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: TldLoaderModule, declarations: [TldLoaderComponent], exports: [TldLoaderComponent] });
|
|
567
|
+
TldLoaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: TldLoaderModule });
|
|
568
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: TldLoaderModule, decorators: [{
|
|
569
|
+
type: NgModule,
|
|
570
|
+
args: [{
|
|
571
|
+
declarations: [
|
|
572
|
+
TldLoaderComponent
|
|
573
|
+
],
|
|
574
|
+
exports: [
|
|
575
|
+
TldLoaderComponent
|
|
576
|
+
]
|
|
577
|
+
}]
|
|
578
|
+
}] });
|
|
579
|
+
|
|
580
|
+
class MissingTranslationHelper {
|
|
581
|
+
handle(params) {
|
|
582
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
583
|
+
return params.interpolateParams?.default || params.key;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
class CompanyProductComponent {
|
|
588
|
+
constructor() {
|
|
589
|
+
this.company = "";
|
|
590
|
+
this.product = "";
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
CompanyProductComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CompanyProductComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
594
|
+
CompanyProductComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: CompanyProductComponent, selector: "lib-company-product", inputs: { company: "company", product: "product" }, ngImport: i0, template: "<div fxHide.lt-md class=\"tilde-product-title\">\r\n <span class=\"company\">\r\n {{company | uppercase}}\r\n </span>\r\n <span class=\"product\">\r\n {{product}}\r\n </span>\r\n</div>", styles: [".tilde-product-title{font-family:Roboto;text-decoration:none!important}.tilde-product-title .company{font-weight:700;font-size:.75rem;line-height:1rem;color:#616e7c;letter-spacing:1px;display:block}.tilde-product-title .product{font-weight:500;font-size:1.25rem;line-height:1.5rem;color:#1f2933;display:block}\n"], pipes: { "uppercase": i1$1.UpperCasePipe } });
|
|
595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CompanyProductComponent, decorators: [{
|
|
596
|
+
type: Component,
|
|
597
|
+
args: [{ selector: 'lib-company-product', template: "<div fxHide.lt-md class=\"tilde-product-title\">\r\n <span class=\"company\">\r\n {{company | uppercase}}\r\n </span>\r\n <span class=\"product\">\r\n {{product}}\r\n </span>\r\n</div>", styles: [".tilde-product-title{font-family:Roboto;text-decoration:none!important}.tilde-product-title .company{font-weight:700;font-size:.75rem;line-height:1rem;color:#616e7c;letter-spacing:1px;display:block}.tilde-product-title .product{font-weight:500;font-size:1.25rem;line-height:1.5rem;color:#1f2933;display:block}\n"] }]
|
|
598
|
+
}], propDecorators: { company: [{
|
|
599
|
+
type: Input
|
|
600
|
+
}], product: [{
|
|
601
|
+
type: Input
|
|
602
|
+
}] } });
|
|
603
|
+
|
|
604
|
+
class CompanyProductModule {
|
|
605
|
+
}
|
|
606
|
+
CompanyProductModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CompanyProductModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
607
|
+
CompanyProductModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CompanyProductModule, declarations: [CompanyProductComponent], imports: [CommonModule], exports: [CompanyProductComponent] });
|
|
608
|
+
CompanyProductModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CompanyProductModule, imports: [[
|
|
609
|
+
CommonModule
|
|
610
|
+
]] });
|
|
611
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: CompanyProductModule, decorators: [{
|
|
612
|
+
type: NgModule,
|
|
613
|
+
args: [{
|
|
614
|
+
declarations: [
|
|
615
|
+
CompanyProductComponent
|
|
616
|
+
],
|
|
617
|
+
imports: [
|
|
618
|
+
CommonModule
|
|
619
|
+
],
|
|
620
|
+
exports: [CompanyProductComponent]
|
|
621
|
+
}]
|
|
622
|
+
}] });
|
|
623
|
+
|
|
624
|
+
class FooterComponent {
|
|
625
|
+
constructor() {
|
|
626
|
+
this.defaultTermsRoute = "terms-of-use";
|
|
627
|
+
this.defaultPrivacyRoute = "privacy-policy";
|
|
628
|
+
this.privacyRoute = this.defaultPrivacyRoute;
|
|
629
|
+
this.termsOfUseRoute = this.defaultTermsRoute;
|
|
630
|
+
this.contactUsRoute = "https://tilde.com/about/get-in-touch";
|
|
631
|
+
this.currentYear = new Date().getFullYear();
|
|
632
|
+
}
|
|
633
|
+
ngOnInit() {
|
|
634
|
+
if (this.baseUrl) {
|
|
635
|
+
this.privacyRoute = this.baseUrl + this.privacyRoute;
|
|
636
|
+
this.termsOfUseRoute = this.baseUrl + this.termsOfUseRoute;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
FooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
641
|
+
FooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: FooterComponent, selector: "tld-footer", inputs: { privacyRoute: "privacyRoute", termsOfUseRoute: "termsOfUseRoute", contactUsRoute: "contactUsRoute", baseUrl: "baseUrl" }, ngImport: i0, template: "<footer fxLayout=\"row\" class=\"text-m\">\r\n <div fxFlex fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutAlign.xs=\"center center\" fxLayout.xs=\"column\"\r\n fxLayoutGap=\"16px\">\r\n <div>\r\n {{ 'FOOTER.TITLE' | translate: {currentYear: currentYear} }}\r\n </div>\r\n <div fxLayoutGap=\"1rem\">\r\n <ng-container *ngIf=\"baseUrl; else localRoutes\">\r\n <a class=\"semi-bold\" *ngIf=\"termsOfUseRoute\" [attr.href]=\"termsOfUseRoute\" target=\"_blank\"> {{\r\n 'FOOTER.TERMS_OF_USE' |\r\n translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"privacyRoute\" [attr.href]=\"privacyRoute\" target=\"_blank\"> {{ 'FOOTER.PRIVACY'\r\n | translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"contactUsRoute\" [routerLink]=\"[contactUsRoute]\"> {{ 'FOOTER.CONTACT_US'| translate\r\n }}</a>\r\n\r\n </ng-container>\r\n <ng-template #localRoutes>\r\n <a class=\"semi-bold\" *ngIf=\"termsOfUseRoute\" [routerLink]=\"[termsOfUseRoute]\"> {{ 'FOOTER.TERMS_OF_USE' |\r\n translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"privacyRoute\" [routerLink]=\"[privacyRoute]\"> {{ 'FOOTER.PRIVACY'| translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"contactUsRoute\" [routerLink]=\"[contactUsRoute]\"> {{ 'FOOTER.CONTACT_US'| translate\r\n }}</a>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</footer>\r\n", styles: [":host footer{color:var(--base-30);padding:1rem 2rem;margin-bottom:0;border-top:1px solid var(--base-70);margin-top:1rem}:host footer a{color:var(--base-30);text-decoration:none}:host footer a:hover{color:var(--base-30);text-decoration:underline}\n"], directives: [{ type: i3.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i3.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i3.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i3.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }], pipes: { "translate": i1$2.TranslatePipe } });
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FooterComponent, decorators: [{
|
|
643
|
+
type: Component,
|
|
644
|
+
args: [{ selector: 'tld-footer', template: "<footer fxLayout=\"row\" class=\"text-m\">\r\n <div fxFlex fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutAlign.xs=\"center center\" fxLayout.xs=\"column\"\r\n fxLayoutGap=\"16px\">\r\n <div>\r\n {{ 'FOOTER.TITLE' | translate: {currentYear: currentYear} }}\r\n </div>\r\n <div fxLayoutGap=\"1rem\">\r\n <ng-container *ngIf=\"baseUrl; else localRoutes\">\r\n <a class=\"semi-bold\" *ngIf=\"termsOfUseRoute\" [attr.href]=\"termsOfUseRoute\" target=\"_blank\"> {{\r\n 'FOOTER.TERMS_OF_USE' |\r\n translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"privacyRoute\" [attr.href]=\"privacyRoute\" target=\"_blank\"> {{ 'FOOTER.PRIVACY'\r\n | translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"contactUsRoute\" [routerLink]=\"[contactUsRoute]\"> {{ 'FOOTER.CONTACT_US'| translate\r\n }}</a>\r\n\r\n </ng-container>\r\n <ng-template #localRoutes>\r\n <a class=\"semi-bold\" *ngIf=\"termsOfUseRoute\" [routerLink]=\"[termsOfUseRoute]\"> {{ 'FOOTER.TERMS_OF_USE' |\r\n translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"privacyRoute\" [routerLink]=\"[privacyRoute]\"> {{ 'FOOTER.PRIVACY'| translate }}</a>\r\n <a class=\"semi-bold\" *ngIf=\"contactUsRoute\" [routerLink]=\"[contactUsRoute]\"> {{ 'FOOTER.CONTACT_US'| translate\r\n }}</a>\r\n </ng-template>\r\n </div>\r\n </div>\r\n</footer>\r\n", styles: [":host footer{color:var(--base-30);padding:1rem 2rem;margin-bottom:0;border-top:1px solid var(--base-70);margin-top:1rem}:host footer a{color:var(--base-30);text-decoration:none}:host footer a:hover{color:var(--base-30);text-decoration:underline}\n"] }]
|
|
645
|
+
}], ctorParameters: function () { return []; }, propDecorators: { privacyRoute: [{
|
|
646
|
+
type: Input
|
|
647
|
+
}], termsOfUseRoute: [{
|
|
648
|
+
type: Input
|
|
649
|
+
}], contactUsRoute: [{
|
|
650
|
+
type: Input
|
|
651
|
+
}], baseUrl: [{
|
|
652
|
+
type: Input
|
|
653
|
+
}] } });
|
|
654
|
+
|
|
655
|
+
class FooterModule {
|
|
656
|
+
}
|
|
657
|
+
FooterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FooterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
658
|
+
FooterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FooterModule, declarations: [FooterComponent], imports: [CommonModule,
|
|
659
|
+
FlexLayoutModule,
|
|
660
|
+
TranslateModule,
|
|
661
|
+
RouterModule], exports: [FooterComponent] });
|
|
662
|
+
FooterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FooterModule, imports: [[
|
|
663
|
+
CommonModule,
|
|
664
|
+
FlexLayoutModule,
|
|
665
|
+
TranslateModule,
|
|
666
|
+
RouterModule
|
|
667
|
+
]] });
|
|
668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: FooterModule, decorators: [{
|
|
669
|
+
type: NgModule,
|
|
670
|
+
args: [{
|
|
671
|
+
declarations: [
|
|
672
|
+
FooterComponent
|
|
673
|
+
],
|
|
674
|
+
imports: [
|
|
675
|
+
CommonModule,
|
|
676
|
+
FlexLayoutModule,
|
|
677
|
+
TranslateModule,
|
|
678
|
+
RouterModule
|
|
679
|
+
],
|
|
680
|
+
exports: [FooterComponent]
|
|
681
|
+
}]
|
|
682
|
+
}] });
|
|
683
|
+
|
|
684
|
+
/*
|
|
685
|
+
* Public API Surface of ngx-common
|
|
686
|
+
*/
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Generated bundle index. Do not edit.
|
|
690
|
+
*/
|
|
691
|
+
|
|
692
|
+
export { ClickOutsideDirective, ClickOutsideModule, CloseButtonComponent, CloseButtonModule, CompanyProductComponent, CompanyProductModule, DOMService, FilterWithHighlightModule, FilterWithHighlightPipe, FooterComponent, FooterModule, IconService, InlineMessageComponent, InlineMessageIconPosition, InlineMessageModule, InlineMessageType, MissingTranslationHelper, NotificationMessageComponent, NotificationMessageModule, NotificationMessageType, PlausibleEventDirective, PlausibleHelper, PlausibleModule, SortTranslationsModule, SortTranslationsPipe, TldLoaderComponent, TldLoaderModule };
|
|
693
|
+
//# sourceMappingURL=tilde-nlp-ngx-common.mjs.map
|