@stemy/ngx-utils 19.9.32 → 19.9.33
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/fesm2022/stemy-ngx-utils.mjs +1055 -475
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +1 -0
- package/package.json +4 -1
- package/ng.mjs +0 -5
|
@@ -12,9 +12,10 @@ import * as i1 from 'ngx-device-detector';
|
|
|
12
12
|
import { DeviceDetectorService } from 'ngx-device-detector';
|
|
13
13
|
import { DateTime } from 'luxon';
|
|
14
14
|
import { Invokable } from 'invokable';
|
|
15
|
+
import { __decorate } from 'tslib';
|
|
15
16
|
import * as i1$1 from '@angular/common/http';
|
|
16
17
|
import { HttpHeaders, HttpParams, HttpUrlEncodingCodec, HttpClient, HttpEventType, HttpResponse } from '@angular/common/http';
|
|
17
|
-
import
|
|
18
|
+
import { parse } from 'json5';
|
|
18
19
|
import * as i1$2 from '@angular/platform-browser';
|
|
19
20
|
import { ɵDomEventsPlugin as _DomEventsPlugin, EVENT_MANAGER_PLUGINS } from '@angular/platform-browser';
|
|
20
21
|
import elementResizeDetectorMaker from 'element-resize-detector';
|
|
@@ -24,6 +25,10 @@ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
|
24
25
|
import { toSignal } from '@angular/core/rxjs-interop';
|
|
25
26
|
|
|
26
27
|
class CanvasColor {
|
|
28
|
+
r;
|
|
29
|
+
g;
|
|
30
|
+
b;
|
|
31
|
+
a;
|
|
27
32
|
constructor(r, g, b, a = 255) {
|
|
28
33
|
this.r = r;
|
|
29
34
|
this.g = g;
|
|
@@ -50,6 +55,11 @@ function ObjectType(type) {
|
|
|
50
55
|
};
|
|
51
56
|
}
|
|
52
57
|
class PaginationItemContext {
|
|
58
|
+
item;
|
|
59
|
+
parallelItem;
|
|
60
|
+
count;
|
|
61
|
+
index;
|
|
62
|
+
dataIndex;
|
|
53
63
|
constructor(item, parallelItem, count, index, dataIndex) {
|
|
54
64
|
this.item = item;
|
|
55
65
|
this.parallelItem = parallelItem;
|
|
@@ -84,11 +94,21 @@ class PaginationItemContext {
|
|
|
84
94
|
const EDITOR_TYPES = ["php", "json", "html", "css", "scss"];
|
|
85
95
|
// --- Resource if ---
|
|
86
96
|
class ResourceIfContext {
|
|
97
|
+
resource;
|
|
98
|
+
url;
|
|
87
99
|
}
|
|
88
100
|
class IConfiguration {
|
|
101
|
+
cdnUrl;
|
|
102
|
+
baseUrl;
|
|
103
|
+
baseDomain;
|
|
104
|
+
apiUrl;
|
|
105
|
+
translationUrl;
|
|
106
|
+
translationUrls;
|
|
107
|
+
translationExt;
|
|
89
108
|
}
|
|
90
109
|
// --- Valued promise ---
|
|
91
110
|
class ValuedPromise extends Promise {
|
|
111
|
+
value;
|
|
92
112
|
}
|
|
93
113
|
|
|
94
114
|
const ICON_TYPE = new InjectionToken("icon-component-type");
|
|
@@ -118,15 +138,13 @@ const STATIC_SCHEMAS = new InjectionToken("static-openapi-schemas");
|
|
|
118
138
|
const SCHEMA_SELECTOR = new InjectionToken("openapi-schema-selector");
|
|
119
139
|
|
|
120
140
|
class AjaxRequestHandler {
|
|
121
|
-
|
|
141
|
+
pattern;
|
|
142
|
+
callback;
|
|
143
|
+
static isOverridden = false;
|
|
144
|
+
params;
|
|
122
145
|
constructor(pattern, callback) {
|
|
123
146
|
this.pattern = pattern;
|
|
124
147
|
this.callback = callback;
|
|
125
|
-
this.listener = (event) => {
|
|
126
|
-
const details = event.detail;
|
|
127
|
-
if (this.pattern.test(details.url))
|
|
128
|
-
this.callback(details, this.params);
|
|
129
|
-
};
|
|
130
148
|
this.params = {};
|
|
131
149
|
if (typeof XMLHttpRequest !== "undefined" && !AjaxRequestHandler.isOverridden) {
|
|
132
150
|
AjaxRequestHandler.isOverridden = true;
|
|
@@ -155,6 +173,11 @@ class AjaxRequestHandler {
|
|
|
155
173
|
window.removeEventListener("ajaxRequest", this.listener);
|
|
156
174
|
return this;
|
|
157
175
|
}
|
|
176
|
+
listener = (event) => {
|
|
177
|
+
const details = event.detail;
|
|
178
|
+
if (this.pattern.test(details.url))
|
|
179
|
+
this.callback(details, this.params);
|
|
180
|
+
};
|
|
158
181
|
}
|
|
159
182
|
|
|
160
183
|
function defaultPredicate(value, key, target, source) {
|
|
@@ -646,6 +669,8 @@ class ReflectUtils {
|
|
|
646
669
|
* Use this service to determine which is the current environment
|
|
647
670
|
*/
|
|
648
671
|
class UniversalService {
|
|
672
|
+
platformId;
|
|
673
|
+
dds;
|
|
649
674
|
get isBrowser() {
|
|
650
675
|
return isPlatformBrowser(this.platformId);
|
|
651
676
|
}
|
|
@@ -699,6 +724,7 @@ class UniversalService {
|
|
|
699
724
|
get isCrawler() {
|
|
700
725
|
return this.crawler;
|
|
701
726
|
}
|
|
727
|
+
crawler;
|
|
702
728
|
constructor(platformId, dds) {
|
|
703
729
|
this.platformId = platformId;
|
|
704
730
|
this.dds = dds;
|
|
@@ -708,8 +734,8 @@ class UniversalService {
|
|
|
708
734
|
checkBrowser(name) {
|
|
709
735
|
return this.browserName.includes(name) || false;
|
|
710
736
|
}
|
|
711
|
-
static
|
|
712
|
-
static
|
|
737
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UniversalService, deps: [{ token: PLATFORM_ID }, { token: i1.DeviceDetectorService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
738
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UniversalService });
|
|
713
739
|
}
|
|
714
740
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UniversalService, decorators: [{
|
|
715
741
|
type: Injectable
|
|
@@ -724,6 +750,15 @@ const emptyParams = {};
|
|
|
724
750
|
const emptySegments = [];
|
|
725
751
|
const emptyComponents = [];
|
|
726
752
|
class StateService {
|
|
753
|
+
injector;
|
|
754
|
+
zone;
|
|
755
|
+
universal;
|
|
756
|
+
router;
|
|
757
|
+
contexts;
|
|
758
|
+
globalExtras;
|
|
759
|
+
$snapshot;
|
|
760
|
+
$component;
|
|
761
|
+
stateInfo;
|
|
727
762
|
static toPath(route, params) {
|
|
728
763
|
let path = route.path || "";
|
|
729
764
|
ObjectUtils.iterate(params, (value, key) => {
|
|
@@ -902,8 +937,8 @@ class StateService {
|
|
|
902
937
|
}
|
|
903
938
|
return [url, extras];
|
|
904
939
|
}
|
|
905
|
-
static
|
|
906
|
-
static
|
|
940
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StateService, deps: [{ token: i0.Injector }, { token: i0.NgZone }, { token: UniversalService }, { token: i2.Router, optional: true }, { token: i2.ChildrenOutletContexts, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
941
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StateService });
|
|
907
942
|
}
|
|
908
943
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StateService, decorators: [{
|
|
909
944
|
type: Injectable
|
|
@@ -914,6 +949,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
914
949
|
}] }] });
|
|
915
950
|
|
|
916
951
|
class AuthGuard {
|
|
952
|
+
injector;
|
|
953
|
+
state;
|
|
954
|
+
auth;
|
|
917
955
|
static guardAuthenticated(auth) {
|
|
918
956
|
return Promise.resolve(auth.isAuthenticated);
|
|
919
957
|
}
|
|
@@ -1022,8 +1060,8 @@ class AuthGuard {
|
|
|
1022
1060
|
});
|
|
1023
1061
|
});
|
|
1024
1062
|
}
|
|
1025
|
-
static
|
|
1026
|
-
static
|
|
1063
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AuthGuard, deps: [{ token: Injector }, { token: StateService }, { token: AUTH_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1064
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AuthGuard });
|
|
1027
1065
|
}
|
|
1028
1066
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AuthGuard, decorators: [{
|
|
1029
1067
|
type: Injectable
|
|
@@ -1077,13 +1115,11 @@ function cachedFactory(providers) {
|
|
|
1077
1115
|
}
|
|
1078
1116
|
|
|
1079
1117
|
class BlurStack {
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
this.next = null;
|
|
1086
|
-
}
|
|
1118
|
+
r = 0;
|
|
1119
|
+
g = 0;
|
|
1120
|
+
b = 0;
|
|
1121
|
+
a = 0;
|
|
1122
|
+
next = null;
|
|
1087
1123
|
}
|
|
1088
1124
|
const mul_table = [
|
|
1089
1125
|
512, 512, 456, 512, 328, 456, 335, 512, 405, 328, 271, 456, 388, 335, 292, 512,
|
|
@@ -1648,8 +1684,8 @@ class DateUtils {
|
|
|
1648
1684
|
}
|
|
1649
1685
|
|
|
1650
1686
|
class FileUtils {
|
|
1651
|
-
static
|
|
1652
|
-
static
|
|
1687
|
+
static base64 = /^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/g;
|
|
1688
|
+
static blobCache = new Map();
|
|
1653
1689
|
static readBlob(http, url) {
|
|
1654
1690
|
if (!FileUtils.blobCache.has(url)) {
|
|
1655
1691
|
FileUtils.blobCache.set(url, firstValueFrom(http.get(url, {
|
|
@@ -1824,6 +1860,7 @@ class GenericValue extends Subject {
|
|
|
1824
1860
|
this._value = value;
|
|
1825
1861
|
this.next(value);
|
|
1826
1862
|
}
|
|
1863
|
+
_value;
|
|
1827
1864
|
constructor(value = null) {
|
|
1828
1865
|
super();
|
|
1829
1866
|
this._value = value;
|
|
@@ -1834,6 +1871,15 @@ class GenericValue extends Subject {
|
|
|
1834
1871
|
}
|
|
1835
1872
|
|
|
1836
1873
|
class FileSystemEntry {
|
|
1874
|
+
label;
|
|
1875
|
+
meta;
|
|
1876
|
+
image;
|
|
1877
|
+
data;
|
|
1878
|
+
openCb;
|
|
1879
|
+
result;
|
|
1880
|
+
path;
|
|
1881
|
+
level;
|
|
1882
|
+
classes;
|
|
1837
1883
|
get parent() {
|
|
1838
1884
|
return this.level === 0 ? null : this.path[this.level - 1] || null;
|
|
1839
1885
|
}
|
|
@@ -1874,6 +1920,7 @@ class FileSystemEntry {
|
|
|
1874
1920
|
}
|
|
1875
1921
|
|
|
1876
1922
|
class HitZoneRenderer {
|
|
1923
|
+
pattern;
|
|
1877
1924
|
constructor() {
|
|
1878
1925
|
return Invokable.create(this);
|
|
1879
1926
|
}
|
|
@@ -2080,7 +2127,7 @@ function lerpPts(a, b, t) {
|
|
|
2080
2127
|
const diff = subPts(b, a);
|
|
2081
2128
|
return addPts(a, multiplyPts(diff, t));
|
|
2082
2129
|
}
|
|
2083
|
-
function lengthSq
|
|
2130
|
+
function lengthSq(p) {
|
|
2084
2131
|
return p.x * p.x + p.y * p.y;
|
|
2085
2132
|
}
|
|
2086
2133
|
function lengthOfPt(p) {
|
|
@@ -2253,6 +2300,7 @@ class Shape {
|
|
|
2253
2300
|
get y() {
|
|
2254
2301
|
return this.center.y;
|
|
2255
2302
|
}
|
|
2303
|
+
pt;
|
|
2256
2304
|
constructor(x, y) {
|
|
2257
2305
|
this.pt = { x, y };
|
|
2258
2306
|
}
|
|
@@ -2267,7 +2315,7 @@ class Shape {
|
|
|
2267
2315
|
}
|
|
2268
2316
|
}
|
|
2269
2317
|
class Point extends Shape {
|
|
2270
|
-
static
|
|
2318
|
+
static Zero = new Point(0, 0);
|
|
2271
2319
|
get length() {
|
|
2272
2320
|
return lengthOfPt(this);
|
|
2273
2321
|
}
|
|
@@ -2353,6 +2401,10 @@ class Point extends Shape {
|
|
|
2353
2401
|
}
|
|
2354
2402
|
}
|
|
2355
2403
|
class Rect extends Shape {
|
|
2404
|
+
width;
|
|
2405
|
+
height;
|
|
2406
|
+
rotation;
|
|
2407
|
+
radius;
|
|
2356
2408
|
constructor(x, y, width, height, rotation = 0, radius = 0) {
|
|
2357
2409
|
super(x, y);
|
|
2358
2410
|
this.width = width;
|
|
@@ -2410,6 +2462,9 @@ class Rect extends Shape {
|
|
|
2410
2462
|
}
|
|
2411
2463
|
}
|
|
2412
2464
|
class Oval extends Shape {
|
|
2465
|
+
width;
|
|
2466
|
+
height;
|
|
2467
|
+
rotation;
|
|
2413
2468
|
constructor(x, y, width, height, rotation = 0) {
|
|
2414
2469
|
super(x, y);
|
|
2415
2470
|
this.width = width;
|
|
@@ -2458,6 +2513,7 @@ class Oval extends Shape {
|
|
|
2458
2513
|
}
|
|
2459
2514
|
}
|
|
2460
2515
|
class Circle extends Oval {
|
|
2516
|
+
radius;
|
|
2461
2517
|
constructor(x, y, radius, rotation = 0) {
|
|
2462
2518
|
super(x, y, radius * 2, radius * 2, rotation);
|
|
2463
2519
|
this.radius = radius;
|
|
@@ -2471,6 +2527,7 @@ class Circle extends Oval {
|
|
|
2471
2527
|
}
|
|
2472
2528
|
}
|
|
2473
2529
|
class ShapeGroup extends Shape {
|
|
2530
|
+
subShapes;
|
|
2474
2531
|
constructor(x, y, subShapes) {
|
|
2475
2532
|
super(x, y);
|
|
2476
2533
|
this.subShapes = subShapes;
|
|
@@ -2512,6 +2569,9 @@ class ShapeGroup extends Shape {
|
|
|
2512
2569
|
}
|
|
2513
2570
|
|
|
2514
2571
|
class Initializer {
|
|
2572
|
+
callback;
|
|
2573
|
+
shouldInit;
|
|
2574
|
+
initialized;
|
|
2515
2575
|
get isInitialized() {
|
|
2516
2576
|
return this.initialized;
|
|
2517
2577
|
}
|
|
@@ -2531,7 +2591,7 @@ class Initializer {
|
|
|
2531
2591
|
}
|
|
2532
2592
|
|
|
2533
2593
|
class LoaderUtils {
|
|
2534
|
-
static
|
|
2594
|
+
static promises = {};
|
|
2535
2595
|
static loadScript(src, async = false, type = "text/javascript", parent, time = false) {
|
|
2536
2596
|
return LoaderUtils.loadElement(src, parent, time, url => {
|
|
2537
2597
|
const script = document.createElement("script");
|
|
@@ -3069,6 +3129,15 @@ function random4(_, index) {
|
|
|
3069
3129
|
.substring(1);
|
|
3070
3130
|
}
|
|
3071
3131
|
class SocketClient {
|
|
3132
|
+
url;
|
|
3133
|
+
ioLoader;
|
|
3134
|
+
status;
|
|
3135
|
+
channels;
|
|
3136
|
+
responseHandlers;
|
|
3137
|
+
sid;
|
|
3138
|
+
open;
|
|
3139
|
+
factory;
|
|
3140
|
+
ws;
|
|
3072
3141
|
get id() {
|
|
3073
3142
|
return this.open ? this.sid : null;
|
|
3074
3143
|
}
|
|
@@ -3195,17 +3264,9 @@ class UniqueUtils {
|
|
|
3195
3264
|
}
|
|
3196
3265
|
}
|
|
3197
3266
|
|
|
3198
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3199
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3200
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3201
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3202
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3203
|
-
};
|
|
3204
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
3205
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
3206
|
-
};
|
|
3207
3267
|
var Enum_1;
|
|
3208
3268
|
let Enum = Enum_1 = class Enum {
|
|
3269
|
+
value;
|
|
3209
3270
|
get length() {
|
|
3210
3271
|
return this.value?.length ?? 0;
|
|
3211
3272
|
}
|
|
@@ -3232,11 +3293,18 @@ let Enum = Enum_1 = class Enum {
|
|
|
3232
3293
|
}
|
|
3233
3294
|
};
|
|
3234
3295
|
Enum = Enum_1 = __decorate([
|
|
3235
|
-
ObjectType("enum")
|
|
3236
|
-
__metadata("design:paramtypes", [Object])
|
|
3296
|
+
ObjectType("enum")
|
|
3237
3297
|
], Enum);
|
|
3238
3298
|
|
|
3239
3299
|
class EventsService {
|
|
3300
|
+
eventForwarded;
|
|
3301
|
+
stickyUpdated;
|
|
3302
|
+
languageChanged;
|
|
3303
|
+
editLanguageChanged;
|
|
3304
|
+
translationsEnabled;
|
|
3305
|
+
userChanged;
|
|
3306
|
+
sticky;
|
|
3307
|
+
user;
|
|
3240
3308
|
get isSticky() {
|
|
3241
3309
|
return this.sticky;
|
|
3242
3310
|
}
|
|
@@ -3263,8 +3331,8 @@ class EventsService {
|
|
|
3263
3331
|
this.sticky = sticky;
|
|
3264
3332
|
this.stickyUpdated.next(sticky);
|
|
3265
3333
|
}
|
|
3266
|
-
static
|
|
3267
|
-
static
|
|
3334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: EventsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3335
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: EventsService });
|
|
3268
3336
|
}
|
|
3269
3337
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: EventsService, decorators: [{
|
|
3270
3338
|
type: Injectable
|
|
@@ -3272,6 +3340,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
3272
3340
|
|
|
3273
3341
|
const emptyGuards = [];
|
|
3274
3342
|
class AclService {
|
|
3343
|
+
injector;
|
|
3344
|
+
state;
|
|
3345
|
+
events;
|
|
3346
|
+
components;
|
|
3275
3347
|
constructor(injector, state, events) {
|
|
3276
3348
|
this.injector = injector;
|
|
3277
3349
|
this.state = state;
|
|
@@ -3359,14 +3431,17 @@ class AclService {
|
|
|
3359
3431
|
info.component = this.state.component;
|
|
3360
3432
|
return info;
|
|
3361
3433
|
}
|
|
3362
|
-
static
|
|
3363
|
-
static
|
|
3434
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AclService, deps: [{ token: i0.Injector }, { token: StateService }, { token: EventsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3435
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AclService });
|
|
3364
3436
|
}
|
|
3365
3437
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AclService, decorators: [{
|
|
3366
3438
|
type: Injectable
|
|
3367
3439
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: StateService }, { type: EventsService }] });
|
|
3368
3440
|
|
|
3369
3441
|
class RequestBag {
|
|
3442
|
+
source;
|
|
3443
|
+
headers;
|
|
3444
|
+
params;
|
|
3370
3445
|
get requestHeaders() {
|
|
3371
3446
|
return this.headers;
|
|
3372
3447
|
}
|
|
@@ -3437,6 +3512,8 @@ class RequestBag {
|
|
|
3437
3512
|
}
|
|
3438
3513
|
|
|
3439
3514
|
class BaseHttpClient extends HttpClient {
|
|
3515
|
+
renewTokenFunc;
|
|
3516
|
+
bag;
|
|
3440
3517
|
constructor(handler) {
|
|
3441
3518
|
super(handler);
|
|
3442
3519
|
this.bag = new RequestBag();
|
|
@@ -3462,8 +3539,8 @@ class BaseHttpClient extends HttpClient {
|
|
|
3462
3539
|
makeHeaders() {
|
|
3463
3540
|
return this.bag.makeHeaders();
|
|
3464
3541
|
}
|
|
3465
|
-
static
|
|
3466
|
-
static
|
|
3542
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseHttpClient, deps: [{ token: i1$1.HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3543
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseHttpClient });
|
|
3467
3544
|
}
|
|
3468
3545
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseHttpClient, decorators: [{
|
|
3469
3546
|
type: Injectable
|
|
@@ -3473,6 +3550,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
3473
3550
|
* Use this service instead of Storage to avoid Angular Universal breaks on server environment
|
|
3474
3551
|
*/
|
|
3475
3552
|
class StorageService {
|
|
3553
|
+
universal;
|
|
3476
3554
|
constructor(universal) {
|
|
3477
3555
|
this.universal = universal;
|
|
3478
3556
|
}
|
|
@@ -3506,17 +3584,21 @@ class StorageService {
|
|
|
3506
3584
|
const storage = mode == StorageMode.Local ? localStorage : sessionStorage;
|
|
3507
3585
|
storage.removeItem(key);
|
|
3508
3586
|
}
|
|
3509
|
-
static
|
|
3510
|
-
static
|
|
3587
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StorageService, deps: [{ token: UniversalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3588
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StorageService });
|
|
3511
3589
|
}
|
|
3512
3590
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StorageService, decorators: [{
|
|
3513
3591
|
type: Injectable
|
|
3514
3592
|
}], ctorParameters: () => [{ type: UniversalService }] });
|
|
3515
3593
|
|
|
3516
3594
|
class CacheService {
|
|
3595
|
+
events;
|
|
3517
3596
|
get userChanged() {
|
|
3518
3597
|
return this.events.userChanged;
|
|
3519
3598
|
}
|
|
3599
|
+
ignore;
|
|
3600
|
+
permanent;
|
|
3601
|
+
caches;
|
|
3520
3602
|
constructor(events) {
|
|
3521
3603
|
this.events = events;
|
|
3522
3604
|
this.ignore = new BehaviorSubject(null).pipe(delay(5));
|
|
@@ -3545,14 +3627,22 @@ class CacheService {
|
|
|
3545
3627
|
});
|
|
3546
3628
|
return value;
|
|
3547
3629
|
}
|
|
3548
|
-
static
|
|
3549
|
-
static
|
|
3630
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CacheService, deps: [{ token: EventsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3631
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CacheService });
|
|
3550
3632
|
}
|
|
3551
3633
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CacheService, decorators: [{
|
|
3552
3634
|
type: Injectable
|
|
3553
3635
|
}], ctorParameters: () => [{ type: EventsService }] });
|
|
3554
3636
|
|
|
3555
3637
|
class BaseHttpService {
|
|
3638
|
+
injector;
|
|
3639
|
+
client;
|
|
3640
|
+
storage;
|
|
3641
|
+
caches;
|
|
3642
|
+
language;
|
|
3643
|
+
toaster;
|
|
3644
|
+
configs;
|
|
3645
|
+
request;
|
|
3556
3646
|
get name() {
|
|
3557
3647
|
return "base";
|
|
3558
3648
|
}
|
|
@@ -3568,7 +3658,8 @@ class BaseHttpService {
|
|
|
3568
3658
|
get universal() {
|
|
3569
3659
|
return this.storage.universal;
|
|
3570
3660
|
}
|
|
3571
|
-
static
|
|
3661
|
+
static failedRequests = [];
|
|
3662
|
+
bag;
|
|
3572
3663
|
static retryFailedRequests() {
|
|
3573
3664
|
BaseHttpService.failedRequests.forEach(r => r());
|
|
3574
3665
|
BaseHttpService.failedRequests = [];
|
|
@@ -3888,8 +3979,8 @@ class BaseHttpService {
|
|
|
3888
3979
|
const separator = url.startsWith("/") ? "" : "/";
|
|
3889
3980
|
return `${req.protocol}://${req.get("host")}${separator}${url}`;
|
|
3890
3981
|
}
|
|
3891
|
-
static
|
|
3892
|
-
static
|
|
3982
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseHttpService, deps: [{ token: i0.Injector }, { token: BaseHttpClient }, { token: StorageService }, { token: CacheService }, { token: LANGUAGE_SERVICE }, { token: TOASTER_SERVICE }, { token: CONFIG_SERVICE }, { token: EXPRESS_REQUEST, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3983
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseHttpService });
|
|
3893
3984
|
}
|
|
3894
3985
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseHttpService, decorators: [{
|
|
3895
3986
|
type: Injectable
|
|
@@ -3909,6 +4000,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
3909
4000
|
args: [EXPRESS_REQUEST]
|
|
3910
4001
|
}] }] });
|
|
3911
4002
|
class HttpPromise extends Promise {
|
|
4003
|
+
rejectHandler;
|
|
4004
|
+
hasRejectHandler;
|
|
4005
|
+
attachCount;
|
|
4006
|
+
runCount;
|
|
3912
4007
|
constructor(rejectHandler, executor) {
|
|
3913
4008
|
super(executor);
|
|
3914
4009
|
this.rejectHandler = rejectHandler;
|
|
@@ -3969,8 +4064,8 @@ class ApiService extends BaseHttpService {
|
|
|
3969
4064
|
options.params = Object.assign(options.params || {}, params || {});
|
|
3970
4065
|
return this.listPromise(url, options);
|
|
3971
4066
|
}
|
|
3972
|
-
static
|
|
3973
|
-
static
|
|
4067
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ApiService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4068
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ApiService });
|
|
3974
4069
|
}
|
|
3975
4070
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ApiService, decorators: [{
|
|
3976
4071
|
type: Injectable
|
|
@@ -3986,6 +4081,16 @@ class StaticAuthService {
|
|
|
3986
4081
|
}
|
|
3987
4082
|
|
|
3988
4083
|
class ConfigService {
|
|
4084
|
+
http;
|
|
4085
|
+
universal;
|
|
4086
|
+
injector;
|
|
4087
|
+
rootElement;
|
|
4088
|
+
baseUrl;
|
|
4089
|
+
baseConfig;
|
|
4090
|
+
loadedConfig;
|
|
4091
|
+
scriptParameters;
|
|
4092
|
+
loader;
|
|
4093
|
+
loaderFunc;
|
|
3989
4094
|
get load() {
|
|
3990
4095
|
return this.loaderFunc;
|
|
3991
4096
|
}
|
|
@@ -4033,7 +4138,7 @@ class ConfigService {
|
|
|
4033
4138
|
const configUrl = this.configUrl;
|
|
4034
4139
|
try {
|
|
4035
4140
|
const config5 = await firstValueFrom(this.http.get(isDevMode() ? `${configUrl}5` : configUrl, { responseType: "text" }));
|
|
4036
|
-
return
|
|
4141
|
+
return parse(config5);
|
|
4037
4142
|
}
|
|
4038
4143
|
catch (e) {
|
|
4039
4144
|
try {
|
|
@@ -4088,8 +4193,8 @@ class ConfigService {
|
|
|
4088
4193
|
return "";
|
|
4089
4194
|
return decodeURIComponent(results[2].replace(/\+/g, " "));
|
|
4090
4195
|
}
|
|
4091
|
-
static
|
|
4092
|
-
static
|
|
4196
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ConfigService, deps: [{ token: BaseHttpClient }, { token: UniversalService }, { token: i0.Injector }, { token: ROOT_ELEMENT }, { token: APP_BASE_URL }, { token: BASE_CONFIG, optional: true }, { token: SCRIPT_PARAMS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4197
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ConfigService });
|
|
4093
4198
|
}
|
|
4094
4199
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ConfigService, decorators: [{
|
|
4095
4200
|
type: Injectable
|
|
@@ -4112,6 +4217,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
4112
4217
|
}] }] });
|
|
4113
4218
|
|
|
4114
4219
|
class BaseDialogService {
|
|
4220
|
+
toaster;
|
|
4115
4221
|
constructor(toaster) {
|
|
4116
4222
|
this.toaster = toaster;
|
|
4117
4223
|
}
|
|
@@ -4164,8 +4270,8 @@ class BaseDialogService {
|
|
|
4164
4270
|
});
|
|
4165
4271
|
});
|
|
4166
4272
|
}
|
|
4167
|
-
static
|
|
4168
|
-
static
|
|
4273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseDialogService, deps: [{ token: TOASTER_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4274
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseDialogService });
|
|
4169
4275
|
}
|
|
4170
4276
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseDialogService, decorators: [{
|
|
4171
4277
|
type: Injectable
|
|
@@ -4175,6 +4281,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
4175
4281
|
}] }] });
|
|
4176
4282
|
|
|
4177
4283
|
class ErrorHandlerService extends ErrorHandler {
|
|
4284
|
+
injector;
|
|
4285
|
+
toaster;
|
|
4286
|
+
universal;
|
|
4287
|
+
errorCb;
|
|
4288
|
+
errorMap;
|
|
4178
4289
|
constructor(injector) {
|
|
4179
4290
|
super();
|
|
4180
4291
|
this.injector = injector;
|
|
@@ -4207,14 +4318,15 @@ class ErrorHandlerService extends ErrorHandler {
|
|
|
4207
4318
|
}
|
|
4208
4319
|
console.error(`[${date}]: ${error.message}\n${error.stack}`);
|
|
4209
4320
|
}
|
|
4210
|
-
static
|
|
4211
|
-
static
|
|
4321
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ErrorHandlerService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4322
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ErrorHandlerService });
|
|
4212
4323
|
}
|
|
4213
4324
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ErrorHandlerService, decorators: [{
|
|
4214
4325
|
type: Injectable
|
|
4215
4326
|
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
4216
4327
|
|
|
4217
4328
|
class FormatterService {
|
|
4329
|
+
language;
|
|
4218
4330
|
get defaultPrecision() {
|
|
4219
4331
|
return 2;
|
|
4220
4332
|
}
|
|
@@ -4249,8 +4361,8 @@ class FormatterService {
|
|
|
4249
4361
|
getPrecision(precision) {
|
|
4250
4362
|
return ObjectUtils.isNumber(precision) ? precision : this.defaultPrecision;
|
|
4251
4363
|
}
|
|
4252
|
-
static
|
|
4253
|
-
static
|
|
4364
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormatterService, deps: [{ token: LANGUAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4365
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormatterService });
|
|
4254
4366
|
}
|
|
4255
4367
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormatterService, decorators: [{
|
|
4256
4368
|
type: Injectable
|
|
@@ -4260,6 +4372,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
4260
4372
|
}] }] });
|
|
4261
4373
|
|
|
4262
4374
|
class GlobalTemplateService {
|
|
4375
|
+
templatesUpdated;
|
|
4376
|
+
globalTemplates;
|
|
4377
|
+
componentModifiers;
|
|
4263
4378
|
constructor() {
|
|
4264
4379
|
this.templatesUpdated = new BehaviorSubject([]);
|
|
4265
4380
|
this.globalTemplates = {};
|
|
@@ -4286,20 +4401,24 @@ class GlobalTemplateService {
|
|
|
4286
4401
|
addComponentModifier(id, modifier) {
|
|
4287
4402
|
this.componentModifiers[id] = modifier;
|
|
4288
4403
|
}
|
|
4289
|
-
static
|
|
4290
|
-
static
|
|
4404
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GlobalTemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4405
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GlobalTemplateService });
|
|
4291
4406
|
}
|
|
4292
4407
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GlobalTemplateService, decorators: [{
|
|
4293
4408
|
type: Injectable
|
|
4294
4409
|
}], ctorParameters: () => [] });
|
|
4295
4410
|
|
|
4296
4411
|
class HrefSerializer {
|
|
4412
|
+
baseHref;
|
|
4413
|
+
urlSerializer;
|
|
4297
4414
|
get count() {
|
|
4298
4415
|
return this.promiseCount;
|
|
4299
4416
|
}
|
|
4300
4417
|
get onChanged() {
|
|
4301
4418
|
return this.promiseChanged;
|
|
4302
4419
|
}
|
|
4420
|
+
promiseCount;
|
|
4421
|
+
promiseChanged;
|
|
4303
4422
|
constructor(baseHref, urlSerializer) {
|
|
4304
4423
|
this.baseHref = baseHref;
|
|
4305
4424
|
this.urlSerializer = urlSerializer;
|
|
@@ -4314,8 +4433,8 @@ class HrefSerializer {
|
|
|
4314
4433
|
? `${this.baseHref}${serialized}`.replace(/\/\/$/, "/")
|
|
4315
4434
|
: serialized;
|
|
4316
4435
|
}
|
|
4317
|
-
static
|
|
4318
|
-
static
|
|
4436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: HrefSerializer, deps: [{ token: APP_BASE_HREF }, { token: i2.UrlSerializer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4437
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: HrefSerializer });
|
|
4319
4438
|
}
|
|
4320
4439
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: HrefSerializer, decorators: [{
|
|
4321
4440
|
type: Injectable
|
|
@@ -4325,6 +4444,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
4325
4444
|
}] }, { type: i2.UrlSerializer }] });
|
|
4326
4445
|
|
|
4327
4446
|
class LocalHttpService extends BaseHttpService {
|
|
4447
|
+
svgs;
|
|
4448
|
+
images;
|
|
4328
4449
|
get name() {
|
|
4329
4450
|
return "local-http";
|
|
4330
4451
|
}
|
|
@@ -4412,14 +4533,15 @@ class LocalHttpService extends BaseHttpService {
|
|
|
4412
4533
|
throw new Error(`Can't get svg from url: ${url}, Error: ${e?.message}`);
|
|
4413
4534
|
}
|
|
4414
4535
|
}
|
|
4415
|
-
static
|
|
4416
|
-
static
|
|
4536
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LocalHttpService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4537
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LocalHttpService });
|
|
4417
4538
|
}
|
|
4418
4539
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LocalHttpService, decorators: [{
|
|
4419
4540
|
type: Injectable
|
|
4420
4541
|
}] });
|
|
4421
4542
|
|
|
4422
4543
|
class IconService {
|
|
4544
|
+
http;
|
|
4423
4545
|
get isDisabled() {
|
|
4424
4546
|
return this.disabled;
|
|
4425
4547
|
}
|
|
@@ -4427,6 +4549,8 @@ class IconService {
|
|
|
4427
4549
|
this.disabled = value;
|
|
4428
4550
|
this.iconsLoaded.emit();
|
|
4429
4551
|
}
|
|
4552
|
+
iconsLoaded;
|
|
4553
|
+
disabled;
|
|
4430
4554
|
constructor(http) {
|
|
4431
4555
|
this.http = http;
|
|
4432
4556
|
this.iconsLoaded = new EventEmitter();
|
|
@@ -4445,8 +4569,8 @@ class IconService {
|
|
|
4445
4569
|
const src = await this.getIcon(icon, icon, false);
|
|
4446
4570
|
return this.http.svgFromSource(src, modifier);
|
|
4447
4571
|
}
|
|
4448
|
-
static
|
|
4449
|
-
static
|
|
4572
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconService, deps: [{ token: LocalHttpService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4573
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconService });
|
|
4450
4574
|
}
|
|
4451
4575
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconService, decorators: [{
|
|
4452
4576
|
type: Injectable
|
|
@@ -4454,6 +4578,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
4454
4578
|
|
|
4455
4579
|
const EMPTY_DICT = {};
|
|
4456
4580
|
class StaticLanguageService {
|
|
4581
|
+
events;
|
|
4582
|
+
storage;
|
|
4583
|
+
configs;
|
|
4584
|
+
promises;
|
|
4585
|
+
client;
|
|
4457
4586
|
get defaultLanguage() {
|
|
4458
4587
|
return this.configs.getQueryParameter("lang") || this.storage.get("language", this.getDefaultLanguage());
|
|
4459
4588
|
}
|
|
@@ -4503,6 +4632,13 @@ class StaticLanguageService {
|
|
|
4503
4632
|
get universal() {
|
|
4504
4633
|
return this.storage.universal;
|
|
4505
4634
|
}
|
|
4635
|
+
editLang;
|
|
4636
|
+
currentLang;
|
|
4637
|
+
enableTrans;
|
|
4638
|
+
languageList;
|
|
4639
|
+
translations;
|
|
4640
|
+
overrideTranslations;
|
|
4641
|
+
mergedTranslations;
|
|
4506
4642
|
constructor(events, storage, configs, promises, client) {
|
|
4507
4643
|
this.events = events;
|
|
4508
4644
|
this.storage = storage;
|
|
@@ -4641,8 +4777,8 @@ class StaticLanguageService {
|
|
|
4641
4777
|
return merged;
|
|
4642
4778
|
}, {});
|
|
4643
4779
|
}
|
|
4644
|
-
static
|
|
4645
|
-
static
|
|
4780
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StaticLanguageService, deps: [{ token: EventsService }, { token: StorageService }, { token: CONFIG_SERVICE }, { token: PROMISE_SERVICE }, { token: BaseHttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4781
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StaticLanguageService });
|
|
4646
4782
|
}
|
|
4647
4783
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StaticLanguageService, decorators: [{
|
|
4648
4784
|
type: Injectable
|
|
@@ -4664,6 +4800,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
4664
4800
|
}] }] });
|
|
4665
4801
|
|
|
4666
4802
|
class LanguageService extends StaticLanguageService {
|
|
4803
|
+
translationRequests;
|
|
4804
|
+
settingsPromise;
|
|
4805
|
+
languageSettings;
|
|
4667
4806
|
get currentLanguage() {
|
|
4668
4807
|
return this.currentLang || this.defaultLanguage;
|
|
4669
4808
|
}
|
|
@@ -4790,14 +4929,21 @@ class LanguageService extends StaticLanguageService {
|
|
|
4790
4929
|
});
|
|
4791
4930
|
return this.settingsPromise;
|
|
4792
4931
|
}
|
|
4793
|
-
static
|
|
4794
|
-
static
|
|
4932
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LanguageService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4933
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LanguageService });
|
|
4795
4934
|
}
|
|
4796
4935
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: LanguageService, decorators: [{
|
|
4797
4936
|
type: Injectable
|
|
4798
4937
|
}] });
|
|
4799
4938
|
|
|
4800
4939
|
class OpenApiService {
|
|
4940
|
+
api;
|
|
4941
|
+
schemaSelector;
|
|
4942
|
+
staticSchemas;
|
|
4943
|
+
injector;
|
|
4944
|
+
apiDocs;
|
|
4945
|
+
schemas;
|
|
4946
|
+
dynamicSchemas;
|
|
4801
4947
|
constructor(api, schemaSelector, staticSchemas, injector) {
|
|
4802
4948
|
this.api = api;
|
|
4803
4949
|
this.schemaSelector = schemaSelector;
|
|
@@ -4894,8 +5040,8 @@ class OpenApiService {
|
|
|
4894
5040
|
return map[value];
|
|
4895
5041
|
};
|
|
4896
5042
|
}
|
|
4897
|
-
static
|
|
4898
|
-
static
|
|
5043
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: OpenApiService, deps: [{ token: API_SERVICE }, { token: SCHEMA_SELECTOR }, { token: STATIC_SCHEMAS }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5044
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: OpenApiService });
|
|
4899
5045
|
}
|
|
4900
5046
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: OpenApiService, decorators: [{
|
|
4901
5047
|
type: Injectable
|
|
@@ -4911,6 +5057,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
4911
5057
|
}] }, { type: i0.Injector }] });
|
|
4912
5058
|
|
|
4913
5059
|
class BaseToasterService {
|
|
5060
|
+
language;
|
|
5061
|
+
colorMap;
|
|
4914
5062
|
constructor(language) {
|
|
4915
5063
|
this.language = language;
|
|
4916
5064
|
this.colorMap = {
|
|
@@ -4970,8 +5118,8 @@ class BaseToasterService {
|
|
|
4970
5118
|
console.log(message, `background: ${this.colorMap[type]}; color: #ffffff`, params);
|
|
4971
5119
|
return null;
|
|
4972
5120
|
}
|
|
4973
|
-
static
|
|
4974
|
-
static
|
|
5121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseToasterService, deps: [{ token: LANGUAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5122
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseToasterService });
|
|
4975
5123
|
}
|
|
4976
5124
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BaseToasterService, decorators: [{
|
|
4977
5125
|
type: Injectable
|
|
@@ -4981,6 +5129,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
4981
5129
|
}] }] });
|
|
4982
5130
|
|
|
4983
5131
|
class ComponentLoaderService {
|
|
5132
|
+
appRef;
|
|
5133
|
+
ngModule;
|
|
5134
|
+
rootElement;
|
|
5135
|
+
typeMap;
|
|
5136
|
+
moduleRegistry;
|
|
5137
|
+
moduleMap;
|
|
4984
5138
|
get injector() {
|
|
4985
5139
|
return this.ngModule.injector;
|
|
4986
5140
|
}
|
|
@@ -5092,8 +5246,8 @@ class ComponentLoaderService {
|
|
|
5092
5246
|
}));
|
|
5093
5247
|
return this.moduleMap.get(moduleInfo.moduleId);
|
|
5094
5248
|
}
|
|
5095
|
-
static
|
|
5096
|
-
static
|
|
5249
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ComponentLoaderService, deps: [{ token: i0.ApplicationRef }, { token: i0.NgModuleRef }, { token: ROOT_ELEMENT }, { token: DYNAMIC_MODULE_INFO, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5250
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ComponentLoaderService });
|
|
5097
5251
|
}
|
|
5098
5252
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ComponentLoaderService, decorators: [{
|
|
5099
5253
|
type: Injectable
|
|
@@ -5108,6 +5262,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
5108
5262
|
}] }] });
|
|
5109
5263
|
|
|
5110
5264
|
class TranslatedUrlSerializer extends DefaultUrlSerializer {
|
|
5265
|
+
language;
|
|
5266
|
+
cache;
|
|
5111
5267
|
constructor(language) {
|
|
5112
5268
|
super();
|
|
5113
5269
|
this.language = language;
|
|
@@ -5166,8 +5322,8 @@ class TranslatedUrlSerializer extends DefaultUrlSerializer {
|
|
|
5166
5322
|
});
|
|
5167
5323
|
return newGroup;
|
|
5168
5324
|
}
|
|
5169
|
-
static
|
|
5170
|
-
static
|
|
5325
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TranslatedUrlSerializer, deps: [{ token: LANGUAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5326
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TranslatedUrlSerializer });
|
|
5171
5327
|
}
|
|
5172
5328
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TranslatedUrlSerializer, decorators: [{
|
|
5173
5329
|
type: Injectable
|
|
@@ -5177,12 +5333,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
5177
5333
|
}] }] });
|
|
5178
5334
|
|
|
5179
5335
|
class PromiseService {
|
|
5336
|
+
zone;
|
|
5180
5337
|
get count() {
|
|
5181
5338
|
return this.promiseCount;
|
|
5182
5339
|
}
|
|
5183
5340
|
get onChanged() {
|
|
5184
5341
|
return this.promiseChanged;
|
|
5185
5342
|
}
|
|
5343
|
+
promiseCount;
|
|
5344
|
+
promiseChanged;
|
|
5186
5345
|
constructor(zone) {
|
|
5187
5346
|
this.zone = zone;
|
|
5188
5347
|
this.promiseCount = 0;
|
|
@@ -5219,8 +5378,8 @@ class PromiseService {
|
|
|
5219
5378
|
});
|
|
5220
5379
|
});
|
|
5221
5380
|
}
|
|
5222
|
-
static
|
|
5223
|
-
static
|
|
5381
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PromiseService, deps: [{ token: NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5382
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PromiseService });
|
|
5224
5383
|
}
|
|
5225
5384
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PromiseService, decorators: [{
|
|
5226
5385
|
type: Injectable
|
|
@@ -5230,6 +5389,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
5230
5389
|
}] }] });
|
|
5231
5390
|
|
|
5232
5391
|
class SocketService {
|
|
5392
|
+
api;
|
|
5393
|
+
ioPath;
|
|
5394
|
+
events;
|
|
5395
|
+
client;
|
|
5396
|
+
userSub;
|
|
5233
5397
|
get status() {
|
|
5234
5398
|
return this.client.status;
|
|
5235
5399
|
}
|
|
@@ -5293,8 +5457,8 @@ class SocketService {
|
|
|
5293
5457
|
request(event, content) {
|
|
5294
5458
|
return this.client.request(event, content);
|
|
5295
5459
|
}
|
|
5296
|
-
static
|
|
5297
|
-
static
|
|
5460
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SocketService, deps: [{ token: API_SERVICE }, { token: SOCKET_IO_PATH }, { token: EventsService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5461
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SocketService });
|
|
5298
5462
|
}
|
|
5299
5463
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SocketService, decorators: [{
|
|
5300
5464
|
type: Injectable
|
|
@@ -5307,6 +5471,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
5307
5471
|
}] }, { type: EventsService }] });
|
|
5308
5472
|
|
|
5309
5473
|
class DragDropHandler {
|
|
5474
|
+
el;
|
|
5475
|
+
static handlers;
|
|
5476
|
+
onDragStart;
|
|
5477
|
+
onDragEnter;
|
|
5478
|
+
onDragOver;
|
|
5479
|
+
onDragLeave;
|
|
5480
|
+
onDrop;
|
|
5481
|
+
first;
|
|
5482
|
+
second;
|
|
5483
|
+
dropEffect;
|
|
5484
|
+
effectAllowed;
|
|
5485
|
+
listeners;
|
|
5310
5486
|
static get(el) {
|
|
5311
5487
|
if (DragDropHandler.handlers?.has(el)) {
|
|
5312
5488
|
return DragDropHandler.handlers.get(el);
|
|
@@ -5398,7 +5574,8 @@ class DragDropHandler {
|
|
|
5398
5574
|
function emptyRemove$2() {
|
|
5399
5575
|
}
|
|
5400
5576
|
class DragDropEventPlugin extends _DomEventsPlugin {
|
|
5401
|
-
|
|
5577
|
+
universal;
|
|
5578
|
+
static EVENT_NAMES = ["dragstart", "dragenter", "dragleave", "drop"];
|
|
5402
5579
|
constructor(doc, universal) {
|
|
5403
5580
|
super(doc);
|
|
5404
5581
|
this.universal = universal;
|
|
@@ -5419,8 +5596,8 @@ class DragDropEventPlugin extends _DomEventsPlugin {
|
|
|
5419
5596
|
return () => dd.removeListener(eventName, callback);
|
|
5420
5597
|
});
|
|
5421
5598
|
}
|
|
5422
|
-
static
|
|
5423
|
-
static
|
|
5599
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DragDropEventPlugin, deps: [{ token: DOCUMENT }, { token: UniversalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5600
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DragDropEventPlugin });
|
|
5424
5601
|
}
|
|
5425
5602
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DragDropEventPlugin, decorators: [{
|
|
5426
5603
|
type: Injectable
|
|
@@ -5430,6 +5607,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
5430
5607
|
}] }, { type: UniversalService }] });
|
|
5431
5608
|
|
|
5432
5609
|
class ResizeDetector {
|
|
5610
|
+
resizeStrategy;
|
|
5611
|
+
detector;
|
|
5612
|
+
isObservable;
|
|
5613
|
+
observers;
|
|
5433
5614
|
constructor(resizeStrategy) {
|
|
5434
5615
|
this.resizeStrategy = resizeStrategy;
|
|
5435
5616
|
this.detector = elementResizeDetectorMaker({
|
|
@@ -5472,7 +5653,11 @@ function isWindow(el) {
|
|
|
5472
5653
|
return typeof window !== "undefined" && el === window;
|
|
5473
5654
|
}
|
|
5474
5655
|
class ResizeEventPlugin extends _DomEventsPlugin {
|
|
5475
|
-
|
|
5656
|
+
resizeDelay;
|
|
5657
|
+
resizeStrategy;
|
|
5658
|
+
universal;
|
|
5659
|
+
static EVENT_NAME = "resize";
|
|
5660
|
+
detector;
|
|
5476
5661
|
constructor(doc, resizeDelay, resizeStrategy, universal) {
|
|
5477
5662
|
super(doc);
|
|
5478
5663
|
this.resizeDelay = resizeDelay;
|
|
@@ -5517,8 +5702,8 @@ class ResizeEventPlugin extends _DomEventsPlugin {
|
|
|
5517
5702
|
};
|
|
5518
5703
|
});
|
|
5519
5704
|
}
|
|
5520
|
-
static
|
|
5521
|
-
static
|
|
5705
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ResizeEventPlugin, deps: [{ token: DOCUMENT }, { token: RESIZE_DELAY }, { token: RESIZE_STRATEGY }, { token: UniversalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5706
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ResizeEventPlugin });
|
|
5522
5707
|
}
|
|
5523
5708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ResizeEventPlugin, decorators: [{
|
|
5524
5709
|
type: Injectable
|
|
@@ -5536,7 +5721,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
5536
5721
|
function emptyRemove() {
|
|
5537
5722
|
}
|
|
5538
5723
|
class ScrollEventPlugin extends _DomEventsPlugin {
|
|
5539
|
-
|
|
5724
|
+
universal;
|
|
5725
|
+
static EVENT_NAME = "scroll";
|
|
5540
5726
|
constructor(doc, universal) {
|
|
5541
5727
|
super(doc);
|
|
5542
5728
|
this.universal = universal;
|
|
@@ -5556,8 +5742,8 @@ class ScrollEventPlugin extends _DomEventsPlugin {
|
|
|
5556
5742
|
return () => element.removeEventListener(eventName, callback);
|
|
5557
5743
|
});
|
|
5558
5744
|
}
|
|
5559
|
-
static
|
|
5560
|
-
static
|
|
5745
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ScrollEventPlugin, deps: [{ token: DOCUMENT }, { token: UniversalService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5746
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ScrollEventPlugin });
|
|
5561
5747
|
}
|
|
5562
5748
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ScrollEventPlugin, decorators: [{
|
|
5563
5749
|
type: Injectable
|
|
@@ -5579,8 +5765,8 @@ class ChunkPipe {
|
|
|
5579
5765
|
});
|
|
5580
5766
|
return result;
|
|
5581
5767
|
}
|
|
5582
|
-
static
|
|
5583
|
-
static
|
|
5768
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ChunkPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5769
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: ChunkPipe, isStandalone: false, name: "chunk" });
|
|
5584
5770
|
}
|
|
5585
5771
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ChunkPipe, decorators: [{
|
|
5586
5772
|
type: Pipe,
|
|
@@ -5605,8 +5791,8 @@ class EntriesPipe {
|
|
|
5605
5791
|
});
|
|
5606
5792
|
return entries;
|
|
5607
5793
|
}
|
|
5608
|
-
static
|
|
5609
|
-
static
|
|
5794
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: EntriesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5795
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: EntriesPipe, isStandalone: false, name: "entries" });
|
|
5610
5796
|
}
|
|
5611
5797
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: EntriesPipe, decorators: [{
|
|
5612
5798
|
type: Pipe,
|
|
@@ -5634,8 +5820,8 @@ class ExtraItemPropertiesPipe {
|
|
|
5634
5820
|
return result;
|
|
5635
5821
|
}, { ...item }));
|
|
5636
5822
|
}
|
|
5637
|
-
static
|
|
5638
|
-
static
|
|
5823
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ExtraItemPropertiesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5824
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: ExtraItemPropertiesPipe, isStandalone: false, name: "extraItemProperties" });
|
|
5639
5825
|
}
|
|
5640
5826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ExtraItemPropertiesPipe, decorators: [{
|
|
5641
5827
|
type: Pipe,
|
|
@@ -5669,8 +5855,8 @@ class FilterPipe {
|
|
|
5669
5855
|
return filterFunc(value, key, params, values);
|
|
5670
5856
|
});
|
|
5671
5857
|
}
|
|
5672
|
-
static
|
|
5673
|
-
static
|
|
5858
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5859
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: FilterPipe, isStandalone: false, name: "filter" });
|
|
5674
5860
|
}
|
|
5675
5861
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FilterPipe, decorators: [{
|
|
5676
5862
|
type: Pipe,
|
|
@@ -5696,8 +5882,8 @@ class FindPipe {
|
|
|
5696
5882
|
};
|
|
5697
5883
|
return values.find((value, index) => filterFunc(value, index, params, values));
|
|
5698
5884
|
}
|
|
5699
|
-
static
|
|
5700
|
-
static
|
|
5885
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FindPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5886
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: FindPipe, isStandalone: false, name: "find" });
|
|
5701
5887
|
}
|
|
5702
5888
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FindPipe, decorators: [{
|
|
5703
5889
|
type: Pipe,
|
|
@@ -5708,14 +5894,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
5708
5894
|
}] });
|
|
5709
5895
|
|
|
5710
5896
|
class FormatNumberPipe {
|
|
5897
|
+
formatter;
|
|
5711
5898
|
constructor(formatter) {
|
|
5712
5899
|
this.formatter = formatter;
|
|
5713
5900
|
}
|
|
5714
5901
|
transform(value, format, precision, divider) {
|
|
5715
5902
|
return this.formatter.formatNumber(value, format, precision, divider);
|
|
5716
5903
|
}
|
|
5717
|
-
static
|
|
5718
|
-
static
|
|
5904
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormatNumberPipe, deps: [{ token: FormatterService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5905
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: FormatNumberPipe, isStandalone: false, name: "formatNumber" });
|
|
5719
5906
|
}
|
|
5720
5907
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FormatNumberPipe, decorators: [{
|
|
5721
5908
|
type: Pipe,
|
|
@@ -5729,8 +5916,8 @@ class GetOffsetPipe {
|
|
|
5729
5916
|
transform(value, offset) {
|
|
5730
5917
|
return value ? (ObjectUtils.isNullOrUndefined(offset) ? value : value[offset]) : null;
|
|
5731
5918
|
}
|
|
5732
|
-
static
|
|
5733
|
-
static
|
|
5919
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GetOffsetPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5920
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: GetOffsetPipe, isStandalone: false, name: "getOffset" });
|
|
5734
5921
|
}
|
|
5735
5922
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GetOffsetPipe, decorators: [{
|
|
5736
5923
|
type: Pipe,
|
|
@@ -5744,8 +5931,8 @@ class GetTypePipe {
|
|
|
5744
5931
|
transform(value) {
|
|
5745
5932
|
return ObjectUtils.getType(value);
|
|
5746
5933
|
}
|
|
5747
|
-
static
|
|
5748
|
-
static
|
|
5934
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GetTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5935
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: GetTypePipe, isStandalone: false, name: "getType" });
|
|
5749
5936
|
}
|
|
5750
5937
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GetTypePipe, decorators: [{
|
|
5751
5938
|
type: Pipe,
|
|
@@ -5759,8 +5946,8 @@ class GetValuePipe {
|
|
|
5759
5946
|
transform(value, path, defaultVal = "") {
|
|
5760
5947
|
return !value ? value : ObjectUtils.getValue(value, path, defaultVal);
|
|
5761
5948
|
}
|
|
5762
|
-
static
|
|
5763
|
-
static
|
|
5949
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GetValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5950
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: GetValuePipe, isStandalone: false, name: "getValue" });
|
|
5764
5951
|
}
|
|
5765
5952
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GetValuePipe, decorators: [{
|
|
5766
5953
|
type: Pipe,
|
|
@@ -5771,6 +5958,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
5771
5958
|
}] });
|
|
5772
5959
|
|
|
5773
5960
|
class GlobalTemplatePipe {
|
|
5961
|
+
globalTemplates;
|
|
5962
|
+
templatesUpdated;
|
|
5963
|
+
cachedTemplateId;
|
|
5964
|
+
cachedTemplate;
|
|
5774
5965
|
constructor(globalTemplates) {
|
|
5775
5966
|
this.globalTemplates = globalTemplates;
|
|
5776
5967
|
this.cachedTemplateId = null;
|
|
@@ -5794,8 +5985,8 @@ class GlobalTemplatePipe {
|
|
|
5794
5985
|
}
|
|
5795
5986
|
return this.cachedTemplate;
|
|
5796
5987
|
}
|
|
5797
|
-
static
|
|
5798
|
-
static
|
|
5988
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GlobalTemplatePipe, deps: [{ token: GlobalTemplateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
5989
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: GlobalTemplatePipe, isStandalone: false, name: "globalTemplate", pure: false });
|
|
5799
5990
|
}
|
|
5800
5991
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GlobalTemplatePipe, decorators: [{
|
|
5801
5992
|
type: Pipe,
|
|
@@ -5820,8 +6011,8 @@ class GroupByPipe {
|
|
|
5820
6011
|
return { group: key, items: groups[key] };
|
|
5821
6012
|
});
|
|
5822
6013
|
}
|
|
5823
|
-
static
|
|
5824
|
-
static
|
|
6014
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GroupByPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6015
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: GroupByPipe, isStandalone: false, name: "groupBy" });
|
|
5825
6016
|
}
|
|
5826
6017
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GroupByPipe, decorators: [{
|
|
5827
6018
|
type: Pipe,
|
|
@@ -5838,8 +6029,8 @@ class IncludesPipe {
|
|
|
5838
6029
|
transform(array, ...values) {
|
|
5839
6030
|
return ObjectUtils.isArray(array) && values.some(v => array.includes(v));
|
|
5840
6031
|
}
|
|
5841
|
-
static
|
|
5842
|
-
static
|
|
6032
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IncludesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6033
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: IncludesPipe, isStandalone: false, name: "includes" });
|
|
5843
6034
|
}
|
|
5844
6035
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IncludesPipe, decorators: [{
|
|
5845
6036
|
type: Pipe,
|
|
@@ -5853,8 +6044,8 @@ class IsTypePipe {
|
|
|
5853
6044
|
transform(value, type) {
|
|
5854
6045
|
return ObjectUtils.getType(value) === type;
|
|
5855
6046
|
}
|
|
5856
|
-
static
|
|
5857
|
-
static
|
|
6047
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IsTypePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6048
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: IsTypePipe, isStandalone: false, name: "isType" });
|
|
5858
6049
|
}
|
|
5859
6050
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IsTypePipe, decorators: [{
|
|
5860
6051
|
type: Pipe,
|
|
@@ -5870,8 +6061,8 @@ class JoinPipe {
|
|
|
5870
6061
|
? value.join(separator)
|
|
5871
6062
|
: "";
|
|
5872
6063
|
}
|
|
5873
|
-
static
|
|
5874
|
-
static
|
|
6064
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: JoinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6065
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: JoinPipe, isStandalone: false, name: "join" });
|
|
5875
6066
|
}
|
|
5876
6067
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: JoinPipe, decorators: [{
|
|
5877
6068
|
type: Pipe,
|
|
@@ -5890,8 +6081,8 @@ class KeysPipe {
|
|
|
5890
6081
|
? Array.from(value.keys())
|
|
5891
6082
|
: Object.keys(value);
|
|
5892
6083
|
}
|
|
5893
|
-
static
|
|
5894
|
-
static
|
|
6084
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: KeysPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6085
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: KeysPipe, isStandalone: false, name: "keys" });
|
|
5895
6086
|
}
|
|
5896
6087
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: KeysPipe, decorators: [{
|
|
5897
6088
|
type: Pipe,
|
|
@@ -5917,8 +6108,8 @@ class MapPipe {
|
|
|
5917
6108
|
};
|
|
5918
6109
|
return values.map((value, index) => mapperFunc(value, index, params));
|
|
5919
6110
|
}
|
|
5920
|
-
static
|
|
5921
|
-
static
|
|
6111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MapPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6112
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: MapPipe, isStandalone: false, name: "map" });
|
|
5922
6113
|
}
|
|
5923
6114
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MapPipe, decorators: [{
|
|
5924
6115
|
type: Pipe,
|
|
@@ -5940,8 +6131,8 @@ class MaxPipe {
|
|
|
5940
6131
|
};
|
|
5941
6132
|
return ArrayUtils.max(value, (item, index) => maxSelector(item, index, params));
|
|
5942
6133
|
}
|
|
5943
|
-
static
|
|
5944
|
-
static
|
|
6134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MaxPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6135
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: MaxPipe, isStandalone: false, name: "max" });
|
|
5945
6136
|
}
|
|
5946
6137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MaxPipe, decorators: [{
|
|
5947
6138
|
type: Pipe,
|
|
@@ -5963,8 +6154,8 @@ class MinPipe {
|
|
|
5963
6154
|
};
|
|
5964
6155
|
return ArrayUtils.min(value, (item, index) => minSelector(item, index, params));
|
|
5965
6156
|
}
|
|
5966
|
-
static
|
|
5967
|
-
static
|
|
6157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MinPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6158
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: MinPipe, isStandalone: false, name: "min" });
|
|
5968
6159
|
}
|
|
5969
6160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: MinPipe, decorators: [{
|
|
5970
6161
|
type: Pipe,
|
|
@@ -5978,8 +6169,8 @@ class PopPipe {
|
|
|
5978
6169
|
transform(value) {
|
|
5979
6170
|
return !Array.isArray(value) ? null : Array.from(value).pop();
|
|
5980
6171
|
}
|
|
5981
|
-
static
|
|
5982
|
-
static
|
|
6172
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PopPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6173
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: PopPipe, isStandalone: false, name: "pop" });
|
|
5983
6174
|
}
|
|
5984
6175
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PopPipe, decorators: [{
|
|
5985
6176
|
type: Pipe,
|
|
@@ -6006,8 +6197,8 @@ class ReducePipe {
|
|
|
6006
6197
|
};
|
|
6007
6198
|
return values.reduce((result, value, index) => mapperFunc(result, value, index, params), source);
|
|
6008
6199
|
}
|
|
6009
|
-
static
|
|
6010
|
-
static
|
|
6200
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ReducePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6201
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: ReducePipe, isStandalone: false, name: "reduce" });
|
|
6011
6202
|
}
|
|
6012
6203
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ReducePipe, decorators: [{
|
|
6013
6204
|
type: Pipe,
|
|
@@ -6036,8 +6227,8 @@ class RemapPipe {
|
|
|
6036
6227
|
});
|
|
6037
6228
|
return remapped.map;
|
|
6038
6229
|
}
|
|
6039
|
-
static
|
|
6040
|
-
static
|
|
6230
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: RemapPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6231
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: RemapPipe, isStandalone: false, name: "remap" });
|
|
6041
6232
|
}
|
|
6042
6233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: RemapPipe, decorators: [{
|
|
6043
6234
|
type: Pipe,
|
|
@@ -6051,8 +6242,8 @@ class ReplacePipe {
|
|
|
6051
6242
|
transform(value, from, to) {
|
|
6052
6243
|
return ObjectUtils.isDefined(value) ? `${value}`.replace(from, to) : ``;
|
|
6053
6244
|
}
|
|
6054
|
-
static
|
|
6055
|
-
static
|
|
6245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ReplacePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6246
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: ReplacePipe, isStandalone: false, name: "replace" });
|
|
6056
6247
|
}
|
|
6057
6248
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ReplacePipe, decorators: [{
|
|
6058
6249
|
type: Pipe,
|
|
@@ -6073,8 +6264,8 @@ class ReversePipe {
|
|
|
6073
6264
|
}
|
|
6074
6265
|
return result;
|
|
6075
6266
|
}
|
|
6076
|
-
static
|
|
6077
|
-
static
|
|
6267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ReversePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6268
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: ReversePipe, isStandalone: false, name: "reverse" });
|
|
6078
6269
|
}
|
|
6079
6270
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ReversePipe, decorators: [{
|
|
6080
6271
|
type: Pipe,
|
|
@@ -6085,14 +6276,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6085
6276
|
}] });
|
|
6086
6277
|
|
|
6087
6278
|
class RoundPipe {
|
|
6279
|
+
formatter;
|
|
6088
6280
|
constructor(formatter) {
|
|
6089
6281
|
this.formatter = formatter;
|
|
6090
6282
|
}
|
|
6091
6283
|
transform(value, precision = 2, divider = 1) {
|
|
6092
6284
|
return this.formatter.roundNumber(value, precision, divider);
|
|
6093
6285
|
}
|
|
6094
|
-
static
|
|
6095
|
-
static
|
|
6286
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: RoundPipe, deps: [{ token: FormatterService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6287
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: RoundPipe, isStandalone: false, name: "round" });
|
|
6096
6288
|
}
|
|
6097
6289
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: RoundPipe, decorators: [{
|
|
6098
6290
|
type: Pipe,
|
|
@@ -6103,6 +6295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6103
6295
|
}], ctorParameters: () => [{ type: FormatterService }] });
|
|
6104
6296
|
|
|
6105
6297
|
class SafeHtmlPipe {
|
|
6298
|
+
sanitizer;
|
|
6106
6299
|
constructor(sanitizer) {
|
|
6107
6300
|
this.sanitizer = sanitizer;
|
|
6108
6301
|
}
|
|
@@ -6122,8 +6315,8 @@ class SafeHtmlPipe {
|
|
|
6122
6315
|
throw new Error(`SafePipe unable to bypass security for invalid type: ${type}`);
|
|
6123
6316
|
}
|
|
6124
6317
|
}
|
|
6125
|
-
static
|
|
6126
|
-
static
|
|
6318
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SafeHtmlPipe, deps: [{ token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6319
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: SafeHtmlPipe, isStandalone: false, name: "safe" });
|
|
6127
6320
|
}
|
|
6128
6321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
6129
6322
|
type: Pipe,
|
|
@@ -6137,8 +6330,8 @@ class ShiftPipe {
|
|
|
6137
6330
|
transform(value) {
|
|
6138
6331
|
return !Array.isArray(value) ? null : Array.from(value).shift();
|
|
6139
6332
|
}
|
|
6140
|
-
static
|
|
6141
|
-
static
|
|
6333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ShiftPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6334
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: ShiftPipe, isStandalone: false, name: "shift" });
|
|
6142
6335
|
}
|
|
6143
6336
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ShiftPipe, decorators: [{
|
|
6144
6337
|
type: Pipe,
|
|
@@ -6152,8 +6345,8 @@ class SplitPipe {
|
|
|
6152
6345
|
transform(value, separator = ".") {
|
|
6153
6346
|
return `${value}`.split(separator);
|
|
6154
6347
|
}
|
|
6155
|
-
static
|
|
6156
|
-
static
|
|
6348
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SplitPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6349
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: SplitPipe, isStandalone: false, name: "split" });
|
|
6157
6350
|
}
|
|
6158
6351
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SplitPipe, decorators: [{
|
|
6159
6352
|
type: Pipe,
|
|
@@ -6169,8 +6362,8 @@ class SyncAsyncPipe extends AsyncPipe {
|
|
|
6169
6362
|
? super.transform(value)
|
|
6170
6363
|
: value;
|
|
6171
6364
|
}
|
|
6172
|
-
static
|
|
6173
|
-
static
|
|
6365
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SyncAsyncPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe });
|
|
6366
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: SyncAsyncPipe, isStandalone: false, name: "syncAsync", pure: false });
|
|
6174
6367
|
}
|
|
6175
6368
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: SyncAsyncPipe, decorators: [{
|
|
6176
6369
|
type: Pipe,
|
|
@@ -6182,6 +6375,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6182
6375
|
}] });
|
|
6183
6376
|
|
|
6184
6377
|
class TranslatePipe {
|
|
6378
|
+
cdr;
|
|
6379
|
+
language;
|
|
6380
|
+
dictionary;
|
|
6381
|
+
enabled;
|
|
6382
|
+
query;
|
|
6383
|
+
args;
|
|
6384
|
+
params;
|
|
6385
|
+
lastValue;
|
|
6185
6386
|
get currentLang() {
|
|
6186
6387
|
return this.language.currentLanguage;
|
|
6187
6388
|
}
|
|
@@ -6245,9 +6446,9 @@ class TranslatePipe {
|
|
|
6245
6446
|
}
|
|
6246
6447
|
return this.lastValue;
|
|
6247
6448
|
}
|
|
6248
|
-
static
|
|
6249
|
-
static
|
|
6250
|
-
static
|
|
6449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TranslatePipe, deps: [{ token: i0.ChangeDetectorRef }, { token: LANGUAGE_SERVICE }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6450
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: TranslatePipe, isStandalone: false, name: "translate", pure: false });
|
|
6451
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TranslatePipe });
|
|
6251
6452
|
}
|
|
6252
6453
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TranslatePipe, decorators: [{
|
|
6253
6454
|
type: Injectable
|
|
@@ -6272,8 +6473,8 @@ class ValuesPipe {
|
|
|
6272
6473
|
? value
|
|
6273
6474
|
: Object.keys(value).map(key => value[key]);
|
|
6274
6475
|
}
|
|
6275
|
-
static
|
|
6276
|
-
static
|
|
6476
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ValuesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6477
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: ValuesPipe, isStandalone: false, name: "values" });
|
|
6277
6478
|
}
|
|
6278
6479
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ValuesPipe, decorators: [{
|
|
6279
6480
|
type: Pipe,
|
|
@@ -6284,17 +6485,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6284
6485
|
}] });
|
|
6285
6486
|
|
|
6286
6487
|
class AsyncMethodBase {
|
|
6488
|
+
disabled = signal(false);
|
|
6489
|
+
context = input({});
|
|
6490
|
+
onSuccess = output();
|
|
6491
|
+
onError = output();
|
|
6492
|
+
toaster = inject(TOASTER_SERVICE);
|
|
6493
|
+
cdr = inject(ChangeDetectorRef);
|
|
6494
|
+
element = inject(ElementRef);
|
|
6495
|
+
loading = signal(false);
|
|
6496
|
+
target = signal(this.element.nativeElement);
|
|
6497
|
+
previousTarget = computedPrevious(this.target);
|
|
6287
6498
|
constructor() {
|
|
6288
|
-
this.disabled = signal(false);
|
|
6289
|
-
this.context = input({});
|
|
6290
|
-
this.onSuccess = output();
|
|
6291
|
-
this.onError = output();
|
|
6292
|
-
this.toaster = inject(TOASTER_SERVICE);
|
|
6293
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
6294
|
-
this.element = inject(ElementRef);
|
|
6295
|
-
this.loading = signal(false);
|
|
6296
|
-
this.target = signal(this.element.nativeElement);
|
|
6297
|
-
this.previousTarget = computedPrevious(this.target);
|
|
6298
6499
|
effect(() => {
|
|
6299
6500
|
const target = this.target();
|
|
6300
6501
|
if (!target)
|
|
@@ -6366,8 +6567,8 @@ class AsyncMethodBase {
|
|
|
6366
6567
|
getArgs(ev) {
|
|
6367
6568
|
return untracked(() => [this.context(), ev]);
|
|
6368
6569
|
}
|
|
6369
|
-
static
|
|
6370
|
-
static
|
|
6570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AsyncMethodBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6571
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.22", type: AsyncMethodBase, isStandalone: false, selector: "[__asmb__]", inputs: { context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onSuccess: "onSuccess", onError: "onError" }, host: { listeners: { "click": "onClick($event)" } }, usesOnChanges: true, ngImport: i0 });
|
|
6371
6572
|
}
|
|
6372
6573
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AsyncMethodBase, decorators: [{
|
|
6373
6574
|
type: Directive,
|
|
@@ -6381,17 +6582,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6381
6582
|
}] } });
|
|
6382
6583
|
|
|
6383
6584
|
class AsyncMethodDirective extends AsyncMethodBase {
|
|
6384
|
-
|
|
6385
|
-
super(...arguments);
|
|
6386
|
-
this.method = input(null, { alias: "async-method" });
|
|
6387
|
-
}
|
|
6585
|
+
method = input(null, { alias: "async-method" });
|
|
6388
6586
|
getMethod() {
|
|
6389
6587
|
return untracked(() => this.method());
|
|
6390
6588
|
}
|
|
6391
|
-
static
|
|
6392
|
-
static
|
|
6589
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AsyncMethodDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
6590
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.22", type: AsyncMethodDirective, isStandalone: false, selector: "[async-method]", inputs: { method: { classPropertyName: "method", publicName: "async-method", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
6393
6591
|
{ provide: AsyncMethodBase, useExisting: AsyncMethodDirective }
|
|
6394
|
-
], exportAs: ["async-method"], usesInheritance: true, ngImport: i0 });
|
|
6592
|
+
], exportAs: ["async-method"], usesInheritance: true, ngImport: i0 });
|
|
6395
6593
|
}
|
|
6396
6594
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AsyncMethodDirective, decorators: [{
|
|
6397
6595
|
type: Directive,
|
|
@@ -6406,6 +6604,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6406
6604
|
}] });
|
|
6407
6605
|
|
|
6408
6606
|
class AsyncMethodTargetDirective {
|
|
6607
|
+
element;
|
|
6608
|
+
asyncMethod;
|
|
6409
6609
|
constructor(element, asyncMethod) {
|
|
6410
6610
|
this.element = element;
|
|
6411
6611
|
this.asyncMethod = asyncMethod;
|
|
@@ -6415,8 +6615,8 @@ class AsyncMethodTargetDirective {
|
|
|
6415
6615
|
}
|
|
6416
6616
|
asyncMethod.target.set(element.nativeElement);
|
|
6417
6617
|
}
|
|
6418
|
-
static
|
|
6419
|
-
static
|
|
6618
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AsyncMethodTargetDirective, deps: [{ token: i0.ElementRef }, { token: AsyncMethodBase, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6619
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: AsyncMethodTargetDirective, isStandalone: false, selector: "[async-method-target]", ngImport: i0 });
|
|
6420
6620
|
}
|
|
6421
6621
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: AsyncMethodTargetDirective, decorators: [{
|
|
6422
6622
|
type: Directive,
|
|
@@ -6431,6 +6631,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6431
6631
|
const defaultClass = "default-image";
|
|
6432
6632
|
const loadingClass = "loading-image";
|
|
6433
6633
|
class BackgroundDirective {
|
|
6634
|
+
http;
|
|
6635
|
+
element;
|
|
6636
|
+
renderer;
|
|
6637
|
+
universal;
|
|
6638
|
+
background;
|
|
6639
|
+
backgroundSize;
|
|
6434
6640
|
constructor(http, element, renderer, universal) {
|
|
6435
6641
|
this.http = http;
|
|
6436
6642
|
this.element = element;
|
|
@@ -6458,8 +6664,8 @@ class BackgroundDirective {
|
|
|
6458
6664
|
return;
|
|
6459
6665
|
this.renderer.setStyle(this.element.nativeElement, "background-size", this.backgroundSize);
|
|
6460
6666
|
}
|
|
6461
|
-
static
|
|
6462
|
-
static
|
|
6667
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BackgroundDirective, deps: [{ token: i1$1.HttpClient }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: UniversalService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6668
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: BackgroundDirective, isStandalone: false, selector: "[background]", inputs: { background: "background", backgroundSize: "backgroundSize" }, usesOnChanges: true, ngImport: i0 });
|
|
6463
6669
|
}
|
|
6464
6670
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BackgroundDirective, decorators: [{
|
|
6465
6671
|
type: Directive,
|
|
@@ -6474,6 +6680,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6474
6680
|
}] } });
|
|
6475
6681
|
|
|
6476
6682
|
class ComponentLoaderDirective {
|
|
6683
|
+
vcr;
|
|
6684
|
+
loader;
|
|
6685
|
+
module;
|
|
6686
|
+
selector;
|
|
6687
|
+
cr;
|
|
6477
6688
|
constructor(vcr, loader) {
|
|
6478
6689
|
this.vcr = vcr;
|
|
6479
6690
|
this.loader = loader;
|
|
@@ -6501,8 +6712,8 @@ class ComponentLoaderDirective {
|
|
|
6501
6712
|
}
|
|
6502
6713
|
this.cr.hostView.destroy();
|
|
6503
6714
|
}
|
|
6504
|
-
static
|
|
6505
|
-
static
|
|
6715
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ComponentLoaderDirective, deps: [{ token: i0.ViewContainerRef }, { token: ComponentLoaderService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6716
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: ComponentLoaderDirective, isStandalone: false, selector: "[loadComponent]", inputs: { module: "module", selector: ["loadComponent", "selector"] }, usesOnChanges: true, ngImport: i0 });
|
|
6506
6717
|
}
|
|
6507
6718
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ComponentLoaderDirective, decorators: [{
|
|
6508
6719
|
type: Directive,
|
|
@@ -6518,11 +6729,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6518
6729
|
}] } });
|
|
6519
6730
|
|
|
6520
6731
|
class DynamicTableTemplateDirective {
|
|
6732
|
+
ref;
|
|
6733
|
+
column;
|
|
6734
|
+
pure;
|
|
6521
6735
|
constructor(ref) {
|
|
6522
6736
|
this.ref = ref;
|
|
6523
6737
|
}
|
|
6524
|
-
static
|
|
6525
|
-
static
|
|
6738
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DynamicTableTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6739
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: DynamicTableTemplateDirective, isStandalone: false, selector: "ng-template[column]", inputs: { column: "column", pure: "pure" }, ngImport: i0 });
|
|
6526
6740
|
}
|
|
6527
6741
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DynamicTableTemplateDirective, decorators: [{
|
|
6528
6742
|
type: Directive,
|
|
@@ -6537,6 +6751,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6537
6751
|
}] } });
|
|
6538
6752
|
|
|
6539
6753
|
class GlobalTemplateDirective {
|
|
6754
|
+
globalTemplates;
|
|
6755
|
+
template;
|
|
6756
|
+
id;
|
|
6540
6757
|
constructor(globalTemplates, template) {
|
|
6541
6758
|
this.globalTemplates = globalTemplates;
|
|
6542
6759
|
this.template = template;
|
|
@@ -6547,8 +6764,8 @@ class GlobalTemplateDirective {
|
|
|
6547
6764
|
ngOnDestroy() {
|
|
6548
6765
|
this.globalTemplates.remove(this.id);
|
|
6549
6766
|
}
|
|
6550
|
-
static
|
|
6551
|
-
static
|
|
6767
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GlobalTemplateDirective, deps: [{ token: GlobalTemplateService }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6768
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: GlobalTemplateDirective, isStandalone: false, selector: "[globalTemplate]", inputs: { id: ["globalTemplate", "id"] }, ngImport: i0 });
|
|
6552
6769
|
}
|
|
6553
6770
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: GlobalTemplateDirective, decorators: [{
|
|
6554
6771
|
type: Directive,
|
|
@@ -6562,9 +6779,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6562
6779
|
}] } });
|
|
6563
6780
|
|
|
6564
6781
|
class IconDirective {
|
|
6782
|
+
element;
|
|
6783
|
+
renderer;
|
|
6784
|
+
icons;
|
|
6785
|
+
icon;
|
|
6786
|
+
activeIcon;
|
|
6787
|
+
active;
|
|
6788
|
+
activeChange;
|
|
6565
6789
|
get isActive() {
|
|
6566
6790
|
return this.active;
|
|
6567
6791
|
}
|
|
6792
|
+
iconsLoaded;
|
|
6568
6793
|
constructor(element, renderer, icons) {
|
|
6569
6794
|
this.element = element;
|
|
6570
6795
|
this.renderer = renderer;
|
|
@@ -6598,8 +6823,8 @@ class IconDirective {
|
|
|
6598
6823
|
this.element.nativeElement.innerHTML = icon;
|
|
6599
6824
|
});
|
|
6600
6825
|
}
|
|
6601
|
-
static
|
|
6602
|
-
static
|
|
6826
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: ICON_SERVICE }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6827
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: IconDirective, isStandalone: false, selector: "i[icon],b[icon],p[icon],span[icon],a[icon],h1[icon],h2[icon],h3[icon],h4[icon]", inputs: { icon: "icon", activeIcon: "activeIcon", active: "active" }, outputs: { activeChange: "activeChange" }, host: { listeners: { "click": "click()" }, properties: { "class.active": "this.isActive" } }, usesOnChanges: true, ngImport: i0 });
|
|
6603
6828
|
}
|
|
6604
6829
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconDirective, decorators: [{
|
|
6605
6830
|
type: Directive,
|
|
@@ -6627,6 +6852,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6627
6852
|
}] } });
|
|
6628
6853
|
|
|
6629
6854
|
class NgxTemplateOutletDirective {
|
|
6855
|
+
_viewContainerRef;
|
|
6856
|
+
viewRef;
|
|
6857
|
+
context;
|
|
6858
|
+
additionalContext;
|
|
6859
|
+
ngxTemplateOutlet;
|
|
6630
6860
|
static hasContextShapeChanged(ctxChange) {
|
|
6631
6861
|
const prevCtxKeys = Object.keys(ctxChange.previousValue || {});
|
|
6632
6862
|
const currCtxKeys = Object.keys(ctxChange.currentValue || {});
|
|
@@ -6697,8 +6927,8 @@ class NgxTemplateOutletDirective {
|
|
|
6697
6927
|
context[propName] = ctx[propName];
|
|
6698
6928
|
}
|
|
6699
6929
|
}
|
|
6700
|
-
static
|
|
6701
|
-
static
|
|
6930
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: NgxTemplateOutletDirective, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6931
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: NgxTemplateOutletDirective, isStandalone: false, selector: "[ngxTemplateOutlet]", inputs: { context: "context", additionalContext: "additionalContext", ngxTemplateOutlet: "ngxTemplateOutlet" }, usesOnChanges: true, ngImport: i0 });
|
|
6702
6932
|
}
|
|
6703
6933
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: NgxTemplateOutletDirective, decorators: [{
|
|
6704
6934
|
type: Directive,
|
|
@@ -6715,12 +6945,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6715
6945
|
}] } });
|
|
6716
6946
|
|
|
6717
6947
|
class PaginationDirective {
|
|
6948
|
+
zone;
|
|
6949
|
+
renderer;
|
|
6950
|
+
element;
|
|
6718
6951
|
get total() {
|
|
6719
6952
|
return this.data ? this.data.total : 0;
|
|
6720
6953
|
}
|
|
6721
6954
|
get items() {
|
|
6722
6955
|
return this.data ? this.data.items : [];
|
|
6723
6956
|
}
|
|
6957
|
+
loader;
|
|
6958
|
+
page;
|
|
6959
|
+
itemsPerPage;
|
|
6960
|
+
updateTime;
|
|
6961
|
+
waitFor;
|
|
6962
|
+
pageChange;
|
|
6963
|
+
onRefresh;
|
|
6964
|
+
maxPage;
|
|
6965
|
+
data;
|
|
6966
|
+
updateTimer;
|
|
6967
|
+
controller;
|
|
6724
6968
|
constructor(zone, renderer, element) {
|
|
6725
6969
|
this.zone = zone;
|
|
6726
6970
|
this.renderer = renderer;
|
|
@@ -6777,8 +7021,8 @@ class PaginationDirective {
|
|
|
6777
7021
|
});
|
|
6778
7022
|
});
|
|
6779
7023
|
}
|
|
6780
|
-
static
|
|
6781
|
-
static
|
|
7024
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7025
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: PaginationDirective, isStandalone: false, selector: "[pagination]", inputs: { loader: ["pagination", "loader"], page: "page", itemsPerPage: "itemsPerPage", updateTime: "updateTime", waitFor: "waitFor" }, outputs: { pageChange: "pageChange", onRefresh: "onRefresh" }, exportAs: ["pagination"], usesOnChanges: true, ngImport: i0 });
|
|
6782
7026
|
}
|
|
6783
7027
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PaginationDirective, decorators: [{
|
|
6784
7028
|
type: Directive,
|
|
@@ -6805,6 +7049,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6805
7049
|
}] } });
|
|
6806
7050
|
|
|
6807
7051
|
class PaginationItemDirective {
|
|
7052
|
+
pagination;
|
|
7053
|
+
viewContainer;
|
|
7054
|
+
templateRef;
|
|
7055
|
+
onRefresh;
|
|
6808
7056
|
constructor(pagination, viewContainer, templateRef) {
|
|
6809
7057
|
this.pagination = pagination;
|
|
6810
7058
|
this.viewContainer = viewContainer;
|
|
@@ -6824,8 +7072,8 @@ class PaginationItemDirective {
|
|
|
6824
7072
|
this.viewContainer.createEmbeddedView(this.templateRef, item);
|
|
6825
7073
|
});
|
|
6826
7074
|
}
|
|
6827
|
-
static
|
|
6828
|
-
static
|
|
7075
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PaginationItemDirective, deps: [{ token: PaginationDirective }, { token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7076
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: PaginationItemDirective, isStandalone: false, selector: "[paginationItem]", ngImport: i0 });
|
|
6829
7077
|
}
|
|
6830
7078
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PaginationItemDirective, decorators: [{
|
|
6831
7079
|
type: Directive,
|
|
@@ -6836,6 +7084,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6836
7084
|
}], ctorParameters: () => [{ type: PaginationDirective }, { type: i0.ViewContainerRef }, { type: i0.TemplateRef }] });
|
|
6837
7085
|
|
|
6838
7086
|
class ResourceIfDirective {
|
|
7087
|
+
http;
|
|
7088
|
+
viewContainer;
|
|
7089
|
+
templateRef;
|
|
7090
|
+
universal;
|
|
7091
|
+
context;
|
|
7092
|
+
resource;
|
|
6839
7093
|
set resourceIf(resource) {
|
|
6840
7094
|
this.resource = resource;
|
|
6841
7095
|
this.renderView();
|
|
@@ -6864,8 +7118,8 @@ class ResourceIfDirective {
|
|
|
6864
7118
|
}, console.log);
|
|
6865
7119
|
}
|
|
6866
7120
|
}
|
|
6867
|
-
static
|
|
6868
|
-
static
|
|
7121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ResourceIfDirective, deps: [{ token: i1$1.HttpClient }, { token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: UniversalService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7122
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: ResourceIfDirective, isStandalone: false, selector: "[resourceIf]", inputs: { resourceIf: "resourceIf" }, exportAs: ["resourceIf"], ngImport: i0 });
|
|
6869
7123
|
}
|
|
6870
7124
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ResourceIfDirective, decorators: [{
|
|
6871
7125
|
type: Directive,
|
|
@@ -6879,6 +7133,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6879
7133
|
}] } });
|
|
6880
7134
|
|
|
6881
7135
|
class StickyDirective {
|
|
7136
|
+
cdr;
|
|
7137
|
+
events;
|
|
7138
|
+
element;
|
|
7139
|
+
isSticky;
|
|
7140
|
+
isUpdating;
|
|
7141
|
+
parentElement;
|
|
7142
|
+
updateTimer;
|
|
7143
|
+
eventForwarded;
|
|
6882
7144
|
constructor(cdr, events, element) {
|
|
6883
7145
|
this.cdr = cdr;
|
|
6884
7146
|
this.events = events;
|
|
@@ -6906,8 +7168,8 @@ class StickyDirective {
|
|
|
6906
7168
|
this.cdr.detectChanges();
|
|
6907
7169
|
this.updateTimer.run();
|
|
6908
7170
|
}
|
|
6909
|
-
static
|
|
6910
|
-
static
|
|
7171
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StickyDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: EventsService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7172
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: StickyDirective, isStandalone: false, selector: "[sticky]", host: { listeners: { "window:resize": "updateSticky()", "window:scroll": "updateSticky()" }, properties: { "class.sticky": "this.isSticky", "class.sticky-update": "this.isUpdating" } }, ngImport: i0 });
|
|
6911
7173
|
}
|
|
6912
7174
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StickyDirective, decorators: [{
|
|
6913
7175
|
type: Directive,
|
|
@@ -6930,6 +7192,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6930
7192
|
}] } });
|
|
6931
7193
|
|
|
6932
7194
|
class StickyClassDirective {
|
|
7195
|
+
events;
|
|
7196
|
+
element;
|
|
7197
|
+
renderer;
|
|
7198
|
+
stickyClass;
|
|
7199
|
+
stickyUpdated;
|
|
6933
7200
|
constructor(events, element, renderer) {
|
|
6934
7201
|
this.events = events;
|
|
6935
7202
|
this.element = element;
|
|
@@ -6947,8 +7214,8 @@ class StickyClassDirective {
|
|
|
6947
7214
|
ngOnDestroy() {
|
|
6948
7215
|
this.stickyUpdated.unsubscribe();
|
|
6949
7216
|
}
|
|
6950
|
-
static
|
|
6951
|
-
static
|
|
7217
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StickyClassDirective, deps: [{ token: EventsService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7218
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: StickyClassDirective, isStandalone: false, selector: "[stickyClass]", inputs: { stickyClass: "stickyClass" }, ngImport: i0 });
|
|
6952
7219
|
}
|
|
6953
7220
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: StickyClassDirective, decorators: [{
|
|
6954
7221
|
type: Directive,
|
|
@@ -6961,7 +7228,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
6961
7228
|
}] } });
|
|
6962
7229
|
|
|
6963
7230
|
class DropdownDirective {
|
|
6964
|
-
|
|
7231
|
+
element;
|
|
7232
|
+
static active = null;
|
|
7233
|
+
opened;
|
|
7234
|
+
disabled;
|
|
7235
|
+
/**
|
|
7236
|
+
* Determines if the dropdown should be closed even if we click inside it
|
|
7237
|
+
*/
|
|
7238
|
+
closeInside;
|
|
7239
|
+
/**
|
|
7240
|
+
* Determines where the floating element needs to be placed
|
|
7241
|
+
*/
|
|
7242
|
+
attachTo;
|
|
7243
|
+
/**
|
|
7244
|
+
* Determines the boundary element of the floating element when shifting
|
|
7245
|
+
*/
|
|
7246
|
+
boundary;
|
|
7247
|
+
/**
|
|
7248
|
+
* Where to place the floating element relative to the reference element.
|
|
7249
|
+
*/
|
|
7250
|
+
placement;
|
|
7251
|
+
/**
|
|
7252
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
7253
|
+
* that has the most space available automatically, without needing to specify a
|
|
7254
|
+
* preferred placement. Alternative to `flip`.
|
|
7255
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
7256
|
+
*/
|
|
7257
|
+
autoPlacement;
|
|
7258
|
+
/**
|
|
7259
|
+
* Determines if the dropdown content should be displayed in a fixed full screen view under this window width
|
|
7260
|
+
* @default 0
|
|
7261
|
+
*/
|
|
7262
|
+
mobileViewUnder;
|
|
7263
|
+
/**
|
|
7264
|
+
* Determines if the dropdown content should always be displayed in a fixed full screen view
|
|
7265
|
+
* @default false
|
|
7266
|
+
*/
|
|
7267
|
+
fixed;
|
|
7268
|
+
/**
|
|
7269
|
+
* Determines if the dropdown should react to keys to close like 'Esc'
|
|
7270
|
+
* @default true
|
|
7271
|
+
*/
|
|
7272
|
+
keyboardHandler;
|
|
7273
|
+
onShown;
|
|
7274
|
+
onHidden;
|
|
7275
|
+
onKeyboard;
|
|
7276
|
+
contentElement;
|
|
7277
|
+
onClick;
|
|
7278
|
+
onKeyDown;
|
|
6965
7279
|
get nativeElement() {
|
|
6966
7280
|
return this.element.nativeElement;
|
|
6967
7281
|
}
|
|
@@ -7074,8 +7388,8 @@ class DropdownDirective {
|
|
|
7074
7388
|
}, 10);
|
|
7075
7389
|
return true;
|
|
7076
7390
|
}
|
|
7077
|
-
static
|
|
7078
|
-
static
|
|
7391
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7392
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: DropdownDirective, isStandalone: false, selector: "[dd],[drop-down]", inputs: { closeInside: "closeInside", attachTo: "attachTo", boundary: "boundary", placement: "placement", autoPlacement: "autoPlacement", mobileViewUnder: "mobileViewUnder", fixed: "fixed", keyboardHandler: "keyboardHandler", isDisabled: "isDisabled" }, outputs: { onShown: "onShown", onHidden: "onHidden", onKeyboard: "onKeyboard" }, host: { listeners: { "keydown.enter": "show($event)", "keydown.space": "show($event)" }, properties: { "class.open": "this.isOpened", "class.disabled": "this.getDisabled" } }, exportAs: ["dropdown"], ngImport: i0 });
|
|
7079
7393
|
}
|
|
7080
7394
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownDirective, decorators: [{
|
|
7081
7395
|
type: Directive,
|
|
@@ -7124,6 +7438,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7124
7438
|
|
|
7125
7439
|
const rectProps = ["x", "y", "width", "height"];
|
|
7126
7440
|
class DropdownContentDirective {
|
|
7441
|
+
vcr;
|
|
7442
|
+
rootElem;
|
|
7443
|
+
dropdown;
|
|
7444
|
+
templateRef;
|
|
7445
|
+
subscription;
|
|
7446
|
+
attachTo;
|
|
7447
|
+
attachOutside;
|
|
7448
|
+
lastPlacement;
|
|
7449
|
+
cleanUp;
|
|
7127
7450
|
constructor(vcr, rootElem, dropdown, templateRef) {
|
|
7128
7451
|
this.vcr = vcr;
|
|
7129
7452
|
this.rootElem = rootElem;
|
|
@@ -7303,8 +7626,8 @@ class DropdownContentDirective {
|
|
|
7303
7626
|
this.createView(true);
|
|
7304
7627
|
setTimeout(() => this.destroyView());
|
|
7305
7628
|
}
|
|
7306
|
-
static
|
|
7307
|
-
static
|
|
7629
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownContentDirective, deps: [{ token: i0.ViewContainerRef }, { token: ROOT_ELEMENT, optional: true }, { token: DropdownDirective, optional: true }, { token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7630
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: DropdownContentDirective, isStandalone: false, selector: "[dropdownContent]", exportAs: ["dropdown-content"], ngImport: i0 });
|
|
7308
7631
|
}
|
|
7309
7632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownContentDirective, decorators: [{
|
|
7310
7633
|
type: Directive,
|
|
@@ -7325,12 +7648,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7325
7648
|
}] }] });
|
|
7326
7649
|
|
|
7327
7650
|
class DropdownToggleDirective extends AsyncMethodBase {
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
this.switch = input(true);
|
|
7332
|
-
this.dropdown = inject(DropdownDirective);
|
|
7333
|
-
}
|
|
7651
|
+
beforeOpen = input(null);
|
|
7652
|
+
switch = input(true);
|
|
7653
|
+
dropdown = inject(DropdownDirective);
|
|
7334
7654
|
getMethod() {
|
|
7335
7655
|
return untracked(() => this.beforeOpen());
|
|
7336
7656
|
}
|
|
@@ -7345,10 +7665,10 @@ class DropdownToggleDirective extends AsyncMethodBase {
|
|
|
7345
7665
|
}
|
|
7346
7666
|
return true;
|
|
7347
7667
|
}
|
|
7348
|
-
static
|
|
7349
|
-
static
|
|
7668
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownToggleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7669
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.22", type: DropdownToggleDirective, isStandalone: false, selector: "[dropdownToggle]", inputs: { beforeOpen: { classPropertyName: "beforeOpen", publicName: "beforeOpen", isSignal: true, isRequired: false, transformFunction: null }, switch: { classPropertyName: "switch", publicName: "switch", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7350
7670
|
{ provide: AsyncMethodBase, useExisting: DropdownToggleDirective }
|
|
7351
|
-
], exportAs: ["dropdown-toggle"], usesInheritance: true, ngImport: i0 });
|
|
7671
|
+
], exportAs: ["dropdown-toggle"], usesInheritance: true, ngImport: i0 });
|
|
7352
7672
|
}
|
|
7353
7673
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownToggleDirective, decorators: [{
|
|
7354
7674
|
type: Directive,
|
|
@@ -7363,19 +7683,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7363
7683
|
}] });
|
|
7364
7684
|
|
|
7365
7685
|
class TabsItemDirective {
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
}
|
|
7377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TabsItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7378
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.22", type: TabsItemDirective, isStandalone: false, selector: "[tabsItem]", inputs: { value: { classPropertyName: "value", publicName: "tabsItem", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, path: { classPropertyName: "path", publicName: "path", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
7686
|
+
value = input(null, { alias: "tabsItem" });
|
|
7687
|
+
label = input("");
|
|
7688
|
+
tooltip = input("");
|
|
7689
|
+
icon = input("");
|
|
7690
|
+
disabled = input(false);
|
|
7691
|
+
path = input(null);
|
|
7692
|
+
classes = input("");
|
|
7693
|
+
element = inject(ElementRef, { optional: true });
|
|
7694
|
+
template = inject(TemplateRef, { optional: true });
|
|
7695
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TabsItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7696
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.22", type: TabsItemDirective, isStandalone: false, selector: "[tabsItem]", inputs: { value: { classPropertyName: "value", publicName: "tabsItem", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, path: { classPropertyName: "path", publicName: "path", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
7379
7697
|
}
|
|
7380
7698
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TabsItemDirective, decorators: [{
|
|
7381
7699
|
type: Directive,
|
|
@@ -7386,14 +7704,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7386
7704
|
}] });
|
|
7387
7705
|
|
|
7388
7706
|
class TabsTemplateDirective extends TabsItemDirective {
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
}
|
|
7393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TabsTemplateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7394
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.22", type: TabsTemplateDirective, isStandalone: false, selector: "ng-template[tab]", inputs: { value: { classPropertyName: "value", publicName: "tab", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7707
|
+
value = input(null, { alias: "tab" });
|
|
7708
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TabsTemplateDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
7709
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "19.2.22", type: TabsTemplateDirective, isStandalone: false, selector: "ng-template[tab]", inputs: { value: { classPropertyName: "value", publicName: "tab", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
7395
7710
|
{ provide: TabsItemDirective, useExisting: TabsTemplateDirective }
|
|
7396
|
-
], usesInheritance: true, ngImport: i0 });
|
|
7711
|
+
], usesInheritance: true, ngImport: i0 });
|
|
7397
7712
|
}
|
|
7398
7713
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TabsTemplateDirective, decorators: [{
|
|
7399
7714
|
type: Directive,
|
|
@@ -7407,6 +7722,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7407
7722
|
}] });
|
|
7408
7723
|
|
|
7409
7724
|
class UnorderedListItemDirective {
|
|
7725
|
+
elementRef;
|
|
7726
|
+
viewContainer;
|
|
7727
|
+
item;
|
|
7728
|
+
type;
|
|
7729
|
+
data;
|
|
7730
|
+
keyPrefix;
|
|
7731
|
+
listStyle;
|
|
7732
|
+
path;
|
|
7733
|
+
level;
|
|
7734
|
+
templates;
|
|
7735
|
+
defaultTemplates;
|
|
7736
|
+
isArray;
|
|
7737
|
+
isObject;
|
|
7738
|
+
valueIsArray;
|
|
7739
|
+
valueIsObject;
|
|
7740
|
+
valueType;
|
|
7410
7741
|
get elem() {
|
|
7411
7742
|
return this.elementRef.nativeElement;
|
|
7412
7743
|
}
|
|
@@ -7452,8 +7783,8 @@ class UnorderedListItemDirective {
|
|
|
7452
7783
|
return;
|
|
7453
7784
|
this.item.classList.push(className);
|
|
7454
7785
|
}
|
|
7455
|
-
static
|
|
7456
|
-
static
|
|
7786
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UnorderedListItemDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7787
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: UnorderedListItemDirective, isStandalone: false, selector: "[unorderedListItem]", inputs: { item: ["unorderedListItem", "item"], type: "type", data: "data", keyPrefix: "keyPrefix", listStyle: "listStyle", path: "path", level: "level", templates: "templates", defaultTemplates: "defaultTemplates" }, usesOnChanges: true, ngImport: i0 });
|
|
7457
7788
|
}
|
|
7458
7789
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UnorderedListItemDirective, decorators: [{
|
|
7459
7790
|
type: Directive,
|
|
@@ -7483,11 +7814,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7483
7814
|
}] } });
|
|
7484
7815
|
|
|
7485
7816
|
class UnorderedListTemplateDirective {
|
|
7817
|
+
templateRef;
|
|
7818
|
+
type;
|
|
7819
|
+
selector;
|
|
7486
7820
|
constructor(templateRef) {
|
|
7487
7821
|
this.templateRef = templateRef;
|
|
7488
7822
|
}
|
|
7489
|
-
static
|
|
7490
|
-
static
|
|
7823
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UnorderedListTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
7824
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.22", type: UnorderedListTemplateDirective, isStandalone: false, selector: "ng-template[type][selector]", inputs: { type: "type", selector: "selector" }, ngImport: i0 });
|
|
7491
7825
|
}
|
|
7492
7826
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UnorderedListTemplateDirective, decorators: [{
|
|
7493
7827
|
type: Directive,
|
|
@@ -7502,33 +7836,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7502
7836
|
}] } });
|
|
7503
7837
|
|
|
7504
7838
|
class BtnComponent {
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
|
|
7509
|
-
|
|
7510
|
-
|
|
7511
|
-
|
|
7512
|
-
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
|
|
7516
|
-
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7520
|
-
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
});
|
|
7526
|
-
}
|
|
7839
|
+
label = input("");
|
|
7840
|
+
tooltip = input("");
|
|
7841
|
+
icon = input("");
|
|
7842
|
+
disabled = input(false);
|
|
7843
|
+
path = input(null);
|
|
7844
|
+
type = input("primary");
|
|
7845
|
+
size = input("normal");
|
|
7846
|
+
buttonType = inject(BUTTON_TYPE);
|
|
7847
|
+
element = inject(ElementRef);
|
|
7848
|
+
buttonProps = computed(() => {
|
|
7849
|
+
return {
|
|
7850
|
+
label: this.label(),
|
|
7851
|
+
tooltip: this.tooltip(),
|
|
7852
|
+
icon: this.icon(),
|
|
7853
|
+
disabled: this.disabled(),
|
|
7854
|
+
path: this.path(),
|
|
7855
|
+
type: this.type(),
|
|
7856
|
+
size: this.size()
|
|
7857
|
+
};
|
|
7858
|
+
});
|
|
7527
7859
|
contains(target) {
|
|
7528
7860
|
return !(target instanceof HTMLElement) || this.element.nativeElement?.contains(target);
|
|
7529
7861
|
}
|
|
7530
|
-
static
|
|
7531
|
-
static
|
|
7862
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BtnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7863
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.22", type: BtnComponent, isStandalone: false, selector: "btn", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, tooltip: { classPropertyName: "tooltip", publicName: "tooltip", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, path: { classPropertyName: "path", publicName: "path", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-container [ngComponentOutlet]=\"buttonType\"\r\n [ngComponentOutletInputs]=\"$any(buttonProps())\"></ng-container>\r\n", dependencies: [{ kind: "directive", type: i1$3.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7532
7864
|
}
|
|
7533
7865
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BtnComponent, decorators: [{
|
|
7534
7866
|
type: Component,
|
|
@@ -7536,19 +7868,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7536
7868
|
}] });
|
|
7537
7869
|
|
|
7538
7870
|
class IconComponent {
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
}
|
|
7550
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7551
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.22", type: IconComponent, isStandalone: false, selector: "icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-container [ngComponentOutlet]=\"iconType\"\r\n [ngComponentOutletInputs]=\"iconProps()\"></ng-container>\r\n", dependencies: [{ kind: "directive", type: i1$3.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
7871
|
+
name = input("trash");
|
|
7872
|
+
iconType = inject(ICON_TYPE);
|
|
7873
|
+
iconMap = inject(ICON_MAP);
|
|
7874
|
+
iconProps = computed(() => {
|
|
7875
|
+
const name = this.name();
|
|
7876
|
+
return {
|
|
7877
|
+
name: this.iconMap[name] || name,
|
|
7878
|
+
};
|
|
7879
|
+
});
|
|
7880
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7881
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.22", type: IconComponent, isStandalone: false, selector: "icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-container [ngComponentOutlet]=\"iconType\"\r\n [ngComponentOutletInputs]=\"iconProps()\"></ng-container>\r\n", dependencies: [{ kind: "directive", type: i1$3.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7552
7882
|
}
|
|
7553
7883
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconComponent, decorators: [{
|
|
7554
7884
|
type: Component,
|
|
@@ -7556,11 +7886,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7556
7886
|
}] });
|
|
7557
7887
|
|
|
7558
7888
|
class BtnDefaultComponent {
|
|
7889
|
+
label;
|
|
7890
|
+
tooltip;
|
|
7891
|
+
icon;
|
|
7892
|
+
disabled;
|
|
7893
|
+
path;
|
|
7894
|
+
type;
|
|
7895
|
+
size;
|
|
7559
7896
|
get bsSize() {
|
|
7560
7897
|
return this.size === "small" ? "btn-sm" : "btn-md";
|
|
7561
7898
|
}
|
|
7562
|
-
static
|
|
7563
|
-
static
|
|
7899
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BtnDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7900
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: BtnDefaultComponent, isStandalone: false, selector: "btn-default", inputs: { label: "label", tooltip: "tooltip", icon: "icon", disabled: "disabled", path: "path", type: "type", size: "size" }, ngImport: i0, template: "<button class=\"default-btn btn\"\r\n type=\"button\"\r\n async-method-target\r\n [title]=\"!tooltip ? '' : tooltip | translate\"\r\n [ngClass]=\"['btn-' + type, bsSize]\">\r\n <icon [name]=\"icon\" *ngIf=\"icon\"></icon>\r\n <span *ngIf=\"label\">{{ label | translate }}</span>\r\n</button>\r\n", styles: [".default-btn{display:flex;gap:5px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: AsyncMethodTargetDirective, selector: "[async-method-target]" }, { kind: "component", type: IconComponent, selector: "icon", inputs: ["name"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
7564
7901
|
}
|
|
7565
7902
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: BtnDefaultComponent, decorators: [{
|
|
7566
7903
|
type: Component,
|
|
@@ -7582,8 +7919,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7582
7919
|
}] } });
|
|
7583
7920
|
|
|
7584
7921
|
class CloseBtnComponent {
|
|
7585
|
-
static
|
|
7586
|
-
static
|
|
7922
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CloseBtnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7923
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: CloseBtnComponent, isStandalone: false, selector: "close-btn", ngImport: i0, template: "", isInline: true, styles: ["close-btn{--close-bg: var(--primary-color, rgba(0, 0, 0, .3));--close-color: #ffffff;--close-size: 18px;--close-distance: 4px;--close-spacing: 8px;position:relative;display:block;width:var(--close-size);height:var(--close-size);cursor:pointer;transition:.2s ease;background-color:var(--close-bg);border-radius:50%}close-btn:before,close-btn:after{--rotation: 45deg;content:\"\";position:absolute;top:50%;left:50%;width:calc(100% - var(--close-spacing));transform:translate(-50%,-50%) rotate(var(--rotation));height:1px;background:var(--close-color);transition:.2s ease}close-btn:after{--rotation: -45deg}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
7587
7924
|
}
|
|
7588
7925
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CloseBtnComponent, decorators: [{
|
|
7589
7926
|
type: Component,
|
|
@@ -7591,10 +7928,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7591
7928
|
}] });
|
|
7592
7929
|
|
|
7593
7930
|
class ChipsComponent {
|
|
7931
|
+
cdr;
|
|
7932
|
+
testId;
|
|
7933
|
+
value;
|
|
7934
|
+
multiple;
|
|
7935
|
+
disabled;
|
|
7936
|
+
type;
|
|
7937
|
+
min;
|
|
7938
|
+
max;
|
|
7939
|
+
minLength;
|
|
7940
|
+
maxLength;
|
|
7941
|
+
step;
|
|
7942
|
+
placeholder;
|
|
7943
|
+
unique;
|
|
7944
|
+
strict;
|
|
7945
|
+
options;
|
|
7946
|
+
valueChange;
|
|
7947
|
+
chipDropdown;
|
|
7948
|
+
chipButtons;
|
|
7949
|
+
chipInput;
|
|
7950
|
+
inputStyles;
|
|
7951
|
+
valueOptions;
|
|
7952
|
+
filteredOptions;
|
|
7953
|
+
statuses;
|
|
7954
|
+
autoPlacement;
|
|
7955
|
+
undoList;
|
|
7956
|
+
previousValue;
|
|
7957
|
+
onChange = () => { };
|
|
7958
|
+
onTouched = () => { };
|
|
7594
7959
|
constructor(cdr) {
|
|
7595
7960
|
this.cdr = cdr;
|
|
7596
|
-
this.onChange = () => { };
|
|
7597
|
-
this.onTouched = () => { };
|
|
7598
7961
|
this.testId = "chips";
|
|
7599
7962
|
this.value = [];
|
|
7600
7963
|
this.multiple = true;
|
|
@@ -7791,10 +8154,10 @@ class ChipsComponent {
|
|
|
7791
8154
|
const values = this.valueOptions.map(o => o.value);
|
|
7792
8155
|
this.filteredOptions = this.filteredOptions.filter(o => !values.includes(o.value));
|
|
7793
8156
|
}
|
|
7794
|
-
static
|
|
7795
|
-
static
|
|
8157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ChipsComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8158
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.22", type: ChipsComponent, isStandalone: false, selector: "chips", inputs: { testId: "testId", value: "value", multiple: "multiple", disabled: "disabled", type: "type", min: "min", max: "max", minLength: "minLength", maxLength: "maxLength", step: "step", placeholder: "placeholder", unique: "unique", strict: "strict", options: "options" }, outputs: { valueChange: "valueChange" }, providers: [
|
|
7796
8159
|
{ provide: NG_VALUE_ACCESSOR, useExisting: ChipsComponent, multi: true }
|
|
7797
|
-
], viewQueries: [{ propertyName: "chipDropdown", first: true, predicate: ["chipDropdown"], descendants: true }, { propertyName: "chipButtons", first: true, predicate: ["chipButtons"], descendants: true }, { propertyName: "chipInput", first: true, predicate: ["chipInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div dd\r\n attachTo=\"root\"\r\n [closeInside]=\"false\"\r\n [autoPlacement]=\"autoPlacement\"\r\n [ngClass]=\"{disabled: disabled}\" class=\"chips\" #chipDropdown=\"dropdown\">\r\n <input class=\"chips-input\"\r\n dropdownToggle\r\n [switch]=\"false\"\r\n [attr.data-testid]=\"testId + '-input'\"\r\n [type]=\"type == 'number' ? 'number': 'text'\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [step]=\"step\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"valueOptions.length == 0 && placeholder | translate\"\r\n [ngStyle]=\"inputStyles\"\r\n (blur)=\"onBlur($event)\"\r\n (keyup)=\"onInput($event)\"\r\n #chipInput/>\r\n <div class=\"chips-buttons\" #chipButtons [ngClass]=\"{disabled: disabled}\" (resize)=\"onResize()\">\r\n <ng-container *ngFor=\"let item of valueOptions; let ix = index; trackBy:trackBy\">\r\n <a class=\"chips-button\" [ngClass]=\"'chips-' + statuses[ix]\" (dblclick)=\"removeItem($event, ix)\">\r\n @if (item.picture) {\r\n <img [src]=\"item.picture | safe:'url'\"\r\n class=\"chip-picture\"\r\n referrerpolicy=\"no-referrer\" [attr.alt]=\"item.label\">\r\n\r\n }\r\n <span class=\"chips-label\"\r\n [attr.data-testid]=\"testId + '-label-' + ix\">{{ item.label }} </span>\r\n <close-btn class=\"chips-remove\"\r\n [attr.data-testid]=\"testId + '-delete-' + ix\"\r\n (click)=\"removeItem($event, ix)\" *ngIf=\"!disabled\"></close-btn>\r\n </a>\r\n </ng-container>\r\n </div>\r\n @if (options) {\r\n <div class=\"chips-dropdown\" *dropdownContent>\r\n <button [ngClass]=\"option.classes\"\r\n [disabled]=\"option.disabled\"\r\n (click)=\"enterOption(option.value)\"\r\n *ngFor=\"let option of filteredOptions\">\r\n <div class=\"select-option\">\r\n @if (option?.picture) {\r\n <img [src]=\"option.picture | safe:'url'\"\r\n class=\"select-option-picture\"\r\n referrerpolicy=\"no-referrer\" [attr.alt]=\"option.label\">\r\n }\r\n <div class=\"select-option-label\">\r\n {{ option.label }}\r\n </div>\r\n </div>\r\n </button>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".chips{--chips-border-size: var(--border-size, 1px);--chips-border-radius: var(--border-radius, 5px);--chips-top-border-radius: var(--chips-border-radius) var(--chips-border-radius) 0 0;--chips-bottom-border-radius: 0 0 var(--chips-border-radius) var(--chips-border-radius);--chips-bg-color: var(--bg-color, #ffffff);--chips-border-color: var(--border-color, #ced4da);--chips-highlight-color: var(--highlight-color, var(--primary-color, #888888));--chips-highlight-text-color: var(--highlight-text-color, #ffffff);--chips-text-color: var(--text-color, #151515);--chips-text-size: var(--text-size, 16px);--chips-padding-vertical: 6px;--chips-padding-horizontal: 12px;--chips-padding: var(--chips-padding-vertical) var(--chips-padding-horizontal);--chips-btn-padding: 12px;--chips-btn-gap: calc(var(--chips-btn-padding) / 2);--chips-btn-color: white;--chips-btn-valid-color: rgba(200, 255, 200, .7);--chips-btn-invalid-color: rgba(255, 200, 200, .7);position:relative;margin:5px 0;font-size:var(--chips-text-size);padding:var(--chips-padding);background:var(--chips-bg-color);color:var(--chips-text-color);border:var(--chips-border-size) solid var(--chips-border-color);border-radius:var(--chips-border-radius)}.chips *{box-sizing:border-box}.chips .chips-input{background:var(--chips-bg-color);padding:var(--chips-padding);font-size:var(--chips-text-size);outline:none;border:none;width:100%;-webkit-user-select:none;user-select:none;font-weight:400}.chips .chips-buttons{position:absolute;top:var(--chips-padding-vertical);left:var(--chips-padding-horizontal);max-width:calc(100% - var(--chips-padding-horizontal) * 2);display:flex;gap:5px;overflow:auto;border-radius:var(--chips-border-radius)}.chips .chips-button{background:var(--chipd-btn-color);color:var(--chips-text-color);border:var(--chips-border-size) solid rgba(0,0,0,.2);border-radius:var(--chips-border-radius);padding:var(--chips-padding-vertical) var(--chips-btn-gap) var(--chips-padding-vertical) var(--chips-btn-padding);-webkit-user-select:none;user-select:none;font-weight:400;outline:none;display:flex;gap:var(--chips-btn-gap);justify-content:center;align-items:center;line-height:1.2rem;text-decoration:none}.chips .chips-button.chips-valid{--chipd-btn-color: var(--chips-btn-valid-color) }.chips .chips-button.chips-invalid{--chipd-btn-color: var(--chips-btn-invalid-color) }.chips img.chip-picture{width:28px;height:28px;object-fit:cover}.chips .chips-label{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chips.disabled{opacity:.75}.chips.disabled .chips-button{padding-right:var(--chips-btn-padding)}.chips-dropdown:not(:empty){position:relative;z-index:1;width:var(--toggle-width, 0);display:flex;flex-direction:column;margin:-3px 0;padding:0;list-style:none;border:var(--chips-border-size) solid var(--chips-border-color);background:var(--chips-bg-color);border-radius:var(--chips-bottom-border-radius);overflow:hidden}.chips-dropdown:not(:empty) *{box-sizing:border-box}.chips-dropdown:not(:empty) button{border:none;background:none;cursor:pointer;padding:6px 12px;-webkit-user-select:none;user-select:none;text-align:left}.chips-dropdown:not(:empty) button:hover,.chips-dropdown:not(:empty) button.active{background-color:var(--chips-highlight-color);color:var(--chips-highlight-text-color)}.chips-dropdown:not(:empty) button:hover a,.chips-dropdown:not(:empty) button.active a{color:var(--chips-highlight-text-color)}.chips-dropdown:not(:empty) .select-option{display:flex;gap:8px;align-items:center;justify-content:center}.chips-dropdown:not(:empty) .select-option .select-option-picture{width:32px;height:32px;object-fit:cover}.chips-dropdown:not(:empty) .select-option .select-option-label{flex:1}.dropdown-placement-top .chips-dropdown{border-radius:var(--chips-top-border-radius)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: DropdownDirective, selector: "[dd],[drop-down]", inputs: ["closeInside", "attachTo", "boundary", "placement", "autoPlacement", "mobileViewUnder", "fixed", "keyboardHandler", "isDisabled"], outputs: ["onShown", "onHidden", "onKeyboard"], exportAs: ["dropdown"] }, { kind: "directive", type: DropdownContentDirective, selector: "[dropdownContent]", exportAs: ["dropdown-content"] }, { kind: "directive", type: DropdownToggleDirective, selector: "[dropdownToggle]", inputs: ["beforeOpen", "switch"], exportAs: ["dropdown-toggle"] }, { kind: "component", type: CloseBtnComponent, selector: "close-btn" }, { kind: "pipe", type: SafeHtmlPipe, name: "safe" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
8160
|
+
], viewQueries: [{ propertyName: "chipDropdown", first: true, predicate: ["chipDropdown"], descendants: true }, { propertyName: "chipButtons", first: true, predicate: ["chipButtons"], descendants: true }, { propertyName: "chipInput", first: true, predicate: ["chipInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div dd\r\n attachTo=\"root\"\r\n [closeInside]=\"false\"\r\n [autoPlacement]=\"autoPlacement\"\r\n [ngClass]=\"{disabled: disabled}\" class=\"chips\" #chipDropdown=\"dropdown\">\r\n <input class=\"chips-input\"\r\n dropdownToggle\r\n [switch]=\"false\"\r\n [attr.data-testid]=\"testId + '-input'\"\r\n [type]=\"type == 'number' ? 'number': 'text'\"\r\n [min]=\"min\"\r\n [max]=\"max\"\r\n [step]=\"step\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"valueOptions.length == 0 && placeholder | translate\"\r\n [ngStyle]=\"inputStyles\"\r\n (blur)=\"onBlur($event)\"\r\n (keyup)=\"onInput($event)\"\r\n #chipInput/>\r\n <div class=\"chips-buttons\" #chipButtons [ngClass]=\"{disabled: disabled}\" (resize)=\"onResize()\">\r\n <ng-container *ngFor=\"let item of valueOptions; let ix = index; trackBy:trackBy\">\r\n <a class=\"chips-button\" [ngClass]=\"'chips-' + statuses[ix]\" (dblclick)=\"removeItem($event, ix)\">\r\n @if (item.picture) {\r\n <img [src]=\"item.picture | safe:'url'\"\r\n class=\"chip-picture\"\r\n referrerpolicy=\"no-referrer\" [attr.alt]=\"item.label\">\r\n\r\n }\r\n <span class=\"chips-label\"\r\n [attr.data-testid]=\"testId + '-label-' + ix\">{{ item.label }} </span>\r\n <close-btn class=\"chips-remove\"\r\n [attr.data-testid]=\"testId + '-delete-' + ix\"\r\n (click)=\"removeItem($event, ix)\" *ngIf=\"!disabled\"></close-btn>\r\n </a>\r\n </ng-container>\r\n </div>\r\n @if (options) {\r\n <div class=\"chips-dropdown\" *dropdownContent>\r\n <button [ngClass]=\"option.classes\"\r\n [disabled]=\"option.disabled\"\r\n (click)=\"enterOption(option.value)\"\r\n *ngFor=\"let option of filteredOptions\">\r\n <div class=\"select-option\">\r\n @if (option?.picture) {\r\n <img [src]=\"option.picture | safe:'url'\"\r\n class=\"select-option-picture\"\r\n referrerpolicy=\"no-referrer\" [attr.alt]=\"option.label\">\r\n }\r\n <div class=\"select-option-label\">\r\n {{ option.label }}\r\n </div>\r\n </div>\r\n </button>\r\n </div>\r\n }\r\n</div>\r\n", styles: [".chips{--chips-border-size: var(--border-size, 1px);--chips-border-radius: var(--border-radius, 5px);--chips-top-border-radius: var(--chips-border-radius) var(--chips-border-radius) 0 0;--chips-bottom-border-radius: 0 0 var(--chips-border-radius) var(--chips-border-radius);--chips-bg-color: var(--bg-color, #ffffff);--chips-border-color: var(--border-color, #ced4da);--chips-highlight-color: var(--highlight-color, var(--primary-color, #888888));--chips-highlight-text-color: var(--highlight-text-color, #ffffff);--chips-text-color: var(--text-color, #151515);--chips-text-size: var(--text-size, 16px);--chips-padding-vertical: 6px;--chips-padding-horizontal: 12px;--chips-padding: var(--chips-padding-vertical) var(--chips-padding-horizontal);--chips-btn-padding: 12px;--chips-btn-gap: calc(var(--chips-btn-padding) / 2);--chips-btn-color: white;--chips-btn-valid-color: rgba(200, 255, 200, .7);--chips-btn-invalid-color: rgba(255, 200, 200, .7);position:relative;margin:5px 0;font-size:var(--chips-text-size);padding:var(--chips-padding);background:var(--chips-bg-color);color:var(--chips-text-color);border:var(--chips-border-size) solid var(--chips-border-color);border-radius:var(--chips-border-radius)}.chips *{box-sizing:border-box}.chips .chips-input{background:var(--chips-bg-color);padding:var(--chips-padding);font-size:var(--chips-text-size);outline:none;border:none;width:100%;-webkit-user-select:none;user-select:none;font-weight:400}.chips .chips-buttons{position:absolute;top:var(--chips-padding-vertical);left:var(--chips-padding-horizontal);max-width:calc(100% - var(--chips-padding-horizontal) * 2);display:flex;gap:5px;overflow:auto;border-radius:var(--chips-border-radius)}.chips .chips-button{background:var(--chipd-btn-color);color:var(--chips-text-color);border:var(--chips-border-size) solid rgba(0,0,0,.2);border-radius:var(--chips-border-radius);padding:var(--chips-padding-vertical) var(--chips-btn-gap) var(--chips-padding-vertical) var(--chips-btn-padding);-webkit-user-select:none;user-select:none;font-weight:400;outline:none;display:flex;gap:var(--chips-btn-gap);justify-content:center;align-items:center;line-height:1.2rem;text-decoration:none}.chips .chips-button.chips-valid{--chipd-btn-color: var(--chips-btn-valid-color) }.chips .chips-button.chips-invalid{--chipd-btn-color: var(--chips-btn-invalid-color) }.chips img.chip-picture{width:28px;height:28px;object-fit:cover}.chips .chips-label{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chips.disabled{opacity:.75}.chips.disabled .chips-button{padding-right:var(--chips-btn-padding)}.chips-dropdown:not(:empty){position:relative;z-index:1;width:var(--toggle-width, 0);display:flex;flex-direction:column;margin:-3px 0;padding:0;list-style:none;border:var(--chips-border-size) solid var(--chips-border-color);background:var(--chips-bg-color);border-radius:var(--chips-bottom-border-radius);overflow:hidden}.chips-dropdown:not(:empty) *{box-sizing:border-box}.chips-dropdown:not(:empty) button{border:none;background:none;cursor:pointer;padding:6px 12px;-webkit-user-select:none;user-select:none;text-align:left}.chips-dropdown:not(:empty) button:hover,.chips-dropdown:not(:empty) button.active{background-color:var(--chips-highlight-color);color:var(--chips-highlight-text-color)}.chips-dropdown:not(:empty) button:hover a,.chips-dropdown:not(:empty) button.active a{color:var(--chips-highlight-text-color)}.chips-dropdown:not(:empty) .select-option{display:flex;gap:8px;align-items:center;justify-content:center}.chips-dropdown:not(:empty) .select-option .select-option-picture{width:32px;height:32px;object-fit:cover}.chips-dropdown:not(:empty) .select-option .select-option-label{flex:1}.dropdown-placement-top .chips-dropdown{border-radius:var(--chips-top-border-radius)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: DropdownDirective, selector: "[dd],[drop-down]", inputs: ["closeInside", "attachTo", "boundary", "placement", "autoPlacement", "mobileViewUnder", "fixed", "keyboardHandler", "isDisabled"], outputs: ["onShown", "onHidden", "onKeyboard"], exportAs: ["dropdown"] }, { kind: "directive", type: DropdownContentDirective, selector: "[dropdownContent]", exportAs: ["dropdown-content"] }, { kind: "directive", type: DropdownToggleDirective, selector: "[dropdownToggle]", inputs: ["beforeOpen", "switch"], exportAs: ["dropdown-toggle"] }, { kind: "component", type: CloseBtnComponent, selector: "close-btn" }, { kind: "pipe", type: SafeHtmlPipe, name: "safe" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
7798
8161
|
}
|
|
7799
8162
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: ChipsComponent, decorators: [{
|
|
7800
8163
|
type: Component,
|
|
@@ -7843,6 +8206,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7843
8206
|
}] } });
|
|
7844
8207
|
|
|
7845
8208
|
class CodeEditorComponent {
|
|
8209
|
+
cdr;
|
|
8210
|
+
element;
|
|
8211
|
+
value;
|
|
8212
|
+
lang;
|
|
8213
|
+
disabled;
|
|
8214
|
+
valueChange;
|
|
8215
|
+
onChange;
|
|
8216
|
+
onTouched;
|
|
8217
|
+
langCompartment;
|
|
8218
|
+
extensions;
|
|
8219
|
+
rootElem;
|
|
8220
|
+
editor;
|
|
8221
|
+
editorElem;
|
|
7846
8222
|
get root() {
|
|
7847
8223
|
this.rootElem = this.rootElem || getRoot(this.element.nativeElement);
|
|
7848
8224
|
return this.rootElem;
|
|
@@ -7960,10 +8336,10 @@ class CodeEditorComponent {
|
|
|
7960
8336
|
this.cdr.markForCheck();
|
|
7961
8337
|
this.ngOnChanges();
|
|
7962
8338
|
}
|
|
7963
|
-
static
|
|
7964
|
-
static
|
|
8339
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CodeEditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8340
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: CodeEditorComponent, isStandalone: false, selector: "code-editor", inputs: { value: "value", lang: "lang", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, providers: [
|
|
7965
8341
|
{ provide: NG_VALUE_ACCESSOR, useExisting: CodeEditorComponent, multi: true }
|
|
7966
|
-
], viewQueries: [{ propertyName: "editorElem", first: true, predicate: ["editor"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"code-editor\" [ngClass]=\"{disabled: disabled}\">\r\n <div #editor></div>\r\n</div>\r\n", styles: [".code-editor>div{margin:10px 0}.code-editor>div .cm-editor{outline:none}.code-editor>div .cm-scroller{min-height:150px;max-height:345px;background:#fefefe;border:1px solid #ddd}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
8342
|
+
], viewQueries: [{ propertyName: "editorElem", first: true, predicate: ["editor"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"code-editor\" [ngClass]=\"{disabled: disabled}\">\r\n <div #editor></div>\r\n</div>\r\n", styles: [".code-editor>div{margin:10px 0}.code-editor>div .cm-editor{outline:none}.code-editor>div .cm-scroller{min-height:150px;max-height:345px;background:#fefefe;border:1px solid #ddd}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
7967
8343
|
}
|
|
7968
8344
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: CodeEditorComponent, decorators: [{
|
|
7969
8345
|
type: Component,
|
|
@@ -7984,6 +8360,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
7984
8360
|
}] } });
|
|
7985
8361
|
|
|
7986
8362
|
class DropListComponent {
|
|
8363
|
+
cdr;
|
|
8364
|
+
disabled;
|
|
8365
|
+
unique;
|
|
8366
|
+
message;
|
|
8367
|
+
idField;
|
|
8368
|
+
labelField;
|
|
8369
|
+
value;
|
|
8370
|
+
context;
|
|
8371
|
+
prepareItem;
|
|
8372
|
+
checkFn;
|
|
8373
|
+
dropFn;
|
|
8374
|
+
itemTemplate;
|
|
8375
|
+
onChange;
|
|
8376
|
+
onTouched;
|
|
8377
|
+
valueMap;
|
|
8378
|
+
remove;
|
|
7987
8379
|
constructor(cdr) {
|
|
7988
8380
|
this.cdr = cdr;
|
|
7989
8381
|
this.disabled = false;
|
|
@@ -8070,12 +8462,12 @@ class DropListComponent {
|
|
|
8070
8462
|
this.onChange?.(value);
|
|
8071
8463
|
this.onTouched?.();
|
|
8072
8464
|
}
|
|
8073
|
-
static
|
|
8074
|
-
static
|
|
8465
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8466
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: DropListComponent, isStandalone: false, selector: "drop-list", inputs: { disabled: "disabled", unique: "unique", message: "message", idField: "idField", labelField: "labelField", value: "value", context: "context", prepareItem: "prepareItem", checkFn: "checkFn", dropFn: "dropFn" }, providers: [{
|
|
8075
8467
|
provide: NG_VALUE_ACCESSOR,
|
|
8076
8468
|
useExisting: forwardRef(() => DropListComponent),
|
|
8077
8469
|
multi: true,
|
|
8078
|
-
}], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template #defaultTemplate let-item=\"item\">\r\n <div class=\"drop-list-item-label\">\r\n {{ item | getValue:labelField }}\r\n </div>\r\n</ng-template>\r\n<div class=\"drop-list\"\r\n #list\r\n (dragenter)=\"onDragEnter($event, list, this)\"\r\n (dragleave)=\"onDragLeave($event, list)\"\r\n (drop)=\"onDrop($event, list)\">\r\n <div class=\"drop-list-message\"\r\n [ngClass]=\"{'has-value': value?.length}\"\r\n [innerHTML]=\"message | translate | safe:'html'\"\r\n *ngIf=\"message\">\r\n </div>\r\n <ng-container *ngFor=\"let id of value; let ix = index\">\r\n <div class=\"drop-list-item\">\r\n <ng-template #noItemTemplate>\r\n <div class=\"drop-list-item-label just-id\">\r\n {{ id }}\r\n </div>\r\n </ng-template>\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate || defaultTemplate\"\r\n [ngTemplateOutletContext]=\"{item: valueMap[id], id: id, remove: remove}\"\r\n *ngIf=\"valueMap[id]; else noItemTemplate\"></ng-container>\r\n <a class=\"remove-item-btn\" (click)=\"remove(ix)\"></a>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [".drop-list{--message-size: 20px;--message-color: #7e7e7e;--message-drop-color: #efefef;--remove-bg: var(--primary-color, rgba(0, 0, 0, .2));--remove-color: #ffffff;--remove-size: 18px;--btn-distance: 4px;--remove-spacing: 8px;--btn-top-distance: var(--btn-distance);--btn-right-distance: var(--btn-distance);min-height:100px;border:2px #bfbfbf dashed;border-radius:10px;padding:10px;position:relative;display:flex;align-items:flex-start;justify-content:left;gap:10px;background-color:#0000000d;transition:.2s;flex-wrap:wrap}.drop-list .drop-list-message{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;pointer-events:none;font-size:var(--message-size);color:var(--message-color);transition:.2s}.drop-list .drop-list-message.has-value{display:none}.drop-list .drop-list-item{position:relative;background:#0003;padding:7px 23px 7px 10px;border-radius:5px;-webkit-user-select:none;user-select:none}.drop-list .drop-list-item-label:not(.just-id){min-width:50px;text-align:center}.drop-list .drop-list-item-label.just-id{max-width:100px;overflow:hidden;text-overflow:ellipsis;color:gray}.drop-list .drop-list-item-delete{font-size:14px;line-height:14px;text-align:center;cursor:pointer;background:#fff;border-radius:2px;height:14px;width:15px;position:absolute;top:4px;right:4px}.drop-list.drop-allowed{background-color:#0003;border-color:gray}.drop-list.drop-allowed .drop-list-message{color:var(--message-drop-color)}.drop-list a.remove-item-btn{--rotation: 45deg;position:absolute;top:var(--btn-top-distance);right:var(--btn-right-distance);width:var(--remove-size);height:var(--remove-size);cursor:pointer;transition:.2s ease;background-color:var(--remove-bg);border-radius:50%}.drop-list a.remove-item-btn:before,.drop-list a.remove-item-btn:after{content:\"\";position:absolute;top:50%;left:50%;width:calc(100% - var(--remove-spacing));transform:translate(-50%,-50%) rotate(var(--rotation));height:1px;background:var(--remove-color);transition:.2s ease}.drop-list a.remove-item-btn:after{--rotation: -45deg}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: GetValuePipe, name: "getValue" }, { kind: "pipe", type: SafeHtmlPipe, name: "safe" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
8470
|
+
}], queries: [{ propertyName: "itemTemplate", first: true, predicate: ["itemTemplate"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template #defaultTemplate let-item=\"item\">\r\n <div class=\"drop-list-item-label\">\r\n {{ item | getValue:labelField }}\r\n </div>\r\n</ng-template>\r\n<div class=\"drop-list\"\r\n #list\r\n (dragenter)=\"onDragEnter($event, list, this)\"\r\n (dragleave)=\"onDragLeave($event, list)\"\r\n (drop)=\"onDrop($event, list)\">\r\n <div class=\"drop-list-message\"\r\n [ngClass]=\"{'has-value': value?.length}\"\r\n [innerHTML]=\"message | translate | safe:'html'\"\r\n *ngIf=\"message\">\r\n </div>\r\n <ng-container *ngFor=\"let id of value; let ix = index\">\r\n <div class=\"drop-list-item\">\r\n <ng-template #noItemTemplate>\r\n <div class=\"drop-list-item-label just-id\">\r\n {{ id }}\r\n </div>\r\n </ng-template>\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate || defaultTemplate\"\r\n [ngTemplateOutletContext]=\"{item: valueMap[id], id: id, remove: remove}\"\r\n *ngIf=\"valueMap[id]; else noItemTemplate\"></ng-container>\r\n <a class=\"remove-item-btn\" (click)=\"remove(ix)\"></a>\r\n </div>\r\n </ng-container>\r\n</div>\r\n", styles: [".drop-list{--message-size: 20px;--message-color: #7e7e7e;--message-drop-color: #efefef;--remove-bg: var(--primary-color, rgba(0, 0, 0, .2));--remove-color: #ffffff;--remove-size: 18px;--btn-distance: 4px;--remove-spacing: 8px;--btn-top-distance: var(--btn-distance);--btn-right-distance: var(--btn-distance);min-height:100px;border:2px #bfbfbf dashed;border-radius:10px;padding:10px;position:relative;display:flex;align-items:flex-start;justify-content:left;gap:10px;background-color:#0000000d;transition:.2s;flex-wrap:wrap}.drop-list .drop-list-message{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;pointer-events:none;font-size:var(--message-size);color:var(--message-color);transition:.2s}.drop-list .drop-list-message.has-value{display:none}.drop-list .drop-list-item{position:relative;background:#0003;padding:7px 23px 7px 10px;border-radius:5px;-webkit-user-select:none;user-select:none}.drop-list .drop-list-item-label:not(.just-id){min-width:50px;text-align:center}.drop-list .drop-list-item-label.just-id{max-width:100px;overflow:hidden;text-overflow:ellipsis;color:gray}.drop-list .drop-list-item-delete{font-size:14px;line-height:14px;text-align:center;cursor:pointer;background:#fff;border-radius:2px;height:14px;width:15px;position:absolute;top:4px;right:4px}.drop-list.drop-allowed{background-color:#0003;border-color:gray}.drop-list.drop-allowed .drop-list-message{color:var(--message-drop-color)}.drop-list a.remove-item-btn{--rotation: 45deg;position:absolute;top:var(--btn-top-distance);right:var(--btn-right-distance);width:var(--remove-size);height:var(--remove-size);cursor:pointer;transition:.2s ease;background-color:var(--remove-bg);border-radius:50%}.drop-list a.remove-item-btn:before,.drop-list a.remove-item-btn:after{content:\"\";position:absolute;top:50%;left:50%;width:calc(100% - var(--remove-spacing));transform:translate(-50%,-50%) rotate(var(--rotation));height:1px;background:var(--remove-color);transition:.2s ease}.drop-list a.remove-item-btn:after{--rotation: -45deg}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: GetValuePipe, name: "getValue" }, { kind: "pipe", type: SafeHtmlPipe, name: "safe" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
8079
8471
|
}
|
|
8080
8472
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropListComponent, decorators: [{
|
|
8081
8473
|
type: Component,
|
|
@@ -8110,6 +8502,48 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
8110
8502
|
}] } });
|
|
8111
8503
|
|
|
8112
8504
|
class DropdownBoxComponent {
|
|
8505
|
+
/**
|
|
8506
|
+
* Determines if the dropdown should be closed even if we click inside it
|
|
8507
|
+
*/
|
|
8508
|
+
closeInside;
|
|
8509
|
+
/**
|
|
8510
|
+
* Determines where the floating element needs to be placed
|
|
8511
|
+
*/
|
|
8512
|
+
attachTo;
|
|
8513
|
+
/**
|
|
8514
|
+
* Where to place the floating element relative to the reference element.
|
|
8515
|
+
*/
|
|
8516
|
+
placement;
|
|
8517
|
+
/**
|
|
8518
|
+
* The axis that runs along the alignment of the floating element. Determines
|
|
8519
|
+
* whether to check for most space along this axis.
|
|
8520
|
+
* @default false
|
|
8521
|
+
*/
|
|
8522
|
+
crossAxis;
|
|
8523
|
+
/**
|
|
8524
|
+
* Choose placements with a particular alignment.
|
|
8525
|
+
* @default undefined
|
|
8526
|
+
*/
|
|
8527
|
+
alignment;
|
|
8528
|
+
/**
|
|
8529
|
+
* Whether to choose placements with the opposite alignment if the preferred
|
|
8530
|
+
* alignment does not fit.
|
|
8531
|
+
* @default true
|
|
8532
|
+
*/
|
|
8533
|
+
autoAlignment;
|
|
8534
|
+
/**
|
|
8535
|
+
* Which placements are allowed to be chosen. Placements must be within the
|
|
8536
|
+
* `alignment` option if explicitly set.
|
|
8537
|
+
* @default allPlacements (variable)
|
|
8538
|
+
*/
|
|
8539
|
+
allowedPlacements;
|
|
8540
|
+
/**
|
|
8541
|
+
* Adds a class to the main div element and also to the content
|
|
8542
|
+
* ('drop' by default which translates to 'drop-content-wrapper' in case of content)
|
|
8543
|
+
*/
|
|
8544
|
+
componentClass;
|
|
8545
|
+
autoPlacement;
|
|
8546
|
+
content;
|
|
8113
8547
|
constructor() {
|
|
8114
8548
|
this.closeInside = true;
|
|
8115
8549
|
this.attachTo = "root";
|
|
@@ -8134,8 +8568,8 @@ class DropdownBoxComponent {
|
|
|
8134
8568
|
ngOnChanges() {
|
|
8135
8569
|
this.makeAutoPlacementOpts();
|
|
8136
8570
|
}
|
|
8137
|
-
static
|
|
8138
|
-
static
|
|
8571
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8572
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: DropdownBoxComponent, isStandalone: false, selector: "dropdown-box", inputs: { closeInside: "closeInside", attachTo: "attachTo", placement: "placement", crossAxis: "crossAxis", alignment: "alignment", autoAlignment: "autoAlignment", allowedPlacements: "allowedPlacements", componentClass: "componentClass" }, viewQueries: [{ propertyName: "content", first: true, predicate: DropdownContentDirective, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div dd class=\"dropdown-box\"\n [ngClass]=\"componentClass\"\n [closeInside]=\"closeInside\"\n [attachTo]=\"attachTo\"\n [placement]=\"placement\"\n [autoPlacement]=\"autoPlacement\">\n <div class=\"dropdown-box-toggle\" dropdownToggle>\n <a class=\"dropdown-box-toggle-link\">\n <ng-content select=\"[toggle-content]\"></ng-content>\n </a>\n </div>\n <div class=\"dropdown-box-content\" [ngClass]=\"componentClass + '-content-wrapper'\" *dropdownContent>\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".dropdown-box{--dd-border-size: var(--border-size, 1px);--dd-border-radius: 5px;--dd-top-border-radius: var(--dd-border-radius) var(--dd-border-radius) 0 0;--dd-bottom-border-radius: 0 0 var(--dd-border-radius) var(--dd-border-radius);--dd-bg-color: var(--bg-color, #ffffff);--dd-border-color: var(--border-color, #ced4da);--dd-highlight-color: var(--highlight-color, var(--primary-color, #888888));--dd-highlight-text-color: var(--highlight-text-color, #ffffff);--dd-text-color: var(--text-color, #151515);--dd-arrow-size: var(--arrow-size, 6px);--dd-arrow-space: calc(var(--dd-arrow-size) * .5 + 1px);--dd-arrow-color: currentColor;--dd-arrow-rotation: 90;position:relative;z-index:2;display:inline-block;width:var(--content-width, 0);min-width:fit-content}.dropdown-box *{box-sizing:border-box}.dropdown-box a,.dropdown-box span{white-space:nowrap}.dropdown-box.table-sort-dropdown{display:none}.dropdown-box.table-sort-dropdown .table-toggle:hover,.dropdown-box li:hover,.dropdown-box li.active{background-color:var(--dd-highlight-color);color:var(--dd-highlight-text-color)}.dropdown-box.open{--dd-arrow-rotation: -90}.dropdown-box.open .dropdown-box-toggle{border-radius:var(--dd-top-border-radius)}.dropdown-box-toggle{min-width:fit-content;background:var(--dd-bg-color);color:var(--dd-text-color);cursor:pointer;border:var(--dd-border-size) solid var(--dd-border-color);border-radius:5px;padding:6px 12px;-webkit-user-select:none;user-select:none;font-weight:400;outline:none}.dropdown-box-toggle .toggle-placeholder{color:#495057}.dropdown-box-toggle a.dropdown-box-toggle-link{margin-right:calc(2 * var(--dd-arrow-size));padding-right:5px;min-width:fit-content;position:relative;display:block}.dropdown-box-toggle a.dropdown-box-toggle-link:after{content:\"\";position:absolute;left:calc(100% + var(--dd-arrow-size));top:calc(50% - var(--dd-arrow-size));border-top:var(--dd-arrow-size) solid transparent;border-bottom:var(--dd-arrow-size) solid transparent;border-left:var(--dd-arrow-size) solid var(--dd-arrow-color);transform:rotate(calc(var(--dd-arrow-rotation) * 1deg));transition:.2s ease}.dropdown-box-content{position:relative;z-index:1;min-width:var(--toggle-width, 0)}.dropdown-box-content *{box-sizing:border-box}.dropdown-box-content ul{margin:-1px 0 0;padding:0;list-style:none;border:var(--dd-border-size) solid var(--dd-border-color);z-index:1;background:var(--dd-bg-color);border-radius:var(--dd-border-radius);overflow:hidden;min-width:fit-content}.dropdown-box-content li{color:var(--dd-text-color);font-weight:400;text-align:left;min-width:fit-content;cursor:pointer;padding:6px 12px;-webkit-user-select:none;user-select:none}.dropdown-box-content li a{color:var(--dd-text-color);text-decoration:none;display:flex;gap:5px}.dropdown-box-content li:hover,.dropdown-box-content li.active{background-color:var(--dd-highlight-color);color:var(--dd-highlight-text-color)}.dropdown-box-content li:hover a,.dropdown-box-content li.active a{color:var(--dd-highlight-text-color)}.dropdown-placement-top.open .dropdown-box-toggle{border-radius:var(--dd-bottom-border-radius)}.dropdown-placement-top .dropdown-box-content ul{margin-top:0;margin-bottom:-1px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: DropdownDirective, selector: "[dd],[drop-down]", inputs: ["closeInside", "attachTo", "boundary", "placement", "autoPlacement", "mobileViewUnder", "fixed", "keyboardHandler", "isDisabled"], outputs: ["onShown", "onHidden", "onKeyboard"], exportAs: ["dropdown"] }, { kind: "directive", type: DropdownContentDirective, selector: "[dropdownContent]", exportAs: ["dropdown-content"] }, { kind: "directive", type: DropdownToggleDirective, selector: "[dropdownToggle]", inputs: ["beforeOpen", "switch"], exportAs: ["dropdown-toggle"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
8139
8573
|
}
|
|
8140
8574
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DropdownBoxComponent, decorators: [{
|
|
8141
8575
|
type: Component,
|
|
@@ -8162,34 +8596,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
8162
8596
|
}] } });
|
|
8163
8597
|
|
|
8164
8598
|
class DynamicTableCellComponent {
|
|
8165
|
-
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8181
|
-
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
}
|
|
8191
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DynamicTableCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8192
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.22", type: DynamicTableCellComponent, isStandalone: false, selector: "dynamic-table-cell", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, globalTemplatePrefix: { classPropertyName: "globalTemplatePrefix", publicName: "globalTemplatePrefix", isSignal: true, isRequired: false, transformFunction: null }, fallbackTemplate: { classPropertyName: "fallbackTemplate", publicName: "fallbackTemplate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-template #fallback let-value=\"value\">\r\n {{ value ?? '-' }}\r\n</ng-template>\r\n<ng-template #defaultTemplate let-context let-column=\"column\" let-id=\"id\" let-value=\"value\">\r\n @switch (column.filterType) {\r\n @case ('checkbox') {\r\n <div class=\"table-checkbox\">\r\n <icon [name]=\"value ? 'check' : 'xmark'\"></icon>\r\n </div>\r\n }\r\n @case ('enum') {\r\n @let optionPrefix = column.enumPrefix || id;\r\n <div [ngClass]=\"`table-enum enum-${optionPrefix} enum-value-${value}`\">\r\n <span>{{ `${optionPrefix}.${value}` | translate }}</span>\r\n </div>\r\n }\r\n @default {\r\n <ng-container [ngxTemplateOutlet]=\"fallbackTemplate() || fallback\"\r\n [context]=\"context\"></ng-container>\r\n }\r\n }\r\n</ng-template>\r\n<ng-container [ngxTemplateOutlet]=\"template() || defaultTemplate\"\r\n [context]=\"context()\"\r\n [additionalContext]=\"{defaultTemplate}\"></ng-container>\r\n", dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgxTemplateOutletDirective, selector: "[ngxTemplateOutlet]", inputs: ["context", "additionalContext", "ngxTemplateOutlet"] }, { kind: "component", type: IconComponent, selector: "icon", inputs: ["name"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
8599
|
+
language = inject(LANGUAGE_SERVICE);
|
|
8600
|
+
globalTemplates = inject(GlobalTemplateService);
|
|
8601
|
+
item = input({});
|
|
8602
|
+
column = input({ title: "" });
|
|
8603
|
+
id = input("");
|
|
8604
|
+
globalTemplatePrefix = input("dynamic-table");
|
|
8605
|
+
fallbackTemplate = input(null);
|
|
8606
|
+
templateKeys = toSignal(this.globalTemplates.templatesUpdated);
|
|
8607
|
+
template = computed(() => {
|
|
8608
|
+
const prefix = this.globalTemplatePrefix();
|
|
8609
|
+
const key = `${prefix}-col-${this.id()}`;
|
|
8610
|
+
const keys = this.templateKeys();
|
|
8611
|
+
return !keys?.includes(key) ? null : this.globalTemplates.get(key);
|
|
8612
|
+
});
|
|
8613
|
+
context = computed(() => {
|
|
8614
|
+
const item = this.item();
|
|
8615
|
+
const id = this.id();
|
|
8616
|
+
const value = ObjectUtils.getValue(item, id, null);
|
|
8617
|
+
return {
|
|
8618
|
+
item, id, value,
|
|
8619
|
+
column: this.column(),
|
|
8620
|
+
multi: Array.isArray(value)
|
|
8621
|
+
};
|
|
8622
|
+
});
|
|
8623
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DynamicTableCellComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8624
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.22", type: DynamicTableCellComponent, isStandalone: false, selector: "dynamic-table-cell", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null }, column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, globalTemplatePrefix: { classPropertyName: "globalTemplatePrefix", publicName: "globalTemplatePrefix", isSignal: true, isRequired: false, transformFunction: null }, fallbackTemplate: { classPropertyName: "fallbackTemplate", publicName: "fallbackTemplate", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<ng-template #fallback let-value=\"value\">\r\n {{ value ?? '-' }}\r\n</ng-template>\r\n<ng-template #defaultTemplate let-context let-column=\"column\" let-id=\"id\" let-value=\"value\">\r\n @switch (column.filterType) {\r\n @case ('checkbox') {\r\n <div class=\"table-checkbox\">\r\n <icon [name]=\"value ? 'check' : 'xmark'\"></icon>\r\n </div>\r\n }\r\n @case ('enum') {\r\n @let optionPrefix = column.enumPrefix || id;\r\n <div [ngClass]=\"`table-enum enum-${optionPrefix} enum-value-${value}`\">\r\n <span>{{ `${optionPrefix}.${value}` | translate }}</span>\r\n </div>\r\n }\r\n @default {\r\n <ng-container [ngxTemplateOutlet]=\"fallbackTemplate() || fallback\"\r\n [context]=\"context\"></ng-container>\r\n }\r\n }\r\n</ng-template>\r\n<ng-container [ngxTemplateOutlet]=\"template() || defaultTemplate\"\r\n [context]=\"context()\"\r\n [additionalContext]=\"{defaultTemplate}\"></ng-container>\r\n", dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgxTemplateOutletDirective, selector: "[ngxTemplateOutlet]", inputs: ["context", "additionalContext", "ngxTemplateOutlet"] }, { kind: "component", type: IconComponent, selector: "icon", inputs: ["name"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
8193
8625
|
}
|
|
8194
8626
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DynamicTableCellComponent, decorators: [{
|
|
8195
8627
|
type: Component,
|
|
@@ -8197,12 +8629,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
8197
8629
|
}] });
|
|
8198
8630
|
|
|
8199
8631
|
class PaginationMenuComponent {
|
|
8632
|
+
state;
|
|
8633
|
+
pagination;
|
|
8634
|
+
maxSize;
|
|
8635
|
+
urlParam;
|
|
8636
|
+
directionLinks;
|
|
8637
|
+
boundaryLinks;
|
|
8638
|
+
pages;
|
|
8200
8639
|
get hasPrev() {
|
|
8201
8640
|
return this.pagination.page > 1;
|
|
8202
8641
|
}
|
|
8203
8642
|
get hasNext() {
|
|
8204
8643
|
return this.pagination.page < this.pagination.maxPage;
|
|
8205
8644
|
}
|
|
8645
|
+
onRefresh;
|
|
8206
8646
|
constructor(state, pagination) {
|
|
8207
8647
|
this.state = state;
|
|
8208
8648
|
this.pagination = pagination;
|
|
@@ -8252,8 +8692,8 @@ class PaginationMenuComponent {
|
|
|
8252
8692
|
}
|
|
8253
8693
|
this.pages = pages;
|
|
8254
8694
|
}
|
|
8255
|
-
static
|
|
8256
|
-
static
|
|
8695
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PaginationMenuComponent, deps: [{ token: StateService }, { token: PaginationDirective }], target: i0.ɵɵFactoryTarget.Component });
|
|
8696
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: PaginationMenuComponent, isStandalone: false, selector: "pagination-menu", inputs: { maxSize: "maxSize", urlParam: "urlParam", directionLinks: "directionLinks", boundaryLinks: "boundaryLinks" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"pg-menu\" *ngIf=\"pagination.total > pagination.itemsPerPage\">\r\n <ul class=\"pg-list\">\r\n <li class=\"page-item\" [ngClass]=\"{disabled: !hasPrev}\" *ngIf=\"boundaryLinks\">\r\n <a class=\"page-link boundary-link previous\" (click)=\"paginate(1)\"></a>\r\n </li>\r\n <li class=\"page-item\" [ngClass]=\"{disabled: !hasPrev}\" *ngIf=\"directionLinks\">\r\n <a class=\"page-link direction-link previous\" (click)=\"paginate(pagination.page - 1)\"></a>\r\n </li>\r\n <li class=\"page-item\" [ngClass]=\"{active: pagination.page == page}\" *ngFor=\"let page of pages\">\r\n <a class=\"page-link\" [ngClass]=\"{active: pagination.page == page}\" (click)=\"paginate(page)\">{{ page }}</a>\r\n </li>\r\n <li class=\"page-item\" [ngClass]=\"{disabled: !hasNext}\" *ngIf=\"directionLinks\">\r\n <a class=\"page-link direction-link\" (click)=\"paginate(pagination.page + 1)\"></a>\r\n </li>\r\n <li class=\"page-item\" [ngClass]=\"{disabled: !hasNext}\" *ngIf=\"boundaryLinks\">\r\n <a class=\"page-link boundary-link\" (click)=\"paginate(pagination.maxPage)\"></a>\r\n </li>\r\n </ul>\r\n</div>\r\n", styles: [".pg-menu{--pg-border-size: var(--border-size, 1px);--pg-bg-color: var(--bg-color, #ffffff);--pg-border-color: var(--border-color, #ced4da);--pg-border-radius: var(--border-radius, 5px);--pg-highlight-color: var(--highlight-color, var(--primary-color, #888888));--pg-highlight-text-color: var(--highlight-text-color, #ffffff);--pg-text-color: var(--text-color, #151515);--pg-arrow-content: \"\";--pg-arrow-size: var(--arrow-size, 6px);--pg-arrow-space: calc(var(--pg-arrow-size) * .5 + 1px);--pg-arrow-color: currentColor;display:flex;align-items:center;justify-content:center;min-width:fit-content;margin:10px}.pg-menu *{box-sizing:border-box}.pg-menu ul.pg-list{margin:0;padding:0;list-style:none;border:var(--pg-border-size) solid var(--pg-border-color);background:var(--pg-bg-color);border-radius:var(--pg-border-radius);overflow:hidden;min-width:fit-content;display:flex}.pg-menu li{color:var(--pg-text-color);font-weight:400;text-align:left;min-width:fit-content;cursor:pointer;border-right:var(--pg-border-size) solid var(--pg-border-color);display:flex;align-items:center}.pg-menu li:last-child{border-right:none}.pg-menu li:not(.disabled):hover,.pg-menu li.active{background-color:var(--pg-highlight-color);color:var(--pg-highlight-text-color)}.pg-menu li.disabled a{cursor:default}.pg-menu a{display:block;min-width:36px;min-height:36px;height:auto;line-height:24px;text-align:center;vertical-align:top;padding:6px 12px;color:inherit}.pg-menu a.boundary-link,.pg-menu a.direction-link{position:relative}.pg-menu a.boundary-link:before,.pg-menu a.boundary-link:after,.pg-menu a.direction-link:before,.pg-menu a.direction-link:after{content:var(--pg-arrow-content);position:absolute;left:50%;top:calc(50% - var(--pg-arrow-size));border-top:var(--pg-arrow-size) solid transparent;border-bottom:var(--pg-arrow-size) solid transparent;border-left:var(--pg-arrow-size) solid var(--pg-arrow-color)}.pg-menu a.direction-link:before{display:none}.pg-menu a.direction-link:after{translate:-50% 0}.pg-menu a.boundary-link:before{translate:-100% 0}.pg-menu a.boundary-link.previous:before,.pg-menu a.boundary-link.previous:after,.pg-menu a.direction-link.previous:before,.pg-menu a.direction-link.previous:after{rotate:180deg}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
8257
8697
|
}
|
|
8258
8698
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: PaginationMenuComponent, decorators: [{
|
|
8259
8699
|
type: Component,
|
|
@@ -8269,9 +8709,82 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
8269
8709
|
}] } });
|
|
8270
8710
|
|
|
8271
8711
|
class DynamicTableComponent {
|
|
8712
|
+
element;
|
|
8713
|
+
dataLoader;
|
|
8714
|
+
data;
|
|
8715
|
+
selected;
|
|
8716
|
+
page;
|
|
8717
|
+
urlParam;
|
|
8718
|
+
parallelData;
|
|
8719
|
+
columns;
|
|
8720
|
+
/**
|
|
8721
|
+
* Parameter for displaying a simple filter search box
|
|
8722
|
+
*/
|
|
8723
|
+
showFilter;
|
|
8724
|
+
/**
|
|
8725
|
+
* Parameter for specifying a label for filter
|
|
8726
|
+
*/
|
|
8727
|
+
filterLabel;
|
|
8728
|
+
/**
|
|
8729
|
+
* Parameter for specifying a placeholder for filter
|
|
8730
|
+
*/
|
|
8731
|
+
placeholder;
|
|
8732
|
+
/**
|
|
8733
|
+
* Parameter for displaying an item per page selector dropdown with the specified numbers
|
|
8734
|
+
*/
|
|
8735
|
+
showItems;
|
|
8736
|
+
/**
|
|
8737
|
+
* Parameter for setting how many items should be displayed by default
|
|
8738
|
+
*/
|
|
8739
|
+
itemsPerPage;
|
|
8740
|
+
updateTime;
|
|
8741
|
+
filterTime;
|
|
8742
|
+
maxPages;
|
|
8743
|
+
directionLinks;
|
|
8744
|
+
boundaryLinks;
|
|
8745
|
+
orderBy;
|
|
8746
|
+
orderDescending;
|
|
8747
|
+
testId;
|
|
8748
|
+
titlePrefix;
|
|
8749
|
+
dragStartFn;
|
|
8750
|
+
dragEnterFn;
|
|
8751
|
+
dropFn;
|
|
8752
|
+
tableId;
|
|
8753
|
+
filter;
|
|
8754
|
+
query;
|
|
8755
|
+
hasQuery;
|
|
8756
|
+
columnDefs;
|
|
8757
|
+
cols;
|
|
8758
|
+
sortable;
|
|
8272
8759
|
get items() {
|
|
8273
8760
|
return !this.pagination ? [] : this.pagination.items;
|
|
8274
8761
|
}
|
|
8762
|
+
localData;
|
|
8763
|
+
subscription;
|
|
8764
|
+
rowTemplate;
|
|
8765
|
+
wrapperTemplate;
|
|
8766
|
+
columnsTemplate;
|
|
8767
|
+
defaultRowTemplate;
|
|
8768
|
+
defaultWrapperTemplate;
|
|
8769
|
+
pagination;
|
|
8770
|
+
globalTemplatePrefix = input("dynamic-table");
|
|
8771
|
+
fallbackTemplate = contentChild("fallbackTemplate");
|
|
8772
|
+
templateDirectives = contentChildren(DynamicTableTemplateDirective);
|
|
8773
|
+
templates = computed(() => {
|
|
8774
|
+
return (this.templateDirectives() || []).reduce((result, directive) => {
|
|
8775
|
+
if (ObjectUtils.isArray(directive.column)) {
|
|
8776
|
+
directive.column.forEach(column => {
|
|
8777
|
+
result[column] = directive;
|
|
8778
|
+
});
|
|
8779
|
+
return result;
|
|
8780
|
+
}
|
|
8781
|
+
if (!ObjectUtils.isStringWithValue(directive.column))
|
|
8782
|
+
return result;
|
|
8783
|
+
result[directive.column] = directive;
|
|
8784
|
+
return result;
|
|
8785
|
+
}, {});
|
|
8786
|
+
});
|
|
8787
|
+
onClick = output();
|
|
8275
8788
|
static compare(orderBy, a, b) {
|
|
8276
8789
|
a = a.item ? a.item[orderBy] : null;
|
|
8277
8790
|
b = b.item ? b.item[orderBy] : null;
|
|
@@ -8279,29 +8792,6 @@ class DynamicTableComponent {
|
|
|
8279
8792
|
}
|
|
8280
8793
|
constructor(element) {
|
|
8281
8794
|
this.element = element;
|
|
8282
|
-
this.globalTemplatePrefix = input("dynamic-table");
|
|
8283
|
-
this.fallbackTemplate = contentChild("fallbackTemplate");
|
|
8284
|
-
this.templateDirectives = contentChildren(DynamicTableTemplateDirective);
|
|
8285
|
-
this.templates = computed(() => {
|
|
8286
|
-
return (this.templateDirectives() || []).reduce((result, directive) => {
|
|
8287
|
-
if (ObjectUtils.isArray(directive.column)) {
|
|
8288
|
-
directive.column.forEach(column => {
|
|
8289
|
-
result[column] = directive;
|
|
8290
|
-
});
|
|
8291
|
-
return result;
|
|
8292
|
-
}
|
|
8293
|
-
if (!ObjectUtils.isStringWithValue(directive.column))
|
|
8294
|
-
return result;
|
|
8295
|
-
result[directive.column] = directive;
|
|
8296
|
-
return result;
|
|
8297
|
-
}, {});
|
|
8298
|
-
});
|
|
8299
|
-
this.onClick = output();
|
|
8300
|
-
this.loadData = async (page, itemsPerPage, controller) => {
|
|
8301
|
-
const orderBy = this.columnDefs[this.orderBy]?.sort;
|
|
8302
|
-
const dataLoader = this.dataLoader || this.loadLocalData;
|
|
8303
|
-
return dataLoader.call(this, page, itemsPerPage, orderBy, this.orderDescending, this.filter, this.query, controller);
|
|
8304
|
-
};
|
|
8305
8795
|
this.placeholder = "";
|
|
8306
8796
|
this.tableId = UniqueUtils.uuid();
|
|
8307
8797
|
this.orderBy = "";
|
|
@@ -8475,6 +8965,11 @@ class DynamicTableComponent {
|
|
|
8475
8965
|
this.itemsPerPage = count;
|
|
8476
8966
|
this.refresh();
|
|
8477
8967
|
}
|
|
8968
|
+
loadData = async (page, itemsPerPage, controller) => {
|
|
8969
|
+
const orderBy = this.columnDefs[this.orderBy]?.sort;
|
|
8970
|
+
const dataLoader = this.dataLoader || this.loadLocalData;
|
|
8971
|
+
return dataLoader.call(this, page, itemsPerPage, orderBy, this.orderDescending, this.filter, this.query, controller);
|
|
8972
|
+
};
|
|
8478
8973
|
async loadLocalData(page, rowsPerPage, orderBy, orderDescending, filter, query) {
|
|
8479
8974
|
if (!this.localData) {
|
|
8480
8975
|
return {
|
|
@@ -8531,8 +9026,8 @@ class DynamicTableComponent {
|
|
|
8531
9026
|
items: items
|
|
8532
9027
|
};
|
|
8533
9028
|
}
|
|
8534
|
-
static
|
|
8535
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.22", type: DynamicTableComponent, isStandalone: false, selector: "dynamic-table", inputs: { dataLoader: { classPropertyName: "dataLoader", publicName: "dataLoader", isSignal: false, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: false, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: false, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: false, isRequired: false, transformFunction: null }, urlParam: { classPropertyName: "urlParam", publicName: "urlParam", isSignal: false, isRequired: false, transformFunction: null }, parallelData: { classPropertyName: "parallelData", publicName: "parallelData", isSignal: false, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: false, isRequired: false, transformFunction: null }, showFilter: { classPropertyName: "showFilter", publicName: "showFilter", isSignal: false, isRequired: false, transformFunction: null }, filterLabel: { classPropertyName: "filterLabel", publicName: "filterLabel", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, showItems: { classPropertyName: "showItems", publicName: "showItems", isSignal: false, isRequired: false, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: false, isRequired: false, transformFunction: null }, updateTime: { classPropertyName: "updateTime", publicName: "updateTime", isSignal: false, isRequired: false, transformFunction: null }, filterTime: { classPropertyName: "filterTime", publicName: "filterTime", isSignal: false, isRequired: false, transformFunction: null }, maxPages: { classPropertyName: "maxPages", publicName: "maxPages", isSignal: false, isRequired: false, transformFunction: null }, directionLinks: { classPropertyName: "directionLinks", publicName: "directionLinks", isSignal: false, isRequired: false, transformFunction: null }, boundaryLinks: { classPropertyName: "boundaryLinks", publicName: "boundaryLinks", isSignal: false, isRequired: false, transformFunction: null }, orderBy: { classPropertyName: "orderBy", publicName: "orderBy", isSignal: false, isRequired: false, transformFunction: null }, orderDescending: { classPropertyName: "orderDescending", publicName: "orderDescending", isSignal: false, isRequired: false, transformFunction: null }, testId: { classPropertyName: "testId", publicName: "testId", isSignal: false, isRequired: false, transformFunction: null }, titlePrefix: { classPropertyName: "titlePrefix", publicName: "titlePrefix", isSignal: false, isRequired: false, transformFunction: null }, dragStartFn: { classPropertyName: "dragStartFn", publicName: "dragStartFn", isSignal: false, isRequired: false, transformFunction: null }, dragEnterFn: { classPropertyName: "dragEnterFn", publicName: "dragEnterFn", isSignal: false, isRequired: false, transformFunction: null }, dropFn: { classPropertyName: "dropFn", publicName: "dropFn", isSignal: false, isRequired: false, transformFunction: null }, globalTemplatePrefix: { classPropertyName: "globalTemplatePrefix", publicName: "globalTemplatePrefix", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick" }, queries: [{ propertyName: "fallbackTemplate", first: true, predicate: ["fallbackTemplate"], descendants: true, isSignal: true }, { propertyName: "templateDirectives", predicate: DynamicTableTemplateDirective, isSignal: true }, { propertyName: "rowTemplate", first: true, predicate: ["rowTemplate"], descendants: true, static: true }, { propertyName: "wrapperTemplate", first: true, predicate: ["wrapperTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "columnsTemplate", first: true, predicate: ["columnsTemplate"], descendants: true, static: true }, { propertyName: "defaultRowTemplate", first: true, predicate: ["defaultRowTemplate"], descendants: true, static: true }, { propertyName: "defaultWrapperTemplate", first: true, predicate: ["defaultWrapperTemplate"], descendants: true, static: true }, { propertyName: "pagination", first: true, predicate: ["pagination"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "@let columnTemplates = templates();\r\n@let prefix = globalTemplatePrefix();\r\n@let fallback = fallbackTemplate();\r\n\r\n<ng-template #defaultTemplate let-item=\"item\" let-column=\"column\" let-columnDef=\"columnDef\">\r\n <dynamic-table-cell [item]=\"item\"\r\n [column]=\"columnDef\"\r\n [id]=\"column\"\r\n [globalTemplatePrefix]=\"prefix\"\r\n [fallbackTemplate]=\"fallback\"></dynamic-table-cell>\r\n</ng-template>\r\n\r\n<ng-template #columnTemplate let-context let-column=\"column\" let-template=\"template\">\r\n @if (!template?.pure) {\r\n <td [ngClass]=\"'column-' + column\"\r\n [attr.data-testid]=\"testId + '-' + column + '-' + context.rowIndex\">\r\n <ng-container [ngxTemplateOutlet]=\"!template ? defaultTemplate : template.ref\"\r\n [context]=\"context\"></ng-container>\r\n </td>\r\n } @else {\r\n <ng-container [ngxTemplateOutlet]=\"template.ref\" [context]=\"context\"></ng-container>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #columnsTemplate let-context>\r\n <ng-container *ngFor=\"let column of cols\"\r\n [ngxTemplateOutlet]=\"columnTemplate\"\r\n [context]=\"context\"\r\n [additionalContext]=\"{\r\n template: columnTemplates[column],\r\n column: column,\r\n columnDef: columnDefs[column]\r\n }\"></ng-container>\r\n</ng-template>\r\n\r\n<ng-template #defaultRowTemplate let-context>\r\n <tr #elem\r\n [draggable]=\"!!dragStartFn\"\r\n [ngClass]=\"{active: selected === context.item}\"\r\n (dragstart)=\"onDragStart($event, elem, context.item)\"\r\n (dragenter)=\"onDragEnter($event, elem, context.item)\"\r\n (dragleave)=\"onDragLeave($event, elem)\"\r\n (drop)=\"onDrop($event, elem, context.item)\"\r\n (click)=\"onClick.emit(context.item)\">\r\n <ng-container [ngxTemplateOutlet]=\"columnsTemplate\"\r\n [context]=\"context\"></ng-container>\r\n </tr>\r\n</ng-template>\r\n\r\n<ng-template #headerTemplate let-column=\"column\" let-toggle=\"toggle\">\r\n <ng-template #defaultCol>\r\n <span>{{ columnDefs[column].title | translate }}</span>\r\n </ng-template>\r\n <ng-template #emptyCol>\r\n <span>-</span>\r\n </ng-template>\r\n <ng-container *ngIf=\"columnDefs[column]; else emptyCol\">\r\n <a *ngIf=\"columnDefs[column].sort; else defaultCol\"\r\n [ngClass]=\"['sort', orderBy !== column ? '' : (orderDescending ? 'sort-desc' : 'sort-asc')]\"\r\n (click)=\"setSorting(column, toggle)\">\r\n <span>{{ columnDefs[column].title | translate }}</span>\r\n </a>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<div class=\"dynamic-table\">\r\n <div class=\"table-features-row\">\r\n <ng-content select=\"[table-features-before]\"></ng-content>\r\n @if (showFilter) {\r\n <div class=\"table-input-wrap table-search-filter\">\r\n <label *ngIf=\"filterLabel\" [attr.for]=\"tableId\">\r\n {{ filterLabel | translate }}\r\n </label>\r\n <input type=\"text\"\r\n class=\"search-input\"\r\n [attr.id]=\"tableId\"\r\n [attr.data-testid]=\"testId + '-filter-input'\"\r\n [placeholder]=\"placeholder | translate\"\r\n [ngModel]=\"filter\"\r\n (ngModelChange)=\"setFilter($event)\"/>\r\n </div>\r\n }\r\n @if (sortable) {\r\n <dropdown-box componentClass=\"sort-dropdown\" #sortDd>\r\n <ng-container toggle-content\r\n [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{column: orderBy, toggle: sortDd}\"></ng-container>\r\n <ul>\r\n <ng-container *ngFor=\"let column of cols\">\r\n <li [ngClass]=\"'sort-column sort-' + column\" *ngIf=\"columnDefs[column].sort\">\r\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{column: column}\"></ng-container>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </dropdown-box>\r\n }\r\n @if (showItems) {\r\n <div class=\"table-input-wrap table-items-count\">\r\n <label>\r\n {{ 'label.items.before' | translate }}\r\n </label>\r\n <dropdown-box>\r\n <ng-container toggle-content>\r\n {{ itemsPerPage }}\r\n </ng-container>\r\n <ul>\r\n <ng-container *ngFor=\"let count of showItems\">\r\n <li [ngClass]=\"'item-count count-' + count\" (click)=\"setItemsPerPage(count)\">\r\n {{ count }}\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </dropdown-box>\r\n <label>\r\n {{ 'label.items.after' | translate }}\r\n </label>\r\n </div>\r\n }\r\n <ng-content select=\"[table-features-after]\"></ng-content>\r\n </div>\r\n <div class=\"table-content-row\"\r\n #pagination=\"pagination\"\r\n [pagination]=\"loadData\"\r\n [page]=\"page\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n [updateTime]=\"updateTime\">\r\n <pagination-menu [urlParam]=\"urlParam\" [maxSize]=\"maxPages\" [directionLinks]=\"directionLinks\"\r\n [boundaryLinks]=\"boundaryLinks\"></pagination-menu>\r\n <div class=\"table-responsive\">\r\n <ng-template #defaultWrapperTemplate>\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of cols\" [ngClass]=\"'header-column column-' + column\">\r\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{column: column}\"></ng-container>\r\n </th>\r\n </tr>\r\n <tr *ngIf=\"hasQuery\">\r\n @for (column of cols; track column) {\r\n @let columnDef = columnDefs[column];\r\n <th [ngClass]=\"['column-' + column, 'filter-column', 'filter-column-' + columnDef.filterType]\">\r\n @if (columnDef.filter) {\r\n @switch (columnDef.filterType) {\r\n @case ('enum') {\r\n @let optionPrefix = columnDefs[column].enumPrefix || column;\r\n <ng-template #optionItem let-option=\"option\">\r\n <span [ngClass]=\"`table-enum enum-${optionPrefix} enum-value-${option}`\">\r\n <span>{{ `${optionPrefix}.${option}` | translate }}</span>\r\n </span>\r\n </ng-template>\r\n <dropdown-box componentClass=\"filter-box\"\r\n [ngClass]=\"'filter-box-' + column\"\r\n [closeInside]=\"false\">\r\n <ng-container toggle-content>\r\n <span class=\"toggle-placeholder\" *ngIf=\"!query[column]\">\r\n {{ columnDefs[column].title | translate }}\r\n </span>\r\n <span [ngClass]=\"['option-' + option, column + '-option-' + option, option]\"\r\n *ngFor=\"let option of query[column] | values; let ix = index\">\r\n <ng-container *ngIf=\"ix > 0\"> | </ng-container>\r\n <ng-container [ngTemplateOutlet]=\"optionItem\"\r\n [ngTemplateOutletContext]=\"{option: option}\"></ng-container>\r\n </span>\r\n </ng-container>\r\n <ul>\r\n @for (option of columnDefs[column].enum; track option) {\r\n <li (click)=\"setQueryValue(column, option)\">\r\n <a class=\"toggle-link\" [ngClass]=\"'toggle-link-' + column\">\r\n <input type=\"checkbox\" [checked]=\"query[column] | includes: option\">\r\n <ng-container [ngTemplateOutlet]=\"optionItem\"\r\n [ngTemplateOutletContext]=\"{option: option}\"></ng-container>\r\n </a>\r\n </li>\r\n }\r\n </ul>\r\n </dropdown-box>\r\n }\r\n @case ('checkbox') {\r\n <input type=\"checkbox\"\r\n class=\"table-checkbox\"\r\n [attr.data-testid]=\"testId + '-filter-' + column\"\r\n [placeholder]=\"columnDefs[column].title | translate\"\r\n [checked]=\"query[column] === true\"\r\n [indeterminate]=\"query[column] === undefined\"\r\n (click)=\"setQueryValue(column)\"/>\r\n }\r\n @default {\r\n <input class=\"search-input\"\r\n type=\"text\"\r\n [attr.data-testid]=\"testId + '-filter-' + column\"\r\n [placeholder]=\"columnDefs[column].title | translate\"\r\n [ngModel]=\"query[column]\"\r\n (ngModelChange)=\"setQueryValue(column, $event)\"/>\r\n }\r\n }\r\n }\r\n </th>\r\n }\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *paginationItem=\"let context\"\r\n [ngxTemplateOutlet]=\"rowTemplate\"\r\n [context]=\"context\"\r\n [additionalContext]=\"this\"></ng-container>\r\n <tr>\r\n <!-- Just an anchor/helper row for the loading state -->\r\n <td colspan=\"100%\"></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-template>\r\n\r\n <div class=\"table-wrapper\">\r\n <ng-content select=\"[table-top]\"></ng-content>\r\n <ng-container [ngxTemplateOutlet]=\"wrapperTemplate || defaultWrapperTemplate\"\r\n [context]=\"this\"></ng-container>\r\n <ng-content select=\"[table-bottom]\"></ng-content>\r\n </div>\r\n </div>\r\n <pagination-menu [urlParam]=\"urlParam\" [maxSize]=\"maxPages\" [directionLinks]=\"directionLinks\"\r\n [boundaryLinks]=\"boundaryLinks\"></pagination-menu>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";@keyframes table-load-spin{to{rotate:360deg}}.dynamic-table{--table-bg: transparent;--table-stripe-bg: rgba(210, 210, 210, .35);--border-size: 1px;--border-color: #ced4da;--bg-color: #ffffff;--text-color: #151515;--highlight-color: var(--primary-color, #888888);--highlight-text-color: #ffffff;--display-toggle: none;--arrow-size: 6px;--arrow-rotation: 90;--arrow-space: calc(var(--arrow-size) * .5 + 1px);--arrow-color: #c6c6c6}.dynamic-table *{box-sizing:border-box}.dynamic-table div.table-enum,.dynamic-table div.table-checkbox{text-align:center}.dynamic-table .search-input{background:var(--bg-color);color:var(--text-color);border:var(--border-size) solid var(--border-color);padding:var(--element-padding, 6px 12px);border-radius:5px;-webkit-user-select:none;user-select:none;font-weight:400;font-size:var(--table-input-font-size, 15px);line-height:var(--table-input-line-height, 18px);outline:none}.dynamic-table .search-input .toggle-placeholder,.dynamic-table .search-input ::placeholder{color:#495057}.dynamic-table .table-responsive{border:1px solid var(--border-color);overflow:hidden;overflow-x:auto;margin-bottom:1rem}.dynamic-table .table-features-row:not(:empty){display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:20px}.dynamic-table .table-content-row,.dynamic-table .table-content-row tbody{position:relative}.dynamic-table .table-content-row tbody tr:last-child td:first-child{padding:0;border-bottom-width:0}.dynamic-table .table-content-row.loading tbody{height:50px}.dynamic-table .table-content-row.loading tbody tr:last-child td:first-child:before{content:\"\";display:table-row;position:absolute;inset:1px;background-color:#32323240;z-index:1}.dynamic-table .table-content-row.loading tbody tr:last-child td:first-child:after{content:\"\";display:table-row;position:absolute;width:25px;height:25px;border:3px solid rgba(255,255,255,.75);border-radius:50%;border-left-color:transparent;border-right-color:transparent;animation:table-load-spin 575ms infinite linear;vertical-align:middle;margin-right:5px;top:50%;left:50%;translate:-50% -50%;z-index:2}.dynamic-table .sort-dropdown{display:none}.dynamic-table .table-input-wrap{display:flex;align-items:center;flex:1;gap:5px}.dynamic-table .table-input-wrap>label{margin:0;font-weight:700}.dynamic-table .table-input-wrap>input{width:300px;max-width:90%}.dynamic-table .table-items-count{flex:1}.dynamic-table .table-wrapper{position:relative}.dynamic-table table.table{border-collapse:collapse;margin:0;width:100%;font-family:inherit;font-size:inherit}.dynamic-table table.table th{text-align:left}.dynamic-table table.table th,.dynamic-table table.table td{text-align:left;padding:6px 12px;border:1px solid var(--border-color);vertical-align:middle;white-space:nowrap;width:var(--cell-width, 25%);min-width:fit-content}.dynamic-table table.table-sm th,.dynamic-table table.table-sm td{font-size:var(--font-size-sm);padding:4px 6px}.dynamic-table table.table thead th{font-weight:500}.dynamic-table table.table thead th .dropdown-box{display:block;width:100%;text-align:left}.dynamic-table table.table thead th .search-input{width:100%;padding:7px 12px}.dynamic-table table.table thead th span{display:inline-block;vertical-align:top}.dynamic-table table.table thead th a{cursor:pointer;text-align:left}.dynamic-table table.table thead th.filter-column{text-align:center}.dynamic-table table.table thead tr:first-child th{border-top-width:0}.dynamic-table table.table tbody tr:last-child td{border-top-width:0}.dynamic-table table.table tbody tr:last-child td,.dynamic-table table.table tbody tr:nth-last-child(2) td{border-bottom-width:0}.dynamic-table table.table thead tr th,.dynamic-table table.table tbody tr td{background-color:var(--table-bg)}.dynamic-table table.table thead tr th:first-child,.dynamic-table table.table tbody tr td:first-child{border-left-width:0}.dynamic-table table.table thead tr th:last-child,.dynamic-table table.table tbody tr td:last-child{border-right-width:0}.dynamic-table table.table tbody tr.active td{background-color:var(--highlight-color);color:var(--highlight-text-color)}.dynamic-table .table-striped>tbody>tr:nth-of-type(odd) td{background-color:var(--table-stripe-bg)}.dynamic-table .table-striped>tbody>tr:nth-of-type(odd).active td{background-color:var(--highlight-color);color:var(--highlight-text-color)}.sort-dropdown .dropdown-box-toggle a.dropdown-box-toggle-link{margin-right:0;padding-right:0}.sort-dropdown .dropdown-box-toggle a.dropdown-box-toggle-link:after{display:none}.sort-dropdown-content-wrapper a.sort,.dynamic-table a.sort{position:relative;display:block;margin-right:calc(var(--arrow-size) * 2);-webkit-user-select:none;user-select:none;padding-right:5px}.sort-dropdown-content-wrapper a.sort:before,.sort-dropdown-content-wrapper a.sort:after,.dynamic-table a.sort:before,.dynamic-table a.sort:after{content:\"\";position:absolute;transition:.2s ease;left:calc(100% + var(--arrow-size));top:calc(50% - var(--arrow-size));border-top:var(--arrow-size) solid transparent;border-bottom:var(--arrow-size) solid transparent;border-left:var(--arrow-size) solid var(--arrow-color);transform:rotate(calc(var(--arrow-rotation) * 1deg)) translate(var(--arrow-space))}.sort-dropdown-content-wrapper a.sort:before,.dynamic-table a.sort:before{--arrow-rotation: -90}.sort-dropdown-content-wrapper a.sort.sort-desc:before,.dynamic-table a.sort.sort-desc:before{--arrow-color: black}.sort-dropdown-content-wrapper a.sort.sort-asc:after,.dynamic-table a.sort.sort-asc:after{--arrow-color: black}.table-enum{--enum-color: #c6c6c6;--enum-radius: 5px}.table-enum span{display:inline-block;padding:2px 5px;background:color-mix(in srgb,var(--enum-color),rgba(255,255,255,.4666666667) 50%);color:color-mix(in srgb,var(--enum-color),#000 70%);border:1px solid var(--enum-color);border-radius:var(--enum-radius);-webkit-user-select:none;user-select:none}input.table-checkbox{appearance:none;cursor:pointer;width:16px;height:16px;border:1px solid black;border-radius:3px;background-color:#fff;position:relative;font-size:11px;line-height:11px;vertical-align:middle}input.table-checkbox:focus{outline:none}input.table-checkbox:focus-visible{outline:2px solid #acacac;outline-offset:0}input.table-checkbox:after{position:absolute;content:\"\\2716\\fe0e\";text-align:center;width:100%;height:100%}input.table-checkbox:checked:after{content:\"\\2714\\fe0e\"}input.table-checkbox:indeterminate:after{content:\"\\2501\"}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgxTemplateOutletDirective, selector: "[ngxTemplateOutlet]", inputs: ["context", "additionalContext", "ngxTemplateOutlet"] }, { kind: "directive", type: PaginationDirective, selector: "[pagination]", inputs: ["pagination", "page", "itemsPerPage", "updateTime", "waitFor"], outputs: ["pageChange", "onRefresh"], exportAs: ["pagination"] }, { kind: "directive", type: PaginationItemDirective, selector: "[paginationItem]" }, { kind: "component", type: DropdownBoxComponent, selector: "dropdown-box", inputs: ["closeInside", "attachTo", "placement", "crossAxis", "alignment", "autoAlignment", "allowedPlacements", "componentClass"] }, { kind: "component", type: DynamicTableCellComponent, selector: "dynamic-table-cell", inputs: ["item", "column", "id", "globalTemplatePrefix", "fallbackTemplate"] }, { kind: "component", type: PaginationMenuComponent, selector: "pagination-menu", inputs: ["maxSize", "urlParam", "directionLinks", "boundaryLinks"] }, { kind: "pipe", type: IncludesPipe, name: "includes" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: ValuesPipe, name: "values" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9029
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DynamicTableComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9030
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.22", type: DynamicTableComponent, isStandalone: false, selector: "dynamic-table", inputs: { dataLoader: { classPropertyName: "dataLoader", publicName: "dataLoader", isSignal: false, isRequired: false, transformFunction: null }, data: { classPropertyName: "data", publicName: "data", isSignal: false, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: false, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: false, isRequired: false, transformFunction: null }, urlParam: { classPropertyName: "urlParam", publicName: "urlParam", isSignal: false, isRequired: false, transformFunction: null }, parallelData: { classPropertyName: "parallelData", publicName: "parallelData", isSignal: false, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: false, isRequired: false, transformFunction: null }, showFilter: { classPropertyName: "showFilter", publicName: "showFilter", isSignal: false, isRequired: false, transformFunction: null }, filterLabel: { classPropertyName: "filterLabel", publicName: "filterLabel", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, showItems: { classPropertyName: "showItems", publicName: "showItems", isSignal: false, isRequired: false, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: false, isRequired: false, transformFunction: null }, updateTime: { classPropertyName: "updateTime", publicName: "updateTime", isSignal: false, isRequired: false, transformFunction: null }, filterTime: { classPropertyName: "filterTime", publicName: "filterTime", isSignal: false, isRequired: false, transformFunction: null }, maxPages: { classPropertyName: "maxPages", publicName: "maxPages", isSignal: false, isRequired: false, transformFunction: null }, directionLinks: { classPropertyName: "directionLinks", publicName: "directionLinks", isSignal: false, isRequired: false, transformFunction: null }, boundaryLinks: { classPropertyName: "boundaryLinks", publicName: "boundaryLinks", isSignal: false, isRequired: false, transformFunction: null }, orderBy: { classPropertyName: "orderBy", publicName: "orderBy", isSignal: false, isRequired: false, transformFunction: null }, orderDescending: { classPropertyName: "orderDescending", publicName: "orderDescending", isSignal: false, isRequired: false, transformFunction: null }, testId: { classPropertyName: "testId", publicName: "testId", isSignal: false, isRequired: false, transformFunction: null }, titlePrefix: { classPropertyName: "titlePrefix", publicName: "titlePrefix", isSignal: false, isRequired: false, transformFunction: null }, dragStartFn: { classPropertyName: "dragStartFn", publicName: "dragStartFn", isSignal: false, isRequired: false, transformFunction: null }, dragEnterFn: { classPropertyName: "dragEnterFn", publicName: "dragEnterFn", isSignal: false, isRequired: false, transformFunction: null }, dropFn: { classPropertyName: "dropFn", publicName: "dropFn", isSignal: false, isRequired: false, transformFunction: null }, globalTemplatePrefix: { classPropertyName: "globalTemplatePrefix", publicName: "globalTemplatePrefix", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onClick: "onClick" }, queries: [{ propertyName: "fallbackTemplate", first: true, predicate: ["fallbackTemplate"], descendants: true, isSignal: true }, { propertyName: "templateDirectives", predicate: DynamicTableTemplateDirective, isSignal: true }, { propertyName: "rowTemplate", first: true, predicate: ["rowTemplate"], descendants: true, static: true }, { propertyName: "wrapperTemplate", first: true, predicate: ["wrapperTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "columnsTemplate", first: true, predicate: ["columnsTemplate"], descendants: true, static: true }, { propertyName: "defaultRowTemplate", first: true, predicate: ["defaultRowTemplate"], descendants: true, static: true }, { propertyName: "defaultWrapperTemplate", first: true, predicate: ["defaultWrapperTemplate"], descendants: true, static: true }, { propertyName: "pagination", first: true, predicate: ["pagination"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "@let columnTemplates = templates();\r\n@let prefix = globalTemplatePrefix();\r\n@let fallback = fallbackTemplate();\r\n\r\n<ng-template #defaultTemplate let-item=\"item\" let-column=\"column\" let-columnDef=\"columnDef\">\r\n <dynamic-table-cell [item]=\"item\"\r\n [column]=\"columnDef\"\r\n [id]=\"column\"\r\n [globalTemplatePrefix]=\"prefix\"\r\n [fallbackTemplate]=\"fallback\"></dynamic-table-cell>\r\n</ng-template>\r\n\r\n<ng-template #columnTemplate let-context let-column=\"column\" let-template=\"template\">\r\n @if (!template?.pure) {\r\n <td [ngClass]=\"'column-' + column\"\r\n [attr.data-testid]=\"testId + '-' + column + '-' + context.rowIndex\">\r\n <ng-container [ngxTemplateOutlet]=\"!template ? defaultTemplate : template.ref\"\r\n [context]=\"context\"></ng-container>\r\n </td>\r\n } @else {\r\n <ng-container [ngxTemplateOutlet]=\"template.ref\" [context]=\"context\"></ng-container>\r\n }\r\n</ng-template>\r\n\r\n<ng-template #columnsTemplate let-context>\r\n <ng-container *ngFor=\"let column of cols\"\r\n [ngxTemplateOutlet]=\"columnTemplate\"\r\n [context]=\"context\"\r\n [additionalContext]=\"{\r\n template: columnTemplates[column],\r\n column: column,\r\n columnDef: columnDefs[column]\r\n }\"></ng-container>\r\n</ng-template>\r\n\r\n<ng-template #defaultRowTemplate let-context>\r\n <tr #elem\r\n [draggable]=\"!!dragStartFn\"\r\n [ngClass]=\"{active: selected === context.item}\"\r\n (dragstart)=\"onDragStart($event, elem, context.item)\"\r\n (dragenter)=\"onDragEnter($event, elem, context.item)\"\r\n (dragleave)=\"onDragLeave($event, elem)\"\r\n (drop)=\"onDrop($event, elem, context.item)\"\r\n (click)=\"onClick.emit(context.item)\">\r\n <ng-container [ngxTemplateOutlet]=\"columnsTemplate\"\r\n [context]=\"context\"></ng-container>\r\n </tr>\r\n</ng-template>\r\n\r\n<ng-template #headerTemplate let-column=\"column\" let-toggle=\"toggle\">\r\n <ng-template #defaultCol>\r\n <span>{{ columnDefs[column].title | translate }}</span>\r\n </ng-template>\r\n <ng-template #emptyCol>\r\n <span>-</span>\r\n </ng-template>\r\n <ng-container *ngIf=\"columnDefs[column]; else emptyCol\">\r\n <a *ngIf=\"columnDefs[column].sort; else defaultCol\"\r\n [ngClass]=\"['sort', orderBy !== column ? '' : (orderDescending ? 'sort-desc' : 'sort-asc')]\"\r\n (click)=\"setSorting(column, toggle)\">\r\n <span>{{ columnDefs[column].title | translate }}</span>\r\n </a>\r\n </ng-container>\r\n</ng-template>\r\n\r\n<div class=\"dynamic-table\">\r\n <div class=\"table-features-row\">\r\n <ng-content select=\"[table-features-before]\"></ng-content>\r\n @if (showFilter) {\r\n <div class=\"table-input-wrap table-search-filter\">\r\n <label *ngIf=\"filterLabel\" [attr.for]=\"tableId\">\r\n {{ filterLabel | translate }}\r\n </label>\r\n <input type=\"text\"\r\n class=\"search-input\"\r\n [attr.id]=\"tableId\"\r\n [attr.data-testid]=\"testId + '-filter-input'\"\r\n [placeholder]=\"placeholder | translate\"\r\n [ngModel]=\"filter\"\r\n (ngModelChange)=\"setFilter($event)\"/>\r\n </div>\r\n }\r\n @if (sortable) {\r\n <dropdown-box componentClass=\"sort-dropdown\" #sortDd>\r\n <ng-container toggle-content\r\n [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{column: orderBy, toggle: sortDd}\"></ng-container>\r\n <ul>\r\n <ng-container *ngFor=\"let column of cols\">\r\n <li [ngClass]=\"'sort-column sort-' + column\" *ngIf=\"columnDefs[column].sort\">\r\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{column: column}\"></ng-container>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </dropdown-box>\r\n }\r\n @if (showItems) {\r\n <div class=\"table-input-wrap table-items-count\">\r\n <label>\r\n {{ 'label.items.before' | translate }}\r\n </label>\r\n <dropdown-box>\r\n <ng-container toggle-content>\r\n {{ itemsPerPage }}\r\n </ng-container>\r\n <ul>\r\n <ng-container *ngFor=\"let count of showItems\">\r\n <li [ngClass]=\"'item-count count-' + count\" (click)=\"setItemsPerPage(count)\">\r\n {{ count }}\r\n </li>\r\n </ng-container>\r\n </ul>\r\n </dropdown-box>\r\n <label>\r\n {{ 'label.items.after' | translate }}\r\n </label>\r\n </div>\r\n }\r\n <ng-content select=\"[table-features-after]\"></ng-content>\r\n </div>\r\n <div class=\"table-content-row\"\r\n #pagination=\"pagination\"\r\n [pagination]=\"loadData\"\r\n [page]=\"page\"\r\n [itemsPerPage]=\"itemsPerPage\"\r\n [updateTime]=\"updateTime\">\r\n <pagination-menu [urlParam]=\"urlParam\" [maxSize]=\"maxPages\" [directionLinks]=\"directionLinks\"\r\n [boundaryLinks]=\"boundaryLinks\"></pagination-menu>\r\n <div class=\"table-responsive\">\r\n <ng-template #defaultWrapperTemplate>\r\n <table class=\"table table-striped\">\r\n <thead>\r\n <tr>\r\n <th *ngFor=\"let column of cols\" [ngClass]=\"'header-column column-' + column\">\r\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{column: column}\"></ng-container>\r\n </th>\r\n </tr>\r\n <tr *ngIf=\"hasQuery\">\r\n @for (column of cols; track column) {\r\n @let columnDef = columnDefs[column];\r\n <th [ngClass]=\"['column-' + column, 'filter-column', 'filter-column-' + columnDef.filterType]\">\r\n @if (columnDef.filter) {\r\n @switch (columnDef.filterType) {\r\n @case ('enum') {\r\n @let optionPrefix = columnDefs[column].enumPrefix || column;\r\n <ng-template #optionItem let-option=\"option\">\r\n <span [ngClass]=\"`table-enum enum-${optionPrefix} enum-value-${option}`\">\r\n <span>{{ `${optionPrefix}.${option}` | translate }}</span>\r\n </span>\r\n </ng-template>\r\n <dropdown-box componentClass=\"filter-box\"\r\n [ngClass]=\"'filter-box-' + column\"\r\n [closeInside]=\"false\">\r\n <ng-container toggle-content>\r\n <span class=\"toggle-placeholder\" *ngIf=\"!query[column]\">\r\n {{ columnDefs[column].title | translate }}\r\n </span>\r\n <span [ngClass]=\"['option-' + option, column + '-option-' + option, option]\"\r\n *ngFor=\"let option of query[column] | values; let ix = index\">\r\n <ng-container *ngIf=\"ix > 0\"> | </ng-container>\r\n <ng-container [ngTemplateOutlet]=\"optionItem\"\r\n [ngTemplateOutletContext]=\"{option: option}\"></ng-container>\r\n </span>\r\n </ng-container>\r\n <ul>\r\n @for (option of columnDefs[column].enum; track option) {\r\n <li (click)=\"setQueryValue(column, option)\">\r\n <a class=\"toggle-link\" [ngClass]=\"'toggle-link-' + column\">\r\n <input type=\"checkbox\" [checked]=\"query[column] | includes: option\">\r\n <ng-container [ngTemplateOutlet]=\"optionItem\"\r\n [ngTemplateOutletContext]=\"{option: option}\"></ng-container>\r\n </a>\r\n </li>\r\n }\r\n </ul>\r\n </dropdown-box>\r\n }\r\n @case ('checkbox') {\r\n <input type=\"checkbox\"\r\n class=\"table-checkbox\"\r\n [attr.data-testid]=\"testId + '-filter-' + column\"\r\n [placeholder]=\"columnDefs[column].title | translate\"\r\n [checked]=\"query[column] === true\"\r\n [indeterminate]=\"query[column] === undefined\"\r\n (click)=\"setQueryValue(column)\"/>\r\n }\r\n @default {\r\n <input class=\"search-input\"\r\n type=\"text\"\r\n [attr.data-testid]=\"testId + '-filter-' + column\"\r\n [placeholder]=\"columnDefs[column].title | translate\"\r\n [ngModel]=\"query[column]\"\r\n (ngModelChange)=\"setQueryValue(column, $event)\"/>\r\n }\r\n }\r\n }\r\n </th>\r\n }\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <ng-container *paginationItem=\"let context\"\r\n [ngxTemplateOutlet]=\"rowTemplate\"\r\n [context]=\"context\"\r\n [additionalContext]=\"this\"></ng-container>\r\n <tr>\r\n <!-- Just an anchor/helper row for the loading state -->\r\n <td colspan=\"100%\"></td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-template>\r\n\r\n <div class=\"table-wrapper\">\r\n <ng-content select=\"[table-top]\"></ng-content>\r\n <ng-container [ngxTemplateOutlet]=\"wrapperTemplate || defaultWrapperTemplate\"\r\n [context]=\"this\"></ng-container>\r\n <ng-content select=\"[table-bottom]\"></ng-content>\r\n </div>\r\n </div>\r\n <pagination-menu [urlParam]=\"urlParam\" [maxSize]=\"maxPages\" [directionLinks]=\"directionLinks\"\r\n [boundaryLinks]=\"boundaryLinks\"></pagination-menu>\r\n </div>\r\n</div>\r\n", styles: ["@charset \"UTF-8\";@keyframes table-load-spin{to{rotate:360deg}}.dynamic-table{--table-bg: transparent;--table-stripe-bg: rgba(210, 210, 210, .35);--border-size: 1px;--border-color: #ced4da;--bg-color: #ffffff;--text-color: #151515;--highlight-color: var(--primary-color, #888888);--highlight-text-color: #ffffff;--display-toggle: none;--arrow-size: 6px;--arrow-rotation: 90;--arrow-space: calc(var(--arrow-size) * .5 + 1px);--arrow-color: #c6c6c6}.dynamic-table *{box-sizing:border-box}.dynamic-table div.table-enum,.dynamic-table div.table-checkbox{text-align:center}.dynamic-table .search-input{background:var(--bg-color);color:var(--text-color);border:var(--border-size) solid var(--border-color);padding:var(--element-padding, 6px 12px);border-radius:5px;-webkit-user-select:none;user-select:none;font-weight:400;font-size:var(--table-input-font-size, 15px);line-height:var(--table-input-line-height, 18px);outline:none}.dynamic-table .search-input .toggle-placeholder,.dynamic-table .search-input ::placeholder{color:#495057}.dynamic-table .table-responsive{border:1px solid var(--border-color);overflow:hidden;overflow-x:auto;margin-bottom:1rem}.dynamic-table .table-features-row:not(:empty){display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:20px}.dynamic-table .table-content-row,.dynamic-table .table-content-row tbody{position:relative}.dynamic-table .table-content-row tbody tr:last-child td:first-child{padding:0;border-bottom-width:0}.dynamic-table .table-content-row.loading tbody{height:50px}.dynamic-table .table-content-row.loading tbody tr:last-child td:first-child:before{content:\"\";display:table-row;position:absolute;inset:1px;background-color:#32323240;z-index:1}.dynamic-table .table-content-row.loading tbody tr:last-child td:first-child:after{content:\"\";display:table-row;position:absolute;width:25px;height:25px;border:3px solid rgba(255,255,255,.75);border-radius:50%;border-left-color:transparent;border-right-color:transparent;animation:table-load-spin 575ms infinite linear;vertical-align:middle;margin-right:5px;top:50%;left:50%;translate:-50% -50%;z-index:2}.dynamic-table .sort-dropdown{display:none}.dynamic-table .table-input-wrap{display:flex;align-items:center;flex:1;gap:5px}.dynamic-table .table-input-wrap>label{margin:0;font-weight:700}.dynamic-table .table-input-wrap>input{width:300px;max-width:90%}.dynamic-table .table-items-count{flex:1}.dynamic-table .table-wrapper{position:relative}.dynamic-table table.table{border-collapse:collapse;margin:0;width:100%;font-family:inherit;font-size:inherit}.dynamic-table table.table th{text-align:left}.dynamic-table table.table th,.dynamic-table table.table td{text-align:left;padding:6px 12px;border:1px solid var(--border-color);vertical-align:middle;white-space:nowrap;width:var(--cell-width, 25%);min-width:fit-content}.dynamic-table table.table-sm th,.dynamic-table table.table-sm td{font-size:var(--font-size-sm);padding:4px 6px}.dynamic-table table.table thead th{font-weight:500}.dynamic-table table.table thead th .dropdown-box{display:block;width:100%;text-align:left}.dynamic-table table.table thead th .search-input{width:100%;padding:7px 12px}.dynamic-table table.table thead th span{display:inline-block;vertical-align:top}.dynamic-table table.table thead th a{cursor:pointer;text-align:left}.dynamic-table table.table thead th.filter-column{text-align:center}.dynamic-table table.table thead tr:first-child th{border-top-width:0}.dynamic-table table.table tbody tr:last-child td{border-top-width:0}.dynamic-table table.table tbody tr:last-child td,.dynamic-table table.table tbody tr:nth-last-child(2) td{border-bottom-width:0}.dynamic-table table.table thead tr th,.dynamic-table table.table tbody tr td{background-color:var(--table-bg)}.dynamic-table table.table thead tr th:first-child,.dynamic-table table.table tbody tr td:first-child{border-left-width:0}.dynamic-table table.table thead tr th:last-child,.dynamic-table table.table tbody tr td:last-child{border-right-width:0}.dynamic-table table.table tbody tr.active td{background-color:var(--highlight-color);color:var(--highlight-text-color)}.dynamic-table .table-striped>tbody>tr:nth-of-type(odd) td{background-color:var(--table-stripe-bg)}.dynamic-table .table-striped>tbody>tr:nth-of-type(odd).active td{background-color:var(--highlight-color);color:var(--highlight-text-color)}.sort-dropdown .dropdown-box-toggle a.dropdown-box-toggle-link{margin-right:0;padding-right:0}.sort-dropdown .dropdown-box-toggle a.dropdown-box-toggle-link:after{display:none}.sort-dropdown-content-wrapper a.sort,.dynamic-table a.sort{position:relative;display:block;margin-right:calc(var(--arrow-size) * 2);-webkit-user-select:none;user-select:none;padding-right:5px}.sort-dropdown-content-wrapper a.sort:before,.sort-dropdown-content-wrapper a.sort:after,.dynamic-table a.sort:before,.dynamic-table a.sort:after{content:\"\";position:absolute;transition:.2s ease;left:calc(100% + var(--arrow-size));top:calc(50% - var(--arrow-size));border-top:var(--arrow-size) solid transparent;border-bottom:var(--arrow-size) solid transparent;border-left:var(--arrow-size) solid var(--arrow-color);transform:rotate(calc(var(--arrow-rotation) * 1deg)) translate(var(--arrow-space))}.sort-dropdown-content-wrapper a.sort:before,.dynamic-table a.sort:before{--arrow-rotation: -90}.sort-dropdown-content-wrapper a.sort.sort-desc:before,.dynamic-table a.sort.sort-desc:before{--arrow-color: black}.sort-dropdown-content-wrapper a.sort.sort-asc:after,.dynamic-table a.sort.sort-asc:after{--arrow-color: black}.table-enum{--enum-color: #c6c6c6;--enum-radius: 5px}.table-enum span{display:inline-block;padding:2px 5px;background:color-mix(in srgb,var(--enum-color),rgba(255,255,255,.4666666667) 50%);color:color-mix(in srgb,var(--enum-color),#000 70%);border:1px solid var(--enum-color);border-radius:var(--enum-radius);-webkit-user-select:none;user-select:none}input.table-checkbox{appearance:none;cursor:pointer;width:16px;height:16px;border:1px solid black;border-radius:3px;background-color:#fff;position:relative;font-size:11px;line-height:11px;vertical-align:middle}input.table-checkbox:focus{outline:none}input.table-checkbox:focus-visible{outline:2px solid #acacac;outline-offset:0}input.table-checkbox:after{position:absolute;content:\"\\2716\\fe0e\";text-align:center;width:100%;height:100%}input.table-checkbox:checked:after{content:\"\\2714\\fe0e\"}input.table-checkbox:indeterminate:after{content:\"\\2501\"}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgxTemplateOutletDirective, selector: "[ngxTemplateOutlet]", inputs: ["context", "additionalContext", "ngxTemplateOutlet"] }, { kind: "directive", type: PaginationDirective, selector: "[pagination]", inputs: ["pagination", "page", "itemsPerPage", "updateTime", "waitFor"], outputs: ["pageChange", "onRefresh"], exportAs: ["pagination"] }, { kind: "directive", type: PaginationItemDirective, selector: "[paginationItem]" }, { kind: "component", type: DropdownBoxComponent, selector: "dropdown-box", inputs: ["closeInside", "attachTo", "placement", "crossAxis", "alignment", "autoAlignment", "allowedPlacements", "componentClass"] }, { kind: "component", type: DynamicTableCellComponent, selector: "dynamic-table-cell", inputs: ["item", "column", "id", "globalTemplatePrefix", "fallbackTemplate"] }, { kind: "component", type: PaginationMenuComponent, selector: "pagination-menu", inputs: ["maxSize", "urlParam", "directionLinks", "boundaryLinks"] }, { kind: "pipe", type: IncludesPipe, name: "includes" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "pipe", type: ValuesPipe, name: "values" }], encapsulation: i0.ViewEncapsulation.None });
|
|
8536
9031
|
}
|
|
8537
9032
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: DynamicTableComponent, decorators: [{
|
|
8538
9033
|
type: Component,
|
|
@@ -8606,8 +9101,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
8606
9101
|
}] } });
|
|
8607
9102
|
|
|
8608
9103
|
class FakeModuleComponent {
|
|
8609
|
-
static
|
|
8610
|
-
static
|
|
9104
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FakeModuleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9105
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: FakeModuleComponent, isStandalone: false, selector: "fake-module-component", ngImport: i0, template: "", isInline: true, encapsulation: i0.ViewEncapsulation.None });
|
|
8611
9106
|
}
|
|
8612
9107
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: FakeModuleComponent, decorators: [{
|
|
8613
9108
|
type: Component,
|
|
@@ -8620,11 +9115,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
8620
9115
|
}] });
|
|
8621
9116
|
|
|
8622
9117
|
class IconDefaultComponent {
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
}
|
|
8626
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8627
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: IconDefaultComponent, isStandalone: false, selector: "icon-default", inputs: { name: "name" }, ngImport: i0, template: "<i class=\"fa-solid\" [ngClass]=\"'fa-' + name\"></i>\r\n", styles: [".fa-solid{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
9118
|
+
name = "trash";
|
|
9119
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconDefaultComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9120
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: IconDefaultComponent, isStandalone: false, selector: "icon-default", inputs: { name: "name" }, ngImport: i0, template: "<i class=\"fa-solid\" [ngClass]=\"'fa-' + name\"></i>\r\n", styles: [".fa-solid{display:inline-block}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
8628
9121
|
}
|
|
8629
9122
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: IconDefaultComponent, decorators: [{
|
|
8630
9123
|
type: Component,
|
|
@@ -8634,6 +9127,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
8634
9127
|
}] } });
|
|
8635
9128
|
|
|
8636
9129
|
class InteractiveItemComponent {
|
|
9130
|
+
pos;
|
|
9131
|
+
rot;
|
|
9132
|
+
mFrame;
|
|
9133
|
+
mShapes;
|
|
8637
9134
|
get id() {
|
|
8638
9135
|
return null;
|
|
8639
9136
|
}
|
|
@@ -8722,6 +9219,16 @@ class InteractiveItemComponent {
|
|
|
8722
9219
|
}
|
|
8723
9220
|
return "pointer";
|
|
8724
9221
|
}
|
|
9222
|
+
direction;
|
|
9223
|
+
disabled;
|
|
9224
|
+
active;
|
|
9225
|
+
canvas;
|
|
9226
|
+
index;
|
|
9227
|
+
canvasParams;
|
|
9228
|
+
otherItems;
|
|
9229
|
+
hitShapes;
|
|
9230
|
+
validPos;
|
|
9231
|
+
validRot;
|
|
8725
9232
|
constructor() {
|
|
8726
9233
|
this.active = false;
|
|
8727
9234
|
this.index = -1;
|
|
@@ -8843,8 +9350,8 @@ class InteractiveItemComponent {
|
|
|
8843
9350
|
calcShape(x, y) {
|
|
8844
9351
|
return new Point(x, y);
|
|
8845
9352
|
}
|
|
8846
|
-
static
|
|
8847
|
-
static
|
|
9353
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InteractiveItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9354
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: InteractiveItemComponent, isStandalone: false, selector: "__interactive-item__", inputs: { x: "x", y: "y", position: "position", rotation: "rotation", direction: "direction", disabled: "disabled" }, usesOnChanges: true, ngImport: i0, template: "", isInline: true });
|
|
8848
9355
|
}
|
|
8849
9356
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InteractiveItemComponent, decorators: [{
|
|
8850
9357
|
type: Component,
|
|
@@ -8869,6 +9376,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
8869
9376
|
|
|
8870
9377
|
const emptyDash = [];
|
|
8871
9378
|
class InteractiveCanvasComponent {
|
|
9379
|
+
/**
|
|
9380
|
+
* Injectable options
|
|
9381
|
+
* @private
|
|
9382
|
+
*/
|
|
9383
|
+
options = injectOptions({
|
|
9384
|
+
infinite: false,
|
|
9385
|
+
resizeMode: "fit",
|
|
9386
|
+
panOffset: 0
|
|
9387
|
+
});
|
|
9388
|
+
renderer = inject(Renderer2);
|
|
9389
|
+
universal = inject(UniversalService);
|
|
9390
|
+
/**
|
|
9391
|
+
* Is the canvas infinitely scrollable?
|
|
9392
|
+
*/
|
|
9393
|
+
infinite = input(this.options.infinite);
|
|
9394
|
+
resizeMode = input(this.options.resizeMode);
|
|
9395
|
+
horizontal = input(false);
|
|
9396
|
+
/**
|
|
9397
|
+
* Real life-size width of the canvas
|
|
9398
|
+
*/
|
|
9399
|
+
width = input(100);
|
|
9400
|
+
/**
|
|
9401
|
+
* Real life-size height of the canvas
|
|
9402
|
+
*/
|
|
9403
|
+
height = input(100);
|
|
9404
|
+
/**
|
|
9405
|
+
* Canvas params
|
|
9406
|
+
*/
|
|
9407
|
+
params = input({});
|
|
9408
|
+
/**
|
|
9409
|
+
* Model signal for selected index
|
|
9410
|
+
*/
|
|
9411
|
+
selectedIndex = model(0);
|
|
9412
|
+
/**
|
|
9413
|
+
* Relative offset of the panning. It is based on the rendered canvas height
|
|
9414
|
+
*/
|
|
9415
|
+
panOffset = input(this.options.panOffset);
|
|
9416
|
+
renderCtx = input({});
|
|
9417
|
+
beforeItems = input([]);
|
|
9418
|
+
afterItems = input([]);
|
|
9419
|
+
onRotate = output();
|
|
9420
|
+
onItemPan = output();
|
|
9421
|
+
onItemPanned = output();
|
|
9422
|
+
onPan = output();
|
|
9423
|
+
onPanned = output();
|
|
9424
|
+
itemList = contentChildren(InteractiveItemComponent);
|
|
8872
9425
|
get isInfinite() {
|
|
8873
9426
|
return this.infinite();
|
|
8874
9427
|
}
|
|
@@ -8903,53 +9456,30 @@ class InteractiveCanvasComponent {
|
|
|
8903
9456
|
set hoveredItem(item) {
|
|
8904
9457
|
this.hoveredIndex = !item ? -1 : this.items.indexOf(item);
|
|
8905
9458
|
}
|
|
9459
|
+
xRange;
|
|
9460
|
+
yRange;
|
|
9461
|
+
ratio;
|
|
9462
|
+
styles;
|
|
9463
|
+
ctx;
|
|
9464
|
+
canvasWidth;
|
|
9465
|
+
canvasHeight;
|
|
9466
|
+
fullHeight;
|
|
9467
|
+
viewRatio;
|
|
9468
|
+
rotation;
|
|
9469
|
+
basePan;
|
|
9470
|
+
cycles;
|
|
9471
|
+
excludedAreas;
|
|
9472
|
+
tempCanvas;
|
|
9473
|
+
shouldDraw;
|
|
9474
|
+
hoveredIndex;
|
|
9475
|
+
containerElem;
|
|
9476
|
+
canvasElem;
|
|
9477
|
+
touched;
|
|
9478
|
+
panStartRotation;
|
|
9479
|
+
panStartPos;
|
|
9480
|
+
lockedIndex;
|
|
9481
|
+
oldLength;
|
|
8906
9482
|
constructor() {
|
|
8907
|
-
/**
|
|
8908
|
-
* Injectable options
|
|
8909
|
-
* @private
|
|
8910
|
-
*/
|
|
8911
|
-
this.options = injectOptions({
|
|
8912
|
-
infinite: false,
|
|
8913
|
-
resizeMode: "fit",
|
|
8914
|
-
panOffset: 0
|
|
8915
|
-
});
|
|
8916
|
-
this.renderer = inject(Renderer2);
|
|
8917
|
-
this.universal = inject(UniversalService);
|
|
8918
|
-
/**
|
|
8919
|
-
* Is the canvas infinitely scrollable?
|
|
8920
|
-
*/
|
|
8921
|
-
this.infinite = input(this.options.infinite);
|
|
8922
|
-
this.resizeMode = input(this.options.resizeMode);
|
|
8923
|
-
this.horizontal = input(false);
|
|
8924
|
-
/**
|
|
8925
|
-
* Real life-size width of the canvas
|
|
8926
|
-
*/
|
|
8927
|
-
this.width = input(100);
|
|
8928
|
-
/**
|
|
8929
|
-
* Real life-size height of the canvas
|
|
8930
|
-
*/
|
|
8931
|
-
this.height = input(100);
|
|
8932
|
-
/**
|
|
8933
|
-
* Canvas params
|
|
8934
|
-
*/
|
|
8935
|
-
this.params = input({});
|
|
8936
|
-
/**
|
|
8937
|
-
* Model signal for selected index
|
|
8938
|
-
*/
|
|
8939
|
-
this.selectedIndex = model(0);
|
|
8940
|
-
/**
|
|
8941
|
-
* Relative offset of the panning. It is based on the rendered canvas height
|
|
8942
|
-
*/
|
|
8943
|
-
this.panOffset = input(this.options.panOffset);
|
|
8944
|
-
this.renderCtx = input({});
|
|
8945
|
-
this.beforeItems = input([]);
|
|
8946
|
-
this.afterItems = input([]);
|
|
8947
|
-
this.onRotate = output();
|
|
8948
|
-
this.onItemPan = output();
|
|
8949
|
-
this.onItemPanned = output();
|
|
8950
|
-
this.onPan = output();
|
|
8951
|
-
this.onPanned = output();
|
|
8952
|
-
this.itemList = contentChildren(InteractiveItemComponent);
|
|
8953
9483
|
this.tempCanvas = this.universal.isServer ? null : document.createElement("canvas");
|
|
8954
9484
|
this.shouldDraw = !this.universal.isServer;
|
|
8955
9485
|
this.hoveredIndex = null;
|
|
@@ -9249,8 +9779,8 @@ class InteractiveCanvasComponent {
|
|
|
9249
9779
|
}
|
|
9250
9780
|
ctx.restore();
|
|
9251
9781
|
}
|
|
9252
|
-
static
|
|
9253
|
-
static
|
|
9782
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InteractiveCanvasComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9783
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.22", type: InteractiveCanvasComponent, isStandalone: false, selector: "interactive-canvas", inputs: { infinite: { classPropertyName: "infinite", publicName: "infinite", isSignal: true, isRequired: false, transformFunction: null }, resizeMode: { classPropertyName: "resizeMode", publicName: "resizeMode", isSignal: true, isRequired: false, transformFunction: null }, horizontal: { classPropertyName: "horizontal", publicName: "horizontal", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, params: { classPropertyName: "params", publicName: "params", isSignal: true, isRequired: false, transformFunction: null }, selectedIndex: { classPropertyName: "selectedIndex", publicName: "selectedIndex", isSignal: true, isRequired: false, transformFunction: null }, panOffset: { classPropertyName: "panOffset", publicName: "panOffset", isSignal: true, isRequired: false, transformFunction: null }, renderCtx: { classPropertyName: "renderCtx", publicName: "renderCtx", isSignal: true, isRequired: false, transformFunction: null }, beforeItems: { classPropertyName: "beforeItems", publicName: "beforeItems", isSignal: true, isRequired: false, transformFunction: null }, afterItems: { classPropertyName: "afterItems", publicName: "afterItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedIndex: "selectedIndexChange", onRotate: "onRotate", onItemPan: "onItemPan", onItemPanned: "onItemPanned", onPan: "onPan", onPanned: "onPanned" }, host: { listeners: { "window:touchend": "onTouchEnd()", "window:mouseup": "onMouseUp()" } }, queries: [{ propertyName: "itemList", predicate: InteractiveItemComponent, isSignal: true }], viewQueries: [{ propertyName: "containerElem", first: true, predicate: ["containerElem"], descendants: true }, { propertyName: "canvasElem", first: true, predicate: ["canvasElem"], descendants: true }], ngImport: i0, template: "<div #containerElem\r\n [ngClass]=\"['interactive-canvas-container', horizontal() ? 'horizontal' : 'vertical']\"\r\n (resize)=\"resize()\"\r\n (touchstart)=\"onTouchStart($event)\"\r\n (mousedown)=\"onMouseDown($event)\"\r\n (mousemove)=\"onMouseMove($event)\"\r\n (mouseleave)=\"onMouseLeave()\"\r\n (panend)=\"onPanEnd()\"\r\n (panmove)=\"onPanMove($event)\"\r\n (panstart)=\"onPanStart()\">\r\n <canvas #canvasElem class=\"interactive-canvas-element\"></canvas>\r\n</div>\r\n", styles: [".interactive-canvas-container{width:100%;height:100%;position:relative;display:flex;align-items:center;justify-content:center}.interactive-canvas-container .interactive-canvas-element{position:absolute;pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
9254
9784
|
}
|
|
9255
9785
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InteractiveCanvasComponent, decorators: [{
|
|
9256
9786
|
type: Component,
|
|
@@ -9270,9 +9800,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
9270
9800
|
}] } });
|
|
9271
9801
|
|
|
9272
9802
|
class InteractiveCircleComponent extends InteractiveItemComponent {
|
|
9803
|
+
radius = input(10);
|
|
9273
9804
|
constructor() {
|
|
9274
9805
|
super();
|
|
9275
|
-
this.radius = input(10);
|
|
9276
9806
|
effect(() => {
|
|
9277
9807
|
const radius = this.radius();
|
|
9278
9808
|
this.mFrame = new Rect(0, 0, radius * 2, radius * 2);
|
|
@@ -9282,10 +9812,10 @@ class InteractiveCircleComponent extends InteractiveItemComponent {
|
|
|
9282
9812
|
const radius = untracked(() => this.radius());
|
|
9283
9813
|
return new Circle(x, y, radius * this.canvas.ratio);
|
|
9284
9814
|
}
|
|
9285
|
-
static
|
|
9286
|
-
static
|
|
9815
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InteractiveCircleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9816
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.22", type: InteractiveCircleComponent, isStandalone: false, selector: "interactive-circle", inputs: { radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
9287
9817
|
{ provide: InteractiveItemComponent, useExisting: InteractiveCircleComponent },
|
|
9288
|
-
], usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
9818
|
+
], usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
9289
9819
|
}
|
|
9290
9820
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InteractiveCircleComponent, decorators: [{
|
|
9291
9821
|
type: Component,
|
|
@@ -9300,10 +9830,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
9300
9830
|
}], ctorParameters: () => [] });
|
|
9301
9831
|
|
|
9302
9832
|
class InteractiveRectComponent extends InteractiveItemComponent {
|
|
9833
|
+
width = input(10);
|
|
9834
|
+
height = input(10);
|
|
9303
9835
|
constructor() {
|
|
9304
9836
|
super();
|
|
9305
|
-
this.width = input(10);
|
|
9306
|
-
this.height = input(10);
|
|
9307
9837
|
effect(() => {
|
|
9308
9838
|
this.mFrame = new Rect(0, 0, this.width(), this.height());
|
|
9309
9839
|
});
|
|
@@ -9314,10 +9844,10 @@ class InteractiveRectComponent extends InteractiveItemComponent {
|
|
|
9314
9844
|
const height = untracked(() => this.height());
|
|
9315
9845
|
return new Rect(x, y, width * ratio, height * ratio, this.rotation);
|
|
9316
9846
|
}
|
|
9317
|
-
static
|
|
9318
|
-
static
|
|
9847
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InteractiveRectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9848
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.22", type: InteractiveRectComponent, isStandalone: false, selector: "interactive-rect", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
9319
9849
|
{ provide: InteractiveItemComponent, useExisting: InteractiveRectComponent },
|
|
9320
|
-
], usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
9850
|
+
], usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
9321
9851
|
}
|
|
9322
9852
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: InteractiveRectComponent, decorators: [{
|
|
9323
9853
|
type: Component,
|
|
@@ -9332,58 +9862,58 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
9332
9862
|
}], ctorParameters: () => [] });
|
|
9333
9863
|
|
|
9334
9864
|
class TabsComponent {
|
|
9335
|
-
|
|
9336
|
-
|
|
9337
|
-
|
|
9338
|
-
|
|
9339
|
-
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
|
|
9348
|
-
|
|
9349
|
-
|
|
9350
|
-
|
|
9351
|
-
|
|
9352
|
-
|
|
9353
|
-
|
|
9354
|
-
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9362
|
-
|
|
9363
|
-
|
|
9364
|
-
|
|
9365
|
-
|
|
9366
|
-
template: item.template
|
|
9367
|
-
});
|
|
9368
|
-
});
|
|
9369
|
-
options.forEach(o => {
|
|
9370
|
-
const active = current === o.value;
|
|
9371
|
-
const classes = (Array.isArray(o.classes) ? o.classes : [o.classes || ""]).filter(c => !!c);
|
|
9372
|
-
classes.push(active ? "active" : "inactive");
|
|
9373
|
-
o.active = active;
|
|
9374
|
-
o.className = classes.join(" ");
|
|
9865
|
+
router = inject(Router);
|
|
9866
|
+
value = model();
|
|
9867
|
+
options = input([]);
|
|
9868
|
+
type = input("primary");
|
|
9869
|
+
size = input("normal");
|
|
9870
|
+
testId = input("tabs");
|
|
9871
|
+
tabsClass = input("basic-tabs");
|
|
9872
|
+
tabItems = contentChildren(TabsItemDirective);
|
|
9873
|
+
selectedChange = output();
|
|
9874
|
+
template = signal(null);
|
|
9875
|
+
tabs = computed(() => {
|
|
9876
|
+
const options = (this.options() || [])
|
|
9877
|
+
.filter(option => ObjectUtils.isStringWithValue(option?.label));
|
|
9878
|
+
const current = this.value();
|
|
9879
|
+
this.tabItems().forEach(item => {
|
|
9880
|
+
const value = item.value();
|
|
9881
|
+
switchClass(item.element?.nativeElement, "hidden-tab", current !== value);
|
|
9882
|
+
if (options.some(o => o.value === value))
|
|
9883
|
+
return;
|
|
9884
|
+
const label = item.label();
|
|
9885
|
+
if (!label)
|
|
9886
|
+
return;
|
|
9887
|
+
options.push({
|
|
9888
|
+
value,
|
|
9889
|
+
label,
|
|
9890
|
+
classes: item.classes(),
|
|
9891
|
+
tooltip: item.tooltip(),
|
|
9892
|
+
icon: item.icon(),
|
|
9893
|
+
disabled: item.disabled(),
|
|
9894
|
+
path: item.path(),
|
|
9895
|
+
template: item.template
|
|
9375
9896
|
});
|
|
9376
|
-
return options;
|
|
9377
9897
|
});
|
|
9378
|
-
|
|
9379
|
-
|
|
9380
|
-
|
|
9381
|
-
|
|
9382
|
-
|
|
9383
|
-
|
|
9384
|
-
|
|
9898
|
+
options.forEach(o => {
|
|
9899
|
+
const active = current === o.value;
|
|
9900
|
+
const classes = (Array.isArray(o.classes) ? o.classes : [o.classes || ""]).filter(c => !!c);
|
|
9901
|
+
classes.push(active ? "active" : "inactive");
|
|
9902
|
+
o.active = active;
|
|
9903
|
+
o.className = classes.join(" ");
|
|
9904
|
+
});
|
|
9905
|
+
return options;
|
|
9906
|
+
});
|
|
9907
|
+
select = async (option) => {
|
|
9908
|
+
if (option.path) {
|
|
9909
|
+
await this.router.navigateByUrl(option.path);
|
|
9385
9910
|
return null;
|
|
9386
|
-
}
|
|
9911
|
+
}
|
|
9912
|
+
this.value.set(option.value);
|
|
9913
|
+
this.selectedChange.emit(option);
|
|
9914
|
+
return null;
|
|
9915
|
+
};
|
|
9916
|
+
constructor() {
|
|
9387
9917
|
effect(() => {
|
|
9388
9918
|
const tabOptions = this.tabs();
|
|
9389
9919
|
const selectedOption = tabOptions.find(o => o.active);
|
|
@@ -9396,8 +9926,8 @@ class TabsComponent {
|
|
|
9396
9926
|
}
|
|
9397
9927
|
});
|
|
9398
9928
|
}
|
|
9399
|
-
static
|
|
9400
|
-
static
|
|
9929
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TabsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
9930
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.22", type: TabsComponent, isStandalone: false, selector: "tabs", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, testId: { classPropertyName: "testId", publicName: "testId", isSignal: true, isRequired: false, transformFunction: null }, tabsClass: { classPropertyName: "tabsClass", publicName: "tabsClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", selectedChange: "selectedChange" }, queries: [{ propertyName: "tabItems", predicate: TabsItemDirective, isSignal: true }], ngImport: i0, template: "@let tabList = tabs();\r\n@let tabType = type();\r\n@let tabSize = size();\r\n@let tabTemplate = template();\r\n@let testIdPrefix = testId() || \"tabs\";\r\n@if (tabList.length) {\r\n <ul class=\"ui-tabs\" [ngClass]=\"[tabsClass(), 'type-' + tabType]\" [attr.data-testid]=\"testIdPrefix\">\r\n @for (option of tabList; track option.value) {\r\n <li [ngClass]=\"option.className\" [attr.data-testid]=\"testIdPrefix + '-' + option.value\">\r\n <btn [label]=\"option.label\"\r\n [tooltip]=\"option.tooltip\"\r\n [icon]=\"option.icon\"\r\n [disabled]=\"option.disabled\"\r\n [path]=\"option.path\"\r\n [type]=\"option.active ? tabType : 'transparent'\"\r\n [size]=\"tabSize\"\r\n [async-method]=\"select\"\r\n [context]=\"option\"></btn>\r\n </li>\r\n }\r\n </ul>\r\n}\r\n@if (tabTemplate) {\r\n <div class=\"ui-tab\">\r\n <ng-container [ngTemplateOutlet]=\"tabTemplate\"></ng-container>\r\n </div>\r\n}\r\n<ng-content></ng-content>\r\n", styles: [".ui-tabs{--tabs-color: var(--primary-color, var(--bs-primary, var(--mat-sys-primary, #666666)));--tabs-border-radius: var(--element-radius, var(--mat-sys-corner-full, 5px));--tabs-bg: var(--tabs-color);--tabs-margin: 5px;--tabs-padding: 5px;display:flex;gap:5px;margin:0 0 var(--tabs-margin) 0;padding:var(--tabs-padding);position:relative;list-style-type:none}.ui-tabs:before{content:\"\";position:absolute;inset:0;background:var(--tabs-bg);border-radius:var(--tabs-border-radius);opacity:.25;z-index:0}.ui-tabs li{position:relative;z-index:1}.ui-tabs *{box-sizing:border-box}.ui-tabs.type-secondary{--tabs-color: var(--secondary-color, var(--bs-secondary, var(--mat-sys-secondary, #666666)))}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: AsyncMethodDirective, selector: "[async-method]", inputs: ["async-method"], exportAs: ["async-method"] }, { kind: "component", type: BtnComponent, selector: "btn", inputs: ["label", "tooltip", "icon", "disabled", "path", "type", "size"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
9401
9931
|
}
|
|
9402
9932
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: TabsComponent, decorators: [{
|
|
9403
9933
|
type: Component,
|
|
@@ -9405,6 +9935,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
9405
9935
|
}], ctorParameters: () => [] });
|
|
9406
9936
|
|
|
9407
9937
|
class UnorderedListComponent {
|
|
9938
|
+
cdr;
|
|
9939
|
+
data;
|
|
9940
|
+
keyPrefix;
|
|
9941
|
+
listStyle;
|
|
9942
|
+
path;
|
|
9943
|
+
level;
|
|
9944
|
+
templates;
|
|
9945
|
+
isArray;
|
|
9946
|
+
isObject;
|
|
9947
|
+
defaultTemplates;
|
|
9948
|
+
templateDirectives;
|
|
9949
|
+
defaultKeyTemplate;
|
|
9950
|
+
defaultValueTemplate;
|
|
9951
|
+
defaultItemTemplate;
|
|
9408
9952
|
constructor(cdr) {
|
|
9409
9953
|
this.cdr = cdr;
|
|
9410
9954
|
this.keyPrefix = "";
|
|
@@ -9429,8 +9973,8 @@ class UnorderedListComponent {
|
|
|
9429
9973
|
};
|
|
9430
9974
|
this.cdr.detectChanges();
|
|
9431
9975
|
}
|
|
9432
|
-
static
|
|
9433
|
-
static
|
|
9976
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UnorderedListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
9977
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.22", type: UnorderedListComponent, isStandalone: false, selector: "unordered-list", inputs: { data: "data", keyPrefix: "keyPrefix", listStyle: "listStyle", path: "path", level: "level", templates: "templates" }, queries: [{ propertyName: "templateDirectives", predicate: UnorderedListTemplateDirective }], viewQueries: [{ propertyName: "defaultKeyTemplate", first: true, predicate: ["defaultKeyTemplate"], descendants: true }, { propertyName: "defaultValueTemplate", first: true, predicate: ["defaultValueTemplate"], descendants: true }, { propertyName: "defaultItemTemplate", first: true, predicate: ["defaultItemTemplate"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template let-keyPrefix=\"keyPrefix\" let-key=\"item.key\" #defaultKeyTemplate>\r\n {{ (keyPrefix ? keyPrefix + key : key) | translate }}:\r\n</ng-template>\r\n<ng-template let-keyPrefix=\"keyPrefix\" let-listStyle=\"listStyle\" let-key=\"item.key\" let-value=\"item.value\" let-path=\"path\"\r\n let-templates=\"templates\" let-type=\"valueType\" #defaultValueTemplate>\r\n @if (type === 'enum') {\r\n <span [ngClass]=\"`list-enum enum-${key} enum-value-${value}`\">\r\n <span>{{ `${key}.${value}` | translate }}</span>\r\n </span>\r\n }\r\n @else if (type === 'object' || type === 'array') {\r\n <unordered-list [data]=\"value\"\r\n [keyPrefix]=\"keyPrefix\"\r\n [listStyle]=\"listStyle\"\r\n [path]=\"path\"\r\n [level]=\"level + 1\"\r\n [templates]=\"templates\"></unordered-list>\r\n } @else {\r\n <span [innerHTML]=\"value\"></span>\r\n }\r\n</ng-template>\r\n<ng-template let-item=\"item\" let-data=\"data\" let-keyPrefix=\"keyPrefix\" let-listStyle=\"listStyle\" let-path=\"path\" let-level=\"level\" let-templates=\"templates\" #defaultItemTemplate>\r\n <ng-template #itemKey>\r\n <ng-container [unorderedListItem]=\"item\"\r\n type=\"key\"\r\n [data]=\"data\"\r\n [keyPrefix]=\"keyPrefix\"\r\n [listStyle]=\"listStyle\"\r\n [path]=\"path\"\r\n [level]=\"level\"\r\n [templates]=\"templates\"\r\n [defaultTemplates]=\"defaultTemplates\"></ng-container>\r\n </ng-template>\r\n <ng-template #itemValue>\r\n <ng-container [unorderedListItem]=\"item\"\r\n type=\"value\"\r\n [data]=\"data\"\r\n [keyPrefix]=\"keyPrefix\"\r\n [listStyle]=\"listStyle\"\r\n [path]=\"path\"\r\n [level]=\"level\"\r\n [templates]=\"templates\"\r\n [defaultTemplates]=\"defaultTemplates\"></ng-container>\r\n </ng-template>\r\n <ng-container *ngIf=\"!isArray\">\r\n <th *ngIf=\"listStyle == 'table'; else itemKey\">\r\n <ng-container [ngTemplateOutlet]=\"itemKey\"></ng-container>\r\n </th>\r\n </ng-container>\r\n <td *ngIf=\"listStyle == 'table'; else itemValue\">\r\n <ng-container [ngTemplateOutlet]=\"itemValue\"></ng-container>\r\n </td>\r\n</ng-template>\r\n<ng-template #value>\r\n <span [innerHTML]=\"data\"></span>\r\n</ng-template>\r\n<ng-container *ngIf=\"(isObject || isArray); else value\" [ngSwitch]=\"listStyle\">\r\n <ul [ngClass]=\"'level-' + level\" *ngSwitchCase=\"'list'\">\r\n <li *ngFor=\"let item of data | entries\" [ngClass]=\"item.classList\">\r\n <ng-container type=\"item\"\r\n [unorderedListItem]=\"item\"\r\n [data]=\"data\"\r\n [keyPrefix]=\"keyPrefix\"\r\n [listStyle]=\"listStyle\"\r\n [path]=\"path ? path + '.' + item.key : item.key\"\r\n [level]=\"level\"\r\n [templates]=\"templates\"\r\n [defaultTemplates]=\"defaultTemplates\"></ng-container>\r\n </li>\r\n </ul>\r\n <table [ngClass]=\"'level-' + level\" *ngSwitchDefault>\r\n <tr *ngFor=\"let item of data | entries\" [ngClass]=\"item.classList\">\r\n <ng-container type=\"item\"\r\n [unorderedListItem]=\"item\"\r\n [data]=\"data\"\r\n [keyPrefix]=\"keyPrefix\"\r\n [listStyle]=\"listStyle\"\r\n [path]=\"path ? path + '.' + item.key : item.key\"\r\n [level]=\"level\"\r\n [templates]=\"templates\"\r\n [defaultTemplates]=\"defaultTemplates\"></ng-container>\r\n </tr>\r\n </table>\r\n</ng-container>\r\n", styles: [".unordered-list *{box-sizing:border-box}.list-enum{--enum-color: #c6c6c6;--enum-radius: 5px}.list-enum span{display:inline-block;padding:2px 5px;background:color-mix(in srgb,var(--enum-color),rgba(255,255,255,.4666666667) 50%);color:color-mix(in srgb,var(--enum-color),#000 70%);border:1px solid var(--enum-color);border-radius:var(--enum-radius);-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: UnorderedListItemDirective, selector: "[unorderedListItem]", inputs: ["unorderedListItem", "type", "data", "keyPrefix", "listStyle", "path", "level", "templates", "defaultTemplates"] }, { kind: "component", type: UnorderedListComponent, selector: "unordered-list", inputs: ["data", "keyPrefix", "listStyle", "path", "level", "templates"] }, { kind: "pipe", type: EntriesPipe, name: "entries" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
9434
9978
|
}
|
|
9435
9979
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UnorderedListComponent, decorators: [{
|
|
9436
9980
|
type: Component,
|
|
@@ -9462,6 +10006,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
9462
10006
|
}] } });
|
|
9463
10007
|
|
|
9464
10008
|
class UploadComponent {
|
|
10009
|
+
cdr;
|
|
10010
|
+
element;
|
|
10011
|
+
api;
|
|
10012
|
+
toaster;
|
|
10013
|
+
value;
|
|
10014
|
+
disabled;
|
|
10015
|
+
inline;
|
|
10016
|
+
accept;
|
|
10017
|
+
baseUrl;
|
|
10018
|
+
message;
|
|
10019
|
+
multiple;
|
|
10020
|
+
buttonText;
|
|
10021
|
+
makeUpload;
|
|
10022
|
+
preProcess;
|
|
10023
|
+
onUploaded;
|
|
10024
|
+
onRemove;
|
|
10025
|
+
uploadBtn;
|
|
10026
|
+
acceptAttr;
|
|
10027
|
+
isImage;
|
|
10028
|
+
dropAllowed;
|
|
10029
|
+
processing;
|
|
10030
|
+
onChange;
|
|
10031
|
+
onTouched;
|
|
10032
|
+
rootElem;
|
|
10033
|
+
fileImageCache;
|
|
10034
|
+
acceptTypes;
|
|
9465
10035
|
get http() {
|
|
9466
10036
|
return this.api.client;
|
|
9467
10037
|
}
|
|
@@ -9671,10 +10241,10 @@ class UploadComponent {
|
|
|
9671
10241
|
type = type.split("/").pop().replace(/\./g, "");
|
|
9672
10242
|
return this.acceptTypes.includes(type);
|
|
9673
10243
|
}
|
|
9674
|
-
static
|
|
9675
|
-
static
|
|
10244
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UploadComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: API_SERVICE }, { token: TOASTER_SERVICE }], target: i0.ɵɵFactoryTarget.Component });
|
|
10245
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.22", type: UploadComponent, isStandalone: false, selector: "upload", inputs: { value: "value", disabled: "disabled", inline: "inline", accept: "accept", baseUrl: "baseUrl", message: "message", multiple: "multiple", buttonText: "buttonText", makeUpload: "makeUpload", preProcess: "preProcess" }, outputs: { onUploaded: "onUploaded", onRemove: "onRemove" }, providers: [
|
|
9676
10246
|
{ provide: NG_VALUE_ACCESSOR, useExisting: UploadComponent, multi: true }
|
|
9677
|
-
], viewQueries: [{ propertyName: "uploadBtn", first: true, predicate: ["uploadBtn"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template #itemBgTemplate let-bg=\"bg\">\r\n @if (bg) {\r\n <div class=\"upload-item-bg\" [ngStyle]=\"{backgroundImage: `url('${bg}')`}\">\r\n <div>\r\n <img alt=\"item image\" [src]=\"bg | safe: 'url'\" />\r\n </div>\r\n </div>\r\n }\r\n</ng-template>\r\n<ng-template #itemTemplate let-item=\"item\" let-index=\"index\">\r\n <div class=\"upload-item\">\r\n <ng-container [ngTemplateOutlet]=\"itemBgTemplate\"\r\n [ngTemplateOutletContext]=\"{bg: isImage || (item | isType: 'file') ? getUrl(item) : null}\">\r\n </ng-container>\r\n @if (!disabled) {\r\n <close-btn class=\"remove-item-btn\" (click)=\"removeItem(index)\"></close-btn>\r\n }\r\n<!-- <btn size=\"small\" class=\"download-item-btn\" icon=\"download\"></btn>-->\r\n </div>\r\n</ng-template>\r\n\r\n<div class=\"file-upload\" [ngClass]=\"{disabled: disabled}\">\r\n <div class=\"upload-input\" [ngClass]=\"{'drop-allowed': dropAllowed}\">\r\n <input type=\"file\"\r\n #input\r\n [disabled]=\"disabled\"\r\n [multiple]=\"multiple\"\r\n [accept]=\"acceptAttr\"\r\n (dragenter)=\"onDragEnter($event)\"\r\n (dragleave)=\"onDrop()\"\r\n (drop)=\"onDrop()\"\r\n (click)=\"onInputClick($event)\"\r\n (blur)=\"onTouched($event)\"\r\n (change)=\"onInputChange($event)\"/>\r\n @if (message) {\r\n <div class=\"upload-message\"\r\n [ngClass]=\"{'has-value': $any(value)?.length}\"\r\n [innerHTML]=\"message | translate | safe:'html'\">\r\n </div>\r\n }\r\n <div class=\"upload-container\">\r\n\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\r\n [ngTemplateOutletContext]=\"{item: value, index: 0}\"\r\n *ngIf=\"!multiple && value\">\r\n </ng-container>\r\n <ng-container *ngIf=\"multiple\">\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\r\n [ngTemplateOutletContext]=\"{item: item, index: ix}\"\r\n *ngFor=\"let item of $any(value); let ix = index\">\r\n </ng-container>\r\n </ng-container>\r\n\r\n <div class=\"upload-item\" *ngFor=\"let proc of processing\">\r\n <ng-container [ngTemplateOutlet]=\"itemBgTemplate\"\r\n [ngTemplateOutletContext]=\"{bg: proc.preview}\">\r\n </ng-container>\r\n <div class=\"upload-progress\">\r\n <div class=\"upload-progress-num\">{{ proc.progress }}%</div>\r\n <div class=\"upload-progress-bar\" [ngStyle]=\"{width: proc.progress + '%'}\">\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n @if (!disabled) {\r\n <btn class=\"upload-btn\" #uploadBtn [label]=\"buttonText\" (click)=\"input.click()\"></btn>\r\n }\r\n </div>\r\n</div>\r\n", styles: [".file-upload{--upload-bg-lightness: 85%;--upload-bg-opacity: 1;--upload-padding: 5px;--upload-border-width: 2px;--upload-border-color: rgba(0, 0, 0, .25);--upload-progress-bg: var(--primary-color, var(--mat-sys-primary, black));--upload-progress-text: var(--text-color, var(--mat-sys-on-primary, white));--upload-item-size: 120px;--upload-item-radius: 5px;--message-size: 20px;--message-color: #7e7e7e;--message-drop-color: #474747;--btn-distance: 3px;--btn-top-distance: var(--btn-distance);--btn-left-distance: var(--btn-distance);--btn-right-distance: var(--btn-distance);margin:5px 0}.file-upload *{box-sizing:border-box}.file-upload.disabled{--upload-bg-lightness: 75%}.file-upload input[type=file]{display:block;position:absolute;inset:0;opacity:0}.file-upload input[type=file]::file-selector-button{width:100%;height:100%}.file-upload .upload-input{width:100%;border:var(--upload-border-width) var(--upload-border-color) dashed;border-radius:var(--upload-item-radius);background-color:hsl(0,0%,var(--upload-bg-lightness),var(--upload-bg-opacity));transition:.2s;flex-wrap:wrap;position:relative;padding:var(--upload-padding)}.file-upload .upload-input .upload-message{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;pointer-events:none;font-size:var(--message-size);color:var(--message-color);transition:.2s}.file-upload .upload-input .upload-message.has-value{display:none}.file-upload .upload-input .upload-container{position:relative;pointer-events:none;min-height:var(--upload-item-size);display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.file-upload .upload-input .upload-item{position:relative;pointer-events:auto;width:var(--upload-item-size);height:var(--upload-item-size);border-radius:var(--upload-item-radius);border:2px solid white;overflow:hidden;display:flex;align-items:center;justify-content:center}.file-upload .upload-input .upload-item-bg{background:#fff center center no-repeat;background-size:cover;position:absolute;inset:0}.file-upload .upload-input .upload-item-bg div{width:100%;height:100%;display:flex;justify-content:center;align-items:center;backdrop-filter:blur(15px)}.file-upload .upload-input .upload-item-bg img{max-width:100%;max-height:100%;object-fit:contain;background:#ffffffbf}.file-upload .upload-input .upload-progress{position:relative;width:90%;height:15px;border:1px solid darkgrey;background:#ffffff80}.file-upload .upload-input .upload-progress-bar{position:absolute;height:15px;background:var(--upload-progress-bg);top:0}.file-upload .upload-input .upload-progress-num{position:relative;z-index:1;font-size:12px;line-height:15px;text-align:center;color:var(--upload-progress-text)}.file-upload .upload-input.drop-allowed{--upload-bg-lightness: 95%}.file-upload .upload-input.drop-allowed .upload-message{color:var(--message-drop-color)}.file-upload .upload-btn{position:relative;margin-top:5px;width:fit-content;display:block}.file-upload .remove-item-btn{position:absolute;top:var(--btn-top-distance);right:var(--btn-right-distance)}.file-upload .download-item-btn{position:absolute;top:var(--btn-top-distance);left:var(--btn-left-distance)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: BtnComponent, selector: "btn", inputs: ["label", "tooltip", "icon", "disabled", "path", "type", "size"] }, { kind: "component", type: CloseBtnComponent, selector: "close-btn" }, { kind: "pipe", type: IsTypePipe, name: "isType" }, { kind: "pipe", type: SafeHtmlPipe, name: "safe" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
10247
|
+
], viewQueries: [{ propertyName: "uploadBtn", first: true, predicate: ["uploadBtn"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-template #itemBgTemplate let-bg=\"bg\">\r\n @if (bg) {\r\n <div class=\"upload-item-bg\" [ngStyle]=\"{backgroundImage: `url('${bg}')`}\">\r\n <div>\r\n <img alt=\"item image\" [src]=\"bg | safe: 'url'\" />\r\n </div>\r\n </div>\r\n }\r\n</ng-template>\r\n<ng-template #itemTemplate let-item=\"item\" let-index=\"index\">\r\n <div class=\"upload-item\">\r\n <ng-container [ngTemplateOutlet]=\"itemBgTemplate\"\r\n [ngTemplateOutletContext]=\"{bg: isImage || (item | isType: 'file') ? getUrl(item) : null}\">\r\n </ng-container>\r\n @if (!disabled) {\r\n <close-btn class=\"remove-item-btn\" (click)=\"removeItem(index)\"></close-btn>\r\n }\r\n<!-- <btn size=\"small\" class=\"download-item-btn\" icon=\"download\"></btn>-->\r\n </div>\r\n</ng-template>\r\n\r\n<div class=\"file-upload\" [ngClass]=\"{disabled: disabled}\">\r\n <div class=\"upload-input\" [ngClass]=\"{'drop-allowed': dropAllowed}\">\r\n <input type=\"file\"\r\n #input\r\n [disabled]=\"disabled\"\r\n [multiple]=\"multiple\"\r\n [accept]=\"acceptAttr\"\r\n (dragenter)=\"onDragEnter($event)\"\r\n (dragleave)=\"onDrop()\"\r\n (drop)=\"onDrop()\"\r\n (click)=\"onInputClick($event)\"\r\n (blur)=\"onTouched($event)\"\r\n (change)=\"onInputChange($event)\"/>\r\n @if (message) {\r\n <div class=\"upload-message\"\r\n [ngClass]=\"{'has-value': $any(value)?.length}\"\r\n [innerHTML]=\"message | translate | safe:'html'\">\r\n </div>\r\n }\r\n <div class=\"upload-container\">\r\n\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\r\n [ngTemplateOutletContext]=\"{item: value, index: 0}\"\r\n *ngIf=\"!multiple && value\">\r\n </ng-container>\r\n <ng-container *ngIf=\"multiple\">\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\r\n [ngTemplateOutletContext]=\"{item: item, index: ix}\"\r\n *ngFor=\"let item of $any(value); let ix = index\">\r\n </ng-container>\r\n </ng-container>\r\n\r\n <div class=\"upload-item\" *ngFor=\"let proc of processing\">\r\n <ng-container [ngTemplateOutlet]=\"itemBgTemplate\"\r\n [ngTemplateOutletContext]=\"{bg: proc.preview}\">\r\n </ng-container>\r\n <div class=\"upload-progress\">\r\n <div class=\"upload-progress-num\">{{ proc.progress }}%</div>\r\n <div class=\"upload-progress-bar\" [ngStyle]=\"{width: proc.progress + '%'}\">\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n </div>\r\n @if (!disabled) {\r\n <btn class=\"upload-btn\" #uploadBtn [label]=\"buttonText\" (click)=\"input.click()\"></btn>\r\n }\r\n </div>\r\n</div>\r\n", styles: [".file-upload{--upload-bg-lightness: 85%;--upload-bg-opacity: 1;--upload-padding: 5px;--upload-border-width: 2px;--upload-border-color: rgba(0, 0, 0, .25);--upload-progress-bg: var(--primary-color, var(--mat-sys-primary, black));--upload-progress-text: var(--text-color, var(--mat-sys-on-primary, white));--upload-item-size: 120px;--upload-item-radius: 5px;--message-size: 20px;--message-color: #7e7e7e;--message-drop-color: #474747;--btn-distance: 3px;--btn-top-distance: var(--btn-distance);--btn-left-distance: var(--btn-distance);--btn-right-distance: var(--btn-distance);margin:5px 0}.file-upload *{box-sizing:border-box}.file-upload.disabled{--upload-bg-lightness: 75%}.file-upload input[type=file]{display:block;position:absolute;inset:0;opacity:0}.file-upload input[type=file]::file-selector-button{width:100%;height:100%}.file-upload .upload-input{width:100%;border:var(--upload-border-width) var(--upload-border-color) dashed;border-radius:var(--upload-item-radius);background-color:hsl(0,0%,var(--upload-bg-lightness),var(--upload-bg-opacity));transition:.2s;flex-wrap:wrap;position:relative;padding:var(--upload-padding)}.file-upload .upload-input .upload-message{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;pointer-events:none;font-size:var(--message-size);color:var(--message-color);transition:.2s}.file-upload .upload-input .upload-message.has-value{display:none}.file-upload .upload-input .upload-container{position:relative;pointer-events:none;min-height:var(--upload-item-size);display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.file-upload .upload-input .upload-item{position:relative;pointer-events:auto;width:var(--upload-item-size);height:var(--upload-item-size);border-radius:var(--upload-item-radius);border:2px solid white;overflow:hidden;display:flex;align-items:center;justify-content:center}.file-upload .upload-input .upload-item-bg{background:#fff center center no-repeat;background-size:cover;position:absolute;inset:0}.file-upload .upload-input .upload-item-bg div{width:100%;height:100%;display:flex;justify-content:center;align-items:center;backdrop-filter:blur(15px)}.file-upload .upload-input .upload-item-bg img{max-width:100%;max-height:100%;object-fit:contain;background:#ffffffbf}.file-upload .upload-input .upload-progress{position:relative;width:90%;height:15px;border:1px solid darkgrey;background:#ffffff80}.file-upload .upload-input .upload-progress-bar{position:absolute;height:15px;background:var(--upload-progress-bg);top:0}.file-upload .upload-input .upload-progress-num{position:relative;z-index:1;font-size:12px;line-height:15px;text-align:center;color:var(--upload-progress-text)}.file-upload .upload-input.drop-allowed{--upload-bg-lightness: 95%}.file-upload .upload-input.drop-allowed .upload-message{color:var(--message-drop-color)}.file-upload .upload-btn{position:relative;margin-top:5px;width:fit-content;display:block}.file-upload .remove-item-btn{position:absolute;top:var(--btn-top-distance);right:var(--btn-right-distance)}.file-upload .download-item-btn{position:absolute;top:var(--btn-top-distance);left:var(--btn-left-distance)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: BtnComponent, selector: "btn", inputs: ["label", "tooltip", "icon", "disabled", "path", "type", "size"] }, { kind: "component", type: CloseBtnComponent, selector: "close-btn" }, { kind: "pipe", type: IsTypePipe, name: "isType" }, { kind: "pipe", type: SafeHtmlPipe, name: "safe" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None });
|
|
9678
10248
|
}
|
|
9679
10249
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: UploadComponent, decorators: [{
|
|
9680
10250
|
type: Component,
|
|
@@ -9717,6 +10287,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
9717
10287
|
}] } });
|
|
9718
10288
|
|
|
9719
10289
|
class WysiwygComponent {
|
|
10290
|
+
cdr;
|
|
10291
|
+
element;
|
|
10292
|
+
value;
|
|
10293
|
+
disabled;
|
|
10294
|
+
valueChange;
|
|
10295
|
+
onChange;
|
|
10296
|
+
onTouched;
|
|
10297
|
+
rootElem;
|
|
10298
|
+
editor;
|
|
10299
|
+
editorElem;
|
|
9720
10300
|
get root() {
|
|
9721
10301
|
this.rootElem = this.rootElem || getRoot(this.element.nativeElement);
|
|
9722
10302
|
return this.rootElem;
|
|
@@ -9775,10 +10355,10 @@ class WysiwygComponent {
|
|
|
9775
10355
|
this.cdr.markForCheck();
|
|
9776
10356
|
this.ngOnChanges();
|
|
9777
10357
|
}
|
|
9778
|
-
static
|
|
9779
|
-
static
|
|
10358
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: WysiwygComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10359
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.22", type: WysiwygComponent, isStandalone: false, selector: "wysiwyg", inputs: { value: "value", disabled: "disabled" }, outputs: { valueChange: "valueChange" }, providers: [
|
|
9780
10360
|
{ provide: NG_VALUE_ACCESSOR, useExisting: WysiwygComponent, multi: true }
|
|
9781
|
-
], viewQueries: [{ propertyName: "editorElem", first: true, predicate: ["editor"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"wysiwyg form-control\" [ngClass]=\"{disabled: disabled}\">\r\n <div #editor></div>\r\n</div>\r\n", styles: [".file-upload{--upload-bg-lightness: 85%;--upload-bg-opacity: 1;--upload-padding: 5px;--upload-border-width: 2px;--upload-border-color: rgba(0, 0, 0, .25);--upload-progress-bg: var(--primary-color, var(--mat-sys-primary, black));--upload-progress-text: var(--text-color, var(--mat-sys-on-primary, white));--upload-item-size: 120px;--upload-item-radius: 5px;--message-size: 20px;--message-color: #7e7e7e;--message-drop-color: #474747;--btn-distance: 3px;--btn-top-distance: var(--btn-distance);--btn-left-distance: var(--btn-distance);--btn-right-distance: var(--btn-distance);margin:5px 0}.file-upload *{box-sizing:border-box}.file-upload.disabled{--upload-bg-lightness: 75%}.file-upload input[type=file]{display:block;position:absolute;inset:0;opacity:0}.file-upload input[type=file]::file-selector-button{width:100%;height:100%}.file-upload .upload-input{width:100%;border:var(--upload-border-width) var(--upload-border-color) dashed;border-radius:var(--upload-item-radius);background-color:hsl(0,0%,var(--upload-bg-lightness),var(--upload-bg-opacity));transition:.2s;flex-wrap:wrap;position:relative;padding:var(--upload-padding)}.file-upload .upload-input .upload-message{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;pointer-events:none;font-size:var(--message-size);color:var(--message-color);transition:.2s}.file-upload .upload-input .upload-message.has-value{display:none}.file-upload .upload-input .upload-container{position:relative;pointer-events:none;min-height:var(--upload-item-size);display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.file-upload .upload-input .upload-item{position:relative;pointer-events:auto;width:var(--upload-item-size);height:var(--upload-item-size);border-radius:var(--upload-item-radius);border:2px solid white;overflow:hidden;display:flex;align-items:center;justify-content:center}.file-upload .upload-input .upload-item-bg{background:#fff center center no-repeat;background-size:cover;position:absolute;inset:0}.file-upload .upload-input .upload-item-bg div{width:100%;height:100%;display:flex;justify-content:center;align-items:center;backdrop-filter:blur(15px)}.file-upload .upload-input .upload-item-bg img{max-width:100%;max-height:100%;object-fit:contain;background:#ffffffbf}.file-upload .upload-input .upload-progress{position:relative;width:90%;height:15px;border:1px solid darkgrey;background:#ffffff80}.file-upload .upload-input .upload-progress-bar{position:absolute;height:15px;background:var(--upload-progress-bg);top:0}.file-upload .upload-input .upload-progress-num{position:relative;z-index:1;font-size:12px;line-height:15px;text-align:center;color:var(--upload-progress-text)}.file-upload .upload-input.drop-allowed{--upload-bg-lightness: 95%}.file-upload .upload-input.drop-allowed .upload-message{color:var(--message-drop-color)}.file-upload .upload-btn{position:relative;margin-top:5px;width:fit-content;display:block}.file-upload .remove-item-btn{position:absolute;top:var(--btn-top-distance);right:var(--btn-right-distance)}.file-upload .download-item-btn{position:absolute;top:var(--btn-top-distance);left:var(--btn-left-distance)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
10361
|
+
], viewQueries: [{ propertyName: "editorElem", first: true, predicate: ["editor"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"wysiwyg form-control\" [ngClass]=\"{disabled: disabled}\">\r\n <div #editor></div>\r\n</div>\r\n", styles: [".file-upload{--upload-bg-lightness: 85%;--upload-bg-opacity: 1;--upload-padding: 5px;--upload-border-width: 2px;--upload-border-color: rgba(0, 0, 0, .25);--upload-progress-bg: var(--primary-color, var(--mat-sys-primary, black));--upload-progress-text: var(--text-color, var(--mat-sys-on-primary, white));--upload-item-size: 120px;--upload-item-radius: 5px;--message-size: 20px;--message-color: #7e7e7e;--message-drop-color: #474747;--btn-distance: 3px;--btn-top-distance: var(--btn-distance);--btn-left-distance: var(--btn-distance);--btn-right-distance: var(--btn-distance);margin:5px 0}.file-upload *{box-sizing:border-box}.file-upload.disabled{--upload-bg-lightness: 75%}.file-upload input[type=file]{display:block;position:absolute;inset:0;opacity:0}.file-upload input[type=file]::file-selector-button{width:100%;height:100%}.file-upload .upload-input{width:100%;border:var(--upload-border-width) var(--upload-border-color) dashed;border-radius:var(--upload-item-radius);background-color:hsl(0,0%,var(--upload-bg-lightness),var(--upload-bg-opacity));transition:.2s;flex-wrap:wrap;position:relative;padding:var(--upload-padding)}.file-upload .upload-input .upload-message{position:absolute;display:flex;align-items:center;justify-content:center;width:100%;height:100%;top:0;left:0;pointer-events:none;font-size:var(--message-size);color:var(--message-color);transition:.2s}.file-upload .upload-input .upload-message.has-value{display:none}.file-upload .upload-input .upload-container{position:relative;pointer-events:none;min-height:var(--upload-item-size);display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.file-upload .upload-input .upload-item{position:relative;pointer-events:auto;width:var(--upload-item-size);height:var(--upload-item-size);border-radius:var(--upload-item-radius);border:2px solid white;overflow:hidden;display:flex;align-items:center;justify-content:center}.file-upload .upload-input .upload-item-bg{background:#fff center center no-repeat;background-size:cover;position:absolute;inset:0}.file-upload .upload-input .upload-item-bg div{width:100%;height:100%;display:flex;justify-content:center;align-items:center;backdrop-filter:blur(15px)}.file-upload .upload-input .upload-item-bg img{max-width:100%;max-height:100%;object-fit:contain;background:#ffffffbf}.file-upload .upload-input .upload-progress{position:relative;width:90%;height:15px;border:1px solid darkgrey;background:#ffffff80}.file-upload .upload-input .upload-progress-bar{position:absolute;height:15px;background:var(--upload-progress-bg);top:0}.file-upload .upload-input .upload-progress-num{position:relative;z-index:1;font-size:12px;line-height:15px;text-align:center;color:var(--upload-progress-text)}.file-upload .upload-input.drop-allowed{--upload-bg-lightness: 95%}.file-upload .upload-input.drop-allowed .upload-message{color:var(--message-drop-color)}.file-upload .upload-btn{position:relative;margin-top:5px;width:fit-content;display:block}.file-upload .remove-item-btn{position:absolute;top:var(--btn-top-distance);right:var(--btn-right-distance)}.file-upload .download-item-btn{position:absolute;top:var(--btn-top-distance);left:var(--btn-left-distance)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
9782
10362
|
}
|
|
9783
10363
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: WysiwygComponent, decorators: [{
|
|
9784
10364
|
type: Component,
|
|
@@ -10104,11 +10684,11 @@ class NgxUtilsModule {
|
|
|
10104
10684
|
]
|
|
10105
10685
|
};
|
|
10106
10686
|
}
|
|
10107
|
-
static
|
|
10108
|
-
static
|
|
10109
|
-
FormsModule], exports: [ChunkPipe, EntriesPipe, ExtraItemPropertiesPipe, FilterPipe, FindPipe, FormatNumberPipe, GetOffsetPipe, GetTypePipe, GetValuePipe, GlobalTemplatePipe, GroupByPipe, IncludesPipe, IsTypePipe, JoinPipe, KeysPipe, MapPipe, MaxPipe, MinPipe, PopPipe, ReducePipe, RemapPipe, ReplacePipe, ReversePipe, RoundPipe, SafeHtmlPipe, ShiftPipe, SplitPipe, SyncAsyncPipe, TranslatePipe, ValuesPipe, AsyncMethodBase, AsyncMethodDirective, AsyncMethodTargetDirective, BackgroundDirective, ComponentLoaderDirective, DynamicTableTemplateDirective, GlobalTemplateDirective, IconDirective, NgxTemplateOutletDirective, PaginationDirective, PaginationItemDirective, ResourceIfDirective, StickyDirective, StickyClassDirective, DropdownDirective, DropdownContentDirective, DropdownToggleDirective, TabsItemDirective, TabsTemplateDirective, UnorderedListItemDirective, UnorderedListTemplateDirective, BtnComponent, BtnDefaultComponent, ChipsComponent, CloseBtnComponent, CodeEditorComponent, DropListComponent, DropdownBoxComponent, DynamicTableComponent, DynamicTableCellComponent, FakeModuleComponent, PaginationMenuComponent, IconComponent, IconDefaultComponent, InteractiveCanvasComponent, InteractiveItemComponent, InteractiveCircleComponent, InteractiveRectComponent, TabsComponent, UnorderedListComponent, UploadComponent, WysiwygComponent, FormsModule] });
|
|
10110
|
-
static
|
|
10111
|
-
FormsModule, FormsModule] });
|
|
10687
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: NgxUtilsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10688
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.22", ngImport: i0, type: NgxUtilsModule, declarations: [ChunkPipe, EntriesPipe, ExtraItemPropertiesPipe, FilterPipe, FindPipe, FormatNumberPipe, GetOffsetPipe, GetTypePipe, GetValuePipe, GlobalTemplatePipe, GroupByPipe, IncludesPipe, IsTypePipe, JoinPipe, KeysPipe, MapPipe, MaxPipe, MinPipe, PopPipe, ReducePipe, RemapPipe, ReplacePipe, ReversePipe, RoundPipe, SafeHtmlPipe, ShiftPipe, SplitPipe, SyncAsyncPipe, TranslatePipe, ValuesPipe, AsyncMethodBase, AsyncMethodDirective, AsyncMethodTargetDirective, BackgroundDirective, ComponentLoaderDirective, DynamicTableTemplateDirective, GlobalTemplateDirective, IconDirective, NgxTemplateOutletDirective, PaginationDirective, PaginationItemDirective, ResourceIfDirective, StickyDirective, StickyClassDirective, DropdownDirective, DropdownContentDirective, DropdownToggleDirective, TabsItemDirective, TabsTemplateDirective, UnorderedListItemDirective, UnorderedListTemplateDirective, BtnComponent, BtnDefaultComponent, ChipsComponent, CloseBtnComponent, CodeEditorComponent, DropListComponent, DropdownBoxComponent, DynamicTableComponent, DynamicTableCellComponent, FakeModuleComponent, PaginationMenuComponent, IconComponent, IconDefaultComponent, InteractiveCanvasComponent, InteractiveItemComponent, InteractiveCircleComponent, InteractiveRectComponent, TabsComponent, UnorderedListComponent, UploadComponent, WysiwygComponent], imports: [CommonModule,
|
|
10689
|
+
FormsModule], exports: [ChunkPipe, EntriesPipe, ExtraItemPropertiesPipe, FilterPipe, FindPipe, FormatNumberPipe, GetOffsetPipe, GetTypePipe, GetValuePipe, GlobalTemplatePipe, GroupByPipe, IncludesPipe, IsTypePipe, JoinPipe, KeysPipe, MapPipe, MaxPipe, MinPipe, PopPipe, ReducePipe, RemapPipe, ReplacePipe, ReversePipe, RoundPipe, SafeHtmlPipe, ShiftPipe, SplitPipe, SyncAsyncPipe, TranslatePipe, ValuesPipe, AsyncMethodBase, AsyncMethodDirective, AsyncMethodTargetDirective, BackgroundDirective, ComponentLoaderDirective, DynamicTableTemplateDirective, GlobalTemplateDirective, IconDirective, NgxTemplateOutletDirective, PaginationDirective, PaginationItemDirective, ResourceIfDirective, StickyDirective, StickyClassDirective, DropdownDirective, DropdownContentDirective, DropdownToggleDirective, TabsItemDirective, TabsTemplateDirective, UnorderedListItemDirective, UnorderedListTemplateDirective, BtnComponent, BtnDefaultComponent, ChipsComponent, CloseBtnComponent, CodeEditorComponent, DropListComponent, DropdownBoxComponent, DynamicTableComponent, DynamicTableCellComponent, FakeModuleComponent, PaginationMenuComponent, IconComponent, IconDefaultComponent, InteractiveCanvasComponent, InteractiveItemComponent, InteractiveCircleComponent, InteractiveRectComponent, TabsComponent, UnorderedListComponent, UploadComponent, WysiwygComponent, FormsModule] });
|
|
10690
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: NgxUtilsModule, providers: pipes, imports: [CommonModule,
|
|
10691
|
+
FormsModule, FormsModule] });
|
|
10112
10692
|
}
|
|
10113
10693
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImport: i0, type: NgxUtilsModule, decorators: [{
|
|
10114
10694
|
type: NgModule,
|
|
@@ -10136,5 +10716,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.22", ngImpo
|
|
|
10136
10716
|
* Generated bundle index. Do not edit.
|
|
10137
10717
|
*/
|
|
10138
10718
|
|
|
10139
|
-
export { API_SERVICE, APP_BASE_URL, AUTH_SERVICE, AclService, AjaxRequestHandler, ApiService, ArrayUtils, AsyncMethodBase, AsyncMethodDirective, AsyncMethodTargetDirective, AuthGuard, BASE_CONFIG, BUTTON_TYPE, BackgroundDirective, BaseDialogService, BaseHttpClient, BaseHttpService, BaseToasterService, BtnComponent, BtnDefaultComponent, CONFIG_SERVICE, CacheService, CanvasColor, CanvasUtils, ChipsComponent, ChunkPipe, Circle, CloseBtnComponent, CodeEditorComponent, ComponentLoaderDirective, ComponentLoaderService, ConfigService, DIALOG_SERVICE, DateUtils, DragDropEventPlugin, DropListComponent, DropdownBoxComponent, DropdownContentDirective, DropdownDirective, DropdownToggleDirective, DynamicTableCellComponent, DynamicTableComponent, DynamicTableTemplateDirective, EDITOR_TYPES, EPSILON, ERROR_HANDLER, EXPRESS_REQUEST, EntriesPipe, Enum, ErrorHandlerService, EventsService, ExclusionsRenderer, ExtraItemPropertiesPipe, FactoryDependencies, FakeModuleComponent, FileSystemEntry, FileUtils, FilterPipe, FindPipe, ForbiddenZone, FormatNumberPipe, FormatterService, GenericValue, GetOffsetPipe, GetTypePipe, GetValuePipe, GlobalTemplateDirective, GlobalTemplatePipe, GlobalTemplateService, GroupByPipe, HitZoneRenderer, HrefSerializer, ICON_MAP, ICON_SERVICE, ICON_TYPE, IConfiguration, IconComponent, IconDefaultComponent, IconDirective, IconService, IncludesPipe, Initializer, InteractiveCanvasComponent, InteractiveCircleComponent, InteractiveItemComponent, InteractiveRectComponent, IsTypePipe, JoinPipe, KeysPipe, LANGUAGE_SERVICE, LanguageService, LoaderUtils, LocalHttpService, MapPipe, MathUtils, MaxPipe, MinPipe, NgxTemplateOutletDirective, NgxUtilsModule, OPTIONS_TOKEN, ObjectType, ObjectUtils, ObservableUtils, OpenApiService, Oval, PROMISE_SERVICE, PaginationDirective, PaginationItemContext, PaginationItemDirective, PaginationMenuComponent, Point, PopPipe, PromiseService, RESIZE_DELAY, RESIZE_STRATEGY, ROOT_ELEMENT, Rect, ReducePipe, ReflectUtils, RemapPipe, ReplacePipe, RequestBag, ResizeEventPlugin, ResourceIfContext, ResourceIfDirective, ReversePipe, RoundPipe, RulerCanvasRenderer, SCHEMA_SELECTOR, SCRIPT_PARAMS, STATIC_SCHEMAS, SafeHtmlPipe, ScrollEventPlugin, SetUtils, ShapeGroup, ShiftPipe, SocketClient, SocketService, SplitPipe, StateService, StaticAuthService, StaticLanguageService, StickyClassDirective, StickyDirective, StorageMode, StorageService, StringUtils, SyncAsyncPipe, TOASTER_SERVICE, TabsComponent, TabsItemDirective, TabsTemplateDirective, TimerUtils, TranslatePipe, TranslatedUrlSerializer, UniqueUtils, UniversalService, UnorderedListComponent, UnorderedListItemDirective, UnorderedListTemplateDirective, UploadComponent, ValuedPromise, ValuesPipe, WysiwygComponent, addPts, cachedFactory, cancelablePromise, checkTransitions, clamp, computedPrevious, createTypedProvider, cssStyles, cssVariables, diffEntities, distance, distanceSq, dividePts, dotProduct, ensurePoint, eqPts, getComponentDef, getCssVariables, getRoot, getType, impatientPromise, injectOptions, isBrowser, isEqual, isFunction, isObject, isPoint, isString, isStringWithValue, isZero, lengthOfPt, lengthSq
|
|
10719
|
+
export { API_SERVICE, APP_BASE_URL, AUTH_SERVICE, AclService, AjaxRequestHandler, ApiService, ArrayUtils, AsyncMethodBase, AsyncMethodDirective, AsyncMethodTargetDirective, AuthGuard, BASE_CONFIG, BUTTON_TYPE, BackgroundDirective, BaseDialogService, BaseHttpClient, BaseHttpService, BaseToasterService, BtnComponent, BtnDefaultComponent, CONFIG_SERVICE, CacheService, CanvasColor, CanvasUtils, ChipsComponent, ChunkPipe, Circle, CloseBtnComponent, CodeEditorComponent, ComponentLoaderDirective, ComponentLoaderService, ConfigService, DIALOG_SERVICE, DateUtils, DragDropEventPlugin, DropListComponent, DropdownBoxComponent, DropdownContentDirective, DropdownDirective, DropdownToggleDirective, DynamicTableCellComponent, DynamicTableComponent, DynamicTableTemplateDirective, EDITOR_TYPES, EPSILON, ERROR_HANDLER, EXPRESS_REQUEST, EntriesPipe, Enum, ErrorHandlerService, EventsService, ExclusionsRenderer, ExtraItemPropertiesPipe, FactoryDependencies, FakeModuleComponent, FileSystemEntry, FileUtils, FilterPipe, FindPipe, ForbiddenZone, FormatNumberPipe, FormatterService, GenericValue, GetOffsetPipe, GetTypePipe, GetValuePipe, GlobalTemplateDirective, GlobalTemplatePipe, GlobalTemplateService, GroupByPipe, HitZoneRenderer, HrefSerializer, ICON_MAP, ICON_SERVICE, ICON_TYPE, IConfiguration, IconComponent, IconDefaultComponent, IconDirective, IconService, IncludesPipe, Initializer, InteractiveCanvasComponent, InteractiveCircleComponent, InteractiveItemComponent, InteractiveRectComponent, IsTypePipe, JoinPipe, KeysPipe, LANGUAGE_SERVICE, LanguageService, LoaderUtils, LocalHttpService, MapPipe, MathUtils, MaxPipe, MinPipe, NgxTemplateOutletDirective, NgxUtilsModule, OPTIONS_TOKEN, ObjectType, ObjectUtils, ObservableUtils, OpenApiService, Oval, PROMISE_SERVICE, PaginationDirective, PaginationItemContext, PaginationItemDirective, PaginationMenuComponent, Point, PopPipe, PromiseService, RESIZE_DELAY, RESIZE_STRATEGY, ROOT_ELEMENT, Rect, ReducePipe, ReflectUtils, RemapPipe, ReplacePipe, RequestBag, ResizeEventPlugin, ResourceIfContext, ResourceIfDirective, ReversePipe, RoundPipe, RulerCanvasRenderer, SCHEMA_SELECTOR, SCRIPT_PARAMS, STATIC_SCHEMAS, SafeHtmlPipe, ScrollEventPlugin, SetUtils, ShapeGroup, ShiftPipe, SocketClient, SocketService, SplitPipe, StateService, StaticAuthService, StaticLanguageService, StickyClassDirective, StickyDirective, StorageMode, StorageService, StringUtils, SyncAsyncPipe, TOASTER_SERVICE, TabsComponent, TabsItemDirective, TabsTemplateDirective, TimerUtils, TranslatePipe, TranslatedUrlSerializer, UniqueUtils, UniversalService, UnorderedListComponent, UnorderedListItemDirective, UnorderedListTemplateDirective, UploadComponent, ValuedPromise, ValuesPipe, WysiwygComponent, addPts, cachedFactory, cancelablePromise, checkTransitions, clamp, computedPrevious, createTypedProvider, cssStyles, cssVariables, diffEntities, distance, distanceSq, dividePts, dotProduct, ensurePoint, eqPts, getComponentDef, getCssVariables, getRoot, getType, impatientPromise, injectOptions, isBrowser, isEqual, isFunction, isObject, isPoint, isString, isStringWithValue, isZero, lengthOfPt, lengthSq, lerpPts, md5, multiplyPts, negatePt, normalizePt, normalizeRange, overflow, parseSelector, perpendicular, promiseTimeout, provideEntryComponents, provideOptions, provideWithOptions, rotateDeg, rotateRad, scalePt, selectorMatchesList, stringify, subPts, svgToDataUri, switchClass, toDegrees, toRadians, toStringArray, tripleProduct };
|
|
10140
10720
|
//# sourceMappingURL=stemy-ngx-utils.mjs.map
|