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'
|
|
@@ -224,9 +314,9 @@ class ClickOutsideDirective {
|
|
|
224
314
|
return false;
|
|
225
315
|
}
|
|
226
316
|
}
|
|
227
|
-
ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
228
|
-
ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
317
|
+
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 });
|
|
318
|
+
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 });
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ClickOutsideDirective, decorators: [{
|
|
230
320
|
type: Directive,
|
|
231
321
|
args: [{
|
|
232
322
|
selector: '[sfcClickOutside]'
|
|
@@ -247,7 +337,8 @@ class CommonConstants {
|
|
|
247
337
|
}
|
|
248
338
|
CommonConstants.NOT_FOUND_INDEX = -1;
|
|
249
339
|
CommonConstants.EMPTY_STRING = '';
|
|
250
|
-
CommonConstants.MOUSE_BUTTON_LEFT = 0;
|
|
340
|
+
CommonConstants.MOUSE_BUTTON_LEFT = 0;
|
|
341
|
+
CommonConstants.FULL_PERCENTAGE = 100;
|
|
251
342
|
|
|
252
343
|
class DateTimeConstants {
|
|
253
344
|
}
|
|
@@ -265,13 +356,16 @@ UIConstants.CSS_DEGREES = 'deg';
|
|
|
265
356
|
UIConstants.CSS_EM = 'em';
|
|
266
357
|
UIConstants.CSS_VISIBILITY_VISIBLE = 'visible';
|
|
267
358
|
UIConstants.CSS_VISIBILITY_HIDDEN = 'hidden';
|
|
268
|
-
UIConstants.DEFAULT_THEME = 'sfc-default-theme';
|
|
269
|
-
UIConstants.DARK_THEME = 'sfc-dark-theme';
|
|
270
359
|
UIConstants.CSS_WIDTH = 'width';
|
|
271
360
|
UIConstants.CSS_LEFT = 'left';
|
|
361
|
+
UIConstants.CSS_RIGHT = 'right';
|
|
362
|
+
UIConstants.CSS_START = 'start';
|
|
363
|
+
UIConstants.CSS_END = 'end';
|
|
364
|
+
UIConstants.CSS_CENTER = 'center';
|
|
272
365
|
UIConstants.CSS_CLASS_FIXED = 'fixed';
|
|
273
366
|
UIConstants.CSS_CLASS_BACKGROUND = 'background';
|
|
274
|
-
UIConstants.CSS_CLASS_TOP = 'top';
|
|
367
|
+
UIConstants.CSS_CLASS_TOP = 'top';
|
|
368
|
+
UIConstants.RGB_OPACITY_PLACEHOLDER = '{opacity}';
|
|
275
369
|
|
|
276
370
|
class ShowHideElementDirective {
|
|
277
371
|
constructor(el) {
|
|
@@ -298,9 +392,9 @@ class ShowHideElementDirective {
|
|
|
298
392
|
linear`;
|
|
299
393
|
}
|
|
300
394
|
}
|
|
301
|
-
ShowHideElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
302
|
-
ShowHideElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
395
|
+
ShowHideElementDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ShowHideElementDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
396
|
+
ShowHideElementDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ShowHideElementDirective, selector: "[sfcShowHideElement]", inputs: { showHideElement: ["sfcShowHideElement", "showHideElement"], delay: "delay" }, ngImport: i0 });
|
|
397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ShowHideElementDirective, decorators: [{
|
|
304
398
|
type: Directive,
|
|
305
399
|
args: [{
|
|
306
400
|
selector: '[sfcShowHideElement]'
|
|
@@ -373,7 +467,7 @@ function removePropertyFromObject(obj, property) {
|
|
|
373
467
|
* @returns Merged object
|
|
374
468
|
*/
|
|
375
469
|
function mergeDeep(target, ...sources) {
|
|
376
|
-
if (!
|
|
470
|
+
if (!sources.length)
|
|
377
471
|
return target;
|
|
378
472
|
const source = sources.shift();
|
|
379
473
|
if (isObject(target) && isObject(source)) {
|
|
@@ -395,7 +489,15 @@ function mergeDeep(target, ...sources) {
|
|
|
395
489
|
* @param name KeyOf property
|
|
396
490
|
* @returns Type's property name
|
|
397
491
|
*/
|
|
398
|
-
const nameof = (name) => name;
|
|
492
|
+
const nameof = (name) => name;
|
|
493
|
+
/**
|
|
494
|
+
* Determines if the input is a Number or something that can be coerced to a Number
|
|
495
|
+
* @param - The input to be tested
|
|
496
|
+
* @returns - An indication if the input is a Number or can be coerced to a Number
|
|
497
|
+
*/
|
|
498
|
+
function isNumeric(number) {
|
|
499
|
+
return !isNaN(parseFloat(number));
|
|
500
|
+
}
|
|
399
501
|
|
|
400
502
|
/**
|
|
401
503
|
* Return true if string has value(not empty string)
|
|
@@ -403,7 +505,7 @@ const nameof = (name) => name;
|
|
|
403
505
|
* @returns True if string is not null and defined(not empty string)
|
|
404
506
|
*/
|
|
405
507
|
function isNullOrEmptyString(value) {
|
|
406
|
-
return isDefined(value) || value === CommonConstants.EMPTY_STRING;
|
|
508
|
+
return !isDefined(value) || value === CommonConstants.EMPTY_STRING;
|
|
407
509
|
}
|
|
408
510
|
/**
|
|
409
511
|
* Return true if value contains includeValue
|
|
@@ -698,6 +800,15 @@ function getCssLikeValue(value, type = UIConstants.CSS_PIXELS) {
|
|
|
698
800
|
function getValueFromCssLikeValue(value, type = UIConstants.CSS_PIXELS) {
|
|
699
801
|
return +value.replace(type, CommonConstants.EMPTY_STRING);
|
|
700
802
|
}
|
|
803
|
+
/**
|
|
804
|
+
* Return CCS like calc value
|
|
805
|
+
* @param value All value (100% by default)
|
|
806
|
+
* @param part Part value
|
|
807
|
+
* @returns Calc value
|
|
808
|
+
*/
|
|
809
|
+
function getCalcValue(part, value = 100) {
|
|
810
|
+
return `calc(${value}${UIConstants.CSS_PERCENTAGE} / ${part} )`;
|
|
811
|
+
}
|
|
701
812
|
/**
|
|
702
813
|
* Add classes to HTML element
|
|
703
814
|
* @param element HTML element
|
|
@@ -717,76 +828,41 @@ function removeClasses(element, ...classNames) {
|
|
|
717
828
|
if (isDefined(element)) {
|
|
718
829
|
classNames.forEach((className) => element.classList.remove(className));
|
|
719
830
|
}
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
/**
|
|
723
|
-
* Component sizes
|
|
724
|
-
*/
|
|
725
|
-
var ComponentSize;
|
|
726
|
-
(function (ComponentSize) {
|
|
727
|
-
ComponentSize["Small"] = "small";
|
|
728
|
-
ComponentSize["Medium"] = "medium";
|
|
729
|
-
ComponentSize["Large"] = "large";
|
|
730
|
-
ComponentSize["Custom"] = "custom";
|
|
731
|
-
})(ComponentSize || (ComponentSize = {}));
|
|
732
|
-
/**
|
|
733
|
-
* Type of sorting
|
|
734
|
-
*/
|
|
735
|
-
var SortingDirection;
|
|
736
|
-
(function (SortingDirection) {
|
|
737
|
-
SortingDirection["Ascending"] = "ascending";
|
|
738
|
-
SortingDirection["Descending"] = "descending";
|
|
739
|
-
})(SortingDirection || (SortingDirection = {}));
|
|
740
|
-
/**
|
|
741
|
-
* UI classes
|
|
742
|
-
*/
|
|
743
|
-
var UIClass;
|
|
744
|
-
(function (UIClass) {
|
|
745
|
-
UIClass["Active"] = "active";
|
|
746
|
-
UIClass["Valid"] = "valid";
|
|
747
|
-
UIClass["Invalid"] = "invalid";
|
|
748
|
-
UIClass["Enabled"] = "enabled";
|
|
749
|
-
UIClass["Disabled"] = "disabled";
|
|
750
|
-
UIClass["Selected"] = "selected";
|
|
751
|
-
UIClass["Empty"] = "empty";
|
|
752
|
-
UIClass["Focus"] = "focus";
|
|
753
|
-
UIClass["Open"] = "open";
|
|
754
|
-
UIClass["Loading"] = "loading";
|
|
755
|
-
UIClass["Removed"] = "removed";
|
|
756
|
-
UIClass["Visible"] = "visible";
|
|
757
|
-
UIClass["Hidden"] = "hidden";
|
|
758
|
-
UIClass["Animated"] = "animated";
|
|
759
|
-
UIClass["Expanded"] = "expanded";
|
|
760
|
-
UIClass["Fixed"] = "fixed";
|
|
761
|
-
})(UIClass || (UIClass = {}));
|
|
762
|
-
;
|
|
831
|
+
}
|
|
763
832
|
/**
|
|
764
|
-
*
|
|
833
|
+
* Convert RGB color to HEX
|
|
834
|
+
* @param r Red
|
|
835
|
+
* @param g Green
|
|
836
|
+
* @param b Blue
|
|
837
|
+
* @returns HEX value
|
|
765
838
|
*/
|
|
766
|
-
|
|
767
|
-
(
|
|
768
|
-
|
|
769
|
-
Position["Bottom"] = "bottom";
|
|
770
|
-
Position["Left"] = "left";
|
|
771
|
-
Position["Right"] = "right";
|
|
772
|
-
})(Position || (Position = {}));
|
|
839
|
+
function rgbToHex(r, g, b) {
|
|
840
|
+
return "#" + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
|
|
841
|
+
}
|
|
773
842
|
/**
|
|
774
|
-
*
|
|
843
|
+
* Convert HEX to RGB value
|
|
844
|
+
* @param hex HEX value
|
|
845
|
+
* @returns RGB value
|
|
775
846
|
*/
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
847
|
+
function hexToRgb(hex) {
|
|
848
|
+
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
849
|
+
if (result) {
|
|
850
|
+
var r = parseInt(result[1], 16);
|
|
851
|
+
var g = parseInt(result[2], 16);
|
|
852
|
+
var b = parseInt(result[3], 16);
|
|
853
|
+
return `rgb(${r}, ${g}, ${b})`;
|
|
854
|
+
}
|
|
855
|
+
return null;
|
|
856
|
+
}
|
|
782
857
|
/**
|
|
783
|
-
*
|
|
858
|
+
* Set opacity for RGB value
|
|
859
|
+
* @param rgb Rgb value with {opacity} placeholder
|
|
860
|
+
* @param opacity Opacity value
|
|
861
|
+
* @returns RGB value with relevant opacity
|
|
784
862
|
*/
|
|
785
|
-
|
|
786
|
-
(
|
|
787
|
-
|
|
788
|
-
Direction["Vertical"] = "vertical";
|
|
789
|
-
})(Direction || (Direction = {}));
|
|
863
|
+
function replaceRgbOpacity(rgb, opacity) {
|
|
864
|
+
return rgb.replace(UIConstants.RGB_OPACITY_PLACEHOLDER, opacity.toString());
|
|
865
|
+
}
|
|
790
866
|
|
|
791
867
|
/**
|
|
792
868
|
* Return true if collection not empty
|
|
@@ -924,7 +1000,7 @@ function sortByPath(collection, path, direction) {
|
|
|
924
1000
|
i++;
|
|
925
1001
|
}
|
|
926
1002
|
return direction == SortingDirection.Ascending
|
|
927
|
-
? a
|
|
1003
|
+
? a >= b ? 1 : -1
|
|
928
1004
|
: a > b ? -1 : 1;
|
|
929
1005
|
});
|
|
930
1006
|
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(() => { var _a; return (_a = this.el.nativeElement.parentElement) === null || _a === void 0 ? void 0 : _a.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: [{
|
|
@@ -1229,11 +1332,11 @@ class TooltipComponent {
|
|
|
1229
1332
|
(_a = this._resizeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1230
1333
|
}
|
|
1231
1334
|
}
|
|
1232
|
-
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1233
|
-
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1335
|
+
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 });
|
|
1336
|
+
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"] });
|
|
1337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
1235
1338
|
type: Component,
|
|
1236
|
-
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 #
|
|
1339
|
+
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"] }]
|
|
1237
1340
|
}], ctorParameters: function () {
|
|
1238
1341
|
return [{ type: ResizeService }, { type: Window, decorators: [{
|
|
1239
1342
|
type: Inject,
|
|
@@ -1267,11 +1370,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1267
1370
|
|
|
1268
1371
|
class DelimeterComponent {
|
|
1269
1372
|
}
|
|
1270
|
-
DelimeterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1271
|
-
DelimeterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1373
|
+
DelimeterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DelimeterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1374
|
+
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"] });
|
|
1375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DelimeterComponent, decorators: [{
|
|
1273
1376
|
type: Component,
|
|
1274
|
-
args: [{ selector: 'sfc-delimeter', template: ``, styles: [":host{width:100%;height:.
|
|
1377
|
+
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"] }]
|
|
1275
1378
|
}] });
|
|
1276
1379
|
|
|
1277
1380
|
class LoaderConstants {
|
|
@@ -1342,9 +1445,9 @@ class LoaderService {
|
|
|
1342
1445
|
return null;
|
|
1343
1446
|
}
|
|
1344
1447
|
}
|
|
1345
|
-
LoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1346
|
-
LoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
1347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1448
|
+
LoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1449
|
+
LoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, providedIn: 'root' });
|
|
1450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, decorators: [{
|
|
1348
1451
|
type: Injectable,
|
|
1349
1452
|
args: [{
|
|
1350
1453
|
providedIn: 'root'
|
|
@@ -1384,9 +1487,9 @@ class LoaderBaseComponent {
|
|
|
1384
1487
|
return classes;
|
|
1385
1488
|
}
|
|
1386
1489
|
}
|
|
1387
|
-
LoaderBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1388
|
-
LoaderBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
1389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1490
|
+
LoaderBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderBaseComponent, deps: [{ token: LoaderService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1491
|
+
LoaderBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: LoaderBaseComponent, inputs: { id: "id", start: "start", background: "background" }, ngImport: i0 });
|
|
1492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderBaseComponent, decorators: [{
|
|
1390
1493
|
type: Directive
|
|
1391
1494
|
}], ctorParameters: function () { return [{ type: LoaderService }]; }, propDecorators: { id: [{
|
|
1392
1495
|
type: Input
|
|
@@ -1398,11 +1501,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1398
1501
|
|
|
1399
1502
|
class BounceLoaderComponent extends LoaderBaseComponent {
|
|
1400
1503
|
}
|
|
1401
|
-
BounceLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1402
|
-
BounceLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1504
|
+
BounceLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BounceLoaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1505
|
+
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 } });
|
|
1506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BounceLoaderComponent, decorators: [{
|
|
1404
1507
|
type: Component,
|
|
1405
|
-
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}
|
|
1508
|
+
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"] }]
|
|
1406
1509
|
}] });
|
|
1407
1510
|
|
|
1408
1511
|
var CircleLoaderType;
|
|
@@ -1417,11 +1520,11 @@ class CircleLoaderComponent extends LoaderBaseComponent {
|
|
|
1417
1520
|
this.type = CircleLoaderType.Default;
|
|
1418
1521
|
}
|
|
1419
1522
|
}
|
|
1420
|
-
CircleLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1421
|
-
CircleLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1523
|
+
CircleLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CircleLoaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1524
|
+
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 } });
|
|
1525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CircleLoaderComponent, decorators: [{
|
|
1423
1526
|
type: Component,
|
|
1424
|
-
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}
|
|
1527
|
+
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"] }]
|
|
1425
1528
|
}], propDecorators: { type: [{
|
|
1426
1529
|
type: Input
|
|
1427
1530
|
}] } });
|
|
@@ -1447,24 +1550,68 @@ class ModalService {
|
|
|
1447
1550
|
this.subjectOpen.next(options);
|
|
1448
1551
|
}
|
|
1449
1552
|
}
|
|
1450
|
-
ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1451
|
-
ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.
|
|
1452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1553
|
+
ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1554
|
+
ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalService, providedIn: 'root' });
|
|
1555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalService, decorators: [{
|
|
1453
1556
|
type: Injectable,
|
|
1454
1557
|
args: [{
|
|
1455
1558
|
providedIn: 'root'
|
|
1456
1559
|
}]
|
|
1457
1560
|
}] });
|
|
1458
1561
|
|
|
1562
|
+
class TemplateContentComponent {
|
|
1563
|
+
get showDefault() {
|
|
1564
|
+
return !isDefined(this.referenceContent)
|
|
1565
|
+
&& !isDefined(this.templateContent);
|
|
1566
|
+
}
|
|
1567
|
+
get templateContent() {
|
|
1568
|
+
var _a;
|
|
1569
|
+
const templateRef = firstOrDefault((_a = this.templatesContent) === null || _a === void 0 ? void 0 : _a.toArray(), t => t.templateName == this.templateType);
|
|
1570
|
+
return (templateRef === null || templateRef === void 0 ? void 0 : templateRef.template) || null;
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
TemplateContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TemplateContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1574
|
+
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"] }] });
|
|
1575
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TemplateContentComponent, decorators: [{
|
|
1576
|
+
type: Component,
|
|
1577
|
+
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>" }]
|
|
1578
|
+
}], propDecorators: { contextData: [{
|
|
1579
|
+
type: Input
|
|
1580
|
+
}], referenceContent: [{
|
|
1581
|
+
type: Input
|
|
1582
|
+
}], templateType: [{
|
|
1583
|
+
type: Input
|
|
1584
|
+
}], templatesContent: [{
|
|
1585
|
+
type: Input
|
|
1586
|
+
}], defaultContent: [{
|
|
1587
|
+
type: Input
|
|
1588
|
+
}] } });
|
|
1589
|
+
|
|
1590
|
+
class CloseComponent {
|
|
1591
|
+
constructor() {
|
|
1592
|
+
this.faTimes = faTimes;
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
CloseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1596
|
+
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"] }] });
|
|
1597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CloseComponent, decorators: [{
|
|
1598
|
+
type: Component,
|
|
1599
|
+
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"] }]
|
|
1600
|
+
}] });
|
|
1601
|
+
|
|
1459
1602
|
class DefaultModalHeaderComponent {
|
|
1460
1603
|
constructor(modalService) {
|
|
1461
1604
|
this.modalService = modalService;
|
|
1462
1605
|
this.DEFAULT_MODAL_HEADER_MODEL = {
|
|
1463
|
-
icon:
|
|
1606
|
+
icon: faWindowRestore,
|
|
1464
1607
|
showCloseIcon: true,
|
|
1465
1608
|
text: 'Modal'
|
|
1466
1609
|
};
|
|
1467
1610
|
}
|
|
1611
|
+
get icon() {
|
|
1612
|
+
var _a;
|
|
1613
|
+
return ((_a = this.model) === null || _a === void 0 ? void 0 : _a.icon) || faWindowRestore;
|
|
1614
|
+
}
|
|
1468
1615
|
ngOnInit() {
|
|
1469
1616
|
if (!isDefined(this.model))
|
|
1470
1617
|
this.model = this.DEFAULT_MODAL_HEADER_MODEL;
|
|
@@ -1473,11 +1620,11 @@ class DefaultModalHeaderComponent {
|
|
|
1473
1620
|
this.modalService.close();
|
|
1474
1621
|
}
|
|
1475
1622
|
}
|
|
1476
|
-
DefaultModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1477
|
-
DefaultModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1623
|
+
DefaultModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalHeaderComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1624
|
+
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"] }] });
|
|
1625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalHeaderComponent, decorators: [{
|
|
1479
1626
|
type: Component,
|
|
1480
|
-
args: [{ selector: 'sfc-default-modal-header', template: "<div class=\"container\">\r\n <
|
|
1627
|
+
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"] }]
|
|
1481
1628
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { model: [{
|
|
1482
1629
|
type: Input
|
|
1483
1630
|
}] } });
|
|
@@ -1513,9 +1660,9 @@ class DefaultModalFooterComponent {
|
|
|
1513
1660
|
this.modalService.close();
|
|
1514
1661
|
}
|
|
1515
1662
|
}
|
|
1516
|
-
DefaultModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1517
|
-
DefaultModalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1518
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1663
|
+
DefaultModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalFooterComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1664
|
+
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"] }] });
|
|
1665
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalFooterComponent, decorators: [{
|
|
1519
1666
|
type: Component,
|
|
1520
1667
|
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"] }]
|
|
1521
1668
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { model: [{
|
|
@@ -1534,25 +1681,12 @@ class ModalComponent {
|
|
|
1534
1681
|
if (this.hideOnEsc)
|
|
1535
1682
|
this.close();
|
|
1536
1683
|
}
|
|
1537
|
-
getTemplate(template) {
|
|
1538
|
-
var _a;
|
|
1539
|
-
if (!isDefined(this.templates))
|
|
1540
|
-
return null;
|
|
1541
|
-
const templateRef = firstOrDefault((_a = this.templates) === null || _a === void 0 ? void 0 : _a.toArray(), t => t.templateName == template);
|
|
1542
|
-
return isDefined(templateRef) ? templateRef === null || templateRef === void 0 ? void 0 : templateRef.template : null;
|
|
1543
|
-
}
|
|
1544
|
-
isShowDefault(template) {
|
|
1545
|
-
return !isDefined(this.getTemplate(template))
|
|
1546
|
-
&& (template == ModalTemplate.Header
|
|
1547
|
-
? !isDefined(this.header)
|
|
1548
|
-
: !isDefined(this.footer));
|
|
1549
|
-
}
|
|
1550
1684
|
close() {
|
|
1551
1685
|
this.modalService.close();
|
|
1552
1686
|
}
|
|
1553
1687
|
}
|
|
1554
|
-
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1555
|
-
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1688
|
+
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1689
|
+
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: [
|
|
1556
1690
|
trigger('hideOverlay', [
|
|
1557
1691
|
state('initial', style({ opacity: 1, visibility: 'visible' })),
|
|
1558
1692
|
state('void', style({ opacity: 0, visibility: 'hidden' })),
|
|
@@ -1574,7 +1708,7 @@ ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version
|
|
|
1574
1708
|
transition('* => void', animate('400ms cubic-bezier(.55, 0, .1, 1)'))
|
|
1575
1709
|
])
|
|
1576
1710
|
] });
|
|
1577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalComponent, decorators: [{
|
|
1578
1712
|
type: Component,
|
|
1579
1713
|
args: [{ selector: 'sfc-modal', animations: [
|
|
1580
1714
|
trigger('hideOverlay', [
|
|
@@ -1597,7 +1731,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1597
1731
|
state('void', style({ opacity: 0, visibility: 'hidden', transform: 'scale(1.2)' })),
|
|
1598
1732
|
transition('* => void', animate('400ms cubic-bezier(.55, 0, .1, 1)'))
|
|
1599
1733
|
])
|
|
1600
|
-
], 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 <
|
|
1734
|
+
], 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"] }]
|
|
1601
1735
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { body: [{
|
|
1602
1736
|
type: Input
|
|
1603
1737
|
}], header: [{
|
|
@@ -1655,9 +1789,9 @@ class ModalOpenOnClickDirective {
|
|
|
1655
1789
|
this.elements.forEach(el => el.removeEventListener('click', this.clickHandler));
|
|
1656
1790
|
}
|
|
1657
1791
|
}
|
|
1658
|
-
ModalOpenOnClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1659
|
-
ModalOpenOnClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.
|
|
1660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1792
|
+
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 });
|
|
1793
|
+
ModalOpenOnClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ModalOpenOnClickDirective, selector: "[sfcModalOpenOnClick]", inputs: { modalOpenOnClick: ["sfcModalOpenOnClick", "modalOpenOnClick"] }, ngImport: i0 });
|
|
1794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalOpenOnClickDirective, decorators: [{
|
|
1661
1795
|
type: Directive,
|
|
1662
1796
|
args: [{
|
|
1663
1797
|
selector: '[sfcModalOpenOnClick]'
|
|
@@ -1673,11 +1807,11 @@ class HamburgerComponent {
|
|
|
1673
1807
|
this.onClick = () => this.open = !this.open;
|
|
1674
1808
|
}
|
|
1675
1809
|
}
|
|
1676
|
-
HamburgerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1677
|
-
HamburgerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1810
|
+
HamburgerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HamburgerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1811
|
+
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"] });
|
|
1812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HamburgerComponent, decorators: [{
|
|
1679
1813
|
type: Component,
|
|
1680
|
-
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}
|
|
1814
|
+
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"] }]
|
|
1681
1815
|
}], propDecorators: { open: [{
|
|
1682
1816
|
type: Input
|
|
1683
1817
|
}, {
|
|
@@ -1695,11 +1829,11 @@ class DotsComponent {
|
|
|
1695
1829
|
this.onClick = () => this.open = !this.open;
|
|
1696
1830
|
}
|
|
1697
1831
|
}
|
|
1698
|
-
DotsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1699
|
-
DotsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1700
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1832
|
+
DotsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DotsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1833
|
+
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"] });
|
|
1834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DotsComponent, decorators: [{
|
|
1701
1835
|
type: Component,
|
|
1702
|
-
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(
|
|
1836
|
+
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"] }]
|
|
1703
1837
|
}], propDecorators: { open: [{
|
|
1704
1838
|
type: Input
|
|
1705
1839
|
}, {
|
|
@@ -1723,11 +1857,11 @@ class ToggleSwitcherComponent {
|
|
|
1723
1857
|
this.rightModel = { label: 'Right' };
|
|
1724
1858
|
}
|
|
1725
1859
|
}
|
|
1726
|
-
ToggleSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1727
|
-
ToggleSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1860
|
+
ToggleSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ToggleSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1861
|
+
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"] }] });
|
|
1862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ToggleSwitcherComponent, decorators: [{
|
|
1729
1863
|
type: Component,
|
|
1730
|
-
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 <
|
|
1864
|
+
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"] }]
|
|
1731
1865
|
}], ctorParameters: function () { return []; }, propDecorators: { active: [{
|
|
1732
1866
|
type: Input
|
|
1733
1867
|
}, {
|
|
@@ -1745,15 +1879,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1745
1879
|
class CheckmarkComponent {
|
|
1746
1880
|
constructor() {
|
|
1747
1881
|
this.active = false;
|
|
1748
|
-
this.icon =
|
|
1882
|
+
this.icon = faCheck;
|
|
1749
1883
|
this.onClick = () => this.active = !this.active;
|
|
1750
1884
|
}
|
|
1751
1885
|
}
|
|
1752
|
-
CheckmarkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1753
|
-
CheckmarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.
|
|
1754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
1886
|
+
CheckmarkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CheckmarkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1887
|
+
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"] }] });
|
|
1888
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CheckmarkComponent, decorators: [{
|
|
1755
1889
|
type: Component,
|
|
1756
|
-
args: [{ selector: 'sfc-checkmark', template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <
|
|
1890
|
+
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"] }]
|
|
1757
1891
|
}], propDecorators: { active: [{
|
|
1758
1892
|
type: Input
|
|
1759
1893
|
}, {
|
|
@@ -1766,10 +1900,236 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1766
1900
|
args: ['click']
|
|
1767
1901
|
}] } });
|
|
1768
1902
|
|
|
1903
|
+
class PaginationConstants {
|
|
1904
|
+
}
|
|
1905
|
+
PaginationConstants.DEFAULT_SIZE = 5;
|
|
1906
|
+
PaginationConstants.DEFAULT_PAGE = 1;
|
|
1907
|
+
PaginationConstants.DEFAULT_COUNT = 3;
|
|
1908
|
+
|
|
1909
|
+
class PaginationService {
|
|
1910
|
+
constructor() {
|
|
1911
|
+
/**
|
|
1912
|
+
* Handle page changing
|
|
1913
|
+
*/
|
|
1914
|
+
this.pageSubject = new Subject();
|
|
1915
|
+
this.page$ = this.pageSubject.asObservable();
|
|
1916
|
+
}
|
|
1917
|
+
/** Need for init pagination observables */
|
|
1918
|
+
init(data$, page = PaginationConstants.DEFAULT_PAGE, pageSize = PaginationConstants.DEFAULT_SIZE) {
|
|
1919
|
+
if (isDefined(data$))
|
|
1920
|
+
this.initObservables(data$, page, pageSize);
|
|
1921
|
+
}
|
|
1922
|
+
/**
|
|
1923
|
+
* Move to page
|
|
1924
|
+
*/
|
|
1925
|
+
page(page) {
|
|
1926
|
+
this.pageSubject.next(page);
|
|
1927
|
+
}
|
|
1928
|
+
initObservables(data$, page, pageSize) {
|
|
1929
|
+
this.total$ = data$.pipe(map((p) => p.length));
|
|
1930
|
+
this.totalPages$ = this.total$.pipe(map((total) => Math.ceil(total / pageSize)));
|
|
1931
|
+
this.pagination$ = combineLatest([this.totalPages$, this.page$.pipe(startWith(page))])
|
|
1932
|
+
.pipe(map(([total, page]) => {
|
|
1933
|
+
return {
|
|
1934
|
+
page: page > total ? PaginationConstants.DEFAULT_PAGE : page,
|
|
1935
|
+
next: Math.min(page + 1, total),
|
|
1936
|
+
previous: Math.max(1, page - 1),
|
|
1937
|
+
total: total
|
|
1938
|
+
};
|
|
1939
|
+
}));
|
|
1940
|
+
}
|
|
1941
|
+
}
|
|
1942
|
+
PaginationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1943
|
+
PaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationService, providedIn: 'root' });
|
|
1944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationService, decorators: [{
|
|
1945
|
+
type: Injectable,
|
|
1946
|
+
args: [{
|
|
1947
|
+
providedIn: 'root'
|
|
1948
|
+
}]
|
|
1949
|
+
}] });
|
|
1950
|
+
|
|
1951
|
+
class PaginationComponent {
|
|
1952
|
+
constructor(service) {
|
|
1953
|
+
this.service = service;
|
|
1954
|
+
this.faChevronLeft = faChevronLeft;
|
|
1955
|
+
this.faChevronRight = faChevronRight;
|
|
1956
|
+
// max limit for pagination bts
|
|
1957
|
+
this.count = PaginationConstants.DEFAULT_COUNT;
|
|
1958
|
+
/**
|
|
1959
|
+
* show full range of data
|
|
1960
|
+
*/
|
|
1961
|
+
this.full = false;
|
|
1962
|
+
/**
|
|
1963
|
+
* show first and last page's btn
|
|
1964
|
+
*/
|
|
1965
|
+
this.limits = false;
|
|
1966
|
+
}
|
|
1967
|
+
ngOnInit() {
|
|
1968
|
+
if (!isDefined(this.service.pagination$))
|
|
1969
|
+
this.service.init(this.data$);
|
|
1970
|
+
if (isDefined(this.service.pagination$)) {
|
|
1971
|
+
this.vm$ = this.service.pagination$.pipe(map((event) => {
|
|
1972
|
+
const range = this.initRange(event);
|
|
1973
|
+
return {
|
|
1974
|
+
range: range,
|
|
1975
|
+
any: event.total > 0,
|
|
1976
|
+
firstPage: this.showStartLimit(range, event),
|
|
1977
|
+
lastPage: this.showEndLimit(range, event),
|
|
1978
|
+
previousPage: event.page != PaginationConstants.DEFAULT_PAGE,
|
|
1979
|
+
nextPage: event.total > event.page,
|
|
1980
|
+
page: event.page,
|
|
1981
|
+
previous: event.previous,
|
|
1982
|
+
next: event.next,
|
|
1983
|
+
total: event.total
|
|
1984
|
+
};
|
|
1985
|
+
}));
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
onPageClick(page) {
|
|
1989
|
+
this.service.page(page);
|
|
1990
|
+
}
|
|
1991
|
+
get showLimitPages() {
|
|
1992
|
+
return this.limits && !this.full;
|
|
1993
|
+
}
|
|
1994
|
+
showStartLimit(range, event) {
|
|
1995
|
+
return this.showLimitPages && event.page !== PaginationConstants.DEFAULT_PAGE
|
|
1996
|
+
&& !hasItem(range, PaginationConstants.DEFAULT_PAGE);
|
|
1997
|
+
}
|
|
1998
|
+
showEndLimit(range, event) {
|
|
1999
|
+
return this.showLimitPages && event.total !== event.page && !hasItem(range, event.total);
|
|
2000
|
+
}
|
|
2001
|
+
initRange(event) {
|
|
2002
|
+
let start = 1, end = event.total + 1;
|
|
2003
|
+
if (!this.full) {
|
|
2004
|
+
const fullRange = this.range(1, event.total + 1), pageIndex = fullRange.indexOf(event.page), pageCount = Math.min(event.total, this.count);
|
|
2005
|
+
let rangeStart = 0, rangeEnd = 0;
|
|
2006
|
+
if (pageCount == PaginationConstants.DEFAULT_PAGE) {
|
|
2007
|
+
rangeStart = rangeEnd = pageIndex;
|
|
2008
|
+
}
|
|
2009
|
+
else {
|
|
2010
|
+
let allowedCount = pageCount - 1, partValue = Math.ceil(allowedCount / 2), leftValue = pageIndex - partValue < 0 ? pageIndex : partValue, rightToExtend = allowedCount - leftValue, rightValue = rightToExtend < 0 ? 0 : rightToExtend;
|
|
2011
|
+
if (pageIndex + rightValue >= event.total)
|
|
2012
|
+
leftValue += pageIndex + rightValue - event.total + 1;
|
|
2013
|
+
rangeStart = pageIndex - leftValue;
|
|
2014
|
+
rangeEnd = pageIndex + rightValue;
|
|
2015
|
+
}
|
|
2016
|
+
start = rangeStart + 1;
|
|
2017
|
+
end = Math.min(event.total + 1, rangeEnd + 2);
|
|
2018
|
+
}
|
|
2019
|
+
return this.range(start, end);
|
|
2020
|
+
}
|
|
2021
|
+
range(start, stop, step = 1) {
|
|
2022
|
+
if (!stop) {
|
|
2023
|
+
start = 0;
|
|
2024
|
+
stop = start;
|
|
2025
|
+
}
|
|
2026
|
+
return Array.from(new Array(Number((stop - start) / step)), (_, i) => start + i * step);
|
|
2027
|
+
}
|
|
2028
|
+
}
|
|
2029
|
+
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationComponent, deps: [{ token: PaginationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2030
|
+
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 } });
|
|
2031
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
2032
|
+
type: Component,
|
|
2033
|
+
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"] }]
|
|
2034
|
+
}], ctorParameters: function () { return [{ type: PaginationService }]; }, propDecorators: { count: [{
|
|
2035
|
+
type: Input
|
|
2036
|
+
}], full: [{
|
|
2037
|
+
type: Input
|
|
2038
|
+
}], limits: [{
|
|
2039
|
+
type: Input
|
|
2040
|
+
}], data$: [{
|
|
2041
|
+
type: Input
|
|
2042
|
+
}] } });
|
|
2043
|
+
|
|
2044
|
+
class SortingConstants {
|
|
2045
|
+
}
|
|
2046
|
+
SortingConstants.DEFAULT_ASCENDING_ICON = faChevronUp;
|
|
2047
|
+
SortingConstants.DEFAULT_DESCENDING_ICON = faChevronDown;
|
|
2048
|
+
|
|
2049
|
+
class SortingService {
|
|
2050
|
+
constructor() {
|
|
2051
|
+
this.sortingSubject = new Subject();
|
|
2052
|
+
this.sorting$ = this.sortingSubject.asObservable();
|
|
2053
|
+
}
|
|
2054
|
+
sort(event) {
|
|
2055
|
+
this.sortingSubject.next(event);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
SortingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2059
|
+
SortingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingService, providedIn: 'root' });
|
|
2060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingService, decorators: [{
|
|
2061
|
+
type: Injectable,
|
|
2062
|
+
args: [{
|
|
2063
|
+
providedIn: 'root'
|
|
2064
|
+
}]
|
|
2065
|
+
}] });
|
|
2066
|
+
|
|
2067
|
+
class SortingComponent {
|
|
2068
|
+
constructor(service) {
|
|
2069
|
+
this.service = service;
|
|
2070
|
+
this.SortingDirection = SortingDirection;
|
|
2071
|
+
this.id = CommonConstants.EMPTY_STRING;
|
|
2072
|
+
this.model = { active: false, enabled: false, direction: SortingDirection.Ascending };
|
|
2073
|
+
}
|
|
2074
|
+
get enabled() {
|
|
2075
|
+
return this.model.enabled;
|
|
2076
|
+
}
|
|
2077
|
+
get active() {
|
|
2078
|
+
return this.model.active || false;
|
|
2079
|
+
}
|
|
2080
|
+
sort() {
|
|
2081
|
+
if (this.enabled) {
|
|
2082
|
+
if (this.active) {
|
|
2083
|
+
this.model.direction = this.model.direction === SortingDirection.Ascending
|
|
2084
|
+
? SortingDirection.Descending
|
|
2085
|
+
: SortingDirection.Ascending;
|
|
2086
|
+
}
|
|
2087
|
+
this.service.sort({ id: this.id, direction: this.model.direction });
|
|
2088
|
+
}
|
|
2089
|
+
}
|
|
2090
|
+
get icon() {
|
|
2091
|
+
const modelIcon = firstOrDefault(this.model.icons, i => i.direction == this.model.direction);
|
|
2092
|
+
return modelIcon ? modelIcon.icon : this.model.direction === SortingDirection.Ascending
|
|
2093
|
+
? SortingConstants.DEFAULT_ASCENDING_ICON : SortingConstants.DEFAULT_DESCENDING_ICON;
|
|
2094
|
+
}
|
|
2095
|
+
ngOnInit() {
|
|
2096
|
+
if (!isDefined(this.model))
|
|
2097
|
+
this.model = { active: false, enabled: false, direction: SortingDirection.Ascending };
|
|
2098
|
+
// subscribe to sort changes so we can react when other columns are sorted
|
|
2099
|
+
this._subscription = this.service.sorting$.subscribe(event => {
|
|
2100
|
+
// reset this column's sort direction to hide the sort icons
|
|
2101
|
+
if (this.id != event.id)
|
|
2102
|
+
this.model.direction = SortingDirection.Ascending;
|
|
2103
|
+
});
|
|
2104
|
+
}
|
|
2105
|
+
ngOnDestroy() {
|
|
2106
|
+
this._subscription.unsubscribe();
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
SortingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingComponent, deps: [{ token: SortingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2110
|
+
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"] }] });
|
|
2111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingComponent, decorators: [{
|
|
2112
|
+
type: Component,
|
|
2113
|
+
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"] }]
|
|
2114
|
+
}], ctorParameters: function () { return [{ type: SortingService }]; }, propDecorators: { id: [{
|
|
2115
|
+
type: Input
|
|
2116
|
+
}], model: [{
|
|
2117
|
+
type: Input
|
|
2118
|
+
}], enabled: [{
|
|
2119
|
+
type: HostBinding,
|
|
2120
|
+
args: [`class.${UIClass.Enabled}`]
|
|
2121
|
+
}], active: [{
|
|
2122
|
+
type: HostBinding,
|
|
2123
|
+
args: [`class.${UIClass.Active}`]
|
|
2124
|
+
}], sort: [{
|
|
2125
|
+
type: HostListener,
|
|
2126
|
+
args: ['click']
|
|
2127
|
+
}] } });
|
|
2128
|
+
|
|
1769
2129
|
class NgxSfcCommonModule {
|
|
1770
2130
|
}
|
|
1771
|
-
NgxSfcCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.
|
|
1772
|
-
NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.
|
|
2131
|
+
NgxSfcCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2132
|
+
NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, declarations: [
|
|
1773
2133
|
// directives
|
|
1774
2134
|
ClickOutsideDirective,
|
|
1775
2135
|
ShowHideElementDirective,
|
|
@@ -1777,10 +2137,19 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
1777
2137
|
TemplateReferenceDirective,
|
|
1778
2138
|
MouseDownDirective,
|
|
1779
2139
|
ComponentSizeDirective,
|
|
2140
|
+
DestroyParentDirective,
|
|
1780
2141
|
// components
|
|
1781
2142
|
ButtonComponent,
|
|
1782
2143
|
TooltipComponent,
|
|
1783
2144
|
DelimeterComponent,
|
|
2145
|
+
ToggleSwitcherComponent,
|
|
2146
|
+
CheckmarkComponent,
|
|
2147
|
+
TemplateContentComponent,
|
|
2148
|
+
CloseComponent,
|
|
2149
|
+
HamburgerComponent,
|
|
2150
|
+
DotsComponent,
|
|
2151
|
+
PaginationComponent,
|
|
2152
|
+
SortingComponent,
|
|
1784
2153
|
// loaders
|
|
1785
2154
|
BounceLoaderComponent,
|
|
1786
2155
|
CircleLoaderComponent,
|
|
@@ -1788,16 +2157,10 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
1788
2157
|
ModalComponent,
|
|
1789
2158
|
ModalOpenOnClickDirective,
|
|
1790
2159
|
DefaultModalHeaderComponent,
|
|
1791
|
-
DefaultModalFooterComponent
|
|
1792
|
-
// hamburger
|
|
1793
|
-
HamburgerComponent,
|
|
1794
|
-
// dots
|
|
1795
|
-
DotsComponent,
|
|
1796
|
-
//toggle
|
|
1797
|
-
ToggleSwitcherComponent,
|
|
1798
|
-
CheckmarkComponent
|
|
2160
|
+
DefaultModalFooterComponent
|
|
1799
2161
|
], imports: [CommonModule,
|
|
1800
|
-
BrowserAnimationsModule
|
|
2162
|
+
BrowserAnimationsModule,
|
|
2163
|
+
FontAwesomeModule], exports: [
|
|
1801
2164
|
// directives
|
|
1802
2165
|
ClickOutsideDirective,
|
|
1803
2166
|
ShowHideElementDirective,
|
|
@@ -1805,10 +2168,19 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
1805
2168
|
TemplateReferenceDirective,
|
|
1806
2169
|
MouseDownDirective,
|
|
1807
2170
|
ComponentSizeDirective,
|
|
2171
|
+
DestroyParentDirective,
|
|
1808
2172
|
// components
|
|
1809
2173
|
ButtonComponent,
|
|
1810
2174
|
TooltipComponent,
|
|
1811
2175
|
DelimeterComponent,
|
|
2176
|
+
CloseComponent,
|
|
2177
|
+
CheckmarkComponent,
|
|
2178
|
+
TemplateContentComponent,
|
|
2179
|
+
ToggleSwitcherComponent,
|
|
2180
|
+
DotsComponent,
|
|
2181
|
+
HamburgerComponent,
|
|
2182
|
+
PaginationComponent,
|
|
2183
|
+
SortingComponent,
|
|
1812
2184
|
// loaders
|
|
1813
2185
|
BounceLoaderComponent,
|
|
1814
2186
|
CircleLoaderComponent,
|
|
@@ -1816,20 +2188,14 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
1816
2188
|
ModalComponent,
|
|
1817
2189
|
ModalOpenOnClickDirective,
|
|
1818
2190
|
DefaultModalHeaderComponent,
|
|
1819
|
-
DefaultModalFooterComponent
|
|
1820
|
-
// hamburger
|
|
1821
|
-
HamburgerComponent,
|
|
1822
|
-
// dots
|
|
1823
|
-
DotsComponent,
|
|
1824
|
-
//toggle
|
|
1825
|
-
ToggleSwitcherComponent,
|
|
1826
|
-
CheckmarkComponent
|
|
2191
|
+
DefaultModalFooterComponent
|
|
1827
2192
|
] });
|
|
1828
|
-
NgxSfcCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.
|
|
2193
|
+
NgxSfcCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS], imports: [[
|
|
1829
2194
|
CommonModule,
|
|
1830
|
-
BrowserAnimationsModule
|
|
2195
|
+
BrowserAnimationsModule,
|
|
2196
|
+
FontAwesomeModule
|
|
1831
2197
|
]] });
|
|
1832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.
|
|
2198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, decorators: [{
|
|
1833
2199
|
type: NgModule,
|
|
1834
2200
|
args: [{
|
|
1835
2201
|
declarations: [
|
|
@@ -1840,10 +2206,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1840
2206
|
TemplateReferenceDirective,
|
|
1841
2207
|
MouseDownDirective,
|
|
1842
2208
|
ComponentSizeDirective,
|
|
2209
|
+
DestroyParentDirective,
|
|
1843
2210
|
// components
|
|
1844
2211
|
ButtonComponent,
|
|
1845
2212
|
TooltipComponent,
|
|
1846
2213
|
DelimeterComponent,
|
|
2214
|
+
ToggleSwitcherComponent,
|
|
2215
|
+
CheckmarkComponent,
|
|
2216
|
+
TemplateContentComponent,
|
|
2217
|
+
CloseComponent,
|
|
2218
|
+
HamburgerComponent,
|
|
2219
|
+
DotsComponent,
|
|
2220
|
+
PaginationComponent,
|
|
2221
|
+
SortingComponent,
|
|
1847
2222
|
// loaders
|
|
1848
2223
|
BounceLoaderComponent,
|
|
1849
2224
|
CircleLoaderComponent,
|
|
@@ -1851,18 +2226,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1851
2226
|
ModalComponent,
|
|
1852
2227
|
ModalOpenOnClickDirective,
|
|
1853
2228
|
DefaultModalHeaderComponent,
|
|
1854
|
-
DefaultModalFooterComponent
|
|
1855
|
-
// hamburger
|
|
1856
|
-
HamburgerComponent,
|
|
1857
|
-
// dots
|
|
1858
|
-
DotsComponent,
|
|
1859
|
-
//toggle
|
|
1860
|
-
ToggleSwitcherComponent,
|
|
1861
|
-
CheckmarkComponent
|
|
2229
|
+
DefaultModalFooterComponent
|
|
1862
2230
|
],
|
|
1863
2231
|
imports: [
|
|
1864
2232
|
CommonModule,
|
|
1865
|
-
BrowserAnimationsModule
|
|
2233
|
+
BrowserAnimationsModule,
|
|
2234
|
+
FontAwesomeModule
|
|
1866
2235
|
],
|
|
1867
2236
|
exports: [
|
|
1868
2237
|
// directives
|
|
@@ -1872,10 +2241,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1872
2241
|
TemplateReferenceDirective,
|
|
1873
2242
|
MouseDownDirective,
|
|
1874
2243
|
ComponentSizeDirective,
|
|
2244
|
+
DestroyParentDirective,
|
|
1875
2245
|
// components
|
|
1876
2246
|
ButtonComponent,
|
|
1877
2247
|
TooltipComponent,
|
|
1878
2248
|
DelimeterComponent,
|
|
2249
|
+
CloseComponent,
|
|
2250
|
+
CheckmarkComponent,
|
|
2251
|
+
TemplateContentComponent,
|
|
2252
|
+
ToggleSwitcherComponent,
|
|
2253
|
+
DotsComponent,
|
|
2254
|
+
HamburgerComponent,
|
|
2255
|
+
PaginationComponent,
|
|
2256
|
+
SortingComponent,
|
|
1879
2257
|
// loaders
|
|
1880
2258
|
BounceLoaderComponent,
|
|
1881
2259
|
CircleLoaderComponent,
|
|
@@ -1883,14 +2261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1883
2261
|
ModalComponent,
|
|
1884
2262
|
ModalOpenOnClickDirective,
|
|
1885
2263
|
DefaultModalHeaderComponent,
|
|
1886
|
-
DefaultModalFooterComponent
|
|
1887
|
-
// hamburger
|
|
1888
|
-
HamburgerComponent,
|
|
1889
|
-
// dots
|
|
1890
|
-
DotsComponent,
|
|
1891
|
-
//toggle
|
|
1892
|
-
ToggleSwitcherComponent,
|
|
1893
|
-
CheckmarkComponent
|
|
2264
|
+
DefaultModalFooterComponent
|
|
1894
2265
|
],
|
|
1895
2266
|
providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS]
|
|
1896
2267
|
}]
|
|
@@ -1904,5 +2275,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
|
|
|
1904
2275
|
* Generated bundle index. Do not edit.
|
|
1905
2276
|
*/
|
|
1906
2277
|
|
|
1907
|
-
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 };
|
|
2278
|
+
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 };
|
|
1908
2279
|
//# sourceMappingURL=ngx-sfc-common.mjs.map
|