@factor_ec/ui 3.0.1 → 4.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 +1 -1
- package/esm2022/lib/io/avatar/avatar.component.mjs +75 -0
- package/esm2022/lib/io/icon/icon.component.mjs +96 -0
- package/esm2022/lib/io/image/image.component.mjs +84 -0
- package/esm2022/lib/io/progress/progress.component.mjs +43 -0
- package/esm2022/lib/io/rating/rating.component.mjs +61 -0
- package/esm2022/lib/io/timeline/timeline.component.mjs +102 -0
- package/esm2022/lib/observe-inersecting.directive.mjs +43 -0
- package/esm2022/lib/ui.module.mjs +27 -0
- package/esm2022/public-api.mjs +12 -0
- package/fesm2022/factor_ec-ui.mjs +515 -0
- package/fesm2022/factor_ec-ui.mjs.map +1 -0
- package/lib/io/avatar/avatar.component.d.ts +1 -1
- package/lib/io/icon/icon.component.d.ts +1 -1
- package/lib/io/image/image.component.d.ts +1 -1
- package/lib/io/progress/progress.component.d.ts +1 -1
- package/lib/io/rating/rating.component.d.ts +1 -1
- package/lib/io/timeline/timeline.component.d.ts +1 -1
- package/lib/observe-inersecting.directive.d.ts +16 -0
- package/lib/ui.module.d.ts +4 -7
- package/package.json +9 -18
- package/public-api.d.ts +2 -13
- package/esm2020/lib/io/avatar/avatar.component.mjs +0 -74
- package/esm2020/lib/io/expression-builder/expression-builder.component.mjs +0 -72
- package/esm2020/lib/io/icon/icon.component.mjs +0 -95
- package/esm2020/lib/io/image/image.component.mjs +0 -80
- package/esm2020/lib/io/io.module.mjs +0 -81
- package/esm2020/lib/io/message/message.component.mjs +0 -30
- package/esm2020/lib/io/message-content/message-content.component.mjs +0 -19
- package/esm2020/lib/io/message.service.mjs +0 -58
- package/esm2020/lib/io/observe-intersecting.directive.mjs +0 -43
- package/esm2020/lib/io/progress/progress.component.mjs +0 -42
- package/esm2020/lib/io/progress.service.mjs +0 -48
- package/esm2020/lib/io/rating/rating.component.mjs +0 -60
- package/esm2020/lib/io/timeline/timeline.component.mjs +0 -101
- package/esm2020/lib/layout/collapsible/collapsible.component.mjs +0 -37
- package/esm2020/lib/layout/layout.module.mjs +0 -28
- package/esm2020/lib/models/action.mjs +0 -2
- package/esm2020/lib/models/content.mjs +0 -2
- package/esm2020/lib/models/icon.mjs +0 -2
- package/esm2020/lib/models/message-options.mjs +0 -2
- package/esm2020/lib/models/module-configuration.mjs +0 -2
- package/esm2020/lib/navigation/list/list.component.mjs +0 -100
- package/esm2020/lib/navigation/navigation.module.mjs +0 -49
- package/esm2020/lib/navigation/toolbar/toolbar.component.mjs +0 -53
- package/esm2020/lib/ui.module.mjs +0 -47
- package/esm2020/public-api.mjs +0 -23
- package/fesm2015/factor_ec-ui.mjs +0 -1053
- package/fesm2015/factor_ec-ui.mjs.map +0 -1
- package/fesm2020/factor_ec-ui.mjs +0 -1044
- package/fesm2020/factor_ec-ui.mjs.map +0 -1
- package/lib/io/expression-builder/expression-builder.component.d.ts +0 -46
- package/lib/io/io.module.d.ts +0 -20
- package/lib/io/message/message.component.d.ts +0 -11
- package/lib/io/message-content/message-content.component.d.ts +0 -7
- package/lib/io/message.service.d.ts +0 -15
- package/lib/io/observe-intersecting.directive.d.ts +0 -16
- package/lib/io/progress.service.d.ts +0 -15
- package/lib/layout/collapsible/collapsible.component.d.ts +0 -10
- package/lib/layout/layout.module.d.ts +0 -9
- package/lib/models/action.d.ts +0 -14
- package/lib/models/content.d.ts +0 -4
- package/lib/models/icon.d.ts +0 -6
- package/lib/models/message-options.d.ts +0 -13
- package/lib/models/module-configuration.d.ts +0 -6
- package/lib/navigation/list/list.component.d.ts +0 -23
- package/lib/navigation/navigation.module.d.ts +0 -14
- package/lib/navigation/toolbar/toolbar.component.d.ts +0 -17
- package/scss/all.scss +0 -5
- package/scss/components/avatar.scss +0 -15
- package/scss/components/collapsible.scss +0 -46
- package/scss/components/dropdown.scss +0 -56
- package/scss/components/icon.scss +0 -40
- package/scss/components/list.scss +0 -65
- package/scss/components/ph.scss +0 -27
- package/scss/components/popup.scss +0 -7
- package/scss/components/rating.scss +0 -61
- package/scss/components.scss +0 -8
- package/scss/mixins/breakpoints.scss +0 -123
- package/scss/mixins.scss +0 -1
- package/scss/reboot.scss +0 -586
- package/scss/root.scss +0 -52
- package/scss/variables.scss +0 -116
- /package/{esm2020 → esm2022}/factor_ec-ui.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/task.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/models/ui-configuration.mjs +0 -0
|
@@ -1,1053 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, HostBinding, Inject, EventEmitter, Output, Injectable, ApplicationRef, PLATFORM_ID, Directive, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@factor_ec/utils';
|
|
4
|
-
import * as i1$1 from '@angular/common';
|
|
5
|
-
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
6
|
-
import * as i1$2 from '@angular/material/snack-bar';
|
|
7
|
-
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
8
|
-
import * as i3 from '@angular/material/dialog';
|
|
9
|
-
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
10
|
-
import * as i2 from '@angular/material/button';
|
|
11
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
12
|
-
import { ReplaySubject } from 'rxjs';
|
|
13
|
-
import * as i4 from '@angular/router';
|
|
14
|
-
import { RouterModule } from '@angular/router';
|
|
15
|
-
import * as i5 from '@angular/material/menu';
|
|
16
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
17
|
-
|
|
18
|
-
class AvatarComponent {
|
|
19
|
-
constructor(colorService) {
|
|
20
|
-
this.colorService = colorService;
|
|
21
|
-
this.class = '';
|
|
22
|
-
}
|
|
23
|
-
set src(value) {
|
|
24
|
-
if (value && value.trim() != '') {
|
|
25
|
-
this._src = value;
|
|
26
|
-
let image = new Image();
|
|
27
|
-
image.src = value;
|
|
28
|
-
image.onload = () => {
|
|
29
|
-
if ("decode" in image) {
|
|
30
|
-
image.decode().then(() => {
|
|
31
|
-
this.loaded = true;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
console.error('Image.decode not available.');
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
set label(value) {
|
|
41
|
-
this._label = value;
|
|
42
|
-
this.initials = this.getInitials(value);
|
|
43
|
-
}
|
|
44
|
-
get backgroundColor() {
|
|
45
|
-
return this.color || this.colorService.hex(this._label);
|
|
46
|
-
}
|
|
47
|
-
get backgroundImage() {
|
|
48
|
-
return this._src ? `url(${this._src})` : '';
|
|
49
|
-
}
|
|
50
|
-
get hostClasses() {
|
|
51
|
-
return [
|
|
52
|
-
'ft-avatar',
|
|
53
|
-
this.class
|
|
54
|
-
].join(' ');
|
|
55
|
-
}
|
|
56
|
-
ngOnInit() {
|
|
57
|
-
}
|
|
58
|
-
getInitials(value) {
|
|
59
|
-
let allInitials = value.match(/\b\w/g) || [];
|
|
60
|
-
let initials = ((allInitials.shift() || '') + (allInitials.pop() || '')).toUpperCase();
|
|
61
|
-
return initials;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
AvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: AvatarComponent, deps: [{ token: i1.ColorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
65
|
-
AvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: AvatarComponent, selector: "ft-avatar", inputs: { color: "color", src: "src", label: "label", class: "class" }, host: { properties: { "style.background-color": "this.backgroundColor", "style.background-image": "this.backgroundImage", "class": "this.hostClasses" } }, ngImport: i0, template: "<div *ngIf=\"!loaded\">{{ initials }}</div>", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
67
|
-
type: Component,
|
|
68
|
-
args: [{ selector: 'ft-avatar', template: "<div *ngIf=\"!loaded\">{{ initials }}</div>" }]
|
|
69
|
-
}], ctorParameters: function () { return [{ type: i1.ColorService }]; }, propDecorators: { color: [{
|
|
70
|
-
type: Input
|
|
71
|
-
}], src: [{
|
|
72
|
-
type: Input
|
|
73
|
-
}], label: [{
|
|
74
|
-
type: Input
|
|
75
|
-
}], backgroundColor: [{
|
|
76
|
-
type: HostBinding,
|
|
77
|
-
args: ['style.background-color']
|
|
78
|
-
}], backgroundImage: [{
|
|
79
|
-
type: HostBinding,
|
|
80
|
-
args: ['style.background-image']
|
|
81
|
-
}], class: [{
|
|
82
|
-
type: Input
|
|
83
|
-
}], hostClasses: [{
|
|
84
|
-
type: HostBinding,
|
|
85
|
-
args: ['class']
|
|
86
|
-
}] } });
|
|
87
|
-
|
|
88
|
-
class IconComponent {
|
|
89
|
-
constructor(configuration) {
|
|
90
|
-
this.configuration = configuration;
|
|
91
|
-
this.class = '';
|
|
92
|
-
}
|
|
93
|
-
set collection(collection) {
|
|
94
|
-
this._collection = collection;
|
|
95
|
-
this.update();
|
|
96
|
-
}
|
|
97
|
-
set mode(mode) {
|
|
98
|
-
this._mode = mode;
|
|
99
|
-
this.update();
|
|
100
|
-
}
|
|
101
|
-
set name(name) {
|
|
102
|
-
this._name = name;
|
|
103
|
-
this.update();
|
|
104
|
-
}
|
|
105
|
-
set path(path) {
|
|
106
|
-
this._path = path;
|
|
107
|
-
this.update();
|
|
108
|
-
}
|
|
109
|
-
get hostClasses() {
|
|
110
|
-
return [
|
|
111
|
-
'ft-icon',
|
|
112
|
-
this.class
|
|
113
|
-
].join(' ');
|
|
114
|
-
}
|
|
115
|
-
ngOnInit() {
|
|
116
|
-
this.update();
|
|
117
|
-
}
|
|
118
|
-
update() {
|
|
119
|
-
// Set the default collection if the mode is external
|
|
120
|
-
if (!this._collection) {
|
|
121
|
-
if (this.configuration.icon && this.configuration.icon.collection) {
|
|
122
|
-
this._collection = this.configuration.icon.collection;
|
|
123
|
-
}
|
|
124
|
-
else if (this._mode === 'external') {
|
|
125
|
-
this._collection = 'icons';
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
if (!this._mode) {
|
|
129
|
-
if (this.configuration.icon && this.configuration.icon.mode) {
|
|
130
|
-
this._mode = this.configuration.icon.mode;
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
this._mode = 'external';
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
if (this._mode === 'external') {
|
|
137
|
-
// If the icon mode is external
|
|
138
|
-
if (!this._path) {
|
|
139
|
-
if (this.configuration.icon && this.configuration.icon.path) {
|
|
140
|
-
this._path = this.configuration.icon.path;
|
|
141
|
-
}
|
|
142
|
-
else {
|
|
143
|
-
this._path = 'assets';
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
this.url = `${this._path}/${this._collection}.svg#${this._name}`;
|
|
147
|
-
}
|
|
148
|
-
else {
|
|
149
|
-
// If the icon mode is inline
|
|
150
|
-
const name = this._collection && this._collection !== 'unset' ? `${this._collection}--${this._name}` : this._name;
|
|
151
|
-
this.url = `#${name}`;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: IconComponent, deps: [{ token: 'FactorUiConfiguration' }], target: i0.ɵɵFactoryTarget.Component });
|
|
156
|
-
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: IconComponent, selector: "ft-icon", inputs: { collection: "collection", mode: "mode", name: "name", path: "path", src: "src", class: "class" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<svg *ngIf=\"!src; else imageTemplate\">\n <use attr.xlink:href=\"{{ url }}\" attr.href=\"{{ url }}\" />\n</svg>\n<ng-template #imageTemplate>\n <img [src]=\"src\" />\n</ng-template>", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: IconComponent, decorators: [{
|
|
158
|
-
type: Component,
|
|
159
|
-
args: [{ selector: 'ft-icon', template: "<svg *ngIf=\"!src; else imageTemplate\">\n <use attr.xlink:href=\"{{ url }}\" attr.href=\"{{ url }}\" />\n</svg>\n<ng-template #imageTemplate>\n <img [src]=\"src\" />\n</ng-template>" }]
|
|
160
|
-
}], ctorParameters: function () {
|
|
161
|
-
return [{ type: undefined, decorators: [{
|
|
162
|
-
type: Inject,
|
|
163
|
-
args: ['FactorUiConfiguration']
|
|
164
|
-
}] }];
|
|
165
|
-
}, propDecorators: { collection: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}], mode: [{
|
|
168
|
-
type: Input
|
|
169
|
-
}], name: [{
|
|
170
|
-
type: Input
|
|
171
|
-
}], path: [{
|
|
172
|
-
type: Input
|
|
173
|
-
}], src: [{
|
|
174
|
-
type: Input
|
|
175
|
-
}], class: [{
|
|
176
|
-
type: Input
|
|
177
|
-
}], hostClasses: [{
|
|
178
|
-
type: HostBinding,
|
|
179
|
-
args: ['class']
|
|
180
|
-
}] } });
|
|
181
|
-
|
|
182
|
-
class ImageComponent {
|
|
183
|
-
constructor(element) {
|
|
184
|
-
this.element = element;
|
|
185
|
-
this.class = '';
|
|
186
|
-
this.loading = false;
|
|
187
|
-
this.shown = false;
|
|
188
|
-
}
|
|
189
|
-
ngOnInit() {
|
|
190
|
-
if ("IntersectionObserver" in window) {
|
|
191
|
-
let elementObserver = new IntersectionObserver((entries, observer) => {
|
|
192
|
-
entries.forEach((entry) => {
|
|
193
|
-
if (entry.isIntersecting) {
|
|
194
|
-
let image = new Image();
|
|
195
|
-
image.src = this.src;
|
|
196
|
-
setTimeout(() => {
|
|
197
|
-
if (!this.shown && !this.error) {
|
|
198
|
-
this.loading = true;
|
|
199
|
-
}
|
|
200
|
-
}, 100);
|
|
201
|
-
image.onerror = () => {
|
|
202
|
-
this.error = true;
|
|
203
|
-
this.loading = false;
|
|
204
|
-
};
|
|
205
|
-
image.onload = () => {
|
|
206
|
-
if ("decode" in image) {
|
|
207
|
-
image.decode().then(() => {
|
|
208
|
-
this.loading = false;
|
|
209
|
-
this.shown = true;
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
this.loading = false;
|
|
214
|
-
this.shown = true;
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
elementObserver.unobserve(this.element.nativeElement);
|
|
218
|
-
}
|
|
219
|
-
});
|
|
220
|
-
}, {
|
|
221
|
-
rootMargin: "0px 0px 200px 0px"
|
|
222
|
-
});
|
|
223
|
-
elementObserver.observe(this.element.nativeElement);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
console.error('IntersectionObserver not available.');
|
|
227
|
-
this.loading = false;
|
|
228
|
-
this.shown = true;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
get hostClasses() {
|
|
232
|
-
return [
|
|
233
|
-
'ft-image',
|
|
234
|
-
this.class
|
|
235
|
-
].join(' ');
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
ImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ImageComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
239
|
-
ImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ImageComponent, selector: "ft-image", inputs: { class: "class", src: "src" }, host: { properties: { "class.ft-image--error": "this.error", "class.ft-image--loading": "this.loading", "class": "this.hostClasses" } }, ngImport: i0, template: "<img *ngIf=\"shown\" [src]=\"src\" />\n<ft-icon name=\"warning\" size=\"2\" *ngIf=\"error\"></ft-icon>\n", styles: [":host{display:inline-block;overflow:hidden;display:flex;align-items:center;justify-content:center}:host.ft-image--loading{background-color:#00000008;position:relative;overflow:hidden}:host.ft-image--loading:after{content:\"\";display:block;background-color:#00000005;position:absolute;top:0;bottom:0;width:100%;height:100%;transform:translate(0);animation:1.5s ft-placeholder-loading ease-in-out infinite}:host.ft-image--error{background-color:#ff000008}:host.ft-image--error ft-icon{color:var(--danger)}img{position:relative;z-index:1;max-width:100%;max-height:100%;animation:ft-fade-in .3s}@keyframes ft-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ft-placeholder-loading{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["collection", "mode", "name", "path", "src", "class"] }] });
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ImageComponent, decorators: [{
|
|
241
|
-
type: Component,
|
|
242
|
-
args: [{ selector: 'ft-image', template: "<img *ngIf=\"shown\" [src]=\"src\" />\n<ft-icon name=\"warning\" size=\"2\" *ngIf=\"error\"></ft-icon>\n", styles: [":host{display:inline-block;overflow:hidden;display:flex;align-items:center;justify-content:center}:host.ft-image--loading{background-color:#00000008;position:relative;overflow:hidden}:host.ft-image--loading:after{content:\"\";display:block;background-color:#00000005;position:absolute;top:0;bottom:0;width:100%;height:100%;transform:translate(0);animation:1.5s ft-placeholder-loading ease-in-out infinite}:host.ft-image--error{background-color:#ff000008}:host.ft-image--error ft-icon{color:var(--danger)}img{position:relative;z-index:1;max-width:100%;max-height:100%;animation:ft-fade-in .3s}@keyframes ft-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ft-placeholder-loading{0%{transform:translate(-100%)}to{transform:translate(100%)}}\n"] }]
|
|
243
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { class: [{
|
|
244
|
-
type: Input
|
|
245
|
-
}], error: [{
|
|
246
|
-
type: HostBinding,
|
|
247
|
-
args: ['class.ft-image--error']
|
|
248
|
-
}], loading: [{
|
|
249
|
-
type: HostBinding,
|
|
250
|
-
args: ['class.ft-image--loading']
|
|
251
|
-
}], src: [{
|
|
252
|
-
type: Input
|
|
253
|
-
}], hostClasses: [{
|
|
254
|
-
type: HostBinding,
|
|
255
|
-
args: ['class']
|
|
256
|
-
}] } });
|
|
257
|
-
|
|
258
|
-
class MessageContentComponent {
|
|
259
|
-
constructor(data) {
|
|
260
|
-
this.data = data;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
MessageContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MessageContentComponent, deps: [{ token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
264
|
-
MessageContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: MessageContentComponent, selector: "ft-message-content", ngImport: i0, template: "<ng-container [ngSwitch]=\"data.message?.type\">\n <div *ngSwitchCase=\"'html'\" [innerHTML]=\"data.message?.content\"></div>\n <ng-container *ngSwitchDefault>{{ data.message?.content }}</ng-container>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
|
|
265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MessageContentComponent, decorators: [{
|
|
266
|
-
type: Component,
|
|
267
|
-
args: [{ selector: 'ft-message-content', template: "<ng-container [ngSwitch]=\"data.message?.type\">\n <div *ngSwitchCase=\"'html'\" [innerHTML]=\"data.message?.content\"></div>\n <ng-container *ngSwitchDefault>{{ data.message?.content }}</ng-container>\n</ng-container>" }]
|
|
268
|
-
}], ctorParameters: function () {
|
|
269
|
-
return [{ type: undefined, decorators: [{
|
|
270
|
-
type: Inject,
|
|
271
|
-
args: [MAT_SNACK_BAR_DATA]
|
|
272
|
-
}] }];
|
|
273
|
-
} });
|
|
274
|
-
|
|
275
|
-
class MessageComponent {
|
|
276
|
-
constructor(data) {
|
|
277
|
-
this.data = data;
|
|
278
|
-
this.beforeSelect = new EventEmitter();
|
|
279
|
-
}
|
|
280
|
-
ngOnInit() {
|
|
281
|
-
}
|
|
282
|
-
select(value) {
|
|
283
|
-
this.beforeSelect.emit(value);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
MessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MessageComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
287
|
-
MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: MessageComponent, selector: "ft-message", outputs: { beforeSelect: "beforeSelect" }, ngImport: i0, template: "<h1 mat-dialog-title class=\"ft-message__title\" *ngIf=\"data.options?.title\">\n <ft-icon *ngIf=\"data.options?.titleIcon\" [name]=\"data.options?.titleIcon?.name\"\n [collection]=\"data.options?.titleIcon?.collection\" [ngClass]=\"data.options?.titleIcon?.class\"></ft-icon>\n <div>{{ data.options?.title }}</div>\n</h1>\n<div mat-dialog-content class=\"ft-message__content\" [ngClass]=\"data.options?.class\">\n <ft-icon *ngIf=\"data.options?.icon\" [name]=\"data.options?.icon?.name\" [collection]=\"data.options?.icon?.collection\"\n [ngClass]=\"data.options?.icon?.class\"></ft-icon>\n <ng-container [ngSwitch]=\"data.message?.type\">\n <div *ngSwitchCase=\"'html'\" [innerHTML]=\"data.message?.content\"></div>\n <ng-container *ngSwitchDefault>{{ data.message?.content }}</ng-container>\n </ng-container>\n</div>\n<div mat-dialog-actions class=\"ft-message__actions\" *ngIf=\"data.options.actionsVisible\">\n <ng-container *ngIf=\"data.options?.actions?.length > 0; else acceptTemplate\">\n <ng-container *ngFor=\"let action of data.options?.actions; let i = index\">\n <ng-container [ngSwitch]=\"action.type\">\n <button type=\"button\" *ngSwitchCase=\"'raised'\" mat-raised-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchCase=\"'flat'\" mat-flat-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchCase=\"'stroked'\" mat-stroked-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchDefault mat-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\">{{ action.label }}</button>\n </ng-container>\n </ng-container>\n </ng-container>\n</div>\n<ng-template #acceptTemplate>\n <button type=\"button\" mat-stroked-button color=\"primary\" autofocus (click)=\"select('-1')\" i18n>Accept</button>\n</ng-template>", styles: [".mat-mdc-dialog-title{display:flex;align-items:center;gap:.5rem}.mat-mdc-dialog-content{display:flex;align-items:center;margin-bottom:.5rem}.mat-mdc-dialog-content ft-icon{margin-right:.5rem}.mat-mdc-dialog-actions{display:flex;align-items:center;justify-content:flex-end;padding-bottom:1.5rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["collection", "mode", "name", "path", "src", "class"] }] });
|
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MessageComponent, decorators: [{
|
|
289
|
-
type: Component,
|
|
290
|
-
args: [{ selector: 'ft-message', template: "<h1 mat-dialog-title class=\"ft-message__title\" *ngIf=\"data.options?.title\">\n <ft-icon *ngIf=\"data.options?.titleIcon\" [name]=\"data.options?.titleIcon?.name\"\n [collection]=\"data.options?.titleIcon?.collection\" [ngClass]=\"data.options?.titleIcon?.class\"></ft-icon>\n <div>{{ data.options?.title }}</div>\n</h1>\n<div mat-dialog-content class=\"ft-message__content\" [ngClass]=\"data.options?.class\">\n <ft-icon *ngIf=\"data.options?.icon\" [name]=\"data.options?.icon?.name\" [collection]=\"data.options?.icon?.collection\"\n [ngClass]=\"data.options?.icon?.class\"></ft-icon>\n <ng-container [ngSwitch]=\"data.message?.type\">\n <div *ngSwitchCase=\"'html'\" [innerHTML]=\"data.message?.content\"></div>\n <ng-container *ngSwitchDefault>{{ data.message?.content }}</ng-container>\n </ng-container>\n</div>\n<div mat-dialog-actions class=\"ft-message__actions\" *ngIf=\"data.options.actionsVisible\">\n <ng-container *ngIf=\"data.options?.actions?.length > 0; else acceptTemplate\">\n <ng-container *ngFor=\"let action of data.options?.actions; let i = index\">\n <ng-container [ngSwitch]=\"action.type\">\n <button type=\"button\" *ngSwitchCase=\"'raised'\" mat-raised-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchCase=\"'flat'\" mat-flat-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchCase=\"'stroked'\" mat-stroked-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchDefault mat-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\">{{ action.label }}</button>\n </ng-container>\n </ng-container>\n </ng-container>\n</div>\n<ng-template #acceptTemplate>\n <button type=\"button\" mat-stroked-button color=\"primary\" autofocus (click)=\"select('-1')\" i18n>Accept</button>\n</ng-template>", styles: [".mat-mdc-dialog-title{display:flex;align-items:center;gap:.5rem}.mat-mdc-dialog-content{display:flex;align-items:center;margin-bottom:.5rem}.mat-mdc-dialog-content ft-icon{margin-right:.5rem}.mat-mdc-dialog-actions{display:flex;align-items:center;justify-content:flex-end;padding-bottom:1.5rem}\n"] }]
|
|
291
|
-
}], ctorParameters: function () {
|
|
292
|
-
return [{ type: undefined, decorators: [{
|
|
293
|
-
type: Inject,
|
|
294
|
-
args: [MAT_DIALOG_DATA]
|
|
295
|
-
}] }];
|
|
296
|
-
}, propDecorators: { beforeSelect: [{
|
|
297
|
-
type: Output
|
|
298
|
-
}] } });
|
|
299
|
-
|
|
300
|
-
class MessageService {
|
|
301
|
-
constructor(snackBar, dialog) {
|
|
302
|
-
this.snackBar = snackBar;
|
|
303
|
-
this.dialog = dialog;
|
|
304
|
-
}
|
|
305
|
-
show(message, options) {
|
|
306
|
-
let selectionSource = new ReplaySubject(undefined);
|
|
307
|
-
let selection = selectionSource.asObservable();
|
|
308
|
-
const defaults = {
|
|
309
|
-
type: 'notification',
|
|
310
|
-
duration: 2000,
|
|
311
|
-
actionsVisible: true
|
|
312
|
-
};
|
|
313
|
-
options = Object.assign(defaults, options);
|
|
314
|
-
const data = { message: typeof message === 'string' ? { content: message, type: 'text' } : message, options };
|
|
315
|
-
switch (options.type) {
|
|
316
|
-
default:
|
|
317
|
-
case 'notification':
|
|
318
|
-
this.snackBar.openFromComponent(MessageContentComponent, {
|
|
319
|
-
data,
|
|
320
|
-
panelClass: ['ft-message', 'ft-message--notification'],
|
|
321
|
-
duration: options.duration || 2000,
|
|
322
|
-
});
|
|
323
|
-
break;
|
|
324
|
-
case 'modal':
|
|
325
|
-
const dialogRef = this.dialog.open(MessageComponent, {
|
|
326
|
-
width: options.width || '350px',
|
|
327
|
-
data,
|
|
328
|
-
panelClass: ['ft-message', 'ft-message--modal'],
|
|
329
|
-
autoFocus: false,
|
|
330
|
-
disableClose: true
|
|
331
|
-
});
|
|
332
|
-
dialogRef.componentInstance.beforeSelect.subscribe((response) => {
|
|
333
|
-
selectionSource.next(response);
|
|
334
|
-
dialogRef.close();
|
|
335
|
-
});
|
|
336
|
-
this.snackBar.dismiss();
|
|
337
|
-
break;
|
|
338
|
-
}
|
|
339
|
-
return selection;
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MessageService, deps: [{ token: i1$2.MatSnackBar }, { token: i3.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
343
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: MessageService, decorators: [{
|
|
345
|
-
type: Injectable,
|
|
346
|
-
args: [{
|
|
347
|
-
providedIn: 'root'
|
|
348
|
-
}]
|
|
349
|
-
}], ctorParameters: function () { return [{ type: i1$2.MatSnackBar }, { type: i3.MatDialog }]; } });
|
|
350
|
-
|
|
351
|
-
class ProgressComponent {
|
|
352
|
-
constructor() {
|
|
353
|
-
this.class = '';
|
|
354
|
-
this.mode = 'indeterminate';
|
|
355
|
-
this.overlay = false;
|
|
356
|
-
}
|
|
357
|
-
ngOnInit() {
|
|
358
|
-
this.value = 0;
|
|
359
|
-
}
|
|
360
|
-
get hostClasses() {
|
|
361
|
-
return [
|
|
362
|
-
'ft-progress',
|
|
363
|
-
this.overlay ? 'ft-progress--overlay' : '',
|
|
364
|
-
this.class
|
|
365
|
-
].join(' ');
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
ProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
369
|
-
ProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ProgressComponent, selector: "ft-progress", inputs: { class: "class", color: "color", mode: "mode", overlay: "overlay", size: "size", value: "value" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<svg [ngStyle]=\"{'--ft-bar-color': color}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"xMidYMid\">\n <circle class=\"ft-track\" cx=\"50\" cy=\"50\" r=\"40\" />\n <circle class=\"ft-bar\" [ngClass]=\"mode === 'determinate' ? 'ft-bar--determinate' : 'ft-bar--indeterminate'\" cx=\"50\" cy=\"50\" r=\"40\"\n [ngStyle]=\"{'stroke-dashoffset': mode=='determinate'? 'calc((3.14159265 * 40 * 2 * (100 - '+value+')) / 100)' : null}\">\n </circle>\n</svg>", styles: [":host{--ft-track-color: rgba(0, 0, 0, .08);--ft-bar-color: var(--ft-primary-color);line-height:0;display:inline-block}:host.ft-progress--1{font-size:1rem}:host.ft-progress--2{font-size:1.5rem}:host.ft-progress--3{font-size:2rem}:host.ft-progress--4{font-size:3rem}:host.ft-progress--5{font-size:4.5rem}:host.ft-progress--6{font-size:8rem}:host.ft-progress--7{font-size:16rem}:host.ft-progress--8{font-size:32rem}:host.ft-progress--overlay{position:fixed;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:var(--ft-z-index-modal, 1000);inset:0;font-size:42px}:host.ft-progress--overlay svg{background:rgba(255,255,255,.6);-webkit-backdrop-filter:saturate(50%) blur(3px);backdrop-filter:saturate(50%) blur(3px);box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f;border-radius:100vh;padding:.3125rem;animation:ft-progress-reveal .2s;animation-fill-mode:forwards}:host.ft-progress--overlay svg .ft-track{display:none}svg{width:1em;height:1em;vertical-align:middle}svg .ft-track{fill:none;stroke-width:10;stroke:var(--ft-track-color)}svg .ft-bar{fill:none;stroke-opacity:.9;stroke-width:6;stroke:var(--ft-bar-color)}svg .ft-bar.ft-bar--indeterminate{animation:ft-progress-rotation 2s infinite linear}svg .ft-bar.ft-bar--determinate{stroke-dasharray:251.327412288}@keyframes ft-progress-reveal{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes ft-progress-rotation{0%{stroke-dashoffset:0;stroke-dasharray:150.6 100.4}50%{stroke-dasharray:1 250}to{stroke-dashoffset:502;stroke-dasharray:150.6 100.4}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
370
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ProgressComponent, decorators: [{
|
|
371
|
-
type: Component,
|
|
372
|
-
args: [{ selector: 'ft-progress', template: "<svg [ngStyle]=\"{'--ft-bar-color': color}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"\n preserveAspectRatio=\"xMidYMid\">\n <circle class=\"ft-track\" cx=\"50\" cy=\"50\" r=\"40\" />\n <circle class=\"ft-bar\" [ngClass]=\"mode === 'determinate' ? 'ft-bar--determinate' : 'ft-bar--indeterminate'\" cx=\"50\" cy=\"50\" r=\"40\"\n [ngStyle]=\"{'stroke-dashoffset': mode=='determinate'? 'calc((3.14159265 * 40 * 2 * (100 - '+value+')) / 100)' : null}\">\n </circle>\n</svg>", styles: [":host{--ft-track-color: rgba(0, 0, 0, .08);--ft-bar-color: var(--ft-primary-color);line-height:0;display:inline-block}:host.ft-progress--1{font-size:1rem}:host.ft-progress--2{font-size:1.5rem}:host.ft-progress--3{font-size:2rem}:host.ft-progress--4{font-size:3rem}:host.ft-progress--5{font-size:4.5rem}:host.ft-progress--6{font-size:8rem}:host.ft-progress--7{font-size:16rem}:host.ft-progress--8{font-size:32rem}:host.ft-progress--overlay{position:fixed;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:var(--ft-z-index-modal, 1000);inset:0;font-size:42px}:host.ft-progress--overlay svg{background:rgba(255,255,255,.6);-webkit-backdrop-filter:saturate(50%) blur(3px);backdrop-filter:saturate(50%) blur(3px);box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f;border-radius:100vh;padding:.3125rem;animation:ft-progress-reveal .2s;animation-fill-mode:forwards}:host.ft-progress--overlay svg .ft-track{display:none}svg{width:1em;height:1em;vertical-align:middle}svg .ft-track{fill:none;stroke-width:10;stroke:var(--ft-track-color)}svg .ft-bar{fill:none;stroke-opacity:.9;stroke-width:6;stroke:var(--ft-bar-color)}svg .ft-bar.ft-bar--indeterminate{animation:ft-progress-rotation 2s infinite linear}svg .ft-bar.ft-bar--determinate{stroke-dasharray:251.327412288}@keyframes ft-progress-reveal{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes ft-progress-rotation{0%{stroke-dashoffset:0;stroke-dasharray:150.6 100.4}50%{stroke-dasharray:1 250}to{stroke-dashoffset:502;stroke-dasharray:150.6 100.4}}\n"] }]
|
|
373
|
-
}], ctorParameters: function () { return []; }, propDecorators: { class: [{
|
|
374
|
-
type: Input
|
|
375
|
-
}], color: [{
|
|
376
|
-
type: Input
|
|
377
|
-
}], mode: [{
|
|
378
|
-
type: Input
|
|
379
|
-
}], overlay: [{
|
|
380
|
-
type: Input
|
|
381
|
-
}], size: [{
|
|
382
|
-
type: Input
|
|
383
|
-
}], value: [{
|
|
384
|
-
type: Input
|
|
385
|
-
}], hostClasses: [{
|
|
386
|
-
type: HostBinding,
|
|
387
|
-
args: ['class']
|
|
388
|
-
}] } });
|
|
389
|
-
|
|
390
|
-
class ProgressService {
|
|
391
|
-
constructor(viewContainerRef, injector) {
|
|
392
|
-
this.viewContainerRef = viewContainerRef;
|
|
393
|
-
this.injector = injector;
|
|
394
|
-
}
|
|
395
|
-
show() {
|
|
396
|
-
if (!this.componentRef) {
|
|
397
|
-
this.appRef = this.injector.get(ApplicationRef);
|
|
398
|
-
// 1. Create a component reference from the component
|
|
399
|
-
this.componentRef = this.viewContainerRef.createComponent(ProgressComponent);
|
|
400
|
-
// 2. Attach component to the appRef so that it's inside the ng component tree
|
|
401
|
-
this.appRef.attachView(this.componentRef.hostView);
|
|
402
|
-
this.componentRef.instance.overlay = true;
|
|
403
|
-
// 3. Get DOM element from component
|
|
404
|
-
const domElem = this.componentRef.hostView
|
|
405
|
-
.rootNodes[0];
|
|
406
|
-
// 4. Append DOM element to the body
|
|
407
|
-
document.body.appendChild(domElem);
|
|
408
|
-
return true;
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
return false;
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
hide() {
|
|
415
|
-
if (this.componentRef) {
|
|
416
|
-
this.appRef.detachView(this.componentRef.hostView);
|
|
417
|
-
this.componentRef.destroy();
|
|
418
|
-
this.componentRef = null;
|
|
419
|
-
return true;
|
|
420
|
-
}
|
|
421
|
-
else {
|
|
422
|
-
return false;
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
ProgressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ProgressService, deps: [{ token: i0.ViewContainerRef }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
427
|
-
ProgressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ProgressService, providedIn: 'root' });
|
|
428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ProgressService, decorators: [{
|
|
429
|
-
type: Injectable,
|
|
430
|
-
args: [{
|
|
431
|
-
providedIn: 'root'
|
|
432
|
-
}]
|
|
433
|
-
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.Injector }]; } });
|
|
434
|
-
|
|
435
|
-
class ObserveIntersectingDirective {
|
|
436
|
-
constructor(element, platformId) {
|
|
437
|
-
this.element = element;
|
|
438
|
-
this.platformId = platformId;
|
|
439
|
-
this.event = new EventEmitter();
|
|
440
|
-
}
|
|
441
|
-
ngOnInit() {
|
|
442
|
-
if (isPlatformBrowser(this.platformId)) {
|
|
443
|
-
if ("IntersectionObserver" in window) {
|
|
444
|
-
const elementObserver = new IntersectionObserver((entries, observer) => {
|
|
445
|
-
entries.forEach((entry) => {
|
|
446
|
-
this.event.emit(entry.isIntersecting);
|
|
447
|
-
});
|
|
448
|
-
}, this.options);
|
|
449
|
-
elementObserver.observe(this.element.nativeElement);
|
|
450
|
-
}
|
|
451
|
-
else {
|
|
452
|
-
console.error('ftObserveIntersecting not available in this browser.');
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
ObserveIntersectingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveIntersectingDirective, deps: [{ token: i0.ElementRef }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
|
|
458
|
-
ObserveIntersectingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.2", type: ObserveIntersectingDirective, selector: "[ftObserveIntersecting]", inputs: { options: ["ftObserveIntersectingOptions", "options"] }, outputs: { event: "ftObserveIntersecting" }, ngImport: i0 });
|
|
459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ObserveIntersectingDirective, decorators: [{
|
|
460
|
-
type: Directive,
|
|
461
|
-
args: [{
|
|
462
|
-
selector: '[ftObserveIntersecting]'
|
|
463
|
-
}]
|
|
464
|
-
}], ctorParameters: function () {
|
|
465
|
-
return [{ type: i0.ElementRef }, { type: Object, decorators: [{
|
|
466
|
-
type: Inject,
|
|
467
|
-
args: [PLATFORM_ID]
|
|
468
|
-
}] }];
|
|
469
|
-
}, propDecorators: { options: [{
|
|
470
|
-
type: Input,
|
|
471
|
-
args: ['ftObserveIntersectingOptions']
|
|
472
|
-
}], event: [{
|
|
473
|
-
type: Output,
|
|
474
|
-
args: ['ftObserveIntersecting']
|
|
475
|
-
}] } });
|
|
476
|
-
|
|
477
|
-
class RatingComponent {
|
|
478
|
-
constructor() {
|
|
479
|
-
this.disabled = false;
|
|
480
|
-
this.propagateChange = (_) => { };
|
|
481
|
-
this.readOnly = false;
|
|
482
|
-
this.stars = [
|
|
483
|
-
{ value: 1 },
|
|
484
|
-
{ value: 2 },
|
|
485
|
-
{ value: 3 },
|
|
486
|
-
{ value: 4 },
|
|
487
|
-
{ value: 5 }
|
|
488
|
-
];
|
|
489
|
-
}
|
|
490
|
-
ngOnInit() {
|
|
491
|
-
}
|
|
492
|
-
get value() {
|
|
493
|
-
return this._value;
|
|
494
|
-
}
|
|
495
|
-
set value(value) {
|
|
496
|
-
this._value = value;
|
|
497
|
-
this.propagateChange(this._value);
|
|
498
|
-
}
|
|
499
|
-
registerOnChange(fn) {
|
|
500
|
-
this.propagateChange = fn;
|
|
501
|
-
}
|
|
502
|
-
registerOnTouched(fn) {
|
|
503
|
-
//this.propagateChange = fn;
|
|
504
|
-
}
|
|
505
|
-
setDisabledState(isDisabled) {
|
|
506
|
-
this.disabled = isDisabled;
|
|
507
|
-
}
|
|
508
|
-
setRate(value, isHover) {
|
|
509
|
-
if (isHover) {
|
|
510
|
-
this.hoverValue = value;
|
|
511
|
-
}
|
|
512
|
-
else {
|
|
513
|
-
this.value = value;
|
|
514
|
-
}
|
|
515
|
-
}
|
|
516
|
-
updateValue(event) {
|
|
517
|
-
this.value = event.target.value;
|
|
518
|
-
}
|
|
519
|
-
writeValue(value) {
|
|
520
|
-
this.value = value;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
RatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: RatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
524
|
-
RatingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: RatingComponent, selector: "ft-rating", inputs: { readOnly: "readOnly", value: "value" }, ngImport: i0, template: "<ng-container *ngFor=\"let star of stars\">\n <ng-container *ngTemplateOutlet=\"!readOnly? buttonTemplate : starTemplate; context:{star:star}\"></ng-container>\n</ng-container>\n<ng-template #buttonTemplate let-star=\"star\">\n <button type=\"button\" class=\"ft-rating__item\" *ngIf=\"!readOnly; else starTemplate\" [disabled]=\"disabled\"\n (mouseover)=\"setRate(star.value, true)\" (focus)=\"setRate(star.value, true)\" (blur)=\"setRate(0, true)\"\n (mouseout)=\"setRate(0, true)\" (click)=\"setRate(star.value)\">\n <ng-container *ngTemplateOutlet=\"starTemplate; context:{star:star}\"></ng-container>\n </button>\n</ng-template>\n<ng-template #starTemplate let-star=\"star\">\n <svg [ngClass]=\"{'ft-rating__item-icon--hover': hoverValue >= star.value, 'ft-rating__item-icon--active': value >= star.value}\" viewBox=\"0 0 24 24\">\n <path\n d=\"M17.93 21.315c-.534.408-5.22-3.186-5.881-3.181-.663 0-5.307 3.656-5.846 3.254-.537-.403 1.29-6.165 1.081-6.822-.209-.656-4.972-4.138-4.772-4.796.201-.658 6.015-.627 6.55-1.036.533-.41 2.233-6.215 2.895-6.219.663 0 2.43 5.779 2.968 6.182.539.403 6.352.297 6.56.953.21.656-4.513 4.197-4.714 4.856-.2.658 1.692 6.398 1.159 6.808z\" />\n </svg>\n</ng-template>", dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: RatingComponent, decorators: [{
|
|
526
|
-
type: Component,
|
|
527
|
-
args: [{ selector: 'ft-rating', template: "<ng-container *ngFor=\"let star of stars\">\n <ng-container *ngTemplateOutlet=\"!readOnly? buttonTemplate : starTemplate; context:{star:star}\"></ng-container>\n</ng-container>\n<ng-template #buttonTemplate let-star=\"star\">\n <button type=\"button\" class=\"ft-rating__item\" *ngIf=\"!readOnly; else starTemplate\" [disabled]=\"disabled\"\n (mouseover)=\"setRate(star.value, true)\" (focus)=\"setRate(star.value, true)\" (blur)=\"setRate(0, true)\"\n (mouseout)=\"setRate(0, true)\" (click)=\"setRate(star.value)\">\n <ng-container *ngTemplateOutlet=\"starTemplate; context:{star:star}\"></ng-container>\n </button>\n</ng-template>\n<ng-template #starTemplate let-star=\"star\">\n <svg [ngClass]=\"{'ft-rating__item-icon--hover': hoverValue >= star.value, 'ft-rating__item-icon--active': value >= star.value}\" viewBox=\"0 0 24 24\">\n <path\n d=\"M17.93 21.315c-.534.408-5.22-3.186-5.881-3.181-.663 0-5.307 3.656-5.846 3.254-.537-.403 1.29-6.165 1.081-6.822-.209-.656-4.972-4.138-4.772-4.796.201-.658 6.015-.627 6.55-1.036.533-.41 2.233-6.215 2.895-6.219.663 0 2.43 5.779 2.968 6.182.539.403 6.352.297 6.56.953.21.656-4.513 4.197-4.714 4.856-.2.658 1.692 6.398 1.159 6.808z\" />\n </svg>\n</ng-template>" }]
|
|
528
|
-
}], ctorParameters: function () { return []; }, propDecorators: { readOnly: [{
|
|
529
|
-
type: Input
|
|
530
|
-
}], value: [{
|
|
531
|
-
type: Input
|
|
532
|
-
}] } });
|
|
533
|
-
|
|
534
|
-
class TimelineComponent {
|
|
535
|
-
constructor() {
|
|
536
|
-
this.startDate = new Date();
|
|
537
|
-
this.data = [];
|
|
538
|
-
this.dataParsed = {
|
|
539
|
-
months: [],
|
|
540
|
-
days: [],
|
|
541
|
-
weekends: []
|
|
542
|
-
};
|
|
543
|
-
this.class = '';
|
|
544
|
-
}
|
|
545
|
-
get hostClasses() {
|
|
546
|
-
return [
|
|
547
|
-
'ft-timeline',
|
|
548
|
-
this.class
|
|
549
|
-
].join(' ');
|
|
550
|
-
}
|
|
551
|
-
;
|
|
552
|
-
ngOnInit() {
|
|
553
|
-
this.addMonth(this.calcStartDate());
|
|
554
|
-
}
|
|
555
|
-
addMonth(date) {
|
|
556
|
-
const month = this.getMonth(date.getMonth(), date.getFullYear());
|
|
557
|
-
const currentDays = this.dataParsed.days.length;
|
|
558
|
-
this.dataParsed.months = [...this.dataParsed.months, { date: month.days[0], daysInMonth: month.days.length }];
|
|
559
|
-
this.dataParsed.days = [...this.dataParsed.days, ...month.days];
|
|
560
|
-
this.dataParsed.weekends = [...this.dataParsed.weekends, ...month.weekends];
|
|
561
|
-
if (!this.currentDate && month.currentDate) {
|
|
562
|
-
this.currentDate = currentDays + month.currentDate;
|
|
563
|
-
}
|
|
564
|
-
this.dataParsed.days.some((day, index) => {
|
|
565
|
-
if ([0, 6].includes(day.getDay())) {
|
|
566
|
-
this.dataParsed.weekendStart = index;
|
|
567
|
-
return true;
|
|
568
|
-
}
|
|
569
|
-
return false;
|
|
570
|
-
});
|
|
571
|
-
this.parseTasks();
|
|
572
|
-
}
|
|
573
|
-
calcStartDate() {
|
|
574
|
-
return new Date();
|
|
575
|
-
}
|
|
576
|
-
getMonth(month, year) {
|
|
577
|
-
const days = [];
|
|
578
|
-
const weekends = [];
|
|
579
|
-
let currentDate = null;
|
|
580
|
-
let today = new Date();
|
|
581
|
-
const date = new Date(year, month + 1, 0);
|
|
582
|
-
for (let i = 1; i <= date.getDate(); i++) {
|
|
583
|
-
const idate = new Date(year, month, i);
|
|
584
|
-
if ([0, 6].includes(idate.getDay())) {
|
|
585
|
-
if (idate.getDay() === 6) {
|
|
586
|
-
weekends.push([idate]);
|
|
587
|
-
}
|
|
588
|
-
else {
|
|
589
|
-
weekends[weekends.length - 1].push(idate);
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
if (idate.getTime() === new Date(today.getFullYear(), today.getMonth(), today.getDate()).getTime()) {
|
|
593
|
-
currentDate = i - 1;
|
|
594
|
-
}
|
|
595
|
-
days.push(idate);
|
|
596
|
-
}
|
|
597
|
-
const data = { days, weekends };
|
|
598
|
-
if (currentDate) {
|
|
599
|
-
data.currentDate = currentDate;
|
|
600
|
-
}
|
|
601
|
-
return data;
|
|
602
|
-
}
|
|
603
|
-
parseTasks() {
|
|
604
|
-
let tasks = this.data.filter(task => task.endAt) /*.sort((a, b) => a.)*/;
|
|
605
|
-
this.dataParsed.tasks = tasks.map((task) => {
|
|
606
|
-
return {
|
|
607
|
-
label: task.label,
|
|
608
|
-
start: 10,
|
|
609
|
-
type: task.type,
|
|
610
|
-
size: 1
|
|
611
|
-
};
|
|
612
|
-
});
|
|
613
|
-
}
|
|
614
|
-
}
|
|
615
|
-
TimelineComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: TimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
616
|
-
TimelineComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: TimelineComponent, selector: "ft-timeline", inputs: { data: "data", class: "class" }, host: { properties: { "style.--current-date": "this.currentDate", "class": "this.hostClasses" } }, ngImport: i0, template: "<div class=\"ft-weekends\" [style.--start]=\"dataParsed.weekendStart\">\n <div class=\"ft-weekends__item\" [style.--weekend-size]=\"weekend.length\" *ngFor=\"let weekend of dataParsed.weekends\">\n </div>\n</div>\n<div class=\"ft-current-date\" *ngIf=\"currentDate\"></div>\n<div class=\"ft-header\">\n <div class=\"ft-header__months\">\n <div [style.--days-in-month]=\"month.daysInMonth\" *ngFor=\"let month of dataParsed.months; let i = index\">{{\n month.date\n | date: 'MMMM, yyyy' }}</div>\n </div>\n <div class=\"ft-header__days\">\n <div *ngFor=\"let day of dataParsed.days; let i = index\">\n <div [ngClass]=\"{active: currentDate && currentDate === i}\">{{ day | date:'d' }}</div>\n </div>\n </div>\n</div>\n<div class=\"ft-tasks\">\n <button type=\"button\" class=\"ft-tasks__item\" [class.tasks__item--milestone]=\"task.type === 'milestone'\"\n [style.--start]=\"task.start\" [style.--days]=\"task.type === 'milestone' ? 1 : task.size\"\n style=\" --color-rgb: 130, 121, 210;\" *ngFor=\"let task of dataParsed.tasks;\">{{ task.label }}</button>\n</div>", styles: [":host{position:relative;display:flex;flex-direction:column;--background-color: #fff;--column-width: 30px;--current-date-color: #ff9800}.ft-header{background-color:var(--background-color);border-bottom:1px solid rgba(0,0,0,.1);font-size:.75rem;font-weight:100;padding-bottom:.25rem;position:sticky;top:0;z-index:4;width:-moz-fit-content;width:fit-content}.ft-header__months{display:flex}.ft-header__months>div{background-color:var(--background-color);box-sizing:border-box;font-weight:400;padding:.5rem;white-space:nowrap;width:calc(var(--column-width) * var(--days-in-month))}.ft-header__days{display:flex}.ft-header__days>div{display:flex;align-items:center;justify-content:center;min-width:var(--column-width);padding:.25rem;border-radius:100vh;box-sizing:border-box}.ft-header__days>div>.ft-active{display:flex;align-items:center;justify-content:center;width:100%;height:20px;background-color:var(--current-date-color);color:var(--background-color);border-radius:100vh;box-sizing:border-box}.ft-weekends{position:absolute;inset:0;display:flex;padding-left:calc(var(--column-width) * var(--start))}.ft-weekends__item{min-width:calc(var(--column-width) * var(--weekend-size, 2));background-image:url(https://factor.ec/timesheet/es/bg-weekend.aff6b9d13e42ca0e1023.svg);background-size:25px;z-index:1;top:0;bottom:0}.ft-weekends__item~.ft-weekends__item{margin-left:calc(var(--column-width) * 5)}.ft-current-date{position:absolute;width:var(--column-width);left:calc(var(--column-width) * var(--current-date));z-index:2;top:0;bottom:0;background-color:var(--current-date-color);opacity:.1}.ft-tasks{position:relative;z-index:3;display:flex;padding-top:.5rem;gap:.5rem;flex-direction:column}.ft-tasks__item{border:1px solid transparent;height:28px;background-color:var(--background-color);background-image:linear-gradient(rgba(var(--color-rgb),.1),rgba(var(--color-rgb),.1));border-radius:.25rem;width:calc(var(--column-width) * var(--days));margin-left:calc(var(--column-width) * var(--start));white-space:nowrap;font-size:.875rem;display:flex;align-items:center;padding:0 8px;cursor:pointer;box-sizing:border-box}.ft-tasks__item:hover:not(.tasks__item--milestone){background-image:linear-gradient(rgba(var(--color-rgb),.2),rgba(var(--color-rgb),.2))}.ft-tasks__item:focus:not(.tasks__item--milestone),.ft-tasks__item:active:not(.tasks__item--milestone){background-image:linear-gradient(rgba(var(--color-rgb),.3),rgba(var(--color-rgb),.3))}.ft-tasks__item--milestone{background-color:unset;background-image:unset}.ft-tasks__item--milestone:before{border-radius:6px;min-height:12px;min-width:12px;margin-right:.5rem;content:\"\";background-color:rgba(var(--color-rgb),1)}.ft-tasks__item--milestone:hover:before{transform:scale(1.2)}.ft-tasks__item--milestone:focus:before,.ft-tasks__item--milestone:active:before{transform:scale(.9)}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.DatePipe, name: "date" }] });
|
|
617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: TimelineComponent, decorators: [{
|
|
618
|
-
type: Component,
|
|
619
|
-
args: [{ selector: 'ft-timeline', template: "<div class=\"ft-weekends\" [style.--start]=\"dataParsed.weekendStart\">\n <div class=\"ft-weekends__item\" [style.--weekend-size]=\"weekend.length\" *ngFor=\"let weekend of dataParsed.weekends\">\n </div>\n</div>\n<div class=\"ft-current-date\" *ngIf=\"currentDate\"></div>\n<div class=\"ft-header\">\n <div class=\"ft-header__months\">\n <div [style.--days-in-month]=\"month.daysInMonth\" *ngFor=\"let month of dataParsed.months; let i = index\">{{\n month.date\n | date: 'MMMM, yyyy' }}</div>\n </div>\n <div class=\"ft-header__days\">\n <div *ngFor=\"let day of dataParsed.days; let i = index\">\n <div [ngClass]=\"{active: currentDate && currentDate === i}\">{{ day | date:'d' }}</div>\n </div>\n </div>\n</div>\n<div class=\"ft-tasks\">\n <button type=\"button\" class=\"ft-tasks__item\" [class.tasks__item--milestone]=\"task.type === 'milestone'\"\n [style.--start]=\"task.start\" [style.--days]=\"task.type === 'milestone' ? 1 : task.size\"\n style=\" --color-rgb: 130, 121, 210;\" *ngFor=\"let task of dataParsed.tasks;\">{{ task.label }}</button>\n</div>", styles: [":host{position:relative;display:flex;flex-direction:column;--background-color: #fff;--column-width: 30px;--current-date-color: #ff9800}.ft-header{background-color:var(--background-color);border-bottom:1px solid rgba(0,0,0,.1);font-size:.75rem;font-weight:100;padding-bottom:.25rem;position:sticky;top:0;z-index:4;width:-moz-fit-content;width:fit-content}.ft-header__months{display:flex}.ft-header__months>div{background-color:var(--background-color);box-sizing:border-box;font-weight:400;padding:.5rem;white-space:nowrap;width:calc(var(--column-width) * var(--days-in-month))}.ft-header__days{display:flex}.ft-header__days>div{display:flex;align-items:center;justify-content:center;min-width:var(--column-width);padding:.25rem;border-radius:100vh;box-sizing:border-box}.ft-header__days>div>.ft-active{display:flex;align-items:center;justify-content:center;width:100%;height:20px;background-color:var(--current-date-color);color:var(--background-color);border-radius:100vh;box-sizing:border-box}.ft-weekends{position:absolute;inset:0;display:flex;padding-left:calc(var(--column-width) * var(--start))}.ft-weekends__item{min-width:calc(var(--column-width) * var(--weekend-size, 2));background-image:url(https://factor.ec/timesheet/es/bg-weekend.aff6b9d13e42ca0e1023.svg);background-size:25px;z-index:1;top:0;bottom:0}.ft-weekends__item~.ft-weekends__item{margin-left:calc(var(--column-width) * 5)}.ft-current-date{position:absolute;width:var(--column-width);left:calc(var(--column-width) * var(--current-date));z-index:2;top:0;bottom:0;background-color:var(--current-date-color);opacity:.1}.ft-tasks{position:relative;z-index:3;display:flex;padding-top:.5rem;gap:.5rem;flex-direction:column}.ft-tasks__item{border:1px solid transparent;height:28px;background-color:var(--background-color);background-image:linear-gradient(rgba(var(--color-rgb),.1),rgba(var(--color-rgb),.1));border-radius:.25rem;width:calc(var(--column-width) * var(--days));margin-left:calc(var(--column-width) * var(--start));white-space:nowrap;font-size:.875rem;display:flex;align-items:center;padding:0 8px;cursor:pointer;box-sizing:border-box}.ft-tasks__item:hover:not(.tasks__item--milestone){background-image:linear-gradient(rgba(var(--color-rgb),.2),rgba(var(--color-rgb),.2))}.ft-tasks__item:focus:not(.tasks__item--milestone),.ft-tasks__item:active:not(.tasks__item--milestone){background-image:linear-gradient(rgba(var(--color-rgb),.3),rgba(var(--color-rgb),.3))}.ft-tasks__item--milestone{background-color:unset;background-image:unset}.ft-tasks__item--milestone:before{border-radius:6px;min-height:12px;min-width:12px;margin-right:.5rem;content:\"\";background-color:rgba(var(--color-rgb),1)}.ft-tasks__item--milestone:hover:before{transform:scale(1.2)}.ft-tasks__item--milestone:focus:before,.ft-tasks__item--milestone:active:before{transform:scale(.9)}\n"] }]
|
|
620
|
-
}], ctorParameters: function () { return []; }, propDecorators: { data: [{
|
|
621
|
-
type: Input
|
|
622
|
-
}], currentDate: [{
|
|
623
|
-
type: HostBinding,
|
|
624
|
-
args: ['style.--current-date']
|
|
625
|
-
}], class: [{
|
|
626
|
-
type: Input
|
|
627
|
-
}], hostClasses: [{
|
|
628
|
-
type: HostBinding,
|
|
629
|
-
args: ['class']
|
|
630
|
-
}] } });
|
|
631
|
-
|
|
632
|
-
class ExpressionBuilderComponent {
|
|
633
|
-
constructor() {
|
|
634
|
-
this.properties = [
|
|
635
|
-
{ label: 'Nombre', type: 'string', field: 'name' },
|
|
636
|
-
{ label: 'Monto', type: 'number', field: 'amount' },
|
|
637
|
-
{ label: 'Tarjeta adicional', type: 'boolean', field: 'additional' }
|
|
638
|
-
];
|
|
639
|
-
this.groupOperators = [
|
|
640
|
-
{ label: 'Y', value: 'AND' },
|
|
641
|
-
{ label: 'O', value: 'OR' }
|
|
642
|
-
];
|
|
643
|
-
this.filters = {
|
|
644
|
-
id: 'root',
|
|
645
|
-
type: 'group',
|
|
646
|
-
operator: 'AND',
|
|
647
|
-
children: [
|
|
648
|
-
{
|
|
649
|
-
type: 'filter',
|
|
650
|
-
property: '',
|
|
651
|
-
operator: '>',
|
|
652
|
-
value: ''
|
|
653
|
-
},
|
|
654
|
-
{
|
|
655
|
-
type: 'filter',
|
|
656
|
-
property: '',
|
|
657
|
-
operator: true,
|
|
658
|
-
value: ''
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
type: 'filter',
|
|
662
|
-
property: '',
|
|
663
|
-
operator: '==',
|
|
664
|
-
value: ''
|
|
665
|
-
},
|
|
666
|
-
{
|
|
667
|
-
type: 'group',
|
|
668
|
-
operator: 'OR',
|
|
669
|
-
children: [
|
|
670
|
-
{
|
|
671
|
-
type: 'filter',
|
|
672
|
-
property: '',
|
|
673
|
-
operator: '==',
|
|
674
|
-
value: ''
|
|
675
|
-
}
|
|
676
|
-
]
|
|
677
|
-
}
|
|
678
|
-
]
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
add(type, filter) {
|
|
682
|
-
if (!filter.children) {
|
|
683
|
-
filter.children = [];
|
|
684
|
-
}
|
|
685
|
-
filter.children.push({ type });
|
|
686
|
-
filter.children = filter.children.sort((a, b) => a.type !== 'group' ? -1 : 0);
|
|
687
|
-
}
|
|
688
|
-
remove(filter, parent) {
|
|
689
|
-
const index = parent.indexOf(filter);
|
|
690
|
-
parent.splice(index, 1);
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
ExpressionBuilderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ExpressionBuilderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
694
|
-
ExpressionBuilderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ExpressionBuilderComponent, selector: "ft-expression-builder", ngImport: i0, template: "<ng-container [ngTemplateOutlet]=\"filterGroupTemplate\" [ngTemplateOutletContext]=\"{filter:filters, parent:null}\">\n</ng-container>\n<ng-template #filterGroupTemplate let-filter=\"filter\" let-parent=\"parent\">\n <div class=\"ft-filter\">\n <div class=\"ft-filter__tools\">\n <button type=\"button\" class=\"filter__button filter__button--icon filter__button--toggle\"\n (click)=\"filter.collapsed = !filter.collapsed\" *ngIf=\"filter.children && filter.children.length > 0\">\n <ft-icon name=\"angle-right\" [ngClass]=\"{'ft-icon--open': !filter.collapsed}\"></ft-icon>\n </button>\n <div class=\"ft-filter__button-group\">\n <button type=\"button\" class=\"filter__button\"\n [ngClass]=\"{'ft-filter__button--active': filter.operator === operator.value}\"\n *ngFor=\"let operator of groupOperators\" (click)=\"filter.operator = operator.value\">{{ operator.label\n }}</button>\n </div>\n <button type=\"button\" class=\"ft-filter__button\" (click)=\"add('filter', filter)\" *ngIf=\"filter.operator\">Agregar\n filtro</button>\n <button type=\"button\" class=\"ft-filter__button\" (click)=\"add('group', filter)\" *ngIf=\"filter.operator\">Agregar\n grupo</button>\n <button type=\"button\" class=\"ft-filter__button filter__button--icon filter__button--remove\"\n (click)=\"remove(filter, parent)\" *ngIf=\"parent\">\n <ft-icon name=\"close\"></ft-icon>\n </button>\n </div>\n <div class=\"ft-filter__children\" *ngIf=\"filter.children && filter.children.length > 0 && !filter.collapsed\">\n <ng-container *ngFor=\"let child of filter.children\">\n <ng-container [ngTemplateOutlet]=\"child.type === 'group' ? filterGroupTemplate : filterTemplate\"\n [ngTemplateOutletContext]=\"{filter:child, parent:filter.children}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-template>\n<ng-template #filterTemplate let-filter=\"filter\" let-parent=\"parent\">\n <div class=\"ft-filter\">\n <div class=\"ft-filter__tools\">\n <select class=\"filter__input\">\n <option *ngFor=\"let property of properties\" value=\"property.value\">{{ property.label }}</option>\n </select>\n <select class=\"ft-filter__input\">\n <option>Mayor que</option>\n <option>Mayor igual que</option>\n <option>Igual que</option>\n <option>Menor que</option>\n <option>Menor igual que</option>\n </select>\n <input type=\"text\" class=\"ft-filter__input\" />\n <button type=\"button\" class=\"filter__button filter__button--icon\" (click)=\"remove(filter, parent)\">\n <ft-icon name=\"close\"></ft-icon>\n </button>\n </div>\n </div>\n</ng-template>", styles: [":host{display:block;padding:2rem}.ft-filter{--focus-color: #00bcd4;--focus-color-rgb: 0, 188, 212;display:inline-flex;flex-direction:column;align-items:flex-start;gap:.5rem}.ft-filter__tools{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem;background-color:#0000000d;border:1px solid rgba(0,0,0,.1);border-radius:.5rem;overflow:hidden}.ft-filter__children{padding-left:1rem;position:relative;display:inline-flex;flex-direction:column;align-items:flex-start;gap:.5rem}.ft-filter__button{border:1px solid rgba(0,0,0,.2);background-color:transparent;border-radius:.25rem;padding:.25rem .5rem;background-color:#ffffff4d}.ft-filter__button--icon{border-color:transparent;background-color:transparent;padding:.25rem}.ft-filter__button--active{background-color:var(--focus-color);color:#fff}.ft-filter__button:not(.ft-filter__button--active):hover{border-color:var(--focus-color);background-color:rgba(var(--focus-color-rgb),.1)}.ft-filter__button:not(.ft-filter__button--active):active{background-color:rgba(var(--focus-color-rgb),.3)}.ft-filter__button:focus{outline:none;border-color:var(--focus-color)}.ft-filter__button .ft-icon{display:block;transition:transform .2s}.ft-filter__button .ft-icon--open{transform:rotate(90deg)}.ft-filter__button-group .ft-filter__button{border-radius:0}.ft-filter__button-group .ft-filter__button:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-right:0}.ft-filter__button-group .ft-filter__button:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.ft-filter__input{background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:.25rem;padding:.25rem;transition:box-shadow .2s}.ft-filter__input:hover{border-color:var(--focus-color)}.ft-filter__input:focus{outline:none;border-color:var(--focus-color);box-shadow:0 0 0 2px rgba(var(--focus-color-rgb),.2)}.ft-filter select.ft-filter__input{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right .5rem center;background-size:.625rem;padding-right:1.5rem;-webkit-appearance:none;appearance:none}@keyframes slide-right{0%{margin-left:calc(-40px + .5rem)}to{margin-left:0}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["collection", "mode", "name", "path", "src", "class"] }] });
|
|
695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ExpressionBuilderComponent, decorators: [{
|
|
696
|
-
type: Component,
|
|
697
|
-
args: [{ selector: 'ft-expression-builder', template: "<ng-container [ngTemplateOutlet]=\"filterGroupTemplate\" [ngTemplateOutletContext]=\"{filter:filters, parent:null}\">\n</ng-container>\n<ng-template #filterGroupTemplate let-filter=\"filter\" let-parent=\"parent\">\n <div class=\"ft-filter\">\n <div class=\"ft-filter__tools\">\n <button type=\"button\" class=\"filter__button filter__button--icon filter__button--toggle\"\n (click)=\"filter.collapsed = !filter.collapsed\" *ngIf=\"filter.children && filter.children.length > 0\">\n <ft-icon name=\"angle-right\" [ngClass]=\"{'ft-icon--open': !filter.collapsed}\"></ft-icon>\n </button>\n <div class=\"ft-filter__button-group\">\n <button type=\"button\" class=\"filter__button\"\n [ngClass]=\"{'ft-filter__button--active': filter.operator === operator.value}\"\n *ngFor=\"let operator of groupOperators\" (click)=\"filter.operator = operator.value\">{{ operator.label\n }}</button>\n </div>\n <button type=\"button\" class=\"ft-filter__button\" (click)=\"add('filter', filter)\" *ngIf=\"filter.operator\">Agregar\n filtro</button>\n <button type=\"button\" class=\"ft-filter__button\" (click)=\"add('group', filter)\" *ngIf=\"filter.operator\">Agregar\n grupo</button>\n <button type=\"button\" class=\"ft-filter__button filter__button--icon filter__button--remove\"\n (click)=\"remove(filter, parent)\" *ngIf=\"parent\">\n <ft-icon name=\"close\"></ft-icon>\n </button>\n </div>\n <div class=\"ft-filter__children\" *ngIf=\"filter.children && filter.children.length > 0 && !filter.collapsed\">\n <ng-container *ngFor=\"let child of filter.children\">\n <ng-container [ngTemplateOutlet]=\"child.type === 'group' ? filterGroupTemplate : filterTemplate\"\n [ngTemplateOutletContext]=\"{filter:child, parent:filter.children}\">\n </ng-container>\n </ng-container>\n </div>\n </div>\n</ng-template>\n<ng-template #filterTemplate let-filter=\"filter\" let-parent=\"parent\">\n <div class=\"ft-filter\">\n <div class=\"ft-filter__tools\">\n <select class=\"filter__input\">\n <option *ngFor=\"let property of properties\" value=\"property.value\">{{ property.label }}</option>\n </select>\n <select class=\"ft-filter__input\">\n <option>Mayor que</option>\n <option>Mayor igual que</option>\n <option>Igual que</option>\n <option>Menor que</option>\n <option>Menor igual que</option>\n </select>\n <input type=\"text\" class=\"ft-filter__input\" />\n <button type=\"button\" class=\"filter__button filter__button--icon\" (click)=\"remove(filter, parent)\">\n <ft-icon name=\"close\"></ft-icon>\n </button>\n </div>\n </div>\n</ng-template>", styles: [":host{display:block;padding:2rem}.ft-filter{--focus-color: #00bcd4;--focus-color-rgb: 0, 188, 212;display:inline-flex;flex-direction:column;align-items:flex-start;gap:.5rem}.ft-filter__tools{display:inline-flex;align-items:center;gap:.5rem;padding:.5rem;background-color:#0000000d;border:1px solid rgba(0,0,0,.1);border-radius:.5rem;overflow:hidden}.ft-filter__children{padding-left:1rem;position:relative;display:inline-flex;flex-direction:column;align-items:flex-start;gap:.5rem}.ft-filter__button{border:1px solid rgba(0,0,0,.2);background-color:transparent;border-radius:.25rem;padding:.25rem .5rem;background-color:#ffffff4d}.ft-filter__button--icon{border-color:transparent;background-color:transparent;padding:.25rem}.ft-filter__button--active{background-color:var(--focus-color);color:#fff}.ft-filter__button:not(.ft-filter__button--active):hover{border-color:var(--focus-color);background-color:rgba(var(--focus-color-rgb),.1)}.ft-filter__button:not(.ft-filter__button--active):active{background-color:rgba(var(--focus-color-rgb),.3)}.ft-filter__button:focus{outline:none;border-color:var(--focus-color)}.ft-filter__button .ft-icon{display:block;transition:transform .2s}.ft-filter__button .ft-icon--open{transform:rotate(90deg)}.ft-filter__button-group .ft-filter__button{border-radius:0}.ft-filter__button-group .ft-filter__button:first-child{border-top-left-radius:.25rem;border-bottom-left-radius:.25rem;border-right:0}.ft-filter__button-group .ft-filter__button:last-child{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.ft-filter__input{background-color:#fff;border:1px solid rgba(0,0,0,.2);border-radius:.25rem;padding:.25rem;transition:box-shadow .2s}.ft-filter__input:hover{border-color:var(--focus-color)}.ft-filter__input:focus{outline:none;border-color:var(--focus-color);box-shadow:0 0 0 2px rgba(var(--focus-color-rgb),.2)}.ft-filter select.ft-filter__input{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e\");background-repeat:no-repeat;background-position:right .5rem center;background-size:.625rem;padding-right:1.5rem;-webkit-appearance:none;appearance:none}@keyframes slide-right{0%{margin-left:calc(-40px + .5rem)}to{margin-left:0}}\n"] }]
|
|
698
|
-
}], ctorParameters: function () { return []; } });
|
|
699
|
-
|
|
700
|
-
class IoModule {
|
|
701
|
-
}
|
|
702
|
-
IoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: IoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
703
|
-
IoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: IoModule, declarations: [AvatarComponent,
|
|
704
|
-
IconComponent,
|
|
705
|
-
ImageComponent,
|
|
706
|
-
MessageComponent,
|
|
707
|
-
ProgressComponent,
|
|
708
|
-
RatingComponent,
|
|
709
|
-
ObserveIntersectingDirective,
|
|
710
|
-
TimelineComponent,
|
|
711
|
-
MessageContentComponent,
|
|
712
|
-
ExpressionBuilderComponent], imports: [CommonModule,
|
|
713
|
-
MatButtonModule,
|
|
714
|
-
MatDialogModule,
|
|
715
|
-
MatSnackBarModule], exports: [AvatarComponent,
|
|
716
|
-
IconComponent,
|
|
717
|
-
ImageComponent,
|
|
718
|
-
MessageComponent,
|
|
719
|
-
ProgressComponent,
|
|
720
|
-
RatingComponent,
|
|
721
|
-
ObserveIntersectingDirective,
|
|
722
|
-
TimelineComponent,
|
|
723
|
-
MessageContentComponent,
|
|
724
|
-
ExpressionBuilderComponent] });
|
|
725
|
-
IoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: IoModule, imports: [CommonModule,
|
|
726
|
-
MatButtonModule,
|
|
727
|
-
MatDialogModule,
|
|
728
|
-
MatSnackBarModule] });
|
|
729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: IoModule, decorators: [{
|
|
730
|
-
type: NgModule,
|
|
731
|
-
args: [{
|
|
732
|
-
declarations: [
|
|
733
|
-
AvatarComponent,
|
|
734
|
-
IconComponent,
|
|
735
|
-
ImageComponent,
|
|
736
|
-
MessageComponent,
|
|
737
|
-
ProgressComponent,
|
|
738
|
-
RatingComponent,
|
|
739
|
-
ObserveIntersectingDirective,
|
|
740
|
-
TimelineComponent,
|
|
741
|
-
MessageContentComponent,
|
|
742
|
-
ExpressionBuilderComponent
|
|
743
|
-
],
|
|
744
|
-
imports: [
|
|
745
|
-
CommonModule,
|
|
746
|
-
MatButtonModule,
|
|
747
|
-
MatDialogModule,
|
|
748
|
-
MatSnackBarModule
|
|
749
|
-
],
|
|
750
|
-
exports: [
|
|
751
|
-
AvatarComponent,
|
|
752
|
-
IconComponent,
|
|
753
|
-
ImageComponent,
|
|
754
|
-
MessageComponent,
|
|
755
|
-
ProgressComponent,
|
|
756
|
-
RatingComponent,
|
|
757
|
-
ObserveIntersectingDirective,
|
|
758
|
-
TimelineComponent,
|
|
759
|
-
MessageContentComponent,
|
|
760
|
-
ExpressionBuilderComponent
|
|
761
|
-
]
|
|
762
|
-
}]
|
|
763
|
-
}] });
|
|
764
|
-
|
|
765
|
-
class CollapsibleComponent {
|
|
766
|
-
constructor() {
|
|
767
|
-
this.class = '';
|
|
768
|
-
this.expanded = true;
|
|
769
|
-
this.header = '';
|
|
770
|
-
}
|
|
771
|
-
get hostClasses() {
|
|
772
|
-
return [
|
|
773
|
-
'ft-collapsible',
|
|
774
|
-
this.expanded ? 'ft-collapsible--show' : '',
|
|
775
|
-
this.class
|
|
776
|
-
].join(' ');
|
|
777
|
-
}
|
|
778
|
-
;
|
|
779
|
-
toggleCollapsible() {
|
|
780
|
-
this.expanded = !this.expanded;
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
CollapsibleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CollapsibleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
784
|
-
CollapsibleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: CollapsibleComponent, selector: "ft-collapsible", inputs: { class: "class", expanded: "expanded", header: "header" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<button type=\"button\" class=\"ft-button ft-collapsible__header\" (click)=\"toggleCollapsible()\">\n <div class=\"ft-item\">\n <div class=\"ft-item__label\">{{ header }}</div>\n <ft-icon class=\"ft-item__toggle\" name=\"angle-down\"></ft-icon>\n </div>\n</button>\n<div class=\"ft-collapsible__content\">\n <ng-content></ng-content>\n</div>", dependencies: [{ kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["collection", "mode", "name", "path", "src", "class"] }] });
|
|
785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CollapsibleComponent, decorators: [{
|
|
786
|
-
type: Component,
|
|
787
|
-
args: [{ selector: 'ft-collapsible', template: "<button type=\"button\" class=\"ft-button ft-collapsible__header\" (click)=\"toggleCollapsible()\">\n <div class=\"ft-item\">\n <div class=\"ft-item__label\">{{ header }}</div>\n <ft-icon class=\"ft-item__toggle\" name=\"angle-down\"></ft-icon>\n </div>\n</button>\n<div class=\"ft-collapsible__content\">\n <ng-content></ng-content>\n</div>" }]
|
|
788
|
-
}], propDecorators: { class: [{
|
|
789
|
-
type: Input
|
|
790
|
-
}], hostClasses: [{
|
|
791
|
-
type: HostBinding,
|
|
792
|
-
args: ['class']
|
|
793
|
-
}], expanded: [{
|
|
794
|
-
type: Input
|
|
795
|
-
}], header: [{
|
|
796
|
-
type: Input
|
|
797
|
-
}] } });
|
|
798
|
-
|
|
799
|
-
class LayoutModule {
|
|
800
|
-
}
|
|
801
|
-
LayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
802
|
-
LayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: LayoutModule, declarations: [CollapsibleComponent], imports: [CommonModule,
|
|
803
|
-
IoModule], exports: [CollapsibleComponent] });
|
|
804
|
-
LayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: LayoutModule, imports: [CommonModule,
|
|
805
|
-
IoModule] });
|
|
806
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: LayoutModule, decorators: [{
|
|
807
|
-
type: NgModule,
|
|
808
|
-
args: [{
|
|
809
|
-
declarations: [
|
|
810
|
-
CollapsibleComponent
|
|
811
|
-
],
|
|
812
|
-
exports: [
|
|
813
|
-
CollapsibleComponent
|
|
814
|
-
],
|
|
815
|
-
imports: [
|
|
816
|
-
CommonModule,
|
|
817
|
-
IoModule
|
|
818
|
-
]
|
|
819
|
-
}]
|
|
820
|
-
}] });
|
|
821
|
-
|
|
822
|
-
class ListComponent {
|
|
823
|
-
constructor() {
|
|
824
|
-
this.actionSelected = new EventEmitter();
|
|
825
|
-
this.iconNameField = 'iconName';
|
|
826
|
-
this.labelField = 'label';
|
|
827
|
-
this.selectable = null;
|
|
828
|
-
this.selection = [];
|
|
829
|
-
this.class = '';
|
|
830
|
-
this.actionSelected.subscribe((action) => {
|
|
831
|
-
switch (this.selectable) {
|
|
832
|
-
case 'single':
|
|
833
|
-
this.selection = [action];
|
|
834
|
-
break;
|
|
835
|
-
case 'multiple':
|
|
836
|
-
this.selection.push(action);
|
|
837
|
-
break;
|
|
838
|
-
}
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
get hostClasses() {
|
|
842
|
-
return [
|
|
843
|
-
'ft-list',
|
|
844
|
-
this.class
|
|
845
|
-
].join(' ');
|
|
846
|
-
}
|
|
847
|
-
;
|
|
848
|
-
updateAction(action) {
|
|
849
|
-
action.metadata = action.metadata || {};
|
|
850
|
-
if (!action.id) {
|
|
851
|
-
action.id = Math.floor(Math.random() * 1000000).toString();
|
|
852
|
-
}
|
|
853
|
-
if (!action.url) {
|
|
854
|
-
action.metadata.componentType = 'button';
|
|
855
|
-
}
|
|
856
|
-
else {
|
|
857
|
-
action.metadata.componentType = 'link';
|
|
858
|
-
const urlParts = action.url.split('?');
|
|
859
|
-
if (urlParts.length > 1) {
|
|
860
|
-
const queryString = urlParts.at(-1);
|
|
861
|
-
const searchParams = new URLSearchParams(queryString);
|
|
862
|
-
action.url = urlParts[0];
|
|
863
|
-
action.metadata.queryParams = Object.fromEntries(searchParams.entries());
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
return action;
|
|
867
|
-
}
|
|
868
|
-
handleClick(action) {
|
|
869
|
-
this.actionSelected.emit(action);
|
|
870
|
-
if (action.url && action.url.match(/^(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/)) {
|
|
871
|
-
window.location.href = action.url;
|
|
872
|
-
}
|
|
873
|
-
else if (typeof action.click === 'function') {
|
|
874
|
-
action.click();
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
toggleCollapsible(action) {
|
|
878
|
-
var _a;
|
|
879
|
-
action.metadata = action.metadata || {};
|
|
880
|
-
action.metadata.show = !((_a = action.metadata) === null || _a === void 0 ? void 0 : _a.show);
|
|
881
|
-
this.actionSelected.emit(action);
|
|
882
|
-
}
|
|
883
|
-
trackById(index, action) {
|
|
884
|
-
return action.id || index;
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
888
|
-
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ListComponent, selector: "ft-list", inputs: { iconCollection: "iconCollection", iconNameField: "iconNameField", iconPath: "iconPath", labelField: "labelField", items: "items", selectable: "selectable", selection: "selection", itemTemplate: "itemTemplate", class: "class" }, outputs: { actionSelected: "actionSelected" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<ng-container *ngTemplateOutlet=\"switchTemplate; context: { children: items }\"></ng-container>\n<ng-template #switchTemplate let-children=\"children\" let-level=\"level\">\n <ng-container *ngFor=\"let action of children; trackBy: trackById\" [ngSwitch]=\"action.type\">\n <ng-container *ngSwitchCase=\"'collapsible'\">\n <ng-container *ngTemplateOutlet=\"collapsibleTemplate; context: { action: action }\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'header'\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { action: action }\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"actionTemplate; context: { action: updateAction(action) }\"></ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n<ng-template #actionTemplate let-action=\"action\">\n <ng-container [ngSwitch]=\"action.metadata.componentType\">\n <button *ngSwitchCase=\"'button'\" type=\"button\" class=\"ft-button ft-list__item\"\n [ngClass]=\"[action.class || '', selectable && selection.indexOf(action) !== -1 ? 'ft-list__item--selected' : '']\"\n (click)=\"handleClick(action)\" [disabled]=\"action.disabled\">\n <ng-container *ngTemplateOutlet=\"itemTemplate || textTemplate; context: { action: action }\"></ng-container>\n </button>\n <a *ngSwitchCase=\"'link'\" [routerLink]=\"action.url\" [queryParams]=\"action.metadata?.queryParams\"\n routerLinkActive=\"ft-list__item--active\" class=\"ft-button ft-list__item\"\n [ngClass]=\"[action.class || '', selectable && selection.indexOf(action) !== -1 ? 'ft-list__item--selected' : '']\"\n (click)=\"handleClick(action)\">\n <ng-container *ngTemplateOutlet=\"itemTemplate || textTemplate; context: { action: action }\"></ng-container>\n </a>\n </ng-container>\n</ng-template>\n<ng-template #collapsibleTemplate let-action=\"action\">\n <ft-collapsible [header]=\"action[labelField]\" [expanded]=\"action.metadata?.show\">\n <div class=\"ft-list\">\n <ng-container *ngTemplateOutlet=\"switchTemplate; context: { children: action.children }\"></ng-container>\n </div>\n </ft-collapsible>\n</ng-template>\n<ng-template #headerTemplate let-action=\"action\">\n <div class=\"ft-list__header\" [ngClass]=\"action.class\">\n {{ action[labelField] }}\n </div>\n</ng-template>\n<ng-template #textTemplate let-action=\"action\">\n <div class=\"ft-item\">\n <ft-icon class=\"ft-item__icon\" *ngIf=\"action[iconNameField] || (selectable && selection.indexOf(action) !== -1)\"\n [name]=\"action[iconNameField]\" [collection]=\"iconCollection\" [path]=\"iconPath\"></ft-icon>\n <div class=\"ft-item__label\">{{ action[labelField] }}</div>\n </div>\n</ng-template>", dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["collection", "mode", "name", "path", "src", "class"] }, { kind: "component", type: CollapsibleComponent, selector: "ft-collapsible", inputs: ["class", "expanded", "header"] }, { kind: "directive", type: i4.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i4.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
|
|
889
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ListComponent, decorators: [{
|
|
890
|
-
type: Component,
|
|
891
|
-
args: [{ selector: 'ft-list', template: "<ng-container *ngTemplateOutlet=\"switchTemplate; context: { children: items }\"></ng-container>\n<ng-template #switchTemplate let-children=\"children\" let-level=\"level\">\n <ng-container *ngFor=\"let action of children; trackBy: trackById\" [ngSwitch]=\"action.type\">\n <ng-container *ngSwitchCase=\"'collapsible'\">\n <ng-container *ngTemplateOutlet=\"collapsibleTemplate; context: { action: action }\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'header'\">\n <ng-container *ngTemplateOutlet=\"headerTemplate; context: { action: action }\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"actionTemplate; context: { action: updateAction(action) }\"></ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n<ng-template #actionTemplate let-action=\"action\">\n <ng-container [ngSwitch]=\"action.metadata.componentType\">\n <button *ngSwitchCase=\"'button'\" type=\"button\" class=\"ft-button ft-list__item\"\n [ngClass]=\"[action.class || '', selectable && selection.indexOf(action) !== -1 ? 'ft-list__item--selected' : '']\"\n (click)=\"handleClick(action)\" [disabled]=\"action.disabled\">\n <ng-container *ngTemplateOutlet=\"itemTemplate || textTemplate; context: { action: action }\"></ng-container>\n </button>\n <a *ngSwitchCase=\"'link'\" [routerLink]=\"action.url\" [queryParams]=\"action.metadata?.queryParams\"\n routerLinkActive=\"ft-list__item--active\" class=\"ft-button ft-list__item\"\n [ngClass]=\"[action.class || '', selectable && selection.indexOf(action) !== -1 ? 'ft-list__item--selected' : '']\"\n (click)=\"handleClick(action)\">\n <ng-container *ngTemplateOutlet=\"itemTemplate || textTemplate; context: { action: action }\"></ng-container>\n </a>\n </ng-container>\n</ng-template>\n<ng-template #collapsibleTemplate let-action=\"action\">\n <ft-collapsible [header]=\"action[labelField]\" [expanded]=\"action.metadata?.show\">\n <div class=\"ft-list\">\n <ng-container *ngTemplateOutlet=\"switchTemplate; context: { children: action.children }\"></ng-container>\n </div>\n </ft-collapsible>\n</ng-template>\n<ng-template #headerTemplate let-action=\"action\">\n <div class=\"ft-list__header\" [ngClass]=\"action.class\">\n {{ action[labelField] }}\n </div>\n</ng-template>\n<ng-template #textTemplate let-action=\"action\">\n <div class=\"ft-item\">\n <ft-icon class=\"ft-item__icon\" *ngIf=\"action[iconNameField] || (selectable && selection.indexOf(action) !== -1)\"\n [name]=\"action[iconNameField]\" [collection]=\"iconCollection\" [path]=\"iconPath\"></ft-icon>\n <div class=\"ft-item__label\">{{ action[labelField] }}</div>\n </div>\n</ng-template>" }]
|
|
892
|
-
}], ctorParameters: function () { return []; }, propDecorators: { actionSelected: [{
|
|
893
|
-
type: Output
|
|
894
|
-
}], iconCollection: [{
|
|
895
|
-
type: Input
|
|
896
|
-
}], iconNameField: [{
|
|
897
|
-
type: Input
|
|
898
|
-
}], iconPath: [{
|
|
899
|
-
type: Input
|
|
900
|
-
}], labelField: [{
|
|
901
|
-
type: Input
|
|
902
|
-
}], items: [{
|
|
903
|
-
type: Input
|
|
904
|
-
}], selectable: [{
|
|
905
|
-
type: Input
|
|
906
|
-
}], selection: [{
|
|
907
|
-
type: Input
|
|
908
|
-
}], itemTemplate: [{
|
|
909
|
-
type: Input
|
|
910
|
-
}], class: [{
|
|
911
|
-
type: Input
|
|
912
|
-
}], hostClasses: [{
|
|
913
|
-
type: HostBinding,
|
|
914
|
-
args: ['class']
|
|
915
|
-
}] } });
|
|
916
|
-
|
|
917
|
-
class ToolbarComponent {
|
|
918
|
-
constructor() {
|
|
919
|
-
this.rootMargin = { rootMargin: '0px 0px 0px 0px' };
|
|
920
|
-
this.class = '';
|
|
921
|
-
const breakpointSm = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--breakpoint-sm'));
|
|
922
|
-
if (window.innerWidth < breakpointSm) {
|
|
923
|
-
this.rootMargin = { rootMargin: '0px 0px 0px 0px' };
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
get hostClasses() {
|
|
927
|
-
return [
|
|
928
|
-
'ft-toolbar',
|
|
929
|
-
this.class,
|
|
930
|
-
this.overlapped ? 'overlapped' : ''
|
|
931
|
-
].join(' ');
|
|
932
|
-
}
|
|
933
|
-
;
|
|
934
|
-
ngOnInit() {
|
|
935
|
-
if (this.titleOptions && !this.currentTitleOption) {
|
|
936
|
-
this.currentTitleOption = this.titleOptions[0];
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
setOverlapped(overlapped) {
|
|
940
|
-
this.overlapped = !overlapped;
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
ToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
944
|
-
ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ToolbarComponent, selector: "ft-toolbar", inputs: { actionOptions: "actionOptions", currentTitleOption: "currentTitleOption", title: "title", titleOptions: "titleOptions", class: "class" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<div (ftObserveIntersecting)=\"setOverlapped($event)\" [ftObserveIntersectingOptions]=\"rootMargin\"></div>\n<div class=\"content\">\n <div class=\"container p-2 p-sm-3 pb-md-3 pt-md-5 px-md-3 px-lg-5\">\n <div class=\"d-flex align-items-center\">\n <h5 class=\"title ml-2 ml-md-0 mb-0 mr-auto\" *ngIf=\"!titleOptions; else titleForm\">{{ title }}</h5>\n <ng-container *ngFor=\"let option of actionOptions\">\n <button type=\"button\" class=\"p-2\" mat-button [ngClass]=\"option.class || ''\" *ngIf=\"!option.children\"\n (click)=\"option.click ? option.click($event) : null\" title=\"{{ option.label }}\">\n <div class=\"d-flex align-items-center\">\n <ft-icon *ngIf=\"option.iconName\" [name]=\"option.iconName\" size=\"2\"></ft-icon>\n <div *ngIf=\"option.label\" class=\"label d-none d-sm-inline-block ml-1\">{{ option.label }}</div>\n </div>\n </button>\n <ng-container *ngIf=\"option.children\">\n <button type=\"button\" class=\"p-2\" mat-button [matMenuTriggerFor]=\"menu\"\n [ngClass]=\"option.class || ''\" title=\"{{ option.label }}\">\n <div class=\"d-flex align-items-center\">\n <ft-icon *ngIf=\"option.iconName\" [name]=\"option.iconName\" size=\"2\"></ft-icon>\n <div *ngIf=\"option.label\" class=\"label d-none d-sm-inline-block ml-1\">{{ option.label }}\n </div>\n </div>\n </button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let childOption of option.children\"\n (click)=\"childOption.click ? childOption.click($event): null\">{{ childOption.label\n }}</button>\n </mat-menu>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n<ng-template #titleForm>\n <button type=\"button\" class=\"title p-2 pl-3 mr-auto\" mat-button [matMenuTriggerFor]=\"titleMenu\">\n <div class=\"d-flex align-items-center\">\n <div class=\"label mr-1\">{{ currentTitleOption.label }}</div>\n <ft-icon name=\"angle-down\" size=\"1\"></ft-icon>\n </div>\n </button>\n <mat-menu #titleMenu=\"matMenu\">\n <button class=\"mr-4\" mat-menu-item [disabled]=\"option == currentTitleOption\" *ngFor=\"let option of titleOptions\"\n (click)=\"currentTitleOption = option; option.click ? option.click($event) : null\">\n <div class=\"d-flex align-items-center\">\n <ft-icon [name]=\"option == currentTitleOption? 'check' : ''\" class=\"mr-1\"></ft-icon>\n <div>{{ option.label }}</div>\n </div>\n </button>\n </mat-menu>\n</ng-template>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["collection", "mode", "name", "path", "src", "class"] }, { kind: "directive", type: ObserveIntersectingDirective, selector: "[ftObserveIntersecting]", inputs: ["ftObserveIntersectingOptions"], outputs: ["ftObserveIntersecting"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i5.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i5.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
|
|
945
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
946
|
-
type: Component,
|
|
947
|
-
args: [{ selector: 'ft-toolbar', template: "<div (ftObserveIntersecting)=\"setOverlapped($event)\" [ftObserveIntersectingOptions]=\"rootMargin\"></div>\n<div class=\"content\">\n <div class=\"container p-2 p-sm-3 pb-md-3 pt-md-5 px-md-3 px-lg-5\">\n <div class=\"d-flex align-items-center\">\n <h5 class=\"title ml-2 ml-md-0 mb-0 mr-auto\" *ngIf=\"!titleOptions; else titleForm\">{{ title }}</h5>\n <ng-container *ngFor=\"let option of actionOptions\">\n <button type=\"button\" class=\"p-2\" mat-button [ngClass]=\"option.class || ''\" *ngIf=\"!option.children\"\n (click)=\"option.click ? option.click($event) : null\" title=\"{{ option.label }}\">\n <div class=\"d-flex align-items-center\">\n <ft-icon *ngIf=\"option.iconName\" [name]=\"option.iconName\" size=\"2\"></ft-icon>\n <div *ngIf=\"option.label\" class=\"label d-none d-sm-inline-block ml-1\">{{ option.label }}</div>\n </div>\n </button>\n <ng-container *ngIf=\"option.children\">\n <button type=\"button\" class=\"p-2\" mat-button [matMenuTriggerFor]=\"menu\"\n [ngClass]=\"option.class || ''\" title=\"{{ option.label }}\">\n <div class=\"d-flex align-items-center\">\n <ft-icon *ngIf=\"option.iconName\" [name]=\"option.iconName\" size=\"2\"></ft-icon>\n <div *ngIf=\"option.label\" class=\"label d-none d-sm-inline-block ml-1\">{{ option.label }}\n </div>\n </div>\n </button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let childOption of option.children\"\n (click)=\"childOption.click ? childOption.click($event): null\">{{ childOption.label\n }}</button>\n </mat-menu>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n<ng-template #titleForm>\n <button type=\"button\" class=\"title p-2 pl-3 mr-auto\" mat-button [matMenuTriggerFor]=\"titleMenu\">\n <div class=\"d-flex align-items-center\">\n <div class=\"label mr-1\">{{ currentTitleOption.label }}</div>\n <ft-icon name=\"angle-down\" size=\"1\"></ft-icon>\n </div>\n </button>\n <mat-menu #titleMenu=\"matMenu\">\n <button class=\"mr-4\" mat-menu-item [disabled]=\"option == currentTitleOption\" *ngFor=\"let option of titleOptions\"\n (click)=\"currentTitleOption = option; option.click ? option.click($event) : null\">\n <div class=\"d-flex align-items-center\">\n <ft-icon [name]=\"option == currentTitleOption? 'check' : ''\" class=\"mr-1\"></ft-icon>\n <div>{{ option.label }}</div>\n </div>\n </button>\n </mat-menu>\n</ng-template>" }]
|
|
948
|
-
}], ctorParameters: function () { return []; }, propDecorators: { actionOptions: [{
|
|
949
|
-
type: Input
|
|
950
|
-
}], currentTitleOption: [{
|
|
951
|
-
type: Input
|
|
952
|
-
}], title: [{
|
|
953
|
-
type: Input
|
|
954
|
-
}], titleOptions: [{
|
|
955
|
-
type: Input
|
|
956
|
-
}], class: [{
|
|
957
|
-
type: Input
|
|
958
|
-
}], hostClasses: [{
|
|
959
|
-
type: HostBinding,
|
|
960
|
-
args: ['class']
|
|
961
|
-
}] } });
|
|
962
|
-
|
|
963
|
-
class NavigationModule {
|
|
964
|
-
}
|
|
965
|
-
NavigationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
966
|
-
NavigationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: NavigationModule, declarations: [ListComponent,
|
|
967
|
-
ToolbarComponent], imports: [CommonModule,
|
|
968
|
-
IoModule,
|
|
969
|
-
LayoutModule,
|
|
970
|
-
RouterModule,
|
|
971
|
-
MatButtonModule,
|
|
972
|
-
MatMenuModule], exports: [ListComponent,
|
|
973
|
-
ToolbarComponent] });
|
|
974
|
-
NavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NavigationModule, imports: [CommonModule,
|
|
975
|
-
IoModule,
|
|
976
|
-
LayoutModule,
|
|
977
|
-
RouterModule,
|
|
978
|
-
MatButtonModule,
|
|
979
|
-
MatMenuModule] });
|
|
980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: NavigationModule, decorators: [{
|
|
981
|
-
type: NgModule,
|
|
982
|
-
args: [{
|
|
983
|
-
declarations: [
|
|
984
|
-
ListComponent,
|
|
985
|
-
ToolbarComponent
|
|
986
|
-
],
|
|
987
|
-
exports: [
|
|
988
|
-
ListComponent,
|
|
989
|
-
ToolbarComponent
|
|
990
|
-
],
|
|
991
|
-
imports: [
|
|
992
|
-
CommonModule,
|
|
993
|
-
IoModule,
|
|
994
|
-
LayoutModule,
|
|
995
|
-
RouterModule,
|
|
996
|
-
MatButtonModule,
|
|
997
|
-
MatMenuModule
|
|
998
|
-
]
|
|
999
|
-
}]
|
|
1000
|
-
}] });
|
|
1001
|
-
|
|
1002
|
-
class UiModule {
|
|
1003
|
-
static forRoot(configuration) {
|
|
1004
|
-
return {
|
|
1005
|
-
ngModule: UiModule,
|
|
1006
|
-
providers: [
|
|
1007
|
-
{ provide: 'FactorUiConfiguration', useValue: configuration }
|
|
1008
|
-
]
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
UiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: UiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1013
|
-
UiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: UiModule, imports: [CommonModule,
|
|
1014
|
-
IoModule,
|
|
1015
|
-
LayoutModule,
|
|
1016
|
-
NavigationModule], exports: [IoModule,
|
|
1017
|
-
LayoutModule,
|
|
1018
|
-
NavigationModule] });
|
|
1019
|
-
UiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: UiModule, imports: [CommonModule,
|
|
1020
|
-
IoModule,
|
|
1021
|
-
LayoutModule,
|
|
1022
|
-
NavigationModule, IoModule,
|
|
1023
|
-
LayoutModule,
|
|
1024
|
-
NavigationModule] });
|
|
1025
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: UiModule, decorators: [{
|
|
1026
|
-
type: NgModule,
|
|
1027
|
-
args: [{
|
|
1028
|
-
declarations: [],
|
|
1029
|
-
imports: [
|
|
1030
|
-
CommonModule,
|
|
1031
|
-
IoModule,
|
|
1032
|
-
LayoutModule,
|
|
1033
|
-
NavigationModule
|
|
1034
|
-
],
|
|
1035
|
-
exports: [
|
|
1036
|
-
IoModule,
|
|
1037
|
-
LayoutModule,
|
|
1038
|
-
NavigationModule
|
|
1039
|
-
]
|
|
1040
|
-
}]
|
|
1041
|
-
}] });
|
|
1042
|
-
|
|
1043
|
-
/*
|
|
1044
|
-
* Public API Surface of ui
|
|
1045
|
-
*/
|
|
1046
|
-
|
|
1047
|
-
/**
|
|
1048
|
-
* Generated bundle index. Do not edit.
|
|
1049
|
-
*/
|
|
1050
|
-
|
|
1051
|
-
export { AvatarComponent, CollapsibleComponent, ExpressionBuilderComponent, IconComponent, ImageComponent, IoModule, LayoutModule, ListComponent, MessageComponent, MessageContentComponent, MessageService, NavigationModule, ObserveIntersectingDirective, ProgressComponent, ProgressService, RatingComponent, TimelineComponent, ToolbarComponent, UiModule };
|
|
1052
|
-
//# sourceMappingURL=factor_ec-ui.mjs.map
|
|
1053
|
-
//# sourceMappingURL=factor_ec-ui.mjs.map
|