ngx-sfc-common 0.0.1 → 0.0.4
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 +196 -12
- package/_ngx-sfc-common.styles.scss +96 -0
- package/esm2020/lib/components/button/button.component.mjs +7 -6
- package/esm2020/lib/components/checkmark/checkmark.component.mjs +8 -6
- package/esm2020/lib/components/close/close.component.mjs +16 -0
- package/esm2020/lib/components/delimeter/delimeter.component.mjs +4 -4
- package/esm2020/lib/components/dots/dots.component.mjs +4 -4
- package/esm2020/lib/components/hamburger/hamburger.component.mjs +4 -4
- package/esm2020/lib/components/index.mjs +7 -1
- package/esm2020/lib/components/loader/bounce/bounce-loader.component.mjs +4 -4
- package/esm2020/lib/components/loader/circle/circle-loader.component.mjs +4 -4
- package/esm2020/lib/components/loader/loader-base.component.mjs +3 -3
- package/esm2020/lib/components/loader/service/loader.service.mjs +3 -3
- package/esm2020/lib/components/modal/directive/modal-open-on-click.directive.mjs +3 -3
- package/esm2020/lib/components/modal/footer/default/default-modal-footer.component.mjs +3 -3
- package/esm2020/lib/components/modal/header/default/default-modal-header.component.mjs +13 -7
- package/esm2020/lib/components/modal/header/default/default-modal-header.model.mjs +1 -1
- package/esm2020/lib/components/modal/modal.component.mjs +8 -21
- package/esm2020/lib/components/modal/service/modal.service.mjs +3 -3
- package/esm2020/lib/components/pagination/models/pagination-view.model.mjs +2 -0
- package/esm2020/lib/components/pagination/pagination.component.mjs +104 -0
- package/esm2020/lib/components/pagination/pagination.constants.mjs +6 -0
- package/esm2020/lib/components/pagination/service/pagination.event.mjs +2 -0
- package/esm2020/lib/components/pagination/service/pagination.service.mjs +47 -0
- package/esm2020/lib/components/sorting/service/sorting.event.mjs +2 -0
- package/esm2020/lib/components/sorting/service/sorting.service.mjs +21 -0
- package/esm2020/lib/components/sorting/sorting.component.mjs +71 -0
- package/esm2020/lib/components/sorting/sorting.constants.mjs +6 -0
- package/esm2020/lib/components/sorting/sorting.model.mjs +2 -0
- package/esm2020/lib/components/template-content/template-content.component.mjs +31 -0
- package/esm2020/lib/components/toggle-switcher/toggle-switcher.component.mjs +7 -6
- package/esm2020/lib/components/toggle-switcher/toggle-switcher.model.mjs +1 -1
- package/esm2020/lib/components/tooltip/tooltip.component.mjs +4 -4
- package/esm2020/lib/constants/common.constants.mjs +2 -1
- package/esm2020/lib/constants/ui.constants.mjs +6 -3
- package/esm2020/lib/directives/click-outside/click-outside.directive.mjs +3 -3
- package/esm2020/lib/directives/component-size/component-size.directive.mjs +3 -3
- package/esm2020/lib/directives/destroy-parent/destroy-parent.directive.mjs +27 -0
- package/esm2020/lib/directives/index.mjs +2 -1
- package/esm2020/lib/directives/mouse-down/mouse-down.directive.mjs +3 -3
- package/esm2020/lib/directives/show-hide-element/show-hide-element.directive.mjs +3 -3
- package/esm2020/lib/directives/template-reference/template-reference.directive.mjs +6 -4
- package/esm2020/lib/directives/throw-element-on-hover/throw-element-on-hover.directive.mjs +3 -3
- package/esm2020/lib/enums/direction.enum.mjs +9 -0
- package/esm2020/lib/enums/index.mjs +8 -2
- package/esm2020/lib/enums/media.enum.mjs +10 -0
- package/esm2020/lib/enums/position.enum.mjs +12 -0
- package/esm2020/lib/enums/size.enum.mjs +11 -0
- package/esm2020/lib/enums/sorting-direction.enum.mjs +9 -0
- package/esm2020/lib/enums/theme.enum.mjs +9 -0
- package/esm2020/lib/enums/ui.enum.mjs +27 -0
- package/esm2020/lib/ngx-sfc-common.module.mjs +54 -42
- package/esm2020/lib/services/document-ref.service.mjs +6 -5
- package/esm2020/lib/services/resize.service.mjs +3 -3
- package/esm2020/lib/services/window-ref.service.mjs +3 -3
- package/esm2020/lib/utils/collections.utils.mjs +2 -2
- package/esm2020/lib/utils/common.utils.mjs +10 -2
- package/esm2020/lib/utils/index.mjs +3 -3
- package/esm2020/lib/utils/string.utils.mjs +2 -2
- package/esm2020/lib/utils/ui.utils.mjs +44 -1
- package/fesm2015/ngx-sfc-common.mjs +587 -216
- package/fesm2015/ngx-sfc-common.mjs.map +1 -1
- package/fesm2020/ngx-sfc-common.mjs +585 -215
- package/fesm2020/ngx-sfc-common.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +3 -2
- package/lib/components/checkmark/checkmark.component.d.ts +2 -1
- package/lib/components/close/close.component.d.ts +6 -0
- package/lib/components/index.d.ts +9 -0
- package/lib/components/modal/header/default/default-modal-header.component.d.ts +2 -0
- package/lib/components/modal/header/default/default-modal-header.model.d.ts +2 -1
- package/lib/components/modal/modal.component.d.ts +3 -4
- package/lib/components/pagination/models/pagination-view.model.d.ts +12 -0
- package/lib/components/pagination/pagination.component.d.ts +31 -0
- package/lib/components/pagination/pagination.constants.d.ts +5 -0
- package/lib/components/pagination/service/pagination.event.d.ts +6 -0
- package/lib/components/pagination/service/pagination.service.d.ts +25 -0
- package/lib/components/sorting/service/sorting.event.d.ts +5 -0
- package/lib/components/sorting/service/sorting.service.d.ts +9 -0
- package/lib/components/sorting/sorting.component.d.ts +22 -0
- package/lib/components/sorting/sorting.constants.d.ts +4 -0
- package/lib/components/sorting/sorting.model.d.ts +12 -0
- package/lib/components/template-content/template-content.component.d.ts +14 -0
- package/lib/components/toggle-switcher/toggle-switcher.model.d.ts +2 -1
- package/lib/constants/common.constants.d.ts +1 -0
- package/lib/constants/ui.constants.d.ts +5 -2
- package/lib/directives/destroy-parent/destroy-parent.directive.d.ts +10 -0
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/template-reference/template-reference.directive.d.ts +2 -1
- package/lib/enums/direction.enum.d.ts +7 -0
- package/lib/enums/index.d.ts +7 -1
- package/lib/enums/media.enum.d.ts +8 -0
- package/lib/enums/position.enum.d.ts +10 -0
- package/lib/enums/size.enum.d.ts +9 -0
- package/lib/enums/sorting-direction.enum.d.ts +7 -0
- package/lib/enums/theme.enum.d.ts +7 -0
- package/lib/enums/ui.enum.d.ts +24 -0
- package/lib/ngx-sfc-common.module.d.ts +22 -16
- package/lib/utils/common.utils.d.ts +6 -0
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/ui.utils.d.ts +28 -0
- package/package.json +5 -2
- package/esm2020/lib/enums/common.enums.mjs +0 -69
- package/lib/enums/common.enums.d.ts +0 -61
|
@@ -1,11 +1,101 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Injectable, PLATFORM_ID, EventEmitter, Directive, Inject, Input, Output, HostListener, Component, HostBinding, ContentChildren, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1$
|
|
3
|
+
import * as i1$2 from '@angular/common';
|
|
4
4
|
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
5
5
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
6
|
-
import { Subject, fromEvent, Observable, startWith, BehaviorSubject, filter, distinctUntilChanged, map, EMPTY } from 'rxjs';
|
|
6
|
+
import { Subject, fromEvent, Observable, startWith, BehaviorSubject, filter, distinctUntilChanged, map, EMPTY, combineLatest } from 'rxjs';
|
|
7
7
|
import * as i1 from '@angular/platform-browser';
|
|
8
|
+
import * as i1$1 from '@fortawesome/angular-fontawesome';
|
|
9
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
8
10
|
import { trigger, state, style, transition, group, query, animate, animateChild } from '@angular/animations';
|
|
11
|
+
import { faTimes, faWindowRestore, faCheck, faChevronLeft, faChevronRight, faChevronUp, faChevronDown } from '@fortawesome/free-solid-svg-icons';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Component sizes
|
|
15
|
+
*/
|
|
16
|
+
var ComponentSize;
|
|
17
|
+
(function (ComponentSize) {
|
|
18
|
+
ComponentSize["Small"] = "small";
|
|
19
|
+
ComponentSize["Medium"] = "medium";
|
|
20
|
+
ComponentSize["Large"] = "large";
|
|
21
|
+
ComponentSize["Custom"] = "custom";
|
|
22
|
+
})(ComponentSize || (ComponentSize = {}));
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Direction types
|
|
26
|
+
*/
|
|
27
|
+
var Direction;
|
|
28
|
+
(function (Direction) {
|
|
29
|
+
Direction["Horizontal"] = "horizontal";
|
|
30
|
+
Direction["Vertical"] = "vertical";
|
|
31
|
+
})(Direction || (Direction = {}));
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* CSS Media limits
|
|
35
|
+
*/
|
|
36
|
+
var MediaLimits;
|
|
37
|
+
(function (MediaLimits) {
|
|
38
|
+
MediaLimits[MediaLimits["Laptop"] = 1200] = "Laptop";
|
|
39
|
+
MediaLimits[MediaLimits["Tablet"] = 767] = "Tablet";
|
|
40
|
+
MediaLimits[MediaLimits["Phone"] = 430] = "Phone";
|
|
41
|
+
})(MediaLimits || (MediaLimits = {}));
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Position directions
|
|
45
|
+
*/
|
|
46
|
+
var Position;
|
|
47
|
+
(function (Position) {
|
|
48
|
+
Position["Top"] = "top";
|
|
49
|
+
Position["Bottom"] = "bottom";
|
|
50
|
+
Position["Left"] = "left";
|
|
51
|
+
Position["Right"] = "right";
|
|
52
|
+
Position["Center"] = "center";
|
|
53
|
+
})(Position || (Position = {}));
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Type of sorting
|
|
57
|
+
*/
|
|
58
|
+
var SortingDirection;
|
|
59
|
+
(function (SortingDirection) {
|
|
60
|
+
SortingDirection["Ascending"] = "ascending";
|
|
61
|
+
SortingDirection["Descending"] = "descending";
|
|
62
|
+
})(SortingDirection || (SortingDirection = {}));
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Theme types
|
|
66
|
+
*/
|
|
67
|
+
var Theme;
|
|
68
|
+
(function (Theme) {
|
|
69
|
+
Theme["Default"] = "sfc-default-theme";
|
|
70
|
+
Theme["Dark"] = "sfc-dark-theme";
|
|
71
|
+
})(Theme || (Theme = {}));
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* UI classes
|
|
75
|
+
*/
|
|
76
|
+
var UIClass;
|
|
77
|
+
(function (UIClass) {
|
|
78
|
+
UIClass["Active"] = "active";
|
|
79
|
+
UIClass["Valid"] = "valid";
|
|
80
|
+
UIClass["Invalid"] = "invalid";
|
|
81
|
+
UIClass["Enabled"] = "enabled";
|
|
82
|
+
UIClass["Disabled"] = "disabled";
|
|
83
|
+
UIClass["Selected"] = "selected";
|
|
84
|
+
UIClass["Empty"] = "empty";
|
|
85
|
+
UIClass["Focus"] = "focus";
|
|
86
|
+
UIClass["Open"] = "open";
|
|
87
|
+
UIClass["Loading"] = "loading";
|
|
88
|
+
UIClass["Removed"] = "removed";
|
|
89
|
+
UIClass["Visible"] = "visible";
|
|
90
|
+
UIClass["Hidden"] = "hidden";
|
|
91
|
+
UIClass["Animated"] = "animated";
|
|
92
|
+
UIClass["Expanded"] = "expanded";
|
|
93
|
+
UIClass["Fixed"] = "fixed";
|
|
94
|
+
UIClass["Bordered"] = "bordered";
|
|
95
|
+
UIClass["Even"] = "even";
|
|
96
|
+
UIClass["Pointer"] = "pointer";
|
|
97
|
+
})(UIClass || (UIClass = {}));
|
|
98
|
+
;
|
|
9
99
|
|
|
10
100
|
/**
|
|
11
101
|
* Create a new injection token for injecting the Document into a component.
|
|
@@ -33,9 +123,9 @@ class BrowserDocumentRef extends DocumentRef {
|
|
|
33
123
|
return document;
|
|
34
124
|
}
|
|
35
125
|
}
|
|
36
|
-
BrowserDocumentRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
37
|
-
BrowserDocumentRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
126
|
+
BrowserDocumentRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BrowserDocumentRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
127
|
+
BrowserDocumentRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BrowserDocumentRef });
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BrowserDocumentRef, decorators: [{
|
|
39
129
|
type: Injectable
|
|
40
130
|
}], ctorParameters: function () { return []; } });
|
|
41
131
|
/**
|
|
@@ -50,7 +140,7 @@ function documentFactory(browserDocumentRef, platformId) {
|
|
|
50
140
|
}
|
|
51
141
|
const doc = {
|
|
52
142
|
hidden: false,
|
|
53
|
-
visibilityState:
|
|
143
|
+
visibilityState: UIClass.Visible
|
|
54
144
|
};
|
|
55
145
|
return doc;
|
|
56
146
|
}
|
|
@@ -100,9 +190,9 @@ class BrowserWindowRef extends WindowRef {
|
|
|
100
190
|
return window;
|
|
101
191
|
}
|
|
102
192
|
}
|
|
103
|
-
BrowserWindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
104
|
-
BrowserWindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
193
|
+
BrowserWindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BrowserWindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
194
|
+
BrowserWindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BrowserWindowRef });
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BrowserWindowRef, decorators: [{
|
|
106
196
|
type: Injectable
|
|
107
197
|
}], ctorParameters: function () { return []; } });
|
|
108
198
|
/**
|
|
@@ -170,9 +260,9 @@ class ResizeService {
|
|
|
170
260
|
this.windowWidth = event.target;
|
|
171
261
|
}
|
|
172
262
|
}
|
|
173
|
-
ResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
174
|
-
ResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
263
|
+
ResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ResizeService, deps: [{ token: i1.EventManager }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
264
|
+
ResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ResizeService, providedIn: 'root' });
|
|
265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ResizeService, decorators: [{
|
|
176
266
|
type: Injectable,
|
|
177
267
|
args: [{
|
|
178
268
|
providedIn: 'root'
|
|
@@ -223,9 +313,9 @@ class ClickOutsideDirective {
|
|
|
223
313
|
return false;
|
|
224
314
|
}
|
|
225
315
|
}
|
|
226
|
-
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
227
|
-
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
316
|
+
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
317
|
+
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ClickOutsideDirective, selector: "[sfcClickOutside]", inputs: { listening: ["sfcClickOutside", "listening"] }, outputs: { action: "action" }, ngImport: i0 });
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
229
319
|
type: Directive,
|
|
230
320
|
args: [{
|
|
231
321
|
selector: '[sfcClickOutside]'
|
|
@@ -244,7 +334,8 @@ class CommonConstants {
|
|
|
244
334
|
}
|
|
245
335
|
CommonConstants.NOT_FOUND_INDEX = -1;
|
|
246
336
|
CommonConstants.EMPTY_STRING = '';
|
|
247
|
-
CommonConstants.MOUSE_BUTTON_LEFT = 0;
|
|
337
|
+
CommonConstants.MOUSE_BUTTON_LEFT = 0;
|
|
338
|
+
CommonConstants.FULL_PERCENTAGE = 100;
|
|
248
339
|
|
|
249
340
|
class DateTimeConstants {
|
|
250
341
|
}
|
|
@@ -262,13 +353,16 @@ UIConstants.CSS_DEGREES = 'deg';
|
|
|
262
353
|
UIConstants.CSS_EM = 'em';
|
|
263
354
|
UIConstants.CSS_VISIBILITY_VISIBLE = 'visible';
|
|
264
355
|
UIConstants.CSS_VISIBILITY_HIDDEN = 'hidden';
|
|
265
|
-
UIConstants.DEFAULT_THEME = 'sfc-default-theme';
|
|
266
|
-
UIConstants.DARK_THEME = 'sfc-dark-theme';
|
|
267
356
|
UIConstants.CSS_WIDTH = 'width';
|
|
268
357
|
UIConstants.CSS_LEFT = 'left';
|
|
358
|
+
UIConstants.CSS_RIGHT = 'right';
|
|
359
|
+
UIConstants.CSS_START = 'start';
|
|
360
|
+
UIConstants.CSS_END = 'end';
|
|
361
|
+
UIConstants.CSS_CENTER = 'center';
|
|
269
362
|
UIConstants.CSS_CLASS_FIXED = 'fixed';
|
|
270
363
|
UIConstants.CSS_CLASS_BACKGROUND = 'background';
|
|
271
|
-
UIConstants.CSS_CLASS_TOP = 'top';
|
|
364
|
+
UIConstants.CSS_CLASS_TOP = 'top';
|
|
365
|
+
UIConstants.RGB_OPACITY_PLACEHOLDER = '{opacity}';
|
|
272
366
|
|
|
273
367
|
class ShowHideElementDirective {
|
|
274
368
|
constructor(el) {
|
|
@@ -295,9 +389,9 @@ class ShowHideElementDirective {
|
|
|
295
389
|
linear`;
|
|
296
390
|
}
|
|
297
391
|
}
|
|
298
|
-
ShowHideElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
299
|
-
ShowHideElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
300
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
392
|
+
ShowHideElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ShowHideElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
393
|
+
ShowHideElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ShowHideElementDirective, selector: "[sfcShowHideElement]", inputs: { showHideElement: ["sfcShowHideElement", "showHideElement"], delay: "delay" }, ngImport: i0 });
|
|
394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ShowHideElementDirective, decorators: [{
|
|
301
395
|
type: Directive,
|
|
302
396
|
args: [{
|
|
303
397
|
selector: '[sfcShowHideElement]'
|
|
@@ -370,7 +464,7 @@ function removePropertyFromObject(obj, property) {
|
|
|
370
464
|
* @returns Merged object
|
|
371
465
|
*/
|
|
372
466
|
function mergeDeep(target, ...sources) {
|
|
373
|
-
if (!
|
|
467
|
+
if (!sources.length)
|
|
374
468
|
return target;
|
|
375
469
|
const source = sources.shift();
|
|
376
470
|
if (isObject(target) && isObject(source)) {
|
|
@@ -392,7 +486,15 @@ function mergeDeep(target, ...sources) {
|
|
|
392
486
|
* @param name KeyOf property
|
|
393
487
|
* @returns Type's property name
|
|
394
488
|
*/
|
|
395
|
-
const nameof = (name) => name;
|
|
489
|
+
const nameof = (name) => name;
|
|
490
|
+
/**
|
|
491
|
+
* Determines if the input is a Number or something that can be coerced to a Number
|
|
492
|
+
* @param - The input to be tested
|
|
493
|
+
* @returns - An indication if the input is a Number or can be coerced to a Number
|
|
494
|
+
*/
|
|
495
|
+
function isNumeric(number) {
|
|
496
|
+
return !isNaN(parseFloat(number));
|
|
497
|
+
}
|
|
396
498
|
|
|
397
499
|
/**
|
|
398
500
|
* Return true if string has value(not empty string)
|
|
@@ -400,7 +502,7 @@ const nameof = (name) => name;
|
|
|
400
502
|
* @returns True if string is not null and defined(not empty string)
|
|
401
503
|
*/
|
|
402
504
|
function isNullOrEmptyString(value) {
|
|
403
|
-
return isDefined(value) || value === CommonConstants.EMPTY_STRING;
|
|
505
|
+
return !isDefined(value) || value === CommonConstants.EMPTY_STRING;
|
|
404
506
|
}
|
|
405
507
|
/**
|
|
406
508
|
* Return true if value contains includeValue
|
|
@@ -695,6 +797,15 @@ function getCssLikeValue(value, type = UIConstants.CSS_PIXELS) {
|
|
|
695
797
|
function getValueFromCssLikeValue(value, type = UIConstants.CSS_PIXELS) {
|
|
696
798
|
return +value.replace(type, CommonConstants.EMPTY_STRING);
|
|
697
799
|
}
|
|
800
|
+
/**
|
|
801
|
+
* Return CCS like calc value
|
|
802
|
+
* @param value All value (100% by default)
|
|
803
|
+
* @param part Part value
|
|
804
|
+
* @returns Calc value
|
|
805
|
+
*/
|
|
806
|
+
function getCalcValue(part, value = 100) {
|
|
807
|
+
return `calc(${value}${UIConstants.CSS_PERCENTAGE} / ${part} )`;
|
|
808
|
+
}
|
|
698
809
|
/**
|
|
699
810
|
* Add classes to HTML element
|
|
700
811
|
* @param element HTML element
|
|
@@ -714,76 +825,41 @@ function removeClasses(element, ...classNames) {
|
|
|
714
825
|
if (isDefined(element)) {
|
|
715
826
|
classNames.forEach((className) => element.classList.remove(className));
|
|
716
827
|
}
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* Component sizes
|
|
721
|
-
*/
|
|
722
|
-
var ComponentSize;
|
|
723
|
-
(function (ComponentSize) {
|
|
724
|
-
ComponentSize["Small"] = "small";
|
|
725
|
-
ComponentSize["Medium"] = "medium";
|
|
726
|
-
ComponentSize["Large"] = "large";
|
|
727
|
-
ComponentSize["Custom"] = "custom";
|
|
728
|
-
})(ComponentSize || (ComponentSize = {}));
|
|
729
|
-
/**
|
|
730
|
-
* Type of sorting
|
|
731
|
-
*/
|
|
732
|
-
var SortingDirection;
|
|
733
|
-
(function (SortingDirection) {
|
|
734
|
-
SortingDirection["Ascending"] = "ascending";
|
|
735
|
-
SortingDirection["Descending"] = "descending";
|
|
736
|
-
})(SortingDirection || (SortingDirection = {}));
|
|
737
|
-
/**
|
|
738
|
-
* UI classes
|
|
739
|
-
*/
|
|
740
|
-
var UIClass;
|
|
741
|
-
(function (UIClass) {
|
|
742
|
-
UIClass["Active"] = "active";
|
|
743
|
-
UIClass["Valid"] = "valid";
|
|
744
|
-
UIClass["Invalid"] = "invalid";
|
|
745
|
-
UIClass["Enabled"] = "enabled";
|
|
746
|
-
UIClass["Disabled"] = "disabled";
|
|
747
|
-
UIClass["Selected"] = "selected";
|
|
748
|
-
UIClass["Empty"] = "empty";
|
|
749
|
-
UIClass["Focus"] = "focus";
|
|
750
|
-
UIClass["Open"] = "open";
|
|
751
|
-
UIClass["Loading"] = "loading";
|
|
752
|
-
UIClass["Removed"] = "removed";
|
|
753
|
-
UIClass["Visible"] = "visible";
|
|
754
|
-
UIClass["Hidden"] = "hidden";
|
|
755
|
-
UIClass["Animated"] = "animated";
|
|
756
|
-
UIClass["Expanded"] = "expanded";
|
|
757
|
-
UIClass["Fixed"] = "fixed";
|
|
758
|
-
})(UIClass || (UIClass = {}));
|
|
759
|
-
;
|
|
828
|
+
}
|
|
760
829
|
/**
|
|
761
|
-
*
|
|
830
|
+
* Convert RGB color to HEX
|
|
831
|
+
* @param r Red
|
|
832
|
+
* @param g Green
|
|
833
|
+
* @param b Blue
|
|
834
|
+
* @returns HEX value
|
|
762
835
|
*/
|
|
763
|
-
|
|
764
|
-
(
|
|
765
|
-
|
|
766
|
-
Position["Bottom"] = "bottom";
|
|
767
|
-
Position["Left"] = "left";
|
|
768
|
-
Position["Right"] = "right";
|
|
769
|
-
})(Position || (Position = {}));
|
|
836
|
+
function rgbToHex(r, g, b) {
|
|
837
|
+
return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
|
|
838
|
+
}
|
|
770
839
|
/**
|
|
771
|
-
*
|
|
840
|
+
* Convert HEX to RGB value
|
|
841
|
+
* @param hex HEX value
|
|
842
|
+
* @returns RGB value
|
|
772
843
|
*/
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
844
|
+
function hexToRgb(hex) {
|
|
845
|
+
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
846
|
+
if (result) {
|
|
847
|
+
var r = parseInt(result[1], 16);
|
|
848
|
+
var g = parseInt(result[2], 16);
|
|
849
|
+
var b = parseInt(result[3], 16);
|
|
850
|
+
return `rgb(${r}, ${g}, ${b})`;
|
|
851
|
+
}
|
|
852
|
+
return null;
|
|
853
|
+
}
|
|
779
854
|
/**
|
|
780
|
-
*
|
|
855
|
+
* Set opacity for RGB value
|
|
856
|
+
* @param rgb Rgb value with {opacity} placeholder
|
|
857
|
+
* @param opacity Opacity value
|
|
858
|
+
* @returns RGB value with relevant opacity
|
|
781
859
|
*/
|
|
782
|
-
|
|
783
|
-
(
|
|
784
|
-
|
|
785
|
-
Direction["Vertical"] = "vertical";
|
|
786
|
-
})(Direction || (Direction = {}));
|
|
860
|
+
function replaceRgbOpacity(rgb, opacity) {
|
|
861
|
+
return rgb.replace(UIConstants.RGB_OPACITY_PLACEHOLDER, opacity.toString());
|
|
862
|
+
}
|
|
787
863
|
|
|
788
864
|
/**
|
|
789
865
|
* Return true if collection not empty
|
|
@@ -921,7 +997,7 @@ function sortByPath(collection, path, direction) {
|
|
|
921
997
|
i++;
|
|
922
998
|
}
|
|
923
999
|
return direction == SortingDirection.Ascending
|
|
924
|
-
? a
|
|
1000
|
+
? a >= b ? 1 : -1
|
|
925
1001
|
: a > b ? -1 : 1;
|
|
926
1002
|
});
|
|
927
1003
|
return collection;
|
|
@@ -1042,9 +1118,9 @@ class ThrowElementOnHoverDirective {
|
|
|
1042
1118
|
this.style.transform = value ? `translateY(${getCssLikeValue(value)})` : null;
|
|
1043
1119
|
}
|
|
1044
1120
|
}
|
|
1045
|
-
ThrowElementOnHoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1046
|
-
ThrowElementOnHoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
1047
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1121
|
+
ThrowElementOnHoverDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ThrowElementOnHoverDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1122
|
+
ThrowElementOnHoverDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ThrowElementOnHoverDirective, selector: "[sfcThrowElementOnHover]", inputs: { throwValue: ["sfcThrowElementOnHover", "throwValue"] }, host: { listeners: { "mouseenter": "onMouseEnter()", "mouseleave": "onMouseLeave()" } }, ngImport: i0 });
|
|
1123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ThrowElementOnHoverDirective, decorators: [{
|
|
1048
1124
|
type: Directive,
|
|
1049
1125
|
args: [{
|
|
1050
1126
|
selector: '[sfcThrowElementOnHover]'
|
|
@@ -1066,9 +1142,9 @@ class TemplateReferenceDirective {
|
|
|
1066
1142
|
this.templateName = CommonConstants.EMPTY_STRING;
|
|
1067
1143
|
}
|
|
1068
1144
|
}
|
|
1069
|
-
TemplateReferenceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1070
|
-
TemplateReferenceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
1071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1145
|
+
TemplateReferenceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TemplateReferenceDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1146
|
+
TemplateReferenceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: TemplateReferenceDirective, selector: "[sfcTemplateReference]", inputs: { templateName: ["sfcTemplateReference", "templateName"], data: "data" }, ngImport: i0 });
|
|
1147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TemplateReferenceDirective, decorators: [{
|
|
1072
1148
|
type: Directive,
|
|
1073
1149
|
args: [{
|
|
1074
1150
|
selector: '[sfcTemplateReference]'
|
|
@@ -1076,6 +1152,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1076
1152
|
}], ctorParameters: function () { return [{ type: i0.TemplateRef }]; }, propDecorators: { templateName: [{
|
|
1077
1153
|
type: Input,
|
|
1078
1154
|
args: ['sfcTemplateReference']
|
|
1155
|
+
}], data: [{
|
|
1156
|
+
type: Input
|
|
1079
1157
|
}] } });
|
|
1080
1158
|
|
|
1081
1159
|
class MouseDownDirective {
|
|
@@ -1095,9 +1173,9 @@ class MouseDownDirective {
|
|
|
1095
1173
|
}
|
|
1096
1174
|
}
|
|
1097
1175
|
}
|
|
1098
|
-
MouseDownDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1099
|
-
MouseDownDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
1100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1176
|
+
MouseDownDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MouseDownDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1177
|
+
MouseDownDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: MouseDownDirective, selector: "[sfcMouseDown]", inputs: { button: "button" }, outputs: { action: "sfcMouseDown" }, host: { listeners: { "mousedown": "onMouseDown($event)" } }, ngImport: i0 });
|
|
1178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MouseDownDirective, decorators: [{
|
|
1101
1179
|
type: Directive,
|
|
1102
1180
|
args: [{
|
|
1103
1181
|
selector: '[sfcMouseDown]'
|
|
@@ -1139,9 +1217,9 @@ class ComponentSizeDirective {
|
|
|
1139
1217
|
}
|
|
1140
1218
|
}
|
|
1141
1219
|
}
|
|
1142
|
-
ComponentSizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1143
|
-
ComponentSizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
1144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1220
|
+
ComponentSizeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ComponentSizeDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1221
|
+
ComponentSizeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ComponentSizeDirective, selector: "[sfcComponentSize]", inputs: { size: ["sfcComponentSize", "size"], customSize: "customSize" }, ngImport: i0 });
|
|
1222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ComponentSizeDirective, decorators: [{
|
|
1145
1223
|
type: Directive,
|
|
1146
1224
|
args: [{
|
|
1147
1225
|
selector: '[sfcComponentSize]'
|
|
@@ -1153,6 +1231,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1153
1231
|
type: Input
|
|
1154
1232
|
}] } });
|
|
1155
1233
|
|
|
1234
|
+
class DestroyParentDirective {
|
|
1235
|
+
constructor(el) {
|
|
1236
|
+
this.el = el;
|
|
1237
|
+
this.delay = 0;
|
|
1238
|
+
}
|
|
1239
|
+
set destroyParent(value) {
|
|
1240
|
+
if (value) {
|
|
1241
|
+
setTimeout(() => this.el.nativeElement.parentElement?.remove(), this.delay);
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
DestroyParentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DestroyParentDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1246
|
+
DestroyParentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: DestroyParentDirective, selector: "[sfcDestroyParent]", inputs: { destroyParent: ["sfcDestroyParent", "destroyParent"], delay: "delay" }, ngImport: i0 });
|
|
1247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DestroyParentDirective, decorators: [{
|
|
1248
|
+
type: Directive,
|
|
1249
|
+
args: [{
|
|
1250
|
+
selector: '[sfcDestroyParent]'
|
|
1251
|
+
}]
|
|
1252
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { destroyParent: [{
|
|
1253
|
+
type: Input,
|
|
1254
|
+
args: ['sfcDestroyParent']
|
|
1255
|
+
}], delay: [{
|
|
1256
|
+
type: Input
|
|
1257
|
+
}] } });
|
|
1258
|
+
|
|
1156
1259
|
var ButtonType;
|
|
1157
1260
|
(function (ButtonType) {
|
|
1158
1261
|
ButtonType["Bordered"] = "bordered";
|
|
@@ -1177,11 +1280,11 @@ class ButtonComponent {
|
|
|
1177
1280
|
return classes;
|
|
1178
1281
|
}
|
|
1179
1282
|
}
|
|
1180
|
-
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1181
|
-
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1283
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1284
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ButtonComponent, selector: "sfc-button", inputs: { text: "text", iconBefore: "iconBefore", iconAfter: "iconAfter", disabled: "disabled", types: "types" }, ngImport: i0, template: "<a class=\"button\" [ngClass]=\"classes\">\r\n <fa-icon *ngIf=\"iconBefore\" class=\"icon before\" [icon]=\"iconBefore\"></fa-icon>\r\n <span class=\"text\">{{text}}</span>\r\n <fa-icon *ngIf=\"iconAfter\" class=\"icon after\" [icon]=\"iconAfter\"></fa-icon>\r\n</a>", styles: [".button.texted:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.texted:not(:hover):not(.disabled){color:#545e61}:host-context(.sfc-dark-theme) .button.texted:not(:hover):not(.disabled){color:#ccd1d9}.button.bordered{border:solid 2px}.button.bordered:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.bordered:not(:hover):not(.disabled){color:#545e61}:host-context(.sfc-dark-theme) .button.bordered:not(:hover):not(.disabled){color:#ccd1d9}.button.bordered:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.bordered:not(:hover):not(.disabled){border-color:#545e61}:host-context(.sfc-dark-theme) .button.bordered:not(:hover):not(.disabled){border-color:#ccd1d9}.button.filled{color:#fff!important;border-color:#545e61;background:#545e61}.button.filled:hover{color:#fff!important;border-color:#aab2bd;background:#aab2bd}.button.filled.disabled{color:#fff!important;border-color:#bdbdbd;background:#bdbdbd}.button.rounded{border:solid 2px;border-radius:20px;padding:.4em 1.2em}.button.rounded:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.rounded:not(:hover):not(.disabled){color:#545e61}:host-context(.sfc-dark-theme) .button.rounded:not(:hover):not(.disabled){color:#ccd1d9}.button.rounded:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.rounded:not(:hover):not(.disabled){border-color:#545e61}:host-context(.sfc-dark-theme) .button.rounded:not(:hover):not(.disabled){border-color:#ccd1d9}.button.circled{border:solid 2px;width:5em;height:5em;border-radius:50%}.button.circled:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.circled:not(:hover):not(.disabled){color:#545e61}:host-context(.sfc-dark-theme) .button.circled:not(:hover):not(.disabled){color:#ccd1d9}.button.circled:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.circled:not(:hover):not(.disabled){border-color:#545e61}:host-context(.sfc-dark-theme) .button.circled:not(:hover):not(.disabled){border-color:#ccd1d9}.button.circled .text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host{display:inline-block;font-size:1em}.button{box-sizing:border-box;display:inline-flex;justify-content:center;flex-wrap:wrap;align-items:center;overflow:hidden;text-align:center;text-decoration:none;white-space:nowrap;font-size:.9em;cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .5s ease,border-color .5s ease,background .5s ease}.button:hover{color:#2bbbad;border-color:#2bbbad}.button.disabled{pointer-events:none}.button.disabled,:host-context(.sfc-default-theme) .button.disabled{color:#bdbdbd}:host-context(.sfc-dark-theme) .button.disabled{color:#656d78}.button.disabled,:host-context(.sfc-default-theme) .button.disabled{border-color:#bdbdbd}:host-context(.sfc-dark-theme) .button.disabled{border-color:#656d78}.button .icon{padding:3px}.button .text{padding:3px;white-space:initial}.button .text:empty{display:none}\n"], components: [{ type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], directives: [{ type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1183
1286
|
type: Component,
|
|
1184
|
-
args: [{ selector: 'sfc-button', template: "<a class=\"button\" [ngClass]=\"classes\">\r\n <
|
|
1287
|
+
args: [{ selector: 'sfc-button', template: "<a class=\"button\" [ngClass]=\"classes\">\r\n <fa-icon *ngIf=\"iconBefore\" class=\"icon before\" [icon]=\"iconBefore\"></fa-icon>\r\n <span class=\"text\">{{text}}</span>\r\n <fa-icon *ngIf=\"iconAfter\" class=\"icon after\" [icon]=\"iconAfter\"></fa-icon>\r\n</a>", styles: [".button.texted:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.texted:not(:hover):not(.disabled){color:#545e61}:host-context(.sfc-dark-theme) .button.texted:not(:hover):not(.disabled){color:#ccd1d9}.button.bordered{border:solid 2px}.button.bordered:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.bordered:not(:hover):not(.disabled){color:#545e61}:host-context(.sfc-dark-theme) .button.bordered:not(:hover):not(.disabled){color:#ccd1d9}.button.bordered:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.bordered:not(:hover):not(.disabled){border-color:#545e61}:host-context(.sfc-dark-theme) .button.bordered:not(:hover):not(.disabled){border-color:#ccd1d9}.button.filled{color:#fff!important;border-color:#545e61;background:#545e61}.button.filled:hover{color:#fff!important;border-color:#aab2bd;background:#aab2bd}.button.filled.disabled{color:#fff!important;border-color:#bdbdbd;background:#bdbdbd}.button.rounded{border:solid 2px;border-radius:20px;padding:.4em 1.2em}.button.rounded:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.rounded:not(:hover):not(.disabled){color:#545e61}:host-context(.sfc-dark-theme) .button.rounded:not(:hover):not(.disabled){color:#ccd1d9}.button.rounded:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.rounded:not(:hover):not(.disabled){border-color:#545e61}:host-context(.sfc-dark-theme) .button.rounded:not(:hover):not(.disabled){border-color:#ccd1d9}.button.circled{border:solid 2px;width:5em;height:5em;border-radius:50%}.button.circled:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.circled:not(:hover):not(.disabled){color:#545e61}:host-context(.sfc-dark-theme) .button.circled:not(:hover):not(.disabled){color:#ccd1d9}.button.circled:not(:hover):not(.disabled),:host-context(.sfc-default-theme) .button.circled:not(:hover):not(.disabled){border-color:#545e61}:host-context(.sfc-dark-theme) .button.circled:not(:hover):not(.disabled){border-color:#ccd1d9}.button.circled .text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:host{display:inline-block;font-size:1em}.button{box-sizing:border-box;display:inline-flex;justify-content:center;flex-wrap:wrap;align-items:center;overflow:hidden;text-align:center;text-decoration:none;white-space:nowrap;font-size:.9em;cursor:pointer;-webkit-user-select:none;user-select:none;transition:color .5s ease,border-color .5s ease,background .5s ease}.button:hover{color:#2bbbad;border-color:#2bbbad}.button.disabled{pointer-events:none}.button.disabled,:host-context(.sfc-default-theme) .button.disabled{color:#bdbdbd}:host-context(.sfc-dark-theme) .button.disabled{color:#656d78}.button.disabled,:host-context(.sfc-default-theme) .button.disabled{border-color:#bdbdbd}:host-context(.sfc-dark-theme) .button.disabled{border-color:#656d78}.button .icon{padding:3px}.button .text{padding:3px;white-space:initial}.button .text:empty{display:none}\n"] }]
|
|
1185
1288
|
}], propDecorators: { text: [{
|
|
1186
1289
|
type: Input
|
|
1187
1290
|
}], iconBefore: [{
|
|
@@ -1228,11 +1331,11 @@ class TooltipComponent {
|
|
|
1228
1331
|
this._resizeSubscription?.unsubscribe();
|
|
1229
1332
|
}
|
|
1230
1333
|
}
|
|
1231
|
-
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1232
|
-
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1334
|
+
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TooltipComponent, deps: [{ token: ResizeService }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component });
|
|
1335
|
+
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: TooltipComponent, selector: "[sfc-tooltip]", inputs: { value: ["sfc-tooltip", "value"], tooltipType: "tooltipType", tooltipPosition: "tooltipPosition", tooltipShow: "tooltipShow" }, host: { listeners: { "click": "click()" }, properties: { "attr.value": "this.value", "attr.type": "this.tooltipType", "attr.position": "this.tooltipPosition", "class.show": "this.tooltipShow" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{position:relative}:host:before,:host:after{position:absolute;left:50%;bottom:calc(100% + 5px);pointer-events:none;transition:.2s;will-change:transform}:host:hover:before,:host.show:before{content:attr(value);padding:.4em .7em;font-size:.8em;font-weight:initial;width:inherit;max-width:18.75em;border-radius:6px;background-color:#545e61;box-shadow:0 0 20.25em #aab2bd;color:#fff;text-align:center;white-space:pre-wrap;overflow:hidden;word-wrap:break-word;z-index:9999}:host:after{content:\"\";border-style:solid;transition-duration:0s;transform:translate(-50%) scaleY(0)}:host[type=hover]:before,:host[type=hover]:after,:host:not(.show):before,:host:not(.show):after{visibility:hidden;opacity:0}:host[type=hover]:hover:before,:host[type=hover]:hover:after,:host.show:before,:host.show:after{visibility:visible;opacity:1}:host[type=hover]:hover:before,:host.show:before{transition-delay:.1s}:host[type=hover]:hover:after,:host.show:after{transition-delay:.3s;transition-duration:.2s;transform:translate(-50%) scaleY(1)}:host[position=top]:before,:host[position=top]:after{left:50%;bottom:calc(100% + 5px)}:host[position=top]:before{transform:translate(-50%,-5px) scale(.5)}:host[position=top]:hover:before,:host[position=top].show:before{transform:translate(-50%,-.25em) scale(1)}:host[position=top]:after{border-width:.25em .25em 0;border-color:#545e61 transparent transparent transparent;transform-origin:top}:host[position=left]:before,:host[position=left]:after{left:auto;right:calc(100% + 5px);bottom:50%}:host[position=left]:before{transform:translate(-.25em,50%) scale(.5)}:host[position=left]:hover:before,:host[position=left].show:before{transform:translate(-.31em,50%) scale(1)}:host[position=left]:after{border-width:.25em 0 .25em .25em;border-color:transparent transparent transparent #545e61;transform-origin:left;transform:translateY(50%) scaleX(0)}:host[position=left]:hover:after,:host[position=left].show:after{transform:translateY(50%) scaleX(1)}:host[position=right]:before,:host[position=right]:after{left:calc(100% + 5px);bottom:50%}:host[position=right]:before{transform:translate(5px,50%) scale(.5)}:host[position=right]:hover:before,:host[position=right].show:before{transform:translate(.31em,50%) scale(1)}:host[position=right]:after{border-width:.25em .25em .25em 0;border-color:transparent #545e61 transparent transparent;transform-origin:right;transform:translateY(50%) scaleX(0)}:host[position=right]:hover:after,:host[position=right].show:after{transform:translateY(50%) scaleX(1)}:host[position=bottom]:before,:host[position=bottom]:after{top:calc(100% + 5px);bottom:auto}:host[position=bottom]:before{transform:translate(-50%,5px) scale(.5)}:host[position=bottom]:hover:before,:host[position=bottom].show:before{transform:translate(-50%,.31em) scale(1)}:host[position=bottom]:after{border-width:0 .25em .25em;border-color:transparent transparent #545e61 transparent;transform-origin:bottom}\n"] });
|
|
1336
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
1234
1337
|
type: Component,
|
|
1235
|
-
args: [{ selector: '[sfc-tooltip]', template: `<ng-content></ng-content>`, styles: [":host{position:relative}:host:before,:host:after{position:absolute;left:50%;bottom:calc(100% + 5px);pointer-events:none;transition:.2s;will-change:transform}:host:hover:before,:host.show:before{content:attr(value);padding:.4em .7em;font-size:.8em;font-weight:initial;width:inherit;max-width:18.75em;border-radius:6px;background-color:#545e61;box-shadow:0 0 20.25em #
|
|
1338
|
+
args: [{ selector: '[sfc-tooltip]', template: `<ng-content></ng-content>`, styles: [":host{position:relative}:host:before,:host:after{position:absolute;left:50%;bottom:calc(100% + 5px);pointer-events:none;transition:.2s;will-change:transform}:host:hover:before,:host.show:before{content:attr(value);padding:.4em .7em;font-size:.8em;font-weight:initial;width:inherit;max-width:18.75em;border-radius:6px;background-color:#545e61;box-shadow:0 0 20.25em #aab2bd;color:#fff;text-align:center;white-space:pre-wrap;overflow:hidden;word-wrap:break-word;z-index:9999}:host:after{content:\"\";border-style:solid;transition-duration:0s;transform:translate(-50%) scaleY(0)}:host[type=hover]:before,:host[type=hover]:after,:host:not(.show):before,:host:not(.show):after{visibility:hidden;opacity:0}:host[type=hover]:hover:before,:host[type=hover]:hover:after,:host.show:before,:host.show:after{visibility:visible;opacity:1}:host[type=hover]:hover:before,:host.show:before{transition-delay:.1s}:host[type=hover]:hover:after,:host.show:after{transition-delay:.3s;transition-duration:.2s;transform:translate(-50%) scaleY(1)}:host[position=top]:before,:host[position=top]:after{left:50%;bottom:calc(100% + 5px)}:host[position=top]:before{transform:translate(-50%,-5px) scale(.5)}:host[position=top]:hover:before,:host[position=top].show:before{transform:translate(-50%,-.25em) scale(1)}:host[position=top]:after{border-width:.25em .25em 0;border-color:#545e61 transparent transparent transparent;transform-origin:top}:host[position=left]:before,:host[position=left]:after{left:auto;right:calc(100% + 5px);bottom:50%}:host[position=left]:before{transform:translate(-.25em,50%) scale(.5)}:host[position=left]:hover:before,:host[position=left].show:before{transform:translate(-.31em,50%) scale(1)}:host[position=left]:after{border-width:.25em 0 .25em .25em;border-color:transparent transparent transparent #545e61;transform-origin:left;transform:translateY(50%) scaleX(0)}:host[position=left]:hover:after,:host[position=left].show:after{transform:translateY(50%) scaleX(1)}:host[position=right]:before,:host[position=right]:after{left:calc(100% + 5px);bottom:50%}:host[position=right]:before{transform:translate(5px,50%) scale(.5)}:host[position=right]:hover:before,:host[position=right].show:before{transform:translate(.31em,50%) scale(1)}:host[position=right]:after{border-width:.25em .25em .25em 0;border-color:transparent #545e61 transparent transparent;transform-origin:right;transform:translateY(50%) scaleX(0)}:host[position=right]:hover:after,:host[position=right].show:after{transform:translateY(50%) scaleX(1)}:host[position=bottom]:before,:host[position=bottom]:after{top:calc(100% + 5px);bottom:auto}:host[position=bottom]:before{transform:translate(-50%,5px) scale(.5)}:host[position=bottom]:hover:before,:host[position=bottom].show:before{transform:translate(-50%,.31em) scale(1)}:host[position=bottom]:after{border-width:0 .25em .25em;border-color:transparent transparent #545e61 transparent;transform-origin:bottom}\n"] }]
|
|
1236
1339
|
}], ctorParameters: function () { return [{ type: ResizeService }, { type: Window, decorators: [{
|
|
1237
1340
|
type: Inject,
|
|
1238
1341
|
args: [WINDOW]
|
|
@@ -1264,11 +1367,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1264
1367
|
|
|
1265
1368
|
class DelimeterComponent {
|
|
1266
1369
|
}
|
|
1267
|
-
DelimeterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1268
|
-
DelimeterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1370
|
+
DelimeterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DelimeterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1371
|
+
DelimeterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: DelimeterComponent, selector: "sfc-delimeter", ngImport: i0, template: ``, isInline: true, styles: [":host{display:inline-block;width:100%;height:1px;margin:.3em 0}:host,:host-context(.sfc-default-theme) :host{background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 17%,rgba(0,0,0,.3) 83%,rgba(0,0,0,0) 100%)}:host-context(.sfc-dark-theme) :host{background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,.4) 17%,rgba(255,255,255,.4) 83%,rgba(255,255,255,0) 100%)}\n"] });
|
|
1372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DelimeterComponent, decorators: [{
|
|
1270
1373
|
type: Component,
|
|
1271
|
-
args: [{ selector: 'sfc-delimeter', template: ``, styles: [":host{width:100%;height:.
|
|
1374
|
+
args: [{ selector: 'sfc-delimeter', template: ``, styles: [":host{display:inline-block;width:100%;height:1px;margin:.3em 0}:host,:host-context(.sfc-default-theme) :host{background:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 17%,rgba(0,0,0,.3) 83%,rgba(0,0,0,0) 100%)}:host-context(.sfc-dark-theme) :host{background:linear-gradient(to right,rgba(255,255,255,0) 0%,rgba(255,255,255,.4) 17%,rgba(255,255,255,.4) 83%,rgba(255,255,255,0) 100%)}\n"] }]
|
|
1272
1375
|
}] });
|
|
1273
1376
|
|
|
1274
1377
|
class LoaderConstants {
|
|
@@ -1339,9 +1442,9 @@ class LoaderService {
|
|
|
1339
1442
|
return null;
|
|
1340
1443
|
}
|
|
1341
1444
|
}
|
|
1342
|
-
LoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1343
|
-
LoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
1344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1445
|
+
LoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1446
|
+
LoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, providedIn: 'root' });
|
|
1447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, decorators: [{
|
|
1345
1448
|
type: Injectable,
|
|
1346
1449
|
args: [{
|
|
1347
1450
|
providedIn: 'root'
|
|
@@ -1381,9 +1484,9 @@ class LoaderBaseComponent {
|
|
|
1381
1484
|
return classes;
|
|
1382
1485
|
}
|
|
1383
1486
|
}
|
|
1384
|
-
LoaderBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1385
|
-
LoaderBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
1386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1487
|
+
LoaderBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderBaseComponent, deps: [{ token: LoaderService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1488
|
+
LoaderBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: LoaderBaseComponent, inputs: { id: "id", start: "start", background: "background" }, ngImport: i0 });
|
|
1489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderBaseComponent, decorators: [{
|
|
1387
1490
|
type: Directive
|
|
1388
1491
|
}], ctorParameters: function () { return [{ type: LoaderService }]; }, propDecorators: { id: [{
|
|
1389
1492
|
type: Input
|
|
@@ -1395,11 +1498,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1395
1498
|
|
|
1396
1499
|
class BounceLoaderComponent extends LoaderBaseComponent {
|
|
1397
1500
|
}
|
|
1398
|
-
BounceLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1399
|
-
BounceLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1501
|
+
BounceLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BounceLoaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1502
|
+
BounceLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: BounceLoaderComponent, selector: "sfc-bounce-loader", usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"show$ | async\" class=\"preloader\" [ngClass]=\"preLoaderClasses\">\r\n <div class=\"spinner\">\r\n <div class=\"bounce\"></div>\r\n <div class=\"bounce\"></div>\r\n <div class=\"bounce\"></div>\r\n </div>\r\n</div>", styles: [".preloader{position:relative;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center}.preloader.background{opacity:.7}.preloader.background,:host-context(.sfc-default-theme) .preloader.background{background-color:#fff}:host-context(.sfc-dark-theme) .preloader.background{background-color:#656d78}.preloader.global{z-index:9999;position:fixed}.preloader.local{z-index:9998;position:absolute}\n", ".spinner{text-align:center}.spinner .bounce{border-radius:100%;display:inline-block;animation:bounce-delay 1.4s infinite ease-in-out both;width:1em;height:1em}.spinner .bounce,:host-context(.sfc-default-theme) .spinner .bounce{background-color:#545e61}:host-context(.sfc-dark-theme) .spinner .bounce{background-color:#fff}.spinner .bounce:nth-child(1){animation-delay:-.32s}.spinner .bounce:nth-child(2){animation-delay:-.16s}@keyframes bounce-delay{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}\n"], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i1$2.AsyncPipe } });
|
|
1503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BounceLoaderComponent, decorators: [{
|
|
1401
1504
|
type: Component,
|
|
1402
|
-
args: [{ selector: 'sfc-bounce-loader', template: "<div *ngIf=\"show$ | async\" class=\"preloader\" [ngClass]=\"preLoaderClasses\">\r\n <div class=\"spinner\">\r\n <div class=\"bounce\"></div>\r\n <div class=\"bounce\"></div>\r\n <div class=\"bounce\"></div>\r\n </div>\r\n</div>", styles: [".preloader{position:relative;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center}.preloader.background{opacity:.7}
|
|
1505
|
+
args: [{ selector: 'sfc-bounce-loader', template: "<div *ngIf=\"show$ | async\" class=\"preloader\" [ngClass]=\"preLoaderClasses\">\r\n <div class=\"spinner\">\r\n <div class=\"bounce\"></div>\r\n <div class=\"bounce\"></div>\r\n <div class=\"bounce\"></div>\r\n </div>\r\n</div>", styles: [".preloader{position:relative;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center}.preloader.background{opacity:.7}.preloader.background,:host-context(.sfc-default-theme) .preloader.background{background-color:#fff}:host-context(.sfc-dark-theme) .preloader.background{background-color:#656d78}.preloader.global{z-index:9999;position:fixed}.preloader.local{z-index:9998;position:absolute}\n", ".spinner{text-align:center}.spinner .bounce{border-radius:100%;display:inline-block;animation:bounce-delay 1.4s infinite ease-in-out both;width:1em;height:1em}.spinner .bounce,:host-context(.sfc-default-theme) .spinner .bounce{background-color:#545e61}:host-context(.sfc-dark-theme) .spinner .bounce{background-color:#fff}.spinner .bounce:nth-child(1){animation-delay:-.32s}.spinner .bounce:nth-child(2){animation-delay:-.16s}@keyframes bounce-delay{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}\n"] }]
|
|
1403
1506
|
}] });
|
|
1404
1507
|
|
|
1405
1508
|
var CircleLoaderType;
|
|
@@ -1414,11 +1517,11 @@ class CircleLoaderComponent extends LoaderBaseComponent {
|
|
|
1414
1517
|
this.type = CircleLoaderType.Default;
|
|
1415
1518
|
}
|
|
1416
1519
|
}
|
|
1417
|
-
CircleLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1418
|
-
CircleLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1520
|
+
CircleLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CircleLoaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1521
|
+
CircleLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CircleLoaderComponent, selector: "sfc-circle-loader", inputs: { type: "type" }, usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"show$ | async\" class=\"preloader\" [ngClass]=\"preLoaderClasses\">\r\n <div class=\"circles-container\" [ngClass]=\"type\">\r\n <div class=\"circle1\"></div>\r\n <div class=\"circle2\"></div>\r\n <div class=\"circle3\"></div>\r\n <div class=\"circle4\"></div>\r\n <div class=\"circle5\"></div>\r\n <div class=\"circle6\"></div>\r\n <div class=\"circle7\"></div>\r\n <div class=\"circle8\"></div>\r\n <div class=\"circle9\"></div>\r\n <div class=\"circle10\"></div>\r\n <div class=\"circle11\"></div>\r\n <div class=\"circle12\"></div>\r\n </div>\r\n</div>", styles: [".preloader{position:relative;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center}.preloader.background{opacity:.7}.preloader.background,:host-context(.sfc-default-theme) .preloader.background{background-color:#fff}:host-context(.sfc-dark-theme) .preloader.background{background-color:#656d78}.preloader.global{z-index:9999;position:fixed}.preloader.local{z-index:9998;position:absolute}\n", ".circles-container{position:relative;width:2.5em;height:2.5em}.circles-container div{width:100%;height:100%;position:absolute;left:0;top:0}.circles-container div:before{content:\"\";display:block;margin:0 auto;width:15%;height:15%;border-radius:100%;animation:bounce-delay 1.2s infinite ease-in-out both}.circles-container div:before,:host-context(.sfc-default-theme) .circles-container div:before{background-color:#545e61}:host-context(.sfc-dark-theme) .circles-container div:before{background-color:#fff}.circles-container.fading div:before{animation-name:circle-fade-delay}.circles-container .circle2{transform:rotate(30deg)}.circles-container .circle2:before{animation-delay:-1.1s}.circles-container .circle3{transform:rotate(60deg)}.circles-container .circle3:before{animation-delay:-1s}.circles-container .circle4{transform:rotate(90deg)}.circles-container .circle4:before{animation-delay:-.9s}.circles-container .circle5{transform:rotate(120deg)}.circles-container .circle5:before{animation-delay:-.8s}.circles-container .circle6{transform:rotate(150deg)}.circles-container .circle6:before{animation-delay:-.7s}.circles-container .circle7{transform:rotate(180deg)}.circles-container .circle7:before{animation-delay:-.6s}.circles-container .circle8{transform:rotate(210deg)}.circles-container .circle8:before{animation-delay:-.5s}.circles-container .circle9{transform:rotate(240deg)}.circles-container .circle9:before{animation-delay:-.4s}.circles-container .circle10{transform:rotate(270deg)}.circles-container .circle10:before{animation-delay:-.3s}.circles-container .circle11{transform:rotate(300deg)}.circles-container .circle11:before{animation-delay:-.2s}.circles-container .circle12{transform:rotate(330deg)}.circles-container .circle12:before{animation-delay:-.1s}@keyframes bounce-delay{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}@keyframes circle-fade-delay{0%,39%,to{opacity:0}40%{opacity:1}}\n"], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i1$2.AsyncPipe } });
|
|
1522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CircleLoaderComponent, decorators: [{
|
|
1420
1523
|
type: Component,
|
|
1421
|
-
args: [{ selector: 'sfc-circle-loader', template: "<div *ngIf=\"show$ | async\" class=\"preloader\" [ngClass]=\"preLoaderClasses\">\r\n <div class=\"circles-container\" [ngClass]=\"type\">\r\n <div class=\"circle1\"></div>\r\n <div class=\"circle2\"></div>\r\n <div class=\"circle3\"></div>\r\n <div class=\"circle4\"></div>\r\n <div class=\"circle5\"></div>\r\n <div class=\"circle6\"></div>\r\n <div class=\"circle7\"></div>\r\n <div class=\"circle8\"></div>\r\n <div class=\"circle9\"></div>\r\n <div class=\"circle10\"></div>\r\n <div class=\"circle11\"></div>\r\n <div class=\"circle12\"></div>\r\n </div>\r\n</div>", styles: [".preloader{position:relative;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center}.preloader.background{opacity:.7}
|
|
1524
|
+
args: [{ selector: 'sfc-circle-loader', template: "<div *ngIf=\"show$ | async\" class=\"preloader\" [ngClass]=\"preLoaderClasses\">\r\n <div class=\"circles-container\" [ngClass]=\"type\">\r\n <div class=\"circle1\"></div>\r\n <div class=\"circle2\"></div>\r\n <div class=\"circle3\"></div>\r\n <div class=\"circle4\"></div>\r\n <div class=\"circle5\"></div>\r\n <div class=\"circle6\"></div>\r\n <div class=\"circle7\"></div>\r\n <div class=\"circle8\"></div>\r\n <div class=\"circle9\"></div>\r\n <div class=\"circle10\"></div>\r\n <div class=\"circle11\"></div>\r\n <div class=\"circle12\"></div>\r\n </div>\r\n</div>", styles: [".preloader{position:relative;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;text-align:center}.preloader.background{opacity:.7}.preloader.background,:host-context(.sfc-default-theme) .preloader.background{background-color:#fff}:host-context(.sfc-dark-theme) .preloader.background{background-color:#656d78}.preloader.global{z-index:9999;position:fixed}.preloader.local{z-index:9998;position:absolute}\n", ".circles-container{position:relative;width:2.5em;height:2.5em}.circles-container div{width:100%;height:100%;position:absolute;left:0;top:0}.circles-container div:before{content:\"\";display:block;margin:0 auto;width:15%;height:15%;border-radius:100%;animation:bounce-delay 1.2s infinite ease-in-out both}.circles-container div:before,:host-context(.sfc-default-theme) .circles-container div:before{background-color:#545e61}:host-context(.sfc-dark-theme) .circles-container div:before{background-color:#fff}.circles-container.fading div:before{animation-name:circle-fade-delay}.circles-container .circle2{transform:rotate(30deg)}.circles-container .circle2:before{animation-delay:-1.1s}.circles-container .circle3{transform:rotate(60deg)}.circles-container .circle3:before{animation-delay:-1s}.circles-container .circle4{transform:rotate(90deg)}.circles-container .circle4:before{animation-delay:-.9s}.circles-container .circle5{transform:rotate(120deg)}.circles-container .circle5:before{animation-delay:-.8s}.circles-container .circle6{transform:rotate(150deg)}.circles-container .circle6:before{animation-delay:-.7s}.circles-container .circle7{transform:rotate(180deg)}.circles-container .circle7:before{animation-delay:-.6s}.circles-container .circle8{transform:rotate(210deg)}.circles-container .circle8:before{animation-delay:-.5s}.circles-container .circle9{transform:rotate(240deg)}.circles-container .circle9:before{animation-delay:-.4s}.circles-container .circle10{transform:rotate(270deg)}.circles-container .circle10:before{animation-delay:-.3s}.circles-container .circle11{transform:rotate(300deg)}.circles-container .circle11:before{animation-delay:-.2s}.circles-container .circle12{transform:rotate(330deg)}.circles-container .circle12:before{animation-delay:-.1s}@keyframes bounce-delay{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}@keyframes circle-fade-delay{0%,39%,to{opacity:0}40%{opacity:1}}\n"] }]
|
|
1422
1525
|
}], propDecorators: { type: [{
|
|
1423
1526
|
type: Input
|
|
1424
1527
|
}] } });
|
|
@@ -1444,24 +1547,66 @@ class ModalService {
|
|
|
1444
1547
|
this.subjectOpen.next(options);
|
|
1445
1548
|
}
|
|
1446
1549
|
}
|
|
1447
|
-
ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1448
|
-
ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
1449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1550
|
+
ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1551
|
+
ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalService, providedIn: 'root' });
|
|
1552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalService, decorators: [{
|
|
1450
1553
|
type: Injectable,
|
|
1451
1554
|
args: [{
|
|
1452
1555
|
providedIn: 'root'
|
|
1453
1556
|
}]
|
|
1454
1557
|
}] });
|
|
1455
1558
|
|
|
1559
|
+
class TemplateContentComponent {
|
|
1560
|
+
get showDefault() {
|
|
1561
|
+
return !isDefined(this.referenceContent)
|
|
1562
|
+
&& !isDefined(this.templateContent);
|
|
1563
|
+
}
|
|
1564
|
+
get templateContent() {
|
|
1565
|
+
const templateRef = firstOrDefault(this.templatesContent?.toArray(), t => t.templateName == this.templateType);
|
|
1566
|
+
return templateRef?.template || null;
|
|
1567
|
+
}
|
|
1568
|
+
}
|
|
1569
|
+
TemplateContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TemplateContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1570
|
+
TemplateContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: TemplateContentComponent, selector: "sfc-template-content", inputs: { contextData: "contextData", referenceContent: "referenceContent", templateType: "templateType", templatesContent: "templatesContent", defaultContent: "defaultContent" }, ngImport: i0, template: "<ng-container *ngIf=\"referenceContent;else template\">\r\n <ng-container *ngTemplateOutlet=\"referenceContent;context:{$implicit: contextData}\"></ng-container>\r\n</ng-container>\r\n\r\n<ng-template #template>\r\n <ng-container *ngTemplateOutlet=\"templateContent;context:{$implicit: contextData}\">\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-container *ngIf=\"defaultContent && showDefault\">\r\n <ng-container *ngTemplateOutlet=\"defaultContent;context:{$implicit: contextData}\"></ng-container>\r\n</ng-container>", styles: [":host{display:contents}\n"], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
1571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TemplateContentComponent, decorators: [{
|
|
1572
|
+
type: Component,
|
|
1573
|
+
args: [{ selector: 'sfc-template-content', styles: [':host{ display: contents;}'], template: "<ng-container *ngIf=\"referenceContent;else template\">\r\n <ng-container *ngTemplateOutlet=\"referenceContent;context:{$implicit: contextData}\"></ng-container>\r\n</ng-container>\r\n\r\n<ng-template #template>\r\n <ng-container *ngTemplateOutlet=\"templateContent;context:{$implicit: contextData}\">\r\n </ng-container>\r\n</ng-template>\r\n\r\n<ng-container *ngIf=\"defaultContent && showDefault\">\r\n <ng-container *ngTemplateOutlet=\"defaultContent;context:{$implicit: contextData}\"></ng-container>\r\n</ng-container>" }]
|
|
1574
|
+
}], propDecorators: { contextData: [{
|
|
1575
|
+
type: Input
|
|
1576
|
+
}], referenceContent: [{
|
|
1577
|
+
type: Input
|
|
1578
|
+
}], templateType: [{
|
|
1579
|
+
type: Input
|
|
1580
|
+
}], templatesContent: [{
|
|
1581
|
+
type: Input
|
|
1582
|
+
}], defaultContent: [{
|
|
1583
|
+
type: Input
|
|
1584
|
+
}] } });
|
|
1585
|
+
|
|
1586
|
+
class CloseComponent {
|
|
1587
|
+
constructor() {
|
|
1588
|
+
this.faTimes = faTimes;
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
CloseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1592
|
+
CloseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CloseComponent, selector: "sfc-close", ngImport: i0, template: "<div class=\"container\">\r\n <fa-icon [icon]=\"faTimes\"></fa-icon>\r\n</div>", styles: [":host{color:#545e61;cursor:pointer}:host:hover{color:#2bbbad}\n"], components: [{ type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
1593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CloseComponent, decorators: [{
|
|
1594
|
+
type: Component,
|
|
1595
|
+
args: [{ selector: 'sfc-close', template: "<div class=\"container\">\r\n <fa-icon [icon]=\"faTimes\"></fa-icon>\r\n</div>", styles: [":host{color:#545e61;cursor:pointer}:host:hover{color:#2bbbad}\n"] }]
|
|
1596
|
+
}] });
|
|
1597
|
+
|
|
1456
1598
|
class DefaultModalHeaderComponent {
|
|
1457
1599
|
constructor(modalService) {
|
|
1458
1600
|
this.modalService = modalService;
|
|
1459
1601
|
this.DEFAULT_MODAL_HEADER_MODEL = {
|
|
1460
|
-
icon:
|
|
1602
|
+
icon: faWindowRestore,
|
|
1461
1603
|
showCloseIcon: true,
|
|
1462
1604
|
text: 'Modal'
|
|
1463
1605
|
};
|
|
1464
1606
|
}
|
|
1607
|
+
get icon() {
|
|
1608
|
+
return this.model?.icon || faWindowRestore;
|
|
1609
|
+
}
|
|
1465
1610
|
ngOnInit() {
|
|
1466
1611
|
if (!isDefined(this.model))
|
|
1467
1612
|
this.model = this.DEFAULT_MODAL_HEADER_MODEL;
|
|
@@ -1470,11 +1615,11 @@ class DefaultModalHeaderComponent {
|
|
|
1470
1615
|
this.modalService.close();
|
|
1471
1616
|
}
|
|
1472
1617
|
}
|
|
1473
|
-
DefaultModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1474
|
-
DefaultModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1618
|
+
DefaultModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalHeaderComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1619
|
+
DefaultModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: DefaultModalHeaderComponent, selector: "sfc-default-modal-header", inputs: { model: "model" }, ngImport: i0, template: "<div class=\"container\">\r\n <fa-icon *ngIf=\"model?.icon\" class=\"icon\" [icon]=\"icon\"></fa-icon>\r\n <span *ngIf=\"model?.text\" class=\"label\">{{model?.text}}</span>\r\n <sfc-close *ngIf=\"model?.showCloseIcon\" (click)=\"onClose()\"></sfc-close>\r\n</div>", styles: [":host{display:inline-flex;width:100%}:host .container{display:flex;align-items:flex-start;width:100%;justify-content:space-between}:host .container .icon{font-size:1em;padding-right:.7em}:host .container .label{font-size:1.2em;font-weight:700;-webkit-user-select:none;user-select:none;padding:0 .7em}:host .container sfc-close{padding-left:.7em}\n"], components: [{ type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { type: CloseComponent, selector: "sfc-close" }], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalHeaderComponent, decorators: [{
|
|
1476
1621
|
type: Component,
|
|
1477
|
-
args: [{ selector: 'sfc-default-modal-header', template: "<div class=\"container\">\r\n <
|
|
1622
|
+
args: [{ selector: 'sfc-default-modal-header', template: "<div class=\"container\">\r\n <fa-icon *ngIf=\"model?.icon\" class=\"icon\" [icon]=\"icon\"></fa-icon>\r\n <span *ngIf=\"model?.text\" class=\"label\">{{model?.text}}</span>\r\n <sfc-close *ngIf=\"model?.showCloseIcon\" (click)=\"onClose()\"></sfc-close>\r\n</div>", styles: [":host{display:inline-flex;width:100%}:host .container{display:flex;align-items:flex-start;width:100%;justify-content:space-between}:host .container .icon{font-size:1em;padding-right:.7em}:host .container .label{font-size:1.2em;font-weight:700;-webkit-user-select:none;user-select:none;padding:0 .7em}:host .container sfc-close{padding-left:.7em}\n"] }]
|
|
1478
1623
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { model: [{
|
|
1479
1624
|
type: Input
|
|
1480
1625
|
}] } });
|
|
@@ -1509,9 +1654,9 @@ class DefaultModalFooterComponent {
|
|
|
1509
1654
|
this.modalService.close();
|
|
1510
1655
|
}
|
|
1511
1656
|
}
|
|
1512
|
-
DefaultModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1513
|
-
DefaultModalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1514
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1657
|
+
DefaultModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalFooterComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1658
|
+
DefaultModalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: DefaultModalFooterComponent, selector: "sfc-default-modal-footer", inputs: { model: "model" }, ngImport: i0, template: "<div class=\"container\">\r\n <sfc-button *ngIf=\"model?.applyButton\" [sfcComponentSize] [customSize]=\"BUTTON_CUSTOM_SIZE\" text=\"Ok\"\r\n [types]=\"[ButtonType.Rounded]\" (click)=\"onButtonClick()\">\r\n </sfc-button>\r\n <sfc-button *ngIf=\"model?.cancelButton\" [sfcComponentSize] [customSize]=\"BUTTON_CUSTOM_SIZE\" text=\"Cancel\"\r\n [types]=\"[ButtonType.Rounded]\" (click)=\"onButtonClick(true)\">\r\n </sfc-button>\r\n</div>", styles: [":host{display:inline-flex;width:100%}:host .container{display:flex;justify-content:center;align-items:center;width:100%}:host .container sfc-button:first-child{padding-right:.3em}:host .container sfc-button:nth-child(2){padding-left:.3em}:host .container ::ng-deep sfc-button .button.rounded{width:5em}:host .container ::ng-deep sfc-button .button:not(:hover){color:#545e61!important;border-color:#545e61!important}\n"], components: [{ type: ButtonComponent, selector: "sfc-button", inputs: ["text", "iconBefore", "iconAfter", "disabled", "types"] }], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ComponentSizeDirective, selector: "[sfcComponentSize]", inputs: ["sfcComponentSize", "customSize"] }] });
|
|
1659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalFooterComponent, decorators: [{
|
|
1515
1660
|
type: Component,
|
|
1516
1661
|
args: [{ selector: 'sfc-default-modal-footer', template: "<div class=\"container\">\r\n <sfc-button *ngIf=\"model?.applyButton\" [sfcComponentSize] [customSize]=\"BUTTON_CUSTOM_SIZE\" text=\"Ok\"\r\n [types]=\"[ButtonType.Rounded]\" (click)=\"onButtonClick()\">\r\n </sfc-button>\r\n <sfc-button *ngIf=\"model?.cancelButton\" [sfcComponentSize] [customSize]=\"BUTTON_CUSTOM_SIZE\" text=\"Cancel\"\r\n [types]=\"[ButtonType.Rounded]\" (click)=\"onButtonClick(true)\">\r\n </sfc-button>\r\n</div>", styles: [":host{display:inline-flex;width:100%}:host .container{display:flex;justify-content:center;align-items:center;width:100%}:host .container sfc-button:first-child{padding-right:.3em}:host .container sfc-button:nth-child(2){padding-left:.3em}:host .container ::ng-deep sfc-button .button.rounded{width:5em}:host .container ::ng-deep sfc-button .button:not(:hover){color:#545e61!important;border-color:#545e61!important}\n"] }]
|
|
1517
1662
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { model: [{
|
|
@@ -1530,24 +1675,12 @@ class ModalComponent {
|
|
|
1530
1675
|
if (this.hideOnEsc)
|
|
1531
1676
|
this.close();
|
|
1532
1677
|
}
|
|
1533
|
-
getTemplate(template) {
|
|
1534
|
-
if (!isDefined(this.templates))
|
|
1535
|
-
return null;
|
|
1536
|
-
const templateRef = firstOrDefault(this.templates?.toArray(), t => t.templateName == template);
|
|
1537
|
-
return isDefined(templateRef) ? templateRef?.template : null;
|
|
1538
|
-
}
|
|
1539
|
-
isShowDefault(template) {
|
|
1540
|
-
return !isDefined(this.getTemplate(template))
|
|
1541
|
-
&& (template == ModalTemplate.Header
|
|
1542
|
-
? !isDefined(this.header)
|
|
1543
|
-
: !isDefined(this.footer));
|
|
1544
|
-
}
|
|
1545
1678
|
close() {
|
|
1546
1679
|
this.modalService.close();
|
|
1547
1680
|
}
|
|
1548
1681
|
}
|
|
1549
|
-
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1550
|
-
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1682
|
+
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1683
|
+
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ModalComponent, selector: "sfc-modal", inputs: { body: "body", header: "header", footer: "footer", defaultHeaderModel: "defaultHeaderModel", defaultFooterModel: "defaultFooterModel", hideOnEsc: "hideOnEsc", hideOnClickOutside: "hideOnClickOutside" }, host: { listeners: { "document:keydown.escape": "onEscapeKeyDownHandler()" } }, queries: [{ propertyName: "templates", predicate: TemplateReferenceDirective, read: TemplateReferenceDirective }], ngImport: i0, template: "<div class=\"overlay\" [@hideOverlay] (click)=\"hideOnClickOutside && close()\">\r\n <div class=\"content\" [@hideContent] (click)=\"$event.stopPropagation()\">\r\n\r\n <div class=\"header\">\r\n\r\n <sfc-template-content [referenceContent]=\"header\" [templatesContent]=\"templates\"\r\n [templateType]=\"ModalTemplate.Header\" [defaultContent]=\"defaultHeader\">\r\n </sfc-template-content>\r\n\r\n <ng-template #defaultHeader>\r\n <sfc-default-modal-header [model]=\"defaultHeaderModel\"> </sfc-default-modal-header>\r\n </ng-template>\r\n\r\n </div>\r\n\r\n <div class=\"body\">\r\n\r\n <sfc-template-content [referenceContent]=\"body\" [templatesContent]=\"templates\"\r\n [templateType]=\"ModalTemplate.Body\">\r\n </sfc-template-content>\r\n\r\n </div>\r\n\r\n <div class=\"footer\">\r\n\r\n <sfc-template-content [referenceContent]=\"footer\" [templatesContent]=\"templates\"\r\n [templateType]=\"ModalTemplate.Footer\" [defaultContent]=\"defaultFooter\">\r\n </sfc-template-content>\r\n\r\n <ng-template #defaultFooter>\r\n <sfc-default-modal-footer [model]=\"defaultFooterModel\"></sfc-default-modal-footer>\r\n </ng-template>\r\n\r\n </div>\r\n </div>\r\n</div>", styles: [".overlay{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;background-color:#0009;-webkit-backface-visibility:visible;backface-visibility:visible;animation:expand-overlay .4s cubic-bezier(.55,0,.1,1)}@keyframes expand-overlay{0%{visibility:hidden;opacity:0}}.overlay .content{display:flex;align-items:center;position:relative;padding:.7em;margin:auto;background-color:#f5f7fa;max-width:calc(100% - 3em);max-height:calc(100% - 3em);border-radius:3px;overflow-y:auto;box-shadow:0 .125em .625em #656d78;transform:scale(1);flex-direction:column;animation:expand-modal .4s cubic-bezier(.55,0,.1,1)}@keyframes expand-modal{0%{visibility:hidden;opacity:0;transform:scale(1.2)}}.overlay .content>div{width:100%;flex:0 0 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#545e61;flex-direction:row;display:flex;justify-content:center}\n"], components: [{ type: TemplateContentComponent, selector: "sfc-template-content", inputs: ["contextData", "referenceContent", "templateType", "templatesContent", "defaultContent"] }, { type: DefaultModalHeaderComponent, selector: "sfc-default-modal-header", inputs: ["model"] }, { type: DefaultModalFooterComponent, selector: "sfc-default-modal-footer", inputs: ["model"] }], animations: [
|
|
1551
1684
|
trigger('hideOverlay', [
|
|
1552
1685
|
state('initial', style({ opacity: 1, visibility: 'visible' })),
|
|
1553
1686
|
state('void', style({ opacity: 0, visibility: 'hidden' })),
|
|
@@ -1569,7 +1702,7 @@ ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
1569
1702
|
transition('* => void', animate('400ms cubic-bezier(.55, 0, .1, 1)'))
|
|
1570
1703
|
])
|
|
1571
1704
|
] });
|
|
1572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalComponent, decorators: [{
|
|
1573
1706
|
type: Component,
|
|
1574
1707
|
args: [{ selector: 'sfc-modal', animations: [
|
|
1575
1708
|
trigger('hideOverlay', [
|
|
@@ -1592,7 +1725,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1592
1725
|
state('void', style({ opacity: 0, visibility: 'hidden', transform: 'scale(1.2)' })),
|
|
1593
1726
|
transition('* => void', animate('400ms cubic-bezier(.55, 0, .1, 1)'))
|
|
1594
1727
|
])
|
|
1595
|
-
], template: "<div class=\"overlay\" [@hideOverlay] (click)=\"hideOnClickOutside && close()\">\r\n <div class=\"content\" [@hideContent] (click)=\"$event.stopPropagation()\">\r\n\r\n <div class=\"header\">\r\n\r\n <
|
|
1728
|
+
], template: "<div class=\"overlay\" [@hideOverlay] (click)=\"hideOnClickOutside && close()\">\r\n <div class=\"content\" [@hideContent] (click)=\"$event.stopPropagation()\">\r\n\r\n <div class=\"header\">\r\n\r\n <sfc-template-content [referenceContent]=\"header\" [templatesContent]=\"templates\"\r\n [templateType]=\"ModalTemplate.Header\" [defaultContent]=\"defaultHeader\">\r\n </sfc-template-content>\r\n\r\n <ng-template #defaultHeader>\r\n <sfc-default-modal-header [model]=\"defaultHeaderModel\"> </sfc-default-modal-header>\r\n </ng-template>\r\n\r\n </div>\r\n\r\n <div class=\"body\">\r\n\r\n <sfc-template-content [referenceContent]=\"body\" [templatesContent]=\"templates\"\r\n [templateType]=\"ModalTemplate.Body\">\r\n </sfc-template-content>\r\n\r\n </div>\r\n\r\n <div class=\"footer\">\r\n\r\n <sfc-template-content [referenceContent]=\"footer\" [templatesContent]=\"templates\"\r\n [templateType]=\"ModalTemplate.Footer\" [defaultContent]=\"defaultFooter\">\r\n </sfc-template-content>\r\n\r\n <ng-template #defaultFooter>\r\n <sfc-default-modal-footer [model]=\"defaultFooterModel\"></sfc-default-modal-footer>\r\n </ng-template>\r\n\r\n </div>\r\n </div>\r\n</div>", styles: [".overlay{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;background-color:#0009;-webkit-backface-visibility:visible;backface-visibility:visible;animation:expand-overlay .4s cubic-bezier(.55,0,.1,1)}@keyframes expand-overlay{0%{visibility:hidden;opacity:0}}.overlay .content{display:flex;align-items:center;position:relative;padding:.7em;margin:auto;background-color:#f5f7fa;max-width:calc(100% - 3em);max-height:calc(100% - 3em);border-radius:3px;overflow-y:auto;box-shadow:0 .125em .625em #656d78;transform:scale(1);flex-direction:column;animation:expand-modal .4s cubic-bezier(.55,0,.1,1)}@keyframes expand-modal{0%{visibility:hidden;opacity:0;transform:scale(1.2)}}.overlay .content>div{width:100%;flex:0 0 auto;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#545e61;flex-direction:row;display:flex;justify-content:center}\n"] }]
|
|
1596
1729
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { body: [{
|
|
1597
1730
|
type: Input
|
|
1598
1731
|
}], header: [{
|
|
@@ -1649,9 +1782,9 @@ class ModalOpenOnClickDirective {
|
|
|
1649
1782
|
this.elements.forEach(el => el.removeEventListener('click', this.clickHandler));
|
|
1650
1783
|
}
|
|
1651
1784
|
}
|
|
1652
|
-
ModalOpenOnClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1653
|
-
ModalOpenOnClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
1654
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1785
|
+
ModalOpenOnClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalOpenOnClickDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: ModalService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1786
|
+
ModalOpenOnClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ModalOpenOnClickDirective, selector: "[sfcModalOpenOnClick]", inputs: { modalOpenOnClick: ["sfcModalOpenOnClick", "modalOpenOnClick"] }, ngImport: i0 });
|
|
1787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalOpenOnClickDirective, decorators: [{
|
|
1655
1788
|
type: Directive,
|
|
1656
1789
|
args: [{
|
|
1657
1790
|
selector: '[sfcModalOpenOnClick]'
|
|
@@ -1667,11 +1800,11 @@ class HamburgerComponent {
|
|
|
1667
1800
|
this.onClick = () => this.open = !this.open;
|
|
1668
1801
|
}
|
|
1669
1802
|
}
|
|
1670
|
-
HamburgerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1671
|
-
HamburgerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1672
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1803
|
+
HamburgerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HamburgerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1804
|
+
HamburgerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: HamburgerComponent, selector: "sfc-hamburger", inputs: { open: "open" }, host: { listeners: { "click": "onClick()" }, properties: { "class.open": "this.open" } }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"line half start\"></div>\r\n <div class=\"line\"></div>\r\n <div class=\"line half end\"></div>\r\n</div>", styles: [".container{width:1em;height:1em;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform .33s ease-out}:host(.open) .container{transform:rotate(-45deg)}.container .line{border-radius:.31em;width:100%;height:.25em}.container .line,:host-context(.sfc-default-theme) .container .line{background-color:#545e61}:host-context(.sfc-dark-theme) .container .line{background-color:#ccd1d9}.container .line.half{width:50%}.container .line.start{transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:right}:host(.open) .container .line.start{transform:rotate(-90deg) translate(.1875em)}.container .line.end{align-self:flex-end;transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:left}:host(.open) .container .line.end{transform:rotate(-90deg) translate(-.1875em)}.container:hover .line{background-color:#2bbbad!important}\n"] });
|
|
1805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HamburgerComponent, decorators: [{
|
|
1673
1806
|
type: Component,
|
|
1674
|
-
args: [{ selector: 'sfc-hamburger', template: "<div class=\"container\">\r\n <div class=\"line half start\"></div>\r\n <div class=\"line\"></div>\r\n <div class=\"line half end\"></div>\r\n</div>", styles: [".container{width:1em;height:1em;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform .33s ease-out}:host(.open) .container{transform:rotate(-45deg)}.container .line{border-radius:.31em;width:100%;height:.25em}
|
|
1807
|
+
args: [{ selector: 'sfc-hamburger', template: "<div class=\"container\">\r\n <div class=\"line half start\"></div>\r\n <div class=\"line\"></div>\r\n <div class=\"line half end\"></div>\r\n</div>", styles: [".container{width:1em;height:1em;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;transition:transform .33s ease-out}:host(.open) .container{transform:rotate(-45deg)}.container .line{border-radius:.31em;width:100%;height:.25em}.container .line,:host-context(.sfc-default-theme) .container .line{background-color:#545e61}:host-context(.sfc-dark-theme) .container .line{background-color:#ccd1d9}.container .line.half{width:50%}.container .line.start{transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:right}:host(.open) .container .line.start{transform:rotate(-90deg) translate(.1875em)}.container .line.end{align-self:flex-end;transition:transform .33s cubic-bezier(.54,-.81,.57,.57);transform-origin:left}:host(.open) .container .line.end{transform:rotate(-90deg) translate(-.1875em)}.container:hover .line{background-color:#2bbbad!important}\n"] }]
|
|
1675
1808
|
}], propDecorators: { open: [{
|
|
1676
1809
|
type: Input
|
|
1677
1810
|
}, {
|
|
@@ -1689,11 +1822,11 @@ class DotsComponent {
|
|
|
1689
1822
|
this.onClick = () => this.open = !this.open;
|
|
1690
1823
|
}
|
|
1691
1824
|
}
|
|
1692
|
-
DotsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1693
|
-
DotsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1825
|
+
DotsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DotsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1826
|
+
DotsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: DotsComponent, selector: "sfc-dots", inputs: { open: "open", direction: "direction" }, host: { listeners: { "click": "onClick()" }, properties: { "class.open": "this.open", "class": "this.direction" } }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"dots-container\">\r\n <div class=\"dot\"></div>\r\n <div class=\"dot\"></div>\r\n <div class=\"dot\"></div>\r\n </div>\r\n</div>", styles: [":host{display:inline-flex;transform:rotate(0);transition:all .3s cubic-bezier(.175,.885,.32,1.275);cursor:pointer}:host.open{transform:rotate(90deg)}:host.vertical{transform:rotate(90deg)}:host.vertical.open{transform:rotate(0)}:host .container{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;flex:1;margin:.25em}:host .container .dots-container{display:flex;flex-flow:row wrap;justify-content:center;align-items:center;position:relative}:host .container .dots-container .dot{width:.3125em;height:.3125em;transition:background .3s ease;margin:.06em;border-radius:50%;display:block}:host .container .dots-container .dot,:host-context(.sfc-default-theme) :host .container .dots-container .dot{background:#545e61}:host-context(.sfc-dark-theme) :host .container .dots-container .dot{background:#ccd1d9}:host:hover .container,:host:focus .container{outline:none}:host:hover .container .dots-container .dot,:host-context(.sfc-default-theme) :host:hover .container .dots-container .dot,:host:focus .container .dots-container .dot,:host-context(.sfc-default-theme) :host:focus .container .dots-container .dot{background:#2bbbad}:host-context(.sfc-dark-theme) :host:hover .container .dots-container .dot,:host-context(.sfc-dark-theme) :host:focus .container .dots-container .dot{background:#2bbbad}\n"] });
|
|
1827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DotsComponent, decorators: [{
|
|
1695
1828
|
type: Component,
|
|
1696
|
-
args: [{ selector: 'sfc-dots', template: "<div class=\"container\">\r\n <div class=\"dots-container\">\r\n <div class=\"dot\"></div>\r\n <div class=\"dot\"></div>\r\n <div class=\"dot\"></div>\r\n </div>\r\n</div>", styles: [":host{display:inline-flex;transform:rotate(
|
|
1829
|
+
args: [{ selector: 'sfc-dots', template: "<div class=\"container\">\r\n <div class=\"dots-container\">\r\n <div class=\"dot\"></div>\r\n <div class=\"dot\"></div>\r\n <div class=\"dot\"></div>\r\n </div>\r\n</div>", styles: [":host{display:inline-flex;transform:rotate(0);transition:all .3s cubic-bezier(.175,.885,.32,1.275);cursor:pointer}:host.open{transform:rotate(90deg)}:host.vertical{transform:rotate(90deg)}:host.vertical.open{transform:rotate(0)}:host .container{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;flex:1;margin:.25em}:host .container .dots-container{display:flex;flex-flow:row wrap;justify-content:center;align-items:center;position:relative}:host .container .dots-container .dot{width:.3125em;height:.3125em;transition:background .3s ease;margin:.06em;border-radius:50%;display:block}:host .container .dots-container .dot,:host-context(.sfc-default-theme) :host .container .dots-container .dot{background:#545e61}:host-context(.sfc-dark-theme) :host .container .dots-container .dot{background:#ccd1d9}:host:hover .container,:host:focus .container{outline:none}:host:hover .container .dots-container .dot,:host-context(.sfc-default-theme) :host:hover .container .dots-container .dot,:host:focus .container .dots-container .dot,:host-context(.sfc-default-theme) :host:focus .container .dots-container .dot{background:#2bbbad}:host-context(.sfc-dark-theme) :host:hover .container .dots-container .dot,:host-context(.sfc-dark-theme) :host:focus .container .dots-container .dot{background:#2bbbad}\n"] }]
|
|
1697
1830
|
}], propDecorators: { open: [{
|
|
1698
1831
|
type: Input
|
|
1699
1832
|
}, {
|
|
@@ -1717,11 +1850,11 @@ class ToggleSwitcherComponent {
|
|
|
1717
1850
|
this.rightModel = { label: 'Right' };
|
|
1718
1851
|
}
|
|
1719
1852
|
}
|
|
1720
|
-
ToggleSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1721
|
-
ToggleSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1853
|
+
ToggleSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ToggleSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1854
|
+
ToggleSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ToggleSwitcherComponent, selector: "sfc-toggle-switcher", inputs: { active: "active", leftModel: "leftModel", rightModel: "rightModel" }, host: { listeners: { "click": "onClick()" }, properties: { "class.active": "this.active" } }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"toggle\"></div>\r\n <div class=\"names\">\r\n <p class=\"left\">\r\n <fa-icon *ngIf=\"leftModel.icon\" [icon]=\"leftModel.icon\"></fa-icon>\r\n <span>{{leftModel.label}}</span>\r\n </p>\r\n <p class=\"right\">\r\n <fa-icon *ngIf=\"rightModel.icon\" [icon]=\"rightModel.icon\"></fa-icon>\r\n <span>{{rightModel.label}}</span>\r\n </p>\r\n </div>\r\n</div>", styles: [":host .container,:host .toggle{height:100%;border-radius:100px}:host .container{width:100%;background-color:#e6e9ed;color:#545e61;border-radius:100px;position:relative;cursor:pointer}:host .container .toggle{position:absolute;width:50%;background-color:#fff;box-shadow:0 .125em .5em #656d78;transition:transform .3s cubic-bezier(.25,.46,.45,.94)}:host .container .names{font-size:90%;font-weight:bolder;width:100%;height:100%;position:relative;display:flex;justify-content:space-around;align-items:center;-webkit-user-select:none;user-select:none;overflow:hidden}:host .container .names p{font-size:90%;text-align:center;margin:0;padding:.5em 1em}:host .container .names p.right{opacity:.5}:host .container .names p fa-icon{margin-right:.25em}:host.active .container{background-color:#e6e9ed}:host.active .container .toggle{transform:translate(100%);background-color:#fff}:host.active .container .names{color:#545e61}:host.active .container .names .left{opacity:.5}:host.active .container .names .right{opacity:1}\n"], components: [{ type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ToggleSwitcherComponent, decorators: [{
|
|
1723
1856
|
type: Component,
|
|
1724
|
-
args: [{ selector: 'sfc-toggle-switcher', template: "<div class=\"container\">\r\n <div class=\"toggle\"></div>\r\n <div class=\"names\">\r\n <p class=\"left\">\r\n <
|
|
1857
|
+
args: [{ selector: 'sfc-toggle-switcher', template: "<div class=\"container\">\r\n <div class=\"toggle\"></div>\r\n <div class=\"names\">\r\n <p class=\"left\">\r\n <fa-icon *ngIf=\"leftModel.icon\" [icon]=\"leftModel.icon\"></fa-icon>\r\n <span>{{leftModel.label}}</span>\r\n </p>\r\n <p class=\"right\">\r\n <fa-icon *ngIf=\"rightModel.icon\" [icon]=\"rightModel.icon\"></fa-icon>\r\n <span>{{rightModel.label}}</span>\r\n </p>\r\n </div>\r\n</div>", styles: [":host .container,:host .toggle{height:100%;border-radius:100px}:host .container{width:100%;background-color:#e6e9ed;color:#545e61;border-radius:100px;position:relative;cursor:pointer}:host .container .toggle{position:absolute;width:50%;background-color:#fff;box-shadow:0 .125em .5em #656d78;transition:transform .3s cubic-bezier(.25,.46,.45,.94)}:host .container .names{font-size:90%;font-weight:bolder;width:100%;height:100%;position:relative;display:flex;justify-content:space-around;align-items:center;-webkit-user-select:none;user-select:none;overflow:hidden}:host .container .names p{font-size:90%;text-align:center;margin:0;padding:.5em 1em}:host .container .names p.right{opacity:.5}:host .container .names p fa-icon{margin-right:.25em}:host.active .container{background-color:#e6e9ed}:host.active .container .toggle{transform:translate(100%);background-color:#fff}:host.active .container .names{color:#545e61}:host.active .container .names .left{opacity:.5}:host.active .container .names .right{opacity:1}\n"] }]
|
|
1725
1858
|
}], ctorParameters: function () { return []; }, propDecorators: { active: [{
|
|
1726
1859
|
type: Input
|
|
1727
1860
|
}, {
|
|
@@ -1739,15 +1872,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1739
1872
|
class CheckmarkComponent {
|
|
1740
1873
|
constructor() {
|
|
1741
1874
|
this.active = false;
|
|
1742
|
-
this.icon =
|
|
1875
|
+
this.icon = faCheck;
|
|
1743
1876
|
this.onClick = () => this.active = !this.active;
|
|
1744
1877
|
}
|
|
1745
1878
|
}
|
|
1746
|
-
CheckmarkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1747
|
-
CheckmarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1748
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1879
|
+
CheckmarkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CheckmarkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1880
|
+
CheckmarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CheckmarkComponent, selector: "sfc-checkmark", inputs: { active: "active", icon: "icon" }, host: { listeners: { "click": "onClick()" }, properties: { "class.active": "this.active" } }, ngImport: i0, template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <fa-icon [icon]=\"icon\"></fa-icon>\r\n </span>\r\n</div>", styles: [":host{display:inline-block}:host,:host-context(.sfc-default-theme) :host{color:#545e61}:host-context(.sfc-dark-theme) :host{color:#ccd1d9}:host .check{border-radius:50%;border:.18em solid;background:#fff;border-color:#ccd1d9;width:1em;height:1em;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .3s ease}:host .check fa-icon{font-size:.8em;transition:opacity .3s ease}:host .check fa-icon,:host-context(.sfc-default-theme) :host .check fa-icon{opacity:.5}:host-context(.sfc-dark-theme) :host .check fa-icon{opacity:.8}:host .check:hover{border-color:#2bbbad}:host .check:hover fa-icon{color:#2bbbad}:host .check:hover fa-icon,:host-context(.sfc-default-theme) :host .check:hover fa-icon{opacity:.8}:host-context(.sfc-dark-theme) :host .check:hover fa-icon{opacity:1}:host.active .check{border-color:#2bbbad;background:#2bbbad}:host.active .check fa-icon{opacity:1;transform:scale(0);color:#fff;-webkit-text-stroke:0;animation:icon .3s cubic-bezier(1,.008,.565,1.65) .1s 1 forwards}@keyframes icon{0%{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}\n"], components: [{ type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
1881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CheckmarkComponent, decorators: [{
|
|
1749
1882
|
type: Component,
|
|
1750
|
-
args: [{ selector: 'sfc-checkmark', template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <
|
|
1883
|
+
args: [{ selector: 'sfc-checkmark', template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <fa-icon [icon]=\"icon\"></fa-icon>\r\n </span>\r\n</div>", styles: [":host{display:inline-block}:host,:host-context(.sfc-default-theme) :host{color:#545e61}:host-context(.sfc-dark-theme) :host{color:#ccd1d9}:host .check{border-radius:50%;border:.18em solid;background:#fff;border-color:#ccd1d9;width:1em;height:1em;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .3s ease}:host .check fa-icon{font-size:.8em;transition:opacity .3s ease}:host .check fa-icon,:host-context(.sfc-default-theme) :host .check fa-icon{opacity:.5}:host-context(.sfc-dark-theme) :host .check fa-icon{opacity:.8}:host .check:hover{border-color:#2bbbad}:host .check:hover fa-icon{color:#2bbbad}:host .check:hover fa-icon,:host-context(.sfc-default-theme) :host .check:hover fa-icon{opacity:.8}:host-context(.sfc-dark-theme) :host .check:hover fa-icon{opacity:1}:host.active .check{border-color:#2bbbad;background:#2bbbad}:host.active .check fa-icon{opacity:1;transform:scale(0);color:#fff;-webkit-text-stroke:0;animation:icon .3s cubic-bezier(1,.008,.565,1.65) .1s 1 forwards}@keyframes icon{0%{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}\n"] }]
|
|
1751
1884
|
}], propDecorators: { active: [{
|
|
1752
1885
|
type: Input
|
|
1753
1886
|
}, {
|
|
@@ -1760,10 +1893,236 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1760
1893
|
args: ['click']
|
|
1761
1894
|
}] } });
|
|
1762
1895
|
|
|
1896
|
+
class PaginationConstants {
|
|
1897
|
+
}
|
|
1898
|
+
PaginationConstants.DEFAULT_SIZE = 5;
|
|
1899
|
+
PaginationConstants.DEFAULT_PAGE = 1;
|
|
1900
|
+
PaginationConstants.DEFAULT_COUNT = 3;
|
|
1901
|
+
|
|
1902
|
+
class PaginationService {
|
|
1903
|
+
constructor() {
|
|
1904
|
+
/**
|
|
1905
|
+
* Handle page changing
|
|
1906
|
+
*/
|
|
1907
|
+
this.pageSubject = new Subject();
|
|
1908
|
+
this.page$ = this.pageSubject.asObservable();
|
|
1909
|
+
}
|
|
1910
|
+
/** Need for init pagination observables */
|
|
1911
|
+
init(data$, page = PaginationConstants.DEFAULT_PAGE, pageSize = PaginationConstants.DEFAULT_SIZE) {
|
|
1912
|
+
if (isDefined(data$))
|
|
1913
|
+
this.initObservables(data$, page, pageSize);
|
|
1914
|
+
}
|
|
1915
|
+
/**
|
|
1916
|
+
* Move to page
|
|
1917
|
+
*/
|
|
1918
|
+
page(page) {
|
|
1919
|
+
this.pageSubject.next(page);
|
|
1920
|
+
}
|
|
1921
|
+
initObservables(data$, page, pageSize) {
|
|
1922
|
+
this.total$ = data$.pipe(map((p) => p.length));
|
|
1923
|
+
this.totalPages$ = this.total$.pipe(map((total) => Math.ceil(total / pageSize)));
|
|
1924
|
+
this.pagination$ = combineLatest([this.totalPages$, this.page$.pipe(startWith(page))])
|
|
1925
|
+
.pipe(map(([total, page]) => {
|
|
1926
|
+
return {
|
|
1927
|
+
page: page > total ? PaginationConstants.DEFAULT_PAGE : page,
|
|
1928
|
+
next: Math.min(page + 1, total),
|
|
1929
|
+
previous: Math.max(1, page - 1),
|
|
1930
|
+
total: total
|
|
1931
|
+
};
|
|
1932
|
+
}));
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
PaginationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1936
|
+
PaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationService, providedIn: 'root' });
|
|
1937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationService, decorators: [{
|
|
1938
|
+
type: Injectable,
|
|
1939
|
+
args: [{
|
|
1940
|
+
providedIn: 'root'
|
|
1941
|
+
}]
|
|
1942
|
+
}] });
|
|
1943
|
+
|
|
1944
|
+
class PaginationComponent {
|
|
1945
|
+
constructor(service) {
|
|
1946
|
+
this.service = service;
|
|
1947
|
+
this.faChevronLeft = faChevronLeft;
|
|
1948
|
+
this.faChevronRight = faChevronRight;
|
|
1949
|
+
// max limit for pagination bts
|
|
1950
|
+
this.count = PaginationConstants.DEFAULT_COUNT;
|
|
1951
|
+
/**
|
|
1952
|
+
* show full range of data
|
|
1953
|
+
*/
|
|
1954
|
+
this.full = false;
|
|
1955
|
+
/**
|
|
1956
|
+
* show first and last page's btn
|
|
1957
|
+
*/
|
|
1958
|
+
this.limits = false;
|
|
1959
|
+
}
|
|
1960
|
+
ngOnInit() {
|
|
1961
|
+
if (!isDefined(this.service.pagination$))
|
|
1962
|
+
this.service.init(this.data$);
|
|
1963
|
+
if (isDefined(this.service.pagination$)) {
|
|
1964
|
+
this.vm$ = this.service.pagination$.pipe(map((event) => {
|
|
1965
|
+
const range = this.initRange(event);
|
|
1966
|
+
return {
|
|
1967
|
+
range: range,
|
|
1968
|
+
any: event.total > 0,
|
|
1969
|
+
firstPage: this.showStartLimit(range, event),
|
|
1970
|
+
lastPage: this.showEndLimit(range, event),
|
|
1971
|
+
previousPage: event.page != PaginationConstants.DEFAULT_PAGE,
|
|
1972
|
+
nextPage: event.total > event.page,
|
|
1973
|
+
page: event.page,
|
|
1974
|
+
previous: event.previous,
|
|
1975
|
+
next: event.next,
|
|
1976
|
+
total: event.total
|
|
1977
|
+
};
|
|
1978
|
+
}));
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
onPageClick(page) {
|
|
1982
|
+
this.service.page(page);
|
|
1983
|
+
}
|
|
1984
|
+
get showLimitPages() {
|
|
1985
|
+
return this.limits && !this.full;
|
|
1986
|
+
}
|
|
1987
|
+
showStartLimit(range, event) {
|
|
1988
|
+
return this.showLimitPages && event.page !== PaginationConstants.DEFAULT_PAGE
|
|
1989
|
+
&& !hasItem(range, PaginationConstants.DEFAULT_PAGE);
|
|
1990
|
+
}
|
|
1991
|
+
showEndLimit(range, event) {
|
|
1992
|
+
return this.showLimitPages && event.total !== event.page && !hasItem(range, event.total);
|
|
1993
|
+
}
|
|
1994
|
+
initRange(event) {
|
|
1995
|
+
let start = 1, end = event.total + 1;
|
|
1996
|
+
if (!this.full) {
|
|
1997
|
+
const fullRange = this.range(1, event.total + 1), pageIndex = fullRange.indexOf(event.page), pageCount = Math.min(event.total, this.count);
|
|
1998
|
+
let rangeStart = 0, rangeEnd = 0;
|
|
1999
|
+
if (pageCount == PaginationConstants.DEFAULT_PAGE) {
|
|
2000
|
+
rangeStart = rangeEnd = pageIndex;
|
|
2001
|
+
}
|
|
2002
|
+
else {
|
|
2003
|
+
let allowedCount = pageCount - 1, partValue = Math.ceil(allowedCount / 2), leftValue = pageIndex - partValue < 0 ? pageIndex : partValue, rightToExtend = allowedCount - leftValue, rightValue = rightToExtend < 0 ? 0 : rightToExtend;
|
|
2004
|
+
if (pageIndex + rightValue >= event.total)
|
|
2005
|
+
leftValue += pageIndex + rightValue - event.total + 1;
|
|
2006
|
+
rangeStart = pageIndex - leftValue;
|
|
2007
|
+
rangeEnd = pageIndex + rightValue;
|
|
2008
|
+
}
|
|
2009
|
+
start = rangeStart + 1;
|
|
2010
|
+
end = Math.min(event.total + 1, rangeEnd + 2);
|
|
2011
|
+
}
|
|
2012
|
+
return this.range(start, end);
|
|
2013
|
+
}
|
|
2014
|
+
range(start, stop, step = 1) {
|
|
2015
|
+
if (!stop) {
|
|
2016
|
+
start = 0;
|
|
2017
|
+
stop = start;
|
|
2018
|
+
}
|
|
2019
|
+
return Array.from(new Array(Number((stop - start) / step)), (_, i) => start + i * step);
|
|
2020
|
+
}
|
|
2021
|
+
}
|
|
2022
|
+
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationComponent, deps: [{ token: PaginationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2023
|
+
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: PaginationComponent, selector: "sfc-pagination", inputs: { count: "count", full: "full", limits: "limits", data$: "data$" }, ngImport: i0, template: "<div class=\"container\" *ngIf=\"vm$ | async as vm\">\r\n <sfc-delimeter></sfc-delimeter>\r\n <ul *ngIf=\"vm.any\">\r\n <li [sfcShowHideElement]=\"vm.previousPage\" (click)=\"onPageClick(vm.previous)\">\r\n <button class=\"limit\">\r\n <fa-icon [icon]=\"faChevronLeft\"></fa-icon>\r\n </button>\r\n </li>\r\n <li *ngIf=\"vm.firstPage\" (click)=\"onPageClick(1)\">\r\n <button>1</button>\r\n </li>\r\n <li *ngIf=\"vm.firstPage\">\r\n <span>...</span>\r\n </li>\r\n <li *ngFor=\"let page of vm.range\" (click)=\"onPageClick(page)\">\r\n <button [class.active]=\"vm.page === page\">{{page}}</button>\r\n </li>\r\n <li *ngIf=\"vm.lastPage\">\r\n <span>...</span>\r\n </li>\r\n <li *ngIf=\"vm.lastPage\" (click)=\"onPageClick(vm.total)\">\r\n <button>{{vm.total}}</button>\r\n </li>\r\n <li [sfcShowHideElement]=\"vm.nextPage\" (click)=\"onPageClick(vm.next)\">\r\n <button class=\"limit\">\r\n <fa-icon [icon]=\"faChevronRight\"></fa-icon>\r\n </button>\r\n </li>\r\n </ul>\r\n <sfc-delimeter></sfc-delimeter>\r\n</div>", styles: [":host{width:100%;display:inline-block}:host .container{position:relative;text-align:center}:host .container ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;-webkit-user-select:none;user-select:none}:host .container ul li{display:block;float:left;padding:.31em}:host .container ul li:first-child{border:none}:host .container ul li button,:host .container ul li span{background:none;border:none;border-radius:50%;box-sizing:border-box;display:block;font-size:1em;height:2.5em;min-width:2.5em;line-height:2.5em;padding:0}:host .container ul li button,:host-context(.sfc-default-theme) :host .container ul li button,:host .container ul li span,:host-context(.sfc-default-theme) :host .container ul li span{color:#0009}:host-context(.sfc-dark-theme) :host .container ul li button,:host-context(.sfc-dark-theme) :host .container ul li span{color:#ccd1d9}:host .container ul li button{outline:none;position:relative;transition:all .17s linear}:host .container ul li button,:host-context(.sfc-default-theme) :host .container ul li button{color:#545e61}:host-context(.sfc-dark-theme) :host .container ul li button{color:#ccd1d9}:host .container ul li button:before{border-radius:50%;content:\"\";cursor:pointer;height:0;left:50%;opacity:0;position:absolute;transform:translate(-50%,-50%);transition:all .17s linear;top:50%;width:0}:host .container ul li button:before,:host-context(.sfc-default-theme) :host .container ul li button:before{background:#545e61}:host-context(.sfc-dark-theme) :host .container ul li button:before{background:#f5f7fa}:host .container ul li button:hover:not(.active),:host-context(.sfc-default-theme) :host .container ul li button:hover:not(.active){color:#545e61}:host-context(.sfc-dark-theme) :host .container ul li button:hover:not(.active){color:#ccd1d9}:host .container ul li button:hover:not(.active):before{animation:hover-animation .51s linear forwards;width:2.5em;height:2.5em}:host .container ul li button.active{color:#545e61!important}:host .container ul li button.active,:host-context(.sfc-default-theme) :host .container ul li button.active{background:#0000001a}:host-context(.sfc-dark-theme) :host .container ul li button.active{background:#f5f7fa}@keyframes hover-animation{0%{opacity:1}to{opacity:0}}\n"], components: [{ type: DelimeterComponent, selector: "sfc-delimeter" }, { type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: ShowHideElementDirective, selector: "[sfcShowHideElement]", inputs: ["sfcShowHideElement", "delay"] }, { type: i1$2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1$2.AsyncPipe } });
|
|
2024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
2025
|
+
type: Component,
|
|
2026
|
+
args: [{ selector: 'sfc-pagination', template: "<div class=\"container\" *ngIf=\"vm$ | async as vm\">\r\n <sfc-delimeter></sfc-delimeter>\r\n <ul *ngIf=\"vm.any\">\r\n <li [sfcShowHideElement]=\"vm.previousPage\" (click)=\"onPageClick(vm.previous)\">\r\n <button class=\"limit\">\r\n <fa-icon [icon]=\"faChevronLeft\"></fa-icon>\r\n </button>\r\n </li>\r\n <li *ngIf=\"vm.firstPage\" (click)=\"onPageClick(1)\">\r\n <button>1</button>\r\n </li>\r\n <li *ngIf=\"vm.firstPage\">\r\n <span>...</span>\r\n </li>\r\n <li *ngFor=\"let page of vm.range\" (click)=\"onPageClick(page)\">\r\n <button [class.active]=\"vm.page === page\">{{page}}</button>\r\n </li>\r\n <li *ngIf=\"vm.lastPage\">\r\n <span>...</span>\r\n </li>\r\n <li *ngIf=\"vm.lastPage\" (click)=\"onPageClick(vm.total)\">\r\n <button>{{vm.total}}</button>\r\n </li>\r\n <li [sfcShowHideElement]=\"vm.nextPage\" (click)=\"onPageClick(vm.next)\">\r\n <button class=\"limit\">\r\n <fa-icon [icon]=\"faChevronRight\"></fa-icon>\r\n </button>\r\n </li>\r\n </ul>\r\n <sfc-delimeter></sfc-delimeter>\r\n</div>", styles: [":host{width:100%;display:inline-block}:host .container{position:relative;text-align:center}:host .container ul{list-style:none;margin:0;padding:0;display:flex;justify-content:center;-webkit-user-select:none;user-select:none}:host .container ul li{display:block;float:left;padding:.31em}:host .container ul li:first-child{border:none}:host .container ul li button,:host .container ul li span{background:none;border:none;border-radius:50%;box-sizing:border-box;display:block;font-size:1em;height:2.5em;min-width:2.5em;line-height:2.5em;padding:0}:host .container ul li button,:host-context(.sfc-default-theme) :host .container ul li button,:host .container ul li span,:host-context(.sfc-default-theme) :host .container ul li span{color:#0009}:host-context(.sfc-dark-theme) :host .container ul li button,:host-context(.sfc-dark-theme) :host .container ul li span{color:#ccd1d9}:host .container ul li button{outline:none;position:relative;transition:all .17s linear}:host .container ul li button,:host-context(.sfc-default-theme) :host .container ul li button{color:#545e61}:host-context(.sfc-dark-theme) :host .container ul li button{color:#ccd1d9}:host .container ul li button:before{border-radius:50%;content:\"\";cursor:pointer;height:0;left:50%;opacity:0;position:absolute;transform:translate(-50%,-50%);transition:all .17s linear;top:50%;width:0}:host .container ul li button:before,:host-context(.sfc-default-theme) :host .container ul li button:before{background:#545e61}:host-context(.sfc-dark-theme) :host .container ul li button:before{background:#f5f7fa}:host .container ul li button:hover:not(.active),:host-context(.sfc-default-theme) :host .container ul li button:hover:not(.active){color:#545e61}:host-context(.sfc-dark-theme) :host .container ul li button:hover:not(.active){color:#ccd1d9}:host .container ul li button:hover:not(.active):before{animation:hover-animation .51s linear forwards;width:2.5em;height:2.5em}:host .container ul li button.active{color:#545e61!important}:host .container ul li button.active,:host-context(.sfc-default-theme) :host .container ul li button.active{background:#0000001a}:host-context(.sfc-dark-theme) :host .container ul li button.active{background:#f5f7fa}@keyframes hover-animation{0%{opacity:1}to{opacity:0}}\n"] }]
|
|
2027
|
+
}], ctorParameters: function () { return [{ type: PaginationService }]; }, propDecorators: { count: [{
|
|
2028
|
+
type: Input
|
|
2029
|
+
}], full: [{
|
|
2030
|
+
type: Input
|
|
2031
|
+
}], limits: [{
|
|
2032
|
+
type: Input
|
|
2033
|
+
}], data$: [{
|
|
2034
|
+
type: Input
|
|
2035
|
+
}] } });
|
|
2036
|
+
|
|
2037
|
+
class SortingConstants {
|
|
2038
|
+
}
|
|
2039
|
+
SortingConstants.DEFAULT_ASCENDING_ICON = faChevronUp;
|
|
2040
|
+
SortingConstants.DEFAULT_DESCENDING_ICON = faChevronDown;
|
|
2041
|
+
|
|
2042
|
+
class SortingService {
|
|
2043
|
+
constructor() {
|
|
2044
|
+
this.sortingSubject = new Subject();
|
|
2045
|
+
this.sorting$ = this.sortingSubject.asObservable();
|
|
2046
|
+
}
|
|
2047
|
+
sort(event) {
|
|
2048
|
+
this.sortingSubject.next(event);
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
SortingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2052
|
+
SortingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingService, providedIn: 'root' });
|
|
2053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingService, decorators: [{
|
|
2054
|
+
type: Injectable,
|
|
2055
|
+
args: [{
|
|
2056
|
+
providedIn: 'root'
|
|
2057
|
+
}]
|
|
2058
|
+
}] });
|
|
2059
|
+
|
|
2060
|
+
class SortingComponent {
|
|
2061
|
+
constructor(service) {
|
|
2062
|
+
this.service = service;
|
|
2063
|
+
this.SortingDirection = SortingDirection;
|
|
2064
|
+
this.id = CommonConstants.EMPTY_STRING;
|
|
2065
|
+
this.model = { active: false, enabled: false, direction: SortingDirection.Ascending };
|
|
2066
|
+
}
|
|
2067
|
+
get enabled() {
|
|
2068
|
+
return this.model.enabled;
|
|
2069
|
+
}
|
|
2070
|
+
get active() {
|
|
2071
|
+
return this.model.active || false;
|
|
2072
|
+
}
|
|
2073
|
+
sort() {
|
|
2074
|
+
if (this.enabled) {
|
|
2075
|
+
if (this.active) {
|
|
2076
|
+
this.model.direction = this.model.direction === SortingDirection.Ascending
|
|
2077
|
+
? SortingDirection.Descending
|
|
2078
|
+
: SortingDirection.Ascending;
|
|
2079
|
+
}
|
|
2080
|
+
this.service.sort({ id: this.id, direction: this.model.direction });
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
get icon() {
|
|
2084
|
+
const modelIcon = firstOrDefault(this.model.icons, i => i.direction == this.model.direction);
|
|
2085
|
+
return modelIcon ? modelIcon.icon : this.model.direction === SortingDirection.Ascending
|
|
2086
|
+
? SortingConstants.DEFAULT_ASCENDING_ICON : SortingConstants.DEFAULT_DESCENDING_ICON;
|
|
2087
|
+
}
|
|
2088
|
+
ngOnInit() {
|
|
2089
|
+
if (!isDefined(this.model))
|
|
2090
|
+
this.model = { active: false, enabled: false, direction: SortingDirection.Ascending };
|
|
2091
|
+
// subscribe to sort changes so we can react when other columns are sorted
|
|
2092
|
+
this._subscription = this.service.sorting$.subscribe(event => {
|
|
2093
|
+
// reset this column's sort direction to hide the sort icons
|
|
2094
|
+
if (this.id != event.id)
|
|
2095
|
+
this.model.direction = SortingDirection.Ascending;
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
ngOnDestroy() {
|
|
2099
|
+
this._subscription.unsubscribe();
|
|
2100
|
+
}
|
|
2101
|
+
}
|
|
2102
|
+
SortingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingComponent, deps: [{ token: SortingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2103
|
+
SortingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SortingComponent, selector: "sfc-sorting", inputs: { id: "id", model: "model" }, host: { listeners: { "click": "sort()" }, properties: { "class.enabled": "this.enabled", "class.active": "this.active" } }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div *ngIf=\"enabled\" class=\"icons\">\r\n <fa-icon [icon]=\"icon\"></fa-icon>\r\n </div>\r\n</div>", styles: [":host{cursor:default;text-overflow:ellipsis;overflow:hidden}:host.enabled{cursor:pointer}:host .container{display:flex;min-width:0}:host .container,:host-context(.sfc-default-theme) :host .container{color:#545e61}:host-context(.sfc-dark-theme) :host .container{color:#ccd1d9}:host .container:hover{color:#2bbbad}:host .container .content{display:flex;-webkit-user-select:none;user-select:none}:host .container .icons{margin:0 .31em;font-size:.7em;display:flex;align-items:center;transition:all .3s}:host.active .container{color:#2bbbad}\n"], components: [{ type: i1$1.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }], directives: [{ type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingComponent, decorators: [{
|
|
2105
|
+
type: Component,
|
|
2106
|
+
args: [{ selector: 'sfc-sorting', template: "<div class=\"container\">\r\n <div class=\"content\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div *ngIf=\"enabled\" class=\"icons\">\r\n <fa-icon [icon]=\"icon\"></fa-icon>\r\n </div>\r\n</div>", styles: [":host{cursor:default;text-overflow:ellipsis;overflow:hidden}:host.enabled{cursor:pointer}:host .container{display:flex;min-width:0}:host .container,:host-context(.sfc-default-theme) :host .container{color:#545e61}:host-context(.sfc-dark-theme) :host .container{color:#ccd1d9}:host .container:hover{color:#2bbbad}:host .container .content{display:flex;-webkit-user-select:none;user-select:none}:host .container .icons{margin:0 .31em;font-size:.7em;display:flex;align-items:center;transition:all .3s}:host.active .container{color:#2bbbad}\n"] }]
|
|
2107
|
+
}], ctorParameters: function () { return [{ type: SortingService }]; }, propDecorators: { id: [{
|
|
2108
|
+
type: Input
|
|
2109
|
+
}], model: [{
|
|
2110
|
+
type: Input
|
|
2111
|
+
}], enabled: [{
|
|
2112
|
+
type: HostBinding,
|
|
2113
|
+
args: [`class.${UIClass.Enabled}`]
|
|
2114
|
+
}], active: [{
|
|
2115
|
+
type: HostBinding,
|
|
2116
|
+
args: [`class.${UIClass.Active}`]
|
|
2117
|
+
}], sort: [{
|
|
2118
|
+
type: HostListener,
|
|
2119
|
+
args: ['click']
|
|
2120
|
+
}] } });
|
|
2121
|
+
|
|
1763
2122
|
class NgxSfcCommonModule {
|
|
1764
2123
|
}
|
|
1765
|
-
NgxSfcCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1766
|
-
NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.
|
|
2124
|
+
NgxSfcCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2125
|
+
NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, declarations: [
|
|
1767
2126
|
// directives
|
|
1768
2127
|
ClickOutsideDirective,
|
|
1769
2128
|
ShowHideElementDirective,
|
|
@@ -1771,10 +2130,19 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
1771
2130
|
TemplateReferenceDirective,
|
|
1772
2131
|
MouseDownDirective,
|
|
1773
2132
|
ComponentSizeDirective,
|
|
2133
|
+
DestroyParentDirective,
|
|
1774
2134
|
// components
|
|
1775
2135
|
ButtonComponent,
|
|
1776
2136
|
TooltipComponent,
|
|
1777
2137
|
DelimeterComponent,
|
|
2138
|
+
ToggleSwitcherComponent,
|
|
2139
|
+
CheckmarkComponent,
|
|
2140
|
+
TemplateContentComponent,
|
|
2141
|
+
CloseComponent,
|
|
2142
|
+
HamburgerComponent,
|
|
2143
|
+
DotsComponent,
|
|
2144
|
+
PaginationComponent,
|
|
2145
|
+
SortingComponent,
|
|
1778
2146
|
// loaders
|
|
1779
2147
|
BounceLoaderComponent,
|
|
1780
2148
|
CircleLoaderComponent,
|
|
@@ -1782,15 +2150,9 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
1782
2150
|
ModalComponent,
|
|
1783
2151
|
ModalOpenOnClickDirective,
|
|
1784
2152
|
DefaultModalHeaderComponent,
|
|
1785
|
-
DefaultModalFooterComponent,
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
// dots
|
|
1789
|
-
DotsComponent,
|
|
1790
|
-
//toggle
|
|
1791
|
-
ToggleSwitcherComponent,
|
|
1792
|
-
CheckmarkComponent], imports: [CommonModule,
|
|
1793
|
-
BrowserAnimationsModule], exports: [
|
|
2153
|
+
DefaultModalFooterComponent], imports: [CommonModule,
|
|
2154
|
+
BrowserAnimationsModule,
|
|
2155
|
+
FontAwesomeModule], exports: [
|
|
1794
2156
|
// directives
|
|
1795
2157
|
ClickOutsideDirective,
|
|
1796
2158
|
ShowHideElementDirective,
|
|
@@ -1798,10 +2160,19 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
1798
2160
|
TemplateReferenceDirective,
|
|
1799
2161
|
MouseDownDirective,
|
|
1800
2162
|
ComponentSizeDirective,
|
|
2163
|
+
DestroyParentDirective,
|
|
1801
2164
|
// components
|
|
1802
2165
|
ButtonComponent,
|
|
1803
2166
|
TooltipComponent,
|
|
1804
2167
|
DelimeterComponent,
|
|
2168
|
+
CloseComponent,
|
|
2169
|
+
CheckmarkComponent,
|
|
2170
|
+
TemplateContentComponent,
|
|
2171
|
+
ToggleSwitcherComponent,
|
|
2172
|
+
DotsComponent,
|
|
2173
|
+
HamburgerComponent,
|
|
2174
|
+
PaginationComponent,
|
|
2175
|
+
SortingComponent,
|
|
1805
2176
|
// loaders
|
|
1806
2177
|
BounceLoaderComponent,
|
|
1807
2178
|
CircleLoaderComponent,
|
|
@@ -1809,19 +2180,13 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
1809
2180
|
ModalComponent,
|
|
1810
2181
|
ModalOpenOnClickDirective,
|
|
1811
2182
|
DefaultModalHeaderComponent,
|
|
1812
|
-
DefaultModalFooterComponent
|
|
1813
|
-
|
|
1814
|
-
HamburgerComponent,
|
|
1815
|
-
// dots
|
|
1816
|
-
DotsComponent,
|
|
1817
|
-
//toggle
|
|
1818
|
-
ToggleSwitcherComponent,
|
|
1819
|
-
CheckmarkComponent] });
|
|
1820
|
-
NgxSfcCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: NgxSfcCommonModule, providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS], imports: [[
|
|
2183
|
+
DefaultModalFooterComponent] });
|
|
2184
|
+
NgxSfcCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS], imports: [[
|
|
1821
2185
|
CommonModule,
|
|
1822
|
-
BrowserAnimationsModule
|
|
2186
|
+
BrowserAnimationsModule,
|
|
2187
|
+
FontAwesomeModule
|
|
1823
2188
|
]] });
|
|
1824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
2189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, decorators: [{
|
|
1825
2190
|
type: NgModule,
|
|
1826
2191
|
args: [{
|
|
1827
2192
|
declarations: [
|
|
@@ -1832,10 +2197,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1832
2197
|
TemplateReferenceDirective,
|
|
1833
2198
|
MouseDownDirective,
|
|
1834
2199
|
ComponentSizeDirective,
|
|
2200
|
+
DestroyParentDirective,
|
|
1835
2201
|
// components
|
|
1836
2202
|
ButtonComponent,
|
|
1837
2203
|
TooltipComponent,
|
|
1838
2204
|
DelimeterComponent,
|
|
2205
|
+
ToggleSwitcherComponent,
|
|
2206
|
+
CheckmarkComponent,
|
|
2207
|
+
TemplateContentComponent,
|
|
2208
|
+
CloseComponent,
|
|
2209
|
+
HamburgerComponent,
|
|
2210
|
+
DotsComponent,
|
|
2211
|
+
PaginationComponent,
|
|
2212
|
+
SortingComponent,
|
|
1839
2213
|
// loaders
|
|
1840
2214
|
BounceLoaderComponent,
|
|
1841
2215
|
CircleLoaderComponent,
|
|
@@ -1843,18 +2217,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1843
2217
|
ModalComponent,
|
|
1844
2218
|
ModalOpenOnClickDirective,
|
|
1845
2219
|
DefaultModalHeaderComponent,
|
|
1846
|
-
DefaultModalFooterComponent
|
|
1847
|
-
// hamburger
|
|
1848
|
-
HamburgerComponent,
|
|
1849
|
-
// dots
|
|
1850
|
-
DotsComponent,
|
|
1851
|
-
//toggle
|
|
1852
|
-
ToggleSwitcherComponent,
|
|
1853
|
-
CheckmarkComponent
|
|
2220
|
+
DefaultModalFooterComponent
|
|
1854
2221
|
],
|
|
1855
2222
|
imports: [
|
|
1856
2223
|
CommonModule,
|
|
1857
|
-
BrowserAnimationsModule
|
|
2224
|
+
BrowserAnimationsModule,
|
|
2225
|
+
FontAwesomeModule
|
|
1858
2226
|
],
|
|
1859
2227
|
exports: [
|
|
1860
2228
|
// directives
|
|
@@ -1864,10 +2232,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1864
2232
|
TemplateReferenceDirective,
|
|
1865
2233
|
MouseDownDirective,
|
|
1866
2234
|
ComponentSizeDirective,
|
|
2235
|
+
DestroyParentDirective,
|
|
1867
2236
|
// components
|
|
1868
2237
|
ButtonComponent,
|
|
1869
2238
|
TooltipComponent,
|
|
1870
2239
|
DelimeterComponent,
|
|
2240
|
+
CloseComponent,
|
|
2241
|
+
CheckmarkComponent,
|
|
2242
|
+
TemplateContentComponent,
|
|
2243
|
+
ToggleSwitcherComponent,
|
|
2244
|
+
DotsComponent,
|
|
2245
|
+
HamburgerComponent,
|
|
2246
|
+
PaginationComponent,
|
|
2247
|
+
SortingComponent,
|
|
1871
2248
|
// loaders
|
|
1872
2249
|
BounceLoaderComponent,
|
|
1873
2250
|
CircleLoaderComponent,
|
|
@@ -1875,14 +2252,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1875
2252
|
ModalComponent,
|
|
1876
2253
|
ModalOpenOnClickDirective,
|
|
1877
2254
|
DefaultModalHeaderComponent,
|
|
1878
|
-
DefaultModalFooterComponent
|
|
1879
|
-
// hamburger
|
|
1880
|
-
HamburgerComponent,
|
|
1881
|
-
// dots
|
|
1882
|
-
DotsComponent,
|
|
1883
|
-
//toggle
|
|
1884
|
-
ToggleSwitcherComponent,
|
|
1885
|
-
CheckmarkComponent
|
|
2255
|
+
DefaultModalFooterComponent
|
|
1886
2256
|
],
|
|
1887
2257
|
providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS]
|
|
1888
2258
|
}]
|
|
@@ -1896,5 +2266,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1896
2266
|
* Generated bundle index. Do not edit.
|
|
1897
2267
|
*/
|
|
1898
2268
|
|
|
1899
|
-
export { BounceLoaderComponent, BrowserDocumentRef, BrowserWindowRef, ButtonComponent, ButtonType, CheckmarkComponent, CircleLoaderComponent, CircleLoaderType, ClickOutsideDirective, CommonConstants, ComponentSize, ComponentSizeDirective, DOCUMENT, DOCUMENT_PROVIDERS, DateTimeConstants, DefaultModalFooterComponent, DefaultModalHeaderComponent, DelimeterComponent, Direction, DocumentRef, DotsComponent, HamburgerComponent, LoaderService, MediaLimits, ModalComponent, ModalOpenOnClickDirective, ModalService, ModalTemplate, MouseDownDirective, NgxSfcCommonModule, Position, ResizeService, ShowHideElementDirective, SortingDirection, TemplateReferenceDirective, ThrowElementOnHoverDirective, ToggleSwitcherComponent, TooltipComponent, TooltipType, UIClass, UIConstants, WINDOW, WINDOW_PROVIDERS, WindowRef, addClasses, addItem, addPropertyToObject, all, any, browserDocumentProvider, browserWindowProvider, contains, distinct, documentFactory, documentProvider, firstItem, firstOrDefault, getCollectionOrEmpty, getCssLikeValue, getFileExtension, getFirstDayOfMonth, getFirstDayOfMonthByYearAndMonth, getFirstDayOfYear, getLastDayOfMonth, getLastDayOfMonthByYearAndMonth, getLastDayOfYear, getNextMonth, getNextYear, getPreviousMonth, getPreviousYear, getValueFromCssLikeValue, getWeeksNumberInMonth, hasItem, hasItemBy, hasObjectItem, isAsyncData, isDateGreat, isDateGreatOrEqual, isDateTimeGreat, isDateTimeGreatOrEqual, isDefined, isEqualDates, isImage, isNullOrEmptyString, isObject, lastItem, max, mergeDeep, nameof, parseFileSize, readAsDataURL, remove, removeClasses, removeItem, removePropertyFromObject, setDay, setHours, setMinutes, setYear, skip, sortBy, sortByPath, sum, trim, updateItem, where, windowFactory, windowProvider };
|
|
2269
|
+
export { BounceLoaderComponent, BrowserDocumentRef, BrowserWindowRef, ButtonComponent, ButtonType, CheckmarkComponent, CircleLoaderComponent, CircleLoaderType, ClickOutsideDirective, CloseComponent, CommonConstants, ComponentSize, ComponentSizeDirective, DOCUMENT, DOCUMENT_PROVIDERS, DateTimeConstants, DefaultModalFooterComponent, DefaultModalHeaderComponent, DelimeterComponent, DestroyParentDirective, Direction, DocumentRef, DotsComponent, HamburgerComponent, LoaderService, MediaLimits, ModalComponent, ModalOpenOnClickDirective, ModalService, ModalTemplate, MouseDownDirective, NgxSfcCommonModule, PaginationComponent, PaginationService, Position, ResizeService, ShowHideElementDirective, SortingComponent, SortingDirection, SortingService, TemplateContentComponent, TemplateReferenceDirective, Theme, ThrowElementOnHoverDirective, ToggleSwitcherComponent, TooltipComponent, TooltipType, UIClass, UIConstants, WINDOW, WINDOW_PROVIDERS, WindowRef, addClasses, addItem, addPropertyToObject, all, any, browserDocumentProvider, browserWindowProvider, contains, distinct, documentFactory, documentProvider, firstItem, firstOrDefault, getCalcValue, getCollectionOrEmpty, getCssLikeValue, getFileExtension, getFirstDayOfMonth, getFirstDayOfMonthByYearAndMonth, getFirstDayOfYear, getLastDayOfMonth, getLastDayOfMonthByYearAndMonth, getLastDayOfYear, getNextMonth, getNextYear, getPreviousMonth, getPreviousYear, getValueFromCssLikeValue, getWeeksNumberInMonth, hasItem, hasItemBy, hasObjectItem, hexToRgb, isAsyncData, isDateGreat, isDateGreatOrEqual, isDateTimeGreat, isDateTimeGreatOrEqual, isDefined, isEqualDates, isImage, isNullOrEmptyString, isNumeric, isObject, lastItem, max, mergeDeep, nameof, parseFileSize, readAsDataURL, remove, removeClasses, removeItem, removePropertyFromObject, replaceRgbOpacity, rgbToHex, setDay, setHours, setMinutes, setYear, skip, sortBy, sortByPath, sum, trim, updateItem, where, windowFactory, windowProvider };
|
|
1900
2270
|
//# sourceMappingURL=ngx-sfc-common.mjs.map
|