ngx-sfc-common 0.0.21 → 0.0.22
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/components/close/close.component.mixins.scss +9 -0
- package/components/collapse-expand/collapse-expand.component.mixins.scss +7 -0
- package/components/delimeter/delimeter.component.mixins.scss +37 -0
- package/components/load-container/load-container.component.mixins.scss +26 -0
- package/components/loader/bounce/bounce-loader.component.mixins.scss +7 -0
- package/components/loader/styles/loader.component.mixins.scss +11 -0
- package/esm2020/lib/components/checkmark/checkmark.component.mjs +2 -2
- package/esm2020/lib/components/close/close.component.mjs +3 -3
- package/esm2020/lib/components/collapse-expand/collapse-expand.component.mjs +31 -0
- package/esm2020/lib/components/collapse-expand/collapse-expand.constants.mjs +5 -0
- package/esm2020/lib/components/collapse-expand-container/collapse-expand-container.component.mjs +31 -0
- package/esm2020/lib/components/dots/dots.component.mjs +1 -1
- package/esm2020/lib/components/icon/icon.component.mjs +2 -2
- package/esm2020/lib/components/index.mjs +8 -6
- package/esm2020/lib/components/load-container/enums/load-container-changes-source.enum.mjs +9 -0
- package/esm2020/lib/components/load-container/enums/load-container-load-type.enum.mjs +7 -0
- package/esm2020/lib/components/load-container/enums/load-container-type.enum.mjs +6 -0
- package/esm2020/lib/components/load-container/load-container.component.mjs +110 -60
- package/esm2020/lib/components/load-container/load-container.constants.mjs +4 -3
- package/esm2020/lib/components/load-container/models/load-container-parameters.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-container-predicate-parameters.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-container-result.model.mjs +2 -0
- package/esm2020/lib/components/load-container/models/load-container.model.mjs +1 -1
- package/esm2020/lib/components/load-more-button/load-more-button.component.mjs +2 -2
- package/esm2020/lib/components/modal/header/default/default-modal-header.component.mjs +2 -2
- 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-view.model.mjs +2 -0
- package/esm2020/lib/components/pagination/pagination.component.mjs +41 -40
- package/esm2020/lib/components/pagination/pagination.constants.mjs +5 -1
- package/esm2020/lib/components/pagination/pagination.model.mjs +2 -0
- package/esm2020/lib/components/toggle/toggle.component.mjs +30 -0
- package/esm2020/lib/components/toggle-switcher/toggle-switcher.component.mjs +3 -3
- package/esm2020/lib/components/tooltip/tooltip.component.mjs +12 -7
- package/esm2020/lib/constants/common.constants.mjs +3 -1
- package/esm2020/lib/constants/date-time.constants.mjs +2 -1
- package/esm2020/lib/directives/collapse-expand/collapse-expand.directive.mjs +41 -0
- package/esm2020/lib/directives/component-reference/component-reference.directive.mjs +17 -0
- package/esm2020/lib/directives/index.mjs +3 -1
- package/esm2020/lib/enums/ui.enum.mjs +2 -1
- package/esm2020/lib/ngx-sfc-common.module.mjs +32 -12
- package/esm2020/lib/pipes/index.mjs +2 -1
- package/esm2020/lib/pipes/sort-by/sort-by.pipe.mjs +25 -0
- package/esm2020/lib/services/index.mjs +4 -1
- package/esm2020/lib/services/load-more/load-more.service.mjs +27 -0
- package/esm2020/lib/services/pagination/pagination.service.mjs +27 -0
- package/esm2020/lib/services/sorting/sorting.model.mjs +2 -0
- package/esm2020/lib/services/sorting/sorting.service.mjs +21 -0
- package/esm2020/lib/types/empty.type.mjs +2 -0
- package/esm2020/lib/types/index.mjs +2 -0
- package/esm2020/lib/utils/collections.utils.mjs +2 -2
- package/esm2020/lib/utils/common.utils.mjs +11 -1
- package/esm2020/lib/utils/date-time.utils.mjs +25 -1
- package/esm2020/lib/utils/http.utils.mjs +30 -0
- package/esm2020/lib/utils/index.mjs +4 -3
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ngx-sfc-common.mjs +511 -286
- package/fesm2015/ngx-sfc-common.mjs.map +1 -1
- package/fesm2020/ngx-sfc-common.mjs +508 -286
- package/fesm2020/ngx-sfc-common.mjs.map +1 -1
- package/lib/components/close/close.component.d.ts +1 -1
- package/lib/components/collapse-expand/collapse-expand.component.d.ts +11 -0
- package/lib/components/collapse-expand/collapse-expand.constants.d.ts +4 -0
- package/lib/components/collapse-expand-container/collapse-expand-container.component.d.ts +11 -0
- package/lib/components/index.d.ts +12 -11
- package/lib/components/load-container/enums/load-container-changes-source.enum.d.ts +7 -0
- package/lib/components/load-container/enums/load-container-load-type.enum.d.ts +5 -0
- package/lib/components/load-container/enums/load-container-type.enum.d.ts +4 -0
- package/lib/components/load-container/load-container.component.d.ts +25 -11
- package/lib/components/load-container/load-container.constants.d.ts +3 -2
- package/lib/components/load-container/models/load-container-parameters.model.d.ts +8 -0
- package/lib/components/load-container/models/load-container-predicate-parameters.model.d.ts +3 -0
- package/lib/components/load-container/models/load-container-result.model.d.ts +12 -0
- package/lib/components/load-container/models/load-container.model.d.ts +16 -11
- package/lib/components/modal/service/modal.service.d.ts +2 -1
- package/lib/components/pagination/pagination.component.d.ts +11 -9
- package/lib/components/pagination/pagination.constants.d.ts +3 -0
- package/lib/components/pagination/pagination.model.d.ts +4 -0
- package/lib/components/toggle/toggle.component.d.ts +8 -0
- package/lib/components/tooltip/tooltip.component.d.ts +4 -2
- package/lib/constants/common.constants.d.ts +2 -0
- package/lib/constants/date-time.constants.d.ts +1 -0
- package/lib/directives/collapse-expand/collapse-expand.directive.d.ts +13 -0
- package/lib/directives/component-reference/component-reference.directive.d.ts +8 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/enums/ui.enum.d.ts +2 -1
- package/lib/ngx-sfc-common.module.d.ts +41 -36
- package/lib/pipes/index.d.ts +1 -0
- package/lib/pipes/sort-by/sort-by.pipe.d.ts +8 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/{components/load-container/service → services/load-more}/load-more.service.d.ts +1 -1
- package/lib/services/pagination/pagination.service.d.ts +11 -0
- package/lib/services/sorting/sorting.model.d.ts +5 -0
- package/lib/{components/sorting/service → services/sorting}/sorting.service.d.ts +3 -3
- package/lib/types/empty.type.d.ts +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/utils/collections.utils.d.ts +1 -1
- package/lib/utils/common.utils.d.ts +5 -0
- package/lib/utils/date-time.utils.d.ts +13 -0
- package/lib/utils/http.utils.d.ts +7 -0
- package/lib/utils/index.d.ts +3 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/styles/_index.scss +0 -2
- package/styles/_mixins.scss +48 -2
- package/styles/_variables.scss +1 -0
- package/esm2020/lib/components/load-container/load-container.enum.mjs +0 -11
- package/esm2020/lib/components/load-container/models/load-more-parameters.model.mjs +0 -2
- package/esm2020/lib/components/load-container/models/load-more-predicate-parameters.model.mjs +0 -2
- package/esm2020/lib/components/load-container/models/load-more.model.mjs +0 -2
- package/esm2020/lib/components/load-container/service/load-more.service.mjs +0 -27
- package/esm2020/lib/components/pagination/models/pagination-view.model.mjs +0 -2
- package/esm2020/lib/components/pagination/service/pagination.event.mjs +0 -2
- package/esm2020/lib/components/pagination/service/pagination.service.mjs +0 -47
- package/esm2020/lib/components/sorting/service/sorting.event.mjs +0 -2
- package/esm2020/lib/components/sorting/service/sorting.service.mjs +0 -21
- package/esm2020/lib/components/sorting/sorting.component.mjs +0 -71
- package/esm2020/lib/components/sorting/sorting.constants.mjs +0 -6
- package/esm2020/lib/components/sorting/sorting.model.mjs +0 -2
- package/lib/components/load-container/load-container.enum.d.ts +0 -8
- package/lib/components/load-container/models/load-more-parameters.model.d.ts +0 -5
- package/lib/components/load-container/models/load-more-predicate-parameters.model.d.ts +0 -3
- package/lib/components/load-container/models/load-more.model.d.ts +0 -5
- package/lib/components/pagination/service/pagination.event.d.ts +0 -6
- package/lib/components/pagination/service/pagination.service.d.ts +0 -25
- package/lib/components/sorting/service/sorting.event.d.ts +0 -5
- package/lib/components/sorting/sorting.component.d.ts +0 -22
- package/lib/components/sorting/sorting.constants.d.ts +0 -4
- package/lib/components/sorting/sorting.model.d.ts +0 -12
- package/styles/_mixins-delimeter.scss +0 -21
- package/styles/_mixins-scroll.scss +0 -38
- /package/lib/components/pagination/{models/pagination-view.model.d.ts → pagination-view.model.d.ts} +0 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Injectable, PLATFORM_ID, EventEmitter, Directive, Inject, Input, Output, HostListener, Pipe, Component, HostBinding, ContentChildren, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
|
-
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
5
|
-
import * as
|
|
4
|
+
import { isPlatformBrowser, formatDate, CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1$2 from '@fortawesome/angular-fontawesome';
|
|
6
6
|
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
|
7
|
-
import { Subject, fromEvent, Observable, distinctUntilChanged, startWith, BehaviorSubject, filter, map, EMPTY,
|
|
7
|
+
import { Subject, fromEvent, Observable, distinctUntilChanged, startWith, BehaviorSubject, filter, map, EMPTY, tap, switchMap, combineLatest, of } from 'rxjs';
|
|
8
8
|
import * as i1 from '@angular/platform-browser';
|
|
9
9
|
import { __awaiter } from 'tslib';
|
|
10
|
+
import { HttpParams } from '@angular/common/http';
|
|
10
11
|
import { trigger, state, style, transition, group, query, animate, animateChild } from '@angular/animations';
|
|
11
|
-
import { faTimes, faWindowRestore, faCheck, faChevronLeft, faChevronRight, faChevronUp, faChevronDown
|
|
12
|
+
import { faTimes, faWindowRestore, faCheck, faChevronLeft, faChevronRight, faChevronCircleDown, faChevronUp, faChevronDown } from '@fortawesome/free-solid-svg-icons';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Component sizes
|
|
@@ -100,6 +101,7 @@ var UIClass;
|
|
|
100
101
|
UIClass["Pointer"] = "pointer";
|
|
101
102
|
UIClass["Default"] = "default";
|
|
102
103
|
UIClass["Initialization"] = "initialization";
|
|
104
|
+
UIClass["Filled"] = "filled";
|
|
103
105
|
})(UIClass || (UIClass = {}));
|
|
104
106
|
;
|
|
105
107
|
|
|
@@ -294,6 +296,72 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
294
296
|
}]
|
|
295
297
|
}], ctorParameters: function () { return [{ type: i1.EventManager }]; } });
|
|
296
298
|
|
|
299
|
+
class LoadMoreService {
|
|
300
|
+
constructor() {
|
|
301
|
+
this.pageValue = LoadMoreService.START_PAGE;
|
|
302
|
+
this.moreSubject = new Subject();
|
|
303
|
+
this.more$ = this.moreSubject.asObservable();
|
|
304
|
+
}
|
|
305
|
+
more() {
|
|
306
|
+
this.pageValue++;
|
|
307
|
+
this.moreSubject.next(this.pageValue);
|
|
308
|
+
}
|
|
309
|
+
reset() {
|
|
310
|
+
this.pageValue = LoadMoreService.START_PAGE;
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
LoadMoreService.START_PAGE = 1;
|
|
314
|
+
LoadMoreService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoadMoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
315
|
+
LoadMoreService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoadMoreService, providedIn: 'root' });
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoadMoreService, decorators: [{
|
|
317
|
+
type: Injectable,
|
|
318
|
+
args: [{
|
|
319
|
+
providedIn: 'root'
|
|
320
|
+
}]
|
|
321
|
+
}] });
|
|
322
|
+
|
|
323
|
+
class PaginationService {
|
|
324
|
+
constructor() {
|
|
325
|
+
this.pageValue = PaginationService.START_PAGE;
|
|
326
|
+
this.pageSubject = new Subject();
|
|
327
|
+
this.page$ = this.pageSubject.asObservable();
|
|
328
|
+
}
|
|
329
|
+
page(page) {
|
|
330
|
+
this.pageValue = page;
|
|
331
|
+
this.pageSubject.next(page);
|
|
332
|
+
}
|
|
333
|
+
reset() {
|
|
334
|
+
this.pageValue = PaginationService.START_PAGE;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
PaginationService.START_PAGE = 1;
|
|
338
|
+
PaginationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
339
|
+
PaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PaginationService, providedIn: 'root' });
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PaginationService, decorators: [{
|
|
341
|
+
type: Injectable,
|
|
342
|
+
args: [{
|
|
343
|
+
providedIn: 'root'
|
|
344
|
+
}]
|
|
345
|
+
}] });
|
|
346
|
+
|
|
347
|
+
class SortingService {
|
|
348
|
+
constructor() {
|
|
349
|
+
this.sortingSubject = new Subject();
|
|
350
|
+
this.sorting$ = this.sortingSubject.asObservable();
|
|
351
|
+
}
|
|
352
|
+
sort(model) {
|
|
353
|
+
this.sortingSubject.next(model);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
SortingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
357
|
+
SortingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortingService, providedIn: 'root' });
|
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortingService, decorators: [{
|
|
359
|
+
type: Injectable,
|
|
360
|
+
args: [{
|
|
361
|
+
providedIn: 'root'
|
|
362
|
+
}]
|
|
363
|
+
}] });
|
|
364
|
+
|
|
297
365
|
class ClickOutsideDirective {
|
|
298
366
|
constructor(elementRef, document) {
|
|
299
367
|
this.elementRef = elementRef;
|
|
@@ -360,10 +428,12 @@ class CommonConstants {
|
|
|
360
428
|
}
|
|
361
429
|
CommonConstants.NOT_FOUND_INDEX = -1;
|
|
362
430
|
CommonConstants.EMPTY_STRING = '';
|
|
431
|
+
CommonConstants.DEFAULT_KEY_VALUE = 0;
|
|
363
432
|
CommonConstants.MOUSE_BUTTON_LEFT = 0;
|
|
364
433
|
CommonConstants.FULL_PERCENTAGE = 100;
|
|
365
434
|
CommonConstants.COMMON_TEXT_DELIMETER = '/';
|
|
366
|
-
CommonConstants.PERCENTAGE_SYMBOL = '%';
|
|
435
|
+
CommonConstants.PERCENTAGE_SYMBOL = '%';
|
|
436
|
+
CommonConstants.DOT = '.';
|
|
367
437
|
|
|
368
438
|
class DateTimeConstants {
|
|
369
439
|
}
|
|
@@ -373,7 +443,8 @@ DateTimeConstants.HOURS_IN_TIME = 24;
|
|
|
373
443
|
DateTimeConstants.MIDNIGHT_HOUR = 0;
|
|
374
444
|
DateTimeConstants.MINUTES_IN_HOUR = 60;
|
|
375
445
|
DateTimeConstants.DAYS_OF_WEEK = ["S", "M", "T", "W", "T", "F", "S"];
|
|
376
|
-
DateTimeConstants.DAYS_OF_WEEK_3 = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
|
|
446
|
+
DateTimeConstants.DAYS_OF_WEEK_3 = ["SUN", "MON", "TUE", "WED", "THU", "FRI", "SAT"];
|
|
447
|
+
DateTimeConstants.DEFAULT_LOCALE = 'en-US';
|
|
377
448
|
|
|
378
449
|
class UIConstants {
|
|
379
450
|
}
|
|
@@ -751,6 +822,29 @@ function convertTimestampToDate(timestamp) {
|
|
|
751
822
|
result.setMinutes(+tempTime[1]);
|
|
752
823
|
result.setSeconds(+tempTime[2]);
|
|
753
824
|
return result;
|
|
825
|
+
}
|
|
826
|
+
/**
|
|
827
|
+
* Convert Date object to timestamp string
|
|
828
|
+
* @param date Date value
|
|
829
|
+
* @param locale Locale value
|
|
830
|
+
* @returns String representation of date value, for example - 12:23
|
|
831
|
+
*/
|
|
832
|
+
function convertDateToTimestamp(date, locale = DateTimeConstants.DEFAULT_LOCALE) {
|
|
833
|
+
return `${formatDate(date, 'HH', locale)}:${formatDate(date, 'mm', locale)}`;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Get age from
|
|
837
|
+
* @param birthdate Date of birth
|
|
838
|
+
* @returns Age
|
|
839
|
+
*/
|
|
840
|
+
function getAge(birthdate) {
|
|
841
|
+
const now = new Date();
|
|
842
|
+
let age = now.getFullYear() - birthdate.getFullYear();
|
|
843
|
+
const monthDifference = now.getMonth() - birthdate.getMonth();
|
|
844
|
+
if (monthDifference < 0 || (monthDifference === 0 && now.getDate() < birthdate.getDate())) {
|
|
845
|
+
age--;
|
|
846
|
+
}
|
|
847
|
+
return age;
|
|
754
848
|
}
|
|
755
849
|
|
|
756
850
|
/**
|
|
@@ -933,6 +1027,16 @@ function isEqual(obj1, obj2) {
|
|
|
933
1027
|
if (type === 'function')
|
|
934
1028
|
return areFunctionsEqual();
|
|
935
1029
|
return arePrimativesEqual();
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Generate unique identificator
|
|
1033
|
+
* @returns Random GUID
|
|
1034
|
+
*/
|
|
1035
|
+
function generateGuid() {
|
|
1036
|
+
let S4 = function () {
|
|
1037
|
+
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
|
1038
|
+
};
|
|
1039
|
+
return (S4() + S4() + "-" + S4() + "-" + S4() + "-" + S4() + "-" + S4() + S4() + S4());
|
|
936
1040
|
}
|
|
937
1041
|
|
|
938
1042
|
/**
|
|
@@ -1342,7 +1446,7 @@ function remove(collection, predicate) {
|
|
|
1342
1446
|
* @param predicate Function to define if allowed to add new item
|
|
1343
1447
|
* @returns True if successfully added
|
|
1344
1448
|
*/
|
|
1345
|
-
function addItem(collection, item, predicate) {
|
|
1449
|
+
function addItem(collection, item, predicate = null) {
|
|
1346
1450
|
if (!isDefined(collection))
|
|
1347
1451
|
collection = new Array();
|
|
1348
1452
|
if (isDefined(predicate) && predicate(item))
|
|
@@ -1401,6 +1505,33 @@ function getCollectionOrEmpty(collection) {
|
|
|
1401
1505
|
return isDefined(collection) ? collection : [];
|
|
1402
1506
|
}
|
|
1403
1507
|
|
|
1508
|
+
/**
|
|
1509
|
+
* Build HTTP parameters (GET) from request object
|
|
1510
|
+
* @param value Request object
|
|
1511
|
+
* * @returns HTTP parameters
|
|
1512
|
+
*/
|
|
1513
|
+
function buildHttpParams(value) {
|
|
1514
|
+
let params = {}, httpParams = new HttpParams();
|
|
1515
|
+
_build(params, value, CommonConstants.EMPTY_STRING);
|
|
1516
|
+
Object.keys(params).forEach(key => httpParams = httpParams.append(key, params[key]));
|
|
1517
|
+
return httpParams;
|
|
1518
|
+
function _build(params, value, path, isArray = false) {
|
|
1519
|
+
const ARRAY_PART = ']';
|
|
1520
|
+
Object.keys(value).forEach(key => {
|
|
1521
|
+
if (value[key] instanceof Array) {
|
|
1522
|
+
_build(params, value[key], `${path}${key}[`, true);
|
|
1523
|
+
}
|
|
1524
|
+
else if (value[key] instanceof Object) {
|
|
1525
|
+
_build(params, value[key], `${path}${key}${isArray ? `${ARRAY_PART}${CommonConstants.DOT}` : CommonConstants.DOT}`);
|
|
1526
|
+
}
|
|
1527
|
+
else {
|
|
1528
|
+
if (isDefined(value[key]))
|
|
1529
|
+
params[`${path}${key}${isArray ? ARRAY_PART : CommonConstants.EMPTY_STRING}`] = value[key];
|
|
1530
|
+
}
|
|
1531
|
+
});
|
|
1532
|
+
}
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1404
1535
|
class ThrowElementOnHoverDirective {
|
|
1405
1536
|
constructor(el) {
|
|
1406
1537
|
this.el = el;
|
|
@@ -1726,6 +1857,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1726
1857
|
args: ['load', ['$event']]
|
|
1727
1858
|
}] } });
|
|
1728
1859
|
|
|
1860
|
+
class CollapseExpandDirective {
|
|
1861
|
+
constructor(el) {
|
|
1862
|
+
this.el = el;
|
|
1863
|
+
this.EXPAND_COLLAPSE_TRANSITION_DELAY_DEFAULT = 0.5;
|
|
1864
|
+
this.style.transition = this.getTransitionValue();
|
|
1865
|
+
this.style.overflow = UIClass.Hidden;
|
|
1866
|
+
}
|
|
1867
|
+
set expand(expand) {
|
|
1868
|
+
this.style.maxHeight = expand
|
|
1869
|
+
? getCssLikeValue(this.el.nativeElement.scrollHeight)
|
|
1870
|
+
: 0;
|
|
1871
|
+
}
|
|
1872
|
+
set delay(value) {
|
|
1873
|
+
this.style.transition = this.getTransitionValue(value);
|
|
1874
|
+
}
|
|
1875
|
+
;
|
|
1876
|
+
get style() {
|
|
1877
|
+
return this.el.nativeElement.style;
|
|
1878
|
+
}
|
|
1879
|
+
getTransitionValue(delay = this.EXPAND_COLLAPSE_TRANSITION_DELAY_DEFAULT) {
|
|
1880
|
+
return `max-height ${delay}s ease-out`;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
CollapseExpandDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CollapseExpandDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1884
|
+
CollapseExpandDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: CollapseExpandDirective, selector: "[sfcCollapseExpand]", inputs: { expand: ["sfcCollapseExpand", "expand"], delay: "delay" }, ngImport: i0 });
|
|
1885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CollapseExpandDirective, decorators: [{
|
|
1886
|
+
type: Directive,
|
|
1887
|
+
args: [{
|
|
1888
|
+
selector: '[sfcCollapseExpand]'
|
|
1889
|
+
}]
|
|
1890
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { expand: [{
|
|
1891
|
+
type: Input,
|
|
1892
|
+
args: ['sfcCollapseExpand']
|
|
1893
|
+
}], delay: [{
|
|
1894
|
+
type: Input
|
|
1895
|
+
}] } });
|
|
1896
|
+
|
|
1897
|
+
class ComponentReferenceDirective {
|
|
1898
|
+
constructor(elementRef) {
|
|
1899
|
+
this.elementRef = elementRef;
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
ComponentReferenceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ComponentReferenceDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1903
|
+
ComponentReferenceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: ComponentReferenceDirective, selector: "[sfcComponentReference]", exportAs: ["componentRef"], ngImport: i0 });
|
|
1904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ComponentReferenceDirective, decorators: [{
|
|
1905
|
+
type: Directive,
|
|
1906
|
+
args: [{
|
|
1907
|
+
selector: '[sfcComponentReference]',
|
|
1908
|
+
exportAs: 'componentRef',
|
|
1909
|
+
}]
|
|
1910
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
1911
|
+
|
|
1729
1912
|
class SwitchMultiCasePipe {
|
|
1730
1913
|
transform(cases, switchOption) {
|
|
1731
1914
|
return cases.includes(switchOption) ? switchOption : !switchOption;
|
|
@@ -1740,6 +1923,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1740
1923
|
}]
|
|
1741
1924
|
}] });
|
|
1742
1925
|
|
|
1926
|
+
class SortByPipe {
|
|
1927
|
+
transform(value, path, direction = SortingDirection.Ascending) {
|
|
1928
|
+
if (!any(value)) {
|
|
1929
|
+
return value;
|
|
1930
|
+
} // no array
|
|
1931
|
+
if (value.length <= 1) {
|
|
1932
|
+
return value;
|
|
1933
|
+
} // array with only one item
|
|
1934
|
+
if (isNullOrEmptyString(path)) {
|
|
1935
|
+
return value;
|
|
1936
|
+
} // no path
|
|
1937
|
+
return sortByPath(value, path, direction);
|
|
1938
|
+
}
|
|
1939
|
+
}
|
|
1940
|
+
SortByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1941
|
+
SortByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: SortByPipe, name: "sfcSortBy" });
|
|
1942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortByPipe, decorators: [{
|
|
1943
|
+
type: Pipe,
|
|
1944
|
+
args: [{ name: 'sfcSortBy' }]
|
|
1945
|
+
}] });
|
|
1946
|
+
|
|
1743
1947
|
var ButtonType;
|
|
1744
1948
|
(function (ButtonType) {
|
|
1745
1949
|
ButtonType["Bordered"] = "bordered";
|
|
@@ -1767,7 +1971,7 @@ class ButtonComponent {
|
|
|
1767
1971
|
}
|
|
1768
1972
|
}
|
|
1769
1973
|
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1770
|
-
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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\">{{label}}</span>\r\n <fa-icon *ngIf=\"iconAfter\" class=\"icon after\" [icon]=\"iconAfter\"></fa-icon>\r\n</a>", styles: [":host .button.bordered{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease}:host .button.bordered,:host-context(.sfc-default-theme) :host .button.bordered{color:#545e61}:host-context(.sfc-dark-theme) :host .button.bordered{color:#fff}:host .button.bordered,:host-context(.sfc-default-theme) :host .button.bordered{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.bordered{border-color:#fff}:host .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host .button.filled,:host-context(.sfc-default-theme) :host .button.filled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.filled{border-color:#545e61}:host .button.filled,:host-context(.sfc-default-theme) :host .button.filled{background:#545e61}:host-context(.sfc-dark-theme) :host .button.filled{background:#545e61}:host.disabled .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host.disabled .button.filled,:host-context(.sfc-default-theme) :host.disabled .button.filled{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button.filled{border-color:#bdbdbd}:host.disabled .button.filled,:host-context(.sfc-default-theme) :host.disabled .button.filled{background:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button.filled{background:#bdbdbd}:host:hover .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host:hover .button.filled,:host-context(.sfc-default-theme) :host:hover .button.filled{border-color:#ffce54}:host-context(.sfc-dark-theme) :host:hover .button.filled{border-color:#ffce54}:host:hover .button.filled,:host-context(.sfc-default-theme) :host:hover .button.filled{background:#ffce54}:host-context(.sfc-dark-theme) :host:hover .button.filled{background:#ffce54}:host .button.rounded{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease;border-radius:1.25em;padding:.4em 1.2em}:host .button.rounded,:host-context(.sfc-default-theme) :host .button.rounded{color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded{color:#fff}:host .button.rounded,:host-context(.sfc-default-theme) :host .button.rounded{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded{border-color:#fff}:host .button.rounded.filled{transition:border-color .5s ease}:host .button.rounded.filled,:host-context(.sfc-default-theme) :host .button.rounded.filled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded.filled{border-color:#545e61}:host.disabled .button.rounded.filled{border-color:#bdbdbd}:host:not(.disabled):hover .button.rounded.filled{border-color:#ffce54}:host .button.circled{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease;width:5em;height:5em;border-radius:50%}:host .button.circled,:host-context(.sfc-default-theme) :host .button.circled{color:#545e61}:host-context(.sfc-dark-theme) :host .button.circled{color:#fff}:host .button.circled,:host-context(.sfc-default-theme) :host .button.circled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.circled{border-color:#fff}:host .button.circled .text{white-space:nowrap;text-overflow:ellipsis;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;width:inherit;transition:color .5s ease;transition:color .5s ease,border-color .5s ease,background .5s ease!important}:host .button,:host-context(.sfc-default-theme) :host .button{color:#545e61}:host-context(.sfc-dark-theme) :host .button{color:#fff}:host .button .icon{padding:3px}:host .button .text{padding:3px;white-space:initial;text-overflow:ellipsis;overflow:hidden}:host .button .text:empty{display:none}:host.disabled{pointer-events:none}:host.disabled .button{transition:color .5s ease;transition:border-color .5s ease}: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}:host:not(.disabled):hover .button{color:#ffce54;border-color:#ffce54}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type:
|
|
1974
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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\">{{label}}</span>\r\n <fa-icon *ngIf=\"iconAfter\" class=\"icon after\" [icon]=\"iconAfter\"></fa-icon>\r\n</a>", styles: [":host .button.bordered{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease}:host .button.bordered,:host-context(.sfc-default-theme) :host .button.bordered{color:#545e61}:host-context(.sfc-dark-theme) :host .button.bordered{color:#fff}:host .button.bordered,:host-context(.sfc-default-theme) :host .button.bordered{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.bordered{border-color:#fff}:host .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host .button.filled,:host-context(.sfc-default-theme) :host .button.filled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.filled{border-color:#545e61}:host .button.filled,:host-context(.sfc-default-theme) :host .button.filled{background:#545e61}:host-context(.sfc-dark-theme) :host .button.filled{background:#545e61}:host.disabled .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host.disabled .button.filled,:host-context(.sfc-default-theme) :host.disabled .button.filled{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button.filled{border-color:#bdbdbd}:host.disabled .button.filled,:host-context(.sfc-default-theme) :host.disabled .button.filled{background:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button.filled{background:#bdbdbd}:host:hover .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host:hover .button.filled,:host-context(.sfc-default-theme) :host:hover .button.filled{border-color:#ffce54}:host-context(.sfc-dark-theme) :host:hover .button.filled{border-color:#ffce54}:host:hover .button.filled,:host-context(.sfc-default-theme) :host:hover .button.filled{background:#ffce54}:host-context(.sfc-dark-theme) :host:hover .button.filled{background:#ffce54}:host .button.rounded{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease;border-radius:1.25em;padding:.4em 1.2em}:host .button.rounded,:host-context(.sfc-default-theme) :host .button.rounded{color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded{color:#fff}:host .button.rounded,:host-context(.sfc-default-theme) :host .button.rounded{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded{border-color:#fff}:host .button.rounded.filled{transition:border-color .5s ease}:host .button.rounded.filled,:host-context(.sfc-default-theme) :host .button.rounded.filled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded.filled{border-color:#545e61}:host.disabled .button.rounded.filled{border-color:#bdbdbd}:host:not(.disabled):hover .button.rounded.filled{border-color:#ffce54}:host .button.circled{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease;width:5em;height:5em;border-radius:50%}:host .button.circled,:host-context(.sfc-default-theme) :host .button.circled{color:#545e61}:host-context(.sfc-dark-theme) :host .button.circled{color:#fff}:host .button.circled,:host-context(.sfc-default-theme) :host .button.circled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.circled{border-color:#fff}:host .button.circled .text{white-space:nowrap;text-overflow:ellipsis;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;width:inherit;transition:color .5s ease;transition:color .5s ease,border-color .5s ease,background .5s ease!important}:host .button,:host-context(.sfc-default-theme) :host .button{color:#545e61}:host-context(.sfc-dark-theme) :host .button{color:#fff}:host .button .icon{padding:3px}:host .button .text{padding:3px;white-space:initial;text-overflow:ellipsis;overflow:hidden}:host .button .text:empty{display:none}:host.disabled{pointer-events:none}:host.disabled .button{transition:color .5s ease;transition:border-color .5s ease}: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}:host:not(.disabled):hover .button{color:#ffce54;border-color:#ffce54}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
1771
1975
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1772
1976
|
type: Component,
|
|
1773
1977
|
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\">{{label}}</span>\r\n <fa-icon *ngIf=\"iconAfter\" class=\"icon after\" [icon]=\"iconAfter\"></fa-icon>\r\n</a>", styles: [":host .button.bordered{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease}:host .button.bordered,:host-context(.sfc-default-theme) :host .button.bordered{color:#545e61}:host-context(.sfc-dark-theme) :host .button.bordered{color:#fff}:host .button.bordered,:host-context(.sfc-default-theme) :host .button.bordered{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.bordered{border-color:#fff}:host .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host .button.filled,:host-context(.sfc-default-theme) :host .button.filled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.filled{border-color:#545e61}:host .button.filled,:host-context(.sfc-default-theme) :host .button.filled{background:#545e61}:host-context(.sfc-dark-theme) :host .button.filled{background:#545e61}:host.disabled .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host.disabled .button.filled,:host-context(.sfc-default-theme) :host.disabled .button.filled{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button.filled{border-color:#bdbdbd}:host.disabled .button.filled,:host-context(.sfc-default-theme) :host.disabled .button.filled{background:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .button.filled{background:#bdbdbd}:host:hover .button.filled{color:#fff!important;transition:border-color .5s ease;transition:background .5s ease}:host:hover .button.filled,:host-context(.sfc-default-theme) :host:hover .button.filled{border-color:#ffce54}:host-context(.sfc-dark-theme) :host:hover .button.filled{border-color:#ffce54}:host:hover .button.filled,:host-context(.sfc-default-theme) :host:hover .button.filled{background:#ffce54}:host-context(.sfc-dark-theme) :host:hover .button.filled{background:#ffce54}:host .button.rounded{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease;border-radius:1.25em;padding:.4em 1.2em}:host .button.rounded,:host-context(.sfc-default-theme) :host .button.rounded{color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded{color:#fff}:host .button.rounded,:host-context(.sfc-default-theme) :host .button.rounded{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded{border-color:#fff}:host .button.rounded.filled{transition:border-color .5s ease}:host .button.rounded.filled,:host-context(.sfc-default-theme) :host .button.rounded.filled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.rounded.filled{border-color:#545e61}:host.disabled .button.rounded.filled{border-color:#bdbdbd}:host:not(.disabled):hover .button.rounded.filled{border-color:#ffce54}:host .button.circled{border:solid 2px;transition:color .5s ease;transition:border-color .5s ease;width:5em;height:5em;border-radius:50%}:host .button.circled,:host-context(.sfc-default-theme) :host .button.circled{color:#545e61}:host-context(.sfc-dark-theme) :host .button.circled{color:#fff}:host .button.circled,:host-context(.sfc-default-theme) :host .button.circled{border-color:#545e61}:host-context(.sfc-dark-theme) :host .button.circled{border-color:#fff}:host .button.circled .text{white-space:nowrap;text-overflow:ellipsis;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;width:inherit;transition:color .5s ease;transition:color .5s ease,border-color .5s ease,background .5s ease!important}:host .button,:host-context(.sfc-default-theme) :host .button{color:#545e61}:host-context(.sfc-dark-theme) :host .button{color:#fff}:host .button .icon{padding:3px}:host .button .text{padding:3px;white-space:initial;text-overflow:ellipsis;overflow:hidden}:host .button .text:empty{display:none}:host.disabled{pointer-events:none}:host.disabled .button{transition:color .5s ease;transition:border-color .5s ease}: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}:host:not(.disabled):hover .button{color:#ffce54;border-color:#ffce54}\n"] }]
|
|
@@ -1799,6 +2003,7 @@ class TooltipComponent {
|
|
|
1799
2003
|
this.tooltipType = TooltipType.Hover;
|
|
1800
2004
|
this.tooltipPosition = Position.Top;
|
|
1801
2005
|
this.tooltipShow = false;
|
|
2006
|
+
this.resize = true;
|
|
1802
2007
|
// preserved position
|
|
1803
2008
|
this._position = Position.Top;
|
|
1804
2009
|
}
|
|
@@ -1811,10 +2016,12 @@ class TooltipComponent {
|
|
|
1811
2016
|
this._position = this.tooltipPosition;
|
|
1812
2017
|
}
|
|
1813
2018
|
ngAfterContentInit() {
|
|
1814
|
-
this.
|
|
1815
|
-
.
|
|
1816
|
-
|
|
1817
|
-
|
|
2019
|
+
if (this.resize) {
|
|
2020
|
+
this._resizeSubscription = this.resizeService.onResize$
|
|
2021
|
+
.pipe(startWith(this.window))
|
|
2022
|
+
.subscribe(window => this.tooltipPosition = window.innerWidth <= MediaLimits.Tablet
|
|
2023
|
+
? Position.Bottom : this._position);
|
|
2024
|
+
}
|
|
1818
2025
|
}
|
|
1819
2026
|
ngOnDestroy() {
|
|
1820
2027
|
var _a;
|
|
@@ -1822,10 +2029,10 @@ class TooltipComponent {
|
|
|
1822
2029
|
}
|
|
1823
2030
|
}
|
|
1824
2031
|
TooltipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: TooltipComponent, deps: [{ token: ResizeService }, { token: WINDOW }], target: i0.ɵɵFactoryTarget.Component });
|
|
1825
|
-
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: TooltipComponent, selector: "[sfc-tooltip]", inputs: { value: ["sfc-tooltip", "value"], tooltipType: "tooltipType", tooltipPosition: "tooltipPosition", tooltipShow: "tooltipShow" }, host: { listeners: { "click": "click()" }, properties: { "attr.value": "this.value", "attr.type": "this.tooltipType", "attr.position": "this.tooltipPosition", "class.show": "this.tooltipShow" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{position:relative}:host:before,:host:after{position:absolute;left:50%;bottom:calc(100% + 5px);pointer-events:none;transition:.2s;will-change:transform}:host:hover:before,:host.show:before{content:attr(value);padding:.4em .7em;font-size:.8em;font-weight:initial;width:inherit;max-width:18.75em;border-radius:6px;background-color:#545e61;box-shadow:0 0 20.25em #aab2bd;color:#fff;text-align:center;white-space:pre-wrap;overflow:hidden;word-wrap:break-word;z-index:9999}:host:after{content:\"\";border-style:solid;transition-duration:0s;transform:translate(-50%) scaleY(0)}:host[type=hover]:before,:host[type=hover]:after,:host:not(.show):before,:host:not(.show):after{visibility:hidden;opacity:0}:host[type=hover]:hover:before,:host[type=hover]:hover:after,:host.show:before,:host.show:after{visibility:visible;opacity:1}:host[type=hover]:hover:before,:host.show:before{transition-delay:.1s}:host[type=hover]:hover:after,:host.show:after{transition-delay:.3s;transition-duration:.2s;transform:translate(-50%) scaleY(1)}:host[position=top]:before,:host[position=top]:after{left:50%;bottom:calc(100% + 5px)}:host[position=top]:before{transform:translate(-50%,-5px) scale(.5)}:host[position=top]:hover:before,:host[position=top].show:before{transform:translate(-50%,-.25em) scale(1)}:host[position=top]:after{border-width:.25em .25em 0;border-color:#545e61 transparent transparent transparent;transform-origin:top}:host[position=left]:before,:host[position=left]:after{left:auto;right:calc(100% + 5px);bottom:50%}:host[position=left]:before{transform:translate(-.25em,50%) scale(.5)}:host[position=left]:hover:before,:host[position=left].show:before{transform:translate(-.31em,50%) scale(1)}:host[position=left]:after{border-width:.25em 0 .25em .25em;border-color:transparent transparent transparent #545e61;transform-origin:left;transform:translateY(50%) scaleX(0)}:host[position=left]:hover:after,:host[position=left].show:after{transform:translateY(50%) scaleX(1)}:host[position=right]:before,:host[position=right]:after{left:calc(100% + 5px);bottom:50%}:host[position=right]:before{transform:translate(5px,50%) scale(.5)}:host[position=right]:hover:before,:host[position=right].show:before{transform:translate(.31em,50%) scale(1)}:host[position=right]:after{border-width:.25em .25em .25em 0;border-color:transparent #545e61 transparent transparent;transform-origin:right;transform:translateY(50%) scaleX(0)}:host[position=right]:hover:after,:host[position=right].show:after{transform:translateY(50%) scaleX(1)}:host[position=bottom]:before,:host[position=bottom]:after{top:calc(100% + 5px);bottom:auto}:host[position=bottom]:before{transform:translate(-50%,5px) scale(.5)}:host[position=bottom]:hover:before,:host[position=bottom].show:before{transform:translate(-50%,.31em) scale(1)}:host[position=bottom]:after{border-width:0 .25em .25em;border-color:transparent transparent #545e61 transparent;transform-origin:bottom}\n"] });
|
|
2032
|
+
TooltipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: TooltipComponent, selector: "[sfc-tooltip]", inputs: { value: ["sfc-tooltip", "value"], tooltipType: "tooltipType", tooltipPosition: "tooltipPosition", tooltipShow: "tooltipShow", resize: "resize" }, host: { listeners: { "click": "click()" }, properties: { "attr.value": "this.value", "attr.type": "this.tooltipType", "attr.position": "this.tooltipPosition", "class.show": "this.tooltipShow" } }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{position:relative}:host:before,:host:after{position:absolute;left:50%;bottom:calc(100% + 5px);pointer-events:none;transition:.2s;will-change:transform}:host:hover:before,:host.show:before{content:attr(value);padding:.4em .7em;font-size:.8em;font-weight:initial;width:inherit;max-width:18.75em;border-radius:6px;background-color:#545e61;box-shadow:0 0 20.25em #aab2bd;color:#fff;text-align:center;white-space:pre-wrap;overflow:hidden;word-wrap:break-word;z-index:9999}:host:after{content:\"\";border-style:solid;transition-duration:0s;transform:translate(-50%) scaleY(0);z-index:9999}:host[type=hover]:before,:host[type=hover]:after,:host:not(.show):before,:host:not(.show):after{visibility:hidden;opacity:0}:host[type=hover]:hover:before,:host[type=hover]:hover:after,:host.show:before,:host.show:after{visibility:visible;opacity:1}:host[type=hover]:hover:before,:host.show:before{transition-delay:.1s}:host[type=hover]:hover:after,:host.show:after{transition-delay:.3s;transition-duration:.2s;transform:translate(-50%) scaleY(1)}:host[position=top]:before,:host[position=top]:after{left:50%;bottom:calc(100% + 5px)}:host[position=top]:before{transform:translate(-50%,-5px) scale(.5)}:host[position=top]:hover:before,:host[position=top].show:before{transform:translate(-50%,-.25em) scale(1)}:host[position=top]:after{border-width:.25em .25em 0;border-color:#545e61 transparent transparent transparent;transform-origin:top}:host[position=left]:before,:host[position=left]:after{left:auto;right:calc(100% + 5px);bottom:50%}:host[position=left]:before{transform:translate(-.25em,50%) scale(.5)}:host[position=left]:hover:before,:host[position=left].show:before{transform:translate(-.31em,50%) scale(1)}:host[position=left]:after{border-width:.25em 0 .25em .25em;border-color:transparent transparent transparent #545e61;transform-origin:left;transform:translateY(50%) scaleX(0)}:host[position=left]:hover:after,:host[position=left].show:after{transform:translateY(50%) scaleX(1)}:host[position=right]:before,:host[position=right]:after{left:calc(100% + 5px);bottom:50%}:host[position=right]:before{transform:translate(5px,50%) scale(.5)}:host[position=right]:hover:before,:host[position=right].show:before{transform:translate(.31em,50%) scale(1)}:host[position=right]:after{border-width:.25em .25em .25em 0;border-color:transparent #545e61 transparent transparent;transform-origin:right;transform:translateY(50%) scaleX(0)}:host[position=right]:hover:after,:host[position=right].show:after{transform:translateY(50%) scaleX(1)}:host[position=bottom]:before,:host[position=bottom]:after{top:calc(100% + 5px);bottom:auto}:host[position=bottom]:before{transform:translate(-50%,5px) scale(.5)}:host[position=bottom]:hover:before,:host[position=bottom].show:before{transform:translate(-50%,.31em) scale(1)}:host[position=bottom]:after{border-width:0 .25em .25em;border-color:transparent transparent #545e61 transparent;transform-origin:bottom}\n"] });
|
|
1826
2033
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
1827
2034
|
type: Component,
|
|
1828
|
-
args: [{ selector: '[sfc-tooltip]', template: `<ng-content></ng-content>`, styles: [":host{position:relative}:host:before,:host:after{position:absolute;left:50%;bottom:calc(100% + 5px);pointer-events:none;transition:.2s;will-change:transform}:host:hover:before,:host.show:before{content:attr(value);padding:.4em .7em;font-size:.8em;font-weight:initial;width:inherit;max-width:18.75em;border-radius:6px;background-color:#545e61;box-shadow:0 0 20.25em #aab2bd;color:#fff;text-align:center;white-space:pre-wrap;overflow:hidden;word-wrap:break-word;z-index:9999}:host:after{content:\"\";border-style:solid;transition-duration:0s;transform:translate(-50%) scaleY(0)}:host[type=hover]:before,:host[type=hover]:after,:host:not(.show):before,:host:not(.show):after{visibility:hidden;opacity:0}:host[type=hover]:hover:before,:host[type=hover]:hover:after,:host.show:before,:host.show:after{visibility:visible;opacity:1}:host[type=hover]:hover:before,:host.show:before{transition-delay:.1s}:host[type=hover]:hover:after,:host.show:after{transition-delay:.3s;transition-duration:.2s;transform:translate(-50%) scaleY(1)}:host[position=top]:before,:host[position=top]:after{left:50%;bottom:calc(100% + 5px)}:host[position=top]:before{transform:translate(-50%,-5px) scale(.5)}:host[position=top]:hover:before,:host[position=top].show:before{transform:translate(-50%,-.25em) scale(1)}:host[position=top]:after{border-width:.25em .25em 0;border-color:#545e61 transparent transparent transparent;transform-origin:top}:host[position=left]:before,:host[position=left]:after{left:auto;right:calc(100% + 5px);bottom:50%}:host[position=left]:before{transform:translate(-.25em,50%) scale(.5)}:host[position=left]:hover:before,:host[position=left].show:before{transform:translate(-.31em,50%) scale(1)}:host[position=left]:after{border-width:.25em 0 .25em .25em;border-color:transparent transparent transparent #545e61;transform-origin:left;transform:translateY(50%) scaleX(0)}:host[position=left]:hover:after,:host[position=left].show:after{transform:translateY(50%) scaleX(1)}:host[position=right]:before,:host[position=right]:after{left:calc(100% + 5px);bottom:50%}:host[position=right]:before{transform:translate(5px,50%) scale(.5)}:host[position=right]:hover:before,:host[position=right].show:before{transform:translate(.31em,50%) scale(1)}:host[position=right]:after{border-width:.25em .25em .25em 0;border-color:transparent #545e61 transparent transparent;transform-origin:right;transform:translateY(50%) scaleX(0)}:host[position=right]:hover:after,:host[position=right].show:after{transform:translateY(50%) scaleX(1)}:host[position=bottom]:before,:host[position=bottom]:after{top:calc(100% + 5px);bottom:auto}:host[position=bottom]:before{transform:translate(-50%,5px) scale(.5)}:host[position=bottom]:hover:before,:host[position=bottom].show:before{transform:translate(-50%,.31em) scale(1)}:host[position=bottom]:after{border-width:0 .25em .25em;border-color:transparent transparent #545e61 transparent;transform-origin:bottom}\n"] }]
|
|
2035
|
+
args: [{ selector: '[sfc-tooltip]', template: `<ng-content></ng-content>`, styles: [":host{position:relative}:host:before,:host:after{position:absolute;left:50%;bottom:calc(100% + 5px);pointer-events:none;transition:.2s;will-change:transform}:host:hover:before,:host.show:before{content:attr(value);padding:.4em .7em;font-size:.8em;font-weight:initial;width:inherit;max-width:18.75em;border-radius:6px;background-color:#545e61;box-shadow:0 0 20.25em #aab2bd;color:#fff;text-align:center;white-space:pre-wrap;overflow:hidden;word-wrap:break-word;z-index:9999}:host:after{content:\"\";border-style:solid;transition-duration:0s;transform:translate(-50%) scaleY(0);z-index:9999}:host[type=hover]:before,:host[type=hover]:after,:host:not(.show):before,:host:not(.show):after{visibility:hidden;opacity:0}:host[type=hover]:hover:before,:host[type=hover]:hover:after,:host.show:before,:host.show:after{visibility:visible;opacity:1}:host[type=hover]:hover:before,:host.show:before{transition-delay:.1s}:host[type=hover]:hover:after,:host.show:after{transition-delay:.3s;transition-duration:.2s;transform:translate(-50%) scaleY(1)}:host[position=top]:before,:host[position=top]:after{left:50%;bottom:calc(100% + 5px)}:host[position=top]:before{transform:translate(-50%,-5px) scale(.5)}:host[position=top]:hover:before,:host[position=top].show:before{transform:translate(-50%,-.25em) scale(1)}:host[position=top]:after{border-width:.25em .25em 0;border-color:#545e61 transparent transparent transparent;transform-origin:top}:host[position=left]:before,:host[position=left]:after{left:auto;right:calc(100% + 5px);bottom:50%}:host[position=left]:before{transform:translate(-.25em,50%) scale(.5)}:host[position=left]:hover:before,:host[position=left].show:before{transform:translate(-.31em,50%) scale(1)}:host[position=left]:after{border-width:.25em 0 .25em .25em;border-color:transparent transparent transparent #545e61;transform-origin:left;transform:translateY(50%) scaleX(0)}:host[position=left]:hover:after,:host[position=left].show:after{transform:translateY(50%) scaleX(1)}:host[position=right]:before,:host[position=right]:after{left:calc(100% + 5px);bottom:50%}:host[position=right]:before{transform:translate(5px,50%) scale(.5)}:host[position=right]:hover:before,:host[position=right].show:before{transform:translate(.31em,50%) scale(1)}:host[position=right]:after{border-width:.25em .25em .25em 0;border-color:transparent #545e61 transparent transparent;transform-origin:right;transform:translateY(50%) scaleX(0)}:host[position=right]:hover:after,:host[position=right].show:after{transform:translateY(50%) scaleX(1)}:host[position=bottom]:before,:host[position=bottom]:after{top:calc(100% + 5px);bottom:auto}:host[position=bottom]:before{transform:translate(-50%,5px) scale(.5)}:host[position=bottom]:hover:before,:host[position=bottom].show:before{transform:translate(-50%,.31em) scale(1)}:host[position=bottom]:after{border-width:0 .25em .25em;border-color:transparent transparent #545e61 transparent;transform-origin:bottom}\n"] }]
|
|
1829
2036
|
}], ctorParameters: function () {
|
|
1830
2037
|
return [{ type: ResizeService }, { type: Window, decorators: [{
|
|
1831
2038
|
type: Inject,
|
|
@@ -1852,6 +2059,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
1852
2059
|
}, {
|
|
1853
2060
|
type: HostBinding,
|
|
1854
2061
|
args: ['class.show']
|
|
2062
|
+
}], resize: [{
|
|
2063
|
+
type: Input
|
|
1855
2064
|
}], click: [{
|
|
1856
2065
|
type: HostListener,
|
|
1857
2066
|
args: ['click']
|
|
@@ -2102,10 +2311,10 @@ class CloseComponent {
|
|
|
2102
2311
|
}
|
|
2103
2312
|
}
|
|
2104
2313
|
CloseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2105
|
-
CloseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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
|
|
2314
|
+
CloseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CloseComponent, selector: "sfc-close", ngImport: i0, template: "<div class=\"container\">\r\n <ng-content></ng-content>\r\n <fa-icon [icon]=\"faTimes\"></fa-icon>\r\n</div>", styles: [":host{transition:color .5s ease;cursor:pointer}:host,:host-context(.sfc-default-theme) :host{color:#545e61}:host-context(.sfc-dark-theme) :host{color:#fff}:host:hover{color:#ffce54}\n"], dependencies: [{ kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
2106
2315
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CloseComponent, decorators: [{
|
|
2107
2316
|
type: Component,
|
|
2108
|
-
args: [{ selector: 'sfc-close', template: "<div class=\"container\">\r\n <fa-icon [icon]=\"faTimes\"></fa-icon>\r\n</div>", styles: [":host{color
|
|
2317
|
+
args: [{ selector: 'sfc-close', template: "<div class=\"container\">\r\n <ng-content></ng-content>\r\n <fa-icon [icon]=\"faTimes\"></fa-icon>\r\n</div>", styles: [":host{transition:color .5s ease;cursor:pointer}:host,:host-context(.sfc-default-theme) :host{color:#545e61}:host-context(.sfc-dark-theme) :host{color:#fff}:host:hover{color:#ffce54}\n"] }]
|
|
2109
2318
|
}] });
|
|
2110
2319
|
|
|
2111
2320
|
class DefaultModalHeaderComponent {
|
|
@@ -2130,10 +2339,10 @@ class DefaultModalHeaderComponent {
|
|
|
2130
2339
|
}
|
|
2131
2340
|
}
|
|
2132
2341
|
DefaultModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultModalHeaderComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2133
|
-
DefaultModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: DefaultModalHeaderComponent, selector: "sfc-default-modal-header", inputs: { model: "model" }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"content\">\r\n <fa-icon *ngIf=\"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>\r\n\r\n <sfc-delimeter></sfc-delimeter>\r\n</div>", styles: [":host{display:inline-flex;width:100%}:host .container{width:100%;padding-bottom:.5em}:host .container .content{display:flex;align-items:center;justify-content:center;padding:.5em 0}:host .container .content .icon{position:absolute;left:1.5em;font-size:1.3em}:host .container .content .label{font-size:1.2em;font-weight:700;-webkit-user-select:none;user-select:none;padding:0 .7em}:host .container .content sfc-close{position:absolute;right:1.5em}:host .container
|
|
2342
|
+
DefaultModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: DefaultModalHeaderComponent, selector: "sfc-default-modal-header", inputs: { model: "model" }, ngImport: i0, template: "<div class=\"container\">\r\n <div class=\"content\">\r\n <fa-icon *ngIf=\"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>\r\n\r\n <sfc-delimeter></sfc-delimeter>\r\n</div>", styles: [":host{display:inline-flex;width:100%}:host .container{width:100%;padding-bottom:.5em}:host .container .content{display:flex;align-items:center;justify-content:center;padding:.5em 0}:host .container .content .icon{position:absolute;left:1.5em;font-size:1.3em}:host .container .content .label{font-size:1.2em;font-weight:700;-webkit-user-select:none;user-select:none;padding:0 .7em}:host .container .content sfc-close{position:absolute;right:1.5em;color:#545e61}:host .container .content sfc-close:hover{color:#ffce54}:host .container sfc-delimeter.horizontal:before{transition:border-image .5s ease}:host .container sfc-delimeter.horizontal:before,:host-context(.sfc-default-theme) :host .container sfc-delimeter.horizontal:before{border-image:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 47%,rgba(0,0,0,.3) 53%,rgba(0,0,0,.3) 100%) 100% 1}:host-context(.sfc-dark-theme) :host .container sfc-delimeter.horizontal:before{border-image:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 47%,rgba(0,0,0,.3) 53%,rgba(0,0,0,.3) 100%) 100% 1}:host .container sfc-delimeter.horizontal:after{transition:border-image .5s ease}:host .container sfc-delimeter.horizontal:after,:host-context(.sfc-default-theme) :host .container sfc-delimeter.horizontal:after{border-image:linear-gradient(to left,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 47%,rgba(0,0,0,.3) 53%,rgba(0,0,0,.3) 100%) 100% 1}:host-context(.sfc-dark-theme) :host .container sfc-delimeter.horizontal:after{border-image:linear-gradient(to left,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 47%,rgba(0,0,0,.3) 53%,rgba(0,0,0,.3) 100%) 100% 1}:host .container sfc-delimeter.horizontal span{color:#545e61}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "component", type: DelimeterComponent, selector: "sfc-delimeter", inputs: ["label", "direction"] }, { kind: "component", type: CloseComponent, selector: "sfc-close" }] });
|
|
2134
2343
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultModalHeaderComponent, decorators: [{
|
|
2135
2344
|
type: Component,
|
|
2136
|
-
args: [{ selector: 'sfc-default-modal-header', template: "<div class=\"container\">\r\n <div class=\"content\">\r\n <fa-icon *ngIf=\"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>\r\n\r\n <sfc-delimeter></sfc-delimeter>\r\n</div>", styles: [":host{display:inline-flex;width:100%}:host .container{width:100%;padding-bottom:.5em}:host .container .content{display:flex;align-items:center;justify-content:center;padding:.5em 0}:host .container .content .icon{position:absolute;left:1.5em;font-size:1.3em}:host .container .content .label{font-size:1.2em;font-weight:700;-webkit-user-select:none;user-select:none;padding:0 .7em}:host .container .content sfc-close{position:absolute;right:1.5em}:host .container
|
|
2345
|
+
args: [{ selector: 'sfc-default-modal-header', template: "<div class=\"container\">\r\n <div class=\"content\">\r\n <fa-icon *ngIf=\"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>\r\n\r\n <sfc-delimeter></sfc-delimeter>\r\n</div>", styles: [":host{display:inline-flex;width:100%}:host .container{width:100%;padding-bottom:.5em}:host .container .content{display:flex;align-items:center;justify-content:center;padding:.5em 0}:host .container .content .icon{position:absolute;left:1.5em;font-size:1.3em}:host .container .content .label{font-size:1.2em;font-weight:700;-webkit-user-select:none;user-select:none;padding:0 .7em}:host .container .content sfc-close{position:absolute;right:1.5em;color:#545e61}:host .container .content sfc-close:hover{color:#ffce54}:host .container sfc-delimeter.horizontal:before{transition:border-image .5s ease}:host .container sfc-delimeter.horizontal:before,:host-context(.sfc-default-theme) :host .container sfc-delimeter.horizontal:before{border-image:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 47%,rgba(0,0,0,.3) 53%,rgba(0,0,0,.3) 100%) 100% 1}:host-context(.sfc-dark-theme) :host .container sfc-delimeter.horizontal:before{border-image:linear-gradient(to right,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 47%,rgba(0,0,0,.3) 53%,rgba(0,0,0,.3) 100%) 100% 1}:host .container sfc-delimeter.horizontal:after{transition:border-image .5s ease}:host .container sfc-delimeter.horizontal:after,:host-context(.sfc-default-theme) :host .container sfc-delimeter.horizontal:after{border-image:linear-gradient(to left,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 47%,rgba(0,0,0,.3) 53%,rgba(0,0,0,.3) 100%) 100% 1}:host-context(.sfc-dark-theme) :host .container sfc-delimeter.horizontal:after{border-image:linear-gradient(to left,rgba(0,0,0,0) 0%,rgba(0,0,0,.3) 47%,rgba(0,0,0,.3) 53%,rgba(0,0,0,.3) 100%) 100% 1}:host .container sfc-delimeter.horizontal span{color:#545e61}\n"] }]
|
|
2137
2346
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { model: [{
|
|
2138
2347
|
type: Input
|
|
2139
2348
|
}] } });
|
|
@@ -2211,7 +2420,7 @@ class ModalComponent {
|
|
|
2211
2420
|
}
|
|
2212
2421
|
}
|
|
2213
2422
|
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ModalComponent, deps: [{ token: ModalService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2214
|
-
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ModalComponent, selector: "sfc-modal", inputs: { body: "body", header: "header", footer: "footer", defaultHeaderModel: "defaultHeaderModel", defaultFooterModel: "defaultFooterModel", hideOnEsc: "hideOnEsc", hideOnClickOutside: "hideOnClickOutside", showHeader: "showHeader", showFooter: "showFooter" }, 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 *ngIf=\"showHeader\" 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
|
|
2423
|
+
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ModalComponent, selector: "sfc-modal", inputs: { body: "body", header: "header", footer: "footer", defaultHeaderModel: "defaultHeaderModel", defaultFooterModel: "defaultFooterModel", hideOnEsc: "hideOnEsc", hideOnClickOutside: "hideOnClickOutside", showHeader: "showHeader", showFooter: "showFooter" }, 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 *ngIf=\"showHeader\" 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 <sfc-template-content [referenceContent]=\"body\" [templatesContent]=\"templates\"\r\n [templateType]=\"ModalTemplate.Body\">\r\n </sfc-template-content>\r\n </div>\r\n\r\n <div *ngIf=\"showFooter\" 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:.9em 1.5em;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%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#545e61;flex-direction:row;display:flex;flex:0 0 auto;justify-content:center}.overlay .content>div.body{overflow-y:auto;flex:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: TemplateContentComponent, selector: "sfc-template-content", inputs: ["contextData", "referenceContent", "templateType", "templatesContent", "defaultContent"] }, { kind: "component", type: DefaultModalHeaderComponent, selector: "sfc-default-modal-header", inputs: ["model"] }, { kind: "component", type: DefaultModalFooterComponent, selector: "sfc-default-modal-footer", inputs: ["model"] }], animations: [
|
|
2215
2424
|
trigger('hideOverlay', [
|
|
2216
2425
|
state('initial', style({ opacity: 1, visibility: 'visible' })),
|
|
2217
2426
|
state('void', style({ opacity: 0, visibility: 'hidden' })),
|
|
@@ -2256,7 +2465,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
2256
2465
|
state('void', style({ opacity: 0, visibility: 'hidden', transform: 'scale(1.2)' })),
|
|
2257
2466
|
transition('* => void', animate('400ms cubic-bezier(.55, 0, .1, 1)'))
|
|
2258
2467
|
])
|
|
2259
|
-
], template: "<div class=\"overlay\" [@hideOverlay] (click)=\"hideOnClickOutside && close()\">\r\n <div class=\"content\" [@hideContent] (click)=\"$event.stopPropagation()\">\r\n\r\n <div *ngIf=\"showHeader\" 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
|
|
2468
|
+
], template: "<div class=\"overlay\" [@hideOverlay] (click)=\"hideOnClickOutside && close()\">\r\n <div class=\"content\" [@hideContent] (click)=\"$event.stopPropagation()\">\r\n\r\n <div *ngIf=\"showHeader\" 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 <sfc-template-content [referenceContent]=\"body\" [templatesContent]=\"templates\"\r\n [templateType]=\"ModalTemplate.Body\">\r\n </sfc-template-content>\r\n </div>\r\n\r\n <div *ngIf=\"showFooter\" 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:.9em 1.5em;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%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:#545e61;flex-direction:row;display:flex;flex:0 0 auto;justify-content:center}.overlay .content>div.body{overflow-y:auto;flex:0}\n"] }]
|
|
2260
2469
|
}], ctorParameters: function () { return [{ type: ModalService }]; }, propDecorators: { body: [{
|
|
2261
2470
|
type: Input
|
|
2262
2471
|
}], header: [{
|
|
@@ -2435,10 +2644,10 @@ class ToggleSwitcherComponent {
|
|
|
2435
2644
|
}
|
|
2436
2645
|
}
|
|
2437
2646
|
ToggleSwitcherComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToggleSwitcherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2438
|
-
ToggleSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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{
|
|
2647
|
+
ToggleSwitcherComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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\" *ngIf=\"leftModel\">\r\n <fa-icon *ngIf=\"leftModel.icon\" [icon]=\"leftModel.icon\"></fa-icon>\r\n <span *ngIf=\"leftModel.label\">{{leftModel.label}}</span>\r\n </p>\r\n <p class=\"right\" *ngIf=\"rightModel\">\r\n <fa-icon *ngIf=\"rightModel.icon\" [icon]=\"rightModel.icon\"></fa-icon>\r\n <span *ngIf=\"rightModel.label\">{{rightModel.label}}</span>\r\n </p>\r\n </div>\r\n</div>", styles: [":host .container,:host .toggle{height:100%;border-radius:100px}:host .container{background-color:#e6e9ed;color:#545e61;border:.1875em solid;border-radius:100px;border-color:#e6e9ed;position:relative;cursor:pointer}:host .container .toggle{position:absolute;width:50%;background-color:#fff;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 span{padding-left:.3em}:host .container .names p.right{opacity:.5}: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{transition:background-color .5s ease;transition:border-color .5s ease}: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,:host-context(.sfc-default-theme) :host.disabled .container{border-color:#f6f6f6}:host-context(.sfc-dark-theme) :host.disabled .container{border-color:#656d78}:host.disabled .container .toggle{transition:background-color .5s ease;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{transition:color .5s ease}: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"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
2439
2648
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToggleSwitcherComponent, decorators: [{
|
|
2440
2649
|
type: Component,
|
|
2441
|
-
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{
|
|
2650
|
+
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\" *ngIf=\"leftModel\">\r\n <fa-icon *ngIf=\"leftModel.icon\" [icon]=\"leftModel.icon\"></fa-icon>\r\n <span *ngIf=\"leftModel.label\">{{leftModel.label}}</span>\r\n </p>\r\n <p class=\"right\" *ngIf=\"rightModel\">\r\n <fa-icon *ngIf=\"rightModel.icon\" [icon]=\"rightModel.icon\"></fa-icon>\r\n <span *ngIf=\"rightModel.label\">{{rightModel.label}}</span>\r\n </p>\r\n </div>\r\n</div>", styles: [":host .container,:host .toggle{height:100%;border-radius:100px}:host .container{background-color:#e6e9ed;color:#545e61;border:.1875em solid;border-radius:100px;border-color:#e6e9ed;position:relative;cursor:pointer}:host .container .toggle{position:absolute;width:50%;background-color:#fff;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 span{padding-left:.3em}:host .container .names p.right{opacity:.5}: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{transition:background-color .5s ease;transition:border-color .5s ease}: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,:host-context(.sfc-default-theme) :host.disabled .container{border-color:#f6f6f6}:host-context(.sfc-dark-theme) :host.disabled .container{border-color:#656d78}:host.disabled .container .toggle{transition:background-color .5s ease;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{transition:color .5s ease}: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"] }]
|
|
2442
2651
|
}], ctorParameters: function () { return []; }, propDecorators: { active: [{
|
|
2443
2652
|
type: Input
|
|
2444
2653
|
}, {
|
|
@@ -2474,10 +2683,10 @@ class CheckmarkComponent {
|
|
|
2474
2683
|
}
|
|
2475
2684
|
}
|
|
2476
2685
|
CheckmarkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CheckmarkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2477
|
-
CheckmarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CheckmarkComponent, selector: "sfc-checkmark", inputs: { active: "active", disabled: "disabled", icon: "icon", type: "type" }, 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 [sfcShowHideElement]=\"active\" [icon]=\"icon\"></fa-icon>\r\n </span>\r\n</div>", styles: [":host{display:inline-block;transition:color .5s ease}:host,:host-context(.sfc-default-theme) :host{color:#545e61}:host-context(.sfc-dark-theme) :host{color:#fff}:host .check{border:.125em solid;background:transparent;transition:border-color .5s ease,background .5s ease;transition:border-color .5s ease;width:1em;height:1em;cursor:pointer;display:flex;align-items:center;justify-content:center}:host .check,:host-context(.sfc-default-theme) :host .check{border-color:#545e61}:host-context(.sfc-dark-theme) :host .check{border-color:#fff}:host .check fa-icon{transition:opacity .5s ease;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:#ffce54}:host .check:hover fa-icon{transition:opacity .5s ease
|
|
2686
|
+
CheckmarkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CheckmarkComponent, selector: "sfc-checkmark", inputs: { active: "active", disabled: "disabled", icon: "icon", type: "type" }, 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 [sfcShowHideElement]=\"active\" [icon]=\"icon\"></fa-icon>\r\n </span>\r\n</div>", styles: [":host{display:inline-block;transition:color .5s ease}:host,:host-context(.sfc-default-theme) :host{color:#545e61}:host-context(.sfc-dark-theme) :host{color:#fff}:host .check{border:.125em solid;background:transparent;transition:border-color .5s ease,background .5s ease;transition:border-color .5s ease;width:1em;height:1em;cursor:pointer;display:flex;align-items:center;justify-content:center}:host .check,:host-context(.sfc-default-theme) :host .check{border-color:#545e61}:host-context(.sfc-dark-theme) :host .check{border-color:#fff}:host .check fa-icon{transition:opacity .5s ease;color:#fff;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:#ffce54}:host .check:hover fa-icon{transition:opacity .5s ease}: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:#ffce54;background:#ffce54}:host.active .check fa-icon{opacity:1;transform:scale(0);-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.circle .check{border-radius:50%}:host.rounded .check{border-radius:15%}:host.disabled{pointer-events:none}:host.disabled .check{color:#fff;border-style:dashed;transition:border-color .5s ease}: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{transition:background .5s ease}: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"], dependencies: [{ kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "directive", type: ShowHideElementDirective, selector: "[sfcShowHideElement]", inputs: ["sfcShowHideElement", "delay"] }] });
|
|
2478
2687
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CheckmarkComponent, decorators: [{
|
|
2479
2688
|
type: Component,
|
|
2480
|
-
args: [{ selector: 'sfc-checkmark', template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <fa-icon [sfcShowHideElement]=\"active\" [icon]=\"icon\"></fa-icon>\r\n </span>\r\n</div>", styles: [":host{display:inline-block;transition:color .5s ease}:host,:host-context(.sfc-default-theme) :host{color:#545e61}:host-context(.sfc-dark-theme) :host{color:#fff}:host .check{border:.125em solid;background:transparent;transition:border-color .5s ease,background .5s ease;transition:border-color .5s ease;width:1em;height:1em;cursor:pointer;display:flex;align-items:center;justify-content:center}:host .check,:host-context(.sfc-default-theme) :host .check{border-color:#545e61}:host-context(.sfc-dark-theme) :host .check{border-color:#fff}:host .check fa-icon{transition:opacity .5s ease;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:#ffce54}:host .check:hover fa-icon{transition:opacity .5s ease
|
|
2689
|
+
args: [{ selector: 'sfc-checkmark', template: "<div class=\"container\">\r\n <span class=\"check\">\r\n <fa-icon [sfcShowHideElement]=\"active\" [icon]=\"icon\"></fa-icon>\r\n </span>\r\n</div>", styles: [":host{display:inline-block;transition:color .5s ease}:host,:host-context(.sfc-default-theme) :host{color:#545e61}:host-context(.sfc-dark-theme) :host{color:#fff}:host .check{border:.125em solid;background:transparent;transition:border-color .5s ease,background .5s ease;transition:border-color .5s ease;width:1em;height:1em;cursor:pointer;display:flex;align-items:center;justify-content:center}:host .check,:host-context(.sfc-default-theme) :host .check{border-color:#545e61}:host-context(.sfc-dark-theme) :host .check{border-color:#fff}:host .check fa-icon{transition:opacity .5s ease;color:#fff;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:#ffce54}:host .check:hover fa-icon{transition:opacity .5s ease}: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:#ffce54;background:#ffce54}:host.active .check fa-icon{opacity:1;transform:scale(0);-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.circle .check{border-radius:50%}:host.rounded .check{border-radius:15%}:host.disabled{pointer-events:none}:host.disabled .check{color:#fff;border-style:dashed;transition:border-color .5s ease}: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{transition:background .5s ease}: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"] }]
|
|
2481
2690
|
}], propDecorators: { active: [{
|
|
2482
2691
|
type: Input
|
|
2483
2692
|
}, {
|
|
@@ -2497,53 +2706,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
2497
2706
|
args: ['class']
|
|
2498
2707
|
}] } });
|
|
2499
2708
|
|
|
2709
|
+
var _a;
|
|
2500
2710
|
class PaginationConstants {
|
|
2501
2711
|
}
|
|
2712
|
+
_a = PaginationConstants;
|
|
2502
2713
|
PaginationConstants.DEFAULT_SIZE = 5;
|
|
2503
2714
|
PaginationConstants.DEFAULT_PAGE = 1;
|
|
2504
|
-
PaginationConstants.DEFAULT_COUNT = 3;
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
constructor() {
|
|
2508
|
-
/**
|
|
2509
|
-
* Handle page changing
|
|
2510
|
-
*/
|
|
2511
|
-
this.pageSubject = new Subject();
|
|
2512
|
-
this.page$ = this.pageSubject.asObservable();
|
|
2513
|
-
}
|
|
2514
|
-
/** Need for init pagination observables */
|
|
2515
|
-
init(data$, page = PaginationConstants.DEFAULT_PAGE, pageSize = PaginationConstants.DEFAULT_SIZE) {
|
|
2516
|
-
if (isDefined(data$))
|
|
2517
|
-
this.initObservables(data$, page, pageSize);
|
|
2518
|
-
}
|
|
2519
|
-
/**
|
|
2520
|
-
* Move to page
|
|
2521
|
-
*/
|
|
2522
|
-
page(page) {
|
|
2523
|
-
this.pageSubject.next(page);
|
|
2524
|
-
}
|
|
2525
|
-
initObservables(data$, page, pageSize) {
|
|
2526
|
-
this.total$ = data$.pipe(map((p) => p.length));
|
|
2527
|
-
this.totalPages$ = this.total$.pipe(map((total) => Math.ceil(total / pageSize)));
|
|
2528
|
-
this.pagination$ = combineLatest([this.totalPages$, this.page$.pipe(startWith(page))])
|
|
2529
|
-
.pipe(map(([total, page]) => {
|
|
2530
|
-
return {
|
|
2531
|
-
page: page > total ? PaginationConstants.DEFAULT_PAGE : page,
|
|
2532
|
-
next: Math.min(page + 1, total),
|
|
2533
|
-
previous: Math.max(1, page - 1),
|
|
2534
|
-
total: total
|
|
2535
|
-
};
|
|
2536
|
-
}));
|
|
2537
|
-
}
|
|
2538
|
-
}
|
|
2539
|
-
PaginationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2540
|
-
PaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PaginationService, providedIn: 'root' });
|
|
2541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PaginationService, decorators: [{
|
|
2542
|
-
type: Injectable,
|
|
2543
|
-
args: [{
|
|
2544
|
-
providedIn: 'root'
|
|
2545
|
-
}]
|
|
2546
|
-
}] });
|
|
2715
|
+
PaginationConstants.DEFAULT_COUNT = 3;
|
|
2716
|
+
PaginationConstants.DEFAULT_TOTAL = 0;
|
|
2717
|
+
PaginationConstants.DEFAULT_PAGINATION = { page: _a.DEFAULT_PAGE, size: _a.DEFAULT_SIZE };
|
|
2547
2718
|
|
|
2548
2719
|
class PaginationComponent {
|
|
2549
2720
|
constructor(service) {
|
|
@@ -2560,58 +2731,56 @@ class PaginationComponent {
|
|
|
2560
2731
|
* show first and last page's btn
|
|
2561
2732
|
*/
|
|
2562
2733
|
this.limits = false;
|
|
2734
|
+
this.page = PaginationConstants.DEFAULT_PAGE;
|
|
2735
|
+
this.total = PaginationConstants.DEFAULT_TOTAL;
|
|
2736
|
+
/**
|
|
2737
|
+
* Page size
|
|
2738
|
+
*/
|
|
2739
|
+
this.size = PaginationConstants.DEFAULT_SIZE;
|
|
2740
|
+
}
|
|
2741
|
+
get model() {
|
|
2742
|
+
const totalPages = Math.ceil(this.total / this.size), page = this.page > totalPages ? PaginationConstants.DEFAULT_PAGE : this.page, next = Math.min(this.page + 1, totalPages), previous = Math.max(1, this.page - 1), range = this.initRange(totalPages, page);
|
|
2743
|
+
return {
|
|
2744
|
+
range: range,
|
|
2745
|
+
any: totalPages > 0,
|
|
2746
|
+
firstPage: this.showStartLimit(range, page),
|
|
2747
|
+
lastPage: this.showEndLimit(range, totalPages, page),
|
|
2748
|
+
previousPage: page != PaginationConstants.DEFAULT_PAGE,
|
|
2749
|
+
nextPage: totalPages > page,
|
|
2750
|
+
page: page,
|
|
2751
|
+
previous: previous,
|
|
2752
|
+
next: next,
|
|
2753
|
+
total: totalPages
|
|
2754
|
+
};
|
|
2563
2755
|
}
|
|
2564
|
-
|
|
2565
|
-
if (!isDefined(this.service.pagination$))
|
|
2566
|
-
this.service.init(this.data$);
|
|
2567
|
-
if (isDefined(this.service.pagination$)) {
|
|
2568
|
-
this.vm$ = this.service.pagination$.pipe(map((event) => {
|
|
2569
|
-
const range = this.initRange(event);
|
|
2570
|
-
return {
|
|
2571
|
-
range: range,
|
|
2572
|
-
any: event.total > 0,
|
|
2573
|
-
firstPage: this.showStartLimit(range, event),
|
|
2574
|
-
lastPage: this.showEndLimit(range, event),
|
|
2575
|
-
previousPage: event.page != PaginationConstants.DEFAULT_PAGE,
|
|
2576
|
-
nextPage: event.total > event.page,
|
|
2577
|
-
page: event.page,
|
|
2578
|
-
previous: event.previous,
|
|
2579
|
-
next: event.next,
|
|
2580
|
-
total: event.total
|
|
2581
|
-
};
|
|
2582
|
-
}));
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
onPageClick(page) {
|
|
2586
|
-
this.service.page(page);
|
|
2587
|
-
}
|
|
2756
|
+
onPageClick(page) { this.service.page(page); }
|
|
2588
2757
|
get showLimitPages() {
|
|
2589
2758
|
return this.limits && !this.full;
|
|
2590
2759
|
}
|
|
2591
|
-
showStartLimit(range,
|
|
2592
|
-
return this.showLimitPages &&
|
|
2760
|
+
showStartLimit(range, page) {
|
|
2761
|
+
return this.showLimitPages && page !== PaginationConstants.DEFAULT_PAGE
|
|
2593
2762
|
&& !hasItem(range, PaginationConstants.DEFAULT_PAGE);
|
|
2594
2763
|
}
|
|
2595
|
-
showEndLimit(range,
|
|
2596
|
-
return this.showLimitPages &&
|
|
2764
|
+
showEndLimit(range, total, page) {
|
|
2765
|
+
return this.showLimitPages && total !== page && !hasItem(range, total);
|
|
2597
2766
|
}
|
|
2598
|
-
initRange(
|
|
2599
|
-
let start = 1, end =
|
|
2767
|
+
initRange(total, page) {
|
|
2768
|
+
let start = 1, end = total + 1;
|
|
2600
2769
|
if (!this.full) {
|
|
2601
|
-
const fullRange = this.range(1,
|
|
2770
|
+
const fullRange = this.range(1, total + 1), pageIndex = fullRange.indexOf(page), pageCount = Math.min(total, this.count);
|
|
2602
2771
|
let rangeStart = 0, rangeEnd = 0;
|
|
2603
2772
|
if (pageCount == PaginationConstants.DEFAULT_PAGE) {
|
|
2604
2773
|
rangeStart = rangeEnd = pageIndex;
|
|
2605
2774
|
}
|
|
2606
2775
|
else {
|
|
2607
2776
|
let allowedCount = pageCount - 1, partValue = Math.ceil(allowedCount / 2), leftValue = pageIndex - partValue < 0 ? pageIndex : partValue, rightToExtend = allowedCount - leftValue, rightValue = rightToExtend < 0 ? 0 : rightToExtend;
|
|
2608
|
-
if (pageIndex + rightValue >=
|
|
2609
|
-
leftValue += pageIndex + rightValue -
|
|
2777
|
+
if (pageIndex + rightValue >= total)
|
|
2778
|
+
leftValue += pageIndex + rightValue - total + 1;
|
|
2610
2779
|
rangeStart = pageIndex - leftValue;
|
|
2611
2780
|
rangeEnd = pageIndex + rightValue;
|
|
2612
2781
|
}
|
|
2613
2782
|
start = rangeStart + 1;
|
|
2614
|
-
end = Math.min(
|
|
2783
|
+
end = Math.min(total + 1, rangeEnd + 2);
|
|
2615
2784
|
}
|
|
2616
2785
|
return this.range(start, end);
|
|
2617
2786
|
}
|
|
@@ -2624,144 +2793,51 @@ class PaginationComponent {
|
|
|
2624
2793
|
}
|
|
2625
2794
|
}
|
|
2626
2795
|
PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PaginationComponent, deps: [{ token: PaginationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2627
|
-
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: PaginationComponent, selector: "sfc-pagination", inputs: { count: "count", full: "full", limits: "limits",
|
|
2796
|
+
PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: PaginationComponent, selector: "sfc-pagination", inputs: { count: "count", full: "full", limits: "limits", page: "page", total: "total", size: "size" }, ngImport: i0, template: "<div class=\"container\">\r\n <sfc-delimeter></sfc-delimeter>\r\n <ul *ngIf=\"model.any\">\r\n <li [sfcShowHideElement]=\"model.previousPage\" (click)=\"onPageClick(model.previous)\">\r\n <button class=\"limit\">\r\n <fa-icon [icon]=\"faChevronLeft\"></fa-icon>\r\n </button>\r\n </li>\r\n <li *ngIf=\"model.firstPage\" (click)=\"onPageClick(1)\">\r\n <button>1</button>\r\n </li>\r\n <li *ngIf=\"model.firstPage\">\r\n <span>...</span>\r\n </li>\r\n <li *ngFor=\"let page of model.range\" (click)=\"model.page !== page && onPageClick(page)\">\r\n <button [class.active]=\"model.page === page\">{{page}}</button>\r\n </li>\r\n <li *ngIf=\"model.lastPage\">\r\n <span>...</span>\r\n </li>\r\n <li *ngIf=\"model.lastPage\" (click)=\"onPageClick(model.total)\">\r\n <button>{{model.total}}</button>\r\n </li>\r\n <li [sfcShowHideElement]=\"model.nextPage\" (click)=\"onPageClick(model.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;align-items:center;justify-content:center;flex-wrap:wrap;-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{transition:color .5s ease;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:#fff}:host .container ul li button{transition:color .5s ease;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:#fff}:host .container ul li button:before{transition:background .5s ease;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){transition:color .5s ease}: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:#fff}: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{transition:background .5s ease;color:#545e61!important}:host .container ul li button.active,:host-context(.sfc-default-theme) :host .container ul li button.active{background:rgba(0,0,0,.1019607843)}:host-context(.sfc-dark-theme) :host .container ul li button.active{background:#f5f7fa}@keyframes hover-animation{0%{opacity:1}to{opacity:0}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "directive", type: ShowHideElementDirective, selector: "[sfcShowHideElement]", inputs: ["sfcShowHideElement", "delay"] }, { kind: "component", type: DelimeterComponent, selector: "sfc-delimeter", inputs: ["label", "direction"] }] });
|
|
2628
2797
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PaginationComponent, decorators: [{
|
|
2629
2798
|
type: Component,
|
|
2630
|
-
args: [{ selector: 'sfc-pagination', template: "<div class=\"container\"
|
|
2799
|
+
args: [{ selector: 'sfc-pagination', template: "<div class=\"container\">\r\n <sfc-delimeter></sfc-delimeter>\r\n <ul *ngIf=\"model.any\">\r\n <li [sfcShowHideElement]=\"model.previousPage\" (click)=\"onPageClick(model.previous)\">\r\n <button class=\"limit\">\r\n <fa-icon [icon]=\"faChevronLeft\"></fa-icon>\r\n </button>\r\n </li>\r\n <li *ngIf=\"model.firstPage\" (click)=\"onPageClick(1)\">\r\n <button>1</button>\r\n </li>\r\n <li *ngIf=\"model.firstPage\">\r\n <span>...</span>\r\n </li>\r\n <li *ngFor=\"let page of model.range\" (click)=\"model.page !== page && onPageClick(page)\">\r\n <button [class.active]=\"model.page === page\">{{page}}</button>\r\n </li>\r\n <li *ngIf=\"model.lastPage\">\r\n <span>...</span>\r\n </li>\r\n <li *ngIf=\"model.lastPage\" (click)=\"onPageClick(model.total)\">\r\n <button>{{model.total}}</button>\r\n </li>\r\n <li [sfcShowHideElement]=\"model.nextPage\" (click)=\"onPageClick(model.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;align-items:center;justify-content:center;flex-wrap:wrap;-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{transition:color .5s ease;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:#fff}:host .container ul li button{transition:color .5s ease;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:#fff}:host .container ul li button:before{transition:background .5s ease;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){transition:color .5s ease}: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:#fff}: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{transition:background .5s ease;color:#545e61!important}:host .container ul li button.active,:host-context(.sfc-default-theme) :host .container ul li button.active{background:rgba(0,0,0,.1019607843)}:host-context(.sfc-dark-theme) :host .container ul li button.active{background:#f5f7fa}@keyframes hover-animation{0%{opacity:1}to{opacity:0}}\n"] }]
|
|
2631
2800
|
}], ctorParameters: function () { return [{ type: PaginationService }]; }, propDecorators: { count: [{
|
|
2632
2801
|
type: Input
|
|
2633
2802
|
}], full: [{
|
|
2634
2803
|
type: Input
|
|
2635
2804
|
}], limits: [{
|
|
2636
2805
|
type: Input
|
|
2637
|
-
}],
|
|
2806
|
+
}], page: [{
|
|
2638
2807
|
type: Input
|
|
2639
|
-
}]
|
|
2640
|
-
|
|
2641
|
-
class SortingConstants {
|
|
2642
|
-
}
|
|
2643
|
-
SortingConstants.DEFAULT_ASCENDING_ICON = faChevronUp;
|
|
2644
|
-
SortingConstants.DEFAULT_DESCENDING_ICON = faChevronDown;
|
|
2645
|
-
|
|
2646
|
-
class SortingService {
|
|
2647
|
-
constructor() {
|
|
2648
|
-
this.sortingSubject = new Subject();
|
|
2649
|
-
this.sorting$ = this.sortingSubject.asObservable();
|
|
2650
|
-
}
|
|
2651
|
-
sort(event) {
|
|
2652
|
-
this.sortingSubject.next(event);
|
|
2653
|
-
}
|
|
2654
|
-
}
|
|
2655
|
-
SortingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2656
|
-
SortingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortingService, providedIn: 'root' });
|
|
2657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortingService, decorators: [{
|
|
2658
|
-
type: Injectable,
|
|
2659
|
-
args: [{
|
|
2660
|
-
providedIn: 'root'
|
|
2661
|
-
}]
|
|
2662
|
-
}] });
|
|
2663
|
-
|
|
2664
|
-
class SortingComponent {
|
|
2665
|
-
constructor(service) {
|
|
2666
|
-
this.service = service;
|
|
2667
|
-
this.SortingDirection = SortingDirection;
|
|
2668
|
-
this.id = CommonConstants.EMPTY_STRING;
|
|
2669
|
-
this.model = { active: false, enabled: false, direction: SortingDirection.Ascending };
|
|
2670
|
-
}
|
|
2671
|
-
get enabled() {
|
|
2672
|
-
return this.model.enabled;
|
|
2673
|
-
}
|
|
2674
|
-
get active() {
|
|
2675
|
-
return this.model.active || false;
|
|
2676
|
-
}
|
|
2677
|
-
sort() {
|
|
2678
|
-
if (this.enabled) {
|
|
2679
|
-
if (this.active) {
|
|
2680
|
-
this.model.direction = this.model.direction === SortingDirection.Ascending
|
|
2681
|
-
? SortingDirection.Descending
|
|
2682
|
-
: SortingDirection.Ascending;
|
|
2683
|
-
}
|
|
2684
|
-
this.service.sort({ id: this.id, direction: this.model.direction });
|
|
2685
|
-
}
|
|
2686
|
-
}
|
|
2687
|
-
get icon() {
|
|
2688
|
-
const modelIcon = firstOrDefault(this.model.icons, i => i.direction == this.model.direction);
|
|
2689
|
-
return modelIcon ? modelIcon.icon : this.model.direction === SortingDirection.Ascending
|
|
2690
|
-
? SortingConstants.DEFAULT_ASCENDING_ICON : SortingConstants.DEFAULT_DESCENDING_ICON;
|
|
2691
|
-
}
|
|
2692
|
-
ngOnInit() {
|
|
2693
|
-
if (!isDefined(this.model))
|
|
2694
|
-
this.model = { active: false, enabled: false, direction: SortingDirection.Ascending };
|
|
2695
|
-
// subscribe to sort changes so we can react when other columns are sorted
|
|
2696
|
-
this._subscription = this.service.sorting$.subscribe(event => {
|
|
2697
|
-
// reset this column's sort direction to hide the sort icons
|
|
2698
|
-
if (this.id != event.id)
|
|
2699
|
-
this.model.direction = SortingDirection.Ascending;
|
|
2700
|
-
});
|
|
2701
|
-
}
|
|
2702
|
-
ngOnDestroy() {
|
|
2703
|
-
this._subscription.unsubscribe();
|
|
2704
|
-
}
|
|
2705
|
-
}
|
|
2706
|
-
SortingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortingComponent, deps: [{ token: SortingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2707
|
-
SortingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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;transition:color .5s ease}:host .container,:host-context(.sfc-default-theme) :host .container{color:#545e61}:host-context(.sfc-dark-theme) :host .container{color:#fff}:host .container:hover{color:#ffce54}: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:#ffce54}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
2708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SortingComponent, decorators: [{
|
|
2709
|
-
type: Component,
|
|
2710
|
-
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;transition:color .5s ease}:host .container,:host-context(.sfc-default-theme) :host .container{color:#545e61}:host-context(.sfc-dark-theme) :host .container{color:#fff}:host .container:hover{color:#ffce54}: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:#ffce54}\n"] }]
|
|
2711
|
-
}], ctorParameters: function () { return [{ type: SortingService }]; }, propDecorators: { id: [{
|
|
2808
|
+
}], total: [{
|
|
2712
2809
|
type: Input
|
|
2713
|
-
}],
|
|
2810
|
+
}], size: [{
|
|
2714
2811
|
type: Input
|
|
2715
|
-
}], enabled: [{
|
|
2716
|
-
type: HostBinding,
|
|
2717
|
-
args: [`class.${UIClass.Enabled}`]
|
|
2718
|
-
}], active: [{
|
|
2719
|
-
type: HostBinding,
|
|
2720
|
-
args: [`class.${UIClass.Active}`]
|
|
2721
|
-
}], sort: [{
|
|
2722
|
-
type: HostListener,
|
|
2723
|
-
args: ['click']
|
|
2724
2812
|
}] } });
|
|
2725
2813
|
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
this.moreSubject.next(this._page);
|
|
2735
|
-
}
|
|
2736
|
-
reset() {
|
|
2737
|
-
this._page = LoadMoreService.START_PAGE;
|
|
2738
|
-
}
|
|
2814
|
+
var LoadContainerLoadType;
|
|
2815
|
+
(function (LoadContainerLoadType) {
|
|
2816
|
+
LoadContainerLoadType["Button"] = "button";
|
|
2817
|
+
LoadContainerLoadType["Scroll"] = "scroll";
|
|
2818
|
+
LoadContainerLoadType["Pagination"] = "pagination";
|
|
2819
|
+
})(LoadContainerLoadType || (LoadContainerLoadType = {}));
|
|
2820
|
+
|
|
2821
|
+
class LoadContainerConstants {
|
|
2739
2822
|
}
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2823
|
+
LoadContainerConstants.DEFAULT_TOTAL = 0;
|
|
2824
|
+
LoadContainerConstants.DEFAULT_EMPTY_LABEL = 'Not found';
|
|
2825
|
+
LoadContainerConstants.DEFAULT_SHOW_MORE_LABEL = 'Show more';
|
|
2826
|
+
|
|
2827
|
+
var LoadContainerChangesSource;
|
|
2828
|
+
(function (LoadContainerChangesSource) {
|
|
2829
|
+
LoadContainerChangesSource["Initial"] = "initial";
|
|
2830
|
+
LoadContainerChangesSource["Predicate"] = "predicate";
|
|
2831
|
+
LoadContainerChangesSource["Page"] = "page";
|
|
2832
|
+
LoadContainerChangesSource["More"] = "more";
|
|
2833
|
+
LoadContainerChangesSource["Data"] = "data";
|
|
2834
|
+
})(LoadContainerChangesSource || (LoadContainerChangesSource = {}));
|
|
2749
2835
|
|
|
2750
2836
|
var LoadContainerType;
|
|
2751
2837
|
(function (LoadContainerType) {
|
|
2752
2838
|
LoadContainerType["Dropdown"] = "dropdown";
|
|
2753
2839
|
LoadContainerType["Table"] = "table";
|
|
2754
|
-
})(LoadContainerType || (LoadContainerType = {}));
|
|
2755
|
-
var LoadChangesSource;
|
|
2756
|
-
(function (LoadChangesSource) {
|
|
2757
|
-
LoadChangesSource["Parameters"] = "parameters";
|
|
2758
|
-
LoadChangesSource["Data"] = "data";
|
|
2759
|
-
})(LoadChangesSource || (LoadChangesSource = {}));
|
|
2760
|
-
|
|
2761
|
-
class LoadContainerConstants {
|
|
2762
|
-
}
|
|
2763
|
-
LoadContainerConstants.DEFAULT_PAGE_SIZE = 5;
|
|
2764
|
-
LoadContainerConstants.DEFAULT_NOT_FOUND_LABEL = 'Not found';
|
|
2840
|
+
})(LoadContainerType || (LoadContainerType = {}));
|
|
2765
2841
|
|
|
2766
2842
|
class LoadMoreButtonComponent {
|
|
2767
2843
|
constructor() {
|
|
@@ -2775,10 +2851,10 @@ class LoadMoreButtonComponent {
|
|
|
2775
2851
|
}
|
|
2776
2852
|
}
|
|
2777
2853
|
LoadMoreButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoadMoreButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2778
|
-
LoadMoreButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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
|
|
2854
|
+
LoadMoreButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", 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,:host-context(.sfc-default-theme) :host .container{background:#fff}:host-context(.sfc-dark-theme) :host .container{background:transparent}:host .container .button{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;cursor:pointer;transition:color .5s ease;transition:color .5s;padding:.5em 0 1em}:host .container .button,:host-context(.sfc-default-theme) :host .container .button{color:#545e61}:host-context(.sfc-dark-theme) :host .container .button{color:#fff}: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:#ffce54}\n"], dependencies: [{ kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }, { kind: "directive", type: MouseDownDirective, selector: "[sfcMouseDown]", inputs: ["button"], outputs: ["sfcMouseDown"] }, { kind: "component", type: DelimeterComponent, selector: "sfc-delimeter", inputs: ["label", "direction"] }] });
|
|
2779
2855
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoadMoreButtonComponent, decorators: [{
|
|
2780
2856
|
type: Component,
|
|
2781
|
-
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
|
|
2857
|
+
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,:host-context(.sfc-default-theme) :host .container{background:#fff}:host-context(.sfc-dark-theme) :host .container{background:transparent}:host .container .button{display:inline-flex;align-items:center;justify-content:center;flex-wrap:wrap;cursor:pointer;transition:color .5s ease;transition:color .5s;padding:.5em 0 1em}:host .container .button,:host-context(.sfc-default-theme) :host .container .button{color:#545e61}:host-context(.sfc-dark-theme) :host .container .button{color:#fff}: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:#ffce54}\n"] }]
|
|
2782
2858
|
}], propDecorators: { label: [{
|
|
2783
2859
|
type: Input
|
|
2784
2860
|
}], icon: [{
|
|
@@ -2788,37 +2864,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
2788
2864
|
}] } });
|
|
2789
2865
|
|
|
2790
2866
|
class LoadContainerComponent {
|
|
2791
|
-
constructor(loaderService, loadMoreService) {
|
|
2867
|
+
constructor(loaderService, loadMoreService, paginationService, sortingService) {
|
|
2792
2868
|
this.loaderService = loaderService;
|
|
2793
2869
|
this.loadMoreService = loadMoreService;
|
|
2870
|
+
this.paginationService = paginationService;
|
|
2871
|
+
this.sortingService = sortingService;
|
|
2794
2872
|
this.ComponentSize = ComponentSize;
|
|
2795
2873
|
this.Position = Position;
|
|
2796
2874
|
this.type = LoadContainerType.Dropdown;
|
|
2797
2875
|
this.open = false;
|
|
2876
|
+
// outer flag to allow load more or not
|
|
2798
2877
|
this.loadMore = true;
|
|
2878
|
+
this.loadMoreLabel = LoadContainerConstants.DEFAULT_SHOW_MORE_LABEL;
|
|
2799
2879
|
this.showEmpty = true;
|
|
2800
|
-
this.
|
|
2801
|
-
this.
|
|
2880
|
+
this.emptyLabel = LoadContainerConstants.DEFAULT_EMPTY_LABEL;
|
|
2881
|
+
this.paginationCount = PaginationConstants.DEFAULT_COUNT;
|
|
2882
|
+
this.paginationLimits = false;
|
|
2883
|
+
this.showLoading = true;
|
|
2802
2884
|
this.handleError = new EventEmitter();
|
|
2803
2885
|
this.handleSuccess = new EventEmitter();
|
|
2804
2886
|
this.handleLoading = new EventEmitter();
|
|
2805
2887
|
this.next = false;
|
|
2806
2888
|
this.empty = false;
|
|
2889
|
+
this.total = LoadContainerConstants.DEFAULT_TOTAL;
|
|
2807
2890
|
this._loading = false;
|
|
2808
|
-
// define what source emit changes for data
|
|
2809
|
-
this.source =
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
next: (result) => this.success(result),
|
|
2819
|
-
error: (error) => this.error(error)
|
|
2820
|
-
});
|
|
2821
|
-
}
|
|
2891
|
+
// define what source emit changes for data
|
|
2892
|
+
this.source = LoadContainerChangesSource.Initial;
|
|
2893
|
+
this.predicateChanged = false;
|
|
2894
|
+
}
|
|
2895
|
+
set model(value) {
|
|
2896
|
+
this._model = value;
|
|
2897
|
+
this.subscribe();
|
|
2898
|
+
}
|
|
2899
|
+
get model() {
|
|
2900
|
+
return this._model;
|
|
2822
2901
|
}
|
|
2823
2902
|
get scrollPosition() {
|
|
2824
2903
|
return !this.allowLoadMore || this.showLoadMoreButton ? [] : [Position.Bottom];
|
|
@@ -2826,6 +2905,8 @@ class LoadContainerComponent {
|
|
|
2826
2905
|
get allowLoadMore() { return this.next && this.loadMore; }
|
|
2827
2906
|
get hideLoadMoreButton() { return !(this.allowLoadMore && this.showLoadMoreButton); }
|
|
2828
2907
|
get isEmpty() { return this.empty && this.showEmpty; }
|
|
2908
|
+
get page() { return this.pagination ? this.paginationService.pageValue : this.loadMoreService.pageValue; }
|
|
2909
|
+
get showPagination() { return Boolean(this.total) && !this.empty && this.pagination; }
|
|
2829
2910
|
set loading(value) {
|
|
2830
2911
|
this._loading = value;
|
|
2831
2912
|
if (value)
|
|
@@ -2834,6 +2915,15 @@ class LoadContainerComponent {
|
|
|
2834
2915
|
this.loaderService.hide(this.id);
|
|
2835
2916
|
this.handleLoading.emit(value);
|
|
2836
2917
|
}
|
|
2918
|
+
get showLoadMoreButton() {
|
|
2919
|
+
return this.model.loadType == LoadContainerLoadType.Button;
|
|
2920
|
+
}
|
|
2921
|
+
get reset() {
|
|
2922
|
+
return this.source == LoadContainerChangesSource.Predicate ||
|
|
2923
|
+
this.source == LoadContainerChangesSource.Page ||
|
|
2924
|
+
this.source == LoadContainerChangesSource.Data;
|
|
2925
|
+
}
|
|
2926
|
+
get pagination() { return this.model.loadType == LoadContainerLoadType.Pagination; }
|
|
2837
2927
|
ngOnDestroy() {
|
|
2838
2928
|
if (this._subscription)
|
|
2839
2929
|
this._subscription.unsubscribe();
|
|
@@ -2850,64 +2940,94 @@ class LoadContainerComponent {
|
|
|
2850
2940
|
this.next = result.next;
|
|
2851
2941
|
this.loading = false;
|
|
2852
2942
|
this.empty = !any(result.items);
|
|
2943
|
+
this.total = result.total;
|
|
2944
|
+
this.loadMore = true;
|
|
2853
2945
|
this.handleSuccess.emit(result);
|
|
2854
2946
|
}
|
|
2855
2947
|
error(error) {
|
|
2856
2948
|
this.loading = false;
|
|
2857
2949
|
this.empty = false;
|
|
2950
|
+
this.total = 0;
|
|
2858
2951
|
this.handleError.emit(error);
|
|
2859
2952
|
}
|
|
2953
|
+
subscribe() {
|
|
2954
|
+
var _a;
|
|
2955
|
+
if (!this.model)
|
|
2956
|
+
return;
|
|
2957
|
+
if (!isDefined(this.model.pagination))
|
|
2958
|
+
this.model.pagination = PaginationConstants.DEFAULT_PAGINATION;
|
|
2959
|
+
else
|
|
2960
|
+
this.paginationService.pageValue = (_a = this.model.pagination) === null || _a === void 0 ? void 0 : _a.page;
|
|
2961
|
+
const parameters$ = this.buildParameters(this.model.predicate$), data$ = isDefined(this.model.loader)
|
|
2962
|
+
? this.buildDynamic(parameters$, this.model.loader)
|
|
2963
|
+
: this.buildStatic(parameters$, this.model);
|
|
2964
|
+
if (isDefined(this._subscription))
|
|
2965
|
+
this._subscription.unsubscribe();
|
|
2966
|
+
this._subscription = data$.subscribe({
|
|
2967
|
+
next: (result) => this.success(result),
|
|
2968
|
+
error: (error) => this.error(error)
|
|
2969
|
+
});
|
|
2970
|
+
}
|
|
2860
2971
|
buildParameters(predicate$) {
|
|
2861
|
-
const parameters$ = (predicate$ || EMPTY.pipe(startWith(null))).pipe(tap((
|
|
2862
|
-
if (
|
|
2972
|
+
const parameters$ = (predicate$ || EMPTY.pipe(startWith(null))).pipe(tap(() => {
|
|
2973
|
+
if (this.source != LoadContainerChangesSource.Initial)
|
|
2863
2974
|
this.resetParameters();
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2975
|
+
this.source = LoadContainerChangesSource.Predicate;
|
|
2976
|
+
this.predicateChanged = true;
|
|
2977
|
+
}), switchMap((params) => {
|
|
2978
|
+
var _a;
|
|
2979
|
+
const more$ = this.loadMoreService.more$.pipe(startWith(PaginationConstants.DEFAULT_PAGE), tap(() => {
|
|
2980
|
+
if (!this.predicateChanged)
|
|
2981
|
+
this.source = LoadContainerChangesSource.More;
|
|
2982
|
+
this.loadMore = false;
|
|
2983
|
+
this.predicateChanged = false;
|
|
2984
|
+
})), pagination$ = this.paginationService.page$.pipe(startWith(((_a = this.model.pagination) === null || _a === void 0 ? void 0 : _a.page) || PaginationConstants.DEFAULT_PAGE), tap(() => {
|
|
2985
|
+
if (!this.predicateChanged)
|
|
2986
|
+
this.source = LoadContainerChangesSource.Page;
|
|
2987
|
+
this.predicateChanged = false;
|
|
2988
|
+
})), loader$ = this.pagination ? pagination$ : more$;
|
|
2989
|
+
return loader$.pipe(map(() => ({ params: params, page: this.page })));
|
|
2871
2990
|
}));
|
|
2872
|
-
return parameters
|
|
2991
|
+
return combineLatest([this.sortingService.sorting$.pipe(startWith(this.model.sorting)), parameters$]).pipe(tap(() => this.loading = true), map(([sorting, parameters]) => ({ params: parameters.params, page: parameters.page, sorting: sorting })));
|
|
2873
2992
|
}
|
|
2874
2993
|
buildDynamic(parameters$, loader) {
|
|
2875
|
-
return parameters$.pipe(switchMap((parameters) => loader(parameters,
|
|
2876
|
-
if (model.reset) {
|
|
2877
|
-
this.source = LoadChangesSource.Data;
|
|
2878
|
-
this.resetParameters();
|
|
2879
|
-
}
|
|
2880
|
-
}))));
|
|
2994
|
+
return parameters$.pipe(switchMap((parameters) => loader(parameters)), map((model) => (Object.assign(Object.assign({}, model), { reset: this.reset, page: this.page }))));
|
|
2881
2995
|
}
|
|
2882
2996
|
buildStatic(parameters$, model) {
|
|
2883
|
-
const data$ = (model.data$ || of([])).pipe(tap(
|
|
2997
|
+
const data$ = (model.data$ || of([])).pipe(map((data, index) => ({ data, index })), tap(model => this.source = model.index ? LoadContainerChangesSource.Data : this.source), map(model => model.data));
|
|
2884
2998
|
return combineLatest([parameters$, data$]).pipe(map(([parameters, items]) => {
|
|
2885
|
-
|
|
2886
|
-
if
|
|
2887
|
-
|
|
2999
|
+
var _a, _b;
|
|
3000
|
+
// if data changed need to start from start (pagination)
|
|
3001
|
+
if (this.source == LoadContainerChangesSource.Data
|
|
3002
|
+
&& parameters.page != LoadMoreService.START_PAGE) {
|
|
2888
3003
|
this.resetParameters();
|
|
2889
|
-
parameters = { params: parameters.params, page:
|
|
3004
|
+
parameters = { params: parameters.params, page: this.page, sorting: parameters.sorting };
|
|
2890
3005
|
}
|
|
2891
|
-
const filtered = model.filter ? model.filter(items, parameters) : items,
|
|
2892
|
-
items: skip(
|
|
2893
|
-
next: parameters.page < Math.ceil(
|
|
2894
|
-
reset
|
|
2895
|
-
|
|
3006
|
+
const filtered = model.filter ? model.filter(items, parameters) : items, sorted = parameters.sorting ? sortBy([...filtered], parameters.sorting.id, parameters.sorting.direction) : filtered, data = sorted ? {
|
|
3007
|
+
items: skip(sorted, parameters.page, (_a = this.model.pagination) === null || _a === void 0 ? void 0 : _a.size),
|
|
3008
|
+
next: parameters.page < Math.ceil(sorted.length / ((_b = this.model.pagination) === null || _b === void 0 ? void 0 : _b.size)),
|
|
3009
|
+
reset: this.reset,
|
|
3010
|
+
total: sorted.length,
|
|
3011
|
+
page: parameters.page
|
|
3012
|
+
} : { items: [], next: false, reset: this.reset, total: items.length, page: parameters.page };
|
|
2896
3013
|
return data;
|
|
2897
3014
|
}));
|
|
2898
3015
|
}
|
|
2899
3016
|
resetParameters() {
|
|
2900
3017
|
if (isDefined(this.contentEl))
|
|
2901
3018
|
this.contentEl.nativeElement.scrollTop = 0;
|
|
2902
|
-
this.
|
|
3019
|
+
if (this.pagination)
|
|
3020
|
+
this.paginationService.reset();
|
|
3021
|
+
else
|
|
3022
|
+
this.loadMoreService.reset();
|
|
2903
3023
|
}
|
|
2904
3024
|
}
|
|
2905
|
-
LoadContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoadContainerComponent, deps: [{ token: LoaderService }, { token: LoadMoreService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2906
|
-
LoadContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: LoadContainerComponent, selector: "sfc-load-container", inputs: { id: "id", type: "type", open: "open", loadMore: "loadMore", showEmpty: "showEmpty",
|
|
3025
|
+
LoadContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoadContainerComponent, deps: [{ token: LoaderService }, { token: LoadMoreService }, { token: PaginationService }, { token: SortingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3026
|
+
LoadContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: LoadContainerComponent, selector: "sfc-load-container", inputs: { id: "id", type: "type", open: "open", loadMore: "loadMore", loadMoreLabel: "loadMoreLabel", showEmpty: "showEmpty", emptyLabel: "emptyLabel", model: "model", scrollTarget: "scrollTarget", paginationCount: "paginationCount", paginationLimits: "paginationLimits", showLoading: "showLoading" }, 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, PaginationService], viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["content"], descendants: true }], ngImport: i0, template: "<div class=\"container\">\r\n <sfc-bounce-loader *ngIf=\"showLoading\" [id]=\"id\" [sfcComponentSize]=\"ComponentSize.Small\"></sfc-bounce-loader>\r\n <div #content class=\"content\" [sfcScrollIntoView]=\"scrollTarget\" (sfcScrollTracker)=\"onScroll()\"\r\n [positions]=\"scrollPosition\">\r\n <div class=\"items\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"actions\" (sfcMouseDown)=\"$event.preventDefault()\">\r\n <sfc-load-more-button [hidden]=\"hideLoadMoreButton\" (more)=\"more($event)\" [label]=\"loadMoreLabel\">\r\n </sfc-load-more-button>\r\n <sfc-pagination *ngIf=\"showPagination\" [limits]=\"paginationLimits\" [count]=\"paginationCount\" [full]=\"false\"\r\n [total]=\"total\" [size]=\"model.pagination?.size!\" [page]=\"page\">\r\n </sfc-pagination>\r\n <sfc-delimeter *ngIf=\"isEmpty\" [label]=\"emptyLabel\"></sfc-delimeter>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{width:100%;height:inherit;position:relative}:host .container{height:inherit}:host .container .content{cursor:initial;overflow-y:auto;overflow-x:hidden;height:inherit}:host .container .content,:host-context(.sfc-default-theme) :host .container .content{background:#fff}:host-context(.sfc-dark-theme) :host .container .content{background:transparent}:host .container .content sfc-delimeter{font-style:italic;font-weight:700}: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:#e9e9e9}: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"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: MouseDownDirective, selector: "[sfcMouseDown]", inputs: ["button"], outputs: ["sfcMouseDown"] }, { kind: "directive", type: ComponentSizeDirective, selector: "[sfcComponentSize]", inputs: ["sfcComponentSize", "customSize"] }, { kind: "directive", type: ScrollTrackerDirective, selector: "[sfcScrollTracker]", inputs: ["positions"], outputs: ["sfcScrollTracker"] }, { kind: "directive", type: ScrollIntoViewDirective, selector: "[sfcScrollIntoView]", inputs: ["sfcScrollIntoView", "local", "options"] }, { kind: "component", type: DelimeterComponent, selector: "sfc-delimeter", inputs: ["label", "direction"] }, { kind: "component", type: PaginationComponent, selector: "sfc-pagination", inputs: ["count", "full", "limits", "page", "total", "size"] }, { kind: "component", type: LoadMoreButtonComponent, selector: "sfc-load-more-button", inputs: ["label", "icon"], outputs: ["more"] }, { kind: "component", type: BounceLoaderComponent, selector: "sfc-bounce-loader" }] });
|
|
2907
3027
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoadContainerComponent, decorators: [{
|
|
2908
3028
|
type: Component,
|
|
2909
|
-
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()\"
|
|
2910
|
-
}], ctorParameters: function () { return [{ type: LoaderService }, { type: LoadMoreService }]; }, propDecorators: { id: [{
|
|
3029
|
+
args: [{ selector: 'sfc-load-container', providers: [LoadMoreService, PaginationService], template: "<div class=\"container\">\r\n <sfc-bounce-loader *ngIf=\"showLoading\" [id]=\"id\" [sfcComponentSize]=\"ComponentSize.Small\"></sfc-bounce-loader>\r\n <div #content class=\"content\" [sfcScrollIntoView]=\"scrollTarget\" (sfcScrollTracker)=\"onScroll()\"\r\n [positions]=\"scrollPosition\">\r\n <div class=\"items\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"actions\" (sfcMouseDown)=\"$event.preventDefault()\">\r\n <sfc-load-more-button [hidden]=\"hideLoadMoreButton\" (more)=\"more($event)\" [label]=\"loadMoreLabel\">\r\n </sfc-load-more-button>\r\n <sfc-pagination *ngIf=\"showPagination\" [limits]=\"paginationLimits\" [count]=\"paginationCount\" [full]=\"false\"\r\n [total]=\"total\" [size]=\"model.pagination?.size!\" [page]=\"page\">\r\n </sfc-pagination>\r\n <sfc-delimeter *ngIf=\"isEmpty\" [label]=\"emptyLabel\"></sfc-delimeter>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{width:100%;height:inherit;position:relative}:host .container{height:inherit}:host .container .content{cursor:initial;overflow-y:auto;overflow-x:hidden;height:inherit}:host .container .content,:host-context(.sfc-default-theme) :host .container .content{background:#fff}:host-context(.sfc-dark-theme) :host .container .content{background:transparent}:host .container .content sfc-delimeter{font-style:italic;font-weight:700}: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:#e9e9e9}: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"] }]
|
|
3030
|
+
}], ctorParameters: function () { return [{ type: LoaderService }, { type: LoadMoreService }, { type: PaginationService }, { type: SortingService }]; }, propDecorators: { id: [{
|
|
2911
3031
|
type: Input
|
|
2912
3032
|
}], type: [{
|
|
2913
3033
|
type: Input
|
|
@@ -2921,18 +3041,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
2921
3041
|
args: [`class.${UIClass.Open}`]
|
|
2922
3042
|
}], loadMore: [{
|
|
2923
3043
|
type: Input
|
|
2924
|
-
}], showEmpty: [{
|
|
2925
|
-
type: Input
|
|
2926
|
-
}], showLoadMoreButton: [{
|
|
2927
|
-
type: Input
|
|
2928
3044
|
}], loadMoreLabel: [{
|
|
2929
3045
|
type: Input
|
|
2930
|
-
}],
|
|
3046
|
+
}], showEmpty: [{
|
|
3047
|
+
type: Input
|
|
3048
|
+
}], emptyLabel: [{
|
|
2931
3049
|
type: Input
|
|
2932
3050
|
}], model: [{
|
|
2933
3051
|
type: Input
|
|
2934
3052
|
}], scrollTarget: [{
|
|
2935
3053
|
type: Input
|
|
3054
|
+
}], paginationCount: [{
|
|
3055
|
+
type: Input
|
|
3056
|
+
}], paginationLimits: [{
|
|
3057
|
+
type: Input
|
|
3058
|
+
}], showLoading: [{
|
|
3059
|
+
type: Input
|
|
2936
3060
|
}], handleError: [{
|
|
2937
3061
|
type: Output
|
|
2938
3062
|
}], handleSuccess: [{
|
|
@@ -2960,16 +3084,97 @@ class IconComponent {
|
|
|
2960
3084
|
}
|
|
2961
3085
|
}
|
|
2962
3086
|
IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2963
|
-
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: IconComponent, selector: "sfc-icon", inputs: { icon: "icon", imageSrc: "imageSrc" }, ngImport: i0, template: "<div class=\"container\">\r\n <fa-icon *ngIf=\"icon\" [icon]=\"icon\"></fa-icon>\r\n <img *ngIf=\"showImage\" [src]=\"imageSrc\">\r\n</div>", styles: [":host{display:inline-block}:host .container{display:flex;align-items:center;justify-content:center}:host .container img{max-width:1.3em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type:
|
|
3087
|
+
IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: IconComponent, selector: "sfc-icon", inputs: { icon: "icon", imageSrc: "imageSrc" }, ngImport: i0, template: "<div class=\"container\">\r\n <fa-icon *ngIf=\"icon\" [icon]=\"icon\"></fa-icon>\r\n <img *ngIf=\"showImage\" [src]=\"imageSrc\">\r\n</div>", styles: [":host{display:inline-block}:host .container{display:flex;align-items:center;justify-content:center}:host .container img{max-width:1.3em;max-height:1.3em}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
2964
3088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: IconComponent, decorators: [{
|
|
2965
3089
|
type: Component,
|
|
2966
|
-
args: [{ selector: 'sfc-icon', template: "<div class=\"container\">\r\n <fa-icon *ngIf=\"icon\" [icon]=\"icon\"></fa-icon>\r\n <img *ngIf=\"showImage\" [src]=\"imageSrc\">\r\n</div>", styles: [":host{display:inline-block}:host .container{display:flex;align-items:center;justify-content:center}:host .container img{max-width:1.3em}\n"] }]
|
|
3090
|
+
args: [{ selector: 'sfc-icon', template: "<div class=\"container\">\r\n <fa-icon *ngIf=\"icon\" [icon]=\"icon\"></fa-icon>\r\n <img *ngIf=\"showImage\" [src]=\"imageSrc\">\r\n</div>", styles: [":host{display:inline-block}:host .container{display:flex;align-items:center;justify-content:center}:host .container img{max-width:1.3em;max-height:1.3em}\n"] }]
|
|
2967
3091
|
}], propDecorators: { icon: [{
|
|
2968
3092
|
type: Input
|
|
2969
3093
|
}], imageSrc: [{
|
|
2970
3094
|
type: Input
|
|
2971
3095
|
}] } });
|
|
2972
3096
|
|
|
3097
|
+
class CollapseExpandConstants {
|
|
3098
|
+
}
|
|
3099
|
+
CollapseExpandConstants.LABEL_EXPAND_DEFAULT = 'Expand';
|
|
3100
|
+
CollapseExpandConstants.LABEL_COLLAPSE_DEFAULT = 'Collapse';
|
|
3101
|
+
|
|
3102
|
+
class CollapseExpandComponent {
|
|
3103
|
+
constructor() {
|
|
3104
|
+
this.expand = false;
|
|
3105
|
+
this.labelExpand = CollapseExpandConstants.LABEL_EXPAND_DEFAULT;
|
|
3106
|
+
this.labelCollapse = CollapseExpandConstants.LABEL_COLLAPSE_DEFAULT;
|
|
3107
|
+
}
|
|
3108
|
+
get label() {
|
|
3109
|
+
return this.expand ? this.labelCollapse : this.labelExpand;
|
|
3110
|
+
}
|
|
3111
|
+
get icon() {
|
|
3112
|
+
return this.expand ? faChevronUp : faChevronDown;
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
CollapseExpandComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CollapseExpandComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3116
|
+
CollapseExpandComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CollapseExpandComponent, selector: "sfc-collapse-expand", inputs: { expand: "expand", labelExpand: "labelExpand", labelCollapse: "labelCollapse" }, ngImport: i0, template: "<div class=\"container\">\r\n <span>{{label}}</span>\r\n <fa-icon [icon]=\"icon\"></fa-icon>\r\n</div>", styles: [":host{-webkit-user-select:none;user-select:none;cursor:pointer}:host .container{display:flex;justify-content:space-between;align-items:center;transition:color .5s ease}:host .container,:host-context(.sfc-default-theme) :host .container{color:#545e61}:host-context(.sfc-dark-theme) :host .container{color:#fff}:host .container span{padding-right:.5em;font-weight:700}:host .container:hover{color:#ffce54}\n"], dependencies: [{ kind: "component", type: i1$2.FaIconComponent, selector: "fa-icon", inputs: ["icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "classes", "transform", "a11yRole"] }] });
|
|
3117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CollapseExpandComponent, decorators: [{
|
|
3118
|
+
type: Component,
|
|
3119
|
+
args: [{ selector: 'sfc-collapse-expand', template: "<div class=\"container\">\r\n <span>{{label}}</span>\r\n <fa-icon [icon]=\"icon\"></fa-icon>\r\n</div>", styles: [":host{-webkit-user-select:none;user-select:none;cursor:pointer}:host .container{display:flex;justify-content:space-between;align-items:center;transition:color .5s ease}:host .container,:host-context(.sfc-default-theme) :host .container{color:#545e61}:host-context(.sfc-dark-theme) :host .container{color:#fff}:host .container span{padding-right:.5em;font-weight:700}:host .container:hover{color:#ffce54}\n"] }]
|
|
3120
|
+
}], propDecorators: { expand: [{
|
|
3121
|
+
type: Input
|
|
3122
|
+
}], labelExpand: [{
|
|
3123
|
+
type: Input
|
|
3124
|
+
}], labelCollapse: [{
|
|
3125
|
+
type: Input
|
|
3126
|
+
}] } });
|
|
3127
|
+
|
|
3128
|
+
class CollapseExpandContainerComponent {
|
|
3129
|
+
constructor() {
|
|
3130
|
+
this.faChevronDown = faChevronDown;
|
|
3131
|
+
this.faChevronUp = faChevronUp;
|
|
3132
|
+
this.expand = false;
|
|
3133
|
+
this.delimeter = false;
|
|
3134
|
+
}
|
|
3135
|
+
}
|
|
3136
|
+
CollapseExpandContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CollapseExpandContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3137
|
+
CollapseExpandContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: CollapseExpandContainerComponent, selector: "sfc-collapse-expand-container", inputs: { expand: "expand", labelExpand: "labelExpand", labelCollapse: "labelCollapse", delimeter: "delimeter" }, ngImport: i0, template: "<div class=\"container\">\r\n <sfc-collapse-expand [expand]=\"expand\" [labelExpand]=\"labelExpand\" [labelCollapse]=\"labelCollapse\"\r\n (click)=\"expand = !expand\" [sfcComponentSize] [customSize]=\"0.8\">\r\n </sfc-collapse-expand>\r\n <div class=\"content\" [sfcIf]=\"expand\">\r\n <ng-content></ng-content>\r\n </div>\r\n <sfc-delimeter *ngIf=\"delimeter\"></sfc-delimeter>\r\n</div>", styles: [":host .container{display:flex;flex-direction:column;align-items:flex-end}:host .container sfc-collapse-expand{padding-bottom:.3em}:host .container .content{width:100%}:host .container sfc-delimeter{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: IfDirective, selector: "[sfcIf]", inputs: ["sfcIf"] }, { kind: "directive", type: ComponentSizeDirective, selector: "[sfcComponentSize]", inputs: ["sfcComponentSize", "customSize"] }, { kind: "component", type: DelimeterComponent, selector: "sfc-delimeter", inputs: ["label", "direction"] }, { kind: "component", type: CollapseExpandComponent, selector: "sfc-collapse-expand", inputs: ["expand", "labelExpand", "labelCollapse"] }] });
|
|
3138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: CollapseExpandContainerComponent, decorators: [{
|
|
3139
|
+
type: Component,
|
|
3140
|
+
args: [{ selector: 'sfc-collapse-expand-container', template: "<div class=\"container\">\r\n <sfc-collapse-expand [expand]=\"expand\" [labelExpand]=\"labelExpand\" [labelCollapse]=\"labelCollapse\"\r\n (click)=\"expand = !expand\" [sfcComponentSize] [customSize]=\"0.8\">\r\n </sfc-collapse-expand>\r\n <div class=\"content\" [sfcIf]=\"expand\">\r\n <ng-content></ng-content>\r\n </div>\r\n <sfc-delimeter *ngIf=\"delimeter\"></sfc-delimeter>\r\n</div>", styles: [":host .container{display:flex;flex-direction:column;align-items:flex-end}:host .container sfc-collapse-expand{padding-bottom:.3em}:host .container .content{width:100%}:host .container sfc-delimeter{width:100%}\n"] }]
|
|
3141
|
+
}], propDecorators: { expand: [{
|
|
3142
|
+
type: Input
|
|
3143
|
+
}], labelExpand: [{
|
|
3144
|
+
type: Input
|
|
3145
|
+
}], labelCollapse: [{
|
|
3146
|
+
type: Input
|
|
3147
|
+
}], delimeter: [{
|
|
3148
|
+
type: Input
|
|
3149
|
+
}] } });
|
|
3150
|
+
|
|
3151
|
+
class ToggleComponent {
|
|
3152
|
+
constructor() {
|
|
3153
|
+
this.active = false;
|
|
3154
|
+
this.disabled = false;
|
|
3155
|
+
this.onClick = () => this.active = !this.active;
|
|
3156
|
+
}
|
|
3157
|
+
}
|
|
3158
|
+
ToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3159
|
+
ToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: ToggleComponent, selector: "sfc-toggle", inputs: { active: "active", disabled: "disabled" }, host: { listeners: { "click": "onClick()" }, properties: { "class.active": "this.active", "class.disabled": "this.disabled" } }, ngImport: i0, template: `<div class="container"><label></label></div>`, isInline: true, styles: [":host .container label{display:block;width:2.5em;height:1.25em;box-sizing:border-box;cursor:pointer;padding:.125em;background:transparent;border:.1em solid;border-radius:2em;transition:border-color .5s ease;transition:all .5s ease}:host .container label,:host-context(.sfc-default-theme) :host .container label{border-color:#545e61}:host-context(.sfc-dark-theme) :host .container label{border-color:#fff}:host .container label:after,:host .container label:before{content:\"\";position:relative;display:block;width:50%;height:100%}:host .container label:after{content:\"\";left:0;transition:background .5s ease;transition:all .5s ease;border-radius:1em}:host .container label:after,:host-context(.sfc-default-theme) :host .container label:after{background:#545e61}:host-context(.sfc-dark-theme) :host .container label:after{background:#fff}:host .container label:before{display:none}:host.active .container label:after{left:50%}:host.disabled{pointer-events:none}:host.disabled .container label{transition:border-color .5s ease}:host.disabled .container label,:host-context(.sfc-default-theme) :host.disabled .container label{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .container label{border-color:#656d78}:host.disabled .container label:after{transition:background .5s ease}:host.disabled .container label:after,:host-context(.sfc-default-theme) :host.disabled .container label:after{background:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .container label:after{background:#656d78}\n"] });
|
|
3160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: ToggleComponent, decorators: [{
|
|
3161
|
+
type: Component,
|
|
3162
|
+
args: [{ selector: 'sfc-toggle', template: `<div class="container"><label></label></div>`, styles: [":host .container label{display:block;width:2.5em;height:1.25em;box-sizing:border-box;cursor:pointer;padding:.125em;background:transparent;border:.1em solid;border-radius:2em;transition:border-color .5s ease;transition:all .5s ease}:host .container label,:host-context(.sfc-default-theme) :host .container label{border-color:#545e61}:host-context(.sfc-dark-theme) :host .container label{border-color:#fff}:host .container label:after,:host .container label:before{content:\"\";position:relative;display:block;width:50%;height:100%}:host .container label:after{content:\"\";left:0;transition:background .5s ease;transition:all .5s ease;border-radius:1em}:host .container label:after,:host-context(.sfc-default-theme) :host .container label:after{background:#545e61}:host-context(.sfc-dark-theme) :host .container label:after{background:#fff}:host .container label:before{display:none}:host.active .container label:after{left:50%}:host.disabled{pointer-events:none}:host.disabled .container label{transition:border-color .5s ease}:host.disabled .container label,:host-context(.sfc-default-theme) :host.disabled .container label{border-color:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .container label{border-color:#656d78}:host.disabled .container label:after{transition:background .5s ease}:host.disabled .container label:after,:host-context(.sfc-default-theme) :host.disabled .container label:after{background:#bdbdbd}:host-context(.sfc-dark-theme) :host.disabled .container label:after{background:#656d78}\n"] }]
|
|
3163
|
+
}], propDecorators: { active: [{
|
|
3164
|
+
type: Input
|
|
3165
|
+
}, {
|
|
3166
|
+
type: HostBinding,
|
|
3167
|
+
args: ['class.' + UIClass.Active]
|
|
3168
|
+
}], disabled: [{
|
|
3169
|
+
type: Input
|
|
3170
|
+
}, {
|
|
3171
|
+
type: HostBinding,
|
|
3172
|
+
args: ['class.' + UIClass.Disabled]
|
|
3173
|
+
}], onClick: [{
|
|
3174
|
+
type: HostListener,
|
|
3175
|
+
args: ['click']
|
|
3176
|
+
}] } });
|
|
3177
|
+
|
|
2973
3178
|
class NgxSfcCommonModule {
|
|
2974
3179
|
}
|
|
2975
3180
|
NgxSfcCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgxSfcCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2977,6 +3182,7 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
2977
3182
|
// directives
|
|
2978
3183
|
ClickOutsideDirective,
|
|
2979
3184
|
ShowHideElementDirective,
|
|
3185
|
+
CollapseExpandDirective,
|
|
2980
3186
|
IfDirective,
|
|
2981
3187
|
ThrowElementOnHoverDirective,
|
|
2982
3188
|
TemplateReferenceDirective,
|
|
@@ -2987,6 +3193,7 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
2987
3193
|
ScrollTrackerDirective,
|
|
2988
3194
|
ScrollIntoViewDirective,
|
|
2989
3195
|
ImageLoadDirective,
|
|
3196
|
+
ComponentReferenceDirective,
|
|
2990
3197
|
// components
|
|
2991
3198
|
ButtonComponent,
|
|
2992
3199
|
TooltipComponent,
|
|
@@ -2999,10 +3206,12 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
2999
3206
|
HamburgerMenuComponent,
|
|
3000
3207
|
DotsComponent,
|
|
3001
3208
|
PaginationComponent,
|
|
3002
|
-
SortingComponent,
|
|
3003
3209
|
LoadMoreButtonComponent,
|
|
3004
3210
|
LoadContainerComponent,
|
|
3005
3211
|
IconComponent,
|
|
3212
|
+
CollapseExpandComponent,
|
|
3213
|
+
CollapseExpandContainerComponent,
|
|
3214
|
+
ToggleComponent,
|
|
3006
3215
|
// loaders
|
|
3007
3216
|
BounceLoaderComponent,
|
|
3008
3217
|
CircleLoaderComponent,
|
|
@@ -3013,12 +3222,14 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
3013
3222
|
DefaultModalHeaderComponent,
|
|
3014
3223
|
DefaultModalFooterComponent,
|
|
3015
3224
|
// pipes
|
|
3016
|
-
SwitchMultiCasePipe
|
|
3225
|
+
SwitchMultiCasePipe,
|
|
3226
|
+
SortByPipe
|
|
3017
3227
|
], imports: [CommonModule,
|
|
3018
3228
|
FontAwesomeModule], exports: [
|
|
3019
3229
|
// directives
|
|
3020
3230
|
ClickOutsideDirective,
|
|
3021
3231
|
ShowHideElementDirective,
|
|
3232
|
+
CollapseExpandDirective,
|
|
3022
3233
|
IfDirective,
|
|
3023
3234
|
ThrowElementOnHoverDirective,
|
|
3024
3235
|
TemplateReferenceDirective,
|
|
@@ -3029,6 +3240,7 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
3029
3240
|
ScrollTrackerDirective,
|
|
3030
3241
|
ScrollIntoViewDirective,
|
|
3031
3242
|
ImageLoadDirective,
|
|
3243
|
+
ComponentReferenceDirective,
|
|
3032
3244
|
// components
|
|
3033
3245
|
ButtonComponent,
|
|
3034
3246
|
TooltipComponent,
|
|
@@ -3041,10 +3253,12 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
3041
3253
|
HamburgerComponent,
|
|
3042
3254
|
HamburgerMenuComponent,
|
|
3043
3255
|
PaginationComponent,
|
|
3044
|
-
SortingComponent,
|
|
3045
3256
|
LoadMoreButtonComponent,
|
|
3046
3257
|
LoadContainerComponent,
|
|
3047
3258
|
IconComponent,
|
|
3259
|
+
CollapseExpandComponent,
|
|
3260
|
+
CollapseExpandContainerComponent,
|
|
3261
|
+
ToggleComponent,
|
|
3048
3262
|
// loaders
|
|
3049
3263
|
BounceLoaderComponent,
|
|
3050
3264
|
CircleLoaderComponent,
|
|
@@ -3055,7 +3269,8 @@ NgxSfcCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
3055
3269
|
DefaultModalHeaderComponent,
|
|
3056
3270
|
DefaultModalFooterComponent,
|
|
3057
3271
|
// pipes
|
|
3058
|
-
SwitchMultiCasePipe
|
|
3272
|
+
SwitchMultiCasePipe,
|
|
3273
|
+
SortByPipe
|
|
3059
3274
|
] });
|
|
3060
3275
|
NgxSfcCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgxSfcCommonModule, providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS], imports: [CommonModule,
|
|
3061
3276
|
FontAwesomeModule] });
|
|
@@ -3066,6 +3281,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3066
3281
|
// directives
|
|
3067
3282
|
ClickOutsideDirective,
|
|
3068
3283
|
ShowHideElementDirective,
|
|
3284
|
+
CollapseExpandDirective,
|
|
3069
3285
|
IfDirective,
|
|
3070
3286
|
ThrowElementOnHoverDirective,
|
|
3071
3287
|
TemplateReferenceDirective,
|
|
@@ -3076,6 +3292,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3076
3292
|
ScrollTrackerDirective,
|
|
3077
3293
|
ScrollIntoViewDirective,
|
|
3078
3294
|
ImageLoadDirective,
|
|
3295
|
+
ComponentReferenceDirective,
|
|
3079
3296
|
// components
|
|
3080
3297
|
ButtonComponent,
|
|
3081
3298
|
TooltipComponent,
|
|
@@ -3088,10 +3305,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3088
3305
|
HamburgerMenuComponent,
|
|
3089
3306
|
DotsComponent,
|
|
3090
3307
|
PaginationComponent,
|
|
3091
|
-
SortingComponent,
|
|
3092
3308
|
LoadMoreButtonComponent,
|
|
3093
3309
|
LoadContainerComponent,
|
|
3094
3310
|
IconComponent,
|
|
3311
|
+
CollapseExpandComponent,
|
|
3312
|
+
CollapseExpandContainerComponent,
|
|
3313
|
+
ToggleComponent,
|
|
3095
3314
|
// loaders
|
|
3096
3315
|
BounceLoaderComponent,
|
|
3097
3316
|
CircleLoaderComponent,
|
|
@@ -3102,7 +3321,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3102
3321
|
DefaultModalHeaderComponent,
|
|
3103
3322
|
DefaultModalFooterComponent,
|
|
3104
3323
|
// pipes
|
|
3105
|
-
SwitchMultiCasePipe
|
|
3324
|
+
SwitchMultiCasePipe,
|
|
3325
|
+
SortByPipe
|
|
3106
3326
|
],
|
|
3107
3327
|
imports: [
|
|
3108
3328
|
CommonModule,
|
|
@@ -3112,6 +3332,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3112
3332
|
// directives
|
|
3113
3333
|
ClickOutsideDirective,
|
|
3114
3334
|
ShowHideElementDirective,
|
|
3335
|
+
CollapseExpandDirective,
|
|
3115
3336
|
IfDirective,
|
|
3116
3337
|
ThrowElementOnHoverDirective,
|
|
3117
3338
|
TemplateReferenceDirective,
|
|
@@ -3122,6 +3343,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3122
3343
|
ScrollTrackerDirective,
|
|
3123
3344
|
ScrollIntoViewDirective,
|
|
3124
3345
|
ImageLoadDirective,
|
|
3346
|
+
ComponentReferenceDirective,
|
|
3125
3347
|
// components
|
|
3126
3348
|
ButtonComponent,
|
|
3127
3349
|
TooltipComponent,
|
|
@@ -3134,10 +3356,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3134
3356
|
HamburgerComponent,
|
|
3135
3357
|
HamburgerMenuComponent,
|
|
3136
3358
|
PaginationComponent,
|
|
3137
|
-
SortingComponent,
|
|
3138
3359
|
LoadMoreButtonComponent,
|
|
3139
3360
|
LoadContainerComponent,
|
|
3140
3361
|
IconComponent,
|
|
3362
|
+
CollapseExpandComponent,
|
|
3363
|
+
CollapseExpandContainerComponent,
|
|
3364
|
+
ToggleComponent,
|
|
3141
3365
|
// loaders
|
|
3142
3366
|
BounceLoaderComponent,
|
|
3143
3367
|
CircleLoaderComponent,
|
|
@@ -3148,7 +3372,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3148
3372
|
DefaultModalHeaderComponent,
|
|
3149
3373
|
DefaultModalFooterComponent,
|
|
3150
3374
|
// pipes
|
|
3151
|
-
SwitchMultiCasePipe
|
|
3375
|
+
SwitchMultiCasePipe,
|
|
3376
|
+
SortByPipe
|
|
3152
3377
|
],
|
|
3153
3378
|
providers: [DOCUMENT_PROVIDERS, WINDOW_PROVIDERS]
|
|
3154
3379
|
}]
|
|
@@ -3162,6 +3387,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
|
3162
3387
|
* Generated bundle index. Do not edit.
|
|
3163
3388
|
*/
|
|
3164
3389
|
|
|
3165
|
-
export { BounceLoaderComponent, BrowserDocumentRef, BrowserWindowRef, ButtonComponent, ButtonType, CheckmarkComponent, CheckmarkType, CircleLoaderComponent, CircleLoaderType, ClickOutsideDirective, CloseComponent, CommonConstants, Compare, ComponentSize, ComponentSizeDirective, DOCUMENT, DOCUMENT_PROVIDERS, DateTimeConstants, DefaultModalFooterComponent, DefaultModalHeaderComponent, DelimeterComponent, DestroyParentDirective, Direction, DocumentRef, DomChangesDirective, DotsComponent, HamburgerComponent, HamburgerMenuComponent, IconComponent, IfDirective, ImageLoadDirective, ImageLoadService,
|
|
3390
|
+
export { BounceLoaderComponent, BrowserDocumentRef, BrowserWindowRef, ButtonComponent, ButtonType, CheckmarkComponent, CheckmarkType, CircleLoaderComponent, CircleLoaderType, ClickOutsideDirective, CloseComponent, CollapseExpandComponent, CollapseExpandContainerComponent, CollapseExpandDirective, CommonConstants, Compare, ComponentReferenceDirective, ComponentSize, ComponentSizeDirective, DOCUMENT, DOCUMENT_PROVIDERS, DateTimeConstants, DefaultModalFooterComponent, DefaultModalHeaderComponent, DelimeterComponent, DestroyParentDirective, Direction, DocumentRef, DomChangesDirective, DotsComponent, HamburgerComponent, HamburgerMenuComponent, IconComponent, IfDirective, ImageLoadDirective, ImageLoadService, LoadContainerChangesSource, LoadContainerComponent, LoadContainerLoadType, LoadContainerType, LoadMoreButtonComponent, LoadMoreService, LoaderService, MediaLimits, ModalComponent, ModalOpenDirective, ModalOpenOnClickDirective, ModalService, ModalTemplate, MouseDownDirective, NgxSfcCommonModule, PaginationComponent, PaginationConstants, PaginationService, Position, ResizeService, ScrollIntoViewDirective, ScrollTrackerDirective, Sequence, ShowHideElementDirective, SortByPipe, SortingDirection, SortingService, SwitchMultiCasePipe, TemplateContentComponent, TemplateReferenceDirective, Theme, ThrowElementOnHoverDirective, ToggleComponent, ToggleSwitcherComponent, TooltipComponent, TooltipType, UIClass, UIConstants, WINDOW, WINDOW_PROVIDERS, WindowRef, addClasses, addItem, addPropertyToObject, all, any, browserDocumentProvider, browserWindowProvider, buildHttpParams, contains, convertDateToTimestamp, convertFromBase64String, convertTimestampToDate, convertToBase64String, convertUTCDateToLocalDate, count, distinct, documentFactory, documentProvider, firstItem, firstOrDefault, generateGuid, getAge, getCalcValue, getCollectionOrEmpty, getCssLikeValue, getFileExtension, getFirstDayOfMonth, getFirstDayOfMonthByYearAndMonth, getFirstDayOfYear, getLastDayOfMonth, getLastDayOfMonthByYearAndMonth, getLastDayOfYear, getNextDate, getNextMonth, getNextYear, getPreviousDate, getPreviousMonth, getPreviousYear, getRotateValue, getValueFromCssLikeValue, getWeeksNumberInMonth, hasItem, hasItemBy, hasObjectItem, hexToRgb, isAsyncData, isChromeBrowser, isDateGreat, isDateGreatOrEqual, isDateTimeGreat, isDateTimeGreatOrEqual, isDefined, isEmail, isEqual, isEqualDateTimes, isEqualDates, isImage, isNullOrEmptyString, isNumeric, isObject, lastItem, max, mergeDeep, nameof, parseBoolean, 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 };
|
|
3166
3391
|
//# sourceMappingURL=ngx-sfc-common.mjs.map
|
|
3167
3392
|
//# sourceMappingURL=ngx-sfc-common.mjs.map
|