ngx-sfc-common 0.0.3 → 0.0.5
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 +5 -5
- package/_ngx-sfc-common.styles.scss +26 -0
- package/esm2020/lib/components/button/button.component.mjs +9 -7
- package/esm2020/lib/components/checkmark/checkmark-type.enum.mjs +6 -0
- package/esm2020/lib/components/checkmark/checkmark.component.mjs +24 -9
- package/esm2020/lib/components/close/close.component.mjs +8 -3
- package/esm2020/lib/components/delimeter/delimeter.component.mjs +2 -2
- package/esm2020/lib/components/dots/dots.component.mjs +2 -2
- package/esm2020/lib/components/hamburger/hamburger.component.mjs +2 -2
- package/esm2020/lib/components/index.mjs +7 -2
- package/esm2020/lib/components/load-container/load-container.component.mjs +161 -0
- package/esm2020/lib/components/load-container/load-container.constants.mjs +5 -0
- package/esm2020/lib/components/load-container/load-container.enum.mjs +6 -0
- package/esm2020/lib/components/load-container/models/load-container.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-more-parameters.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-more.model.mjs +2 -0
- package/esm2020/lib/components/load-container/service/load-more.service.mjs +27 -0
- package/esm2020/lib/components/load-more-button/load-more-button.component.mjs +31 -0
- package/esm2020/lib/components/loader/bounce/bounce-loader.component.mjs +2 -2
- package/esm2020/lib/components/loader/circle/circle-loader.component.mjs +2 -2
- package/esm2020/lib/components/loader/service/loader.service.mjs +4 -4
- package/esm2020/lib/components/modal/directive/click/modal-open-on-click.directive.mjs +48 -0
- package/esm2020/lib/components/modal/directive/open/modal-open.directive.mjs +29 -0
- package/esm2020/lib/components/modal/footer/default/default-modal-footer.component.mjs +1 -1
- package/esm2020/lib/components/modal/header/default/default-modal-header.component.mjs +11 -6
- package/esm2020/lib/components/modal/header/default/default-modal-header.model.mjs +1 -1
- package/esm2020/lib/components/modal/modal.component.mjs +3 -3
- package/esm2020/lib/components/modal/service/modal.service.mjs +1 -1
- package/esm2020/lib/components/pagination/pagination.component.mjs +9 -5
- package/esm2020/lib/components/sorting/sorting.component.mjs +5 -4
- package/esm2020/lib/components/sorting/sorting.constants.mjs +4 -3
- package/esm2020/lib/components/sorting/sorting.model.mjs +1 -1
- package/esm2020/lib/components/toggle-switcher/toggle-switcher.component.mjs +11 -4
- package/esm2020/lib/components/toggle-switcher/toggle-switcher.model.mjs +1 -1
- package/esm2020/lib/constants/common.constants.mjs +2 -1
- package/esm2020/lib/constants/date-time.constants.mjs +3 -1
- package/esm2020/lib/constants/file.constants.mjs +2 -0
- package/esm2020/lib/constants/index.mjs +1 -1
- package/esm2020/lib/directives/component-size/component-size.directive.mjs +23 -10
- package/esm2020/lib/directives/dom-changes/dom-changes.directive.mjs +32 -0
- package/esm2020/lib/directives/index.mjs +4 -1
- package/esm2020/lib/directives/scroll-into-view/scroll-into-view.directive.mjs +29 -0
- package/esm2020/lib/directives/scroll-tracker/scroll-tracker.directive.mjs +39 -0
- package/esm2020/lib/enums/index.mjs +2 -1
- package/esm2020/lib/enums/sequence.enum.mjs +9 -0
- package/esm2020/lib/enums/sorting-direction.enum.mjs +1 -1
- package/esm2020/lib/enums/ui.enum.mjs +4 -1
- package/esm2020/lib/ngx-sfc-common.module.mjs +47 -10
- package/esm2020/lib/pipes/index.mjs +2 -0
- package/esm2020/lib/pipes/switch-multi-case/switch-multi-case.pipe.mjs +16 -0
- package/esm2020/lib/utils/collections.utils.mjs +30 -3
- package/esm2020/lib/utils/common.utils.mjs +9 -2
- package/esm2020/lib/utils/date-time.utils.mjs +57 -10
- package/esm2020/lib/utils/file.utils.mjs +4 -3
- package/esm2020/lib/utils/index.mjs +5 -5
- package/esm2020/lib/utils/ui.utils.mjs +9 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ngx-sfc-common.mjs +599 -78
- package/fesm2015/ngx-sfc-common.mjs.map +1 -1
- package/fesm2020/ngx-sfc-common.mjs +598 -78
- package/fesm2020/ngx-sfc-common.mjs.map +1 -1
- package/lib/components/button/button.component.d.ts +3 -2
- package/lib/components/checkmark/checkmark-type.enum.d.ts +4 -0
- package/lib/components/checkmark/checkmark.component.d.ts +7 -3
- package/lib/components/close/close.component.d.ts +1 -0
- package/lib/components/index.d.ts +11 -1
- package/lib/components/load-container/load-container.component.d.ts +49 -0
- package/lib/components/load-container/load-container.constants.d.ts +4 -0
- package/lib/components/load-container/load-container.enum.d.ts +4 -0
- package/lib/components/load-container/models/load-container.model.d.ts +11 -0
- package/lib/components/load-container/models/load-more-parameters.model.d.ts +4 -0
- package/lib/components/load-container/models/load-more.model.d.ts +4 -0
- package/lib/components/load-container/service/load-more.service.d.ts +12 -0
- package/lib/components/load-more-button/load-more-button.component.d.ts +12 -0
- package/lib/components/modal/directive/{modal-open-on-click.directive.d.ts → click/modal-open-on-click.directive.d.ts} +1 -1
- package/lib/components/modal/directive/open/modal-open.directive.d.ts +14 -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/service/modal.service.d.ts +1 -1
- package/lib/components/pagination/pagination.component.d.ts +2 -0
- package/lib/components/sorting/sorting.component.d.ts +2 -1
- package/lib/components/sorting/sorting.constants.d.ts +2 -2
- package/lib/components/sorting/sorting.model.d.ts +2 -1
- package/lib/components/toggle-switcher/toggle-switcher.component.d.ts +2 -1
- package/lib/components/toggle-switcher/toggle-switcher.model.d.ts +2 -1
- package/lib/constants/common.constants.d.ts +1 -0
- package/lib/constants/date-time.constants.d.ts +2 -0
- package/lib/constants/file.constants.d.ts +1 -0
- package/lib/constants/index.d.ts +1 -0
- package/lib/directives/component-size/component-size.directive.d.ts +7 -2
- package/lib/directives/dom-changes/dom-changes.directive.d.ts +12 -0
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/scroll-into-view/scroll-into-view.directive.d.ts +7 -0
- package/lib/directives/scroll-tracker/scroll-tracker.directive.d.ts +11 -0
- package/lib/enums/index.d.ts +1 -0
- package/lib/enums/sequence.enum.d.ts +7 -0
- package/lib/enums/ui.enum.d.ts +4 -1
- package/lib/ngx-sfc-common.module.d.ts +28 -20
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/switch-multi-case/switch-multi-case.pipe.d.ts +7 -0
- package/lib/utils/collections.utils.d.ts +16 -2
- package/lib/utils/common.utils.d.ts +5 -0
- package/lib/utils/date-time.utils.d.ts +26 -0
- package/lib/utils/index.d.ts +4 -4
- package/lib/utils/ui.utils.d.ts +6 -0
- package/package.json +5 -2
- package/public-api.d.ts +1 -0
- package/esm2020/lib/components/modal/directive/modal-open-on-click.directive.mjs +0 -50
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable, PLATFORM_ID, EventEmitter, Directive, Inject, Input, Output, HostListener, Component, HostBinding, ContentChildren, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1$
|
|
2
|
+
import { InjectionToken, Injectable, PLATFORM_ID, EventEmitter, Directive, Inject, Input, Output, HostListener, Pipe, Component, HostBinding, ContentChildren, ViewChild, NgModule } from '@angular/core';
|
|
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
|
|
6
|
+
import * as i1$1 from '@fortawesome/angular-fontawesome';
|
|
7
|
+
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
8
|
+
import { Subject, fromEvent, Observable, startWith, BehaviorSubject, filter, distinctUntilChanged, map, EMPTY, combineLatest, tap, switchMap, withLatestFrom, of } from 'rxjs';
|
|
7
9
|
import * as i1 from '@angular/platform-browser';
|
|
8
10
|
import { trigger, state, style, transition, group, query, animate, animateChild } from '@angular/animations';
|
|
11
|
+
import { faTimes, faWindowRestore, faCheck, faChevronLeft, faChevronRight, faChevronUp, faChevronDown, faChevronCircleDown } from '@fortawesome/free-solid-svg-icons';
|
|
9
12
|
|
|
10
13
|
/**
|
|
11
14
|
* Component sizes
|
|
@@ -75,6 +78,7 @@ var UIClass;
|
|
|
75
78
|
UIClass["Active"] = "active";
|
|
76
79
|
UIClass["Valid"] = "valid";
|
|
77
80
|
UIClass["Invalid"] = "invalid";
|
|
81
|
+
UIClass["InnerInvalid"] = "inner-invalid";
|
|
78
82
|
UIClass["Enabled"] = "enabled";
|
|
79
83
|
UIClass["Disabled"] = "disabled";
|
|
80
84
|
UIClass["Selected"] = "selected";
|
|
@@ -91,9 +95,20 @@ var UIClass;
|
|
|
91
95
|
UIClass["Bordered"] = "bordered";
|
|
92
96
|
UIClass["Even"] = "even";
|
|
93
97
|
UIClass["Pointer"] = "pointer";
|
|
98
|
+
UIClass["Default"] = "default";
|
|
99
|
+
UIClass["Initialization"] = "initialization";
|
|
94
100
|
})(UIClass || (UIClass = {}));
|
|
95
101
|
;
|
|
96
102
|
|
|
103
|
+
/**
|
|
104
|
+
* Sequence types
|
|
105
|
+
*/
|
|
106
|
+
var Sequence;
|
|
107
|
+
(function (Sequence) {
|
|
108
|
+
Sequence["Previous"] = "previous";
|
|
109
|
+
Sequence["Next"] = "next";
|
|
110
|
+
})(Sequence || (Sequence = {}));
|
|
111
|
+
|
|
97
112
|
/**
|
|
98
113
|
* Create a new injection token for injecting the Document into a component.
|
|
99
114
|
*/
|
|
@@ -332,12 +347,15 @@ class CommonConstants {
|
|
|
332
347
|
CommonConstants.NOT_FOUND_INDEX = -1;
|
|
333
348
|
CommonConstants.EMPTY_STRING = '';
|
|
334
349
|
CommonConstants.MOUSE_BUTTON_LEFT = 0;
|
|
335
|
-
CommonConstants.FULL_PERCENTAGE = 100;
|
|
350
|
+
CommonConstants.FULL_PERCENTAGE = 100;
|
|
351
|
+
CommonConstants.COMMON_TEXT_DELIMETER = '/';
|
|
336
352
|
|
|
337
353
|
class DateTimeConstants {
|
|
338
354
|
}
|
|
339
355
|
DateTimeConstants.DAYS_IN_WEEK = 7;
|
|
340
356
|
DateTimeConstants.HOURS_IN_SHORT_TIME = 12;
|
|
357
|
+
DateTimeConstants.HOURS_IN_TIME = 24;
|
|
358
|
+
DateTimeConstants.MIDNIGHT_HOUR = 0;
|
|
341
359
|
DateTimeConstants.MINUTES_IN_HOUR = 60;
|
|
342
360
|
DateTimeConstants.DAYS_OF_WEEK = ["S", "M", "T", "W", "T", "F", "S"];
|
|
343
361
|
DateTimeConstants.DAYS_OF_WEEK_3 = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
|
|
@@ -432,7 +450,7 @@ function isAsyncData(data) {
|
|
|
432
450
|
* @returns Extended object with new property
|
|
433
451
|
*/
|
|
434
452
|
function addPropertyToObject(obj, property, value = null) {
|
|
435
|
-
if (
|
|
453
|
+
if (isDefined(property) && !obj.hasOwnProperty(property)) {
|
|
436
454
|
let newObj = {};
|
|
437
455
|
newObj[property] = value;
|
|
438
456
|
obj = { ...obj, ...newObj };
|
|
@@ -491,6 +509,13 @@ const nameof = (name) => name;
|
|
|
491
509
|
*/
|
|
492
510
|
function isNumeric(number) {
|
|
493
511
|
return !isNaN(parseFloat(number));
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Return true if current browser is Chrome
|
|
515
|
+
* @returns If current browser is Chrome
|
|
516
|
+
*/
|
|
517
|
+
function isChromeBrowser() {
|
|
518
|
+
return /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
|
494
519
|
}
|
|
495
520
|
|
|
496
521
|
/**
|
|
@@ -529,8 +554,9 @@ function trim(value) {
|
|
|
529
554
|
* @returns Date with minute value
|
|
530
555
|
*/
|
|
531
556
|
function setMinutes(date, minute) {
|
|
532
|
-
date
|
|
533
|
-
|
|
557
|
+
const result = new Date(date);
|
|
558
|
+
result.setMinutes(minute);
|
|
559
|
+
return result;
|
|
534
560
|
}
|
|
535
561
|
/**
|
|
536
562
|
* Set hours for date
|
|
@@ -539,8 +565,9 @@ function setMinutes(date, minute) {
|
|
|
539
565
|
* @returns Date with hour value
|
|
540
566
|
*/
|
|
541
567
|
function setHours(date, hour) {
|
|
542
|
-
date
|
|
543
|
-
|
|
568
|
+
const result = new Date(date);
|
|
569
|
+
result.setHours(hour);
|
|
570
|
+
return result;
|
|
544
571
|
}
|
|
545
572
|
/**
|
|
546
573
|
* Set day for date value
|
|
@@ -560,8 +587,52 @@ function setDay(date, dayNumber) {
|
|
|
560
587
|
* @returns Date with year value
|
|
561
588
|
*/
|
|
562
589
|
function setYear(date, year) {
|
|
563
|
-
date
|
|
564
|
-
|
|
590
|
+
const result = new Date(date);
|
|
591
|
+
result.setFullYear(year);
|
|
592
|
+
return result;
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Set seconds for date
|
|
596
|
+
* @param date Date value
|
|
597
|
+
* @param value Seconds value
|
|
598
|
+
* @returns Date with minute value
|
|
599
|
+
*/
|
|
600
|
+
function setSeconds(date, value) {
|
|
601
|
+
const result = new Date(date);
|
|
602
|
+
result.setSeconds(value);
|
|
603
|
+
return result;
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Set milliseconds for date
|
|
607
|
+
* @param date Date value
|
|
608
|
+
* @param value Milliseconds value
|
|
609
|
+
* @returns Date with minute value
|
|
610
|
+
*/
|
|
611
|
+
function setMilliseconds(date, value) {
|
|
612
|
+
const result = new Date(date);
|
|
613
|
+
result.setMilliseconds(value);
|
|
614
|
+
return result;
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Set 0 for seconds and milliseconds of date
|
|
618
|
+
* @param date Date value
|
|
619
|
+
* @returns Date with minute value
|
|
620
|
+
*/
|
|
621
|
+
function setDefaultSecondsAndMiliseconds(date) {
|
|
622
|
+
const result = new Date(date);
|
|
623
|
+
result.setSeconds(0);
|
|
624
|
+
result.setMilliseconds(0);
|
|
625
|
+
return result;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* Get next date
|
|
629
|
+
* @param date Date value
|
|
630
|
+
* @returns Next date
|
|
631
|
+
*/
|
|
632
|
+
function getNextDate(date) {
|
|
633
|
+
const nextDate = new Date(date);
|
|
634
|
+
nextDate.setDate(date.getDate() + 1);
|
|
635
|
+
return nextDate;
|
|
565
636
|
}
|
|
566
637
|
/**
|
|
567
638
|
* Get next month as date
|
|
@@ -683,9 +754,10 @@ function getWeeksNumberInMonth(date) {
|
|
|
683
754
|
* @returns True if first and second date are equal
|
|
684
755
|
*/
|
|
685
756
|
function isEqualDates(date1, date2) {
|
|
686
|
-
date1
|
|
687
|
-
|
|
688
|
-
|
|
757
|
+
const date1Value = new Date(date1), date2Value = new Date(date2);
|
|
758
|
+
date1Value.setHours(0, 0, 0, 0);
|
|
759
|
+
date2Value.setHours(0, 0, 0, 0);
|
|
760
|
+
return date1Value.getTime() === date2Value.getTime();
|
|
689
761
|
}
|
|
690
762
|
/**
|
|
691
763
|
* Return true if first date greater than second date
|
|
@@ -767,7 +839,8 @@ function readAsDataURL(file, onLoad) {
|
|
|
767
839
|
reader.onload = () => onLoad(reader.result);
|
|
768
840
|
reader.readAsDataURL(file);
|
|
769
841
|
}
|
|
770
|
-
|
|
842
|
+
else
|
|
843
|
+
throw new Error('File utils | Read as data URL function --> File is empty.');
|
|
771
844
|
}
|
|
772
845
|
/**
|
|
773
846
|
* Return true if file is image
|
|
@@ -775,7 +848,7 @@ function readAsDataURL(file, onLoad) {
|
|
|
775
848
|
* @returns True if file is image
|
|
776
849
|
*/
|
|
777
850
|
function isImage(file) {
|
|
778
|
-
return (/\.(gif|jpe?g|jpg|tiff|png|webp|bmp)$/i).test(file.name);
|
|
851
|
+
return isDefined(file) && (/\.(gif|jpe?g|jpg|tiff|png|webp|bmp)$/i).test(file.name);
|
|
779
852
|
}
|
|
780
853
|
|
|
781
854
|
/**
|
|
@@ -803,6 +876,14 @@ function getValueFromCssLikeValue(value, type = UIConstants.CSS_PIXELS) {
|
|
|
803
876
|
function getCalcValue(part, value = 100) {
|
|
804
877
|
return `calc(${value}${UIConstants.CSS_PERCENTAGE} / ${part} )`;
|
|
805
878
|
}
|
|
879
|
+
/**
|
|
880
|
+
* Return CCS like rotate value
|
|
881
|
+
* @param value value as degrees
|
|
882
|
+
* @returns Rotate value
|
|
883
|
+
*/
|
|
884
|
+
function getRotateValue(value) {
|
|
885
|
+
return `rotate(${value}deg)`;
|
|
886
|
+
}
|
|
806
887
|
/**
|
|
807
888
|
* Add classes to HTML element
|
|
808
889
|
* @param element HTML element
|
|
@@ -955,6 +1036,14 @@ function skip(collection, page, size) {
|
|
|
955
1036
|
}
|
|
956
1037
|
return collection;
|
|
957
1038
|
}
|
|
1039
|
+
function sort(collection, direction = SortingDirection.Ascending) {
|
|
1040
|
+
if (any(collection)) {
|
|
1041
|
+
return direction == SortingDirection.Ascending
|
|
1042
|
+
? collection.sort((a, b) => a - b)
|
|
1043
|
+
: collection.sort((a, b) => b - a);
|
|
1044
|
+
}
|
|
1045
|
+
return collection;
|
|
1046
|
+
}
|
|
958
1047
|
/**
|
|
959
1048
|
* Return sorted collection of objects by property
|
|
960
1049
|
* @param collection Array of items
|
|
@@ -1063,13 +1152,26 @@ function addItem(collection, item, predicate) {
|
|
|
1063
1152
|
collection.push(item);
|
|
1064
1153
|
return true;
|
|
1065
1154
|
}
|
|
1155
|
+
/**
|
|
1156
|
+
* Delete item from collection
|
|
1157
|
+
* @param collection Array of items
|
|
1158
|
+
* @param item Item to delete
|
|
1159
|
+
* @returns True if successfully removed
|
|
1160
|
+
*/
|
|
1161
|
+
function removeItem(collection, item) {
|
|
1162
|
+
if (isDefined(item) && hasItem(collection, item)) {
|
|
1163
|
+
collection.splice(collection.indexOf(item), 1);
|
|
1164
|
+
return true;
|
|
1165
|
+
}
|
|
1166
|
+
return false;
|
|
1167
|
+
}
|
|
1066
1168
|
/**
|
|
1067
1169
|
* Delete item from collection by predicate
|
|
1068
1170
|
* @param collection Array of items
|
|
1069
1171
|
* @param predicate Function to define remove logic
|
|
1070
1172
|
* @returns True if successfully removed
|
|
1071
1173
|
*/
|
|
1072
|
-
function
|
|
1174
|
+
function removeItemBy(collection, predicate) {
|
|
1073
1175
|
const foundItem = firstOrDefault(collection, predicate);
|
|
1074
1176
|
if (isDefined(foundItem)) {
|
|
1075
1177
|
collection.splice(collection.indexOf(foundItem), 1);
|
|
@@ -1077,7 +1179,13 @@ function removeItem(collection, predicate) {
|
|
|
1077
1179
|
}
|
|
1078
1180
|
return false;
|
|
1079
1181
|
}
|
|
1080
|
-
|
|
1182
|
+
/**
|
|
1183
|
+
* Update item in collection by predicate
|
|
1184
|
+
* @param collection Array of items
|
|
1185
|
+
* @param predicate Function to define item for deleting
|
|
1186
|
+
* @returns True if successfully removed
|
|
1187
|
+
*/
|
|
1188
|
+
function updateItemBy(collection, predicate, newItem) {
|
|
1081
1189
|
const itemIndex = collection.findIndex(predicate);
|
|
1082
1190
|
if (itemIndex !== CommonConstants.NOT_FOUND_INDEX) {
|
|
1083
1191
|
const result = collection.slice(0);
|
|
@@ -1190,27 +1298,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1190
1298
|
class ComponentSizeDirective {
|
|
1191
1299
|
constructor(el) {
|
|
1192
1300
|
this.el = el;
|
|
1193
|
-
this.
|
|
1301
|
+
this._customSize = null;
|
|
1302
|
+
this.style.fontSize = getCssLikeValue(this.getSizeProportion(), UIConstants.CSS_EM);
|
|
1194
1303
|
}
|
|
1195
1304
|
set size(value) {
|
|
1196
|
-
this.
|
|
1305
|
+
this._size = value;
|
|
1306
|
+
this.style.fontSize = getCssLikeValue(this.getSizeProportion(), UIConstants.CSS_EM);
|
|
1307
|
+
}
|
|
1308
|
+
get size() {
|
|
1309
|
+
return this._size;
|
|
1197
1310
|
}
|
|
1198
1311
|
set customSize(value) {
|
|
1199
|
-
this.
|
|
1312
|
+
this._customSize = value;
|
|
1313
|
+
if (this._customSize)
|
|
1314
|
+
this.style.fontSize = getCssLikeValue(this._customSize, UIConstants.CSS_EM);
|
|
1315
|
+
}
|
|
1316
|
+
get customSize() {
|
|
1317
|
+
return this._customSize;
|
|
1318
|
+
}
|
|
1319
|
+
get proportion() {
|
|
1320
|
+
return this.customSize || this.getSizeProportion();
|
|
1200
1321
|
}
|
|
1201
1322
|
get style() {
|
|
1202
1323
|
return this.el.nativeElement.style;
|
|
1203
1324
|
}
|
|
1204
|
-
|
|
1205
|
-
switch (
|
|
1325
|
+
getSizeProportion() {
|
|
1326
|
+
switch (this.size) {
|
|
1206
1327
|
case ComponentSize.Small:
|
|
1207
|
-
return
|
|
1328
|
+
return 0.5;
|
|
1208
1329
|
case ComponentSize.Medium:
|
|
1209
|
-
return
|
|
1330
|
+
return 1;
|
|
1210
1331
|
case ComponentSize.Large:
|
|
1211
|
-
return
|
|
1332
|
+
return 2;
|
|
1212
1333
|
default:
|
|
1213
|
-
return
|
|
1334
|
+
return 1;
|
|
1214
1335
|
}
|
|
1215
1336
|
}
|
|
1216
1337
|
}
|
|
@@ -1253,6 +1374,111 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1253
1374
|
type: Input
|
|
1254
1375
|
}] } });
|
|
1255
1376
|
|
|
1377
|
+
class DomChangesDirective {
|
|
1378
|
+
constructor(elementRef) {
|
|
1379
|
+
this.elementRef = elementRef;
|
|
1380
|
+
this.sfcDomChanges = new EventEmitter();
|
|
1381
|
+
this.options = {
|
|
1382
|
+
attributes: true,
|
|
1383
|
+
childList: true,
|
|
1384
|
+
characterData: true
|
|
1385
|
+
};
|
|
1386
|
+
const element = this.elementRef.nativeElement;
|
|
1387
|
+
this.changes = new MutationObserver((mutations) => mutations.forEach((mutation) => this.sfcDomChanges.emit(mutation)));
|
|
1388
|
+
this.changes.observe(element, this.options);
|
|
1389
|
+
}
|
|
1390
|
+
ngOnDestroy() {
|
|
1391
|
+
this.changes.disconnect();
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
DomChangesDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DomChangesDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1395
|
+
DomChangesDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: DomChangesDirective, selector: "[sfcDomChanges]", inputs: { options: "options" }, outputs: { sfcDomChanges: "sfcDomChanges" }, ngImport: i0 });
|
|
1396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DomChangesDirective, decorators: [{
|
|
1397
|
+
type: Directive,
|
|
1398
|
+
args: [{
|
|
1399
|
+
selector: '[sfcDomChanges]'
|
|
1400
|
+
}]
|
|
1401
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { sfcDomChanges: [{
|
|
1402
|
+
type: Output
|
|
1403
|
+
}], options: [{
|
|
1404
|
+
type: Input
|
|
1405
|
+
}] } });
|
|
1406
|
+
|
|
1407
|
+
class ScrollTrackerDirective {
|
|
1408
|
+
constructor() {
|
|
1409
|
+
this.positions = [];
|
|
1410
|
+
this.sfcScrollTracker = new EventEmitter();
|
|
1411
|
+
}
|
|
1412
|
+
onScroll(event) {
|
|
1413
|
+
const position = this.getPosition(event);
|
|
1414
|
+
if (position && hasItem(this.positions, position))
|
|
1415
|
+
this.sfcScrollTracker.emit(position);
|
|
1416
|
+
}
|
|
1417
|
+
getPosition(event) {
|
|
1418
|
+
const tracker = event.target, limit = tracker.scrollHeight - tracker.clientHeight, scrollTopFixed = tracker.scrollTop.toFixed();
|
|
1419
|
+
if (scrollTopFixed >= limit)
|
|
1420
|
+
return Position.Bottom;
|
|
1421
|
+
else if (scrollTopFixed <= 0)
|
|
1422
|
+
return Position.Top;
|
|
1423
|
+
return null;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
ScrollTrackerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ScrollTrackerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1427
|
+
ScrollTrackerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ScrollTrackerDirective, selector: "[sfcScrollTracker]", inputs: { positions: "positions" }, outputs: { sfcScrollTracker: "sfcScrollTracker" }, host: { listeners: { "scroll": "onScroll($event)" } }, ngImport: i0 });
|
|
1428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ScrollTrackerDirective, decorators: [{
|
|
1429
|
+
type: Directive,
|
|
1430
|
+
args: [{
|
|
1431
|
+
selector: '[sfcScrollTracker]'
|
|
1432
|
+
}]
|
|
1433
|
+
}], propDecorators: { positions: [{
|
|
1434
|
+
type: Input
|
|
1435
|
+
}], sfcScrollTracker: [{
|
|
1436
|
+
type: Output
|
|
1437
|
+
}], onScroll: [{
|
|
1438
|
+
type: HostListener,
|
|
1439
|
+
args: ['scroll', ['$event']]
|
|
1440
|
+
}] } });
|
|
1441
|
+
|
|
1442
|
+
class ScrollIntoViewDirective {
|
|
1443
|
+
constructor() {
|
|
1444
|
+
this.options = { behavior: 'smooth', block: 'center', inline: 'start' };
|
|
1445
|
+
}
|
|
1446
|
+
set sfcScrollIntoView(value) {
|
|
1447
|
+
if (!isDefined(value))
|
|
1448
|
+
return;
|
|
1449
|
+
if (isChromeBrowser())
|
|
1450
|
+
value.scrollIntoViewIfNeeded();
|
|
1451
|
+
else
|
|
1452
|
+
value.scrollIntoView(this.options);
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
ScrollIntoViewDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ScrollIntoViewDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1456
|
+
ScrollIntoViewDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ScrollIntoViewDirective, selector: "[sfcScrollIntoView]", inputs: { sfcScrollIntoView: "sfcScrollIntoView", options: "options" }, ngImport: i0 });
|
|
1457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ScrollIntoViewDirective, decorators: [{
|
|
1458
|
+
type: Directive,
|
|
1459
|
+
args: [{
|
|
1460
|
+
selector: '[sfcScrollIntoView]'
|
|
1461
|
+
}]
|
|
1462
|
+
}], propDecorators: { sfcScrollIntoView: [{
|
|
1463
|
+
type: Input
|
|
1464
|
+
}], options: [{
|
|
1465
|
+
type: Input
|
|
1466
|
+
}] } });
|
|
1467
|
+
|
|
1468
|
+
class SwitchMultiCasePipe {
|
|
1469
|
+
transform(cases, switchOption) {
|
|
1470
|
+
return cases.includes(switchOption) ? switchOption : !switchOption;
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
SwitchMultiCasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SwitchMultiCasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1474
|
+
SwitchMultiCasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SwitchMultiCasePipe, name: "sfcSwitchMultiCase" });
|
|
1475
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SwitchMultiCasePipe, decorators: [{
|
|
1476
|
+
type: Pipe,
|
|
1477
|
+
args: [{
|
|
1478
|
+
name: 'sfcSwitchMultiCase'
|
|
1479
|
+
}]
|
|
1480
|
+
}] });
|
|
1481
|
+
|
|
1256
1482
|
var ButtonType;
|
|
1257
1483
|
(function (ButtonType) {
|
|
1258
1484
|
ButtonType["Bordered"] = "bordered";
|
|
@@ -1271,17 +1497,15 @@ class ButtonComponent {
|
|
|
1271
1497
|
}
|
|
1272
1498
|
get classes() {
|
|
1273
1499
|
const classes = {};
|
|
1274
|
-
if (this.disabled)
|
|
1275
|
-
classes[UIClass.Disabled] = true;
|
|
1276
1500
|
distinct(this.types).forEach(type => classes[type] = true);
|
|
1277
1501
|
return classes;
|
|
1278
1502
|
}
|
|
1279
1503
|
}
|
|
1280
1504
|
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1281
|
-
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 <
|
|
1505
|
+
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" }, host: { properties: { "class.disabled": "this.disabled" } }, 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}:host .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}:host .button:hover{color:#2bbbad;border-color:#2bbbad}:host .button .icon{padding:3px}:host .button .text{padding:3px;white-space:initial}:host .button .text:empty{display:none}:host.disabled{pointer-events:none}:host.disabled .button,:host-context(.sfc-default-theme) :host.disabled .button{color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button{color:#656d78}:host.disabled .button,:host-context(.sfc-default-theme) :host.disabled .button{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button{border-color:#656d78}\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"] }] });
|
|
1282
1506
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1283
1507
|
type: Component,
|
|
1284
|
-
args: [{ selector: 'sfc-button', template: "<a class=\"button\" [ngClass]=\"classes\">\r\n <
|
|
1508
|
+
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}:host .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}:host .button:hover{color:#2bbbad;border-color:#2bbbad}:host .button .icon{padding:3px}:host .button .text{padding:3px;white-space:initial}:host .button .text:empty{display:none}:host.disabled{pointer-events:none}:host.disabled .button,:host-context(.sfc-default-theme) :host.disabled .button{color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button{color:#656d78}:host.disabled .button,:host-context(.sfc-default-theme) :host.disabled .button{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button{border-color:#656d78}\n"] }]
|
|
1285
1509
|
}], propDecorators: { text: [{
|
|
1286
1510
|
type: Input
|
|
1287
1511
|
}], iconBefore: [{
|
|
@@ -1290,6 +1514,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1290
1514
|
type: Input
|
|
1291
1515
|
}], disabled: [{
|
|
1292
1516
|
type: Input
|
|
1517
|
+
}, {
|
|
1518
|
+
type: HostBinding,
|
|
1519
|
+
args: [`class.${UIClass.Disabled}`]
|
|
1293
1520
|
}], types: [{
|
|
1294
1521
|
type: Input
|
|
1295
1522
|
}] } });
|
|
@@ -1365,10 +1592,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1365
1592
|
class DelimeterComponent {
|
|
1366
1593
|
}
|
|
1367
1594
|
DelimeterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DelimeterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1368
|
-
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-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"] });
|
|
1595
|
+
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"] });
|
|
1369
1596
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DelimeterComponent, decorators: [{
|
|
1370
1597
|
type: Component,
|
|
1371
|
-
args: [{ selector: 'sfc-delimeter', template: ``, styles: [":host{display:inline-block;width:100%;height:1px;margin:.3em 0}: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"] }]
|
|
1598
|
+
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"] }]
|
|
1372
1599
|
}] });
|
|
1373
1600
|
|
|
1374
1601
|
class LoaderConstants {
|
|
@@ -1417,7 +1644,7 @@ class LoaderService {
|
|
|
1417
1644
|
*/
|
|
1418
1645
|
remove(id = LoaderConstants.GLOBAL_LOADER_ID) {
|
|
1419
1646
|
const loaders = this.loaderSubject.getValue();
|
|
1420
|
-
if (
|
|
1647
|
+
if (removeItemBy(loaders, loader => loader.id == id)) {
|
|
1421
1648
|
this.loaderSubject.next(loaders);
|
|
1422
1649
|
}
|
|
1423
1650
|
}
|
|
@@ -1429,7 +1656,7 @@ class LoaderService {
|
|
|
1429
1656
|
const loaders = this.loaderSubject.getValue(), ILoaderEvent = { id, status }, loader = firstOrDefault(loaders, (loader) => loader.id == id);
|
|
1430
1657
|
if (isDefined(loader) && loader?.status == status)
|
|
1431
1658
|
return this.selectLoaderById(id);
|
|
1432
|
-
const updatedLoaders =
|
|
1659
|
+
const updatedLoaders = updateItemBy(loaders, (loader) => loader.id == id, ILoaderEvent);
|
|
1433
1660
|
if (isDefined(updatedLoaders)) {
|
|
1434
1661
|
this.loaderSubject.next(updatedLoaders);
|
|
1435
1662
|
}
|
|
@@ -1496,10 +1723,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1496
1723
|
class BounceLoaderComponent extends LoaderBaseComponent {
|
|
1497
1724
|
}
|
|
1498
1725
|
BounceLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BounceLoaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1499
|
-
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}
|
|
1726
|
+
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 } });
|
|
1500
1727
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: BounceLoaderComponent, decorators: [{
|
|
1501
1728
|
type: Component,
|
|
1502
|
-
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}
|
|
1729
|
+
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"] }]
|
|
1503
1730
|
}] });
|
|
1504
1731
|
|
|
1505
1732
|
var CircleLoaderType;
|
|
@@ -1515,10 +1742,10 @@ class CircleLoaderComponent extends LoaderBaseComponent {
|
|
|
1515
1742
|
}
|
|
1516
1743
|
}
|
|
1517
1744
|
CircleLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CircleLoaderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1518
|
-
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}
|
|
1745
|
+
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 } });
|
|
1519
1746
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CircleLoaderComponent, decorators: [{
|
|
1520
1747
|
type: Component,
|
|
1521
|
-
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}
|
|
1748
|
+
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"] }]
|
|
1522
1749
|
}], propDecorators: { type: [{
|
|
1523
1750
|
type: Input
|
|
1524
1751
|
}] } });
|
|
@@ -1564,7 +1791,7 @@ class TemplateContentComponent {
|
|
|
1564
1791
|
}
|
|
1565
1792
|
}
|
|
1566
1793
|
TemplateContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TemplateContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1567
|
-
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$
|
|
1794
|
+
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"] }] });
|
|
1568
1795
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TemplateContentComponent, decorators: [{
|
|
1569
1796
|
type: Component,
|
|
1570
1797
|
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>" }]
|
|
@@ -1581,23 +1808,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1581
1808
|
}] } });
|
|
1582
1809
|
|
|
1583
1810
|
class CloseComponent {
|
|
1811
|
+
constructor() {
|
|
1812
|
+
this.faTimes = faTimes;
|
|
1813
|
+
}
|
|
1584
1814
|
}
|
|
1585
1815
|
CloseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1586
|
-
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 <
|
|
1816
|
+
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"] }] });
|
|
1587
1817
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CloseComponent, decorators: [{
|
|
1588
1818
|
type: Component,
|
|
1589
|
-
args: [{ selector: 'sfc-close', template: "<div class=\"container\">\r\n <
|
|
1819
|
+
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"] }]
|
|
1590
1820
|
}] });
|
|
1591
1821
|
|
|
1592
1822
|
class DefaultModalHeaderComponent {
|
|
1593
1823
|
constructor(modalService) {
|
|
1594
1824
|
this.modalService = modalService;
|
|
1595
1825
|
this.DEFAULT_MODAL_HEADER_MODEL = {
|
|
1596
|
-
icon:
|
|
1826
|
+
icon: faWindowRestore,
|
|
1597
1827
|
showCloseIcon: true,
|
|
1598
1828
|
text: 'Modal'
|
|
1599
1829
|
};
|
|
1600
1830
|
}
|
|
1831
|
+
get icon() {
|
|
1832
|
+
return this.model?.icon || faWindowRestore;
|
|
1833
|
+
}
|
|
1601
1834
|
ngOnInit() {
|
|
1602
1835
|
if (!isDefined(this.model))
|
|
1603
1836
|
this.model = this.DEFAULT_MODAL_HEADER_MODEL;
|
|
@@ -1607,10 +1840,10 @@ class DefaultModalHeaderComponent {
|
|
|
1607
1840
|
}
|
|
1608
1841
|
}
|
|
1609
1842
|
DefaultModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalHeaderComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1610
|
-
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 <
|
|
1843
|
+
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"] }] });
|
|
1611
1844
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalHeaderComponent, decorators: [{
|
|
1612
1845
|
type: Component,
|
|
1613
|
-
args: [{ selector: 'sfc-default-modal-header', template: "<div class=\"container\">\r\n <
|
|
1846
|
+
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"] }]
|
|
1614
1847
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { model: [{
|
|
1615
1848
|
type: Input
|
|
1616
1849
|
}] } });
|
|
@@ -1646,7 +1879,7 @@ class DefaultModalFooterComponent {
|
|
|
1646
1879
|
}
|
|
1647
1880
|
}
|
|
1648
1881
|
DefaultModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalFooterComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1649
|
-
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$
|
|
1882
|
+
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"] }] });
|
|
1650
1883
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DefaultModalFooterComponent, decorators: [{
|
|
1651
1884
|
type: Component,
|
|
1652
1885
|
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"] }]
|
|
@@ -1671,7 +1904,7 @@ class ModalComponent {
|
|
|
1671
1904
|
}
|
|
1672
1905
|
}
|
|
1673
1906
|
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1674
|
-
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\"
|
|
1907
|
+
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;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%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#545e61;flex-direction:row;display:flex;flex:0 0 auto;justify-content:center}.overlay .content>div.body{overflow-y:auto;flex:0}\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: [
|
|
1675
1908
|
trigger('hideOverlay', [
|
|
1676
1909
|
state('initial', style({ opacity: 1, visibility: 'visible' })),
|
|
1677
1910
|
state('void', style({ opacity: 0, visibility: 'hidden' })),
|
|
@@ -1716,7 +1949,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1716
1949
|
state('void', style({ opacity: 0, visibility: 'hidden', transform: 'scale(1.2)' })),
|
|
1717
1950
|
transition('* => void', animate('400ms cubic-bezier(.55, 0, .1, 1)'))
|
|
1718
1951
|
])
|
|
1719
|
-
], 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\"
|
|
1952
|
+
], 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;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%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#545e61;flex-direction:row;display:flex;flex:0 0 auto;justify-content:center}.overlay .content>div.body{overflow-y:auto;flex:0}\n"] }]
|
|
1720
1953
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { body: [{
|
|
1721
1954
|
type: Input
|
|
1722
1955
|
}], header: [{
|
|
@@ -1764,9 +1997,7 @@ class ModalOpenOnClickDirective {
|
|
|
1764
1997
|
}
|
|
1765
1998
|
ngOnInit() {
|
|
1766
1999
|
this._closeSubscription = this.modalService.close$
|
|
1767
|
-
.subscribe(() =>
|
|
1768
|
-
this.viewContainer.clear();
|
|
1769
|
-
});
|
|
2000
|
+
.subscribe(() => this.viewContainer.clear());
|
|
1770
2001
|
}
|
|
1771
2002
|
ngOnDestroy() {
|
|
1772
2003
|
this._closeSubscription?.unsubscribe();
|
|
@@ -1785,6 +2016,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1785
2016
|
args: ['sfcModalOpenOnClick']
|
|
1786
2017
|
}] } });
|
|
1787
2018
|
|
|
2019
|
+
class ModalOpenDirective {
|
|
2020
|
+
constructor(templateRef, viewContainer, modalService) {
|
|
2021
|
+
this.templateRef = templateRef;
|
|
2022
|
+
this.viewContainer = viewContainer;
|
|
2023
|
+
this.modalService = modalService;
|
|
2024
|
+
this._closeSubscription = this.modalService.close$.subscribe(() => this.viewContainer.clear());
|
|
2025
|
+
this._openSubscription = this.modalService.open$
|
|
2026
|
+
.subscribe(() => {
|
|
2027
|
+
this.viewContainer.clear();
|
|
2028
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
2029
|
+
});
|
|
2030
|
+
}
|
|
2031
|
+
ngOnDestroy() {
|
|
2032
|
+
this._closeSubscription.unsubscribe();
|
|
2033
|
+
this._openSubscription.unsubscribe();
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
ModalOpenDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalOpenDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: ModalService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2037
|
+
ModalOpenDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: ModalOpenDirective, selector: "[sfcModalOpen]", ngImport: i0 });
|
|
2038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ModalOpenDirective, decorators: [{
|
|
2039
|
+
type: Directive,
|
|
2040
|
+
args: [{
|
|
2041
|
+
selector: '[sfcModalOpen]'
|
|
2042
|
+
}]
|
|
2043
|
+
}], ctorParameters: function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: ModalService }]; } });
|
|
2044
|
+
|
|
1788
2045
|
class HamburgerComponent {
|
|
1789
2046
|
constructor() {
|
|
1790
2047
|
this.open = false;
|
|
@@ -1792,10 +2049,10 @@ class HamburgerComponent {
|
|
|
1792
2049
|
}
|
|
1793
2050
|
}
|
|
1794
2051
|
HamburgerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HamburgerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1795
|
-
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}
|
|
2052
|
+
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"] });
|
|
1796
2053
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HamburgerComponent, decorators: [{
|
|
1797
2054
|
type: Component,
|
|
1798
|
-
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}
|
|
2055
|
+
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"] }]
|
|
1799
2056
|
}], propDecorators: { open: [{
|
|
1800
2057
|
type: Input
|
|
1801
2058
|
}, {
|
|
@@ -1814,10 +2071,10 @@ class DotsComponent {
|
|
|
1814
2071
|
}
|
|
1815
2072
|
}
|
|
1816
2073
|
DotsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DotsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1817
|
-
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-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-context(.sfc-default-theme) :host:hover .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"] });
|
|
2074
|
+
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"] });
|
|
1818
2075
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DotsComponent, decorators: [{
|
|
1819
2076
|
type: Component,
|
|
1820
|
-
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-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-context(.sfc-default-theme) :host:hover .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"] }]
|
|
2077
|
+
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"] }]
|
|
1821
2078
|
}], propDecorators: { open: [{
|
|
1822
2079
|
type: Input
|
|
1823
2080
|
}, {
|
|
@@ -1836,21 +2093,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1836
2093
|
class ToggleSwitcherComponent {
|
|
1837
2094
|
constructor() {
|
|
1838
2095
|
this.active = false;
|
|
2096
|
+
this.disabled = false;
|
|
1839
2097
|
this.onClick = () => this.active = !this.active;
|
|
1840
2098
|
this.leftModel = { label: 'Left' };
|
|
1841
2099
|
this.rightModel = { label: 'Right' };
|
|
1842
2100
|
}
|
|
1843
2101
|
}
|
|
1844
2102
|
ToggleSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ToggleSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1845
|
-
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 <
|
|
2103
|
+
ToggleSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ToggleSwitcherComponent, selector: "sfc-toggle-switcher", inputs: { active: "active", disabled: "disabled", leftModel: "leftModel", rightModel: "rightModel" }, host: { listeners: { "click": "onClick()" }, properties: { "class.active": "this.active", "class.disabled": "this.disabled" } }, 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}:host.disabled{pointer-events:none}:host.disabled .container,:host-context(.sfc-default-theme) :host.disabled .container{background-color:#f6f6f6}:host-context(.sfc-dark-theme) :host.disabled .container{background-color:#656d78}:host.disabled .container .toggle{box-shadow:none}:host.disabled .container .toggle,:host-context(.sfc-default-theme) :host.disabled .container .toggle{background-color:#e6e9ed}:host-context(.sfc-dark-theme) :host.disabled .container .toggle{background-color:#aab2bd}:host.disabled .container .names,:host-context(.sfc-default-theme) :host.disabled .container .names{color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .container .names{color:#e9e9e9}\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"] }] });
|
|
1846
2104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ToggleSwitcherComponent, decorators: [{
|
|
1847
2105
|
type: Component,
|
|
1848
|
-
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 <
|
|
2106
|
+
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}:host.disabled{pointer-events:none}:host.disabled .container,:host-context(.sfc-default-theme) :host.disabled .container{background-color:#f6f6f6}:host-context(.sfc-dark-theme) :host.disabled .container{background-color:#656d78}:host.disabled .container .toggle{box-shadow:none}:host.disabled .container .toggle,:host-context(.sfc-default-theme) :host.disabled .container .toggle{background-color:#e6e9ed}:host-context(.sfc-dark-theme) :host.disabled .container .toggle{background-color:#aab2bd}:host.disabled .container .names,:host-context(.sfc-default-theme) :host.disabled .container .names{color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .container .names{color:#e9e9e9}\n"] }]
|
|
1849
2107
|
}], ctorParameters: function () { return []; }, propDecorators: { active: [{
|
|
1850
2108
|
type: Input
|
|
1851
2109
|
}, {
|
|
1852
2110
|
type: HostBinding,
|
|
1853
2111
|
args: ['class.' + UIClass.Active]
|
|
2112
|
+
}], disabled: [{
|
|
2113
|
+
type: Input
|
|
2114
|
+
}, {
|
|
2115
|
+
type: HostBinding,
|
|
2116
|
+
args: ['class.' + UIClass.Disabled]
|
|
1854
2117
|
}], leftModel: [{
|
|
1855
2118
|
type: Input
|
|
1856
2119
|
}], rightModel: [{
|
|
@@ -1860,28 +2123,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1860
2123
|
args: ['click']
|
|
1861
2124
|
}] } });
|
|
1862
2125
|
|
|
2126
|
+
var CheckmarkType;
|
|
2127
|
+
(function (CheckmarkType) {
|
|
2128
|
+
CheckmarkType["Square"] = "square";
|
|
2129
|
+
CheckmarkType["Rounded"] = "rounded";
|
|
2130
|
+
})(CheckmarkType || (CheckmarkType = {}));
|
|
2131
|
+
|
|
1863
2132
|
class CheckmarkComponent {
|
|
1864
2133
|
constructor() {
|
|
1865
2134
|
this.active = false;
|
|
1866
|
-
this.
|
|
1867
|
-
this.
|
|
2135
|
+
this.disabled = false;
|
|
2136
|
+
this.icon = faCheck;
|
|
2137
|
+
this.type = CheckmarkType.Rounded;
|
|
2138
|
+
this.showNotActive = true;
|
|
1868
2139
|
}
|
|
1869
2140
|
}
|
|
1870
2141
|
CheckmarkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CheckmarkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1871
|
-
CheckmarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CheckmarkComponent, selector: "sfc-checkmark", inputs: { active: "active", icon: "icon" }, host: {
|
|
2142
|
+
CheckmarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CheckmarkComponent, selector: "sfc-checkmark", inputs: { active: "active", disabled: "disabled", icon: "icon", type: "type", showNotActive: "showNotActive" }, host: { properties: { "class.active": "this.active", "class.disabled": "this.disabled", "class": "this.type" } }, ngImport: i0, template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <fa-icon *ngIf=\"showNotActive || active\" [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:.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,:host-context(.sfc-default-theme) :host .check{background:#fff}:host-context(.sfc-dark-theme) :host .check{background:transparent}: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)}}:host.rounded .check{border-radius:50%}:host.disabled{pointer-events:none}:host.disabled .check{color:#fff;border-style:dashed}:host.disabled .check,:host-context(.sfc-default-theme) :host.disabled .check{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .check{border-color:#656d78}:host.disabled.active .check,:host-context(.sfc-default-theme) :host.disabled.active .check{background:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled.active .check{background:#656d78}\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"] }] });
|
|
1872
2143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CheckmarkComponent, decorators: [{
|
|
1873
2144
|
type: Component,
|
|
1874
|
-
args: [{ selector: 'sfc-checkmark', template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <
|
|
2145
|
+
args: [{ selector: 'sfc-checkmark', template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <fa-icon *ngIf=\"showNotActive || active\" [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:.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,:host-context(.sfc-default-theme) :host .check{background:#fff}:host-context(.sfc-dark-theme) :host .check{background:transparent}: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)}}:host.rounded .check{border-radius:50%}:host.disabled{pointer-events:none}:host.disabled .check{color:#fff;border-style:dashed}:host.disabled .check,:host-context(.sfc-default-theme) :host.disabled .check{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .check{border-color:#656d78}:host.disabled.active .check,:host-context(.sfc-default-theme) :host.disabled.active .check{background:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled.active .check{background:#656d78}\n"] }]
|
|
1875
2146
|
}], propDecorators: { active: [{
|
|
1876
2147
|
type: Input
|
|
1877
2148
|
}, {
|
|
1878
2149
|
type: HostBinding,
|
|
1879
2150
|
args: ['class.' + UIClass.Active]
|
|
2151
|
+
}], disabled: [{
|
|
2152
|
+
type: Input
|
|
2153
|
+
}, {
|
|
2154
|
+
type: HostBinding,
|
|
2155
|
+
args: ['class.' + UIClass.Disabled]
|
|
1880
2156
|
}], icon: [{
|
|
1881
2157
|
type: Input
|
|
1882
|
-
}],
|
|
1883
|
-
type:
|
|
1884
|
-
|
|
2158
|
+
}], type: [{
|
|
2159
|
+
type: Input
|
|
2160
|
+
}, {
|
|
2161
|
+
type: HostBinding,
|
|
2162
|
+
args: ['class']
|
|
2163
|
+
}], showNotActive: [{
|
|
2164
|
+
type: Input
|
|
1885
2165
|
}] } });
|
|
1886
2166
|
|
|
1887
2167
|
class PaginationConstants {
|
|
@@ -1935,6 +2215,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
1935
2215
|
class PaginationComponent {
|
|
1936
2216
|
constructor(service) {
|
|
1937
2217
|
this.service = service;
|
|
2218
|
+
this.faChevronLeft = faChevronLeft;
|
|
2219
|
+
this.faChevronRight = faChevronRight;
|
|
1938
2220
|
// max limit for pagination bts
|
|
1939
2221
|
this.count = PaginationConstants.DEFAULT_COUNT;
|
|
1940
2222
|
/**
|
|
@@ -2009,10 +2291,10 @@ class PaginationComponent {
|
|
|
2009
2291
|
}
|
|
2010
2292
|
}
|
|
2011
2293
|
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationComponent, deps: [{ token: PaginationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2012
|
-
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 <
|
|
2294
|
+
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 } });
|
|
2013
2295
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
2014
2296
|
type: Component,
|
|
2015
|
-
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 <
|
|
2297
|
+
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"] }]
|
|
2016
2298
|
}], ctorParameters: function () { return [{ type: PaginationService }]; }, propDecorators: { count: [{
|
|
2017
2299
|
type: Input
|
|
2018
2300
|
}], full: [{
|
|
@@ -2025,8 +2307,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2025
2307
|
|
|
2026
2308
|
class SortingConstants {
|
|
2027
2309
|
}
|
|
2028
|
-
SortingConstants.DEFAULT_ASCENDING_ICON =
|
|
2029
|
-
SortingConstants.DEFAULT_DESCENDING_ICON =
|
|
2310
|
+
SortingConstants.DEFAULT_ASCENDING_ICON = faChevronUp;
|
|
2311
|
+
SortingConstants.DEFAULT_DESCENDING_ICON = faChevronDown;
|
|
2030
2312
|
|
|
2031
2313
|
class SortingService {
|
|
2032
2314
|
constructor() {
|
|
@@ -2089,10 +2371,10 @@ class SortingComponent {
|
|
|
2089
2371
|
}
|
|
2090
2372
|
}
|
|
2091
2373
|
SortingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingComponent, deps: [{ token: SortingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2092
|
-
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 <
|
|
2374
|
+
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"] }] });
|
|
2093
2375
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SortingComponent, decorators: [{
|
|
2094
2376
|
type: Component,
|
|
2095
|
-
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 <
|
|
2377
|
+
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"] }]
|
|
2096
2378
|
}], ctorParameters: function () { return [{ type: SortingService }]; }, propDecorators: { id: [{
|
|
2097
2379
|
type: Input
|
|
2098
2380
|
}], model: [{
|
|
@@ -2108,6 +2390,209 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2108
2390
|
args: ['click']
|
|
2109
2391
|
}] } });
|
|
2110
2392
|
|
|
2393
|
+
class LoadMoreService {
|
|
2394
|
+
constructor() {
|
|
2395
|
+
this.START_PAGE = 1;
|
|
2396
|
+
this._page = this.START_PAGE;
|
|
2397
|
+
this.moreSubject = new Subject();
|
|
2398
|
+
this.more$ = this.moreSubject.asObservable();
|
|
2399
|
+
}
|
|
2400
|
+
more() {
|
|
2401
|
+
this._page++;
|
|
2402
|
+
this.moreSubject.next(this._page);
|
|
2403
|
+
}
|
|
2404
|
+
reset() {
|
|
2405
|
+
this._page = this.START_PAGE;
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
LoadMoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoadMoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2409
|
+
LoadMoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoadMoreService, providedIn: 'root' });
|
|
2410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoadMoreService, decorators: [{
|
|
2411
|
+
type: Injectable,
|
|
2412
|
+
args: [{
|
|
2413
|
+
providedIn: 'root'
|
|
2414
|
+
}]
|
|
2415
|
+
}] });
|
|
2416
|
+
|
|
2417
|
+
var LoadContainerType;
|
|
2418
|
+
(function (LoadContainerType) {
|
|
2419
|
+
LoadContainerType["Dropdown"] = "dropdown";
|
|
2420
|
+
LoadContainerType["Table"] = "table";
|
|
2421
|
+
})(LoadContainerType || (LoadContainerType = {}));
|
|
2422
|
+
|
|
2423
|
+
class LoadContainerConstants {
|
|
2424
|
+
}
|
|
2425
|
+
LoadContainerConstants.DEFAULT_PAGE_SIZE = 5;
|
|
2426
|
+
LoadContainerConstants.DEFAULT_NOT_FOUND_LABEL = 'Not found';
|
|
2427
|
+
|
|
2428
|
+
class LoadMoreButtonComponent {
|
|
2429
|
+
constructor() {
|
|
2430
|
+
this.DEFAULT_LABEL = 'Show more';
|
|
2431
|
+
this.icon = faChevronCircleDown;
|
|
2432
|
+
this.more = new EventEmitter();
|
|
2433
|
+
}
|
|
2434
|
+
ngOnInit() {
|
|
2435
|
+
if (isNullOrEmptyString(this.label))
|
|
2436
|
+
this.label = this.DEFAULT_LABEL;
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
LoadMoreButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoadMoreButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2440
|
+
LoadMoreButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: LoadMoreButtonComponent, selector: "sfc-load-more-button", inputs: { label: "label", icon: "icon" }, outputs: { more: "more" }, ngImport: i0, template: "<div class=\"container\">\r\n <sfc-delimeter></sfc-delimeter>\r\n <div class=\"button\" (sfcMouseDown)=\"more.emit($event)\">\r\n <fa-icon [icon]=\"icon\"></fa-icon>\r\n <span>{{label}}</span>\r\n </div>\r\n</div>", styles: [":host{cursor:default}:host .container{text-align:center}:host .container .button{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;cursor:pointer;color:#545e61;transition:color .5s;padding:.5em 0 1em}:host .container .button fa-icon{font-size:.7em;margin-right:.31em}:host .container .button span{font-size:.6em;font-weight:700;text-transform:uppercase}:host .container .button:hover{color:#2bbbad}\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: MouseDownDirective, selector: "[sfcMouseDown]", inputs: ["button"], outputs: ["sfcMouseDown"] }] });
|
|
2441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoadMoreButtonComponent, decorators: [{
|
|
2442
|
+
type: Component,
|
|
2443
|
+
args: [{ selector: 'sfc-load-more-button', template: "<div class=\"container\">\r\n <sfc-delimeter></sfc-delimeter>\r\n <div class=\"button\" (sfcMouseDown)=\"more.emit($event)\">\r\n <fa-icon [icon]=\"icon\"></fa-icon>\r\n <span>{{label}}</span>\r\n </div>\r\n</div>", styles: [":host{cursor:default}:host .container{text-align:center}:host .container .button{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;cursor:pointer;color:#545e61;transition:color .5s;padding:.5em 0 1em}:host .container .button fa-icon{font-size:.7em;margin-right:.31em}:host .container .button span{font-size:.6em;font-weight:700;text-transform:uppercase}:host .container .button:hover{color:#2bbbad}\n"] }]
|
|
2444
|
+
}], propDecorators: { label: [{
|
|
2445
|
+
type: Input
|
|
2446
|
+
}], icon: [{
|
|
2447
|
+
type: Input
|
|
2448
|
+
}], more: [{
|
|
2449
|
+
type: Output
|
|
2450
|
+
}] } });
|
|
2451
|
+
|
|
2452
|
+
class LoadContainerComponent {
|
|
2453
|
+
constructor(loaderService, loadMoreService) {
|
|
2454
|
+
this.loaderService = loaderService;
|
|
2455
|
+
this.loadMoreService = loadMoreService;
|
|
2456
|
+
this.ComponentSize = ComponentSize;
|
|
2457
|
+
this.Position = Position;
|
|
2458
|
+
this.type = LoadContainerType.Dropdown;
|
|
2459
|
+
this.open = false;
|
|
2460
|
+
this.size = LoadContainerConstants.DEFAULT_PAGE_SIZE;
|
|
2461
|
+
this.loadMore = true;
|
|
2462
|
+
this.showEmpty = true;
|
|
2463
|
+
this.showLoadMoreButton = true;
|
|
2464
|
+
this.notFoundLabel = LoadContainerConstants.DEFAULT_NOT_FOUND_LABEL;
|
|
2465
|
+
this.handleError = new EventEmitter();
|
|
2466
|
+
this.handleSuccess = new EventEmitter();
|
|
2467
|
+
this.handleLoading = new EventEmitter();
|
|
2468
|
+
this.next = false;
|
|
2469
|
+
this.empty = false;
|
|
2470
|
+
this._loading = false;
|
|
2471
|
+
}
|
|
2472
|
+
set model(model) {
|
|
2473
|
+
if (isDefined(model)) {
|
|
2474
|
+
const parameters$ = this.buildParameters(model.predicate$), data$ = isDefined(model.loader) ?
|
|
2475
|
+
this.buildDynamic(parameters$, model.loader) : this.buildStatic(parameters$, model);
|
|
2476
|
+
if (isDefined(this._subscription))
|
|
2477
|
+
this._subscription.unsubscribe();
|
|
2478
|
+
this._subscription = data$.subscribe({
|
|
2479
|
+
next: (result) => this.success(result),
|
|
2480
|
+
error: (error) => this.error(error)
|
|
2481
|
+
});
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
get scrollPosition() {
|
|
2485
|
+
return !this.allowLoadMore || this.showLoadMoreButton ? [] : [Position.Bottom];
|
|
2486
|
+
}
|
|
2487
|
+
get allowLoadMore() { return this.next && this.loadMore; }
|
|
2488
|
+
get hideLoadMoreButton() { return !(this.allowLoadMore && this.showLoadMoreButton); }
|
|
2489
|
+
get isEmpty() { return this.empty && this.showEmpty; }
|
|
2490
|
+
set loading(value) {
|
|
2491
|
+
this._loading = value;
|
|
2492
|
+
if (value)
|
|
2493
|
+
this.loaderService.show(this.id, true);
|
|
2494
|
+
else
|
|
2495
|
+
this.loaderService.hide(this.id);
|
|
2496
|
+
this.handleLoading.emit(value);
|
|
2497
|
+
}
|
|
2498
|
+
ngOnDestroy() {
|
|
2499
|
+
if (this._subscription)
|
|
2500
|
+
this._subscription.unsubscribe();
|
|
2501
|
+
}
|
|
2502
|
+
more(event) {
|
|
2503
|
+
event.preventDefault();
|
|
2504
|
+
this.loadMoreService.more();
|
|
2505
|
+
}
|
|
2506
|
+
onScroll() {
|
|
2507
|
+
if (this.allowLoadMore)
|
|
2508
|
+
this.loadMoreService.more();
|
|
2509
|
+
}
|
|
2510
|
+
success(result) {
|
|
2511
|
+
this.next = result.next;
|
|
2512
|
+
this.loading = false;
|
|
2513
|
+
this.empty = !any(result.items);
|
|
2514
|
+
this.handleSuccess.emit(result);
|
|
2515
|
+
}
|
|
2516
|
+
error(error) {
|
|
2517
|
+
this.loading = false;
|
|
2518
|
+
this.empty = false;
|
|
2519
|
+
this.handleError.emit(error);
|
|
2520
|
+
}
|
|
2521
|
+
buildParameters(predicate$) {
|
|
2522
|
+
const parameters$ = (predicate$ || EMPTY.pipe(startWith(null))).pipe(tap(() => {
|
|
2523
|
+
if (isDefined(this.contentEl))
|
|
2524
|
+
this.contentEl.nativeElement.scrollTop = 0;
|
|
2525
|
+
this.loadMoreService.reset();
|
|
2526
|
+
}), switchMap((value) => {
|
|
2527
|
+
return this.loadMoreService.more$.pipe(startWith(this.loadMoreService.START_PAGE), tap(() => this.loading = true), map((page) => {
|
|
2528
|
+
return { params: value, page: page };
|
|
2529
|
+
}));
|
|
2530
|
+
}));
|
|
2531
|
+
return parameters$;
|
|
2532
|
+
}
|
|
2533
|
+
buildDynamic(parameters$, loader) {
|
|
2534
|
+
return parameters$.pipe(switchMap((parameters) => loader(parameters)));
|
|
2535
|
+
}
|
|
2536
|
+
buildStatic(parameters$, model) {
|
|
2537
|
+
return parameters$.pipe(withLatestFrom(model.data$ || of([])), map(([parameters, items]) => {
|
|
2538
|
+
const filtered = model.filter ? model.filter(items, parameters) : items, data = filtered ? {
|
|
2539
|
+
items: skip(filtered, parameters.page, this.size),
|
|
2540
|
+
next: parameters.page < Math.ceil(filtered.length / this.size)
|
|
2541
|
+
} : { items: [], next: false };
|
|
2542
|
+
return data;
|
|
2543
|
+
}));
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
LoadContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoadContainerComponent, deps: [{ token: LoaderService }, { token: LoadMoreService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2547
|
+
LoadContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: LoadContainerComponent, selector: "sfc-load-container", inputs: { id: "id", type: "type", open: "open", size: "size", loadMore: "loadMore", showEmpty: "showEmpty", showLoadMoreButton: "showLoadMoreButton", loadMoreLabel: "loadMoreLabel", notFoundLabel: "notFoundLabel", model: "model", scrollTarget: "scrollTarget" }, outputs: { handleError: "handleError", handleSuccess: "handleSuccess", handleLoading: "handleLoading" }, host: { properties: { "class": "this.type", "class.open": "this.open", "class.empty": "this.isEmpty", "class.loading": "this._loading" } }, providers: [LoadMoreService], viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: "<div class=\"container\">\r\n <sfc-bounce-loader [id]=\"id\" [sfcComponentSize]=\"ComponentSize.Small\"></sfc-bounce-loader>\r\n <div #content class=\"content\" [sfcScrollIntoView]=\"scrollTarget\" (sfcScrollTracker)=\"onScroll()\" [positions]=\"scrollPosition\">\r\n <ng-content></ng-content>\r\n <div (sfcMouseDown)=\"$event.preventDefault()\">\r\n <sfc-load-more-button [hidden]=\"hideLoadMoreButton\" (more)=\"more($event)\" [label]=\"loadMoreLabel\">\r\n </sfc-load-more-button>\r\n <div *ngIf=\"isEmpty\" class=\"empty\">{{notFoundLabel}}</div>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{width:100%;height:inherit;position:relative}:host .container{height:inherit;background:#fff}:host .container .content{cursor:initial;overflow-y:auto;height:inherit}:host .container .content sfc-load-more-button ::ng-deep sfc-delimeter{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 .container .content .empty{display:flex;align-items:center;justify-content:center;color:#545e61;cursor:default;height:100%;font-size:.8em;-webkit-user-select:none;user-select:none;padding:.7em}:host.dropdown .container .content{display:none;opacity:0;max-height:12.5em;box-shadow:0 .125em .125em #00000024,0 .18em .06em -.125em #0000001f,0 .06em .31em #0003}:host.dropdown.open .container .content{display:block;opacity:1}:host ::ng-deep ::-webkit-scrollbar{width:.375em;height:.375em}:host ::ng-deep ::-webkit-scrollbar-track{border-radius:.625em;background:rgba(0,0,0,.1)}:host ::ng-deep ::-webkit-scrollbar-thumb{border-radius:.625em;background:rgba(0,0,0,.2)}:host ::ng-deep ::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.4)}:host ::ng-deep ::-webkit-scrollbar-thumb:active{background:rgba(0,0,0,.6)}\n"], components: [{ type: BounceLoaderComponent, selector: "sfc-bounce-loader" }, { type: LoadMoreButtonComponent, selector: "sfc-load-more-button", inputs: ["label", "icon"], outputs: ["more"] }], directives: [{ type: ComponentSizeDirective, selector: "[sfcComponentSize]", inputs: ["sfcComponentSize", "customSize"] }, { type: ScrollIntoViewDirective, selector: "[sfcScrollIntoView]", inputs: ["sfcScrollIntoView", "options"] }, { type: ScrollTrackerDirective, selector: "[sfcScrollTracker]", inputs: ["positions"], outputs: ["sfcScrollTracker"] }, { type: MouseDownDirective, selector: "[sfcMouseDown]", inputs: ["button"], outputs: ["sfcMouseDown"] }, { type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
2548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoadContainerComponent, decorators: [{
|
|
2549
|
+
type: Component,
|
|
2550
|
+
args: [{ selector: 'sfc-load-container', providers: [LoadMoreService], template: "<div class=\"container\">\r\n <sfc-bounce-loader [id]=\"id\" [sfcComponentSize]=\"ComponentSize.Small\"></sfc-bounce-loader>\r\n <div #content class=\"content\" [sfcScrollIntoView]=\"scrollTarget\" (sfcScrollTracker)=\"onScroll()\" [positions]=\"scrollPosition\">\r\n <ng-content></ng-content>\r\n <div (sfcMouseDown)=\"$event.preventDefault()\">\r\n <sfc-load-more-button [hidden]=\"hideLoadMoreButton\" (more)=\"more($event)\" [label]=\"loadMoreLabel\">\r\n </sfc-load-more-button>\r\n <div *ngIf=\"isEmpty\" class=\"empty\">{{notFoundLabel}}</div>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{width:100%;height:inherit;position:relative}:host .container{height:inherit;background:#fff}:host .container .content{cursor:initial;overflow-y:auto;height:inherit}:host .container .content sfc-load-more-button ::ng-deep sfc-delimeter{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 .container .content .empty{display:flex;align-items:center;justify-content:center;color:#545e61;cursor:default;height:100%;font-size:.8em;-webkit-user-select:none;user-select:none;padding:.7em}:host.dropdown .container .content{display:none;opacity:0;max-height:12.5em;box-shadow:0 .125em .125em #00000024,0 .18em .06em -.125em #0000001f,0 .06em .31em #0003}:host.dropdown.open .container .content{display:block;opacity:1}:host ::ng-deep ::-webkit-scrollbar{width:.375em;height:.375em}:host ::ng-deep ::-webkit-scrollbar-track{border-radius:.625em;background:rgba(0,0,0,.1)}:host ::ng-deep ::-webkit-scrollbar-thumb{border-radius:.625em;background:rgba(0,0,0,.2)}:host ::ng-deep ::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.4)}:host ::ng-deep ::-webkit-scrollbar-thumb:active{background:rgba(0,0,0,.6)}\n"] }]
|
|
2551
|
+
}], ctorParameters: function () { return [{ type: LoaderService }, { type: LoadMoreService }]; }, propDecorators: { id: [{
|
|
2552
|
+
type: Input
|
|
2553
|
+
}], type: [{
|
|
2554
|
+
type: Input
|
|
2555
|
+
}, {
|
|
2556
|
+
type: HostBinding,
|
|
2557
|
+
args: ['class']
|
|
2558
|
+
}], open: [{
|
|
2559
|
+
type: Input
|
|
2560
|
+
}, {
|
|
2561
|
+
type: HostBinding,
|
|
2562
|
+
args: [`class.${UIClass.Open}`]
|
|
2563
|
+
}], size: [{
|
|
2564
|
+
type: Input
|
|
2565
|
+
}], loadMore: [{
|
|
2566
|
+
type: Input
|
|
2567
|
+
}], showEmpty: [{
|
|
2568
|
+
type: Input
|
|
2569
|
+
}], showLoadMoreButton: [{
|
|
2570
|
+
type: Input
|
|
2571
|
+
}], loadMoreLabel: [{
|
|
2572
|
+
type: Input
|
|
2573
|
+
}], notFoundLabel: [{
|
|
2574
|
+
type: Input
|
|
2575
|
+
}], model: [{
|
|
2576
|
+
type: Input
|
|
2577
|
+
}], scrollTarget: [{
|
|
2578
|
+
type: Input
|
|
2579
|
+
}], handleError: [{
|
|
2580
|
+
type: Output
|
|
2581
|
+
}], handleSuccess: [{
|
|
2582
|
+
type: Output
|
|
2583
|
+
}], handleLoading: [{
|
|
2584
|
+
type: Output
|
|
2585
|
+
}], contentEl: [{
|
|
2586
|
+
type: ViewChild,
|
|
2587
|
+
args: ['content']
|
|
2588
|
+
}], isEmpty: [{
|
|
2589
|
+
type: HostBinding,
|
|
2590
|
+
args: [`class.${UIClass.Empty}`]
|
|
2591
|
+
}], _loading: [{
|
|
2592
|
+
type: HostBinding,
|
|
2593
|
+
args: [`class.${UIClass.Loading}`]
|
|
2594
|
+
}] } });
|
|
2595
|
+
|
|
2111
2596
|
class NgxSfcCommonModule {
|
|
2112
2597
|
}
|
|
2113
2598
|
NgxSfcCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2120,6 +2605,9 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
2120
2605
|
MouseDownDirective,
|
|
2121
2606
|
ComponentSizeDirective,
|
|
2122
2607
|
DestroyParentDirective,
|
|
2608
|
+
DomChangesDirective,
|
|
2609
|
+
ScrollTrackerDirective,
|
|
2610
|
+
ScrollIntoViewDirective,
|
|
2123
2611
|
// components
|
|
2124
2612
|
ButtonComponent,
|
|
2125
2613
|
TooltipComponent,
|
|
@@ -2132,15 +2620,21 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
2132
2620
|
DotsComponent,
|
|
2133
2621
|
PaginationComponent,
|
|
2134
2622
|
SortingComponent,
|
|
2623
|
+
LoadMoreButtonComponent,
|
|
2624
|
+
LoadContainerComponent,
|
|
2135
2625
|
// loaders
|
|
2136
2626
|
BounceLoaderComponent,
|
|
2137
2627
|
CircleLoaderComponent,
|
|
2138
2628
|
// modal
|
|
2139
2629
|
ModalComponent,
|
|
2630
|
+
ModalOpenDirective,
|
|
2140
2631
|
ModalOpenOnClickDirective,
|
|
2141
2632
|
DefaultModalHeaderComponent,
|
|
2142
|
-
DefaultModalFooterComponent
|
|
2143
|
-
|
|
2633
|
+
DefaultModalFooterComponent,
|
|
2634
|
+
// pipes
|
|
2635
|
+
SwitchMultiCasePipe], imports: [CommonModule,
|
|
2636
|
+
BrowserAnimationsModule,
|
|
2637
|
+
FontAwesomeModule], exports: [
|
|
2144
2638
|
// directives
|
|
2145
2639
|
ClickOutsideDirective,
|
|
2146
2640
|
ShowHideElementDirective,
|
|
@@ -2149,6 +2643,9 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
2149
2643
|
MouseDownDirective,
|
|
2150
2644
|
ComponentSizeDirective,
|
|
2151
2645
|
DestroyParentDirective,
|
|
2646
|
+
DomChangesDirective,
|
|
2647
|
+
ScrollTrackerDirective,
|
|
2648
|
+
ScrollIntoViewDirective,
|
|
2152
2649
|
// components
|
|
2153
2650
|
ButtonComponent,
|
|
2154
2651
|
TooltipComponent,
|
|
@@ -2161,17 +2658,23 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
2161
2658
|
HamburgerComponent,
|
|
2162
2659
|
PaginationComponent,
|
|
2163
2660
|
SortingComponent,
|
|
2661
|
+
LoadMoreButtonComponent,
|
|
2662
|
+
LoadContainerComponent,
|
|
2164
2663
|
// loaders
|
|
2165
2664
|
BounceLoaderComponent,
|
|
2166
2665
|
CircleLoaderComponent,
|
|
2167
2666
|
// modal
|
|
2168
2667
|
ModalComponent,
|
|
2668
|
+
ModalOpenDirective,
|
|
2169
2669
|
ModalOpenOnClickDirective,
|
|
2170
2670
|
DefaultModalHeaderComponent,
|
|
2171
|
-
DefaultModalFooterComponent
|
|
2671
|
+
DefaultModalFooterComponent,
|
|
2672
|
+
// pipes
|
|
2673
|
+
SwitchMultiCasePipe] });
|
|
2172
2674
|
NgxSfcCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS], imports: [[
|
|
2173
2675
|
CommonModule,
|
|
2174
|
-
BrowserAnimationsModule
|
|
2676
|
+
BrowserAnimationsModule,
|
|
2677
|
+
FontAwesomeModule
|
|
2175
2678
|
]] });
|
|
2176
2679
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: NgxSfcCommonModule, decorators: [{
|
|
2177
2680
|
type: NgModule,
|
|
@@ -2185,6 +2688,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2185
2688
|
MouseDownDirective,
|
|
2186
2689
|
ComponentSizeDirective,
|
|
2187
2690
|
DestroyParentDirective,
|
|
2691
|
+
DomChangesDirective,
|
|
2692
|
+
ScrollTrackerDirective,
|
|
2693
|
+
ScrollIntoViewDirective,
|
|
2188
2694
|
// components
|
|
2189
2695
|
ButtonComponent,
|
|
2190
2696
|
TooltipComponent,
|
|
@@ -2197,18 +2703,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2197
2703
|
DotsComponent,
|
|
2198
2704
|
PaginationComponent,
|
|
2199
2705
|
SortingComponent,
|
|
2706
|
+
LoadMoreButtonComponent,
|
|
2707
|
+
LoadContainerComponent,
|
|
2200
2708
|
// loaders
|
|
2201
2709
|
BounceLoaderComponent,
|
|
2202
2710
|
CircleLoaderComponent,
|
|
2203
2711
|
// modal
|
|
2204
2712
|
ModalComponent,
|
|
2713
|
+
ModalOpenDirective,
|
|
2205
2714
|
ModalOpenOnClickDirective,
|
|
2206
2715
|
DefaultModalHeaderComponent,
|
|
2207
|
-
DefaultModalFooterComponent
|
|
2716
|
+
DefaultModalFooterComponent,
|
|
2717
|
+
// pipes
|
|
2718
|
+
SwitchMultiCasePipe
|
|
2208
2719
|
],
|
|
2209
2720
|
imports: [
|
|
2210
2721
|
CommonModule,
|
|
2211
|
-
BrowserAnimationsModule
|
|
2722
|
+
BrowserAnimationsModule,
|
|
2723
|
+
FontAwesomeModule
|
|
2212
2724
|
],
|
|
2213
2725
|
exports: [
|
|
2214
2726
|
// directives
|
|
@@ -2219,6 +2731,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2219
2731
|
MouseDownDirective,
|
|
2220
2732
|
ComponentSizeDirective,
|
|
2221
2733
|
DestroyParentDirective,
|
|
2734
|
+
DomChangesDirective,
|
|
2735
|
+
ScrollTrackerDirective,
|
|
2736
|
+
ScrollIntoViewDirective,
|
|
2222
2737
|
// components
|
|
2223
2738
|
ButtonComponent,
|
|
2224
2739
|
TooltipComponent,
|
|
@@ -2231,14 +2746,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2231
2746
|
HamburgerComponent,
|
|
2232
2747
|
PaginationComponent,
|
|
2233
2748
|
SortingComponent,
|
|
2749
|
+
LoadMoreButtonComponent,
|
|
2750
|
+
LoadContainerComponent,
|
|
2234
2751
|
// loaders
|
|
2235
2752
|
BounceLoaderComponent,
|
|
2236
2753
|
CircleLoaderComponent,
|
|
2237
2754
|
// modal
|
|
2238
2755
|
ModalComponent,
|
|
2756
|
+
ModalOpenDirective,
|
|
2239
2757
|
ModalOpenOnClickDirective,
|
|
2240
2758
|
DefaultModalHeaderComponent,
|
|
2241
|
-
DefaultModalFooterComponent
|
|
2759
|
+
DefaultModalFooterComponent,
|
|
2760
|
+
// pipes
|
|
2761
|
+
SwitchMultiCasePipe
|
|
2242
2762
|
],
|
|
2243
2763
|
providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS]
|
|
2244
2764
|
}]
|
|
@@ -2252,5 +2772,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
2252
2772
|
* Generated bundle index. Do not edit.
|
|
2253
2773
|
*/
|
|
2254
2774
|
|
|
2255
|
-
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,
|
|
2775
|
+
export { BounceLoaderComponent, BrowserDocumentRef, BrowserWindowRef, ButtonComponent, ButtonType, CheckmarkComponent, CheckmarkType, CircleLoaderComponent, CircleLoaderType, ClickOutsideDirective, CloseComponent, CommonConstants, ComponentSize, ComponentSizeDirective, DOCUMENT, DOCUMENT_PROVIDERS, DateTimeConstants, DefaultModalFooterComponent, DefaultModalHeaderComponent, DelimeterComponent, DestroyParentDirective, Direction, DocumentRef, DomChangesDirective, DotsComponent, HamburgerComponent, LoadContainerComponent, LoadContainerType, LoadMoreButtonComponent, LoaderService, MediaLimits, ModalComponent, ModalOpenDirective, ModalOpenOnClickDirective, ModalService, ModalTemplate, MouseDownDirective, NgxSfcCommonModule, PaginationComponent, PaginationService, Position, ResizeService, ScrollIntoViewDirective, ScrollTrackerDirective, Sequence, ShowHideElementDirective, SortingComponent, SortingDirection, SortingService, SwitchMultiCasePipe, 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, getNextDate, getNextMonth, getNextYear, getPreviousMonth, getPreviousYear, getRotateValue, getValueFromCssLikeValue, getWeeksNumberInMonth, hasItem, hasItemBy, hasObjectItem, hexToRgb, isAsyncData, isChromeBrowser, isDateGreat, isDateGreatOrEqual, isDateTimeGreat, isDateTimeGreatOrEqual, isDefined, isEqualDates, isImage, isNullOrEmptyString, isNumeric, isObject, lastItem, max, mergeDeep, nameof, parseFileSize, readAsDataURL, remove, removeClasses, removeItem, removeItemBy, removePropertyFromObject, replaceRgbOpacity, rgbToHex, setDay, setDefaultSecondsAndMiliseconds, setHours, setMilliseconds, setMinutes, setSeconds, setYear, skip, sort, sortBy, sortByPath, sum, trim, updateItemBy, where, windowFactory, windowProvider };
|
|
2256
2776
|
//# sourceMappingURL=ngx-sfc-common.mjs.map
|